{"version":3,"file":"main.288ea4b552b72cb4.js","mappings":"8MAMO,IAAMA,GAAa,MAApB,MAAOA,EAMZC,YAAoBC,eAJbC,0BAA+B,KAC/BA,mCAAwC,KACxCA,iBAAsB,IAG7B,CAEOC,KAAKC,GACXF,KAAKG,qBAAuBD,EAAYC,qBACxCH,KAAKI,8BAAgCF,EAAYE,8BACjDJ,KAAKK,YAAcH,EAAYG,WAChC,CAEaC,KAAKC,GAAY,qCAC7BC,QAAQC,MAAM,2BAA2BF,KACzC,MAAMG,QAAYC,EAAKZ,KAAKa,IAASL,GAAMM,YAC3CF,EAAKR,qBAAuBO,EAAIP,qBAChCQ,EAAKP,8BAAgCM,EAAIN,8BACzCO,EAAKN,YAAcK,EAAIL,YACvBG,QAAQM,UAAW,EANU,EAO9B,+CAtBYjB,GAAakB,wCAAblB,EAAamB,QAAbnB,EAAaoB,qBAFb,SAEApB,CAAa,KCGnB,IAAKqB,GAMX,aANWA,UAAiC,KACzCC,mCACAD,gEACAA,0CACAA,yBACAA,uBALQA,GAAZ,IAAYA,GAMX,GAEK,MAAOE,WAAsBC,MAClCvB,YACQwB,EACAC,EACAC,EACAC,GAEPC,MAAMJ,GALCtB,eACAA,kBACAA,YACAA,WAGR,EAMM,IAAM2B,GAAc,MAArB,MAAOA,EACZ7B,YAAoBC,EAA0B6B,GAA1B5B,YAA0BA,aAAwB,CAE/D6B,KAAKC,EAAiBL,EAAY,MACxC,MAAMM,EAAWC,QACXC,EACLjC,KAAK4B,OAAOzB,qBAAuB2B,EAAU,OAASC,EACvDN,SAAOA,GAAQ,IACVS,SAAWH,EAET/B,KAAKD,KACVoC,KAAUF,EAAKR,EAAM,CACrBW,QAAS,IAAIC,KAAY,CACxB,eAAgB,qBAEjBC,iBAAiB,IAEjBC,QACAC,MAAYC,IACX,MAAMC,EAAQD,EAASC,MACpBD,EAASC,MACT,CAAEA,MAAOD,EAASE,YACrB,MAAM,IAAIvB,GACTsB,EAAMA,MACNA,EAAMnB,WACNmB,EAAMlB,KACNkB,EAAME,OAAM,IAEb,EACDC,KAAKJ,IACJ,GAAwB,OAApBA,EAASK,OACZ,OAAOL,EAEP,MAAM,IAAIrB,GACTqB,EAASC,MACTD,EAASlB,WACTkB,EAASjB,KACTiB,EAASG,OAAM,GAKrB,CAEaT,KACZL,EACAL,EAAY,KACZsB,EAA+B,IAAE,qCAEjC,MAAMhB,EAAWC,QACjB,IAAIC,GACFc,GAAWA,EAAQC,aACjBrC,EAAKiB,OAAOxB,8BACZO,EAAKiB,OAAOzB,sBACf2B,EAEKG,EAAMA,EAAIgB,SAAS,KAAOhB,EAAM,OAASF,EAAWE,EAAM,OAASF,GAEzEN,EAAOA,GAAQ,IACVS,SAAWH,EAEhB,IACC,MAAMK,EAAU,IAAIC,KAAY,CACnB,eAAgBnB,GAAkCC,kBAE3D4B,EAAQG,iBACXd,EAAQe,OAAO,oBAAqB,IAErC,MAAMV,QAAiB9B,EAAKZ,KAC1BoC,KAAUF,EAAKR,EAAM,CACrBW,UACAE,iBAAiB,IAEjBzB,YAEF,GAAwB,OAApB4B,EAASK,OACZ,OAAOL,EAEP,MAAM,IAAIrB,GACTqB,EAASC,MACTD,EAASlB,WACTkB,EAASjB,KACTiB,EAASG,cAGHH,GACRjC,QAAQkC,MAAMD,GACd,MAAMC,EAAQD,EAASC,MACpBD,EAASC,MACT,CAAEA,MAAOD,EAASE,YACrB,MAAM,IAAIvB,GACTsB,EAAMA,MACNA,EAAMnB,WACNmB,EAAMlB,KACNkB,EAAME,QAEP,EAjDgC,EAkDlC,CAEUhC,IACHqB,EACAmB,EAAiDlC,GAAkCC,iBAEnF,MAAMiB,EAAU,IAAIC,KAAY,CAC5B,eAAgBe,IAEpB,OAAOpD,KAAKD,KACPa,IAASqB,EAAK,CACXG,QAASA,IAEZvB,WACT,CAEUwC,aACZvB,EACAwB,EAAqB,KACrBP,EAA+B,IAAE,qCAEjC,MAAMhB,EAAWC,QACXC,GACJc,GAAWA,EAAQC,aACjBO,EAAK3B,OAAOxB,8BACZmD,EAAK3B,OAAOzB,sBACf2B,EACA,OACAC,EAEDuB,EAASH,OAAO,WAAYpB,GAE5B,IACC,MAAMK,EAAU,IAAIC,KAEhBU,EAAQG,iBACXd,EAAQe,OAAO,oBAAqB,IAErC,MAAMV,QAAiBc,EAAKxD,KAC1BoC,KAAUF,EAAKqB,EAAU,CACzBlB,UACAE,iBAAiB,IAEjBzB,YAEF,GAAwB,OAApB4B,EAASK,OACZ,OAAOL,EAEP,MAAM,IAAIrB,GACTqB,EAASC,MACTD,EAASlB,WACTkB,EAASjB,KACTiB,EAASG,cAGHH,GACRjC,QAAQkC,MAAMD,GACd,MAAMC,EAAQD,EAASC,MACpBD,EAASC,MACT,CAAEA,MAAOD,EAASE,YACrB,MAAM,IAAIvB,GACTsB,EAAMA,MACNA,EAAMnB,WACNmB,EAAMlB,KACNkB,EAAME,QAEP,EA/CgC,EAgDlC,+CApKYjB,GAAcZ,kDAAdY,EAAcX,QAAdW,EAAcV,qBAFd,SAEAU,CAAc,KC7BrB,MAAO6B,GAUZ1D,YACQ2D,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GARAjE,UACAA,gBACAA,iBACAA,gBACAA,YACAA,kBACAA,iBACAA,gBACAA,aAjBAA,kBAAuB,IAmB/B,CAlBWkE,kBACV,OAAKlE,KAAKmE,eACTnE,KAAKmE,aAAe,GAAInE,KAAK2D,WAAa,MAAQ3D,KAAK4D,UAAY,MAE7D5D,KAAKmE,YACb,ECVD,MAAMC,GAAmB,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,MAK7D,IAAMC,GAAa,MAApB,MAAOA,EA+BZvE,YAAY2B,GA3BLzB,UAAkB,KAGlBA,mBAAgC,YAGhCA,WAAgB,GAGhBA,yBAA8B,QAmBpCA,KAAKsE,KAAO7C,GAAM6C,MAAQ,KAC1BtE,KAAKuE,cAAgB9C,GAAM8C,eAAiB,YAC5CvE,KAAKwE,MAAQ/C,GAAM+C,OAAS,GAC5BxE,KAAKyE,oBAAsBhD,GAAMgD,sBAAuB,CAOzD,EAzCuBJ,0BAAmBD,GAD9BC,CAAa,KA6CpB,MAAOK,mBC/CN,IAAMC,GAAc,MAArB,MAAOA,EAqBZ7E,cACCE,KAAK4E,QAAUC,OAAOC,YACvB,CAEOC,SAASC,EAAaC,GAC5B,MAAMC,SAAsBD,EAC5B,OAAQC,OACF,UACJlF,KAAK4E,QAAQO,QAAQH,EAAK,KAAKC,KAC/B,UACI,SACJjF,KAAK4E,QAAQO,QAAQH,EAAK,KAAKC,KAC/B,UACI,SACJjF,KAAK4E,QAAQO,QAAQH,EAAK,KAAKC,KAC/B,UACI,SACJjF,KAAK4E,QAAQO,QAAQH,EAAK,KAAKC,KAC/B,UACI,SACJ,MAAMG,EAAWC,KAAKC,UAAUL,GAChCjF,KAAK4E,QAAQO,QAAQH,EAAK,KAAKI,KAC/B,cAEA,MAAM,IAAI/D,MAAM,0BAA0B6D,KAE7C,CAEOK,SAASP,EAAaQ,EAAoB,MAChD,MAAMC,EAAczF,KAAK4E,QAAQc,QAAQV,GACzC,GAAoB,OAAhBS,EACH,OAAOD,EAER,MAAMN,EAAcO,EAAYE,UAAU,EAAG,GACvCV,EAAQQ,EAAYE,UAAU,GACpC,OAAQT,OACF,IACJ,MAAiB,SAAVD,EAAU,IACb,IACJ,OAAOW,SAASX,EAAO,IAAE,IACrB,IACJ,OAAOY,OAAOZ,GAAK,IACf,IACJ,OAAOA,MACH,IACJ,OAAOI,KAAKS,MAAMb,GAEpB,OAAOO,CACR,EAnEuBb,mBAAY,CAIlCoB,YAAa,cAKbC,gBAAiB,kBAKjBC,eAAgB,wDAhBLtB,EAAc,4BAAdA,EAAc3D,QAAd2D,EAAc1D,qBADF,SACZ0D,CAAc,4CCKfuB,EAiBX,aAjBWA,QAAQ,KACnBC,kBACAD,oBACAA,cACAA,oBACAA,oBACAA,kBACAA,0BACAA,kBACAA,gBACAA,2BACAA,4BACAA,8BACAA,0BACAA,4BACAA,wBACAA,gBAhBWA,EAAZ,IAAYA,GAiBX,GAWD,MAAME,GAA2B,CAChC,CACCC,QAASH,EAASC,QAClB3E,KAAM,KACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASQ,QAClBlF,KAAM,KACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASS,KAClBnF,KAAM,KACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASU,QAClBpF,KAAM,OACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASW,QAClBrF,KAAM,OACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASY,OAClBtF,KAAM,OACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASa,WAClBvF,KAAM,OACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASc,OAClBxF,KAAM,OACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASe,MAClBzF,KAAM,OACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASgB,YAClB1F,KAAM,KACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASiB,YAClB3F,KAAM,KACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,GACJ,CACFJ,QAASH,EAASkB,WAClB5F,KAAM,OACN8E,OAAO,EACPC,KAAK,EACLC,MAAM,EACNC,MAAM,IAOF,MAAOY,EAwGZvH,YAAoBwH,EAAiC1C,GAAjC5E,eAAiCA,eAvGrDuH,YAAmC,IAAIC,OAQvCC,WAAqC,IAAIC,MAAyB,IAe/DC,aAAsB,GAQtBC,YAA6B,MAQhCC,aAAc,GAQdC,YAAqB,MAQrBC,YAAyB,IAQzBC,aAAkB,GAQlBC,aAAW,GAQXC,YAA4B,IAAI7D,IAQhC8D,YAA8B,IAAIzD,IAQlC0D,YAA4C,IAAIV,KAA2B,MAS3E,CApGWW,kBACV,SAAOC,WAAIf,QAAcgB,cAC1B,CAMWC,cACV,SAAOF,WAAIb,OAAUc,cACtB,CAKWE,cACV,OAAOrC,EACR,CAMcsC,yBACP,SAAOJ,WAAIX,OACf,CAMWgB,wBACP,SAAOL,WAAIV,OACf,CAMQgB,iBACV,SAAON,WAAIT,OACZ,CAMWgB,kBACV,SAAOP,WAAIR,OACZ,CAMWgB,kBACV,SAAOR,WAAIP,OACZ,CAMWgB,qBACV,SAAOT,WAAIN,OACZ,CAMWgB,cACV,SAAOV,WAAIL,OACZ,CAMWgB,gBACV,SAAOX,WAAIJ,OACZ,CAMWgB,iBACV,SAAOZ,WAAIH,OACZ,CAMWgB,mBACV,SAAOb,WAAIF,QAAeG,cAC3B,CASaa,QAAQC,GAAkB,qCACtC1I,EAAKsI,UAAU3E,KAAO+E,QAChB1I,EAAK2I,aAAa3I,EAAKuI,WAAYvI,EAAKsI,YAAS,EACvDX,QAAIF,QAAemB,KAAKF,EAAS,EAHK,EAIvC,CAMOG,IAAIV,GACV,IAAKA,IAAgB9I,KAAK4I,WACzB,OAAO,EAER,GAA2B,IAAvBE,EAAYW,QAAmC,MAAnBX,EAAY,GAC3C,OAAO,EAER,IAAIY,GAAQ,EACZZ,SAAYa,QAASC,IACfF,IACJA,EAAQ1J,KAAK8I,YAAYe,QAAQD,IAAM,KAGlCF,CACR,CAOQI,WAAWrH,GAIlB,MAHAsH,WAAI7B,GAAczF,GAAUuH,UAAS,OAGjC,EAAC1B,WAAIJ,QAAa,CAErB,IAAI+B,EAAcC,UAAUC,SAASC,cACdH,EAAYJ,QAAQ,KACtB,IAAGI,EAAcA,EAAYI,OAAO,EAAG,IAGxDJ,IAAgB5F,6BAAwC4F,KAAcA,EAAc,SAExFF,WAAI7B,GAAclI,KAAK4E,QAAQW,SAAS,YAAa,IAAIlB,GAAc,CAACC,KAAM2F,KAAc,MAG7F3B,aAAIF,QAAemB,QAAKjB,WAAIJ,QAAY5D,MAAQ,MAE3CtE,KAAKiJ,UAAU1E,gBACnBvE,KAAKiJ,UAAU1E,cAAgB,aAG3BvE,KAAKiJ,UAAUzE,QACnBxE,KAAKiJ,UAAUzE,MAAQ,OAGxBuF,WAAI5B,GAAe1F,GAAUyG,YAAc,IAAIxE,GAAgB,IAChE,CAOa4E,aAAaJ,EAA4BD,GAAwB,qCAI7E,GAFA1F,EAAKqB,QAAQG,SAAS,YAAakE,GAE/B1F,EAAKqF,WAAY,CACpB,MAAM0B,EAAU,CACfC,KAAMrB,EACND,aAED,KACCX,UAAIb,OAAU8B,MAAK,GACnB,MAAM9G,QAAiBc,EAAK+D,QAAQnF,KAAK,wBAAyBmI,IAClEP,UAAI7B,GAAczF,EAASwG,UAAS,QACpCc,QAAI5B,GAAe1F,EAAS8H,KAAI,cAEhCjC,UAAIb,OAAU8B,MAAK,IAEpB,EAjB4E,EAkB9E,CAKaiB,UAAO,qCAIb,MAAMC,EAAc5F,OAAO6F,SAASC,OAC9B1I,EAAMwI,EAAYxH,SAAS,QAAUwH,EAAYxH,SAAS,OAAS,aAAewH,EAAc,aAEhGG,QAAwCC,EAAKvD,QAAQnF,KAAKF,GACtE,MAA2B,aAAvB2I,EAAcpJ,OAAS,EAC1BuI,QAAIlC,IAAe,EAAI,QACvBkC,QAAIjC,GAAgB,IAAItE,GAAKoH,EAAcnH,GAAImH,EAAclH,SAAUkH,EAAcE,KAAMF,EAAcG,QAASH,EAAcI,KAAMJ,EAAc9G,WAAY8G,EAAc7G,UAAW6G,EAAc5G,SAAS4G,EAAc3G,OAAM,QACpO8F,QAAIhC,GAAgB6C,EAAcK,SAAQ,QAC1ClB,QAAI/B,GAAmB4C,EAAc7B,eAAc,QACnDgB,QAAI9B,GAAY2C,EAAc5B,QAAO,QAC5Be,QAAIpC,GAAuBiD,EAAclC,mBAAkB,QAC3DqB,QAAInC,GAAsBgD,EAAcjC,kBAAiB,KAClEkC,EAAKf,WAAWc,IAAa,EAC7BtC,QAAIf,QAAc2D,QACX,OAEPnB,QAAIlC,IAAe,EAAK,KACxBgD,EAAKf,cACE,EACP,EAvBkB,EAwBpB,CAKaqB,OAAI,qCAChB3K,QAAQC,MAAM,2BACJ2K,EAAKZ,WACdhK,QAAQ6K,IAAI,eAAgBD,EAAKvC,YAAY3E,aAIvC1D,QAAQ6K,IAAI,iBACnB7K,QAAQM,UAAW,EARH,EASjB,CAQawK,MAAMC,EAAkBC,EAAkBC,GAAuB,qCAC7E,MAAMC,EAA2B,CAChCH,WACAC,WACAC,kBAGKE,QAAwCC,EAAKtE,QAAQnF,KAAK,aAAcuJ,GAE9E,OAAOE,EAAKC,oBAAoBF,EAAe,EAT8B,EAU9E,CAEaG,yBAAyBP,EAAkBQ,GAAe,qCACtE,IACC,MAAMzB,EAAqC,CAC1C0B,aAAcT,EACdQ,OAAQA,GAET,aAAME,EAAK3E,QAAQnF,KAAK,yBAA0BmI,IAC3C,QAEP,OAAO,EACP,EAVqE,EAWvE,CAEa4B,cAAcX,EAAkBY,GAAsB,qCAClE,MAAMT,EAAmC,CACxCH,WACAY,kBAGKR,QAAwCS,EAAK9E,QAAQnF,KAAK,kBAAmBuJ,GAEnF,OAAOU,EAAKP,oBAAoBF,EAAe,EARmB,EASnE,CAEcE,oBAAoBF,GAA+B,qCAChE,GAA2B,aAAvBA,EAAcnK,KAAqB,EACtCuI,UAAIlC,IAAe,EAAI,QACvBkC,QAAIjC,GAAgB,IAAItE,GAAKmI,EAAclI,GAAIkI,EAAcjI,SAAUiI,EAAcb,KAAMa,EAAcZ,QAASY,EAAcX,KAAMW,EAAc7H,WAAY6H,EAAc5H,UAAW4H,EAAc3H,SAAS2H,EAAc1H,OAAM,QACpO8F,QAAIhC,GAAgB4D,EAAcV,SAAQ,KAC1C,MAAMoB,EAAcC,EAAKrD,UAAU3E,KACnCyF,iBAAI/B,GAAmB2D,EAAc5C,eAAc,QACnDgB,QAAI9B,GAAY0D,EAAc3C,QAAO,QAC5Be,QAAIpC,GAAuBgE,EAAcjD,mBAAkB,QAC3DqB,QAAInC,GAAsB+D,EAAchD,kBAAiB,KAClE2D,EAAKxC,WAAW6B,GAEZU,IAAgBC,EAAKrD,UAAU3E,aAC5BgI,EAAKhD,aAAagD,EAAKpD,WAAYoD,EAAKrD,aAAS,EAExDX,QAAIf,QAAc2D,OAClB1K,QAAQ6K,IAAI,eAAgBiB,EAAKzD,YAAY3E,aACtCoI,EAAKzD,YAEZrI,eAAQ+L,KAAK,gBACN,IACP,EArB+D,EAsBjE,CAMaC,SAAM,2CACZC,EAAKnF,QAAQnF,KAAK,gBAAa,EACrC4H,QAAIjC,GAAgB,KAAI,QACxBiC,QAAIlC,IAAe,EAAK,QACxBkC,QAAIhC,GAAgB,GAAE,QACtBO,QAAIf,QAAc2D,OAClB1K,QAAQ6K,IAAI,aAAc,EANR,EAOnB,CAOaqB,eAAeC,EAAyBC,GAAmB,qCACvE,MAAMtC,EAAkC,CACvCqC,kBACAC,eAED,KACCtE,UAAIb,OAAU8B,MAAK,SACbsD,EAAKvF,QAAQnF,KAAK,uBAAwBmI,YAEhDhC,UAAIb,OAAU8B,MAAK,GACnB,EAVsE,EAWxE,CAQauD,4BAA4B7I,EAAe8I,EAA0BhB,GAAe,qCAChG,MAAMzB,EAAwC,CAC7CrG,QACA8I,mBACAhB,UAED,KACCzD,UAAIb,OAAU8B,MAAK,SACbyD,EAAK1F,QAAQnF,KAAK,4BAA6BmI,YAErDhC,UAAIb,OAAU8B,MAAK,GACnB,EAX+F,EAYjG,CAOa0D,cAAcC,EAAgB1B,GAAgB,qCAC1D,MAAMlB,EAAiC,CACtC4C,SACA1B,YAED,KACClD,UAAIb,OAAU8B,MAAK,SACb4D,EAAK7F,QAAQnF,KAAK,0BAA2BmI,YAEnDhC,UAAIb,OAAU8B,MAAK,GACnB,EAVyD,EAW3D,2NApXYlC,GAAWtG,gDAAXsG,EAAWrG,QAAXqG,EAAWpG,qBAFX,uBC7Ge,IAAImM,MAAuB,gBAi68ChD,IAAKC,EAOX,aAPWA,QAAU,KAClBC,wBACAD,cACAA,0BACAA,4BACAA,oBACAA,4BANQA,EAAZ,IAAYA,GAOX,GAkQK,MAAOE,GAITzN,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACGA,IACA1N,KAAKkC,cAAiCyL,IAAtBD,EAAMxL,SAA4BwL,EAAMxL,SAAmB,KAEnF,CAEA0L,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAIyK,GACjBzK,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCS,cAAgCyL,IAAlB3N,KAAKkC,SAAyBlC,KAAKkC,SAAgB,KAC/DT,CACX,EAoXE,MAAOqM,WAAyBP,GAIlCzN,YAAY2B,GACRC,MAAMD,EACV,CAEA0J,KAAKuC,GACDhM,MAAMyJ,KAAKuC,GACPA,IACA1N,KAAK+L,YAA6B4B,IAApBD,EAAM3B,OAA0B2B,EAAM3B,OAAiB,KAE7E,CAEA6B,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAIgL,GACjBhL,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCsK,YAA4B4B,IAAhB3N,KAAK+L,OAAuB/L,KAAK+L,OAAc,KAChErK,MAAMmM,OAAOpM,GACNA,CACX,EAkJG,IAAKsM,EASX,aATWA,QAAO,KACfC,oBACAD,oBACAA,sBACAA,oBACAA,gBACAA,oBACAA,0BACAA,gBARQA,EAAZ,IAAYA,GASX,GAsshBK,MAAOE,GAYTnO,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACD,GAAIA,EAAO,CAQP,GAPA1N,KAAKkO,YAA6BP,IAApBD,EAAMQ,OAA0BR,EAAMQ,OAAiB,KACrElO,KAAK8K,UAAyB6C,IAAlBD,EAAM5C,KAAwB4C,EAAM5C,KAAe,KAC/D9K,KAAKmO,WAA2BR,IAAnBD,EAAMS,MAAyBT,EAAMS,MAAgB,KAClEnO,KAAKoO,WAA2BT,IAAnBD,EAAMU,MAAyBV,EAAMU,MAAgB,KAClEpO,KAAKqO,WAA2BV,IAAnBD,EAAMW,MAAyBX,EAAMW,MAAgB,KAClErO,KAAK+L,YAA6B4B,IAApBD,EAAM3B,OAA0B2B,EAAM3B,OAAiB,KACrE/L,KAAKsO,OAASZ,EAAMY,OAAYC,GAAgBC,OAAOd,EAAMY,QAAkB,KAC3EG,MAAMC,QAAQhB,EAAMiB,OAAW,CAC/B3O,KAAK2O,MAAQ,GACb,QAASC,KAAQlB,EAAMiB,MACnB3O,KAAK2O,MAAOE,KAAKD,QAGrB5O,KAAK2O,MAAa,KAEtB,GAAIF,MAAMC,QAAQhB,EAAMoB,cAAkB,CACtC9O,KAAK8O,aAAe,GACpB,QAASF,KAAQlB,EAAMoB,aACnB9O,KAAK8O,aAAcD,KAAKD,QAG5B5O,KAAK8O,aAAoB,KAE7B9O,KAAK6C,IAAM6K,EAAM7K,IAASkM,GAAQP,OAAOd,EAAM7K,KAAe,KAEtE,CAEA+K,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAImL,GACjBnL,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GASH,IARAA,EAAuB,iBAATA,EAAoBA,EAAO,IACpCyM,YAA4BP,IAAhB3N,KAAKkO,OAAuBlO,KAAKkO,OAAc,KAChEzM,EAAKqJ,UAAwB6C,IAAd3N,KAAK8K,KAAqB9K,KAAK8K,KAAY,KAC1DrJ,EAAK0M,WAA0BR,IAAf3N,KAAKmO,MAAsBnO,KAAKmO,MAAa,KAC7D1M,EAAK2M,WAA0BT,IAAf3N,KAAKoO,MAAsBpO,KAAKoO,MAAa,KAC7D3M,EAAK4M,WAA0BV,IAAf3N,KAAKqO,MAAsBrO,KAAKqO,MAAa,KAC7D5M,EAAKsK,YAA4B4B,IAAhB3N,KAAK+L,OAAuB/L,KAAK+L,OAAc,KAChEtK,EAAK6M,OAAYtO,KAAKsO,OAAStO,KAAKsO,OAAOT,SAAgB,KACvDY,MAAMC,QAAQ1O,KAAK2O,OAAQ,CAC3BlN,EAAKkN,MAAW,GAChB,QAASC,KAAQ5O,KAAK2O,MAClBlN,EAAKkN,MAASE,KAAKD,GAE3B,GAAIH,MAAMC,QAAQ1O,KAAK8O,cAAe,CAClCrN,EAAKqN,aAAkB,GACvB,QAASF,KAAQ5O,KAAK8O,aAClBrN,EAAKqN,aAAgBD,KAAKD,GAElCnN,SAAKoB,IAAS7C,KAAK6C,IAAM7C,KAAK6C,IAAIgL,SAAgB,KAC3CpM,CACX,EAiBE,MAAO8M,GAITzO,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACGA,IACA1N,KAAKgP,YAA6BrB,IAApBD,EAAMsB,OAA0BtB,EAAMsB,OAAiB,KACrEhP,KAAKiP,WAA2BtB,IAAnBD,EAAMuB,MAAyBvB,EAAMuB,MAAgB,KAE1E,CAEArB,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAIyL,GACjBzL,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCuN,YAA4BrB,IAAhB3N,KAAKgP,OAAuBhP,KAAKgP,OAAc,KAChEvN,EAAKwN,WAA0BtB,IAAf3N,KAAKiP,MAAsBjP,KAAKiP,MAAa,KACtDxN,CACX,EAQE,MAAOsN,GAKTjP,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACGA,IACA1N,KAAKkP,SAAuBvB,IAAjBD,EAAMwB,IAAuBxB,EAAMwB,IAAc,KAC5DlP,KAAKmP,UAAyBxB,IAAlBD,EAAMyB,KAAwBzB,EAAMyB,KAAe,KAC/DnP,KAAKoP,UAAyBzB,IAAlBD,EAAM0B,KAAwB1B,EAAM0B,KAAe,KAEvE,CAEAxB,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAIiM,GACjBjM,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCyN,SAAsBvB,IAAb3N,KAAKkP,IAAoBlP,KAAKkP,IAAW,KACvDzN,EAAK0N,UAAwBxB,IAAd3N,KAAKmP,KAAqBnP,KAAKmP,KAAY,KAC1D1N,EAAK2N,UAAwBzB,IAAd3N,KAAKoP,KAAqBpP,KAAKoP,KAAY,KACnD3N,CACX,EA2oBE,MAAO4N,GAOTvP,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACGA,IACA1N,KAAK8K,UAAyB6C,IAAlBD,EAAM5C,KAAwB4C,EAAM5C,KAAe,KAC/D9K,KAAKsP,gBAAqC3B,IAAxBD,EAAM4B,WAA8B5B,EAAM4B,WAAqB,KACjFtP,KAAKiC,SAAuB0L,IAAjBD,EAAMzL,IAAuByL,EAAMzL,IAAc,KAC5DjC,KAAKuP,UAAyB5B,IAAlBD,EAAM6B,KAAwB7B,EAAM6B,KAAe,KAC/DvP,KAAKwP,aAA+B7B,IAArBD,EAAM8B,QAA2B9B,EAAM8B,QAAkB,KAEhF,CAEA5B,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAIuM,GACjBvM,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCqJ,UAAwB6C,IAAd3N,KAAK8K,KAAqB9K,KAAK8K,KAAY,KAC1DrJ,EAAK6N,gBAAoC3B,IAApB3N,KAAKsP,WAA2BtP,KAAKsP,WAAkB,KAC5E7N,EAAKQ,SAAsB0L,IAAb3N,KAAKiC,IAAoBjC,KAAKiC,IAAW,KACvDR,EAAK8N,UAAwB5B,IAAd3N,KAAKuP,KAAqBvP,KAAKuP,KAAY,KAC1D9N,EAAK+N,aAA8B7B,IAAjB3N,KAAKwP,QAAwBxP,KAAKwP,QAAe,KAC5D/N,CACX,EA+KG,IAAKgO,GAEX,OAFWA,QAAW,KACnBC,oBADQD,IAEX,GAkkBK,MAAOE,WAAwB7B,GAGjChO,YAAY2B,GACRC,MAAMD,EACV,CAEA0J,KAAKuC,GACDhM,MAAMyJ,KAAKuC,GACPA,IACA1N,KAAKgE,cAAiC2J,IAAtBD,EAAM1J,SAA4B0J,EAAM1J,SAAmB,KAEnF,CAEA4J,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAI6M,GACjB7M,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCuC,cAAgC2J,IAAlB3N,KAAKgE,SAAyBhE,KAAKgE,SAAgB,KACtEtC,MAAMmM,OAAOpM,GACNA,CACX,EAktBE,MAAOmO,GAMT9P,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACGA,IACA1N,KAAK6P,eAAmClC,IAAvBD,EAAMmC,UAA6BnC,EAAMmC,UAAoB,KAC9E7P,KAAK8K,UAAyB6C,IAAlBD,EAAM5C,KAAwB4C,EAAM5C,KAAe,KAC/D9K,KAAK8P,cAAiCnC,IAAtBD,EAAMoC,SAA4BpC,EAAMoC,SAAmB,KAC3E9P,KAAK+P,eAAmCpC,IAAvBD,EAAMqC,UAA6BrC,EAAMqC,UAAoB,KAEtF,CAEAnC,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAI8M,GACjB9M,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCoO,eAAkClC,IAAnB3N,KAAK6P,UAA0B7P,KAAK6P,UAAiB,KACzEpO,EAAKqJ,UAAwB6C,IAAd3N,KAAK8K,KAAqB9K,KAAK8K,KAAY,KAC1DrJ,EAAKqO,cAAgCnC,IAAlB3N,KAAK8P,SAAyB9P,KAAK8P,SAAgB,KACtErO,EAAKsO,eAAkCpC,IAAnB3N,KAAK+P,UAA0B/P,KAAK+P,UAAiB,KAClEtO,CACX,EAUE,MAAOuO,GAKTlQ,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACGA,IACA1N,KAAKyD,QAAqBkK,IAAhBD,EAAMjK,GAAsBiK,EAAMjK,GAAa,KACzDzD,KAAK8K,UAAyB6C,IAAlBD,EAAM5C,KAAwB4C,EAAM5C,KAAe,KAC/D9K,KAAKsO,YAA6BX,IAApBD,EAAMY,OAA0BZ,EAAMY,OAAiB,KAE7E,CAEAV,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAIkN,GACjBlN,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpCgC,QAAoBkK,IAAZ3N,KAAKyD,GAAmBzD,KAAKyD,GAAU,KACpDhC,EAAKqJ,UAAwB6C,IAAd3N,KAAK8K,KAAqB9K,KAAK8K,KAAY,KAC1DrJ,EAAK6M,YAA4BX,IAAhB3N,KAAKsO,OAAuBtO,KAAKsO,OAAc,KACzD7M,CACX,EAo2GG,IAAKwO,GAKX,aALWA,UAAe,KACvBC,0BACAD,oBACAA,sBACAA,sBAJQA,GAAZ,IAAYA,GAKX,GAkjDWE,GAGX,aAHWA,UAAW,KACnBC,kBACAD,kBAFQA,GAAZ,IAAYA,GAGX,GAqvBK,MAAOE,EAUTvQ,YAAY2B,GACR,GAAIA,EACA,QAAS+L,KAAY/L,EACbA,EAAKgM,eAAeD,KACdxN,KAAMwN,GAAkB/L,EAAM+L,GAGpD,CAEArC,KAAKuC,GACGA,IACA1N,KAAKsQ,aAA+B3C,IAArBD,EAAM4C,QAA2B5C,EAAM4C,QAAkB,KACxEtQ,KAAKuQ,aAA+B5C,IAArBD,EAAM6C,QAA2B7C,EAAM6C,QAAkB,KACxEvQ,KAAKwQ,cAAiC7C,IAAtBD,EAAM8C,SAA4B9C,EAAM8C,SAAmB,KAC3ExQ,KAAKyQ,gBAAqC9C,IAAxBD,EAAM+C,WAA8B/C,EAAM+C,WAAqB,KACjFzQ,KAAK0Q,iBAAuC/C,IAAzBD,EAAMgD,YAA+BhD,EAAMgD,YAAsB,KACpF1Q,KAAK2Q,cAAiChD,IAAtBD,EAAMiD,SAA4BjD,EAAMiD,SAAmB,KAC3E3Q,KAAKoP,UAAyBzB,IAAlBD,EAAM0B,KAAwB1B,EAAM0B,KAAe,KAC/DpP,KAAK4Q,YAA6BjD,IAApBD,EAAMkD,OAA0BlD,EAAMkD,OAAiB,KAE7E,CAEAhD,cAAcnM,GACVA,EAAuB,iBAATA,EAAoBA,EAAO,GACzC,IAAIqB,EAAS,IAAIuN,EACjBvN,SAAOqI,KAAK1J,GACLqB,CACX,CAEA+K,OAAOpM,GACHA,SAAuB,iBAATA,EAAoBA,EAAO,IACpC6O,aAA8B3C,IAAjB3N,KAAKsQ,QAAwBtQ,KAAKsQ,QAAe,KACnE7O,EAAK8O,aAA8B5C,IAAjB3N,KAAKuQ,QAAwBvQ,KAAKuQ,QAAe,KACnE9O,EAAK+O,cAAgC7C,IAAlB3N,KAAKwQ,SAAyBxQ,KAAKwQ,SAAgB,KACtE/O,EAAKgP,gBAAoC9C,IAApB3N,KAAKyQ,WAA2BzQ,KAAKyQ,WAAkB,KAC5EhP,EAAKiP,iBAAsC/C,IAArB3N,KAAK0Q,YAA4B1Q,KAAK0Q,YAAmB,KAC/EjP,EAAKkP,cAAgChD,IAAlB3N,KAAK2Q,SAAyB3Q,KAAK2Q,SAAgB,KACtElP,EAAK2N,UAAwBzB,IAAd3N,KAAKoP,KAAqBpP,KAAKoP,KAAY,KAC1D3N,EAAKmP,YAA4BjD,IAAhB3N,KAAK4Q,OAAuB5Q,KAAK4Q,OAAc,KACzDnP,CACX,EAo/zE8BJ,qDCp5jJ5B,MAAOwP,EAmDZ/Q,YAAoBwH,EAAiCwJ,GAAjC9Q,eAAiCA,iBAlDrCA,gCAA6B,EAC7BA,sBAAmB,KACnBA,yBAAsB,MACtBA,8BAA2B,MAE3BA,iCAA8B,EAC9BA,+BAA4B,IAE5BA,4BAAyB,EAEjCA,kBAA6C,KAC7CA,wBAAsD,KACtDA,aAA+B,KAC/BA,iBAAuC,KACvCA,oBAA+C,KAC/CA,gBAAgD,KAChDA,iBAA4C,KAC5CA,gBAAsC,KACtCA,qBAA2C,KAC3CA,iBAAiD,KACjDA,uBAAyD,KACzDA,oBAAyC,KACzCA,oBAAmD,KACnDA,aAA8B,KAC9BA,oBAAmD,KACnDA,6BAAmE,KACnEA,gBAAsC,KACtCA,2BAA2D,KAC3DA,6BAA+D,KAC/DA,gCAAkE,KAClEA,iBAAqD,KACrDA,kBAAsC,KACtCA,wBAAgD,KAChDA,oBAA6C,KAC7CA,0BAAmD,KACnDA,gBAAwC,KAEhD+Q,YAAyC,MACzCC,YAAkC,MAClCC,YAAkC,MAClCC,YAAoD,MACpDC,YAAqD,MACrDC,YAAwD,MACxDC,YAA8C,MAC9CC,YAA0D,MAC1DC,YAAwF,MAExFC,oBACAC,oBAmpBQzR,iBAAgD,KAhpBvD8Q,EAAUY,aAAaC,UAAWC,IACjC5R,KAAK6R,mBAAqB,KAC1B7R,KAAK8R,YAAc,KACnB9R,KAAK+R,eAAiB,KACtB/R,KAAKgS,eAAiB,KACtBhS,KAAKiS,WAAa,KAClBjS,KAAKkS,WAAa,KAClBlS,KAAKmS,sBAAwB,KAC7BnS,KAAKoS,wBAA0B,KAC/BpS,KAAKqS,2BAA6B,KAClCrS,KAAKsS,YAAc,KACnBtS,KAAKuS,aAAe,QACpBxI,WAAIsH,GAAgB,KAAI,QACxBtH,WAAIuH,GAA0B,KAAI,KAClCtR,KAAKwS,mBAAqB,KAC1BxS,KAAKyS,eAAiB,KACtBzS,KAAK0S,qBAAuB,KAC5B1S,KAAK2S,WAAa,QAClB5I,WAAIqH,GAAsB,KAAI,MAEhC,CAMOwB,QAAQC,KACV,EAACvK,WAAIkJ,SAA6B,KAA7B,EAAYlJ,WAAIkJ,UAAa,EAAGzH,WAAIyH,GAAWqB,EAAM,IAC/D,CAKWA,aACV,SAAOvK,WAAIkJ,OACZ,CAEOsB,YAAY9O,IAClB,EAAKsE,WAAImJ,YAAY1H,WAAI0H,GAAazN,EAAQ,IAC/C,CAEW+O,qBACV,SAAOzK,WAAImJ,OACZ,CAEOuB,YACN,OAAQhT,KAAK8Q,UAAUzE,iBACjB,KACJ,OAAO0B,cACH,KACJ,OAAOA,eACH,KACJ,OAAOA,cACH,KACJ,OAAOA,YACH,KACJ,OAAOA,cACH,KACJ,OAAOA,aAET,OAAOA,UACR,CAMOkF,WAAW3O,GACjB,OAAQA,GAAQtE,KAAK8Q,UAAUzE,iBACzB,KACJ,MAAO,YACH,KACJ,MAAO,YACH,KACJ,MAAO,YACH,KACJ,MAAO,QAET,MAAO,OACR,CAMO6G,sBAAsB5O,GAC5B,OAAQA,QACFyJ,UACJ,MAAO,UACHA,QACJ,MAAO,UACHA,WACJ,MAAO,UACHA,WACJ,MAAO,UACHA,aACJ,MAAO,UACHA,UACJ,MAAO,KACHA,QAEJ,MAAO,KAEV,CAKWoF,sBACV,SAAK7K,WAAIiJ,YACRxH,WAAIwH,GAAoBvR,KAAKsH,QAAQzF,KAAK,iBAAiBU,QAC1DM,KAAKpB,GAAmCA,EAAK2R,gBAAa,EAC1DC,KAAY,IACZ,QAEK/K,WAAIiJ,OACZ,CAKW+B,4BACV,SAAKhL,WAAIgJ,YACRvH,WAAIuH,GAA0BtR,KAAKuT,YAAYhR,QAC9CM,KAAK2Q,IACJ,MAAM1Q,EAA8B,GACpC0Q,SAAG7J,QAAS8J,IACX3Q,EAAO2Q,EAAEhQ,IAAMgQ,IAET3Q,KACP,EACDuQ,KAAY,IACZ,QAEK/K,WAAIgJ,OACZ,CAKWiC,kBACV,SAAKjL,WAAI+I,YACRtH,WAAIsH,GAAgBrR,KAAKsH,QAAQzF,KAAK,oBAAoBU,QACzDM,KAAKpB,IACIA,EAAKiS,MAAQ,IAAI7Q,IAAK4Q,IAC7B,MAAMxK,EAAYwK,EAAExK,UAAa5D,KAAKS,MAAM2N,EAAExK,WAA8B,KAC5E,MAAO,CACNxF,GAAIgQ,EAAEhQ,GACNkQ,IAAKF,EAAEE,IACPC,gBAAiB3K,GAAW2K,gBAC5BC,MAAO5K,GAAW4K,MAClBC,UAAW7K,GAAW6K,eAGxB,EACDT,KAAY,IACZ,QAEK/K,WAAI+I,OACZ,CAKW0C,mBACV,SAAKzL,WAAI4I,YACRnH,WAAImH,GAAiBlR,KAAKsH,QAAQzF,KAAK,oBAAoBU,QAAK8Q,KAAY,IAAG,QAEzE/K,WAAI4I,OACZ,CAKW8C,yBACV,KAAI,EAAC1L,WAAI6I,QAAsB,CAC9B,MAAM7G,EAAwB,CAC7ByB,OAAQ/L,KAAKgT,YACbH,OAAQ7S,KAAK6S,SAEd9I,aAAIoH,GAAuBnR,KAAKsH,QAAQzF,KAAK,0BAA2ByI,GAAS/H,QAChFM,KAAKpB,GACGA,EAAKwS,aACZ,EACDZ,KAAY,IACZ,KAEF,SAAO/K,WAAI6I,OACZ,CAKW+C,wBACV,KAAI,EAAC5L,WAAI8I,QAAqB,CAC7B,MAAM9G,EAA6B,CAClCyB,OAAQ/L,KAAKgT,cAEdjJ,aAAIqH,GAAsBpR,KAAKsH,QAAQzF,KAAK,0BAA2ByI,GAAS/H,QAC/EM,KAAKpB,GACGA,EAAK0S,mBACZ,EACDd,KAAY,IACZ,KAEF,SAAO/K,WAAI8I,OACZ,CAEWgD,aACV,SAAK9L,WAAI2I,YACRlH,WAAIkH,GAAWjR,KAAKsH,QAAQzF,KAAK,cAAcU,QAC9CM,KAAKpB,GACGA,EAAK4S,QACZ,EACDhB,KAAY,IACZ,QAEK/K,WAAI2I,OACZ,CAKWqD,aACV,SAAKhM,WAAI0I,YACRjH,WAAIiH,GAAWhR,KAAKsH,QAAQzF,KAAK,cAAcU,QAC9CM,KAAKpB,GACGA,EAAK8S,QACZ,EACDlB,KAAY,IACZ,QAEK/K,WAAI0I,OACZ,CAKWwD,mBACV,OAAOxU,KAAKsU,OAAO/R,QAClBM,KAAK0R,GACJA,EAAME,OACJhB,GAAMA,EAAEiB,aAAezE,YAA2BwD,EAAEiB,aAAezE,cAIxE,CAKW0E,mBACV,OAAsB,OAAtB,EAAIrM,WAAImJ,QACAzR,KAAKsU,OAAO/R,QAAKM,KAAK0R,GAAUA,EAAME,OAAQhB,GAAMA,EAAEiB,aAAezE,eAErEjQ,KAAKsU,OAAO/R,QAAKM,KAAK0R,GAAUA,EAAME,OAAQhB,GAAMA,EAAEiB,aAAezE,aAA4BwD,EAAEmB,eAActM,WAAImJ,UAE9H,CAEWoD,iBACV,SAAKvM,WAAIyI,YACRhH,WAAIgH,GAAc/Q,KAAKsH,QAAQzF,KAAK,kBAAkBU,QACrDM,KAAKpB,GACGA,EAAKqT,YACZ,EACDzB,KAAY,IACZ,QAEK/K,WAAIyI,OACZ,CAOOgE,sBAAsBC,GAAW,EAAOC,GAAe,GAC7D,OAAOjV,KAAK6U,WAAWtS,QACtBM,KAAKqS,IACJ,MAAMC,EAAQD,EAAIrS,IAAIuS,KACrBC,KAAMrV,KAAK8Q,UAAUwE,QAAQ,oBAAoBF,EAAaR,aAC9D3P,MAAOmQ,EAAaR,aAGrB,OAAIK,GACHE,EAAMI,QAAQ,CAACF,KAAMrV,KAAK8Q,UAAUwE,QAAQ,+BAAgCrQ,MAAOoI,eAGhF2H,GACHG,EAAMI,QAAQ,CAACF,KAAM,GAAIpQ,MAAO,OAG1BkQ,IAGV,CAEWK,kBACV,OAAKxV,KAAKyV,eACTzV,KAAKyV,aAAezV,KAAKsH,QAAQzF,KAAK,eAAeU,QACpDM,KAAKpB,GACGA,EAAKiU,SACZ,EACDrC,KAAY,KAGPrT,KAAKyV,YACb,CAEWE,wBACV,IAAK3V,KAAK6R,mBAAoB,CAC7B,MAAMvH,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAEdhT,KAAK6R,mBAAqB7R,KAAKsH,QAAQzF,KAAK,yBAA0ByI,GAAS/H,QAC9EM,KAAKpB,GACGA,EAAKmU,oBACZ,EACDvC,KAAY,IAGd,OAAOrT,KAAK6R,kBACb,CAMOgE,6BAA6Bb,GAAW,GAC9C,OAAOhV,KAAK2V,kBAAkBpT,QAC7BM,KAAKiT,IACJ,MAAMX,EAAQW,EAAGjT,IAAIkT,KACpBV,KAAMU,EAAIjL,KACV7F,MAAO8Q,EAAItS,MAGZ,OAAIuR,GACHG,EAAMI,QAAQ,CAACF,KAAMrV,KAAK8Q,UAAUwE,QAAQ,oBAAqBrQ,MAAO,OAGlEkQ,IAGV,CAEWa,aACV,OAAKhW,KAAKiW,UACTjW,KAAKiW,QAAUjW,KAAKsH,QAAQzF,KAAK,eAAeU,QAC/CM,KAAKpB,GACGA,EAAKyU,SACZ,EACD7C,KAAY,KAGPrT,KAAKiW,OACb,CAEWE,iBACV,OAAKnW,KAAKoW,cACTpW,KAAKoW,YAAcpW,KAAKsH,QAAQzF,KAAK,kBAAkBU,QACtDM,KAAKpB,GACGA,EAAK4U,YACZ,EACDhD,KAAY,KAIPrT,KAAKoW,WACb,CAEWE,oBACV,OAAKtW,KAAKuW,iBACTvW,KAAKuW,eAAiBvW,KAAKsH,QAAQzF,KAAK,cAAcU,QACrDM,KAAKpB,GACGA,EAAK+U,SACZ,EACDnD,KAAY,KAIPrT,KAAKuW,cACb,CAEWE,gBACV,IAAKzW,KAAKkS,WAAY,CACrB,MAAM5H,EAAwB,CAC7ByB,OAAQ/L,KAAKgT,aAEdhT,KAAKkS,WAAalS,KAAKsH,QAAQzF,KAAK,oBAAqByI,GAAS/H,QACjEM,KAAKpB,GACGA,EAAKiV,eACZ,EACDrD,KAAY,IAId,OAAOrT,KAAKkS,UACb,CAEWyE,iBACV,OAAK3W,KAAK4W,cACT5W,KAAK4W,YAAc5W,KAAKsH,QAAQzF,KAAK,kBAAkBU,QACtDM,KAAKpB,GACGA,EAAKoV,YACZ,EACDxD,KAAY,KAIPrT,KAAK4W,WACb,CAEWE,gBACV,OAAK9W,KAAK+W,aACT/W,KAAK+W,WAAa/W,KAAKsH,QAAQzF,KAAK,kBAAkBU,QACrDM,KAAKpB,GACGA,EAAKuV,YACZ,EACD3D,KAAY,KAIPrT,KAAK+W,UACb,CAEWE,qBACV,OAAKjX,KAAKkX,kBACTlX,KAAKkX,gBAAkBlX,KAAKsH,QAAQzF,KAAK,kBAAkBU,QAC1DM,KAAKpB,GACGA,EAAK0V,QACZ,EACD9D,KAAY,KAIPrT,KAAKkX,eACb,CAEWE,iBACV,IAAKpX,KAAK8R,YAAa,CACtB,MAAMxH,EAAwB,CAC7BuI,OAAQ,EACR9G,OAAQ/L,KAAKgT,aAGdhT,KAAK8R,YAAc9R,KAAKsH,QAAQzF,KAAK,mBAAoByI,GAAS/H,QACjEM,KAAKpB,GACGA,EAAK4V,cACZ,EACDhE,KAAY,IAId,OAAOrT,KAAK8R,WACb,CAEWwF,uBACV,IAAKtX,KAAKuX,kBAAmB,CAC5B,MAAMjN,EAAwB,CAC7BuI,OAAQ,EACR9G,OAAQ/L,KAAKgT,aAGdhT,KAAKuX,kBAAoBvX,KAAKsH,QAAQzF,KAAK,6BAA8ByI,GAAS/H,QACjFM,KAAKpB,GACGA,EAAK+V,WACZ,EACDnE,KAAY,IAId,OAAOrT,KAAKuX,iBACb,CAEWE,oBACV,IAAKzX,KAAK+R,eAAgB,CACzB,MAAMzH,EAAwB,CAC7BuI,OAAQ,EACR9G,OAAQ/L,KAAKgT,aAGdhT,KAAK+R,eAAiB/R,KAAKsH,QAAQzF,KAAK,iBAAkByI,GAAS/H,QAClEM,KAAKpB,GACGA,EAAKiW,YACZ,EACDrE,KAAY,IAId,OAAOrT,KAAK+R,cACb,CAEa4F,mBAAmB9E,EAAgB+E,GAAe,qCAC9D,MAAMtN,EAAmC,CACxCuI,SACA9G,OAAQpL,EAAKqS,YACb4E,WAGD,aADgDjX,EAAK2G,QAAQnF,KAAK,cAAemI,IACjEuN,YAAa,EAPiC,EAQ/D,CAEWC,oBACV,IAAK9X,KAAK+X,eAAgB,CACzB,MAAMzN,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAGdhT,KAAK+X,eAAiB/X,KAAKsH,QAAQzF,KAAK,4BAA6ByI,GAAS/H,QAC7EM,KAAKpB,GACGA,EAAKuW,eACZ,EACD3E,KAAY,IAId,OAAOrT,KAAK+X,cACb,CAEWE,aAYV,OAXKjY,KAAKkY,UAGTlY,KAAKkY,QAAUlY,KAAKsH,QAAQzF,KAAK,eAFJ,IAE6BU,QACzDM,KAAKpB,GACGA,EAAK0W,OACZ,EACD9E,KAAY,KAIPrT,KAAKkY,OACb,CAEWE,oBACV,IAAKpY,KAAKgS,eAAgB,CACzB,MAAM1H,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAGdhT,KAAKgS,eAAiBhS,KAAKsH,QAAQzF,KAAK,uBAAwByI,GAAS/H,QACxEM,KAAKpB,GACGA,EAAK4W,SACZ,EACDhF,KAAY,IAId,OAAOrT,KAAKgS,cACb,CAEOsG,6BACNtY,KAAKuY,wBAA0B,IAChC,CAEWC,6BAYV,OAXKxY,KAAKuY,0BAGTvY,KAAKuY,wBAA0BvY,KAAKsH,QAAQzF,KAAK,0BAFpB,IAEwDU,QACpFM,KAAKpB,GACGA,EAAKgX,oBACZ,EACDpF,KAAY,KAIPrT,KAAKuY,uBACb,CAEWG,gBACV,IAAK1Y,KAAKiS,WAAY,CACrB,MAAM3H,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAGdhT,KAAKiS,WAAajS,KAAKsH,QAAQzF,KAAK,gBAAiByI,GAAS/H,QAC7DM,KAAKpB,GACGA,EAAKkX,SACZ,EACDtF,KAAY,IAId,OAAOrT,KAAKiS,UACb,CAEW2G,2BACV,IAAK5Y,KAAKmS,sBAAuB,CAChC,MAAM7H,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAGdhT,KAAKmS,sBAAwBnS,KAAKsH,QAAQzF,KAAK,4BAA6ByI,GAAS/H,QACpFM,KAAKpB,GACGA,EAAKoX,cACZ,EACDxF,KAAY,IAId,OAAOrT,KAAKmS,qBACb,CAEW2G,6BACV,IAAK9Y,KAAKoS,wBAAyB,CAClC,MAAM9H,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAGdhT,KAAKoS,wBAA0BpS,KAAKsH,QAAQzF,KAAK,eAAgByI,GAAS/H,QACzEM,KAAKpB,GACGA,EAAKsX,qBACZ,EACD1F,KAAY,IAId,OAAOrT,KAAKoS,uBACb,CAmBW4G,iBACV,IAAKhZ,KAAKsS,YAAa,CACtB,MAAMhI,EAAwB,CAC7ByB,OAAQ/L,KAAKgT,YACbH,OAAQ,GAGT7S,KAAKsS,YAActS,KAAKsH,QAAQzF,KAAK,iBAAkByI,GAAS/H,QAC/DM,KAAKpB,GACGA,IACP,EACD4R,KAAY,IAId,OAAOrT,KAAKsS,WACb,CAGW2G,iBACV,OAAOjZ,KAAKkZ,uBACb,CAEOA,sBAAsBC,EAAoB,GAChD,IAAKnZ,KAAKoZ,YAAa,CACtB,MAAM9O,EAA6B,CAClCyB,OAAQ/L,KAAKgT,YACbmG,UAAWA,GAGZnZ,KAAKoZ,YAAcpZ,KAAKsH,QAAQzF,KAAK,iBAAkByI,GAAS/H,QAC/DM,KAAKpB,GACGA,IACP,EACD4R,KAAY,IAId,OAAOrT,KAAKoZ,WACb,CAEWC,kBACV,IAAKrZ,KAAKuS,aAAc,CACvB,MAAMjI,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAGdhT,KAAKuS,aAAevS,KAAKsH,QAAQzF,KAAK,oBAAqByI,GAAS/H,QACnEM,KAAKpB,GACGA,EAAKiS,OACZ,EACDL,KAAY,IAId,OAAOrT,KAAKuS,YACb,CAEW+G,wBACV,IAAKtZ,KAAKwS,mBAAoB,CAC7B,MAAMlI,EAA6B,CAClCyB,OAAQ/L,KAAKgT,aAGdhT,KAAKwS,mBAAqBxS,KAAKsH,QAAQzF,KAAK,wBAAyByI,GAAS/H,QAC7EM,KAAKpB,GACGA,EAAK8X,UACZ,EACDlG,KAAY,IAId,OAAOrT,KAAKwS,kBACb,CAEWgH,oBACV,IAAKxZ,KAAKyS,eAAgB,CACzB,MAAMnI,EAAgC,CACrCyB,OAAQ/L,KAAKgT,YACbyG,WAAY,MAGbzZ,KAAKyS,eAAiBzS,KAAKsH,QAAQzF,KAAK,oCAAqCyI,GAAS/H,QACrFM,KAAKpB,GACGA,EAAKiY,WACZ,EACDrG,KAAY,IAId,OAAOrT,KAAKyS,cACb,CAEOkH,oBAAoBC,GAC1B,MAAMtP,EAAgC,CACrCyB,OAAQ/L,KAAKgT,YACbyG,WAAYG,GAGb,YAAKlH,qBAAuB1S,KAAKsH,QAAQzF,KAAK,oCAAqCyI,GAAS/H,QAC3FM,KAAKpB,GACGA,EAAKiY,WACZ,EACDrG,KAAY,IAGNrT,KAAK0S,oBACb,CAEOmH,0BAA0BC,EAAmBF,GACnD,MAAMtP,EAAwC,CAC7CyB,OAAQ/L,KAAKgT,YACb+G,UAAWD,EACXlC,QAAS,KACT6B,WAAYG,GAUb,OAPY5Z,KAAKsH,QAAQzF,KAAK,mDAAoDyI,GAAS/H,QAC1FM,KAAKpB,GACGA,EAAKuY,UACZ,EACD3G,KAAY,GAId,CAEO4G,4BAA4BL,GAClC,MAAMtP,EAAsC,CAC3CyB,OAAQ/L,KAAKgT,YACbyG,WAAYG,GAUb,OAPY5Z,KAAKsH,QAAQzF,KAAK,yCAA0CyI,GAAS/H,QAChFM,KAAKpB,GACGA,EAAKuY,UACZ,EACD3G,KAAY,GAId,CAEa6G,gBAAgBN,GAAkB,qCAC9C,MAAMtP,EAAuC,CAC5CyB,OAAQxI,EAAKyP,YACbH,OAAQ,EACR4G,WAAYG,GAIb,aADqDrW,EAAK+D,QAAQnF,KAAK,eAAgBmI,IACvE6P,QAAS,EARqB,EAS/C,CAEOC,oBACN,MAAM9P,EAAiC,CACtCyB,OAAQ/L,KAAKgT,aAUd,OAPYhT,KAAKsH,QAAQzF,KAAK,iBAAkByI,GAAS/H,QACxDM,KAAKpB,GACGA,EAAK4Y,aACZ,EACDhH,KAAY,GAId,CAEaiH,yBAAyBC,GAAiB,qCACtD,MAAMjQ,EAAqC,CAC1CiQ,UAAWA,GAGZ,aADmD1P,EAAKvD,QAAQnF,KAAK,wBAAyBmI,IAC9EkQ,OAAQ,EAL8B,EAMvD,CAEaC,qBAAqBhB,GAAkB,qCACnD,MAAMnP,EAA+B,CACpCyB,OAAQX,EAAK4H,YACbyG,WAAYA,GAIb,aAD8CrO,EAAK9D,QAAQnF,KAAK,kCAAmCmI,IACnFoQ,SAAU,EAPyB,EAQpD,CAEWC,gBAYV,OAXK3a,KAAK2S,aAGT3S,KAAK2S,WAAa3S,KAAKsH,QAAQzF,KAAK,gBAFP,IAEiCU,QAC7DM,KAAKpB,GACGA,EAAKmZ,WACZ,EACDvH,KAAY,KAIPrT,KAAK2S,UACb,CAEakI,kBAAkB7W,EAAuB,MAAI,qCACzD,MAAMsG,EAAqC,CAC1CtG,SAAUA,GAGX,aADmD4H,EAAKtE,QAAQnF,KAAK,kBAAmBmI,IACxEwQ,OAAQ,EALiC,EAM1D,6MAl4BYjK,GAAe9P,kDAAf8P,EAAe7P,QAAf6P,EAAe5P,gFCrHtB,MAAO8Z,EAyBZjb,YAAoBC,eAjBZC,iBAA+C,IAkBvD,CAdWgb,iBACV,OAAKhb,KAAKib,cACTjb,KAAKib,YAAcjb,KACjBD,KACAa,IAAIma,EAAYG,WAChB3Y,QACAM,KAAIsY,GAAOA,IAA0B,EACrC9H,KAAY,KAGRrT,KAAKib,WACb,CASOG,UAAU5Z,GAChB,OAAOxB,KACLgb,WACAzY,QACAM,KAAIwY,GAASA,EAAMC,UAAUC,KAAKC,GAAKA,EAAEtO,SAAW1L,KAAK,EACzDia,MAAK,GAER,EAlCuBV,WAAW,eACVA,YAAY,GAAGA,EAAYW,4DANvCX,GAAWha,wCAAXga,EAAW/Z,QAAX+Z,EAAW9Z,qBADC,wBCiBzB,MAAM0a,GAAQ,CAACC,MAAeC,OA0CvB,IAAMC,GAAc,MAArB,MAAOA,kDAAc,0BAAdA,iCAFD,CAACf,GAAYgB,SAtBvBC,KACAC,KACAC,MACAC,KACAC,KACAC,KACAC,MAAoBX,GAUpBQ,KAlCaP,MAAeC,SA0CjBC,CAAc,oBCzC1B,gCAtBM,UACNS,EACAC,EACAlV,GAmBD,IAACmV,sBCzBM,MAAMvc,EAAc,CAC1Bwc,YAAY,EACZC,UAAW,sBACRxc,qBAAsB,wBACzBoc,QAAS,OACTK,iBAAkB,0CACfC,6BAA8B,eACjCC,eAAgB,yCAEhBC,sBAAuB,uCACvBC,qBAAsB,uCACnBC,kBAAmB,CACfC,GAAI,0CACJC,GAAI,0CACJC,GAAI,0CACJC,GAAI,2CAERC,uBAAwB,CACpBJ,GAAI,gDACJC,GAAI,gDACJC,GAAI,gDACJC,GAAI,iDAEXE,2BAA4B,QCHvB,MAAOC,GAoBZ1d,YAAY2d,EAAwBC,EAAe,IAClD1d,KAAKyd,WAAaA,EAClBzd,KAAK0d,KAAOA,CACb,CAnBcC,WACP,OAAO3d,KAAKyd,iBACHpQ,OACD,MAAO,4BACNA,aACD,MAAO,2BACNA,cACD,MAAO,2BACNA,cACD,MAAO,8BAEP,MAAO,uBAEnB,ECxBG,IAAMuQ,EAAc,MAArB,MAAOA,EAoDZ9d,YACSyK,EACAjD,EACAwJ,EACA+M,GAHA7d,YACAA,eACAA,iBACAA,gBApDFA,2BAAkD,IAAI0H,MAAyB,GAG9E1H,sBAA+BqN,aAC/BrN,eAA8B,KAG/BA,mBAAgC,EA8CpC,CAEUmL,OAAI,qCAEhB,MACM1I,QAAsC9B,EAAK2G,QAAQnF,KAAK,eADjC,IAE7BxB,EAAKmd,SAAWrb,EAASqb,SAEzBnd,EAAKod,aAELpd,EAAKmQ,UAAUkN,SAAS,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,OAEvDrd,EAAKmQ,UAAUmN,IAAItd,EAAKud,eAAeC,iBAEvC,MAAMC,EAAM,IAAIzO,GAAgB,CAC/B5D,OAAQpL,EAAKkd,SAAS7K,YACtBhP,SAAUrD,EAAK0d,mBAEhB1d,EAAK2d,gBAAkB3d,EAAK2G,QAAQnF,KAAK,YAAaic,GAEtDzd,EAAK4d,sBAAsBhV,KAAK5I,EAAK4J,KAAKf,IAAI,CAAC,cAE/C7I,EAAK6d,wBAAyB,EApBd,EAqBjB,CAEcT,aAAU,qCAEvB,GAAmC,iBAAxB7d,WAA4D,SAAxBA,UAAgC,CAO9E,IAAIqc,EAAUhZ,EAAKua,SAASvC,KAAMkD,GAAMA,EAAEC,OAAS7Z,OAAO6F,SAASiU,UAC9DpC,IACJA,EAAUhZ,EAAKua,SAAS,IAEzBva,EAAK2a,eAAiB3B,OAGtBhZ,EAAK2a,eAAiB3a,EAAKua,SAASvC,KAAMqD,GAAOA,EAAGnb,KAAOvD,WAG5DqD,EAAK8a,iBAAmB9a,EAAK2a,eAAetJ,SAAU,EAnB/B,EAoBxB,CAiDOiK,YAAY1U,GAClBnK,KAAK8Q,UAAUmN,IAAI9T,EAAS+C,OAC7B,CAyBO4R,gBAAgBC,EAAkBC,EAAmB,MAE3D,MAAO,GAAGA,OAAcD,GACzB,CAGOE,gBAAgBF,GACtB,OAAKA,GAAyB,KAAbA,GAAuC,IAApBA,EAAStV,OAKtC,SADPsV,EAAW/e,KAAKkf,uBAAuBH,YAHtCve,QAAQ+L,KAAK,sBAAsBwS,OAC5B,GAIT,CAEOG,uBAAuBC,GAC7B,OAAOA,EAAQC,OAAOC,cAAcC,QAAQ,IAAK,IAClD,CAQOC,cAAcR,GACpB,GAAsB,MAAlB/e,KAAKse,WAA6C,MAAxBte,KAAKse,UAAUkB,MAAe,OAAO,EAEnE,MAAMC,EAAOzf,KAAKse,UAAUkB,MAAMjE,KAAM3R,GAAMA,EAAEkB,KAAKV,gBAAkB2U,EAAS3U,eAChF,OAAY,MAARqV,EAAqB,EAClBA,EAAKhc,EACb,CAuBOic,kBACN,OAAsB,MAAlB1f,KAAKse,WAA8C,MAAzBte,KAAKse,UAAUqB,OAAuB,EAC7D3f,KAAKse,UAAUqB,QAAQlc,IAAM,CACrC,CAEOmc,eACN,OAAsB,MAAlB5f,KAAKse,WAAkD,MAA7Bte,KAAKse,UAAUuB,WAA2B,GAEjE7f,KAAKse,UAAUuB,YAAYhd,IAAKid,GAC/B,IAAIzQ,GAAS,CACnBE,KAAMuQ,EAAEC,OACRjV,KAAMgV,EAAEhV,KACR0E,QAASsQ,EAAElI,QACXtI,WAAYwQ,EAAErc,GACdxB,IAAK6d,EAAE7d,MAGV,CAMOuc,yBAeNxe,KAAK6d,SACH9I,wBACApD,UAAWmD,IAEXA,EAAUjS,IAAKmB,IACdhE,KAAKggB,cAAcnR,KAAK,IAAI2O,GAAaxZ,EAASiB,MAAOjB,EAASqR,MAAK,EACxE,EAEH,+CAtRYuI,GAAc7c,oEAAd6c,EAAc5c,QAAd4c,EAAc3c,YAAd2c,CAAc,KCoBdqC,GAAkB,MAAzB,MAAOA,EAMZngB,YACSwH,EACDiV,EACC2D,GAFAlgB,eACDA,eACCA,gBARDA,yBAAiD,KACjDA,4BAAwD,GACxDA,6BAAyD,KAQhEA,KAAKmgB,YAAc,CAClBtN,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACpCsI,OAAQ/L,KAAKkgB,SAASlN,YAExB,CAMOoN,kBACN,GAAgC,MAA5BpgB,KAAKqgB,oBACR,IACCrgB,KAAKqgB,oBAAsBrgB,KAAKsH,QAC9BzF,KA/BkB,mBA+BI7B,KAAKmgB,aAC3B5d,QACAM,KAAKpB,GACGA,EAAK6e,eACZ,EACDjN,KAAY,UAEN3Q,GACRlC,QAAQkC,MAAMA,GAGhB,OAAO1C,KAAKqgB,mBACb,CAEOE,mBAAmBC,GACzB,IAAKxgB,KAAKygB,uBAAuBD,GAChC,IACC,MAAME,EAAuC,CAC5C7N,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACpCsI,OAAQ/L,KAAKkgB,SAASlN,YACtB2N,cAAeH,GAGhBxgB,KAAKygB,uBAAuBD,GAAiBxgB,KAC3CsH,QACAzF,KAzDkB,kBAyDI6e,GACtBne,QACAM,KAAKpB,GACGA,EAAKmf,cACZ,EACDvN,KAAY,UAEN3Q,GACRlC,QAAQkC,MAAMA,GAGhB,OAAO1C,KAAKygB,uBAAuBD,EACpC,CAMOK,sBACN,GAAoC,MAAhC7gB,KAAK8gB,wBACR,IACC9gB,KAAK8gB,wBAA0B9gB,KAAKsH,QAClCzF,KA7E4B,uBA6EI7B,KAAKmgB,aACrC5d,QACAM,KAAKpB,GACGA,EAAK6e,eACZ,EACDjN,KAAY,UAEN3Q,GACRlC,QAAQkC,MAAMA,GAGhB,OAAO1C,KAAK8gB,uBACb,CAEOC,mBAAmBC,GACzB,IAAIC,EACJ,YAAKJ,sBAAsBlP,UAAWlQ,IACrCwf,EAAMxf,EAAKuf,KAELC,CACR,+CA5FYhB,GAAkBlf,wDAAlBkf,EAAkBjf,QAAlBif,EAAkBhf,qBAFlB,SAEAgf,CAAkB,KCZlBiB,GAAW,MAAlB,MAAOA,EAKZphB,YACSwH,EACDiV,EACC2D,GAFAlgB,eACDA,eACCA,gBAPDA,kBAAmC,KACnCA,qBAA0C,GAQjDA,KAAKmgB,YAAc,CAClBtN,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACpCsI,OAAQ/L,KAAKkgB,SAASlN,YAExB,CAMOmO,WACN,GAAyB,MAArBnhB,KAAKohB,aACR,IACCphB,KAAKohB,aAAephB,KAAKsH,QACvBzF,KA7BkB,YA6BI7B,KAAKmgB,aAC3B5d,QACAM,KAAKpB,GACGA,EAAK4f,OACZ,EACDhO,KAAY,UAEN3Q,GACRlC,QAAQkC,MAAMA,GAGhB,OAAO1C,KAAKohB,YACb,CAEOE,YAAYC,GAClB,IAAKvhB,KAAKwhB,gBAAgBD,GACzB,IACC,MAAMb,EAAgC,CACrC7N,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACpCsI,OAAQ/L,KAAKkgB,SAASlN,YACtByO,OAAQF,GAGTvhB,KAAKwhB,gBAAgBD,GAAUvhB,KAC7BsH,QACAzF,KAvDkB,WAuDI6e,GACtBne,QACAM,KAAKpB,GACGA,EAAKigB,OACZ,EACDrO,KAAY,UAEN3Q,GACRlC,QAAQkC,MAAMA,GAGhB,OAAO1C,KAAKwhB,gBAAgBD,EAC7B,+CA7DYL,GAAWngB,wDAAXmgB,EAAWlgB,QAAXkgB,EAAWjgB,qBAFX,SAEAigB,CAAW,KCDXS,GAAW,MAAlB,MAAOA,EAIZ7hB,YACSwH,EACDiV,EACC2D,GAFAlgB,eACDA,eACCA,gBALDA,kBAAuC,EAM3C,CAUG4hB,YAAYC,GAClB,IAAK7hB,KAAK8hB,aAAaD,GACtB,IACC,MAAMnB,EAAgC,CACrC7N,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACpCsI,OAAQ/L,KAAKkgB,SAASlN,YACtB9E,OAAQ2T,GAGT7hB,KAAK8hB,aAAaD,GAAU7hB,KAC1BsH,QACAzF,KAAK,WAAY6e,GACjBne,QACAM,KAAKpB,GACGA,EAAKsgB,OACZ,EACD1O,KAAY,UAEN3Q,GACRlC,QAAQkC,MAAMA,GAGhB,OAAO1C,KAAK8hB,aAAaD,EAC1B,+CAzCYF,GAAW5gB,wDAAX4gB,EAAW3gB,QAAX2gB,EAAW1gB,qBAFX,SAEA0gB,CAAW,KC8BXK,EAAU,MAAjB,MAAOA,EAWZliB,YACSwH,EACDiV,EACC2D,EACA+B,EACAC,EACAC,GALAniB,eACDA,eACCA,gBACAA,0BACAA,mBACAA,mBAhBFA,kBAAyC,IAAI0H,MAAyB,GAIrE1H,iBAAsC,KACtCA,sBAA2C,KAC3CA,qBAA0C,GAC1CA,uBAA4C,GAC5CA,qBAA4C,EAcpD,CAMOoiB,UACN,GAAwB,MAApBpiB,KAAKqiB,YACR,IACCriB,KAAKsiB,aAAa/Y,MAAK,GACX,MAAM4W,EAA4B,CAC9BtN,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACpCsI,OAAQ/L,KAAKkgB,SAASlN,aAEtChT,KAAKqiB,YAAcriB,KAAKsH,QAAQzF,KA/Cd,WA+CkCse,GAAa5d,QAChEM,KAAKpB,GACGA,EAAK8gB,WACZ,EACDlP,KAAY,UAEL3Q,GACRlC,QAAQkC,MAAMA,WAEd1C,KAAKsiB,aAAa/Y,MAAK,GAIzB,OAAOvJ,KAAKqiB,WACb,CAMOzC,eACN,GAA6B,MAAzB5f,KAAKwiB,iBACR,IACCxiB,KAAKsiB,aAAa/Y,MAAK,GACX,MAAM4W,EAA4B,CAC9BtN,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACpCsI,OAAQ/L,KAAKkgB,SAASlN,aAEtChT,KAAKwiB,iBAAmBxiB,KAAKsH,QAAQzF,KAvEd,gBAuEuCse,GAAa5d,QAC1EM,KAAKpB,GACGA,EAAK8gB,WACZ,EACDlP,KAAY,UAEL3Q,GACRlC,QAAQkC,MAAMA,WAEd1C,KAAKsiB,aAAa/Y,MAAK,GAIzB,OAAOvJ,KAAKwiB,gBACb,CAOOC,YAAYC,GAEZ,MAAMC,EAAiB3iB,KAAKkgB,SAASlN,YAC/B4P,EAAU,GAAGF,KAAUC,IAE7B,GAAqC,MAAjC3iB,KAAK6iB,gBAAgBD,GAC9B,IACC5iB,KAAKsiB,aAAa/Y,MAAK,GAOXvJ,KAAK6iB,gBAAgBD,GAAW5iB,KAAKsH,QAAQzF,KA7GvC,eAuGwB,CACzCgR,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACrBsI,OAAQ4W,EACvBG,WAAYJ,IAG8EngB,QAC1FM,KAAKpB,GACGA,EAAKshB,WACZ,EACD1P,KAAY,UAEL3Q,GACRlC,QAAQkC,MAAMA,WAEd1C,KAAKsiB,aAAa/Y,MAAK,GAInB,OAAOvJ,KAAK6iB,gBAAgBD,EACnC,CAOUI,cAAcN,GAEjB,MAAMC,EAAiB3iB,KAAKkgB,SAASlN,YAC/B4P,EAAU,GAAGF,KAAUC,IAE7B,GAAuC,MAAnC3iB,KAAKijB,kBAAkBL,GAChC,IACC5iB,KAAKsiB,aAAa/Y,MAAK,GAOXvJ,KAAKijB,kBAAkBL,GAAW5iB,KAAKsH,QAAQzF,KA/IvC,aAyIwB,CAC3CgR,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACrBsI,OAAQ4W,EACvBG,WAAYJ,IAGkFngB,QAC9FM,KAAKpB,GACGA,IACP,EACD4R,KAAY,UAEL3Q,GACRlC,QAAQkC,MAAMA,WAEd1C,KAAKsiB,aAAa/Y,MAAK,GAInB,OAAOvJ,KAAKijB,kBAAkBL,EACrC,CAMOxC,kBACN,OAAOpgB,KAAKiiB,mBAAmB7B,iBAChC,CAMOS,sBACN,OAAO7gB,KAAKiiB,mBAAmBpB,qBAChC,CAMOM,WACN,OAAOnhB,KAAKkiB,YAAYf,UACzB,CAMO+B,QAAQrB,GACd,OAAO7hB,KAAKmiB,YAAYP,YAAYC,EACrC,CAQOsB,WAAWC,EAAmBC,GAAsB,GAEpD,MAAMV,EAAiB3iB,KAAKkgB,SAASlN,YAC/B4P,EAAU,GAAGQ,KAAaT,IAGhC,GAAqC,MAAjC3iB,KAAKsjB,gBAAgBV,GAC9B,IACC5iB,KAAKsiB,aAAa/Y,MAAK,GAOXvJ,KAAKsjB,gBAAgBV,GAAW5iB,KAAKsH,QAAQzF,KAnNpC,cA6MuB,CAC3C0hB,UAAWH,EACIrX,OAAQ4W,EACvBU,WAAYA,IAGiF9gB,QAC7FM,KAAKpB,GACGA,EAAK+hB,UACZ,EACDnQ,KAAY,UAEL3Q,GACRlC,QAAQkC,MAAMA,WAEd1C,KAAKsiB,aAAa/Y,MAAK,GAInB,OAAOvJ,KAAKsjB,gBAAgBV,EACnC,+CA1NYZ,GAAUjhB,sFAAVihB,EAAUhhB,QAAVghB,EAAU/gB,qBAFV,SAEA+gB,CAAU,oBCpChB,IAAMyB,GAAiB,MAAxB,MAAOA,EA0DZ3jB,YACQ4jB,EACAC,EACAC,EACAC,GAHA7jB,kBACAA,sBACAA,oBACAA,wBA7DDA,iBAAqB,EACrBA,cAAmB,GAGnBA,iBAAcyP,GAMVzP,cAAqC,IAAI0H,MAAyB,GA6ClE1H,kBAAe,IAAI8jB,IAO3B,CAxDQC,gBACJ,OAAQ7jB,YACf,CAGW8jB,gBACV,OAAOhkB,KAAKikB,SAAS1b,cACtB,CAEW2b,iBACV,OAAOlkB,KAAK+iB,UAAUoB,WAAW,EAClC,CAEWC,mBACV,OAAOpkB,KAAK+iB,UAAUoB,YAAYE,MAAM,EACzC,CAEOC,eAAeC,GAA+B,GACpD,IAAI7G,EAAO1d,KAAK+iB,UAAUoB,WAAW,IAAIzG,MAAQ,GACjD,GAAY,IAARA,EAAY,MAAO,GAEvB,MAAM8G,EAAY9G,EAAK+G,MAAM,KAC7B,QAASC,EAAI,EAAGA,EAAIF,EAAU/a,OAAQib,IACjCF,EAAUE,GAAGjb,OAAS,IAAM8a,IAChCC,EAAUE,GAAKF,EAAUE,GAAGC,OAAO,GAAGtF,cAAgBmF,EAAUE,GAAGL,MAAM,IAE1E,OAAOG,EAAUI,KAAK,IACvB,CAEOC,oBACN,IAAK7kB,KAAK+iB,UAAUoB,WAAW,IAAIW,QAClC,MAAO,GAER,IAAIhiB,EAAiB9C,KAAK+iB,UAAUoB,WAAW,IAAIW,SAAW,GAS9D,OAPI9kB,KAAK+jB,YAIRjhB,EAAS,8BAHc9C,KAAK+iB,UAAUoB,WAAW,IAAI1gB,IAAM,OAChCzD,KAAK+iB,UAAUoB,WAAW,IAAIY,WAAWC,YAAc,YAETliB,GAGnEA,CACR,CAEOmiB,yBACN,OAAOjlB,KAAK+iB,UAAUoB,YAAYe,KACnC,CAWAC,WACsB,IAAjBnlB,KAAK+e,WAKH/e,KAAKolB,aAAaC,IACdrlB,KAAK6jB,iBAAiBnS,aAAaC,UAAU,KACzC3R,KAAKslB,UAAQ,IAGrBtlB,KAAKslB,WACZ,CAEWA,WACJtlB,KAAKulB,WAAavlB,KAAK2jB,eAAepE,cAAcvf,KAAK+e,UAGrD/e,KAAKulB,WAAa,IAClBvlB,KAAKikB,SAAS1a,MAAK,GACnBvJ,KAAKolB,aAAaC,IACdrlB,KAAK0jB,WAAWjB,YAAYziB,KAAKulB,YAAY5T,UAAWlQ,IACpDzB,KAAK+iB,SAAWthB,EAChBzB,KAAKikB,SAAS1a,MAAK,EAAK,KAKpC,MAAMic,EAAsBxlB,KAAK2jB,eAAezE,uBAAuB,aACjEuG,EAAsBzlB,KAAK2jB,eAAe1E,gBAAgBjf,KAAK+e,UAErE/e,KAAKolB,aAAaC,IAAIrlB,KAAK6jB,iBAAiBjjB,IAAI,CAAC4kB,EAAaC,IAAc9T,UAAW+T,IAC/E1lB,KAAK4jB,aAAa+B,SAAS3lB,KAAK2jB,eAAe7E,gBAAgB4G,EAAOD,GAAcC,EAAOF,IAAa,GAGpH,CAEAI,cACI5lB,KAAKolB,aAAaS,aACtB,+CAxGSpC,GAAiB1iB,oEAAjB0iB,EAAiBqC,uEAAjBrC,CAAiB,KCGjBsC,GAAa,MAApB,MAAOA,EAeZjmB,YACQyc,EACCjV,EACA4Y,GAFDlgB,eACCA,eACAA,gBAhBDA,oBAAuC,KACpCA,oBAA0B+N,WAiB9B/N,KAAKgmB,eAAiBhmB,KAAKkgB,SAASlN,WAC3C,CAhBWiT,iBACV,IAAInjB,GAAS,EACb,OAA2B,MAAvB9C,KAAKkmB,gBACRlmB,KAAKkmB,eAAevU,UAAWlQ,IAC9BqB,EAASrB,EAAKgI,OAAS,IAGlB3G,CACR,CAUOqjB,aACN,GAA2B,MAAvBnmB,KAAKkmB,gBAA0BlmB,KAAKgmB,gBAAkBhmB,KAAKkgB,SAASlN,YACvE,IACahT,KAAKgmB,eAAiBhmB,KAAKkgB,SAASlN,YAKhDhT,KAAKkmB,eAAiBlmB,KAAKsH,QACzBzF,KAnCkB,mBA8B0B,CAC7CgR,OAAQ7S,KAAKuc,QAAQ2B,eAAeza,GACrBsI,OAAQ/L,KAAKgmB,iBAI3BzjB,QACAM,KAAKpB,GACGA,EAAK2kB,UACZ,EACD/S,KAAY,UAEN3Q,GACRlC,QAAQkC,MAAMA,GAGhB,OAAO1C,KAAKkmB,cACb,CAEAG,cAAc5iB,GAAa,+CA9CfsiB,GAAahlB,wDAAbglB,EAAa/kB,QAAb+kB,EAAa9kB,YAAb8kB,CAAa,KCTbO,EAAU,MAAjB,MAAOA,EAcZxmB,YAAoBgR,oBAbb9Q,iBAAc,CACpBumB,MAAO,SACPC,SAAU,YACVC,aAAc,gBACdC,KAAM,QACNC,MAAO,SACPC,OAAQ,UACRC,SAAU,YACVC,KAAM,SACNC,QAAS,WACTC,gBAAiB,sBAIlB,CAEAC,sBAAsBzG,GACrB,MAAO,CAACxgB,KAAKknB,YAAYT,aAAcjG,EACxC,CAEA2G,eAAe5F,GACd,MAAO,CAACvhB,KAAKknB,YAAYP,MAAOpF,EACjC,CAEA6F,eAAevF,GACd,MAAO,CAAC7hB,KAAKknB,YAAYJ,KAAMjF,EAChC,CAEAwF,kBAAkBjE,GACjB,MAAO,CAACpjB,KAAKknB,YAAYH,QAAS3D,EACnC,CAEAkE,0BAA0BlE,EAAmBpC,GAC5C,MAAO,CAAChhB,KAAKknB,YAAYF,gBAAiB5D,EAAWpC,EACtD,CAEAuG,cAAcnE,GACb,MAAO,YAAYA,GACpB,CAEOoE,eAAeC,GACtB,CAKUC,8BAA8Bnd,GACvC,IAAIoT,EAAO,GACL,OAAQpT,EAAKvG,eACJqJ,aACDsQ,EAAOzd,uBACP,WACCmN,cACDsQ,EAAOzd,uBACP,WACCmN,cACDsQ,EAAOzd,uBACP,cAGAyd,EAAOzd,uBAGf,OAAOyd,CACd,CAMUgK,kCAAkCpd,GACrC,IAAIoT,EAAO,GACX,OAAQpT,EAAKvG,eACJqJ,aACDsQ,EAAOzd,uBACP,WACCmN,cACDsQ,EAAOzd,uBACP,WACCmN,cACDsQ,EAAOzd,uBACP,cAGAyd,EAAOzd,uBAGf,OAAOyd,CACX,CAEIiK,iBACN,MAAO,CAAC1nB,iBACT,+CA7FYomB,GAAUvlB,wCAAVulB,EAAUtlB,QAAVslB,EAAUrlB,qBAFV,SAEAqlB,CAAU,KCRjB,MAAOuB,GAMZ/nB,YAAYgoB,EAAapK,EAAe,GAAIqK,EAAkB,GAAItkB,EAAa,GAC9EzD,KAAKyD,GAAKA,EACVzD,KAAK8nB,IAAMA,EACX9nB,KAAK0d,KAAOA,EACZ1d,KAAK+nB,QAAUA,CAChB,ECLM,IAAMC,GAAa,MAApB,MAAOA,EAIZloB,cAHSE,kCAA8B,EAC9BA,wBAAoB,CAG7B,CASOioB,YAAYC,EAAaC,EAAcnoB,KAAKooB,mBAClD,IAAItlB,EAAS,SACb,GAAIolB,EAAK,CAQR,GAPyB,IAArBA,EAAIre,QAAQ,OACfqe,EAAMA,EAAI7D,MAAM,IAGE,IAAf6D,EAAIze,SACPye,EAAMA,EAAI,GAAKA,EAAI,GAAKA,EAAI,GAAKA,EAAI,GAAKA,EAAI,GAAKA,EAAI,IAEpC,IAAfA,EAAIze,QAAiC,IAAfye,EAAIze,QAAiC,IAAfye,EAAIze,OACpD,MAAM,IAAIpI,MAAM,sBAGjB,IAAIgnB,EAAIziB,SAASsiB,EAAI7D,MAAM,EAAG,GAAI,IAC9BiE,EAAI1iB,SAASsiB,EAAI7D,MAAM,EAAG,GAAI,IAC9BkE,EAAI3iB,SAASsiB,EAAI7D,MAAM,EAAG,GAAI,IAE9B8D,GACHE,GAAQ,KACRC,GAAQ,KACRC,GAAQ,KACRzlB,EAAWulB,EAAIC,EAAIC,EAAK,IAAO,SAAW,WAE1CF,GAAI,IACJC,GAAI,IACJC,GAAI,IAGJzlB,EACCulB,EAAErD,SAAS,IAAIwD,SAAS,EAAG,KAC3BF,EAAEtD,SAAS,IAAIwD,SAAS,EAAG,KAC3BD,EAAEvD,SAAS,IAAIwD,SAAS,EAAG,MAG9B,MAAO,IAAI1lB,GACZ,CAMA2lB,oBAAoBP,EAAaQ,EAAgB,MAChD,GAAIR,IACsB,IAArBA,EAAIre,QAAQ,OACfqe,EAAMA,EAAI7D,MAAM,IAEE,IAAf6D,EAAIze,SACPye,EAAMA,EAAI,GAAKA,EAAI,GAAKA,EAAI,GAAKA,EAAI,GAAKA,EAAI,GAAKA,EAAI,IAErC,IAAfA,EAAIze,QACP,MAAM,IAAIpI,MAAM,sBAGlB,MAAO,IAAI6mB,IAAMQ,GAClB,CAQAC,mBAAmBjL,EAAckL,EAAoB,GAEpD,GAAa,MADblL,EAAOA,GAAQ,IACE,MAAO,GAExB,MAAM8G,EAAY9G,EAAK+G,MAAM,KAC7B,QAASC,EAAI,EAAGA,EAAIF,EAAU/a,OAAQib,IACjCF,EAAUE,GAAGjb,OAASmf,IAE1BpE,EAAUE,GAAKF,EAAUE,GAAGC,OAAO,GAAGtF,cAAgBmF,EAAUE,GAAGL,MAAM,GAAGja,eAG7E,OAAOoa,EAAUI,KAAK,IACvB,CAEAiE,eACC,MAAO,0BACR,+CA7FYb,EAAa,4BAAbA,EAAahnB,QAAbgnB,EAAa/mB,qBAFb,SAEA+mB,CAAa,2BCN1BjnB,mCAICA,eAE6B,WAE3BA,iBAGAA,gBACqE,WAEnEA,eACDA,QACAA,iBAC+BA,SAA6CA,UAE7EA,kBAAuB,YACEA,UAAkBA,QAC1CA,mBAAuB,WACQA,iBAAMA,sCAjBvCA,6DACAA,8BAGEA,qCAAoB,6BAGpBA,gHAEIA,iGAGHA,wCAA8BA,2FAGPA,+BAEpBA,4EAQPA,kBAECA,kBAMDA,8BAPCA,8BAECA,8DChBI,IAAM+nB,GAAmB,MAA1B,MAAOA,EAQZhpB,YACQgR,EACAiY,EACAC,GAFAhpB,iBACAA,kBACAA,qBALDA,iBAAcmQ,EAKkB,CAVnC8Y,oBACG,OAA0C,MAAtCjpB,KAAKkpB,OAAOtI,aAAauI,UAA0B,KACtDnpB,KAAKgpB,cAAcf,YAAYjoB,KAAKkpB,OAAOtI,YAAYuI,UAAWnpB,KAAKgpB,cAAcI,4BAC7F,CASAjE,WAAkB,CAElBkE,UAAUC,GACT,GAAIA,GAAKA,EAAE7f,OAzBS,IAyBe,CAElC,MAAM8f,GADND,EAAIA,EAAE3jB,UAAU,EA1BG,MA2BC6jB,YAAY,KAChCF,EAAIA,EAAE3jB,UAAU,EAAG4jB,GAAa,MAEjC,OAAOD,CACR,CAEAG,QAAQC,GACD,OAAiB,MAAbA,EAA0B,MAC/BA,IACJA,EAAY,eAENA,EACR,CAEAC,SAAS9V,GACR,OAAKA,GACAA,EAAM+V,WAAW,OACrB/V,EAAQ,IAAMA,GAER7T,KAAKgpB,cAAcf,YAAYpU,EAAO7T,KAAKgpB,cAAcI,8BAJ7CppB,KAAKipB,aAKzB,CAEAY,WAAWC,GACV,OAAKA,GACAA,EAAQF,WAAW,OACvBE,EAAU,IAAMA,GAEVA,GArDwB,SAsDhC,CAEAC,cAAcrM,GACb,OAAO1d,KAAKgpB,cAAcL,mBAAmBjL,EAC9C,CAEAsM,SAASC,GAQRA,OAAQA,EAAM3K,QAAQ,MAAO,sBAE9B,CAEA4K,UAAUhB,GACT,OAAOA,EAAOiB,YAAcha,WAA2C,MAArB+Y,EAAOkB,UAC1D,CAEAC,cAAcnB,GACb,GAAIA,EAAOiB,YAAcha,UAExB,MAAO,GAOR,IAAIrN,EAAiB,GAErB,GAAIomB,EAAOkB,WAAY,CACtB,MACME,EAAqBpB,EAAOoB,mBAAmB3kB,UAAU,GAI9D7C,EADyB,MAAtBwnB,EACMA,EAAmBjL,cAEnB,MAIX,OAAOvc,CACR,+CA7FYgmB,GAAmB/nB,yDAAnB+nB,EAAmBhD,oeDjBhC/kB,iCAGAA,6CA0BAA,6EA7BeA,0DAAkD,aAAlDA,CAAkD,onKCiBpD+nB,CAAmB,sCCX1B/nB,kBAC8D,WAD9DA,CAC8D,WAD9DA,CAC8D,SAD9DA,CAC8D,QAItDA,SAAgBA,QACpBA,gBAA+BA,gBAAMA,2DALxCA,2DAGKA,+DACEA,uBACDA,mEAPRA,2DALLA,qBAAqD,UAArDA,CAAqD,UAArDA,CAAqD,UAArDA,CAAqD,oBAKhDA,uBAaDA,sCAdcA,6BAC2BA,qHAuBzCA,SACCA,iCAGDA,4DAFEA,qCAA4B,oEALjCA,SACCA,iBAAiB,YAEfA,iCAKDA,UAEFA,8BAPkCA,qEAWhCA,kBACCA,6BACDA,kCADiBA,sDAHnBA,sBAAiD,WAE/CA,yBAGDA,gCAHmDA,iFASjDA,SACCA,iCAGDA,4DAFEA,qCAA4B,oEALjCA,SACCA,iBAAiB,YAEfA,iCAKDA,UAEFA,8BAPkCA,sGAoBhCA,SACCA,sBAGCA,iBAAiC,YAElCA,QACDA,6CAJEA,qDADAA,uBAEIA,yCACCA,uEANRA,YACCA,kCAWDA,uCAZcA,+BACEA,uDC/CZ,MAAOwpB,WAA0B9G,GAyDtC3jB,YACC4jB,EACAC,EACAC,EACOC,EACA2G,EACAzB,EACAC,EACCyB,EACkBC,EAC1BC,EACA7Z,GACAvG,GACAqgB,IAEAlpB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAXzC7jB,wBACAA,qBACAA,kBACAA,qBACCA,iBACkBA,iBA9DXA,sCAAmC,EACnCA,qCAAmC,GACnCA,qCAAmC,IAEnDA,iBAAc,CACb6qB,aAAc,EACdC,eAAgB,EAChBC,UACC,2FACDC,UACC,0FACDC,MAAM,EACNC,UAAU,EACVC,OAAO,EACPC,WAAY,CACX,CACCC,WAAY,KACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,EAChBI,UAAU,IAIZ,CACCG,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,IAGlB,CACCO,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,MAMb9qB,YAAkB,GAMdA,UAAO,IAAI8jB,KACX9jB,eAAY,IAAI8jB,KAG3ByH,YAAyB,qBAkBxBvrB,KAAK+e,SAAW,MACjB,CA3BWyM,gBACV,OAAOxrB,KAAKyrB,OAAOhiB,OAAS,CAC7B,CA2BA0b,WACCzjB,MAAMyjB,WAGAnlB,KAAK0rB,KAAKrG,IACNrlB,KAAK6jB,iBAAiBnS,aAAaC,UAAU,KACzC3R,KAAK2rB,cAAY,IAGzB3rB,KAAK2rB,cAUZ,CAEWA,eACC3rB,KAAK4rB,UAAUC,QAChB7rB,KAAK4rB,UAAU/F,cAEnB7lB,KAAK4rB,UAAY5rB,KAAKwqB,cAAcrE,aAAaxU,UAAWlQ,IAEpDzB,KAAKomB,QADL3kB,EACeA,EAAKqqB,KAAK,CAACC,EAAGxD,IAAMwD,EAAEC,OAASzD,EAAEyD,QAEjC,GAEnBhsB,KAAKisB,aACLjsB,KAAK4rB,UAAU/F,aAAW,EAElC,CAMKoG,aAEP,IADKjsB,KAAKomB,SACmB,IAAzBpmB,KAAKomB,SAAS3c,OAAc,OAE1B,MAAMgiB,EAAkB,GAE9BzrB,KAAKomB,QACH3R,OAAQyX,GAAMA,EAAE/B,aAAeha,YAC/BxG,QAASuf,IACGuC,EAAO5c,KAClB,IAAIgZ,GACHqB,EAAOiD,OACPjD,EAAOkD,MACPlD,EAAOe,MACPf,EAAOzlB,IACP,GAIEzD,KAAKyrB,OAASA,CACrB,CAEOY,4BAA4BC,GAGlC,MAAO,QADQ,MAAdA,GAAOxE,IAAcwE,EAAMxE,IAAM9nB,KAAKgpB,cAAcH,kBAEtD,CAEO0D,eACN,MAAMC,EAA0BxsB,KAAK0qB,UAAU+B,kBAC9CnkB,WAAIijB,SAEAiB,GAEcxsB,KAAKyqB,UAAUiC,YACjC1sB,KAAK0qB,UAAUiC,KACfH,EAEF,CASO/J,YACNmK,EAAsB5sB,KAAK6sB,iCAC3BC,EAAsB9sB,KAAK+sB,iCAE3B,IAAIjqB,EAA4B,GAEhC,OAAgC6K,MAA5B3N,KAAK+iB,SAASoB,aACjBrhB,EAAS9C,KAAK+iB,SAASoB,WAAW1P,OAChC7F,GAASA,EAAKoe,OAASJ,GAAehe,EAAKoe,OAASF,IAKhDhqB,CACR,CAEOmqB,SAASC,EAAgB,EAAGC,EAAiB,IACnDA,SAAkBD,EAAMlI,UAEzB,CAEGY,cACI5lB,KAAK0rB,KAAK7F,aACd,wDA1LS0E,IAAiBxpB,0FAkEpBqsB,MAAQrsB,qEAlELwpB,GAAiBzE,+mBDrB9B/kB,4BAwBAA,iBACCA,iCAYAA,4BAQAA,iCAqBAA,2CAeDA,eAjFoCA,0BAyBpBA,kCAYWA,6DAQXA,yjCE7BT,IAAMssB,GAAwB,MAA/B,MAAOA,EAMZvtB,YACQipB,EACAC,GADAhpB,kBACAA,oBACJ,CARAipB,oBACH,OAAOjpB,KAAKgpB,cAAcf,YAAYjoB,KAAK4gB,YAAYuI,UAAWnpB,KAAKgpB,cAAcI,4BACtF,CAQAjE,WACA,CAEAkE,UAAUC,GACT,GAAIA,GAAKA,EAAE7f,OAtBS,IAsBe,CAElC,MAAM8f,GADND,EAAIA,EAAE3jB,UAAU,EAvBG,MAwBC6jB,YAAY,KAChCF,EAAIA,EAAE3jB,UAAU,EAAG4jB,GAAa,MAEjC,OAAOD,CACR,CAEAG,QAAQC,GACP,OAAKA,IACJA,EAAY,eAENA,CACR,CAEAC,SAASG,GACF,OAAe,MAAXA,EAAwB,MAC7BA,EAAQF,WAAW,OACvBE,EAAU,IAAMA,GAEVA,EACR,CAEAC,cAAcrM,GACb,OAAO1d,KAAKgpB,cAAcL,mBAAmBjL,EAC9C,+CAxCY2P,GAAwBtsB,6CAAxBssB,EAAwBvH,iWChBrC/kB,iBACCA,iBACAA,gBAC4D,WAE1DA,eACDA,QACAA,iBAC+BA,SAAsCA,UAEtEA,iBAAuB,SAC8CA,gBAAMA,QAC1EA,gBACuEA,gCAAmCA,mBAZvEA,kEAAyB,kEAE5DA,gGAEIA,mFAGHA,wCAA8BA,6EAGVA,+FAEpBA,gHAAsEA,65HDG5DssB,CAAwB,qEEfpCtsB,gBAG2B,QAH3BA,CAG2B,YAMxBA,eACDA,QACAA,kBAAwBA,SAA8BA,gDATvDA,yDAGCA,sDAAyC,4DAGxCA,kEACGA,8CAEoBA,yCCKpB,IAAMusB,GAAyB,MAAhC,MAAOA,EAGZxtB,YACS4jB,EACDqF,EACCC,GAFAhpB,kBACDA,kBACCA,oBACL,CAEJmlB,WACMnlB,KAAK8O,cACT9O,KAAK0jB,WAAWtD,kBAAkBzO,UAAWlQ,IAC5CzB,KAAK8O,aAAerN,GAGvB,CAEA8rB,gBAAgBzD,GACf,GAAKA,EACL,OAAKA,EAAQF,WAAW,OACvBE,EAAU,IAAMA,GAEV,GAAGA,KACX,CAEAL,QAAQC,GACP,OAAKA,IACJA,EAAY,eAENA,CACR,CAEAK,cAAcrM,GACb,OAAO1d,KAAKgpB,cAAcL,mBAAmBjL,EAC9C,+CAlCY4P,GAAyBvsB,sDAAzBusB,EAAyBxH,8YDjBtC/kB,gBACCA,uBAcDA,eAdsBA,koCCgBTusB,CAAyB,+BCEnCvsB,kBAECA,kCACDA,kCADsBA,2DAUnBA,SACCA,mBAICA,kBAEDA,QACDA,wCAFGA,uEAGHA,SACCA,kBAGDA,wCAFEA,sCAAoB,yCAbxBA,SAAgD,MAE9CA,kCASAA,kCAMDA,+CAhBcA,wCACEA,sDASAA,iFAdpBA,SACCA,kBAAiB,YAEfA,kCAmBDA,UAEFA,8BArBkCA,0CCZ5B,IAAMysB,GAA0B,MAAjC,MAAOA,UAAkC/J,GAG9C3jB,YACC4jB,EACAC,EACAC,EACAC,GAEAniB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAChD7jB,KAAK+e,SAAW,cACjB,CAEAoG,WACCzjB,MAAMyjB,WAENnlB,KAAK0jB,WAAWtD,kBAAkBzO,UAAWlQ,IAC5CzB,KAAK8O,aAAerN,GAEtB,+CAnBY+rB,GAAyBzsB,oEAAzBysB,EAAyB1H,2lBDhBtC/kB,iBAAuB,cAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAKOA,SAAsBA,QAC/CA,kBAEDA,UAEDA,iBACCA,kCACDA,YAIFA,sBAA2B,aAEzBA,0BAIDA,UAGDA,mCAyBDA,eA7C8BA,mCAExBA,wDAIoBA,8CAQEA,yCAMZA,+ECTHysB,CAA0B,KCfjC,MAAOC,GAAb3tB,cAOCE,cAAW,EA0BZ,CAtBC0tB,iBAAiBxE,GAChBlpB,KAAKyD,GAAKylB,EAAOzlB,GACjBzD,KAAKmsB,OAASjD,EAAOiD,OACrBnsB,KAAKosB,MAAQlD,EAAOkD,MACpBpsB,KAAK2tB,SAAWzE,EAAOe,MACvBjqB,KAAK4tB,KAAO,EACZ5tB,KAAK6tB,OAAS,EAEd7tB,KAAK8tB,MAAQ,IAAwB,IAAhBC,KAAKC,QAC3B,CAEAC,eAAelM,GACd/hB,KAAKyD,GAAKse,EAAK7T,OACflO,KAAKmsB,OAASpK,EAAK1T,MACnBrO,KAAKosB,MAAQrK,EAAKjX,KAClB9K,KAAK2tB,SAAW5L,EAAK3T,MACrBpO,KAAKmK,SAAW4X,EAAKhW,OACrB/L,KAAK4tB,KAAO7L,EAAKzT,OAAOU,OACxBhP,KAAK6tB,OAAS9L,EAAKzT,OAAOW,MAE1BjP,KAAK8tB,MAAQ,IAAwB,IAAhBC,KAAKC,QAC3B,ECpBM,IAAME,GAAiB,MAAxB,MAAOA,EAGZpuB,YACQgR,EACAiY,GADA/oB,iBACAA,iBACJ,CAEJmlB,WACA,+CATY+I,GAAiBntB,+CAAjBmtB,EAAiBpI,obCd9B/kB,iBAAsC,WAEpCA,iBAGDA,QACAA,iBAA0B,UAA1BA,CAA0B,UAA1BA,CAA0B,SAA1BA,CAA0B,SAKrBA,SACDA,YAGFA,iBAAyB,WAAzBA,CAAyB,cAEDA,qDAEtBA,YAMFA,mBAA2B,WAA3BA,CAA2B,QAA3BA,CAA2B,cAGMA,gCAAsEA,UAErGA,eAAI,cAC2BA,gCAAuEA,UAEtGA,eAAI,cAC2BA,gCAA0EA,2BA/B3GA,mCAAkB,2BAObA,oEACFA,qCAMqBA,sHAWSA,wFAGAA,yFAGAA,qvODpBvBmtB,CAAiB,8CEMxBntB,kBAGCA,kBAGDA,kCAHMA,6DAPPA,oCAICA,yBAODA,8BARCA,8BAEmBA,6DAQnBA,uCAAKA,mCACJA,4FAsBAA,kBAICA,2BAEDA,sDAHCA,kDADAA,sBAEcA,0BCxCf,IAAMotB,GAAwB,MAA/B,MAAOA,EA0CZruB,YACS4jB,EACA0K,EACAnM,EACD8G,EACAlF,GAJC7jB,kBACAA,mBACAA,0BACDA,kBACAA,wBA5CRA,eAAwB,GAExBA,iBAAc,CACb6qB,aAAc,EACdC,eAAgB,EAChBC,UAAW,4EACXC,UAAW,2EACXC,MAAM,EACNC,UAAU,EACVC,OAAO,EACPC,WAAY,CACX,CACCC,WAAY,KACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,EAChBI,UAAU,EACVD,MAAM,IAGR,CACCI,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,IAGlB,CACCO,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,MAMpB9qB,YAAS,EAST,CAEAmlB,WACCnlB,KAAK0jB,WACHtD,kBACAzO,UAAWlQ,IACXzB,KAAK8O,aAAerN,IAGtBzB,KAAKouB,YACH5R,OACA7K,UAAU0c,IACVruB,KAAKiiB,mBACH1B,mBAAmB8N,EAAY5qB,IAC/BkO,UAAWlQ,IACXzB,KAAKsuB,gBAAkB7sB,EACvBzB,KAAKuuB,cACLvuB,KAAKisB,aACLjsB,KAAKwuB,eAAa,EAClB,EAEL,CAMAA,gBACCxuB,KAAKyuB,UAAY,GACXzuB,KAAKsuB,iBAAiBI,cAAcjlB,OAAS,GAGnDzJ,KAAKsuB,gBAAgBI,aACnB/kB,QAAQoY,IACR,IAAI4M,EAAY,IAAIlB,GACpBkB,EAAUV,eAAelM,GACzB/hB,KAAKyuB,UAAU5f,KAAK8f,EAAS,EAEhC,CAMA1C,aACKjsB,KAAKsuB,gBAAgBM,gBACxB5uB,KAAKsuB,gBAAgBM,eACnBjlB,QAAQklB,IACJA,EAAM5sB,KAAKwH,OAAS,QACgCkE,IAAnD3N,KAAKyrB,OAAOlQ,KAAK,EAAEuM,SAASA,IAAQ+G,EAAM5sB,MAC7CjC,KAAKyrB,OAAO5c,KAAK,CAChBiZ,IAAK+G,EAAM5sB,KACX,GAKFjC,KAAKsuB,gBAAgBI,cACxB1uB,KAAKsuB,gBAAgBI,aACnB/kB,QAAQmlB,IACR9uB,KAAKyrB,OAAO5c,KAAK,CAChBiZ,IAAKgH,EAAQzgB,OACb,EAIL,CAEAkgB,cACCvuB,KAAKyrB,OAAS,EACf,CAQAsD,4BAA4B1T,GAE3B,MAAO,cADaA,GAvIM,EAuI0B,WAAa,GAElE,CAEOiJ,eAAe5G,GAErB,GAAY,KADZA,EAAOA,GAAQ,IACC,MAAO,GAEvB,MAAM8G,EAAY9G,EAAK+G,MAAM,KAC7B,QAASC,EAAI,EAAGA,EAAIF,EAAU/a,OAAQib,IACjCF,EAAUE,GAAGjb,OAAS,IAE1B+a,EAAUE,GAAKF,EAAUE,GAAGC,OAAO,GAAGtF,cAAgBmF,EAAUE,GAAGL,MAAM,IAE1E,OAAOG,EAAUI,KAAK,IACvB,CAEA6E,QAAQC,GACP,OAAKA,IACJA,EAAY,eAENA,CACR,+CAtJYyE,GAAwBptB,8EAAxBotB,EAAwBrI,y0BDfrC/kB,qBAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAKAA,SAEzBA,cAKHA,iBAA4B,UAA5BA,CAA4B,WAGzBA,wCAYAA,6CAIDA,UAEDA,mBACCA,oCACDA,cAKHA,uBAA6C,WAA7CA,CAA6C,WAA7CA,CAA6C,YAA7CA,CAA6C,YAA7CA,CAA6C,aAMvCA,mBAEDA,QACAA,mBAAsB,YAEpBA,0BAODA,4CArDwBA,6FAWvBA,yCAAyB,cAkBNA,8CAanBA,0FAI0BA,0fCpCpBotB,CAAwB,qECfpCptB,gBAG2B,SAIzBA,kBAGAA,kBAAwBA,SAAeA,gDARxCA,0DAGCA,sDAAyC,qDAGxCA,mEACAA,wCACuBA,wBCKpB,IAAMiuB,GAAkB,MAAzB,MAAOA,EAGZlvB,YACS4jB,EACDqF,GADC/oB,kBACDA,iBACJ,CAEJmlB,WACMnlB,KAAK2O,OACT3O,KAAK0jB,WAAWvC,WAAWxP,UAAWlQ,IACrCzB,KAAK2O,MAAQlN,GAGhB,CAEA8rB,gBAAgBzD,GACf,OAAKA,EAAQF,WAAW,OACvBE,EAAU,IAAMA,GAEV,GAAGA,KACX,CAEAL,QAAQC,GACP,OAAKA,IACJA,EAAY,eAENA,CACR,+CA5BYsF,GAAkBjuB,4CAAlBiuB,EAAkBlJ,gXDhB/B/kB,gBACCA,uBAaDA,eAbsBA,olCCeTiuB,CAAkB,+BCOzBjuB,SACCA,mBAICA,kBACDA,QACDA,wCAFgCA,uEAGhCA,SACCA,kBACDA,wCADwBA,sCAAoB,yCAX9CA,SAAgD,MAE9CA,kCAQAA,kCAIDA,+CAbcA,wCACEA,sDAQAA,iFAbpBA,SACCA,iBAAiB,YAEfA,kCAgBDA,UAEFA,8BAlBkCA,0CCN5B,IAAMkuB,GAAmB,MAA1B,MAAOA,UAA2BxL,GAEvC3jB,YACC4jB,EACAC,EACAC,EACAC,GAEAniB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAChD7jB,KAAK+e,SAAW,OAEjB,CAEAoG,WACCzjB,MAAMyjB,UACP,+CAfY8J,GAAkBluB,oEAAlBkuB,EAAkBnJ,oeDf/B/kB,iBAAuB,cAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAKOA,SAAsBA,QAC/CA,kBAAoE,UAEpEA,aAAGA,iHAAoGA,QACvGA,gBAAsDA,yBAAYA,YAGpEA,kBACCA,0BACDA,YAIFA,mCAsBDA,eAnC8BA,mCACEA,wDAGNA,iCASVA,iFCHHkuB,CAAmB,+BCe1BluB,SACCA,mBAICA,kBACDA,QACDA,wCAFgCA,uEAGhCA,SACCA,kBACDA,wCADwBA,sCAAoB,yCAX9CA,SAAgD,MAE9CA,kCAQAA,kCAIDA,+CAbcA,wCACEA,sDAQAA,iFAbpBA,SACCA,iBAAiB,YAEfA,kCAgBDA,UAEFA,8BAlBkCA,0CCb5B,IAAMmuB,GAAoB,MAA3B,MAAOA,UAA4BzL,GAExC3jB,YACC4jB,EACAC,EACAC,EACAC,GAEAniB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAChD7jB,KAAK+e,SAAW,QAEjB,CAEAoG,WACCzjB,MAAMyjB,UACP,+CAfY+J,GAAmBnuB,oEAAnBmuB,EAAmBpJ,mqBDfhC/kB,iBAAuB,cAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAKOA,SAAsBA,QAC/CA,kBAAoE,UAEpEA,aAAGA,iHAAoGA,QACvGA,gBAAsDA,yBAAYA,YAGpEA,kBAAgC,YAAhCA,CAAgC,WAAhCA,CAAgC,WAAhCA,CAAgC,WAINA,iBAAIA,UAE3BA,kBAAuDA,UAAcA,kBAO1EA,mCAsBDA,eA1C8BA,mCACEA,wDAGNA,iCAOhBA,iCAEmDA,2BAO7CA,8ECVHmuB,CAAoB,+BCW3BnuB,SACCA,mBAICA,kBACDA,QACDA,wCAFgCA,uEAGhCA,SACCA,kBACDA,wCADwBA,sCAAoB,yCAX9CA,SAAgD,MAE9CA,kCAQAA,kCAIDA,+CAbcA,wCACEA,sDAQAA,iFAdpBA,SACCA,8BACAA,iBAAiB,YAEfA,kCAgBDA,UAEFA,8BArBkBA,iDAGgBA,0CCR5B,IAAMouB,GAAsB,MAA7B,MAAOA,UAA8B1L,GAG1C3jB,YACC4jB,EACAC,EACAC,EACAC,GAEAniB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAChD7jB,KAAK+e,SAAW,UAEjB,CAEAoG,WACCzjB,MAAMyjB,UAEP,CAEAiK,iBACC,MAAO,EAIR,+CAxBYD,GAAqBpuB,oEAArBouB,EAAqBrJ,wcDhBlC/kB,iBAAuB,cAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAKOA,SAAsBA,QAC/CA,kBAAoE,UAEpEA,aAAGA,iHAAoGA,YAIzGA,kBAGDA,UAKDA,kCAuBDA,eAtC8BA,mCACEA,wDAchBA,sCCJHouB,CAAsB,+BCc7BpuB,SACCA,mBAICA,kBACDA,QACDA,wCAFgCA,uEAGhCA,SACCA,kBACDA,wCADwBA,sCAAoB,yCAX9CA,SAAgD,MAE9CA,kCAQAA,kCAIDA,+CAbcA,wCACEA,sDAQAA,iFAbpBA,SACCA,iBAAiB,YAEfA,kCAgBDA,UAEFA,8BAlBkCA,0CCb5B,IAAMsuB,GAAsB,MAA7B,MAAOA,UAA8B5L,GAE1C3jB,YACC4jB,EACAC,EACAC,EACAC,GAEAniB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAChD7jB,KAAK+e,SAAW,UACjB,CAEAoG,WACCzjB,MAAMyjB,UACP,+CAdYkK,GAAqBtuB,oEAArBsuB,EAAqBvJ,qqBDflC/kB,iBAAuB,cAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAKOA,SAAsBA,QAC/CA,kBAAoE,UAEpEA,aAAGA,iHAAoGA,QACvGA,gBAAsDA,yBAAYA,YAGpEA,kBAAgC,YAAhCA,CAAgC,WAAhCA,CAAgC,WAAhCA,CAAgC,WAINA,iBAAIA,UAE3BA,kBAAuDA,UAAcA,kBAO1EA,mCAsBDA,eA1C8BA,mCACEA,wDAGNA,iCAOhBA,iCAEmDA,2BAO7CA,8ECVHsuB,CAAsB,+BCe7BtuB,SACCA,mBAICA,kBACDA,QACDA,wCAFgCA,uEAGhCA,SACCA,kBACDA,wCADwBA,sCAAoB,yCAX9CA,SAAgD,MAE9CA,kCAQAA,kCAIDA,+CAbcA,wCACEA,sDAQAA,iFAbpBA,SACCA,iBAAiB,YAEfA,kCAgBDA,UAEFA,8BAlBkCA,0CCb5B,IAAMuuB,GAAmB,MAA1B,MAAOA,UAA2B7L,GAEvC3jB,YACC4jB,EACAC,EACAC,EACAC,GAEAniB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAChD7jB,KAAK+e,SAAW,OAEjB,CAEAoG,WACCzjB,MAAMyjB,UACP,+CAfYmK,GAAkBvuB,oEAAlBuuB,EAAkBxJ,kqBDf/B/kB,iBAAuB,cAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAKOA,SAAsBA,QAC/CA,kBAAoE,UAEpEA,aAAGA,iHAAoGA,QACvGA,gBAAsDA,yBAAYA,YAGpEA,kBAAgC,YAAhCA,CAAgC,WAAhCA,CAAgC,WAAhCA,CAAgC,WAINA,iBAAIA,UAE3BA,kBAAuDA,UAAcA,kBAO1EA,mCAsBDA,eA1C8BA,mCACEA,wDAGNA,iCAOhBA,iCAEmDA,2BAO7CA,8ECVHuuB,CAAmB,+BCD1BvuB,kBACCA,kBACDA,kCADMA,6DAHRA,kBAA4C,8BAE1CA,yBAGDA,gCAJkEA,uCAC7BA,8DAyCnCA,kBACCA,2BAEDA,sDAHoGA,kDAAtBA,sBAC/DA,0BCxCf,IAAMwuB,GAAiB,MAAxB,MAAOA,EA2CZzvB,YACS4jB,EACA0K,EACAlM,EACD6G,EACAlF,GAJC7jB,kBACAA,mBACAA,mBACDA,kBACAA,wBA7CRA,eAAwB,GAExBA,iBAAc,CACb6qB,aAAc,EACdC,eAAgB,EAChBC,UAAW,4EACXC,UAAW,2EACXC,MAAM,EACNC,UAAU,EACVC,OAAO,EACPC,WAAY,CACX,CACCC,WAAY,KACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,EAChBI,UAAU,EACVD,MAAM,IAGR,CACCI,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,IAGlB,CACCO,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,MAMpB9qB,YAAS,EASL,CAEJmlB,WACCnlB,KAAK0jB,WACHvC,WACAxP,UAAWlQ,IACXzB,KAAK2O,MAAQlN,IAGfzB,KAAKouB,YACH5R,OACA7K,UAAU0c,IACVruB,KAAKkiB,YACHZ,YAAY+M,EAAY5qB,IACxBkO,UAAWlQ,IACXzB,KAAKwvB,SAAW/tB,EAChBzB,KAAKuuB,cACLvuB,KAAKisB,aACLjsB,KAAKwuB,eAAa,EAElB,EAEL,CAMAA,gBACOxuB,KAAKwvB,UAAUd,cAAcjlB,OAAS,IAG5CzJ,KAAKyuB,UAAY,GACjBzuB,KAAKwvB,SAASd,aACZ/kB,QAAQoY,IACR,IAAI4M,EAAY,IAAIlB,GACpBkB,EAAUV,eAAelM,GACzB/hB,KAAKyuB,UAAU5f,KAAK8f,EAAS,GAEhC,CAMA1C,aAcKjsB,KAAKwvB,SAASd,cACjB1uB,KAAKwvB,SAASd,aACZ/kB,QAAQmlB,IACR9uB,KAAKyrB,OAAO5c,KAAK,CAChBiZ,IAAKgH,EAAQzgB,OACb,EAIL,CAEAkgB,cACCvuB,KAAKyrB,OAAS,EACf,CAQAsD,4BAA4B1T,GAE3B,MAAO,cADaA,GAzIM,EAyI0B,WAAa,GAElE,+CApIYkU,GAAiBxuB,8EAAjBwuB,EAAiBzJ,80BDhB9B/kB,iBAAuB,cAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,UAKOA,SAAoBA,cAKhDA,iBAAiB,WAEfA,wBAODA,QACAA,kBACCA,0BACDA,YAIFA,sBAA6C,WAA7CA,CAA6C,YAA7CA,CAA6C,YAA7CA,CAA6C,aAKxCA,mBACAA,mBAA4B,YAA5BA,CAA4B,YAA5BA,CAA4B,YAGLA,gCAAqCA,cAI5DA,mBAAyC,WAAzCA,CAAyC,SAEnCA,oBAAOA,QACXA,eAAIA,4BAAeA,QACnBA,eAAIA,qBAAQA,QACZA,eAAIA,iBAAIA,QACRA,eAAIA,0BAAaA,QACjBA,eAAIA,qBAAQA,QACZA,eAAIA,oBAAOA,QACXA,eAAIA,qBAAQA,QACZA,eAAIA,8BAAiBA,cAIxBA,mBAAsB,YAEpBA,0BAIDA,2BAtDwBA,sDAOPA,yCAmBaA,4EAIPA,gDAoBIA,gGCvCpBwuB,CAAiB,KCXxB,MAAOE,GAYZ3vB,cACCE,KAAK0vB,QAAU,GACf1vB,KAAK2vB,KAAO,GACZ3vB,KAAK4vB,MAAQ,GACb5vB,KAAK6vB,gBAAiB,EACtB7vB,KAAK8vB,OAAS,aACd9vB,KAAK+vB,KAAO,GACZ/vB,KAAKgwB,eAAiB,IAAIvhB,MAAgB,GAC1CzO,KAAKiwB,aAAe,EACpBjwB,KAAKkwB,YAAc,CAClBrgB,UAAW,EACX/E,KAAM,qBACNiF,UAAW,uBACXogB,KAAM,KACNhiB,MAAO,SAET,EC1BM,IAAMiiB,GAAa,MAApB,MAAOA,EAIZtwB,cACCE,KAAKqwB,YAAc,IAAIZ,EACxB,CAEAa,kBAAkBvO,QACJpU,IAAToU,EAIU/hB,KAAKqwB,YAAYL,eAAeO,KAAKC,GAAMA,EAAGtiB,SAAW6T,EAAK7T,SAE3ElO,KAAKqwB,YAAYL,eAAenhB,KAAKkT,GALrCvhB,QAAQkC,MAAM,kBAOhB,CAEA+tB,gCAAgC1O,GAC/B,QAAapU,IAAToU,EAEH,YADAvhB,QAAQkC,MAAM,mBAGf,IAAI+Q,EAEJA,EAAI,IAAIxF,GAAS,IAAK8T,IACtB/hB,KAAKswB,kBAAkB7c,EACxB,CAEAid,wBACC,OAAO1wB,KAAKqwB,YAAYL,cACzB,CAEAW,0BACC,OAAO3wB,KAAKqwB,YAAYL,eAAevmB,MACxC,CAEAmnB,oBACC,YAAwCjjB,IAApC3N,KAAKqwB,YAAYL,gBAGdhwB,KAAK2wB,0BAA4B,CACzC,CAEAE,eAAepvB,GACdzB,KAAKqwB,YAAYH,YAAczuB,CAChC,CAEAqvB,mBACC,OAAO9wB,KAAKqwB,YAAYH,YAAYrgB,WAAa,CAClD,CAEAkhB,iBACC,OAAO/wB,KAAKqwB,YAAYH,WACzB,CAEAc,wBACC,MAAMC,EAAgC,IAAIxiB,MAA0B,GACpE,YAAK4hB,YAAYL,eAAermB,QAAQunB,IACvCD,EAAQpiB,KAAK,IAAImB,GAAmB,CACnCvM,GAAIytB,EAAQhjB,OAAO8W,WACnBla,KAAMomB,EAAQpmB,KACdwD,OAAQ,GAAG4iB,EAAQ5iB,OAAOU,YAAYkiB,EAAQ5iB,OAAOW,YACpD,GAEIgiB,CACR,CAEAE,qBACC,OAAO,IAAIvhB,GAAgB,CAC1BC,UAAW7P,KAAKqwB,YAAYH,YAAYrgB,UAAUmV,WAClDla,KAAM9K,KAAKqwB,YAAYH,YAAYplB,KACnCgF,SAAU9P,KAAKqwB,YAAYH,YAAYpgB,SACvCC,UAAW,GAAG/P,KAAKqwB,YAAYH,YAAYngB,gBAAgB/P,KAAKqwB,YAAYH,YAAYC,WAAWnwB,KAAKqwB,YAAYH,YAAY/hB,SAElI,CAEAijB,gBAAgBrP,GACf/hB,KAAKqwB,YAAYJ,aAAelO,GAAM7T,MAEvC,CAEAmjB,eAAetP,GACd,OAAO/hB,KAAKqwB,YAAYJ,eAAiBlO,GAAM7T,MAChD,CAEAojB,kBACC,OAAyC,IAAlCtxB,KAAKqwB,YAAYJ,YACzB,+CAzFYG,EAAa,4BAAbA,EAAapvB,QAAbovB,EAAanvB,qBAFb,SAEAmvB,CAAa,KCGbmB,GAAsB,MAA7B,MAAOA,EAYTzxB,cAVQE,aAAmB,EAWvBA,KAAKwxB,cAAgBxxB,KAAKwxB,cAAcC,KAAKzxB,KACjD,CAXW0xB,YACP,OAAO1xB,KAAK2xB,MAChB,CACYD,UAAMpI,GACdtpB,KAAK2xB,OAASrI,CAClB,CAQOne,KAAKymB,GACR,IACI5xB,KAAK4xB,YAAcA,EAGnB,IAAIC,EAA4BC,SAASC,cAAc,UACvDF,EAAOG,iBAAiB,OAAQhyB,KAAKwxB,eACrCK,EAAOI,OAAQ,EACfJ,EAAOK,IAAM,+CAAiDhyB,+BAC9D4xB,SAASK,KAAKC,QAAQP,GAEjB3xB,cACDM,QAAQ6K,IAAI,gCAAiCnL,sCAG5CmyB,GACL7xB,QAAQkC,MAAM,iEAAkE2vB,GAExF,CAEO1e,IAAI2e,EAAmBC,EAAiBC,GAC3C,IACI,MAAMC,EAAU,CACZC,WAAYJ,EACZK,UAAWJ,EACXK,cAAeJ,EACfK,QAAS7yB,KAAK4xB,YAAYhpB,WAAa5I,KAAK4xB,YAAY/oB,YAAYpF,QAAKkK,EACzEmlB,WAAa5yB,kBAAkCyN,EAAT,QAItCzN,cACAM,QAAQ6K,IAAI,+BAAgConB,GAGhDM,KAAK,QAAS,YAAaN,SAEtBJ,GACL7xB,QAAQkC,MAAM,6CAA8C2vB,GAEpE,CAEQb,cAAcwB,GAEb9yB,cACDM,QAAQ6K,IAAI,0CAGhB0nB,KAAK,KAAM,IAAIE,MACfF,KAAK,SAAU7yB,+BAA0C,CAAEgzB,gBAAgB,IAE3ElzB,KAAK0xB,OAAQ,CACjB,+CApESH,EAAsB,4BAAtBA,EAAsBvwB,QAAtBuwB,EAAsBtwB,qBAFnB,SAEHswB,CAAsB,4BCPYxwB,kBAA6CA,oBAAQA,mCADnGA,SACCA,kBAAoBA,SAAiBA,QAAQA,yBAC9CA,2CADqBA,wBAAsDA,qDAH5EA,iBAA0C,YACjCA,8BAAwCA,QAASA,iBACzDA,iCAGDA,8BAJSA,kDACwBA,mCCU1B,IAAMoyB,GAAc,MAArB,MAAOA,EAGZrzB,cAAgB,CAEhBqlB,WACA,+CANYgO,EAAc,0BAAdA,EAAcrN,wPDZ3B/kB,6BAA6BA,+NCYhBoyB,CAAc,oBCVrB,MAAOC,GACXC,kBAAyB,OAAOxuB,MAAQ,EAGpC,MAAOyuB,GACXC,oBAA2B,OAAOzB,QAAU,EAGvC,MAAM0B,GAAwC,CAACJ,GAAWE,mBCD1D,MAAMG,GAAkB,IAAIrmB,MAAoC,2BA6ChE,IAAMsmB,GAAa,MAApB,MAAOA,EAST5zB,YACY8B,EAAc,KACd6c,EACAjD,EAC2BmY,mBARpB3zB,gBAAqB,wBASpCA,KAAK4zB,QAAUhyB,GAAU,GACzB5B,KAAK6zB,WAAapV,EAClBze,KAAK8zB,aAAetY,CACxB,CAEAlb,OACI,YAAKyzB,OAAS,IAAIC,MAAO,CACrBC,OAAQj0B,KAAK4zB,QAAQK,OACrBC,QAAS,SACTC,OAAQn0B,KAAK4zB,QAAQQ,SACrBC,QAASr0B,KAAK4zB,QAAQS,QACtB5wB,GAAIzD,KAAKs0B,WACTC,OAAQv0B,KAAK4zB,QAAQW,OACrBpqB,SAAUnK,KAAK4zB,QAAQzpB,WAA+B,UAAlBnK,KAAK2zB,SAAuB3zB,KAAK2zB,SAAW,QAG7E3zB,KAAK+zB,OAAOS,cAAc,OACrC,+CA/BSd,GAAa3yB,MASU0yB,GAAe,6BAI3BgB,OAAS,4BAbpBf,EAAa1yB,QAAb0yB,EAAazyB,YAAbyyB,CAAa,KC5CbgB,GAAoB,MAA3B,MAAOA,EAIZ50B,YAAoB60B,EAAgCC,GAAhC50B,eAAgCA,aACnDA,KAAK60B,KAAO,IAAIC,QAA0BC,IACzC/0B,KAAKg1B,aAAeD,GAEtB,CAEAE,UAAUzE,EAAiB0E,GAC1B,OAAOl1B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK20B,QAAQr0B,OAAO80B,KAAK,KAC/B,MAAMvyB,EAAM,IAAIwyB,OAAOC,KAAKC,IAAI/E,EAAI0E,GACpCl1B,KAAKg1B,aAAanyB,EAAG,GAIxB,CAEA2yB,cAAczyB,GACb,OAAO/C,KAAK40B,MAAMO,kBAAkB,KACnCn1B,KAAK60B,KAAKO,KAAMtV,IACfA,EAAE2V,WAAW1yB,EAAO,EACpB,EAEH,CAKA2yB,iBAAiB3yB,EAA2D,GAAI4yB,GAAoB,GACnG,OAAO31B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,IAClB8yB,IACH5yB,EAAQF,IAAMA,GAER,IAAIwyB,OAAOC,KAAKM,OAAOC,sBAAsB9yB,KAGvD,CACA+yB,aAAa/yB,EAA2D,GAAI4yB,GAAoB,GAC/F,OAAIN,OAAOC,KAAKM,QAAQC,sBAChB71B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,IAClB8yB,IACH5yB,EAAQF,IAAMA,GAER,IAAIwyB,OAAOC,KAAKM,OAAOC,sBAAsB9yB,MAI/C/C,KAAK40B,MAAMO,kBAAkB,IAC3BE,OAAOC,KAAKd,cAAc,UAAUY,KAAK,IACxCp1B,KAAK81B,aAAa/yB,EAAS4yB,IAIvC,CAEAI,iBAAiBhzB,GAChB,OAAO/C,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAQ,IAAIwyB,OAAOC,KAAKU,WAAWjzB,IAE5D,CAKAkzB,aAAalzB,GACZ,OAAO/C,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,IACtBE,EAAQF,IAAMA,EACP,IAAIwyB,OAAOC,KAAKY,OAAOnzB,KAGjC,CAKAozB,gBAAgBpzB,GACf,OAAO/C,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,IACtBE,EAAQF,IAAMA,EACP,IAAIwyB,OAAOC,KAAKc,UAAUrzB,KAGpC,CAEAszB,eAAetzB,GACd,OAAO/C,KAAK40B,MAAMO,kBAAkB,IACnBn1B,KAAK60B,KAAKO,KAAMvyB,IAC/B,MAAMyzB,EAAO,IAAIjB,OAAOC,KAAKiB,SAASxzB,GACtCuzB,SAAKE,OAAO3zB,GACLyzB,IAGV,CAEAG,cAAc1zB,GACb,OAAO/C,KAAK40B,MAAMO,kBAAkB,IACnBn1B,KAAK60B,KAAKO,KAAMvyB,IAC/B,MAAM6zB,EAAU,IAAIrB,OAAOC,KAAKqB,QAAQ5zB,GACxC2zB,SAAQF,OAAO3zB,GACR6zB,IAGV,CAKAE,gBAAgB7zB,GACf,OAAO/C,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMtV,IACtB,MAAMre,EAAO,IAAI4zB,OAAOC,KAAKuB,KAAK9zB,GAClCtB,SAAK+0B,OAAO1W,GACLre,IAGV,CAMAq1B,qBACC,OAAO92B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,IACtB,MAAMk0B,EAAqC,IAAI1B,OAAOC,KAAK0B,aAC3DD,SAASP,OAAO3zB,GACTk0B,IAGV,CAMAE,uBACC,OAAOj3B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,IACtB,MAAMk0B,EAAuC,IAAI1B,OAAOC,KAAK4B,eAC7DH,SAASP,OAAO3zB,GACTk0B,IAGV,CAKAI,iBAAiBC,EAA4BV,GAC5C,OAAO12B,KAAK60B,KAAKO,KAAK,IAAMC,OAAOC,KAAK+B,SAASC,KAAKH,iBAAiBC,EAAQV,GAChF,CAEOa,oBAAoBC,GAC1B,OAAO,IAAIC,KAAYC,IACtB13B,KAAK60B,KAAKO,KAAMtV,GAAMA,EAAE6X,YAAYH,EAAW,IAAII,IAAW53B,KAAK40B,MAAMiD,IAAI,IAAMH,EAASnuB,KAAKquB,KAAS,EAE5G,CAEAE,yBACC,OAAO93B,KAAK40B,MAAMO,kBAAkB,KACnCn1B,KAAK60B,KAAKO,KAAMvyB,IACfwyB,OAAOC,KAAKtC,MAAM8E,uBAAuBj1B,EAAG,EAC5C,EAEH,CAEAk1B,UAAUX,GACT,OAAOp3B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAyBA,EAAIk1B,UAAUX,IAEhE,CAEAY,UACC,OAAOh4B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAyBA,EAAIm1B,WAEtD,CAEAC,YACC,OAAOj4B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAyBA,EAAIo1B,aAEtD,CAEAC,eACC,OAAOl4B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAyBA,EAAIq1B,gBAEtD,CAEAC,QAAQ/oB,GACP,OAAOpP,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAyBA,EAAIs1B,QAAQ/oB,IAE9D,CAEAgpB,YACC,OAAOp4B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAyBA,EAAIu1B,aAEtD,CAEAC,MAAMjB,GACL,OAAOp3B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAQA,EAAIw1B,MAAMjB,IAE3C,CAEAkB,MAAMC,EAAWC,GAChB,OAAOx4B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAQA,EAAIy1B,MAAMC,EAAGC,IAE9C,CAEAC,UACCrB,EACAsB,GAEA,OAAO14B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAQA,EAAI41B,UAAUrB,EAAQsB,IAEvD,CAEAC,YACCvB,EACAsB,GAEA,OAAO14B,KAAK40B,MAAMO,kBAAkB,IAC5Bn1B,KAAK60B,KAAKO,KAAMvyB,GAAQA,EAAI81B,YAAYvB,EAAQsB,IAEzD,CAKAE,eACC,OAAO54B,KAAK60B,IACb,CAKAgE,gBAAgBrB,GACf,OAAOx3B,KAAK60B,KAAKO,KAAMtV,GAAMuV,OAAOC,KAAKtC,MAAM8F,QAAQhZ,EAAG0X,GAC3D,CAEGuB,mBACI,+CA7PKrE,GAAoB3zB,mDAApB2zB,EAAoB1zB,QAApB0zB,EAAoBzzB,YAApByzB,CAAoB,+DCH1B,IAAMsE,GAAoB,MAA3B,MAAOA,EAGTl5B,YAAsBm5B,EAA8CrE,GAA9C50B,oBAA8CA,aAF1DA,cAA6E,IAAIu1B,GAEN,CAE/E2D,iBAAiBC,GAAiD,qCACpE,OAAe,OAAXA,EACO,KAEAx4B,EAAKs4B,aAAaL,eAAexD,KAAK,IAAMC,OAAOC,KAAK8D,UAAUD,GAC5E,EALmE,EAMxE,CAEAE,aAAaC,GACT,MAAMC,EAAgBv5B,KAAKw5B,SAAS54B,IAAI04B,GACxC,OAAqB,MAAjBC,EAEOzE,QAAQC,UAEZwE,EAAcnE,KAAMQ,GAChB51B,KAAK40B,MAAMiD,IAAI,KAClBjC,EAAO/yB,IAAI,KACX7C,KAAKw5B,SAASC,OAAOH,EAAe,GAGhD,CAEAI,qBAAqB9D,GACjB,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAC5BtV,IAAgDA,EAAE6Z,SAAS,CAAEzqB,IAAK0mB,EAAOgE,SAAUC,IAAKjE,EAAOkE,UAAS,EACjH,CAEAC,YAAYnE,GACR,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAMtV,IAAiDA,EAAEsM,MAAMwJ,EAAOxJ,OAC3G,CAEA4N,yCAAyCpE,GACrC,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAMtV,IAAkDA,EAAEgF,QAAU8Q,EAAO1E,QAAQ+I,eACxH,CAEAC,gBAAgBtE,GACZ,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAMtV,IAAiDA,EAAEqa,aAAavE,EAAOwE,WAClH,CAGAC,cAAczE,GACV,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAMtV,IAAiDA,EAAEoN,MAAMoN,QAAQ1E,EAAO0E,QAAQtV,UAAQ,EACnI,CAEAuV,cAAc3E,GACV,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAMtV,IAAiDA,EAAEjd,IAAI+yB,EAAO0E,QAAQxa,EAAEjd,IAAI,MACvH,CAEA23B,aAAa5E,GACT,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAMtV,IAAiDA,EAAE2a,OAAO7E,EAAO6E,QAC5G,CAEAC,gBAAgB9E,GACZ,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAMtV,IAAiDA,EAAE6a,aAAa/E,EAAOgF,WAClH,CAGMC,UAAUjF,GAAgB,qCAE5B,MAAM2D,EAAgB,IAAIzE,QAAO,yBAA2C,UAAOC,GAAO,OACtFxxB,EAAK01B,aAAanD,aAAa,CAC3B6D,SAAU,CAAEzqB,IAAK0mB,EAAOgE,SAAUC,IAAKjE,EAAOkE,WAC9ChV,QAAS8Q,EAAO1E,QAAQ+I,cACxBE,aAAcvE,EAAOwE,UAGrBv3B,IAAK+yB,EAAOkF,cAAev3B,EAAK01B,aAAaL,eAAe,KAC5D6B,OAAQ7E,EAAO6E,OACfrO,MAAOwJ,EAAOxJ,MACduO,aAAc/E,EAAOgF,YAGtBxF,KAAKL,EAAQ,sDAba,IAcjCxxB,EAAKi2B,SAASuB,IAAInF,EAAQ2D,EAAe,EAhBb,EAkBhC,CAEAyB,gBAAgBpF,GACZ,OAAO51B,KAAKw5B,SAAS54B,IAAIg1B,EAC7B,CAEAqF,sBACIzD,EACA5B,GACA,OAAO,IAAI6B,KAAWC,IAClB13B,KAAKw5B,SAAS54B,IAAIg1B,GAAQR,KAAKtV,GAC3BA,EAAE6X,YAAYH,EAAW0D,GAAKl7B,KAAK40B,MAAMiD,IAAI,IAAMH,EAASnuB,KAAK2xB,KAAI,EAGjF,+CA9FSlC,GAAoBj4B,mDAApBi4B,EAAoBh4B,QAApBg4B,EAAoB/3B,YAApB+3B,CAAoB,KCCpBmC,GAAwB,MAA/B,MAAOA,EAITr7B,YACYm5B,EAA4CrE,EAC5CwG,GADAp7B,oBAA4CA,aAC5CA,sBALJA,kBACJ,IAAIu1B,GAI4C,CAEpD8F,iBAAiBC,GACb,MAAMC,EAAUv7B,KAAKw7B,aAAa56B,IAAI06B,GACtC,OAAe,MAAXC,EAEOzG,QAAQC,UAEZwG,EAAQnG,KAAM1Q,GACV1kB,KAAK40B,MAAMiD,IAAI,KAClBnT,EAAE+W,QACFz7B,KAAKw7B,aAAa/B,OAAO6B,EAAU,GAG/C,CAEAI,YAAYJ,GACR,OAAOt7B,KAAKw7B,aAAa56B,IAAI06B,GAAYlG,KAAM1Q,GAA8BA,EAAEgX,YAAY,CACvFxsB,IAAKosB,EAAW1B,SAChBC,IAAKyB,EAAWxB,YAExB,CAEA6B,UAAUL,GACN,OAAOt7B,KAAKw7B,aAAa56B,IAAI06B,GACxBlG,KAAM1Q,GAA8BA,EAAEiX,UAAUL,EAAWb,QACpE,CAEAmB,KAAKN,GACD,OAAOt7B,KAAKw7B,aAAa56B,IAAI06B,GAAYlG,KAAM3W,GACd,MAAzB6c,EAAWO,WACJ77B,KAAKo7B,eAAeJ,gBAAgBM,EAAWO,YAAYzG,KAAMQ,GAC7D51B,KAAKi5B,aAAaL,eAAexD,KAAMvyB,GAAQ4b,EAAEmd,KAAK/4B,EAAK+yB,KAGnE51B,KAAKi5B,aAAaL,eAAexD,KAAMvyB,GAAQ4b,EAAEmd,KAAK/4B,IAErE,CAEA44B,MAAMH,GACF,OAAOt7B,KAAKw7B,aAAa56B,IAAI06B,GAAYlG,KAAM3W,GAAMA,EAAEgd,QAC3D,CAEAhG,WAAW6F,EAA0Bv4B,GACjC,OAAO/C,KAAKw7B,aAAa56B,IAAI06B,GAAYlG,KAAM1Q,GAA8BA,EAAE+Q,WAAW1yB,GAC9F,CAEA+4B,cAAcR,GACV,MAAMv4B,EAAyC,CAC3C+hB,QAASwW,EAAWxW,QACpBiX,SAAUT,EAAWS,SACrBtB,OAAQa,EAAWb,OACnBuB,eAAgBV,EAAWU,gBAEI,iBAAxBV,EAAW1B,UAAyD,iBAAzB0B,EAAWxB,YAC7D/2B,EAAQ42B,SAAW,CAAEzqB,IAAKosB,EAAW1B,SAAUC,IAAKyB,EAAWxB,YAEnE,MAAMmC,EAAoBj8B,KAAKi5B,aAAalD,iBAAiBhzB,GAC7D/C,KAAKw7B,aAAaT,IAAIO,EAAYW,EACtC,CAKAhB,sBAAyBzD,EAAmB8D,GACxC,OAAO,IAAI7D,KAAYC,IACnB13B,KAAKw7B,aAAa56B,IAAI06B,GAAYlG,KAAM1Q,IACpCA,EAAEiT,YAAYH,EAAY0D,GAASl7B,KAAK40B,MAAMiD,IAAI,IAAMH,EAASnuB,KAAK2xB,IAAG,EAC5E,EAET,+CA5ESC,GAAwBp6B,6DAAxBo6B,EAAwBn6B,QAAxBm6B,EAAwBl6B,YAAxBk6B,CAAwB,oBCN/B,SAAUe,GAA4BC,GAC1C,MAAMC,EAAa,CAAC,YAAa,YAAa,UAC9C,SAAOC,MACLC,GAAWF,EAAWv5B,IAAI20B,GAAa2E,EAAMxE,YAAYH,EACvD,CAACnc,EAAekhB,IAAiBD,EAAQ7f,MAAM0f,EAAO,CAAE,CAACK,OAAQL,EAAMM,WAAYjF,YAAWnc,QAAOkhB,gBACvG,CAACG,EAAUC,IAAiDA,EAAYhzB,QAAQizB,GAAcA,EAAWC,UAC7G,CCCO,IAAMC,GAAsB,MAA7B,MAAOA,EAITh9B,YAAoBm5B,EAA4CrE,GAA5C50B,oBAA4CA,aAHxDA,gBACJ,IAAIu1B,GAEyE,CAEzE3nB,sBAAsB0oB,GAI1B,OAHaA,EAAKyG,aAAal6B,IAAKm6B,KACvB9tB,IAAK8tB,EAAMpD,SAAUC,IAAKmD,EAAMlD,YAGjD,CAEQlsB,oBAAoBrN,GACxB,MAAM08B,EAAa5H,OAAOC,KAAK4H,WAAW38B,GAC1C,MAA0B,iBAAf08B,EACAA,EAEA18B,CAEf,CAEQqN,qBAAqB0oB,GACzB,MAAM6G,EAAQ7G,EAAK8G,YAAYv6B,IAAIw6B,KAC/BC,cAAeD,EAAQC,cACvBC,OAAQF,EAAQE,OAChBC,OAAQH,EAAQG,OAChBjuB,KAAM,CACFkuB,OAAQ,IAAIpI,OAAOC,KAAKoI,MAAML,EAAQM,QAASN,EAAQO,SACvDC,UAAWR,EAAQQ,UACnBC,YAAaT,EAAQS,YACrBv9B,KAAMu8B,EAAuBiB,aAAaV,EAAQ98B,MAClDy9B,SAAUX,EAAQW,SAClBC,MAAOZ,EAAQY,MACfC,YAAab,EAAQa,YACrBC,cAAed,EAAQc,cACvBC,aAAcf,EAAQe,iBAI9BjB,SAAMxzB,QAAQ4F,IACV8uB,OAAOC,QAAQ/uB,GAAM5F,QAAQ,EAAE3E,EAAKu5B,aACrBA,EAAQ,YACPhvB,EAAavK,aAGlBuK,EAAKA,KAAKkuB,OAAOlF,EAAM,YACvBhpB,EAAKA,KAAKkuB,OAAOjF,EAAM,aACvBjpB,EAAKA,KAAKkuB,SAGlBN,CACX,CAEAqB,YAAYlI,GACR,MAAMmI,EAAkBz+B,KAAKi5B,aAAaL,eACrCxD,KAAK,IAAM,CAAC0H,EAAuB4B,eAAepI,GACnDwG,EAAuB6B,cAAcrI,KACpClB,KAAK,EAAE70B,EAAM48B,KACVn9B,KAAKi5B,aAAa5C,eAAe,CAC7BuE,UAAWtE,EAAKsE,UAChBR,UAAW9D,EAAK8D,UAChBwE,SAAUtI,EAAKsI,SACfC,SAAUvI,EAAKuI,SACfX,YAAa5H,EAAK4H,YAClBC,cAAe7H,EAAK6H,cACpBC,aAAc9H,EAAK8H,aACnBtD,QAASxE,EAAKwE,QACdL,OAAQnE,EAAKmE,OACbl6B,OACA48B,WAEZn9B,KAAK8+B,WAAW/D,IAAIzE,EAAMmI,EAC9B,CAEAM,qBAAqBzI,GACjB,MAAM/1B,EAAOu8B,EAAuB4B,eAAepI,GAC7CxW,EAAI9f,KAAK8+B,WAAWl+B,IAAI01B,GAC9B,OAAS,MAALxW,EACOgV,QAAQC,UAEZjV,EAAEsV,KAAM4J,GAAMh/B,KAAK40B,MAAMiD,IAAI,IAAMmH,EAAEC,QAAQ1+B,IACxD,CAEM2+B,oBAAoB5I,GAAgB,2CAChC31B,EAAKs4B,aAAaL,eACxB,MAAMuE,EAAQL,EAAuB6B,cAAcrI,GAC7CxW,EAAInf,EAAKm+B,WAAWl+B,IAAI01B,GAC9B,GAAS,MAALxW,EAGJ,OAAOA,EAAEsV,KAAK4J,GAAKr+B,EAAKi0B,MAAMiD,IAAI,IAAMmH,EAAEvJ,WAAW,CAAE0H,WAAW,EAP5B,EAQ1C,CAEAgC,mBAAmB7I,EAAkBvzB,GAEjC,OAAO/C,KAAK8+B,WAAWl+B,IAAI01B,GAAMlB,KAAM4J,IAA8BA,EAAEvJ,WAAW1yB,EAAO,EAC7F,CAEAq8B,eAAe9I,GACX,MAAMxW,EAAI9f,KAAK8+B,WAAWl+B,IAAI01B,GAC9B,OAAS,MAALxW,EACOgV,QAAQC,UAEZjV,EAAEsV,KAAM4J,GACJh/B,KAAK40B,MAAMiD,IAAI,KAClBmH,EAAExI,OAAO,MACTx2B,KAAK8+B,WAAWrF,OAAOnD,EAAI,GAGvC,CAEc+I,WAAWC,GAAuB,qCAE5C,aADuB/7B,EAAKu7B,WAAWl+B,IAAI0+B,IAC3BC,SAAU,EAFkB,EAGhD,CAEMA,QAAQD,GAAuB,qCACjC,aAAcz0B,EAAKw0B,WAAWC,IAAc7C,UAAW,EADtB,EAErC,CAEAxB,sBAAyBzD,EAAmBlB,GACxC,OAAO,IAAImB,KAAYC,IACnB13B,KAAK8+B,WAAWl+B,IAAI01B,GAAMlB,KAAM4J,IAC5BA,EAAErH,YAAYH,EAAY0D,GAASl7B,KAAK40B,MAAMiD,IAAI,IAAMH,EAASnuB,KAAK2xB,IAAG,EAC5E,EAET,CAEMsE,0BAA0BlJ,GAAgB,qCAE5C,OAAO4F,SADe9wB,EAAKi0B,WAAW/I,GACG,EAFG,EAGhD,+CApISwG,GAAsB/7B,mDAAtB+7B,EAAsB97B,QAAtB87B,EAAsB77B,YAAtB67B,CAAsB,0CCA5B,IAAM2C,GAAqB,MAA5B,MAAOA,EAIT3/B,YAAoBm5B,EAA4CrE,GAA5C50B,oBAA4CA,aAHxDA,eACJ,IAAIu1B,GAEyE,CAEjFmK,WAAWn/B,GACP,MAAMo/B,EAAiB3/B,KAAKi5B,aAAaxC,cAAc,CACnDmE,UAAWr6B,EAAKq6B,UAChBR,UAAW75B,EAAK65B,UAChBwE,SAAUr+B,EAAKq+B,SACff,UAAWt9B,EAAKs9B,UAChBC,YAAav9B,EAAKu9B,YAClBe,SAAUt+B,EAAKs+B,SACfe,MAAOr/B,EAAKq/B,MACZ1B,YAAa39B,EAAK29B,YAClBC,cAAe59B,EAAK49B,cACpBC,aAAc79B,EAAK69B,aACnBtD,QAASv6B,EAAKu6B,QACdL,OAAQl6B,EAAKk6B,SAEjBz6B,KAAK6/B,UAAU9E,IAAIx6B,EAAMo/B,EAC7B,CAEAG,cAAcpJ,GACV,MAAM5W,EAAI9f,KAAK6/B,UAAUj/B,IAAI81B,GAC7B,OAAS,MAAL5W,EACOgV,QAAQC,UAEZjV,EAAEsV,KAAM4J,GAA2Bh/B,KAAK40B,MAAMiD,IAAI,KAAQmH,EAAEe,SAASrJ,EAAQkJ,MAAK,GAC7F,CAEAI,kBAAkBz/B,EAAiBwC,GAC/B,OAAO/C,KAAK6/B,UAAUj/B,IAAIL,GAAM60B,KAAM4J,IAA6BA,EAAEvJ,WAAW1yB,EAAO,EAC3F,CAEAk9B,cAAcL,GACV,MAAM9f,EAAI9f,KAAK6/B,UAAUj/B,IAAIg/B,GAC7B,OAAS,MAAL9f,EACOgV,QAAQC,UAEZjV,EAAEsV,KAAM4J,GACJh/B,KAAK40B,MAAMiD,IAAI,KAClBmH,EAAExI,OAAO,MACTx2B,KAAK6/B,UAAUpG,OAAOmG,EAAK,GAGvC,CAEAL,QAAQW,GACJ,OAAOlgC,KAAK6/B,UAAUj/B,IAAIs/B,GACrB9K,KAAMsB,GAAYA,EAAQ6I,UAAU9C,WAC7C,CAEA0D,SAASD,GACL,OAAOlgC,KAAK6/B,UAAUj/B,IAAIs/B,GACrB9K,KAAMsB,GAAYA,EAAQyJ,WAAW1D,WAAW55B,IAAK+G,GAAMA,EAAE6yB,YACtE,CAEAxB,sBAAyBzD,EAAmBj3B,GACxC,OAAO,IAAIk3B,KAAYC,IACnB13B,KAAK6/B,UAAUj/B,IAAIL,GAAM60B,KAAM4J,IAC3BA,EAAErH,YAAYH,EAAY0D,GAASl7B,KAAK40B,MAAMiD,IAAI,IAAMH,EAASnuB,KAAK2xB,IAAG,EAC5E,EAET,CAEMsE,0BAA0BY,GAAoB,qCAGhD,MAAMR,SADgBj/B,EAAKk/B,UAAUj/B,IAAIw/B,IACnBD,WAEtB,OADsBjE,GAAyB0D,GAC1Br9B,QACjB89B,MAAW,CAAE7D,OAAQoD,EAAMnD,cAAmE,EAC9F6D,MAAUC,MAAiBC,SACvBD,EAAc/D,OAAO35B,IAAI,CAAC49B,EAAOplB,IAC7B6gB,GAAyBuE,GACpBl+B,QAAKM,KAAI69B,KAAiBH,gBAAeG,aAAYC,UAAWtlB,QACxE9Y,QACG89B,MAAU,CAAEE,gBAAeG,WAAY,KAAMC,UAAW,UAAQ,EAExEC,MAAK,IAAC,EACN/9B,KAAI,EAAG09B,gBAAeG,aAAYC,gBAC9B,IAAIE,EACJ,OAAKH,GAUDG,EAAS,CACLrE,OAAQ+D,EAAc/D,OAAO35B,IAAIi+B,IAAUA,GAAOrE,WAAW55B,IAAIu0B,IAAUA,GAAOvpB,WAClF8yB,YACAnJ,UAAWkJ,EAAWlJ,UACtBnc,MAAOqlB,EAAWrlB,OAElBqlB,EAAWnE,WACXsE,EAAOtE,SAAWmE,EAAWnE,YAhBjCsE,EAAS,CACLrE,OAAQ+D,EAAc/D,OAAO35B,IAAIi+B,IAAUA,GAAOrE,WAAW55B,IAAIu0B,IAAUA,GAAOvpB,WAClF2pB,UAAW+I,EAAc/I,UACzBnc,MAAOklB,EAAcllB,OAErBklB,EAAchE,WACdsE,EAAOtE,SAAWgE,EAAchE,SAASE,aAa1CoE,IACP,EAtCwC,EAuCpD,+CA1GSpB,GAAqB1+B,mDAArB0+B,EAAqBz+B,QAArBy+B,EAAqBx+B,YAArBw+B,CAAqB,KCDrBsB,GAAoB,MAA3B,MAAOA,EAITjhC,YAAoBkhC,EAA2CpM,GAA3C50B,mBAA2CA,aAHvDA,cACJ,IAAIu1B,GAEwE,CAEhF0L,UAAUC,GACNlhC,KAAKmhC,SAASpG,IAAImG,EAAQlhC,KAAKghC,YAAYpI,eAAexD,KAAK,IAC3Dp1B,KAAKghC,YAAY/K,aAAa,CAC1BmL,OAAQ,CAAElyB,IAAKgyB,EAAOtH,SAAUC,IAAKqH,EAAOpH,WAC5Cc,UAAWsG,EAAOtG,UAClBR,UAAW8G,EAAO9G,UAClBwE,SAAUsC,EAAOtC,SACjBf,UAAWqD,EAAOrD,UAClBC,YAAaoD,EAAOpD,YACpBuD,OAAQH,EAAOG,OACfnD,YAAagD,EAAOhD,YACpBC,cAAe+C,EAAO/C,cACtBmD,eAAgBjM,OAAOC,KAAKiM,eAAeL,EAAOI,gBAClDlD,aAAc8C,EAAO9C,aACrBtD,QAASoG,EAAOpG,QAChBL,OAAQyG,EAAOzG,UAG3B,CAKA+G,aAAaN,GACT,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAMqM,IACnCA,EAAEjL,OAAO,MACTx2B,KAAKmhC,SAAS1H,OAAOyH,EAAM,EAEnC,CAEMzL,WAAWyL,EAAkBn+B,GAAkC,qCACjE,OAAOpC,EAAKwgC,SAASvgC,IAAIsgC,GAAQ9L,KAAMqM,IAEnC1+B,EAAQu+B,eAAiBjM,OAAOC,KAAKiM,eADjBx+B,EAAQu+B,gBAE5BG,EAAEhM,WAAW1yB,EAAO,EACrB,EAL8D,EAMrE,CAEAk1B,UAAUiJ,GACN,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAMqM,GAAMA,EAAExJ,YACnD,CAEAG,UAAU8I,GACN,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAMqM,GAAMA,EAAErJ,YACnD,CAEAsJ,UAAUR,GACN,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAMqM,GAAMA,EAAEC,YACnD,CAEA3J,UAAUmJ,GACN,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAC7BqM,GAAKA,EAAE1J,UAAU,CAAE7oB,IAAKgyB,EAAOtH,SAAUC,IAAKqH,EAAOpH,YAC7D,CAEA6H,YAAYT,GACR,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAKqM,GAAKA,EAAEE,YAAYT,EAAOtC,UACpE,CAEAgD,aAAaV,GACT,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAKqM,GAAKA,EAAEG,aAAaV,EAAO9G,WACrE,CAEAyH,WAAWX,GACP,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAKqM,GAAKA,EAAEI,WAAWX,EAAOpG,SACnE,CAEAgH,UAAUZ,GACN,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,GAAQ9L,KAAKqM,GAAKA,EAAEK,UAAUZ,EAAOG,QAClE,CAEAU,gBAAgBb,GACZ,OAAOlhC,KAAKmhC,SAASvgC,IAAIsgC,EAC7B,CAEAjG,sBAAyBzD,EAAmB0J,GACxC,OAAO,IAAIzJ,KAAYC,IACnB,IAAIsK,EAA0C,KAC9C,YAAKb,SAASvgC,IAAIsgC,GAAQ9L,KAAMqM,IAC5BO,EAAWP,EAAE9J,YAAYH,EAAY0D,GAASl7B,KAAK40B,MAAMiD,IAAI,IAAMH,EAASnuB,KAAK2xB,IAAG,GAGjF,KACc,OAAb8G,GACAA,EAASnF,QAAM,CAEvB,EAER,+CA9FSkE,GAAoBhgC,mDAApBggC,EAAoB//B,QAApB+/B,EAAoB9/B,YAApB8/B,CAAoB,KCApBkB,GAAuB,MAA9B,MAAOA,EAITniC,YAAoBkhC,EAA2CpM,GAA3C50B,mBAA2CA,aAHvDA,iBACJ,IAAIu1B,GAEwE,CAEhF2M,aAAaC,GACTniC,KAAKoiC,YAAYrH,IAAIoH,EAAWniC,KAAKghC,YAAYpI,eAAexD,KAAK,IACjEp1B,KAAKghC,YAAY7K,gBAAgB,CAC7BkM,OAAQ,CACJC,MAAOH,EAAUG,MACjBC,KAAMJ,EAAUI,KAChBC,MAAOL,EAAUK,MACjBC,KAAMN,EAAUM,MAEpB7H,UAAWuH,EAAUvH,UACrBR,UAAW+H,EAAU/H,UACrBwE,SAAUuD,EAAUvD,SACpBf,UAAWsE,EAAUtE,UACrBC,YAAaqE,EAAUrE,YACvBI,YAAaiE,EAAUjE,YACvBC,cAAegE,EAAUhE,cACzBmD,eAAgBjM,OAAOC,KAAKiM,eAAeY,EAAUb,gBACrDlD,aAAc+D,EAAU/D,aACxBtD,QAASqH,EAAUrH,QACnBL,OAAQ0H,EAAU1H,UAG9B,CAKAiI,gBAAgBP,GACZ,OAAOniC,KAAKoiC,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,IACzCA,EAAEmO,OAAO,MACTx2B,KAAKoiC,YAAY3I,OAAO0I,EAAS,EAEzC,CAEA1M,WAAW0M,EAAwBp/B,GAC/B,OAAO/C,KAAKoiC,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,IAEzCtlB,EAAQu+B,eAAiBjM,OAAOC,KAAKiM,eADRx+B,EAAQu+B,gBAErCjZ,EAAEoN,WAAW1yB,EAAO,EAE5B,CAEAk1B,UAAUkK,GACN,OAAOniC,KAAKoiC,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,GAAMA,EAAE4P,YACzD,CAEA0K,UAAUR,GACN,OAAOniC,KAAKoiC,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,GAClCA,EAAEsa,UAAU,CACfL,MAAOH,EAAUG,MACjBC,KAAMJ,EAAUI,KAChBC,MAAOL,EAAUK,MACjBC,KAAMN,EAAUM,OAG5B,CAEAd,YAAYQ,GACR,OAAOniC,KAAKoiC,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,GAClCA,EAAEsZ,YAAYQ,EAAUvD,UAEvC,CAEAgD,aAAaO,GACT,OAAOniC,KAAKoiC,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,GAClCA,EAAEuZ,aAAaO,EAAU/H,WAExC,CAEAyH,WAAWM,GACP,OAAOniC,KAAKoiC,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,GAClCA,EAAEwZ,WAAWM,EAAUrH,SAEtC,CAEAG,sBAAyBzD,EAAmB2K,GACxC,OAAO,IAAI1K,KAAYmL,IACnB,IAAIZ,EAA0C,KAC9C,YAAKI,YAAYxhC,IAAIuhC,GAAW/M,KAAM/M,IAClC2Z,EAAW3Z,EAAEsP,YAAYH,EAAY0D,GAASl7B,KAAK40B,MAAMiD,IAAI,IAAM+K,EAAWr5B,KAAK2xB,IAAG,GAGnF,KACc,OAAb8G,GACAA,EAASnF,QAAM,CAEvB,EAER,+CA9FSoF,GAAuBlhC,mDAAvBkhC,EAAuBjhC,QAAvBihC,EAAuBhhC,YAAvBghC,CAAuB,KCP7B,IAAKY,GAKX,aALWA,UAAmB,KAC3BC,gBACAD,kBACAA,0BACAA,kCAJQA,GAAZ,IAAYA,GAKX,GAEWE,GAOX,aAPWA,UAAwB,KAChCC,cACAD,qBACAA,mBACAA,yBACAA,cACAA,YANQA,GAAZ,IAAYA,GAOX,GCNM,IAAME,GAAwB,MAA/B,MAAOA,EAWTnjC,YAAoBojC,qBATZljC,2BAAgE,IAAIu1B,IACpEv1B,sBAA2D,IAAIu1B,IAM/Dv1B,iBAAc,0CAEwB,CANnCmjC,qBACP,OAAOnjC,KAAKojC,sBAAsBC,KAAO,GAAKrjC,KAAKsjC,iBAAiBD,KAAO,CAC/E,CAWOE,aAAaC,EAAiBC,EAAuCC,GAExE,OAAO,IAAI5O,QAAmC,CAACC,EAAS4O,KAEpD,GAAI3jC,KAAKojC,sBAAsBQ,IAAIJ,GAE/B,YADAzO,EAAQ/0B,KAAKojC,sBAAsBxiC,IAAI4iC,IAG3C,GAAe,MAAXE,GAAmB1jC,KAAKsjC,iBAAiBM,IAAIF,GAE7C,YADA3O,EAAQ/0B,KAAKsjC,iBAAiB1iC,IAAI8iC,IAItC,IAAIG,EAAc,GAAG7jC,KAAK8jC,iEAC1B,OACID,GADW,MAAXH,EACe,YAAYA,IAEZ,YAAYF,IAGxBxjC,KAAKkjC,WAAWtiC,IAAgCijC,GAAalyB,UAAW,CAC3EpI,KAAM9H,IACF,GAAIA,EAAKsiC,OAASlB,UAEd,YADAc,EAAO,2BAGX,MAAMK,EAAyC,CAC3CN,QAASjiC,EAAKwiC,SAASP,QACvBQ,UAAWziC,EAAK0iC,KAAKV,GAAaW,aAClCC,YAAa5iC,EAAK0iC,KAAKpB,UAAgCqB,cAG3DpkC,KAAKojC,sBAAsBrI,IAAIyI,EAASQ,GAExCjP,EAAQiP,EAAW,EAEvBthC,MAAOA,IACH,GAAoB,MAAjBA,EAAM4hC,OAML,OALAtkC,KAAKukC,eAAef,GAASpO,KACzBoP,MACA9hC,GAASlC,QAAQkC,MAAMA,EAAMA,MAAMA,MAAMpB,eAE7CqiC,EAAO,2BAGXA,EAAOjhC,EAAK,GAEnB,EAET,CAEO6hC,eAAef,GAClB,IAAIK,EAAc,GAAG7jC,KAAK8jC,sFAA8EN,IAExG,OAAO,IAAI1O,QAAa,CAACC,EAAS4O,IACvB3jC,KAAKkjC,WAAW/gC,KAAU0hC,OAAal2B,GAAWgE,UAAU,CAC/DpI,KAAM9H,IACFszB,EAAQtzB,EAAI,EAEhBiB,MAAOA,IACHihC,EAAOjhC,EAAK,IAI5B,+CAlFSugC,GAAwBliC,wCAAxBkiC,EAAwBjiC,QAAxBiiC,EAAwBhiC,YAAxBgiC,CAAwB,KCe/B,MAAgBwB,IAQf,IAAMC,GAAgB,MAAvB,MAAOA,EAKT5kC,YAAYi0B,GAHO/zB,8BAA2B,IAAI0H,KAAwB,KACvD1H,uBAAoB,IAAI0H,KAA2B,IAAI6tB,KAGtEv1B,KAAK2kC,WAAU1kC,MAAK8zB,EAAOzzB,QAAQiC,QAC/BqiC,OAAQ,IAAM5kC,KAAK6kC,oBAAiB,EACpCC,MACI9kC,KAAK+kC,yBAAyBxiC,QAAK+9B,MAAU0E,MAAQC,MAAM,EAAGD,OAAO,EAEzEniC,KAAIqiC,GAAmBllC,KAAKmlC,gBAAgBD,KAAgB,EAC5D7xB,KAAY,GAEpB,CAEQ8xB,gBACJD,GAEA,MAAM7C,EAAS,IAAIhN,OAAOC,KAAK8P,aAC/BF,SAAgBv7B,QAAQ4e,GAAK8Z,EAAOgD,OAAO9c,IACpC8Z,CACX,CAEAiD,YAAYlO,GACR,MAAM3zB,EAAKzD,KAAKulC,kBAAkBnO,GAClC,GAAIp3B,KAAK6kC,kBAAkB5/B,MAAM2+B,IAAIngC,GACjC,OAEJ,MAAM+hC,EAAYxlC,KAAK6kC,kBAAkB5/B,MACzCugC,EAAUzK,IAAIt3B,EAAI2zB,GAClBp3B,KAAK6kC,kBAAkBt7B,KAAKi8B,EAChC,CAEAC,iBAAiBrO,GACb,MAAMoO,EAAYxlC,KAAK6kC,kBAAkB5/B,MACzCugC,EAAU/L,OAAOz5B,KAAKulC,kBAAkBnO,IACxCp3B,KAAK6kC,kBAAkBt7B,KAAKi8B,EAChC,CAEAE,gCAAgCC,GAC5B3lC,KAAK+kC,yBAAyBx7B,KAAKo8B,EACvC,CAEAC,aACI,OAAO5lC,KAAK2kC,OAChB,CAEUY,kBAAkBnO,GACxB,MAAO,GAAGA,EAAOloB,OAAOkoB,EAAOyC,KACnC,+CAlDS6K,GAAgB3jC,sCAAhB2jC,EAAgB1jC,QAAhB0jC,EAAgBzjC,YAAhByjC,CAAgB,KC3BPmB,EAAY,MAA5B,MAAgBA,kDAAY,0BAAZA,EAAYC,+BAAZD,CAAY,gECC3B,IAAME,GAAiB,MAAxB,MAAOA,EAGTjmC,YAAYi0B,GACR,MAAMiS,EAAuB,IAAIvO,KAAWwO,IACxClS,EAAOzzB,OAAO80B,KAAK,IAAM6Q,EAAW18B,OAAM,GAEzChH,QACGM,KAAI,IAAM7C,KAAKkmC,oBAAiB,EAChCC,MAAU,IAAIC,KAAc,KAGpCJ,EAAqBK,UAGrBrmC,KAAKsmC,UAAYN,CACrB,CAEOO,QAAQj8B,GACX,OAAOtK,KAAKsmC,UAAU/jC,QAClB+9B,MAAWkG,GAAaxmC,KAAKymC,kBAAkBD,EAAUl8B,IAEjE,CAEQm8B,kBAAkBD,EAAgCl8B,GAGtD,SAD0Bo8B,MAAaF,EAASD,QAChD,CAAyBj8B,GAAS/H,QAC9B+9B,MAAU,EAAEqG,EAASrC,KACbA,IAAWjP,OAAOC,KAAKsR,eAAeC,MAC/BC,OAAGH,IAAO,EAGdI,MAAWzC,IAG9B,CAEQ4B,kBACJ,OAAO,IAAI7Q,OAAOC,KAAK0R,QAC3B,+CAxCSjB,GAAiBhlC,sCAAjBglC,EAAiB/kC,QAAjB+kC,EAAiB9kC,qBADJ,SACb8kC,CAAiB,oBCAlBkB,GAIX,aAJWA,UAAmB,KAC3BA,iBACAA,uBACAA,iBAHQA,GAAZ,IAAYA,GAIX,GAoBM,IAAMC,GAAY,MAAnB,MAAOA,EAUTpnC,YAAoBqnC,EACAC,GADApnC,yBACAA,uBAPXA,aAA+BinC,GAAoBI,OACnDrnC,WAAO,CAM0C,CAE1DmlB,WAAa,CAEbmiB,kBAEI,MACMC,EAAMvnC,KAAKonC,gBAAgBb,QAAQ,CAAE77B,SADD,CAAEwE,IAAKlP,KAAK45B,SAAUC,IAAK75B,KAAK85B,aACXv3B,QACvDilC,MAAS,IAAMD,EAAI1hB,gBAEtBlU,UAAU81B,IACP,GAAsB,MAAnBA,GAAsD,IAA3BA,EAAgBh+B,OAAc,OAC5D,MAAM+5B,EAAUiE,EAAgB,GAAGC,kBAEnC,IAAIjE,EAAcV,WAClB,OAAO/iC,KAAK2nC,cACHV,GAAoBI,OACrB5D,EAAcV,aACd,WACCkE,GAAoBW,IACrBnE,EAAcV,UACd,MACqB8E,QAErBpE,EAAcV,WAItB/iC,KAAKmnC,kBAAkB5D,aAAaC,EAASC,GACxCrO,KACG4O,IACIhkC,KAAKgkC,YAAcA,EAAYE,UAC/BlkC,KAAK8nC,WAAa9D,EAAYK,aAElC3hC,GAASlC,QAAQkC,MAAMA,GAAM,EAGjD,CAEAkjB,cAAgB,+CAlDPshB,GAAYnmC,8CAAZmmC,EAAYphB,0QAfjB/kB,mBAMIA,uDACJA,cANQA,mCAAqB,8BAcxBmmC,CAAY,oBC2ClB,IAAMa,GAAM,MAAb,MAAOA,EAmQTjoC,YACY80B,EACAoT,EACA/O,EACEgP,EACFC,GAJAloC,aACAA,aACAA,oBACEA,yBACFA,6BApQHA,eAAY,EAKZA,cAAW,EAKXA,UAAO,EAuBOA,gBAAY,EAK1BA,6BAAyB,EAMzBA,uBAAmB,EAKnBA,kBAAc,EA4BdA,wBAAoB,EAMpBA,YAAqC,GAOrCA,iBAAa,EAMbA,gBAGO,EAUPA,eAAgD,UAMhDA,qBAAiB,EAQjBA,4BAAwB,EA0BxBA,UAAO,EACPA,aAAU,EAKVA,WAAuB,KASvBA,kBAAe,EAEfA,oBAAgB,EAChBA,0BAAuB,IA4BxBA,8BAA2C,GAQzCA,cAAiF,IAAIwH,MAMrFxH,mBAAyD,IAAIwH,MAM7DxH,iBAAuD,IAAIwH,MAK3DxH,kBAAwD,IAAIwH,MAK5DxH,kBAAuD,IAAIwH,MAK3DxH,qBAAuD,IAAIwH,MAK3DxH,UAA2B,IAAIwH,MAK/BxH,gBAAmC,IAAIwH,MAMvCxH,cAA0C,IAAIwH,MAK9CxH,iBAAkC,IAAIwH,MA0SxCxH,oBAA4C,CAAEkP,IAAK,EAAG2qB,IAAK,EAhS/D,CA3FOsO,oBACP,OAA0B,MAAnBnoC,KAAKooC,YAAsBpoC,KAAKkoC,sBAAsB/E,cACjE,CA2FAhe,WAAmB,CAEnBmiB,kBACI,MAAMe,EAAYroC,KAAKgoC,MAAM/N,cAAcqO,cACvC,2BAEJtoC,KAAKuoC,iBAAiBF,EAC1B,CAEQE,iBAAiB/X,GAErB,MAAM4Q,EAAS,CAAElyB,IAAKlP,KAAK45B,UAAY,EAAGC,IAAK75B,KAAK85B,WAAa,GAE3D5E,EAAqC,CACvCsT,MAAOxoC,KAAKwoC,MACZpH,OAAQA,EACRhyB,KAAMpP,KAAKoP,KACXq5B,QAASzoC,KAAKyoC,QACdC,QAAS1oC,KAAK0oC,QACdC,YAAa3oC,KAAK2oC,YAClBC,iBAAkB5oC,KAAK4oC,iBACvBC,uBAAwB7oC,KAAK6oC,uBAC7BC,YAAa9oC,KAAK8oC,YAClBl1B,gBAAiB5T,KAAK4T,gBACtBwmB,UAAWp6B,KAAKo6B,UAChB2O,gBAAiB/oC,KAAK+oC,gBACtBC,eAAgBhpC,KAAKgpC,eACrBC,kBAAmBjpC,KAAKipC,kBACxBC,UAAWlpC,KAAKkpC,UAAUC,oBAC1BC,eAAgBppC,KAAKopC,eACrBC,KAAMrpC,KAAKqpC,KACXC,QAAStpC,KAAKspC,QACdC,YAAavpC,KAAKupC,aAEJ,MAAdvpC,KAAKwoC,QACLtT,EAAWsU,OAASxpC,KAAKwpC,QAG7BxpC,KAAKi5B,aACAhE,UAAUzE,EAAI0E,GACdE,KAAK,IAAMp1B,KAAKi5B,aAAaL,gBAC7BxD,KAAMvyB,IACH7C,KAAKypC,SAASv+B,KAAKrI,EAAG,GAI9B7C,KAAK0pC,eAAiBtI,EAGtBphC,KAAK2pC,yBACL3pC,KAAK4pC,uBACL5pC,KAAK6pC,wBACL7pC,KAAK8pC,sBACL9pC,KAAK+pC,yBACL/pC,KAAKgqC,0BACLhqC,KAAKiqC,mBACLjqC,KAAKkqC,sBACT,CAEQH,yBACJ,MAAMI,EAAInqC,KAAKi5B,aAAa1B,oBAAoB,qBAAqB5lB,UAAU,KAC3E3R,KAAKi5B,aAAaf,eAAe9C,KAC5B8T,IAAuClpC,KAAKoqC,gBAAgBl/B,KAAKg+B,EAAS,EAAI,GAEvFlpC,KAAKqqC,yBAAyBx7B,KAAKs7B,EACvC,CAEQR,yBACJ,MAAMQ,EAAInqC,KAAKi5B,aAAa1B,oBAAoB,kBAAkB5lB,UAAU,KACxE3R,KAAKi5B,aAAab,YAAYhD,KAAMgM,IAChCphC,KAAK45B,SAAWwH,EAAOlyB,MACvBlP,KAAK85B,UAAYsH,EAAOvH,MACxB75B,KAAKsqC,aAAap/B,KAAK,CAAEgE,IAAKlP,KAAK45B,SAAUC,IAAK75B,KAAK85B,YAEvD95B,KAAKuqC,gBAAc,EACtB,GAELvqC,KAAKqqC,yBAAyBx7B,KAAKs7B,EACvC,CAEQL,sBACJ,MAAMK,EAAInqC,KAAKi5B,aAAa1B,oBAAoB,kBAAkB5lB,UAAU,KACxE3R,KAAKi5B,aAAahB,YAAY7C,KACzBiN,IAAuCriC,KAAKwqC,aAAat/B,KAAKm3B,EAAM,EAAI,GAEjFriC,KAAKqqC,yBAAyBx7B,KAAKs7B,EACvC,CAEQP,uBACJ,MAAMO,EAAInqC,KAAKi5B,aAAa1B,oBAAoB,gBAAgB5lB,UAAU,KACtE3R,KAAKi5B,aAAajB,UAAU5C,KAAMqV,IAC9BzqC,KAAKoP,KAAOq7B,EACZzqC,KAAK0qC,WAAWx/B,KAAKu/B,EAAC,EACzB,GAELzqC,KAAKqqC,yBAAyBx7B,KAAKs7B,EACvC,CAEQN,wBAEJ,MAAMc,EAAQ3qC,KAAKi5B,aAAa1B,oBAAoB,SAAS5lB,UAAWqhB,IAE/DA,EAAqC4X,UAAY5qC,KAAK6qC,uBACvD7X,EAAM8X,OAEV9qC,KAAK+qC,SAAS7/B,KAAK8nB,EAAK,GAE5BhzB,KAAKqqC,yBAAyBx7B,KAAK87B,GAEnC,MAAMK,EAAWhrC,KAAKi5B,aAAa1B,oBAAoB,YAAY5lB,UAAWqhB,IAErEA,EAAqC4X,UAAY5qC,KAAK6qC,uBACvD7X,EAAM8X,OAEV9qC,KAAKirC,YAAY//B,KAAK8nB,EAAK,GAE/BhzB,KAAKqqC,yBAAyBx7B,KAAKm8B,GAEnC,MAAME,EAAalrC,KAAKi5B,aAAa1B,oBAAoB,cAAc5lB,UAAWqhB,IAEzEA,EAAqC4X,UAAY5qC,KAAK6qC,uBACvD7X,EAAM8X,OAEV9qC,KAAKmrC,cAAcjgC,KAAK8nB,EAAK,GAEjChzB,KAAKqqC,yBAAyBx7B,KAAKq8B,EACvC,CAEQlB,0BACJ,MAAMG,EAAInqC,KAAKi5B,aAAa1B,oBAAoB,eAAe5lB,UAC3D,IAAM3R,KAAKorC,YAAYlgC,UAAK,IAEhClL,KAAKqqC,yBAAyBx7B,KAAKs7B,EACvC,CAEQF,mBACJ,MAAME,EAAInqC,KAAKi5B,aAAa1B,oBAAoB,QAAQ5lB,UACpD,KAAQ3R,KAAKqrC,KAAKngC,UAAK,EAAM,GACjClL,KAAKqqC,yBAAyBx7B,KAAKs7B,EACvC,CAEQD,uBACJlqC,KAAKsrC,eACLtrC,KAAKurC,YAAYC,QAAQ75B,UAAU,IAAM3R,KAAKsrC,eAClD,CAEQA,eACJ,MAAMG,EAAkD,CACpDC,mBAAoB1rC,KAAK4oC,iBACzB+C,gBAAgB,EAChBC,YAAY,EACZC,eAAe,EACfC,cAAc,EACdC,mBAAoB/rC,KAAK4oC,iBACzBoD,aAAchsC,KAAK4oC,kBAEvB5oC,KAAKurC,YAAY5hC,QAAQsiC,GAAW5N,OAAO6N,OAAOT,EAAgBQ,EAAQniC,eAC1E9J,KAAKi5B,aAAazD,cAAciW,EACpC,CAGOU,YAAYX,GACfxrC,KAAKosC,yBAAyBZ,GAC9BxrC,KAAKqsC,gBAAgBb,EACzB,CAEQY,yBAAyBZ,GAC7B,MAAMzoC,EAAuC,GAEzCs7B,OAAOiO,KAAKd,GAAS/2B,OAAO83B,IAAiD,IAA5CxE,EAAOyE,sBAAsB3iC,QAAQ0iC,IAC/D5iC,QAAS4iC,IAAQxpC,EAAQwpC,GAAKf,EAAQe,GAAGE,eACpDzsC,KAAKi5B,aAAazD,cAAczyB,EACpC,CAOA2pC,cAAcC,GAAoB,GAI9B,OAAO,IAAI7X,QAAeC,IACtB6X,WAAW,IACA5sC,KAAKi5B,aAAaJ,gBAAgB,UAAUzD,KAAK,KAChDuX,IACkB,MAAlB3sC,KAAKy4B,UAAoBz4B,KAAK6sC,aAAe7sC,KAAK8sC,cAEtD/X,GAAO,GAEd,EAET,CAEQsX,gBAAgBb,GAEpB,GAA2B,MAAvBA,EAAQ5R,UAA+C,MAAxB4R,EAAQ1R,WACtC0R,EAAQ/S,UAOb,IAAI,cAAe+S,EAEf,YADAxrC,KAAK6sC,aAIoB,iBAAlB7sC,KAAK45B,UAAmD,iBAAnB55B,KAAK85B,WAGrD95B,KAAK8sC,YAAU,CACnB,CAEQA,aACJ,MAAMC,EAAY,CACd79B,IAAKlP,KAAK45B,SACVC,IAAK75B,KAAK85B,WAEV95B,KAAKgtC,WACLhtC,KAAKi5B,aAAaZ,MAAM0U,GAExB/sC,KAAKi5B,aAAalB,UAAUgV,EAEpC,CAEQF,aACJ,OAAQ7sC,KAAKy4B,gBACJ,EACDz4B,KAAKitC,+BACL,WACC,EACGjtC,KAAKktC,wBACLltC,KAAKktC,uBAAuBrnB,cAEhC,cAEI7lB,KAAKktC,wBACLltC,KAAKktC,uBAAuBrnB,cAEhC7lB,KAAKmtC,cAAcntC,KAAKy4B,UAAWz4B,KAAKotC,kBAEpD,CAEQH,+BACJjtC,KAAK40B,MAAMO,kBAAkB,KACzBn1B,KAAKktC,uBAAyBltC,KAAKioC,kBAAkBrC,aAAaj0B,UAAU4W,IACxEvoB,KAAK40B,MAAMiD,IAAI,IAAM73B,KAAKmtC,cAAc5kB,EAAGvoB,KAAKotC,kBAAiB,EACpE,EAET,CAEUD,cAAc9K,EAAoE3J,GACxF,GAAK2J,EAGL,IAAIriC,KAAKqtC,uBAAuBhL,WAAkBhN,OAAW,KAAeA,QAAUA,OAAOC,MAAQD,OAAOC,KAAK8P,aAAc,CAC3H,MAAMkI,EAAY,IAAIjY,OAAOC,KAAK8P,aAClCkI,EAAUC,MAAMlL,GAChBA,EAASiL,EAEb,GAAIttC,KAAKgtC,WAEL,YADAhtC,KAAKi5B,aAAaN,YAAY0J,EAAQ3J,GAG1C14B,KAAKi5B,aAAaR,UAAU4J,EAAQ3J,EAAO,CAC/C,CAEQ2U,uBAAuBhL,GAC3B,OAAiB,MAAVA,QAA6C10B,IAA1B00B,EAAegD,MAC7C,CAGOzf,cAEH5lB,KAAKqqC,yBAAyB1gC,QAASwgC,GAAMA,EAAEtkB,eAG/C7lB,KAAKi5B,aAAanB,yBACd93B,KAAKktC,wBACLltC,KAAKktC,uBAAuBrnB,aAEpC,CAIQ0kB,kBACCvqC,KAAKwtC,gBAEkB,MAAxBxtC,KAAKytC,iBACLC,aAAa1tC,KAAKytC,iBAEtBztC,KAAKytC,gBAAkBb,WAAW,KAC1B5sC,KAAKgtC,WACLhtC,KAAKi5B,aAAaZ,MAAMr4B,KAAK0pC,gBAE7B1pC,KAAKi5B,aAAalB,UAAU/3B,KAAK0pC,eAAc,EAEpD1pC,KAAK2tC,sBACZ,EAnYe5F,+BAAkC,CAC7C,yBACA,cACA,YACA,kBACA,iBACA,oBACA,SACA,OACA,UACA,UACA,YACA,iBACA,kBACA,OACA,qDApMKA,GAAMhnC,kFAANgnC,EAAMjiB,wEA6KEohB,GAAY,WAoFZrB,EAAY,snCAzSlB,CACPnR,GACAsE,GACAmC,GACA2B,GAEA4H,GACAjF,GACAsB,GACAkB,GACAgB,KAMHliC,4IAEGA,iBACAA,iBACIA,SACJA,eAHoCA,+CACRA,+TAqBvBgnC,CAAM,oBCpEnB,IAAI6F,GAAe,EAWNC,GAAY,MAAnB,MAAOA,EA0DT/tC,YAAoBguC,EAAsDC,GAAtD/tC,0BAAsDA,WAXjEA,aAAS,EAKRA,qBAAsC,IAAIwH,MAG5CxH,gCAA4B,EAC5BA,UAAe4tC,MAAgB5oB,UAEsD,CAE7FG,WACInlB,KAAK8kB,QAAU9kB,KAAK+tC,IAAI9T,cAAcqO,cAAc,gCACpDtoC,KAAK8tC,mBAAmBhS,cAAc97B,MACtCA,KAAKguC,2BAA4B,EACjChuC,KAAKiuC,mBACLjuC,KAAKkuC,yBACT,CAGA/B,YAAYX,IACHxrC,KAAKguC,6BAILxC,EAAQ5R,UAAe4R,EAAQ1R,YAA0C,iBAAlB95B,KAAK45B,UACnC,iBAAnB55B,KAAK85B,WACZ95B,KAAK8tC,mBAAmBpS,YAAY17B,MAEpCwrC,EAAQ/Q,QACRz6B,KAAK8tC,mBAAmBnS,UAAU37B,MAElCwrC,EAAQ2C,QACRnuC,KAAKiuC,mBAETjuC,KAAKouC,sBAAsB5C,GAC/B,CAGQ0C,0BACJluC,KAAK8tC,mBAAmB7S,sBAAsB,aAAcj7B,MAAM2R,UAAU,KACxE3R,KAAKmuC,QAAS,EACdnuC,KAAKquC,gBAAgBnjC,MAAI,EAEjC,CAEQ+iC,mBACJjuC,KAAKmuC,OAASnuC,KAAK47B,OAAS57B,KAAKy7B,OACrC,CAEQ2S,sBAAsB5C,GAC1B,MAAMzoC,EAAuC,GAC1Bs7B,OAAOiO,KAAKd,GAAS/2B,OAAO83B,IAA0D,IAArDsB,EAAaS,yBAAyBzkC,QAAQ0iC,IACvF5iC,QAAS4iC,IAAQxpC,EAAQwpC,GAAKf,EAAQe,GAAGE,eACpDzsC,KAAK8tC,mBAAmBrY,WAAWz1B,KAAM+C,EAC7C,CAKA64B,OAAwB,OAAO57B,KAAK8tC,mBAAmBlS,KAAK57B,KAAO,CAKnEy7B,QACI,OAAOz7B,KAAK8tC,mBAAmBrS,MAAMz7B,MAAMo1B,KAAK,KAAQp1B,KAAKquC,gBAAgBnjC,MAAI,EACrF,CAGAzH,KAAe,OAAOzD,KAAKuuC,GAAK,CAGhCvpB,WAAqB,MAAO,oBAAsBhlB,KAAKuuC,IAAIvpB,UAAY,CAGvEY,cAAgB5lB,KAAK8tC,mBAAmBzS,iBAAiBr7B,KAAO,EAvEjD6tC,kCAAqC,CAAC,iBAAkB,kDAtD9DA,GAAY9sC,iDAAZ8sC,EAAY/nB,6VANjB/kB,iBACIA,SACJA,YAIK8sC,CAAY,KCRrBW,GAAW,EAgDFC,GAAQ,MAAf,MAAOA,EA4IT3uC,YAAoBs7B,EAA6ClK,EAA6Bwd,EAAwBC,GAAlG3uC,sBAA6CA,eAA6BA,eAAwBA,eA9H7GA,WAAgB,GAWCA,gBAAY,EA4B7BA,cAAU,EAKVA,qBAAiB,EAKjBA,aAAU,EAQVA,YAAS,EAMQA,gBAAY,EAU5BA,qBAAkB,IAAIwH,MAKtBxH,iBAAsC,IAAIwH,MAK1CxH,oBAAyC,IAAIwH,MAK7CxH,sBAAuC,IAAIwH,MAK3CxH,eAAqD,IAAIwH,MAMzDxH,UAAgD,IAAIwH,MAKpDxH,aAAmD,IAAIwH,MAKvDxH,eAAqD,IAAIwH,MAKzDxH,cAAoD,IAAIwH,MAGnCxH,gBAAsC,IAAI4uC,MAEjE5uC,2BAAuB,EAEvBA,8BAA2C,GAGhCA,wBAAsD,IAAIomC,KAAgC,GAE0CpmC,KAAKuuC,KAAOC,MAAYxpB,UAAY,CA5GpL6pB,aACL,OAAI7uC,KAAK8uC,QAIsB,iBAAhB9uC,KAAK8uC,QACV9uC,KAAK8uC,QAEP,QAAS9uC,KAAK8uC,QACb9uC,KAAK8uC,QAAQ7sC,IAEd,SAAUjC,KAAK8uC,QACd9uC,KAAK8uC,QAAQvuC,KAGbP,KAAK8uC,SAbZtuC,QAAQ+L,KAAK,iCACN,KAcX,CA8FAwiC,qBACI/uC,KAAKgvC,yBACLhvC,KAAKs7B,WAAWkQ,QAAQ75B,UAAU,IAAM3R,KAAKgvC,yBACjD,CAEQA,yBACJ,GAAIhvC,KAAKs7B,WAAW7xB,OAAS,EACzB,MAAM,IAAIpI,MAAM,0CAEpBrB,KAAKs7B,WAAW3xB,QAAQisB,IACpBA,EAAOiG,WAAa77B,MAE5B,CAGAmsC,YAAYX,GAOR,GAN6B,iBAAlBxrC,KAAK45B,WACZ55B,KAAK45B,SAAW/zB,OAAO7F,KAAK45B,WAEF,iBAAnB55B,KAAK85B,YACZ95B,KAAK85B,UAAYj0B,OAAO7F,KAAK85B,YAEJ,iBAAlB95B,KAAK45B,UAAmD,iBAAnB55B,KAAK85B,UAGrD,KAAK95B,KAAKivC,qBAKN,OAJAjvC,KAAKo7B,eAAeP,UAAU76B,MAC9BA,KAAKkvC,0BACLlvC,KAAKivC,sBAAuB,OAC5BjvC,KAAKmvC,sBAIL3D,EAAQ5R,UAAe4R,EAAQ1R,aAC/B95B,KAAKo7B,eAAe1B,qBAAqB15B,MACzCA,KAAKkvC,2BAEL1D,EAAQpf,OACRpsB,KAAKo7B,eAAerB,YAAY/5B,MAEhCwrC,EAAQpR,WACRp6B,KAAKo7B,eAAelB,gBAAgBl6B,OAEpCwrC,EAAQ4D,OAAU5D,EAAQsD,SAAYtD,EAAQlR,SAAYkR,EAAQ6D,YAClErvC,KAAKo7B,eAAepB,yCAAyCh6B,MAE7DwrC,EAAQlR,SACRt6B,KAAKo7B,eAAef,cAAcr6B,MAElCwrC,EAAQ1Q,SACR96B,KAAKo7B,eAAeb,cAAcv6B,MAElCwrC,EAAQ/Q,QACRz6B,KAAKo7B,eAAeZ,aAAax6B,MAEjCwrC,EAAQ5Q,WACR56B,KAAKo7B,eAAeV,gBAAgB16B,KAAI,CAEhD,CAGAsvC,uBACI,OAAOtvC,KAAKuvC,mBAAmBhnC,cACnC,CAEU2mC,0BACNlvC,KAAKuvC,mBAAmBhmC,KAAK,CAAE6tB,OAAQ,CAAEloB,IAAKlP,KAAK45B,SAAUC,IAAK75B,KAAK85B,YAC3E,CAEQqV,qBACJ,MAAMK,EAAKxvC,KAAKo7B,eAAeH,sBAAsB,QAASj7B,MAAM2R,UAAU,KACtE3R,KAAKyvC,gBACLzvC,KAAKs7B,WAAW3xB,QAAQ2xB,GAAcA,EAAWM,QAErD57B,KAAK0vC,YAAYxkC,KAAKlL,KAAI,GAE9BA,KAAKqqC,yBAAyBx7B,KAAK2gC,GAYnC,MAAMG,EAAI3vC,KAAKo7B,eAAeH,sBAAiD,YAAaj7B,MACnF2R,UAAUupB,GAAKl7B,KAAK4vC,UAAU1kC,KAAKgwB,IAC5Cl7B,KAAKqqC,yBAAyBx7B,KAAK8gC,GAEnC,MAAMn0B,EACFxb,KAAKo7B,eAAeH,sBAAiD,OAAQj7B,MACxE2R,UAAUupB,GAAKl7B,KAAK6vC,KAAK3kC,KAAKgwB,IACvCl7B,KAAKqqC,yBAAyBx7B,KAAK2M,GAEnC,MAAM4B,EACFpd,KAAKo7B,eAAeH,sBAAiD,UAAWj7B,MAC3E2R,UAAUupB,GAAKl7B,KAAK8vC,QAAQ5kC,KAAKgwB,IAC1Cl7B,KAAKqqC,yBAAyBx7B,KAAKuO,GAYnC,MAAM2yB,EACF/vC,KAAKo7B,eAAeH,sBAA4B,oBAAqBj7B,MAChE2R,UAAU,KACP3R,KAAKgwC,gBAAgB9kC,KAAKlL,KAAKqvC,UAAS,GAEpDrvC,KAAKqqC,yBAAyBx7B,KAAKkhC,EACvC,CAGAtsC,KAAe,OAAOzD,KAAKuuC,GAAK,CAGhCvpB,WAAqB,MAAO,gBAAkBhlB,KAAKuuC,IAAIvpB,UAAY,CAGnEY,cACI5lB,KAAKo7B,eAAe/B,aAAar5B,MAEjCA,KAAKqqC,yBAAyB1gC,QAASwgC,GAAMA,EAAEtkB,cACnD,+CAlRS4oB,GAAQ1tC,wEAAR0tC,EAAQ3oB,8EAmIA+nB,GAAY,0kBAvIlB,CACP,CAAEoC,QAASxL,GAAmByL,eAAaC,OAAW,IAAM1B,MAC/D1tC,gJAxCDA,iBACAA,sCAAeqvC,kBAAqB,EAApCrvC,CAAqC,+BACvBqvC,iBAAoB,EADlCrvC,CAAqC,gCAEtBqvC,yBAA4B,EAF3CrvC,CAAqC,6BAGzBqvC,uBAA0B,GACwCrvC,SAC5EA,iBACFA,eAF2CA,iCAA3CA,6BAA0B,iBAAoDA,+BACvEA,ueAoCE0tC,CAAQ,KCnDR4B,GAAc,MAArB,MAAOA,EAsFTlrB,WACI,GAAiB,MAAbnlB,KAAKO,KACL,MAAM,IAAIc,MAAM,iCAExB,+CA1FSgvC,EAAc,0BAAdA,EAAcvqB,qUAAduqB,CAAc,KCOdC,GAAe,MAAtB,MAAOA,EAgBTxwC,cAFUE,qBAA2D,IAAIwH,KAEzD,CAEhB2kC,YAAYX,IACJA,EAAQ5R,UAAe4R,EAAQ1R,YAC/B95B,KAAKuwC,gBAAgBrlC,KAAK,CACtBgE,IAAKs8B,EAAQ5R,SAAc4R,EAAQ5R,SAAY6S,aAAezsC,KAAK45B,SACnEC,IAAK2R,EAAQ1R,UAAe0R,EAAQ1R,UAAa2S,aAAezsC,KAAK85B,WAGjF,CAGAwV,uBACI,OAAOtvC,KAAKuwC,gBAAgBhuC,QACxB89B,MAAU,CAAEnxB,IAAKlP,KAAK45B,SAAUC,IAAK75B,KAAK85B,aAAW,EACrDj3B,KAAI82B,KAAevC,OAAQuC,KAEnC,+CAjCS2W,EAAe,0BAAfA,EAAexqB,sJAJb,CACP,CAAEmqB,QAASxL,GAAmByL,eAAaC,OAAW,IAAMG,MAC/DvvC,SAEQuvC,CAAe,KCJxBE,GAAa,EAKJC,GAAU,MAAjB,MAAOA,EAgIT3wC,YAAoB4wC,2BA5HX1wC,gBAAY,EAOOA,gBAAY,EAM/BA,eAAW,EAQXA,eAAW,EAoBXA,cAAU,EAUTA,eAAsD,IAAIwH,MAK1DxH,kBAAyD,IAAIwH,MAK7DxH,cAAoD,IAAIwH,MAKxDxH,iBAAuD,IAAIwH,MAK3DxH,mBAAyD,IAAIwH,MAK7DxH,mBAA0D,IAAIwH,MAK9DxH,mBAA0D,IAAIwH,MAK9DxH,kBAAyD,IAAIwH,MAK7DxH,mBAA0D,IAAIwH,MAK9DxH,iBAAwD,IAAIwH,MAK5DxH,oBAA2D,IAAIwH,MAK/DxH,oBAAiB,IAAIwH,MAevBxH,8BAA0B,EAC1BA,oBAAiC,GAEuBA,KAAKuuC,KAAOiC,MAAcxrB,UAAY,CAGtG+pB,qBACQ/uC,KAAK2wC,OAAOlnC,QACZzJ,KAAK2wC,OAAOhnC,QAASqzB,IACjB,MAAMmN,EAAInN,EAAMuT,gBAAgB5+B,UAC5B,KAAQ3R,KAAK0wC,iBAAiB3R,qBAAqB/+B,KAAI,GAC3DA,KAAK4wC,eAAe/hC,KAAKs7B,EAAC,GAG7BnqC,KAAK6wC,yBACN7wC,KAAK8wC,QAET,MAAMC,EAAW/wC,KAAK2wC,OAAOnF,QAAQ75B,UAAU,IAAM3R,KAAK0wC,iBAAiB3R,qBAAqB/+B,OAChGA,KAAK4wC,eAAe/hC,KAAKkiC,GACzB/wC,KAAK0wC,iBAAiB3R,qBAAqB/+B,MAE3C,MAAMgxC,EAAUhxC,KAAKixC,cAAczF,QAAQ75B,UAAU,IAAM3R,KAAK0wC,iBAAiBxR,oBAAoBl/B,OACrGA,KAAK4wC,eAAe/hC,KAAKmiC,EAC7B,CAEA7E,YAAYX,GACR,IAAKxrC,KAAK6wC,wBAEN,YADA7wC,KAAK8wC,QAIT,MAAM/tC,EAAuC,GAC1Bs7B,OAAOiO,KAAKd,GAAS/2B,OACpC83B,IAA0D,IAArDkE,EAAWS,2BAA2BrnC,QAAQ0iC,IAC5C5iC,QAAQ4iC,GAAKxpC,EAAQwpC,GAAKf,EAAQe,GAAGE,cAChDzsC,KAAK0wC,iBAAiBvR,mBAAmBn/B,KAAM+C,EACnD,CAEAw8B,UACI,OAAOv/B,KAAK0wC,iBAAiBnR,QAAQv/B,KACzC,CAEQ8wC,QACJ9wC,KAAK0wC,iBAAiBlS,YAAYx+B,MAClCA,KAAK6wC,yBAA0B,EAC/B7wC,KAAKmvC,oBACT,CAEQA,qBACa,CACb,CAAEzxB,KAAM,QAAS4e,QAAU6U,GAAmCnxC,KAAKoxC,UAAUlmC,KAAKimC,IAClF,CAAEzzB,KAAM,WAAY4e,QAAU6U,GAAmCnxC,KAAKqxC,aAAanmC,KAAKimC,IACxF,CAAEzzB,KAAM,OAAQ4e,QAAU6U,GAAkCnxC,KAAKsxC,SAASpmC,KAAKimC,IAC/E,CAAEzzB,KAAM,UAAW4e,QAAU6U,GAAkCnxC,KAAKuxC,YAAYrmC,KAAKimC,IACrF,CAAEzzB,KAAM,YAAa4e,QAAU6U,GAAkCnxC,KAAKwxC,cAActmC,KAAKimC,IACzF,CAAEzzB,KAAM,YAAa4e,QAAU6U,GAAmCnxC,KAAKyxC,cAAcvmC,KAAKimC,IAC1F,CAAEzzB,KAAM,YAAa4e,QAAU6U,GAAmCnxC,KAAK0xC,cAAcxmC,KAAKimC,IAC1F,CAAEzzB,KAAM,WAAY4e,QAAU6U,GAAmCnxC,KAAK2xC,aAAazmC,KAAKimC,IACxF,CAAEzzB,KAAM,YAAa4e,QAAU6U,GAAmCnxC,KAAK4xC,cAAc1mC,KAAKimC,IAC1F,CAAEzzB,KAAM,UAAW4e,QAAU6U,GAAmCnxC,KAAK6xC,YAAY3mC,KAAKimC,IACtF,CAAEzzB,KAAM,aAAc4e,QAAU6U,GAAmCnxC,KAAK8xC,eAAe5mC,KAAKimC,KAEvFxnC,QAASooC,IACd,MAAMC,EAAKhyC,KAAK0wC,iBAAiBzV,sBAAsB8W,EAAIr0B,KAAM1d,MAAM2R,UAAUogC,EAAIzV,SACrFt8B,KAAK4wC,eAAe/hC,KAAKmjC,EAAE,GAG/BhyC,KAAK0wC,iBAAiBlR,0BAA0Bx/B,MAAMo1B,KAAM6c,IACxD,MAAMD,EAAKC,EAAItgC,UAAUugC,GAAalyC,KAAKmyC,eAAejnC,KAAKgnC,IAC/DlyC,KAAK4wC,eAAe/hC,KAAKmjC,EAAE,EAEnC,CAGAjV,aACI,OAAI/8B,KAAK2wC,OACE3wC,KAAK2wC,OAAOyB,UAEhB,EACX,CAEAhV,YACI,OAAIp9B,KAAKixC,cACEjxC,KAAKixC,cAAcmB,UAEvB,EACX,CAGA3uC,KAAe,OAAOzD,KAAKuuC,GAAK,CAGhC3oB,cACI5lB,KAAK0wC,iBAAiBtR,eAAep/B,MAErCA,KAAK4wC,eAAejnC,QAASwgC,GAAMA,EAAEtkB,cACzC,EAtGe4qB,oCAAuC,CAClD,YAAa,WAAY,UAAW,WAAY,cAAe,gBAAiB,eAChF,gDAzHKA,GAAU1vC,oCAAV0vC,EAAU3qB,iFAmHFwqB,GAAe,WAEfD,GAAc,0qBArHtBI,CAAU,uICErB1vC,gEACCA,yCAAuE,kBAAvEA,CAAuE,sBAAvEA,CAAuE,iBAAvEA,CAAuE,6CAOvEA,6DACAA,wBAAkB,6DArBpBA,qBAUCA,6DAAYA,sBAAkB,GAE9BA,mCAOAA,8BACCA,2CAGDA,kCArBAA,sBAAkB,uBAAlBA,CAAkB,oBAAlBA,CAAkB,sBAAlBA,CAAkB,iBAAlBA,CAAkB,8BAAlBA,CAAkB,gCAAlBA,CAAkB,kBAUYA,kCAOZA,8BACqBA,mCCRlC,IAAMsxC,GAAc,MAArB,MAAOA,EAIZvyC,cAAgB,CAEhBqlB,WACA,CAOAmtB,SAAS5tB,GACR,MAAO,GAAGA,EAAEsH,YAAYtH,EAAEvW,OAC3B,CAEAokC,WAAW1vC,GACNA,GACHA,EAAI4yB,WAAW,CACdsW,mBAAmB,GAGtB,+CAxBYsG,EAAc,0BAAdA,EAAcvsB,kuBDb3B/kB,iBACCA,6BAyBDA,eAzByBA,iRCYZsxC,CAAc,+BCDvBtxC,eAAwCA,SAAKA,kCAALA,6CAZ1CA,iBAE6C,UAF7CA,CAE6C,WAG1CA,eACDA,QACAA,iBAA6B,SACvBA,SAAsBA,YAG7BA,iBACCA,wBACDA,8CAXAA,2CAG4DA,mCAA3CA,0CAGVA,2BAIaA,oCCDhB,IAAMyxC,GAAkB,MAAzB,MAAOA,EAEZ1yC,YAAmBgR,mBAA+B,CAElDqU,WACA,CAEAstB,aAAanpB,GACZ,IAAIxmB,EAAS,GAEb,OAAQwmB,QACF,EAAGxmB,EAAS,cAAe,WAC3B,EAAGA,EAAS,SAAU,WACtB,EAAGA,EAAS,WAAY,WACxB,EAAGA,EAAS,cAAe,WAC3B,EAAGA,EAAS,YAAa,WACzB,GAAIA,EAAS,iBAAkB,WAC/B,GAAIA,EAAS,cAAe,WAC5B,GAAIA,EAAS,SAAU,WACvB,GAAIA,EAAS,iBAAkB,WAC/B,GAAIA,EAAS,iBAAkB,WAC/B,GAAIA,EAAS,iBAAkB,WAC/B,GAAIA,EAAS,oBAAqB,WAClC,GAAIA,EAAS,UAAW,WACxB,GAAIA,EAAS,cAAe,WAC5B,GAAIA,EAAS,WAAY,cACrBA,EAAS,qBAEnB,OAAOA,CACR,CAEA4vC,qBAAqBppB,GACpB,IAAKA,EAAEqpB,OAAS,MAAO,GAEvB,IAAI3T,EAAI,EACR,OAAwB,IAApB1V,EAAEqpB,OAAOlpC,OACZu1B,EAAI1V,EAAEqpB,OAAO,GAAGlpC,OAEhB6f,EAAEqpB,OAAOhpC,QAASipC,IACbA,EAAInpC,OAASu1B,IAChBA,EAAI4T,EAAInpC,UAIJu1B,EAAI,IAAM,gBAAkBA,EAAI,GAAK,iBAAmB,EAChE,+CA7CYwT,GAAkBzxC,sCAAlByxC,EAAkB1sB,gYDb/B/kB,qBAAsC,WAEpCA,wBAeDA,iBAf4BA,krECWhByxC,CAAkB,+FCJ3BzxC,kBACuB,WADvBA,CACuB,UAEfA,gBAA2BA,SAAmCA,QACpEA,gBAAMA,8BAAkFA,UAEzFA,kBAAmB,UACZA,iBAA4BA,UAAkCA,QACpEA,iBAAMA,gCAAgFA,kCALrDA,0EAC3BA,mHAG4BA,yEAC5BA,6IAUNA,kBACCA,kBACDA,kCADMA,6DAHRA,kBAA4C,8BAE1CA,yBAGDA,gCAJkEA,uCAC7BA,6DAYpCA,gDAAwBA,4DACxBA,iDAAiDA,4DAFlDA,SACCA,wBACAA,yBACDA,kCAFMA,gCACCA,yDAMNA,gDAAwBA,4DACxBA,iDAAiDA,4DAFlDA,SACCA,wBACAA,yBACDA,kCAFMA,gCACCA,yDAMRA,4CACCA,uBAAe,qFAMfA,eAAiD,UACeA,SAAkBA,+CAA9EA,2DAA4DA,mDAHjEA,sBAAsD,QACjDA,8BAA4CA,QAChDA,yBAGDA,8BAJKA,sDACsBA,+FAO1BA,kBAA4C,QACvCA,8BAA+CA,QACnDA,mCACDA,8BAFKA,yDACkBA,yEAGvBA,kBAAqC,QAChCA,8BAA+CA,QACnDA,4BACDA,8BAFKA,yDACWA,iCCzCd,IAAM8xC,GAAiB,MAAxB,MAAOA,EA4CZ/yC,YACS4jB,EACA0K,EACAjM,EACD4G,EACAjY,EACCmR,EACAC,EACA4wB,EACMlvB,EACA+G,GACkBmH,GAClBvnB,GACA8qB,IAZNr1B,kBACAA,mBACAA,mBACDA,kBACAA,iBACCA,0BACAA,mBACAA,cACMA,oBACAA,eACkBA,iBAClBA,aACAA,eAvDRA,kBAA8B,GAC9BA,WAAgB,GAIvBA,iBAAc,CACb6qB,aAAc,EACdC,eAAgB,EAChBC,UAAW,4EACXC,UAAW,2EACXC,MAAM,EACNC,UAAU,EACVC,OAAO,EACPC,WAAY,CACX,CACCC,WAAY,KACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,EAChBI,UAAU,EACVD,MAAM,IAGR,CACCI,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,IAGlB,CACCO,WAAY,IACZC,SAAU,CACTT,aAAc,EACdC,eAAgB,MAMpB9qB,YAAS,GAiBRA,KAAK+yC,MAAQ,IAAI1iC,CAClB,CAEA8U,WACCnlB,KAAKouB,YACH5R,OACA7K,UAAU0c,IACVruB,KAAKmiB,YACHP,YAAYyM,EAAY5qB,IACxBkO,UAAWlQ,IACXzB,KAAKgzC,SAAWvxC,EAGEzB,KAAK4jB,aAAa+B,SAAS3lB,KAAKgzC,SAASloC,MAGzC9K,KAAKq1B,OAAO1hB,IAAI3T,KAAKgzC,SAASloC,KACd9K,KAAK2qB,OAAO1oB,IACZjC,KAAK8xB,SAASpnB,SAASuoC,MAEzDjzC,KAAKisB,aACLjsB,KAAKkzC,gBAAgBlzC,KAAKgzC,SAASlkC,cACnC9O,KAAKmzC,UAAUnzC,KAAKgzC,SAASrkC,OAC7B3O,KAAK+yC,MAAQ/yC,KAAKozC,OAAO3xC,GACzBzB,KAAK8yC,OAAOriB,gCAAgCzwB,KAAKgzC,SAAQ,EACzD,EAEL,CAEAK,oBAAoBC,GACnB,MAAMxwC,EAAgB,IAAIuN,EAC1BvN,SAAO2N,WAAa,EACpB3N,EAAO4N,YAAc,EACrB5N,EAAOsM,KAAO,EAGVkkC,GAAoBA,EAAiB7pC,OAAS,IACjD3G,EAAO2N,WAAa6iC,EAAiB,GAAGpkC,IACxCpM,EAAO4N,YAAc4iC,EAAiB,GAAGC,IACzCzwC,EAAOsM,KAAO,GAERtM,CACR,CAEAswC,OAAOrxB,GACN,IAAKA,EAAM,OAAO,KAElB,MAAMjf,EAAgB,IAAIuN,EAC1BvN,SAAO2N,WAAcsR,EAAKlf,KAAKqM,IAC/BpM,EAAO4N,YAAcqR,EAAKlf,KAAKsM,KAC/BrM,EAAOsM,KAAO2S,EAAKlf,KAAKuM,KAGjBtM,CACR,CAEAowC,gBAAgBM,GACTA,GAAgB/pC,OAAS,GAC/B+pC,EAAe7pC,QAAQuiB,IACtBlsB,KAAKiiB,mBAAmB1B,mBAAmB2L,GAAGva,UAAUiP,IACvD5gB,KAAK8O,aAAaD,KAAK+R,EAAW,EAClC,EAEH,CAEAuyB,UAAUM,GACHA,GAAShqC,OAAS,GACxBgqC,EAAQ9pC,QAAQuiB,IACflsB,KAAKkiB,YAAYZ,YAAY4K,GAAGva,UAAU+P,IACzC1hB,KAAK2O,MAAME,KAAK6S,EAAI,EACpB,EAEH,CAMAuK,aACKjsB,KAAKgzC,SAASx7B,UAAU/N,OAAS,EACpCzJ,KAAKgzC,SAASx7B,SACZ7N,QAAQ+pC,IACR1zC,KAAKyrB,OAAO5c,KAAK,CAChBiZ,IAAK4rB,EAASzxC,KACd,GAKHjC,KAAKyrB,OAAO5c,KAAK,CAChBiZ,IAAK9nB,KAAKgzC,SAAS3kC,OAGtB,CAEAkkC,WAAW1vC,GACNA,GACHA,EAAI4yB,WAAW,CACdsW,mBAAmB,GAGtB,CAEA4H,cACC,OAAQ3zC,KAAKgzC,UAAUY,YAAY5kC,QAAUhP,KAAKgzC,UAAUY,YAAY3kC,OAAS,CAClF,CAEA4kC,kBACC,OAAQ7zC,KAAKgzC,UAAUlkC,cAAcrF,OAAS,CAC/C,CAEAqqC,WACC,OAAQ9zC,KAAKgzC,UAAUrkC,OAAOlF,OAAS,CACxC,CAEAsqC,iBACC,OAAO/zC,KAAKgzC,UAAUgB,UAAUvqC,OAAS,CAM1C,CAEAwqC,iBAAiBC,GAChB,OAAOA,CACR,CAEAC,SACC,OAAqB,MAAdn0C,KAAK+yC,KACb,+CA7LYF,GAAiB9xC,gHAuDdqsB,MAAQrsB,6CAvDX8xC,EAAiB/sB,8gCDjC9B/kB,qBAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAKAA,SAAoBA,YAG/CA,iBACCA,0BAWDA,UAGDA,iBAAiB,YAEfA,yBAQAA,uBAA0D,iBAI1DA,uBACCA,mCAIDA,QAEAA,uBACCA,mCAIDA,UAGDA,mBACCA,+BAKAA,8BAMAA,uBACCA,4BAEAA,0BAKAA,0BAIDA,uBAvE0BA,sDAKxBA,uCAeiBA,yCAQTA,sGAEwBA,yEAGFA,oEAOAA,+EAQrBA,kCAKmBA,0CAOfA,uEAEKA,2CAKAA,4iCCvCX8xC,CAAiB,8BC7B5B9xC,0CAECA,oCCUI,IAAMqzC,GAAoB,MAA3B,MAAOA,EAQTt0C,YACM4jB,EACA0K,EACDvK,EACCwwB,EACkBviB,EACZtB,EACApE,EACAiJ,EACA1K,GARN3qB,kBACAA,mBACDA,wBACCA,gBACkBA,gBACZA,UACAA,aACAA,cACAA,cAfLA,eAAoB,EAEvBA,kBAAuB,KACtBA,2BAAgC,oBAC7BA,4BAAiC,0EAYzC,CAEHmlB,WACCnlB,KAAKouB,YAAY5R,OAAO7K,UAAW0c,IAClCruB,KAAK0jB,WAAWP,WAAWkL,EAAY5qB,IAAI,GAAMkO,UAAWlQ,IAG/CzB,KAAKosB,MAAMzG,SAASlkB,EAAK2qB,MAAQ,wBAA0B3qB,EAAK2qB,MAAQ,sBAExEpsB,KAAKwjB,QAAU/hB,EAAK4T,KAE5BrV,KAAKs0C,kBAAkBjmB,EAAY5qB,KACtCzD,KAAKu0C,aAAe,qBACpBv0C,KAAKw0C,iBAELx0C,KAAKu0C,aAAe,KACpBv0C,KAAKusB,gBAIMvsB,KAAKq1B,OAAO1hB,IAAIlS,EAAK2qB,MACLpsB,KAAK2qB,OAAO1oB,IACZjC,KAAK8xB,SAASpnB,SAASuoC,KAAI,EACvD,EAEH,CAEQqB,kBAAkBlxB,GAEzB,OADwBA,GAAaljB,4BAEtC,CAGQs0C,eACP,MAAMhoB,EAA0BxsB,KAAKq0C,SAAStiB,cAAc,UAC5DvF,EAAwB3oB,KAAO,kBAC/B2oB,EAAwB/oB,GAAKzD,KAAKy0C,sBAClCjoB,EAAwB0F,IAAMlyB,KAAK00C,uBACnCloB,EAAwBnX,KAAO,GAEzBrV,KAAKq0C,SAASM,YAAY30C,KAAKwwB,GAAGyJ,cAAezN,EACxD,CAGOD,eACN,MAAMC,EAA0BxsB,KAAK8xB,SAASrF,eAAezsB,KAAKy0C,uBAC7DjoB,GACcxsB,KAAKq0C,SAAS3nB,YAAY1sB,KAAK8xB,SAASnF,KAAMH,EAClE,+CAlEY4nB,GAAoBrzC,oDAavBqsB,MAAQrsB,yEAbLqzC,EAAoBtuB,+NDhBjC/kB,qBACAA,qBAA4B,WAG1BA,4BAMDA,iBANWA,qWCYCqzC,CAAoB,+BCH/BrzC,eAA+E,SAEtBA,SAAoCA,8CAAzFA,+DAAqDA,4CCCpD,IAAM6zC,GAAqB,MAA5B,MAAOA,EAMZ90C,YACQipB,EACAC,GADAhpB,kBACAA,oBACJ,CARAipB,oBACH,OAAOjpB,KAAKgpB,cAAcf,YAAYjoB,KAAK60C,gBAAgBC,aAAa3rB,UAAWnpB,KAAKgpB,cAAcI,4BACvG,CAQAjE,WACA,CAEAsE,QAAQC,GACP,OAAKA,IACJA,EAAY,eAENA,CACR,CAEAC,SAASG,GACR,OAAIA,GACCA,EAAQF,WAAW,OACvBE,EAAU,IAAMA,GAEVA,GAJa,MAKrB,CAEAC,cAAcrM,GACb,OAAO1d,KAAKgpB,cAAcL,mBAAmBjL,EAC9C,CAEA2L,UAAUC,GACT,GAAIA,GAAKA,EAAE7f,OAzCS,IAyCe,CAElC,MAAM8f,GADND,EAAIA,EAAEjf,OAAO,EA1CM,MA2CCmf,YAAY,KAChCF,EAAIA,EAAEjf,OAAO,EAAGkf,GAAa,MAE9B,OAAOD,CACR,CAEA/B,cAAcnE,GACb,OAAOpjB,KAAK+oB,WAAWxB,cAAcnE,EACtC,CAEA2xB,wBAAwBC,GACvB,OAAOA,EAASlpB,KAAK,CAACC,EAAGxD,IAChBwD,EAAEK,MAAQ7D,EAAE6D,MAAS,GAAI,EAEnC,CAEA9E,0BAA0B7jB,GACzB,OAAOzD,KAAK+oB,WAAWzB,0BAA0B7jB,EAAIzD,KAAK60C,gBAAgBC,aAAal9B,QACxF,CAEAq9B,gBAAgB7oB,GACf,OAAOpsB,KAAKgpB,cAAcL,mBAAmByD,EAAO,EACrD,CAEA8oB,cAAcC,GACb,OAAKA,QAAyBxnC,IAAbwnC,GAA6C,GAAnBA,EAAS1rC,OAE7C0rC,EADCn1C,KAAKgpB,cAAcH,cAE5B,+CAhEY+rB,GAAqB7zC,6CAArB6zC,EAAqB9uB,8VDhBlC/kB,iBAECA,iBAGAA,gBAC6E,WAE3EA,eACDA,QACAA,iBAAqDA,SAAuDA,UAE7GA,iBACCA,wBAIDA,iBAhBAA,kGAECA,oGAA0C,qHAG1CA,kIAEIA,qHAEmBA,wCAA8BA,+GAG5BA,k+HCGd6zC,CAAqB,+BCE9B7zC,kBACCA,+BACDA,kCADmBA,+DAUhBA,SACCA,mBAICA,kBACDA,QACDA,wCAFgCA,uEAGhCA,SACCA,kBACDA,wCADwBA,sCAAoB,yCAX9CA,SAAgD,MAE9CA,kCAQAA,kCAIDA,+CAbcA,wCACEA,sDAQAA,iFAbpBA,SACCA,kBAAiB,YAEfA,kCAgBDA,UAEFA,8BAlBkCA,mECxBlCA,mDACCA,sEAECA,mBAA+B,QAAIA,SAAmBA,iCAAnBA,2DADpCA,SACCA,4BACAA,qBACDA,8BAFWA,uCACoBA,kDCYlC,MAAMq0C,GAAiB,CACtB,CAAE70C,KAAM,GAA+B80C,UAAW9qB,GAA6BwK,QAAS,IAExF,CAAEx0B,KAAM,WAA+B80C,UAAW9qB,GAA6BwK,QAAS,IACxF,CAAEx0B,KAAM,eAA+B80C,UAAW7nB,GAA6BuH,QAAS,IACxF,CAAEx0B,KAAM,mBAA+B80C,UAAWlnB,GAA6B4G,QAAS,IACxF,CAAEx0B,KAAM,QAA+B80C,UAAWpmB,GAA6B8F,QAAS,IACxF,CAAEx0B,KAAM,YAA+B80C,UAAW9lB,GAA6BwF,QAAS,IACxF,CAAEx0B,KAAM,SAA+B80C,UAAWnmB,GAA6B6F,QAAS,IACxF,CAAEx0B,KAAM,WAA+B80C,UAAWlmB,GAA6B4F,QAAS,IACxF,CAAEx0B,KAAM,WAA+B80C,UAAWhmB,GAA6B0F,QAAS,IACxF,CAAEx0B,KAAM,QAA+B80C,UAAW/lB,GAA6ByF,QAAS,IACxF,CAAEx0B,KAAM,YAA+B80C,UAAWxC,GAA6B9d,QAAS,IACxF,CAAEx0B,KAAM,eAA+B80C,UAAWxC,GAA6B9d,QAAS,IACxF,CAAEx0B,KAAM,cAA+B80C,UAAWjB,GAA6Brf,QAAS,IACxF,CAAEx0B,KAAM,kBAA+B80C,UCfL,MAA7B,MAAOC,UAA8B7xB,GAI1C3jB,YACC4jB,EACAC,EACAC,EACAC,GAEAniB,MAAMgiB,EAAYC,EAAgBC,EAAcC,GAChD7jB,KAAK+e,SAAW,cACjB,CAEAoG,WACCzjB,MAAMyjB,WAENnlB,KAAK0jB,WAAWtD,kBAAkBzO,UAAWlQ,IAC5CzB,KAAK8O,aAAerN,IAIrBzB,KAAK0jB,WAAW7C,sBAAsBlP,UAAWlQ,IAChDzB,KAAKu1C,iBAAmB9zC,GAG1B,+CA1BY6zC,GAAqBv0C,oEAArBu0C,EAAqBxvB,8kBHlBlC/kB,qBAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAA9BA,CAA8B,UAKAA,SAAsBA,QAC/CA,kBAAoE,UAErEA,UAEDA,iBAGDA,QAEAA,sBAA2B,aAEzBA,0BAGDA,UAGDA,mCAsBDA,iBAxC6BA,mCACEA,wDAWqBA,6CAMpCA,4EGLJu0C,CAAsB,KDe6CvgB,QAAS,IACxF,CAAEx0B,KAAM,8BAA+B80C,UEXA,MAAlC,MAAOG,EAKZ11C,YACS4jB,EACA0K,EACAnM,EACD4B,EACOwR,EACAjJ,EACAzB,EACkBmH,GAPxB9xB,kBACAA,mBACAA,0BACDA,wBACOA,cACAA,aACAA,cACkBA,eAC7B,CAEJmlB,WACCnlB,KAAKouB,YACH5R,OACA7K,UAAU0c,IACVruB,KAAK0jB,WACHP,WAAWkL,EAAY5qB,IACvBkO,UAAWlQ,IACXzB,KAAKwjB,QAAU/hB,EAGGzB,KAAKosB,MAAMzG,SAASlkB,EAAK2qB,MAAQ,wBAA0B3qB,EAAK2qB,MAAQ,sBAGxEpsB,KAAKq1B,OAAO1hB,IAAIlS,EAAK2qB,MACLpsB,KAAK2qB,OAAO1oB,IACZjC,KAAK8xB,SAASpnB,SAASuoC,KAAI,GAG/DjzC,KAAK0jB,WACH7C,sBACAlP,UAAWlQ,IACXzB,KAAK60C,gBAAkBpzC,EAAK8Z,KAAK2Q,GAAKA,EAAE4oB,cAAcl9B,SAAWyW,EAAYonB,IAAG,EAEhF,EAGL,+CA1CYD,GAA2Bz0C,mFAaxBqsB,MAAQ,0BAbXooB,EAA2B1vB,6RHxBxC/kB,qBACAA,qBAA4B,WAE1BA,qCAECA,iCAIFA,iBANoBA,yCAEHA,sKGmBLy0C,CAA2B,KFWwCzgB,QAAS,KAUlF,IAAM2gB,GAAgB,MAAvB,MAAOA,kDAAgB,0BAAhBA,gCANFC,aAAqBP,GAAQ,CACtCQ,0BAA2B,UAC3BC,uBAAwB,WAEfF,QAEED,CAAgB,qEGxCzB30C,gBAAqD,SAG5BA,SAAeA,oCADvCA,sDAA0C,oBAClBA,+CAULA,mBAAwEA,qBAAaA,kDALzFA,SACIA,gBACIA,uEAASA,4BAAyB,GACjCA,8BACLA,QACAA,0BACJA,yDALOA,2DAEEA,+DAE0BA,kFANvCA,gBACIA,iCAOJA,8BAPgCA,gDCCzC,IAAM+0C,GAAkB,MAAzB,MAAOA,EAWZh2C,YACS4jB,EACD5S,EACAvG,EACMwrC,GAHL/1C,kBACDA,iBACAA,YACMA,sBARJA,wBAAqB,GAEpBA,kBAAe,IAAI8jB,IAQ9B,CAEAqB,WAEOnlB,KAAKg2C,mBAAqBh2C,KAAK+1C,eAAe73B,eAAe83B,mBAU7Dh2C,KAAKi2C,sBACZ,CAEWA,uBACJj2C,KAAKk2C,WAAal2C,KAAK+1C,eAAen2B,cAM1C,CAOOu2B,eAAehsC,EAA2B6oB,GAC7CA,EAAMojB,iBAENp2C,KAAK+1C,eAAel3B,YAAY1U,EACpC,CAMAyb,cACI5lB,KAAKolB,aAAaS,aACtB,+CA5DSiwB,GAAkB/0C,iEAAlB+0C,EAAkBhwB,kbDd/B/kB,iBAC6B,UAD7BA,CAC6B,UAD7BA,CAC6B,UAIzBA,uBAKYA,gBAAuBA,gBAAMA,QAE7BA,uBAmCbA,qBA9CFA,6BAIyCA,uCAOJA,gyBCEzB+0C,CAAkB,KCdzB,MAAOO,iDCaRt1C,kBAAiEA,8BAA2CA,eAA3CA,+EAYhEA,kBAAiEA,8BAA6CA,eAA7CA,0DCVhE,IAAMu1C,GAAc,MAArB,MAAOA,EAUZx2C,YACSyK,EACAuG,EACAylC,EACA5rB,EACA1oB,GAJAjC,YACAA,iBACAA,aACAA,cACAA,WAdAA,YAAkB,GAGpBA,gBAAY,EACZA,cAAU,CAYjB,CAEAmlB,WACCnlB,KAAKw2C,UAAYx2C,KAAKy2C,iBACtBz2C,KAAK02C,cAAgB,IAAIL,EAC1B,CAEaM,UAAO,qCAEnB,GADAh2C,EAAKi2C,WAAY,EACbj2C,EAAKk2C,KAAKC,MAAO,CACpBn2C,EAAK6H,SAAU,EACf,IACC7H,EAAKk2C,KAAK5K,QAAQ8K,UAClB,MAAMxsC,QAAa5J,EAAK4J,KAAKe,MAAM3K,EAAK+1C,cAAcnrC,SAAU5K,EAAK+1C,cAAclrC,UACnF7K,EAAK6H,SAAU,EACX+B,EACC5J,EAAK41C,MAAMS,SAASC,cAAcrT,IAAI,mBACnCjjC,EAAKgqB,OAAOusB,SAAS,CAACv2C,EAAK41C,MAAMS,SAASC,cAAcr2C,IAAI,eAEhDiE,OAAO6F,SAASuoC,KAAOtyC,EAAKsB,IAAIylB,8BAA8Bnd,IAGjF5J,EAAK+1C,cAAclrC,SAAW,KAC9B7K,EAAKi2C,WAAY,SAEV1b,GACR16B,QAAQkC,MAAMw4B,WAEdv6B,EAAK6H,SAAU,EACf7H,EAAKk2C,KAAK5K,QAAQkL,UAEnB,EAxBkB,EAyBpB,CAEOC,aACN1sC,SAASuoC,KAAO/yC,sBACjB,CAEOm3C,YACN3sC,SAASuoC,KAAO/yC,uBACjB,CAEAu2C,iBACC,GAA2B,IAAvBz2C,KAAKyrB,OAAOhiB,OAAc,OAAO,IAAIoe,GAAM,6BAC/C,MAAMyvB,EAAcvpB,KAAKwpB,MAAMxpB,KAAKC,SAAWhuB,KAAKyrB,OAAOhiB,QAC3D,OAAOzJ,KAAKyrB,OAAO6rB,EACpB,+CA/DYhB,GAAcv1C,gFAAdu1C,EAAcxwB,iqCDf3B/kB,iBACCA,iBACAA,oBAAMA,mCAAYqvC,WAAS,GAC1BrvC,iBAAuB,UAAvBA,CAAuB,aAEoEA,8BAA8BA,QACvHA,iBAAsB,gBAKpBA,4FAJDA,QAMAA,0BACDA,UAEDA,kBAA4B,cAC8DA,gCAAkCA,QAC3HA,kBAAsB,kBAKpBA,4FAJDA,QAMCA,0BACFA,UAEDA,mBAAiB,YAAjBA,CAAiB,gBAIOA,gCAAkCA,iBACxDA,cAIHA,mBAAyB,YAAzBA,CAAyB,YAAzBA,CAAyB,YAAzBA,CAAyB,WAIDA,gCAASqvC,cAAY,GAA8DrvC,gCAA6CA,UAErJA,mBAAwC,WACnBA,gCAASqvC,aAAW,GAA8DrvC,gCAA6CA,wDA3CpHA,4CAIwDA,0CAOvFA,yDAFAA,4BAAoB,oCAGKA,8CAI8DA,8CAOvFA,4DAHAA,4BAAoB,oCAIMA,8CAO1BA,qCAAqBA,oDASkFA,yDAGDA,myFC7B/Fu1C,CAAc,+BCuBnBv1C,iBACgD,UAErBA,SAAmBA,8CAD1CA,2DACFA,2BAAyBA,iEAM7BA,gBAGCA,sEAASA,gBAAc,GAAEA,8BAC1BA,cAD0BA,8EAYxBA,SACCA,iBAA0B,UAAqCA,mBAAkCA,iBAAOA,gBAAMA,8BAAkCA,YAChJA,iBACDA,+BAF8BA,oDAAiFA,wFAVjHA,qBAEqB,+BAEnBA,gBAAwEA,iBACxEA,mBAA2DA,iBAC5DA,QAEAA,iBACCA,oDAIAA,kBAA0B,WAAoEA,oBAAgCA,kBAAOA,iBAAMA,gCAAsCA,YACjLA,kBAA0B,WAAwEA,0DAASA,gBAAoB,GAAEA,oBAAqCA,kBAAOA,iBAAMA,gCAAuCA,YACzNA,kBACDA,kBAA0B,WAAwBA,yDAASA,mBAAU,GAAEA,oBAAqCA,kBAAOA,iBAAMA,gCAAgCA,wCAbrHA,0DACdA,wCAAuB,uBACrBA,kDAITA,oEAIcA,qFAA8GA,oDAC9GA,yFAAsJA,qDAE1DA,wEAqGhIA,4CAAUA,2DCzJJ,IAAMy2C,GAAe,MAAtB,MAAOA,EAUZ13C,YACS4jB,EACA+zB,EACDjtB,EACAjgB,EACAgS,EACAta,GALCjC,kBACAA,oBACDA,qBACAA,YACAA,eACAA,WAfDA,uBAAmB,EAEnBA,iBAAc,GACdA,YAAQ,EACRA,YAAQ,EACRA,YAAkB,GAClBA,yBAA8B,EAC9BA,qBAA8BqN,MASlC,CAEH8X,WACCnlB,KAAK0jB,WAAWtB,UAAUzQ,UAAWlQ,IACpCzB,KAAKk2C,WAAaz0C,IAInBzB,KAAKwqB,cAAcrE,aAAaxU,UAAWlQ,IACtCA,GACHA,EAAKgT,OAAQyX,GAAMA,EAAE/B,aAAeha,YAAqBxG,QAASuf,GACjElpB,KAAKyrB,OAAO5c,KAAK,IAAIgZ,GAAMqB,EAAOiD,OAAQjD,EAAOkD,MAAOlD,EAAOe,MAAOf,EAAOzlB,KAAI,GAKpFzD,KAAK03C,gBAAkB13C,KAAKuc,QAAQ2B,gBAAgBtJ,SACrD,CAEA+iC,oBACC33C,KAAK43C,kBAAoB53C,KAAK43C,gBAC/B,CAEAC,sBACC73C,KAAK83C,oBAAsB93C,KAAK83C,kBACjC,CAEAC,sBACC,OAAO/3C,KAAK43C,iBAAmB,oBAAsB,qBACtD,CAEAI,mBACCh4C,KAAK43C,kBAAmB,CACzB,CAQAhc,KAAK9W,GACJ9kB,KAAKy3C,aACH7b,KAAK9W,EAAS,CACdmzB,eAAgB,oBAChBC,UAAU,IAEVp1C,OAAOsyB,KACNtyB,IACA9C,KAAKm4C,YAAc,gBAAgBr1C,KAEnCs1C,IACAp4C,KAAKm4C,YAAc,aAAan4C,KAAKq4C,iBAAiBD,IAAM,EAGhE,CAEQC,iBAAiBD,GACxB,OAAIA,IAAWE,SACP,kBACGF,IAAWE,oBACd,4BAEA,SAASF,GAElB,CAEAG,iBACC,MAAO,cACR,CAGAC,eACC,MAAMC,EAAe5zC,OAAO6zC,YAC5B14C,KAAK24C,MAAQF,GAlGc,GAoG5B,CAEAG,cACC,OAAO54C,KAAKuK,KAAK1B,aAAa3E,YAAclE,KAAKuK,KAAK1B,aAAa3E,YAAc,EAClF,CAEA20C,YACC,OAAO74C,KAAKuK,KAAK1B,aAAapF,GAAKzD,KAAKuK,KAAK1B,YAAYpF,GAAK,EAC/D,CAEaq1C,WAAQ,2CACDn4C,EAAK4J,KAAKiC,QAC7B,EAFoB,EAGrB,CAMAusC,iBACC,MAAM7kB,EAAU,IAAIjB,KAQpB,MAAO,wCANNiB,EAAQ8kB,cAAch0B,YACrBkP,EAAQ+kB,WAAa,GAAGj0B,WAAWwD,SAAS,EAAG,KAChD0L,EAAQglB,UAAUl0B,WAAWwD,SAAS,EAAG,KACzC0L,EAAQilB,WAAWn0B,WAAWwD,SAAS,EAAG,KAC1C0L,EAAQklB,aAAap0B,WAAWwD,SAAS,EAAG,MAG9C,+CA1HYgvB,GAAez2C,oFAAfy2C,EAAe1xB,6FAAfsqB,iBAAoB,mvEDjBjCrvC,iBAAuB,UAAvBA,CAAuB,UAAvBA,CAAuB,cAKnBA,gBAAa,SAAbA,CAAa,UAGdA,QACAA,eAAwD,WAEtDA,iBACDA,UAKDA,kBAAgF,UAAhFA,CAAgF,WAKvDA,iBAAMA,QAC7BA,kBAAqB,eAArBA,CAAqB,iCAUlBA,iBAAMA,gCAAqCA,QAAOA,gCACnDA,QAEAA,kBAECA,yBAKDA,YAGFA,kBACCA,wBAMAA,4BA4BDA,gBAcJA,0BACDA,QACAA,mBACCA,mBACAA,mBAA0B,YAA1BA,CAA0B,YAEJA,+BAAkBA,UAEvCA,oBACCA,gCAASqvC,oBAAkB,GAAErvC,QAC9BA,mBAAoC,aAApCA,CAAoC,YAApCA,CAAoC,YAApCA,CAAoC,YAApCA,CAAoC,eAKbA,0BAAaA,QAC/BA,qBACDA,UAEDA,mBAA2B,YAA3BA,CAA2B,eAEPA,iBAAIA,QACtBA,sBAAsE,aAC7DA,mBAAMA,QACdA,mBAAQA,mBAAMA,QACdA,mBAAQA,mBAAMA,QACdA,mBAAQA,mBAAMA,cAIjBA,mBAA2B,YAA3BA,CAA2B,eAEPA,yBAAYA,QAC9BA,sBAAsE,aAC7DA,2BAAcA,QACtBA,mBAAQA,2BAAcA,QACtBA,mBAAQA,2BAAcA,QACtBA,mBAAQA,2BAAcA,QACtBA,mBAAQA,2BAAcA,cAIzBA,mBAA2B,YAA3BA,CAA2B,eAEFA,oBAAOA,QAC9BA,sBAA2E,aAClEA,sBAASA,QACjBA,mBAAQA,sBAASA,QACjBA,mBAAQA,sBAASA,QACjBA,mBAAQA,sBAASA,cAIpBA,mBAA2B,YAA3BA,CAA2B,eAENA,2BAAcA,QACjCA,sBAAuE,aAC9DA,yBAAYA,QACpBA,mBAAQA,wBAAMA,QACdA,mBAAQA,yBAAOA,QACfA,mBAAQA,yBAAOA,QACfA,mBAAQA,0BAAOA,cAIlBA,oBAAuB,iBACkBA,mBAAKA,oBAQnDA,qDAvKEA,uCAOoCA,0CAE5BA,+CAoBFA,8DAEMA,iDAA4CA,gFAM5BA,kDAUtBA,0CAKAA,yCAyCQA,+BAEUA,mlVChFby2C,CAAe,+BCTAz2C,gBAAkDA,mBAAiCA,SAAqCA,+BAArCA,8EACnFA,gBAA6CA,mBAA+BA,SAAgCA,cAAMA,+BAAtCA,yEAC5EA,gBAA+CA,mBAA+BA,gBAAMA,gBAA+CA,SAA4BA,iCAAxEA,6DAA4CA,iEAL1JA,iBAAyD,QACpDA,8BAAmDA,QACrCA,gBACIA,0BAA+HA,cAC/HA,0BACAA,0BACJA,QACAA,gBAAiC,UAAjCA,CAAiC,QAEtBA,UAA2BA,QAAIA,eAClCA,UAA+DA,eAC/DA,UAAqFA,eACrFA,UACJA,kCAZlBA,+DAEyBA,sDACAA,iDACAA,mDAIAA,qCACHA,6EACAA,gGACAA,qEAI3BA,kBAC0B,UAD1BA,CAC0B,UAD1BA,CAC0B,UAEyEA,gBAAkDA,UAEnJA,iBAA6B,UAA8EA,gBAAkDA,UAC7JA,iBAA6B,UAAuEA,iBAAmDA,UACvJA,kBAA6B,WAAmFA,iBAAiDA,yCAYhKA,iBACCA,gBAAiCA,iBACjCA,gBAAgDA,SAA+BA,8CAA5EA,0DAA6CA,oEAYjDA,SACCA,gBAAgEA,SAA+BA,QAChGA,kDADIA,0DAA6DA,oEAGhEA,gBAAgDA,SAA+BA,kDAA5EA,iDAA6CA,oEANlDA,iBACCA,gBAAiCA,iBACjCA,kCAGAA,4CAGDA,uDANgBA,0CAA0B,eC3B1C,IAAMs4C,GAAe,MAAtB,MAAOA,EAWZv5C,YACS4jB,EACDC,EACCE,GAFA7jB,kBACDA,sBACCA,wBAZFA,gBAAuB,KACvBA,mBAA6B,KAEpBA,oBAAyB,EACzBA,iBAAsB,EAE9BA,mBAAuB,EACvBA,mBAAgB,IAAI8jB,IAMzB,CAEHqB,WAECnlB,KAAKs5C,cAAcj0B,IAClBrlB,KAAK6jB,iBAAiBnS,aAAaC,UAAU,KAE5C3R,KAAKu5C,mBAAkB,EAAI,IAI7Bv5C,KAAKu5C,mBACN,CAEQA,kBAAkBC,GAAiB,GAC1C,MAAMC,EAAgBz5C,KAAK2jB,eAAejE,kBAC1C,GAAI85B,GAA4B,MAAnBx5C,KAAK05C,YAAsBD,GAAiBz5C,KAAK25C,aAAc,CAE3E,GADA35C,KAAK25C,aAAeF,EACK,MAArBz5C,KAAK25C,cAAwB35C,KAAK25C,cAAgB,EAErD,OAGD35C,KAAKs5C,cAAcj0B,IAClBrlB,KAAK0jB,WAAWV,cAAchjB,KAAK25C,cAAchoC,UAAWlQ,IAC3DzB,KAAK05C,WAAaj4C,EAAKi4C,WACvB15C,KAAK45C,cAAgBn4C,EAAKo4C,eAI9B,CAEOC,mBACN,OAA6B,MAAtB95C,KAAK45C,aACb,CAEOG,SACN,OAA6B,MAAtB/5C,KAAK45C,eAAmD,MAA1B55C,KAAK45C,cAAcI,GACzD,CAEOC,WACN,OAA6B,MAAtBj6C,KAAK45C,eAAwD,MAA/B55C,KAAK45C,cAAc9pC,QACzD,CAEOoqC,WACN,OAA6B,MAAtBl6C,KAAK45C,eAAqD,MAA5B55C,KAAK45C,cAAc31C,KACzD,CAEOk2C,eAAe12C,GACrB,MAAO,YAAYA,GACpB,CAEO22C,eAAe18B,GACrB,OAAOA,CAKR,CAEO28B,gBAAgBC,GACtB,GAAuB,MAAnBt6C,KAAK05C,WAAoB,MAAO,GAEpC,IAAI52C,EAA4B,GAChC,OAAI9C,KAAK05C,WAAWv1B,aACnBrhB,EAAS9C,KAAK05C,WAAWv1B,WAAW1P,OAAQymB,IAC3C,GAAIA,EAAEz6B,QAAU65C,EACf,OAAOpf,KAKHp4B,CACR,CAEOy3C,cAAc3rC,GACpB,OAAOA,EAAK4rC,UAAYt6C,4BACzB,CAOA0lB,cACC5lB,KAAKs5C,cAAczzB,aACpB,CAOO40B,iBACN,OAAOz6C,KAAK2jB,eAAezF,eAAetJ,YAAcvH,MACzD,+CA9GYgsC,GAAet4C,wDAAfs4C,EAAevzB,2tCD3B5B/kB,qBAAgC,UAAhCA,CAAgC,UAAhCA,CAAgC,UAAhCA,CAAgC,WAK3BA,0BAgBAA,yBAUDA,UAEDA,iBAA8C,UAA9CA,CAA8C,UAA9CA,CAA8C,WAOzCA,yBAIDA,cAIJA,kBAA8C,WAA9CA,CAA8C,WAA9CA,CAA8C,WAI1CA,yBASDA,oBAmBNA,mBAAQ,WAARA,CAAQ,WAARA,CAAQ,YAARA,CAAQ,YAARA,CAAQ,UAARA,CAAQ,UAuBGA,2BAAgBA,QAAOA,mBAAOA,0CAA2FA,mBAAOA,gBAAKA,gCAAwDA,2BAlG5KA,6CAiBrBA,0CAkB0CA,8DAYDA,2DAmDeA,kFAAiFA,6gCC5EnIs4C,CAAe,KCXfqB,GAAY,MAAnB,MAAOA,EAIT56C,YACIgR,EACQilC,EACRxrC,EACQ8qB,EACR1K,GAHQ3qB,sBAEAA,cAKRA,KAAKq1B,OAAOlqB,KAAKZ,GAEjBuG,EAAUkN,SAAS,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,OAKlDlN,EAAU6pC,eAAe,KAY7B,CAEA/0B,cACI,+CAnCK80B,GAAY35C,8EAAZ25C,EAAY50B,+GChBzB/kB,sBAEAA,iBACCA,yBACDA,QAEAA,uGDUa25C,CAAY,+BEkClB,IAAME,GAAY,MAAnB,MAAOA,kDAAY,0BAAZA,gCAlBX5+B,KACA25B,KACAv5B,KACAs5B,GACAmF,QAcWD,CAAY,6BCalB,IAAME,GAAY,MAAnB,MAAOA,EAITltC,eAAemtC,GACX,MAAO,CACHC,SAAUF,EACVG,UAAW,IACJznB,GACH,CAAEyc,QAASvc,GAAewnB,SAAUxnB,IACpC,CAAEuc,QAASxc,GAAiB0nB,SAAUJ,IAGlD,+CAbSD,EAAY,0BAAZA,gCAPLM,KACAp/B,QAMK8+B,CAAY,KCqCZO,GAAgB,MAAvB,MAAOA,kDAAgB,0BAAhBA,gCAxDXT,GACAlF,GACA15B,KACA25B,KACAv5B,KACAk/B,MACAr/B,KACAs/B,KACMT,GACNU,KACAX,KACAY,KACAC,KACA5/B,GAuCAM,QAIWi/B,CAAgB,oFC9DvB,SAAUM,GACf/5C,EACA2I,EACAgS,IAEAq/B,QAAmBC,KAAU,OAAI,EACjCD,MAAmBE,KAAU,OAAI,EACjCF,MAAmBG,KAAU,OAAI,EACjCH,MAAmBI,KAAU,OAAI,EACjCJ,MAAmBK,KAAU,OAAI,EACjCL,MAAmBM,KAAU,OAAI,EACjCC,MAAa,KAAMC,OAAQ,EAC3BD,MAAa,KAAME,OAAQ,EAC3BF,MAAa,KAAMG,OAAQ,EAC3BH,MAAa,KAAMI,OAAQ,EAC3BJ,MAAa,KAAMK,OAAU,EAC7BL,MAAa,KAAMM,MAEhBC,UAAc,MAEd96C,EAAO3B,KAAKC,GAEZ,MAAMy8C,EAAKpyC,EAAKY,OACVyxC,EAAKrgC,EAAQpR,OACtB,MAAO,IAAM2pB,QAAQ+nB,IAAI,CAACF,EAAIC,GAC/B,CAIM,SAAUE,GAAsBhsC,EAA6BisC,GAClE,cAAO,kBACAA,EAASn8C,IAAIo8C,KAAsBloB,QAAQC,QAAQ,OAEzD,MAAMkoB,EAAYnsC,EAAUzE,YAC5B,UACOyE,EAAUmN,IAAIg/B,GAAWp8C,kBACvBwxB,GACR7xB,QAAQkC,MAAM,iBAAiBu6C,+BAAuC5qB,KAExE,EACD,CAEM,MAAO6qB,GAGZp9C,YAA2BC,eAFpBC,mBAAgB,IAAIqC,KAAY,CAAE,eAAgB,mBAAoB,8BAA+B,KAE9D,CAEvC86C,eAAeC,GAErB,OAAOp9C,KAAKD,KAAKoC,KADA,GAAGjC,yBAAmCA,kBAA4Bk9C,IACjD,GAAI,CAAEh7C,QAASpC,KAAKq9C,cAAe/6C,iBAAiB,GACvF,EAGK,MAAOg7C,GAGZx9C,YACSwH,kBAHDtH,iBAAc,IAAIu9C,GAK1B,CAEAC,OAAOhhC,GACN,MAAMxX,EAAMwX,EAAOxX,IACnB,OAAIhF,KAAKy9C,YAAY7Z,IAAI5+B,KAIzBhF,KAAKy9C,YAAYp4B,IAAIrgB,GlGtGhB,SAAe04C,GAAkBC,gCkGwGtCD,CAAmB,MAAOlhC,EAAQxc,KAAKsH,UAEhCtC,CACR,EAyEM,IAAM44C,GAAS,MAAhB,MAAOA,kDAAS,0BAATA,EAASC,WAFTnD,mCArCD,CACV14B,EACA+D,GACAlV,EACAoP,GACAiB,GACA48B,KACAlgC,EAEA+D,GACA,CACCsuB,QAAS8N,MACTC,WAAYrC,GAWZsC,KAAM,CAACp+C,GAAewH,EAAauW,GACnCsgC,OAAO,GAER,CACCjO,QAAS8N,MACTC,WAAYlB,GACZmB,KAAM,CAACE,KAAkBC,OACzBF,OAAO,GAER,CACCjO,QAASoO,MACTlD,SAAU,CAACmD,QAAS,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,SAEpDviC,SA/DAwiC,KACA7I,GACAgG,KACAb,KACAO,KACAh/B,aAAwB,CACvB2X,OAAQ,CACPkc,QAASuO,KACTtD,SAAUgC,GACVe,KAAM,CAACQ,OAERC,SAAU,CACTzO,QAAS0O,KACTzD,SAAU0D,OAEXC,0BAA2B,CAC1B5O,QAAS6O,KACT5D,SAAUoC,GACVW,KAAM,CAACt8C,OAGTo9C,MACAjE,WAAqB,CACpB7mB,OAAQ/zB,qBAETm7C,MAyCWuC,CAAS,KCjLlB19C,iBACH8+C,SAGDC,OACEC,gBAAgBtB,IAChBuB,MAAO9sB,GAAQ7xB,QAAQkC,MAAM2vB,GAAI,mBCZnC,OACA,YACA,eACA,WACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,cACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,cACA,iBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,cACA,iBACA,eACA,kBACA,cACA,iBACA,eACA,kBACA,eACA,kBACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,aACA,gBACA,YACA,eACA,YACA,eACA,kBACA,eACA,kBACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,qBACA,kBACA,qBACA,YACA,eACA,YACA,eACA,WACA,cACA,WACA,cACA,YACA,eACA,eACA,kBACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,UACA,aACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,eACA,kBACA,cACA,YACA,eACA,eACA,kBACA,cACA,iBACA,YACA,eACA,YACA,eACA,kBACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,iBACA,oBACA,eACA,YACA,eACA,WACA,cACA,YACA,eACA,YACA,eACA,YACA,eACA,aACA,gBACA,YACA,eACA,YACA,eACA,YACA,eACA,eACA,kBACA,aACA,gBACA,YACA,eACA,aACA,gBACA,YACA,kBACA,qBACA,eACA,cACA,iBACA,YACA,eACA,YACA,eACA,YACA,iBACA,oBACA,eACA,YACA,eACA,kBACA,qBACA,YACA,eACA,eACA,kBACA,eACA,kBACA,eACA,kBACA,eACA,mBAIA,cACA,WACA,WACA,CACA,cACA,cACA,8CACA,gCACA6I,CACA,CACA,WACA,CACAkkB,kBACA,qBACA,EACAA,YACAC,aACAD","names":["ConfigService","constructor","http","this","from","environment","servicesEndpointRoot","alternateServicesEndpointRoot","homepageUrl","load","path","console","group","cfg","_this","get","toPromise","groupEnd","i0","factory","ɵfac","EBackendServiceRequestContentType","ApplicationJson","NrServerError","Error","message","stacktrace","code","data","super","BackendService","config","call","urlPart","uniqueId","uuid","url","uniqueID","post","headers","HttpHeaders","withCredentials","pipe","catchError","response","error","statusText","values","map","result","options","useAlternate","includes","hideProgressBar","append","contentType","postFormData","formData","_this2","User","id","ssoToken","firstName","lastName","type","agencyData","debugData","operator","email","displayName","_displayName","allowedLanguages","UiUserOptions","lang","intranetTheme","theme","presaVisionePrivacy","AppUserOptions","StorageService","storage","window","localStorage","setValue","key","value","typeOfValue","setItem","valueStr","JSON","stringify","getValue","defaultValue","storedValue","getItem","substring","parseInt","Number","parse","recentTrips","consoleSettings","consoleHistory","ECommand","CRYPTIC","hotKeyDefs","command","shift","alt","ctrl","meta","PLANNER","CART","FLIGHTS","RENTALS","HOTELS","TRANSFERTS","VISITS","TOURS","EDIT_HEADER","EDIT_AGENCY","GO_TO_TRIP","UserService","backend","_UserService_userChanged","EventEmitter","_UserService_working","BehaviorSubject","_UserService_mustChangePassword","_UserService_resetPasswordCode","_UserService_isLoggedIn","_UserService_currentUser","_UserService_permissions","_UserService_canBookFlights","_UserService_canBook","_UserService_uiOptions","_UserService_appOptions","_UserService_currentLang$","userChanged","__classPrivateFieldGet","asObservable","working","hotKeys","mustChangePassword","resetPasswordCode","isLoggedIn","currentUser","permissions","canBookFlights","canBook","uiOptions","appOptions","currentLang$","setLang","newLang","writeOptions","next","can","length","found","forEach","p","indexOf","getOptions","__classPrivateFieldSet","opzioniUI","browserLang","navigator","language","toLowerCase","substr","request","user","doCheck","queryString","location","search","checkResponse","_this3","nome","cognome","tipo","permessi","emit","init","_this4","log","login","username","password","crossLoginCode","loginData","loginResponse","_this5","digestLoginResponse","sendLoginViaEmailRequest","lingua","emailAddress","_this6","loginViaEmail","emailLoginCode","_this7","currentLang","_this8","warn","logout","_this9","changePassword","currentPassword","newPassword","_this10","sendPasswordRecoveryRequest","passwordResetUrl","_this11","passwordReset","codice","_this12","InjectionToken","EOperatore","Indefinito","ApiRequest","property","hasOwnProperty","_data","undefined","static","toJSON","LocalizedRequest","ELingua","Italiano","TripHead","tripID","luogo","descr","cover","durata","ServiceDuration","fromJS","Array","isArray","ideas","item","push","destinations","TripMap","giorni","notti","lat","long","zoom","MenuData","idPagelink","icon","idLuogo","ETipoEntita","Articolo","GetPagesRequest","TinySelectedAdv","contactID","telefono","indirizzo","TinyTripOfInterest","EVisibilitaTeam","NonVisibile","EBannerType","Offerta","Mappa","mappaID","tabella","entitaID","latitudine","longitudine","provider","layout","BaseDataService","translate","_BaseDataService_operators","_BaseDataService_teams$","_BaseDataService_roles$","_BaseDataService_permissions$","_BaseDataService_contactCategories$","_BaseDataService_contactDataTypes$","_BaseDataService_ordersTags$","_BaseDataService_ordersTagsDictionary$","_BaseDataService_documentsTypes$","_BaseDataService_siteID","_BaseDataService_operator","onLangChange","subscribe","_","_contractPayments$","_mealPlans$","_topLocations$","_packageRules$","_policies$","_beddings$","_servicesOffersTypes$","_serviceAdditionalData$","_serviceAdditionalDataType","_extraDocs$","_phraseTags$","_articlesSections$","_allTemplates$","_templatesByService$","_pricings$","setSite","siteID","setOperator","actualOperator","getLingua","getIsoLang","getLangCodeFromLingua","documentsTypes$","documentTypes","shareReplay","ordersTagsDictionary$","ordersTags$","ot","t","tags","tag","backgroundColor","color","iconClass","permissions$","contactCategories$","categories","contactDataTypes$","contattoTipiDato","roles$","roles","teams$","teams","activeTeams$","filter","visibilita","publicTeams$","operatore","operators$","operators","getOperatorsDropdown$","addEmpty","addUndefined","opd","toRet","operatorData","text","instant","unshift","currencies$","_currencies$","valute","contractPayments$","modalitaPagamento","getContractPaymentsDropdown$","cp","cpd","banks$","_banks$","banche","fornitori$","_fornitori$","fornitori","systemEmails$","_systemEmails$","emails","beddings$","sistemazioni","companies$","_companies$","compagnie","airports$","_airports$","aeroporti","flightStatues$","_flightStatues$","stati","mealPlans$","trattamenti","advertiseImages$","_advertiseImages$","immagini","topLocations$","luoghiTop","getNearbyLocations","luogoID","luoghiVicini","articleHeads$","_articleHeads$","intestazioni","sites$","_sites$","siti","packageRules$","regole","resetServicesStandardTypes","_servicesStandardTypes$","servicesStandardTypes$","tipologieStandard","policies$","penali","servicesOffersTypes$","offersTypes","serviceAdditionalData$","tipiDatoAggiuntivo","extraDocs$","miniguide$","getMiniguideByOfferta","offertaId","_miniguide$","phraseTags$","articlesSections$","sezioni","allTemplates$","servizioID","template","templatesByService$","serviceId","getDefaultSectionPhrases$","sectionId","sezioneID","section","getDefaultSectionItinerary$","getServiceById$","servizio","getAllStatistics$","statistics","getFlightTicketsOfferta$","offertaID","tickets","getTipologieServizio","tipologie","pricings$","pricings","getAmadeusMarkets","markets","RtfmService","documents$","_documents$","docsIndex","res","getByCode","index","documenti","find","d","take","docsRoot","KENDO","TextBoxModule","InputsModule","NrCommonModule","imports","CommonModule","FormsModule","NgSelectModule","NgbTooltipModule","TranslateModule","NgOptionHighlightModule","DropDownsModule","website","params","apply","production","i18nFiles","googleMapsApiKey","googleAnalyticsMeasurementId","b2bIntranetUrl","b2bIntranetPwdRecover","b2bIntranetUsrSignIn","b2bIntranetAdvUrl","it","fr","de","nl","b2bIntranetAdvTripList","DINAMIC_COOKIES_ARTICLE_ID","OperatorLink","idOperator","name","link","WebsiteService","basedata","websites","setWebsite","addLangs","use","currentWebsite","defaultLangCode","req","_currentOperator","sitePages","showAdvancedControls$","setOperatorsAttributes","w","host","hostname","ws","setLanguage","formatPageTitle","pageName","siteName","getPageTitleKey","getValidTranslationKey","keyName","trim","toUpperCase","replace","getPageLinkId","pages","page","getFooterLinkId","footer","getInfostrip","secondMenu","m","faIcon","operatorLinks","DestinationService","baseData","siteRequest","getDestinations","cache_destinations$","destinazioni","getDestinationInfo","destinationId","cache_destinationInfo$","localRequest","destinationID","destination","getOpenDestinations","cache_openDestinations$","getOpenDestination","openDestinationId","od","IdeaService","getIdeas","cache_ideas$","idee","getIdeaInfo","ideaId","cache_ideaInfo$","ideaID","idea","TripService","getTripInfo","tripId","cache_trips$","trip","ApiService","destinationService","ideaService","tripService","getMenu","cache_menu$","loadingData$","menuData","cache_infostrip$","getPageData","pageId","actualLanguage","cacheID","cache_pageData$","pageDataID","pageData","getPageFooter","cache_pageFooter$","getTrip","getArticle","articleId","parseToken","cache_articles$","articleID","article","BasePageComponent","apiService","webSiteService","titleService","translateService","Subscription","isDevelop","isLoading","_loading","pageHeader","elencoDati","pageDataBody","slice","pageHeaderName","capitallizeAllWords","arrayName","split","i","charAt","join","pageHeaderContent","content","entityType","toString","cutThePageDataBodyTail","pop","ngOnInit","subscription","add","loadData","pageLinkId","siteNameKey","pageNameKey","titles","setTitle","ngOnDestroy","unsubscribe","selectors","BannerService","bannerLanguage","hasBanners","cache_banners$","getBanners","banners","getBannerById","UrlService","ABOUT","CONTACTS","DESTINATIONS","HOME","IDEAS","OFFERS","PARTNERS","TRIP","ARTICLE","OPENDESTINATION","navigateToDestination","PAGE_ROUTES","navigateToIdea","navigateToTrip","navigateToArticle","navigateToOpenDestination","getArticleUrl","openExportFile","file","getIntranetAdvHomeUrlFromUser","getIntranetAdvTripListUrlFromUser","getIntranetUrl","Slide","img","caption","CommonService","invertColor","col","bw","INVERT_REAL_COLOR","r","g","b","padStart","getTransparentColor","alpha","capitalizeAllWords","minLength","getVoidImage","BannerCardComponent","urlService","commonService","invertedColor","banner","gaBgColor","INVERT_ONLY_BLACK_AND_WHITE","endSoftly","v","lastBlank","lastIndexOf","getIcon","iconGliph","getColor","startsWith","getBgColor","bgColor","transformName","getSunto","sunto","hasRibbon","bannerType","attachment","getRibbonType","attachmentFileType","HomepageComponent","bannerService","renderer2","_document","router","api","slidesToShow","slidesToScroll","nextArrow","prevArrow","dots","infinite","swipe","responsive","breakpoint","settings","_HomepageComponent_dinamicCookieScriptID","hasSlides","slides","subs","loadPageData","bannerSub","closed","sort","a","ordine","loadSlides","f","imgUrl","title","getBackgroundImageFromSlide","slide","removeScript","dynamicCookiesScripNode","getElementById","removeChild","body","positionTop","CONTENT_DISPLAY_POSITION_DEFAULT","positionBot","CONTENT_DISPLAY_POSITION_BOTTOM","order","getStyle","style","prefix","DOCUMENT","DestinationCardComponent","DestinationsListComponent","getLightBgColor","DestinationspageComponent","TripCard","completeByBanner","abstract","days","nights","price","Math","random","completeByTrip","TripCardComponent","DestinationpageComponent","activeRoute","routeParams","destinationInfo","clearSlides","loadTripCards","tripCards","elencoViaggi","_tripCard","elencoImmagini","image","viaggio","getTripCardGallerySizeClass","IdeasListComponent","IdeaspageComponent","OfferspageComponent","ContactspageComponent","getPrivacyText","PartnerspageComponent","AboutpageComponent","IdeapageComponent","ideaInfo","Contact","Cognome","Nome","Email","ViaggioDiNozze","Budget","Note","interestedTrip","selectedTrip","selectedADV","prov","SherpaService","ContactData","addTripOfInterest","some","el","addTripOfInterestByCompleteTrip","getTripOfInterestList","getTripOfInterestNumber","hasTripOfInterest","addSelectedADV","getSelectedAdvID","getSelectedAdv","getTinyTripOfInterest","arTrips","element","getTinySelectedAdv","setSelectedTrip","isSelectedTrip","hasSelectedTrip","GoogleAnalyticsService","onScriptReady","bind","ready","_ready","userService","script","document","createElement","addEventListener","async","src","head","prepend","err","pageTitle","pageUrl","pageLocation","tagData","page_title","page_path","page_location","user_id","debug_mode","gtag","event","Date","send_page_view","TappeComponent","WindowRef","getNativeWindow","DocumentRef","getNativeDocument","BROWSER_GLOBALS_PROVIDERS","MAPS_API_CONFIG","MapsAPILoader","localeId","_config","_windowRef","_documentRef","loader","Loader","apiKey","version","client","clientId","channel","_SCRIPT_ID","region","importLibrary","LOCALE_ID","GoogleMapsAPIWrapper","_loader","_zone","_map","Promise","resolve","_mapResolver","createMap","mapOptions","runOutsideAngular","then","google","maps","Map","setMapOptions","setOptions","createMarker_old","addToMap","marker","AdvancedMarkerElement","createMarker","createInfoWindow","InfoWindow","createCircle","Circle","createRectangle","Rectangle","createPolyline","line","Polyline","setMap","createPolygon","polygon","Polygon","createDataLayer","Data","createTransitLayer","newLayer","TransitLayer","createBicyclingLayer","BicyclingLayer","containsLocation","latLng","geometry","poly","subscribeToMapEvent","eventName","Observable","observer","addListener","evArgs","run","clearInstanceListeners","setCenter","getZoom","getBounds","getMapTypeId","setZoom","getCenter","panTo","panBy","x","y","fitBounds","padding","panToBounds","getNativeMap","triggerMapEvent","trigger","createAerialView","MarkerManagerService","_mapsWrapper","convertAnimation","uiAnim","Animation","deleteMarker","markerDirective","markerPromise","_markers","delete","updateMarkerPosition","position","latitude","lng","longitude","updateTitle","updateLabelAndOpacityAndIconAndAnimation","nativeElement","updateDraggable","gmpDraggable","draggable","updateOpacity","opacity","updateVisible","updateZIndex","zIndex","updateClickable","gmpClickable","clickable","addMarker","visible","set","getNativeMarker","createEventObservable","e","InfoWindowManagerService","_markerManager","deleteInfoWindow","infoWindow","iWindow","_infoWindows","close","setPosition","setZIndex","open","hostMarker","addInfoWindow","maxWidth","disableAutoPan","infoWindowPromise","createMVCEventObservable","array","eventNames","fromEventPattern","handler","previous","newArr","getArray","_handler","evListeners","evListener","remove","PolylineManagerService","_getPoints","point","symbolPath","SymbolPath","icons","_getIcons","agmIcon","fixedRotation","offset","repeat","anchor","Point","anchorX","anchorY","fillColor","fillOpacity","_convertPath","rotation","scale","strokeColor","strokeOpacity","strokeWeight","Object","entries","val","addPolyline","polylinePromise","_convertPoints","_convertIcons","editable","geodesic","_polylines","updatePolylinePoints","l","setPath","updateIconSequences","setPolylineOptions","deletePolyline","getMVCPath","agmPolyline","getPath","createPathEventObservable","PolygonManagerService","addPolygon","polygonPromise","paths","_polygons","updatePolygon","setPaths","setPolygonOptions","deletePolygon","polygonDirective","getPaths","nrPolygon","startWith","switchMap","parentMVEvent","merge","chMVC","chMVCEvent","pathIndex","skip","retVal","subArr","CircleManagerService","_apiWrapper","addCircle","circle","_circles","center","radius","strokePosition","StrokePosition","removeCircle","c","getRadius","setEditable","setDraggable","setVisible","setRadius","getNativeCircle","listener","RectangleManagerService","addRectangle","rectangle","_rectangles","bounds","north","east","south","west","removeRectangle","setBounds","subsrciber","AerialViewStateEnum","Failed","AerialMetadataFormatEnum","Image","AerialViewManagerService","httpClient","hasAerialViews","_aerialViewsByAddress","size","_aerialViewsById","getAeriaView","address","videoFormat","videoId","reject","has","httpAddress","API_ADDRESS","state","videoSource","metadata","videoLink","uris","landscapeUri","videoPoster","status","renderNewVideo","responce","FitBoundsAccessor","FitBoundsService","bounds$","flatMap","_includeInBounds$","sample","_boundsChangeSampleTime$","time","timer","includeInBounds","_generateBounds","LatLngBounds","extend","addToBounds","_createIdentifier","boundsMap","removeFromBounds","changeFitBoundsChangeSampleTime","timeMs","getBounds$","NrMapControl","inputs","NrGeocoderService","connectableGeocoder$","subscriber","_createGeocoder","multicast","ReplaySubject","connect","geocoder$","geocode","geocoder","_getGoogleResults","bindCallback","results","GeocoderStatus","OK","of","throwError","Geocoder","NrAerialQualitiEnum","NrAerialView","aerialViewManager","geocoderService","Medium","ngAfterViewInit","sub","finalize","geocodedAddress","formatted_address","quality","Low","High","videoImage","NrMaps","_elem","_fitBoundsService","_aerialManagerService","hasAerialView","aerialView","container","querySelector","_initMapInstance","mapId","minZoom","maxZoom","controlSize","disableDefaultUI","disableDoubleClickZoom","scrollwheel","draggableCursor","draggingCursor","keyboardShortcuts","mapTypeId","toLocaleLowerCase","clickableIcons","tilt","heading","restriction","styles","mapReady","originalCenter","_handleMapCenterChange","_handleMapZoomChange","_handleMapMouseEvents","_handleBoundsChange","_handleMapTypeIdChange","_handleTilesLoadedEvent","_handleIdleEvent","_handleControlChange","s","mapTypeIdChange","_observableSubscriptions","centerChange","_autoCenterMap","boundsChange","z","zoomChange","click","placeId","showDefaultInfoWindow","stop","mapClick","dblClick","mapDblClick","rightClick","mapRightClick","tilesLoaded","idle","_setControls","mapControls","changes","controlOptions","fullscreenControl","mapTypeControl","panControl","rotateControl","scaleControl","streetViewControl","zoomControl","control","assign","ngOnChanges","_updateMapOptionsChanges","_updatePosition","keys","k","_mapOptionsAttributes","currentValue","triggerResize","recenter","setTimeout","_fitBounds","_setCenter","newCenter","usePanning","_subscribeToFitBoundsUpdates","_fitBoundsSubscription","_updateBounds","fitBoundsPadding","_isLatLngBoundsLiteral","newBounds","union","autoCenterMap","moveCenterTimer","clearTimeout","autoCenterMapTimeout","infoWindowId","NrInfoWindow","_infoWindowManager","_el","_infoWindowAddedToManager","_updateOpenState","_registerEventListeners","isOpen","_setInfoWindowOptions","infoWindowClose","_infoWindowOptionsInputs","_id","markerId","NrMarker","_ngZone","wrapper","QueryList","getIconUrl","iconUrl","ngAfterContentInit","handleInfoWindowUpdate","_markerAddedToManger","_updateFitBoundsDetails","_addEventListeners","label","animation","getFitBoundsDetails$","_fitBoundsDetails$","cs","openInfoWindow","markerClick","ds","dragStart","drag","dragEnd","anChng","animationChange","provide","useExisting","forwardRef","ctx","NrPolylineIcon","NrPolylinePoint","positionChanged","polylineId","NrPolyline","_polylineManager","points","_subscriptions","_polylineAddedToManager","_init","pointSub","iconSub","iconSequences","_polylineOptionsAttributes","ev","lineClick","lineDblClick","lineDrag","lineDragEnd","lineDragStart","lineMouseDown","lineMouseMove","lineMouseOut","lineMouseOver","lineMouseUp","lineRightClick","obj","os","ob$","pathEvent","polyPathChange","toArray","MappaComponent","getTitle","onMapReady","AttributiComponent","getIconClass","getExtendedAttribute","valori","fev","TrippageComponent","sherpa","mappa","tripInfo","href","loadDestination","loadIdeas","getMap","getMapFromItinerary","giorniItinerario","lon","destinationIds","ideaIds","immagine","canShowDays","itinerario","hasDestinations","hasIdeas","hasAttachments","allegati","getAttachmentUrl","relativeUrl","hasMap","ArticlepageComponent","renderer","HasDynamicCookies","extraArticle","injectScript","dinamicCookieScriptID","dinamicCookieScriptURL","appendChild","OpendestCardComponent","openDestination","destinazione","getArticlesOrderByTitle","articles","getArticleTitle","getCoverImage","imageUrl","routes","component","OpendestpageComponent","openDestinations","OpendestpageDetailComponent","ido","AppRoutingModule","RouterModule","scrollPositionRestoration","relativeLinkResolution","InfoStripComponent","websiteService","availableLanguages","loadInfoStripContent","menuVoices","changeLanguage","preventDefault","LoginUserData","LoginComponent","route","mainSlide","getRandomSlide","loginUserData","doLogin","submitted","form","valid","disable","snapshot","queryParamMap","navigate","enable","doRegister","doRecover","randomIndex","floor","NavBarComponent","modalService","currentOperator","toggleSearchPanel","searchPanelState","toggleOperatorPanel","operatorPanelState","getSearchPanelState","closeSearchPanel","ariaLabelledBy","centered","closeResult","reason","getDismissReason","ModalDismissReasons","getScrollClass","handleScroll","windowScroll","pageYOffset","solid","getUserName","getUserId","doLogOut","getDefaultLogo","getFullYear","getMonth","getDate","getHours","getMinutes","FooterComponent","subscriptions","loadFooterContent","force","newFooterLink","footerData","footerLinkId","footerContact","contactInfo","hasFooterContact","hasFax","fax","hasPhone","hasEmail","getArticleLink","getArticleName","getFooterColumn","columIndex","isPrivacyLink","entityId","hasSocialLinks","AppComponent","setDefaultLang","SharedModule","NgbDropdownModule","NrMapsModule","mapsAPILoaderConfig","ngModule","providers","useClass","useValue","HttpClientModule","ComponentsModule","SlickCarouselModule","ReactiveFormsModule","NgbCarouselModule","NgbModalModule","NgbModule","userFactory","registerLocaleData","localeIt","localeFr","localeEn","localeDe","localeEs","localeNl","defineLocale","itLocale","deLocale","esLocale","frLocale","enGbLocale","nlBeLocale","moment","p1","p2","all","appInitializerFactory","injector","LOCATION_INITIALIZED","langToSet","CustomTranslateLoader","getTranslation","langCode","contentHeader","CustomMissingTranslationHandler","Set","handle","missingKeys","HandleMissingLabel","_x","AppModule","bootstrap","Title","APP_INITIALIZER","useFactory","deps","multi","TranslateService","Injector","MESSAGE_FORMAT_CONFIG","locales","BrowserModule","TranslateLoader","HttpClient","compiler","TranslateCompiler","TranslateMessageFormatCompiler","missingTranslationHandler","MissingTranslationHandler","BrowserAnimationsModule","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","catch","webpackContext","module"],"sourceRoot":"webpack:///","sources":["./projects/libs/nr-common/src/lib/config/config.service.ts","./projects/libs/nr-common/src/lib/backend/backend.service.ts","./projects/libs/nr-common/src/lib/auth/user.class.ts","./projects/libs/nr-common/src/lib/auth/localuseroptions.class.ts","./projects/libs/nr-common/src/lib/storage/storage.service.ts","./projects/libs/nr-common/src/lib/auth/user.service.ts","./projects/libs/nr-common/src/lib/backend/naar-api-client.ts","./projects/libs/nr-common/src/lib/basedata/basedata.service.ts","./projects/libs/nr-common/src/lib/nr-rtfm/rtfm.service.ts","./projects/libs/nr-common/src/lib/nr-common.module.ts","./projects/libs/nr-common/src/lib/utilities/handleMissingLabel.ts","./projects/nr-b2c/src/environments/environment.prod.ts","./projects/nr-b2c/src/app/shared/models/operatorLink.ts","./projects/nr-b2c/src/app/services/website.service.ts","./projects/nr-b2c/src/app/services/destination.service.ts","./projects/nr-b2c/src/app/services/idea.service.ts","./projects/nr-b2c/src/app/services/trip.service.ts","./projects/nr-b2c/src/app/services/api.service.ts","./projects/nr-b2c/src/app/shared/components/base-page/base-page.component.ts","./projects/nr-b2c/src/app/services/banner.service.ts","./projects/nr-b2c/src/app/services/url.service.ts","./projects/nr-b2c/src/app/shared/models/slide.ts","./projects/nr-b2c/src/app/services/common.service.ts","./projects/nr-b2c/src/app/shared/components/banner-card/banner-card.component.html","./projects/nr-b2c/src/app/shared/components/banner-card/banner-card.component.ts","./projects/nr-b2c/src/app/components/homepage/homepage.component.html","./projects/nr-b2c/src/app/components/homepage/homepage.component.ts","./projects/nr-b2c/src/app/shared/components/destination-card/destination-card.component.ts","./projects/nr-b2c/src/app/shared/components/destination-card/destination-card.component.html","./projects/nr-b2c/src/app/shared/components/destinations-list/destinations-list.component.html","./projects/nr-b2c/src/app/shared/components/destinations-list/destinations-list.component.ts","./projects/nr-b2c/src/app/components/destinationspage/destinationspage.component.html","./projects/nr-b2c/src/app/components/destinationspage/destinationspage.component.ts","./projects/nr-b2c/src/app/shared/models/trip-card.ts","./projects/nr-b2c/src/app/shared/components/trip-card/trip-card.component.ts","./projects/nr-b2c/src/app/shared/components/trip-card/trip-card.component.html","./projects/nr-b2c/src/app/components/destinationpage/destinationpage.component.html","./projects/nr-b2c/src/app/components/destinationpage/destinationpage.component.ts","./projects/nr-b2c/src/app/shared/components/ideas-list/ideas-list.component.html","./projects/nr-b2c/src/app/shared/components/ideas-list/ideas-list.component.ts","./projects/nr-b2c/src/app/components/ideaspage/ideaspage.component.html","./projects/nr-b2c/src/app/components/ideaspage/ideaspage.component.ts","./projects/nr-b2c/src/app/components/offerspage/offerspage.component.html","./projects/nr-b2c/src/app/components/offerspage/offerspage.component.ts","./projects/nr-b2c/src/app/components/contactspage/contactspage.component.html","./projects/nr-b2c/src/app/components/contactspage/contactspage.component.ts","./projects/nr-b2c/src/app/components/partnerspage/partnerspage.component.html","./projects/nr-b2c/src/app/components/partnerspage/partnerspage.component.ts","./projects/nr-b2c/src/app/components/aboutpage/aboutpage.component.html","./projects/nr-b2c/src/app/components/aboutpage/aboutpage.component.ts","./projects/nr-b2c/src/app/components/ideapage/ideapage.component.html","./projects/nr-b2c/src/app/components/ideapage/ideapage.component.ts","./projects/nr-b2c/src/app/shared/models/contact.model.ts","./projects/nr-b2c/src/app/services/sherpa.service.ts","./projects/nr-b2c/src/app/services/google-analytics.service.ts","./projects/nr-b2c/src/app/components/trippage/tappe/tappe.component.html","./projects/nr-b2c/src/app/components/trippage/tappe/tappe.component.ts","./projects/libs/nr-maps/src/lib/utils/browser-globals.ts","./projects/libs/nr-maps/src/lib/utils/maps-api-loader.ts","./projects/libs/nr-maps/src/lib/services/google-maps-api-wrapper.ts","./projects/libs/nr-maps/src/lib/services/managers/marker-manager.service.ts","./projects/libs/nr-maps/src/lib/services/managers/info-window-manager.service.ts","./projects/libs/nr-maps/src/lib/utils/mvcarray-utils.ts","./projects/libs/nr-maps/src/lib/services/managers/polyline-manager.service.ts","./projects/libs/nr-maps/src/lib/services/managers/polygon-manager.service.ts","./projects/libs/nr-maps/src/lib/services/managers/circle-manager.service.ts","./projects/libs/nr-maps/src/lib/services/managers/rectangle-manager.service.ts","./projects/libs/nr-maps/src/lib/models/aerial-view.model.ts","./projects/libs/nr-maps/src/lib/services/managers/aerial-view-manager.service.ts","./projects/libs/nr-maps/src/lib/services/fit-bounds.service.ts","./projects/libs/nr-maps/src/lib/directives/nr-map-controls.ts","./projects/libs/nr-maps/src/lib/services/geocoder-service.ts","./projects/libs/nr-maps/src/lib/directives/nr-aerial-view.ts","./projects/libs/nr-maps/src/lib/directives/nr-maps.ts","./projects/libs/nr-maps/src/lib/directives/nr-info-window.ts","./projects/libs/nr-maps/src/lib/directives/nr-marker.ts","./projects/libs/nr-maps/src/lib/directives/nr-polyline-icon.ts","./projects/libs/nr-maps/src/lib/directives/nr-polyline-point.ts","./projects/libs/nr-maps/src/lib/directives/nr-polyline.ts","./projects/nr-b2c/src/app/components/trippage/mappa/mappa.component.html","./projects/nr-b2c/src/app/components/trippage/mappa/mappa.component.ts","./projects/nr-b2c/src/app/components/trippage/attributi/attributi.component.html","./projects/nr-b2c/src/app/components/trippage/attributi/attributi.component.ts","./projects/nr-b2c/src/app/components/trippage/trippage.component.html","./projects/nr-b2c/src/app/components/trippage/trippage.component.ts","./projects/nr-b2c/src/app/components/articlepage/articlepage.component.html","./projects/nr-b2c/src/app/components/articlepage/articlepage.component.ts","./projects/nr-b2c/src/app/components/opendest-card/opendest-card.component.html","./projects/nr-b2c/src/app/components/opendest-card/opendest-card.component.ts","./projects/nr-b2c/src/app/components/opendestpage/opendestpage.component.html","./projects/nr-b2c/src/app/components/opendestpage-detail/opendestpage-detail.component.html","./projects/nr-b2c/src/app/app-routing.module.ts","./projects/nr-b2c/src/app/components/opendestpage/opendestpage.component.ts","./projects/nr-b2c/src/app/components/opendestpage-detail/opendestpage-detail.component.ts","./projects/nr-b2c/src/app/shared/components/info-strip/info-strip.component.html","./projects/nr-b2c/src/app/shared/components/info-strip/info-strip.component.ts","./projects/nr-b2c/src/app/shared/models/loginData.ts","./projects/nr-b2c/src/app/components/login/login.component.html","./projects/nr-b2c/src/app/components/login/login.component.ts","./projects/nr-b2c/src/app/components/nav-bar/nav-bar.component.html","./projects/nr-b2c/src/app/components/nav-bar/nav-bar.component.ts","./projects/nr-b2c/src/app/components/footer/footer.component.html","./projects/nr-b2c/src/app/components/footer/footer.component.ts","./projects/nr-b2c/src/app/app.component.ts","./projects/nr-b2c/src/app/app.component.html","./projects/nr-b2c/src/app/shared/shared.module.ts","./projects/libs/nr-maps/src/lib/nr-maps.module.ts","./projects/nr-b2c/src/app/components/components.module.ts","./projects/nr-b2c/src/app/app.module.ts","./projects/nr-b2c/src/main.ts","./node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["import {Injectable} from '@angular/core';\r\nimport {HttpClient} from '@angular/common/http';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class ConfigService {\r\n\r\n\tpublic servicesEndpointRoot: string = null;\r\n\tpublic alternateServicesEndpointRoot: string = null;\r\n\tpublic homepageUrl: string = null;\r\n\r\n\tconstructor(private http: HttpClient) {\r\n\t}\r\n\r\n\tpublic from(environment: any) {\r\n\t\tthis.servicesEndpointRoot = environment.servicesEndpointRoot;\r\n\t\tthis.alternateServicesEndpointRoot = environment.alternateServicesEndpointRoot;\r\n\t\tthis.homepageUrl = environment.homepageUrl;\r\n\t}\r\n\r\n\tpublic async load(path: string): Promise {\r\n\t\tconsole.group(`ConfigService init from ${path}`);\r\n\t\tconst cfg = await this.http.get(path).toPromise();\r\n\t\tthis.servicesEndpointRoot = cfg.servicesEndpointRoot;\r\n\t\tthis.alternateServicesEndpointRoot = cfg.alternateServicesEndpointRoot;\r\n\t\tthis.homepageUrl = cfg.homepageUrl;\r\n\t\tconsole.groupEnd();\r\n\t}\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\nimport { HttpClient, HttpHeaders } from \"@angular/common/http\";\r\nimport { Observable } from \"rxjs\";\r\nimport { catchError, map } from \"rxjs/operators\";\r\nimport * as uuid from \"uuid\";\r\n\r\nimport { ConfigService } from \"../config/config.service\";\r\nimport { IBackendCallOptions } from \"./backend-call-options.interface\";\r\n\r\nexport enum EBackendServiceRequestContentType { \r\n ApplicationJson = \"application/json\",\r\n ApplicationFormUrlEncoded = \"application/x-www-form-urlencoded\",\r\n MultipartFormData = \"multipart/form-data\",\r\n TextPlain = \"text/plain\",\r\n TextHtml = \"text/html\"\r\n}\r\n\r\nexport class NrServerError extends Error {\r\n\tconstructor(\r\n\t\tpublic message: string,\r\n\t\tpublic stacktrace: string,\r\n\t\tpublic code,\r\n\t\tpublic data: any\r\n\t) {\r\n\t\tsuper(message);\r\n\t}\r\n}\r\n\r\n@Injectable({\r\n\tprovidedIn: \"root\",\r\n})\r\nexport class BackendService {\r\n\tconstructor(private http: HttpClient, private config: ConfigService) {}\r\n\r\n\tpublic call(urlPart: string, data: any = null): Observable {\r\n\t\tconst uniqueId = uuid.v4();\r\n\t\tconst url: string =\r\n\t\t\tthis.config.servicesEndpointRoot + urlPart + \"?ts=\" + uniqueId;\r\n\t\tdata = data || {};\r\n\t\tdata.uniqueID = uniqueId;\r\n\r\n\t\treturn this.http\r\n\t\t\t.post(url, data, {\r\n\t\t\t\theaders: new HttpHeaders({\r\n\t\t\t\t\t\"Content-Type\": \"application/json\",\r\n\t\t\t\t}),\r\n\t\t\t\twithCredentials: true,\r\n\t\t\t})\r\n\t\t\t.pipe(\r\n\t\t\t\tcatchError((response) => {\r\n\t\t\t\t\tconst error = response.error\r\n\t\t\t\t\t\t? response.error\r\n\t\t\t\t\t\t: { error: response.statusText };\r\n\t\t\t\t\tthrow new NrServerError(\r\n\t\t\t\t\t\terror.error,\r\n\t\t\t\t\t\terror.stacktrace,\r\n\t\t\t\t\t\terror.code,\r\n\t\t\t\t\t\terror.values\r\n\t\t\t\t\t);\r\n\t\t\t\t}),\r\n\t\t\t\tmap((response) => {\r\n\t\t\t\t\tif (response.result === \"OK\") {\r\n\t\t\t\t\t\treturn response;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthrow new NrServerError(\r\n\t\t\t\t\t\t\tresponse.error,\r\n\t\t\t\t\t\t\tresponse.stacktrace,\r\n\t\t\t\t\t\t\tresponse.code,\r\n\t\t\t\t\t\t\tresponse.values\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t}\r\n\r\n\tpublic async post(\r\n\t\turlPart: string,\r\n\t\tdata: any = null,\r\n\t\toptions: IBackendCallOptions = {}\r\n\t): Promise {\r\n\t\tconst uniqueId = uuid.v4();\r\n\t\tlet url: string =\r\n\t\t\t(options && options.useAlternate\r\n\t\t\t\t? this.config.alternateServicesEndpointRoot\r\n\t\t\t\t: this.config.servicesEndpointRoot) +\r\n\t\t\turlPart;\r\n \r\n url = url.includes(\"?\") ? url + \"&ts=\" + uniqueId : url + \"?ts=\" + uniqueId;\r\n \r\n\t\tdata = data || {};\r\n\t\tdata.uniqueID = uniqueId;\r\n\r\n\t\ttry {\r\n\t\t\tconst headers = new HttpHeaders({\r\n \"Content-Type\": EBackendServiceRequestContentType.ApplicationJson,\r\n\t\t\t});\r\n\t\t\tif (options.hideProgressBar) {\r\n\t\t\t\theaders.append(\"ignoreProgressBar\", \"\");\r\n\t\t\t}\r\n\t\t\tconst response = await this.http\r\n\t\t\t\t.post(url, data, {\r\n\t\t\t\t\theaders,\r\n\t\t\t\t\twithCredentials: true,\r\n\t\t\t\t})\r\n\t\t\t\t.toPromise();\r\n\r\n\t\t\tif (response.result === \"OK\") {\r\n\t\t\t\treturn response;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new NrServerError(\r\n\t\t\t\t\tresponse.error,\r\n\t\t\t\t\tresponse.stacktrace,\r\n\t\t\t\t\tresponse.code,\r\n\t\t\t\t\tresponse.values\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t} catch (response) {\r\n\t\t\tconsole.error(response);\r\n\t\t\tconst error = response.error\r\n\t\t\t\t? response.error\r\n\t\t\t\t: { error: response.statusText };\r\n\t\t\tthrow new NrServerError(\r\n\t\t\t\terror.error,\r\n\t\t\t\terror.stacktrace,\r\n\t\t\t\terror.code,\r\n\t\t\t\terror.values\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n public get(\r\n url: string,\r\n contentType: EBackendServiceRequestContentType = EBackendServiceRequestContentType.ApplicationJson\r\n ): Promise {\r\n const headers = new HttpHeaders({\r\n \"Content-Type\": contentType,\r\n });\r\n return this.http\r\n .get(url, {\r\n headers: headers\r\n })\r\n .toPromise();\r\n }\r\n\r\n\tpublic async postFormData(\r\n\t\turlPart: string,\r\n\t\tformData: FormData = null,\r\n\t\toptions: IBackendCallOptions = {}\r\n\t): Promise {\r\n\t\tconst uniqueId = uuid.v4();\r\n\t\tconst url: string =\r\n\t\t\t(options && options.useAlternate\r\n\t\t\t\t? this.config.alternateServicesEndpointRoot\r\n\t\t\t\t: this.config.servicesEndpointRoot) +\r\n\t\t\turlPart +\r\n\t\t\t\"?ts=\" +\r\n\t\t\tuniqueId;\r\n\r\n\t\tformData.append(`uniqueID`, uniqueId);\r\n\r\n\t\ttry {\r\n\t\t\tconst headers = new HttpHeaders();\r\n\r\n\t\t\tif (options.hideProgressBar) {\r\n\t\t\t\theaders.append(\"ignoreProgressBar\", \"\");\r\n\t\t\t}\r\n\t\t\tconst response = await this.http\r\n\t\t\t\t.post(url, formData, {\r\n\t\t\t\t\theaders,\r\n\t\t\t\t\twithCredentials: true,\r\n\t\t\t\t})\r\n\t\t\t\t.toPromise();\r\n\r\n\t\t\tif (response.result === \"OK\") {\r\n\t\t\t\treturn response;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new NrServerError(\r\n\t\t\t\t\tresponse.error,\r\n\t\t\t\t\tresponse.stacktrace,\r\n\t\t\t\t\tresponse.code,\r\n\t\t\t\t\tresponse.values\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t} catch (response) {\r\n\t\t\tconsole.error(response);\r\n\t\t\tconst error = response.error\r\n\t\t\t\t? response.error\r\n\t\t\t\t: { error: response.statusText };\r\n\t\t\tthrow new NrServerError(\r\n\t\t\t\terror.error,\r\n\t\t\t\terror.stacktrace,\r\n\t\t\t\terror.code,\r\n\t\t\t\terror.values\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n}\r\n","import {AgencyData, DebugData, EOperatore, ETipoUtente} from '../backend/naar-api-client';\r\n\r\nexport class User {\r\n\r\n\tprivate _displayName: string = null;\r\n\tpublic get displayName(): string {\r\n\t\tif (!this._displayName) {\r\n\t\t\tthis._displayName = `${(this.firstName || '')} ${(this.lastName || '')}`;\r\n\t\t}\r\n\t\treturn this._displayName;\r\n\t}\r\n\r\n\tconstructor(\r\n\t\tpublic id: number,\r\n\t\tpublic ssoToken: string,\r\n\t\tpublic firstName: string,\r\n\t\tpublic lastName: string,\r\n\t\tpublic type: ETipoUtente,\r\n\t\tpublic agencyData: AgencyData,\r\n\t\tpublic debugData: DebugData,\r\n\t\tpublic operator: EOperatore,\r\n\t\tpublic email: string\r\n\t) {\r\n\t}\r\n}\r\n","const allowedLanguages = ['it', 'en', 'fr', 'de', 'es', 'pt', 'nl', 'zu'];\r\nexport type Languages = 'it' | 'en' | 'fr' | 'de' | 'es' | 'pt' | 'nl' | 'zu';\r\nexport type IntranetThemes = 'default' | 'corporate' | 'cosmic';\r\nexport type Themes = '' | 'marco' | 'dark';\r\n\r\nexport class UiUserOptions {\r\n\tpublic static readonly allowedLanguages = allowedLanguages;\r\n\r\n\t/** Codice ISO 2 lettere della lingua dell'interfaccia */\r\n\tpublic lang: Languages = 'it';\r\n\r\n\t/** Nome del tema della intranet */\r\n\tpublic intranetTheme: IntranetThemes = 'corporate';\r\n\r\n\t/** Nome del tema del B2B */\r\n\tpublic theme: Themes = '';\r\n\r\n\t/** Se true la privacy è stata visionata */\r\n\tpublic presaVisionePrivacy: string = 'false';\r\n\r\n\t// public get presaVisionePrivacy(): boolean {\r\n\t// \treturn this._presaVisionePrivacy;\r\n\t// }\r\n\r\n\t// /**\r\n\t// \tForzo l'impostazione della property a boolean\r\n\t// \tper essere considerata valida devo avere un boolean\r\n\t// \toppure una stringa che in uppercase TRUE\r\n\t// \tQuesta forzature è dovuta alla deserializzazione del valore da JSON\r\n\t// \tche viene restituita come stringa */\r\n\t// public set presaVisionePrivacy(v: string | boolean) {\r\n\t// \tlet _value: boolean = false;\r\n\t// \t_value = (typeof v === 'string') ? v.toUpperCase() === 'TRUE' : v;\r\n\t// \tthis._presaVisionePrivacy = _value;\r\n\t// }\r\n\r\n\tconstructor(data?: any) {\r\n\t\tthis.lang = data?.lang ?? 'it';\r\n\t\tthis.intranetTheme = data?.intranetTheme || 'corporate';\r\n\t\tthis.theme = data?.theme || '';\r\n\t\tthis.presaVisionePrivacy = data?.presaVisionePrivacy || false;\r\n\r\n\t\t// controllo il valore dai dati\r\n\t\t// faccio un controllo in UpperCase() con TRUE, almeno ho un boolean sensato.\r\n\t\t// Infatti possono capitare valori stringa come True, true, False, false.\r\n\t\t// const stringFlag = data?.presaVisionePrivacy ?? 'false';\r\n\t\t// this.presaVisionePrivacy = stringFlag.toUpperCase() === 'TRUE';\r\n\t}\r\n}\r\n\r\nexport class AppUserOptions {\r\n\tpublic fuorisede: boolean;\r\n\tpublic emailFuorisede: string;\r\n}\r\n\r\nexport class LocalUserOptionsItem {\r\n\tpublic id: number;\r\n\tpublic options: UiUserOptions;\r\n}\r\n\r\nexport class LocalUserOptionsStorage {\r\n\tpublic userOptions: LocalUserOptionsItem[];\r\n}\r\n","import {Injectable} from '@angular/core';\r\n\r\n@Injectable({providedIn: 'root'})\r\nexport class StorageService {\r\n\r\n\tpublic static readonly knownKeys = {\r\n\t\t/**\r\n\t\t * Elenco dei viaggi recentemente utilzzati\r\n\t\t */\r\n\t\trecentTrips: 'recentTrips',\r\n\r\n\t\t/**\r\n\t\t * Settaggi della console\r\n\t\t */\r\n\t\tconsoleSettings: 'consoleSettings',\r\n\r\n\t\t/**\r\n\t\t * Storico della console\r\n\t\t */\r\n\t\tconsoleHistory: 'consoleHistory'\r\n\t};\r\n\r\n\tprivate storage: Storage;\r\n\r\n\tconstructor() {\r\n\t\tthis.storage = window.localStorage;\r\n\t}\r\n\r\n\tpublic setValue(key: string, value: any) {\r\n\t\tconst typeOfValue = typeof (value);\r\n\t\tswitch (typeOfValue) {\r\n\t\t\tcase 'boolean':\r\n\t\t\t\tthis.storage.setItem(key, `b:${value}`);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'bigint':\r\n\t\t\t\tthis.storage.setItem(key, `i:${value}`);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'number':\r\n\t\t\t\tthis.storage.setItem(key, `n:${value}`);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'string':\r\n\t\t\t\tthis.storage.setItem(key, `s:${value}`);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'object':\r\n\t\t\t\tconst valueStr = JSON.stringify(value);\r\n\t\t\t\tthis.storage.setItem(key, `o:${valueStr}`);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tthrow new Error(`Unsupported value type ${typeOfValue}`);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic getValue(key: string, defaultValue: any = null): any {\r\n\t\tconst storedValue = this.storage.getItem(key);\r\n\t\tif (storedValue === null) {\r\n\t\t\treturn defaultValue;\r\n\t\t}\r\n\t\tconst typeOfValue = storedValue.substring(0, 1);\r\n\t\tconst value = storedValue.substring(2);\r\n\t\tswitch (typeOfValue) {\r\n\t\t\tcase 'b':\r\n\t\t\t\treturn value === 'true';\r\n\t\t\tcase 'i':\r\n\t\t\t\treturn parseInt(value, 10);\r\n\t\t\tcase 'n':\r\n\t\t\t\treturn Number(value);\r\n\t\t\tcase 's':\r\n\t\t\t\treturn value;\r\n\t\t\tcase 'o':\r\n\t\t\t\treturn JSON.parse(value);\r\n\t\t}\r\n\t\treturn defaultValue;\r\n\t}\r\n}\r\n","import {EventEmitter, Injectable} from '@angular/core';\r\nimport {BackendService} from '../backend/backend.service';\r\nimport {User} from './user.class';\r\nimport {StorageService} from '../storage/storage.service';\r\nimport {AppUserOptions, Languages, UiUserOptions} from './localuseroptions.class';\r\nimport {ELingua, IChangePasswordRequest, ILoginRequest, ILoginViaEmailRequest, IPasswordResetRequest, ISendLoginViaEmailRequest, ISendPasswordRecoveryRequest, UserDataResponse} from '../backend/naar-api-client';\r\nimport {BehaviorSubject, Observable} from 'rxjs';\r\n\r\nexport enum ECommand {\r\n\tCRYPTIC = 'CRYPTIC',\r\n\tPLANNER = 'PLANNER',\r\n\tCART = 'CART',\r\n\tFLIGHTS = 'FLIGHTS',\r\n\tRENTALS = 'RENTALS',\r\n\tHOTELS = 'HOTELS',\r\n\tTRANSFERTS = 'TRANSFERTS',\r\n\tVISITS = 'VISITS',\r\n\tTOURS = 'TOURS',\r\n\tEDIT_HEADER = 'EDIT_HEADR',\r\n\tEDIT_AGENCY = 'EDIT_AGENCY',\r\n\tTOURS_VISITS = 'TOURS_VISITS',\r\n\tGO_TO_TRIP = 'GO_TO_TRIP',\r\n\tONLINE_HELP = 'ONLINE-HELP',\r\n\tDEBUG_BAR = 'DEBUG-BAR',\r\n\tSHELL = 'SHELL'\r\n}\r\n\r\nexport interface IHotKeyDef {\r\n\tcommand: ECommand;\r\n\tcode: string;\r\n\tshift: boolean;\r\n\talt: boolean;\r\n\tctrl: boolean;\r\n\tmeta: boolean;\r\n}\r\n\r\nconst hotKeyDefs: IHotKeyDef[] = [\r\n\t{\r\n\t\tcommand: ECommand.CRYPTIC,\r\n\t\tcode: 'F2',\r\n\t\tshift: false,\r\n\t\talt: false,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.PLANNER,\r\n\t\tcode: 'F3',\r\n\t\tshift: false,\r\n\t\talt: false,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.CART,\r\n\t\tcode: 'F4',\r\n\t\tshift: false,\r\n\t\talt: false,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.FLIGHTS,\r\n\t\tcode: 'KeyF',\r\n\t\tshift: false,\r\n\t\talt: true,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.RENTALS,\r\n\t\tcode: 'KeyC',\r\n\t\tshift: false,\r\n\t\talt: true,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.HOTELS,\r\n\t\tcode: 'KeyH',\r\n\t\tshift: false,\r\n\t\talt: true,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.TRANSFERTS,\r\n\t\tcode: 'KeyX',\r\n\t\tshift: false,\r\n\t\talt: true,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.VISITS,\r\n\t\tcode: 'KeyV',\r\n\t\tshift: false,\r\n\t\talt: true,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.TOURS,\r\n\t\tcode: 'KeyT',\r\n\t\tshift: false,\r\n\t\talt: true,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.EDIT_HEADER,\r\n\t\tcode: 'F7',\r\n\t\tshift: false,\r\n\t\talt: false,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.EDIT_AGENCY,\r\n\t\tcode: 'F8',\r\n\t\tshift: false,\r\n\t\talt: false,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}, {\r\n\t\tcommand: ECommand.GO_TO_TRIP,\r\n\t\tcode: 'KeyV',\r\n\t\tshift: true,\r\n\t\talt: true,\r\n\t\tctrl: false,\r\n\t\tmeta: false\r\n\t}\r\n];\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class UserService {\r\n\t#userChanged: EventEmitter = new EventEmitter();\r\n\t/**\r\n\t * Osservabile che emette al cambiamento di utente\r\n\t */\r\n\tpublic get userChanged(): Observable {\r\n\t\treturn this.#userChanged.asObservable();\r\n\t}\r\n\r\n\t#working: BehaviorSubject = new BehaviorSubject(false);\r\n\t/**\r\n\t * Emette true se il servizio sta lavorando in background\r\n\t */\r\n\tpublic get working(): Observable {\r\n\t\treturn this.#working.asObservable();\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco dei tasti di scelta rapida dell'utente\r\n\t */\r\n\tpublic get hotKeys(): IHotKeyDef[] {\r\n\t\treturn hotKeyDefs;\r\n\t}\r\n\r\n #mustChangePassword = false;\r\n /**\r\n * Riporta true se l'utente deve cambiare la password\r\n */\r\n public get mustChangePassword(): boolean {\r\n return this.#mustChangePassword;\r\n }\r\n\r\n #resetPasswordCode: string = null;\r\n /**\r\n * Il codice per il reset della password, se presente\r\n */\r\n public get resetPasswordCode(): string {\r\n return this.#resetPasswordCode;\r\n }\r\n\r\n\t#isLoggedIn = false;\r\n\t/**\r\n\t * Riporta true se l'utente è loggato\r\n\t */\r\n\tpublic get isLoggedIn(): boolean {\r\n\t\treturn this.#isLoggedIn;\r\n\t}\r\n\r\n\t#currentUser: User = null;\r\n\t/**\r\n\t * Utente corrente. Null se non loggato\r\n\t */\r\n\tpublic get currentUser(): User {\r\n\t\treturn this.#currentUser;\r\n\t}\r\n\r\n\t#permissions: string[] = [];\r\n\t/**\r\n\t * Elenco dei permessi dell'utente\r\n\t */\r\n\tpublic get permissions(): string[] {\r\n\t\treturn this.#permissions;\r\n\t}\r\n\r\n\t#canBookFlights = false;\r\n\t/**\r\n\t * True se può prenotare i voli\r\n\t */\r\n\tpublic get canBookFlights(): boolean {\r\n\t\treturn this.#canBookFlights;\r\n\t}\r\n\r\n\t#canBook = false;\r\n\t/**\r\n\t * True se questo utente è abilitato a prenotare i viaggi\r\n\t */\r\n\tpublic get canBook(): boolean {\r\n\t\treturn this.#canBook;\r\n\t}\r\n\r\n\t#uiOptions: UiUserOptions = new UiUserOptions();\r\n\t/**\r\n\t * Opzioni UI. Presenti sempre, anche con utente non loggato\r\n\t */\r\n\tpublic get uiOptions(): UiUserOptions {\r\n\t\treturn this.#uiOptions;\r\n\t}\r\n\r\n\t#appOptions: AppUserOptions = new AppUserOptions();\r\n\t/**\r\n\t * Opzioni applicazione. Presenti sempre, anche con utente non loggato\r\n\t */\r\n\tpublic get appOptions(): AppUserOptions {\r\n\t\treturn this.#appOptions;\r\n\t}\r\n\r\n\t#currentLang$: BehaviorSubject = new BehaviorSubject('it');\r\n\t/**\r\n\t * Emette la lingua corrente (codice ISO 2 lettere)\r\n\t */\r\n\tpublic get currentLang$(): Observable {\r\n\t\treturn this.#currentLang$.asObservable();\r\n\t}\r\n\r\n\tconstructor(private backend: BackendService, private storage: StorageService) {\r\n\t}\r\n\r\n\t/**\r\n\t * Imposta la lingua per l'utente\r\n\t * @param newLang\r\n\t */\r\n\tpublic async setLang(newLang: Languages) {\r\n\t\tthis.uiOptions.lang = newLang;\r\n\t\tawait this.writeOptions(this.appOptions, this.uiOptions);\r\n\t\tthis.#currentLang$.next(newLang);\r\n\t}\r\n\r\n\t/**\r\n\t * Ritorna true se almeno uno dei permessi in input è presente tra quelli dell'utente\r\n\t * @param permissions Elenco di permessi, almeno uno deve corrispondere. Inserire * come primo ed unico elemento per indicare \"qualsiasi permesso\" purché loggato\r\n\t */\r\n\tpublic can(permissions: string[]): boolean {\r\n\t\tif (!permissions || !this.isLoggedIn) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (permissions.length === 1 && permissions[0] === '*') {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tlet found = false;\r\n\t\tpermissions.forEach((p) => {\r\n\t\t\tif (!found) {\r\n\t\t\t\tfound = this.permissions.indexOf(p) >= 0;\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn found;\r\n\t}\r\n\r\n\t/**\r\n\t * Costruisce le opzioni utente UI e App\r\n\t * @param response Response opzionale della chiamata di login o di check\r\n\t * @private\r\n\t */\r\n\tprivate getOptions(response?: any) {\r\n\t\tthis.#uiOptions = response?.opzioniUI;\r\n\r\n\t\t// Se non ci sono opzioni provo a caricarle dallo storage\r\n\t\tif (!this.#uiOptions) {\r\n\t\t\t// Di default la lingua della UI è quella del browser\r\n\t\t\tlet browserLang = navigator.language.toLowerCase();\r\n\t\t\tconst separatorIndex = browserLang.indexOf('-');\r\n\t\t\tif (separatorIndex > 0) browserLang = browserLang.substr(0, 2);\r\n\r\n\t\t\t// Se il browser chiede una lingua non supportata annullo\r\n\t\t\tif (browserLang && !UiUserOptions.allowedLanguages.includes(browserLang)) browserLang = null;\r\n\r\n\t\t\tthis.#uiOptions = this.storage.getValue('uiOptions', new UiUserOptions({lang: browserLang}));\r\n\t\t}\r\n\r\n\t\tthis.#currentLang$.next(this.#uiOptions.lang || 'it');\r\n\r\n\t\tif (!this.uiOptions.intranetTheme) {\r\n\t\t\tthis.uiOptions.intranetTheme = 'corporate'; // Ho deciso io che è il default\r\n\t\t}\r\n\r\n\t\tif (!this.uiOptions.theme) {\r\n\t\t\tthis.uiOptions.theme = '';\r\n\t\t}\r\n\r\n\t\tthis.#appOptions = response?.appOptions || new AppUserOptions();\r\n\t}\r\n\r\n\t/**\r\n\t * Scrive le opzioni utente. Se l'utente non è loggato persiste solo la lingua nello storage locale\r\n\t * @param appOptions Opzioni app\r\n\t * @param uiOptions Opzioni UI\r\n\t */\r\n\tpublic async writeOptions(appOptions: AppUserOptions, uiOptions: UiUserOptions): Promise {\r\n\t\t// Salvo il tutto nel local storage\r\n\t\tthis.storage.setValue('uiOptions', uiOptions);\r\n\r\n\t\tif (this.isLoggedIn) {\r\n\t\t\tconst request = {\r\n\t\t\t\tuser: appOptions,\r\n\t\t\t\tuiOptions,\r\n\t\t\t};\r\n\t\t\ttry {\r\n\t\t\t\tthis.#working.next(true);\r\n\t\t\t\tconst response = await this.backend.post('auth/user/saveoptions', request);\r\n\t\t\t\tthis.#uiOptions = response.uiOptions;\r\n\t\t\t\tthis.#appOptions = response.user;\r\n\t\t\t} finally {\r\n\t\t\t\tthis.#working.next(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Verifica sul server se l'utente è loggato o meno\r\n\t */\r\n\tpublic async doCheck(): Promise {\r\n \r\n // OM 21.10.2024: adding the fast login token to the check request\r\n // OM 13.12.2024: adding the login by email token to the check request\r\n const queryString = window.location.search;\r\n const url = queryString.includes('flt') || queryString.includes('tlt') ? 'auth/check' + queryString : 'auth/check';\r\n \r\n const checkResponse: UserDataResponse = await this.backend.post(url);\r\n\t\tif (checkResponse.code === 'LOGGEDIN') {\r\n\t\t\tthis.#isLoggedIn = true;\r\n\t\t\tthis.#currentUser = new User(checkResponse.id, checkResponse.ssoToken, checkResponse.nome, checkResponse.cognome, checkResponse.tipo, checkResponse.agencyData, checkResponse.debugData, checkResponse.operator,checkResponse.email);\r\n\t\t\tthis.#permissions = checkResponse.permessi;\r\n\t\t\tthis.#canBookFlights = checkResponse.canBookFlights;\r\n\t\t\tthis.#canBook = checkResponse.canBook;\r\n this.#mustChangePassword = checkResponse.mustChangePassword;\r\n this.#resetPasswordCode = checkResponse.resetPasswordCode;\r\n\t\t\tthis.getOptions(checkResponse);\r\n\t\t\tthis.#userChanged.emit();\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tthis.#isLoggedIn = false;\r\n\t\t\tthis.getOptions();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Inizializza il servizio\r\n\t */\r\n\tpublic async init(): Promise {\r\n\t\tconsole.group('UserService init');\r\n\t\tif (await this.doCheck()) {\r\n\t\t\tconsole.log('Logged in as', this.currentUser.displayName);\r\n\r\n\t\t\t// // //! da rimuovere\r\n\t\t\t// // console.log('Info dalla Login', this.currentUser);\r\n\t\t} else console.log('Not logged in');\r\n\t\tconsole.groupEnd();\r\n\t}\r\n\r\n\t/**\r\n\t * Esegue il login di un utente\r\n\t * @param username Username (di solito la mail)\r\n\t * @param password Password\r\n\t * @param emailLoginCode Codice di cross login, se ne è fornito uno\r\n\t */\r\n\tpublic async login(username: string, password: string, crossLoginCode?: string): Promise {\r\n\t\tconst loginData: ILoginRequest = {\r\n\t\t\tusername,\r\n\t\t\tpassword,\r\n\t\t\tcrossLoginCode\r\n\t\t};\r\n\t\t\r\n\t\tconst loginResponse: UserDataResponse = await this.backend.post('auth/login', loginData);\r\n\r\n\t\treturn this.digestLoginResponse(loginResponse);\r\n\t}\r\n\r\n\tpublic async sendLoginViaEmailRequest(username: string, lingua: ELingua): Promise {\r\n\t\ttry {\r\n\t\t\tconst request: ISendLoginViaEmailRequest = {\r\n\t\t\t\temailAddress: username,\r\n\t\t\t\tlingua: lingua\r\n\t\t\t}\r\n\t\t\tawait this.backend.post('auth/sentloginviaemail', request);\r\n\t\t\treturn true;\r\n\t\t} catch (ex) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\tpublic async loginViaEmail(username: string, emailLoginCode: string): Promise {\r\n\t\tconst loginData: ILoginViaEmailRequest = {\r\n\t\t\tusername,\r\n\t\t\temailLoginCode\r\n\t\t};\r\n\t\t\r\n\t\tconst loginResponse: UserDataResponse = await this.backend.post('auth/emaillogin', loginData);\r\n\r\n\t\treturn this.digestLoginResponse(loginResponse);\r\n\t}\r\n\r\n\tprivate async digestLoginResponse(loginResponse: UserDataResponse): Promise { \r\n\t\tif (loginResponse.code === 'LOGGEDIN') {\r\n\t\t\tthis.#isLoggedIn = true;\r\n\t\t\tthis.#currentUser = new User(loginResponse.id, loginResponse.ssoToken, loginResponse.nome, loginResponse.cognome, loginResponse.tipo, loginResponse.agencyData, loginResponse.debugData, loginResponse.operator,loginResponse.email);\r\n\t\t\tthis.#permissions = loginResponse.permessi;\r\n\t\t\tconst currentLang = this.uiOptions.lang;\r\n\t\t\tthis.#canBookFlights = loginResponse.canBookFlights;\r\n\t\t\tthis.#canBook = loginResponse.canBook;\r\n this.#mustChangePassword = loginResponse.mustChangePassword;\r\n this.#resetPasswordCode = loginResponse.resetPasswordCode;\r\n\t\t\tthis.getOptions(loginResponse);\r\n\t\t\t// Se l'utente sta usando una lingua diversa persisto l'opzione\r\n\t\t\tif (currentLang !== this.uiOptions.lang) {\r\n\t\t\t\tawait this.writeOptions(this.appOptions, this.uiOptions);\r\n\t\t\t}\r\n\t\t\tthis.#userChanged.emit();\r\n\t\t\tconsole.log('Logged in as', this.currentUser.displayName);\r\n\t\t\treturn this.currentUser;\r\n\t\t} else {\r\n\t\t\tconsole.warn('Login failed');\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n\t\r\n\r\n\t/**\r\n\t * Esegue il logout\r\n\t */\r\n\tpublic async logout(): Promise {\r\n\t\tawait this.backend.post('auth/logout');\r\n\t\tthis.#currentUser = null;\r\n\t\tthis.#isLoggedIn = false;\r\n\t\tthis.#permissions = [];\r\n\t\tthis.#userChanged.emit();\r\n\t\tconsole.log('Logged out');\r\n\t}\r\n\r\n\t/**\r\n\t * Cambio password\r\n\t * @param currentPassword Password attuale in chiaro\r\n\t * @param newPassword Nuova password in chiaro\r\n\t */\r\n\tpublic async changePassword(currentPassword: string, newPassword: string): Promise {\r\n\t\tconst request: IChangePasswordRequest = {\r\n\t\t\tcurrentPassword,\r\n\t\t\tnewPassword,\r\n\t\t};\r\n\t\ttry {\r\n\t\t\tthis.#working.next(true);\r\n\t\t\tawait this.backend.post('users/changepassword', request);\r\n\t\t} finally {\r\n\t\t\tthis.#working.next(false);\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Invio della richiesta di recupero della password\r\n\t * @param email Indirizzo email (username) su cui eseguire il recupero\r\n\t * @param passwordResetUrl Landing page per il reset della password\r\n\t * @param lingua Lingua della richiesta\r\n\t */\r\n\tpublic async sendPasswordRecoveryRequest(email: string, passwordResetUrl: string, lingua: ELingua): Promise {\r\n\t\tconst request: ISendPasswordRecoveryRequest = {\r\n\t\t\temail,\r\n\t\t\tpasswordResetUrl,\r\n\t\t\tlingua,\r\n\t\t};\r\n\t\ttry {\r\n\t\t\tthis.#working.next(true);\r\n\t\t\tawait this.backend.post('users/passrecover/request', request);\r\n\t\t} finally {\r\n\t\t\tthis.#working.next(false);\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Reset della password in risposta alla mail di recupero\r\n\t * @param codice Codice univoco della richiesta\r\n\t * @param password Nuova password\r\n\t */\r\n\tpublic async passwordReset(codice: string, password: string): Promise {\r\n\t\tconst request: IPasswordResetRequest = {\r\n\t\t\tcodice,\r\n\t\t\tpassword,\r\n\t\t};\r\n\t\ttry {\r\n\t\t\tthis.#working.next(true);\r\n\t\t\tawait this.backend.post('users/passrecover/reset', request);\r\n\t\t} finally {\r\n\t\t\tthis.#working.next(false);\r\n\t\t}\r\n\t}\r\n}\r\n","import {ApiClientBase, ApiConfig} from './api-client-base';\r\n//----------------------\r\n// \r\n// Generated using the NSwag toolchain v14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)\r\n// \r\n//----------------------\r\n\r\n/* tslint:disable */\r\n/* eslint-disable */\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport { mergeMap as _observableMergeMap, catchError as _observableCatch } from 'rxjs/operators';\r\nimport { Observable, from as _observableFrom, throwError as _observableThrow, of as _observableOf } from 'rxjs';\r\nimport { Injectable, Inject, Optional, InjectionToken } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpResponse, HttpResponseBase } from '@angular/common/http';\r\n\r\nexport const API_BASE_URL = new InjectionToken('API_BASE_URL');\r\n\r\n@Injectable()\r\nexport class NaarApiAccordiClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Accordo richiesto\r\n */\r\n read(request: AccordoReadRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/read\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRead(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRead(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRead(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AccordoReadResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n write(request: AccordoWriteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/write\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWrite(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWrite(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWrite(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma dell'eliminazione dell'accordo\r\n */\r\n delete(request: AccordoDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n restore(request: RestoreAccordoRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma dell'eliminazione degli accordi\r\n */\r\n deleteMulti(request: AccordiDeleteMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/accordi/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei contraenti\r\n */\r\n contraentiSearch(request: ContraentiSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/contraenti/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processContraentiSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processContraentiSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processContraentiSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfContraenteRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista dei contraenti\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Contraente richiesto\r\n */\r\n contraenteRead(request: ContraenteReadRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/contraenti/read\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processContraenteRead(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processContraenteRead(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processContraenteRead(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ContraenteReadResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Contraente creato / modificato\r\n */\r\n contraenteWrite(request: ContraenteWriteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/contraenti/write\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processContraenteWrite(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processContraenteWrite(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processContraenteWrite(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ContraenteWriteResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n contraenteDelete(request: ContraenteDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/contraenti/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processContraenteDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processContraenteDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processContraenteDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n contraenteDeleteMulti(request: ContraenteDeleteMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/contraenti/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processContraenteDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processContraenteDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processContraenteDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei dati aggiuntivi\r\n */\r\n datiAggiuntiviSearch(request: DatiAggiuntiviSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/datiaggiuntivi/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDatiAggiuntiviSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDatiAggiuntiviSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDatiAggiuntiviSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfDatoAggiuntivoRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista dei dati aggiuntivi\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dato aggiuntivo richiesto\r\n */\r\n datoAggiuntivoRead(request: DatoAggiuntivoReadRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/datiaggiuntivi/read\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDatoAggiuntivoRead(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDatoAggiuntivoRead(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDatoAggiuntivoRead(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DatoAggiuntivoReadResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dato aggiuntivo creato / aggiornato\r\n */\r\n datoAggiuntivoWrite(request: DatoAggiuntivoWriteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/datiaggiuntivi/write\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDatoAggiuntivoWrite(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDatoAggiuntivoWrite(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDatoAggiuntivoWrite(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DatoAggiuntivoWriteResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n datoAggiuntivoDelete(request: DatoAggiuntivoDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/datiaggiuntivi/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDatoAggiuntivoDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDatoAggiuntivoDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDatoAggiuntivoDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n datoAggiuntivoDeleteMulti(request: DatoAggiuntivoDeleteMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/datiaggiuntivi/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDatoAggiuntivoDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDatoAggiuntivoDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDatoAggiuntivoDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista delle tabelle costi commissioni\r\n */\r\n tabelleCostiCommissioniSearch(request: TabelleCostiCommissioniSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/tabelle/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTabelleCostiCommissioniSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTabelleCostiCommissioniSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTabelleCostiCommissioniSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfTabellaCostiCommissioniRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista delle tabelle costi commissioni\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista delle tabelle costi commissioni\r\n */\r\n tabelleCostiCommissioniList(request: TabelleCostiCommissioniListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/tabelle/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTabelleCostiCommissioniList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTabelleCostiCommissioniList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTabelleCostiCommissioniList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TabelleCostiCommissioniListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tabella costi commissioni richiesta\r\n */\r\n tabellaCostiCommissioniRead(request: TabellaCostiCommissioniReadRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/tabelle/read\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTabellaCostiCommissioniRead(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTabellaCostiCommissioniRead(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTabellaCostiCommissioniRead(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TabellaCostiCommissioniReadResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tabella costi commissioni creata / aggiornata\r\n */\r\n tabellaCostiCommissioniWrite(request: TabellaCostiCommissioniWriteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/tabelle/write\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTabellaCostiCommissioniWrite(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTabellaCostiCommissioniWrite(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTabellaCostiCommissioniWrite(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TabellaCostiCommissioniWriteResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n tabellaCostiCommissioniDelete(request: TabellaCostiCommissioniDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/tabelle/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTabellaCostiCommissioniDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTabellaCostiCommissioniDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTabellaCostiCommissioniDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n tabellaCostiCommissioniDeleteMulti(request: TabellaCostiCommissioniDeleteMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/tabelle/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTabellaCostiCommissioniDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTabellaCostiCommissioniDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTabellaCostiCommissioniDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @param request Set di filtri di ricerca\r\n * @return Lista degli accordi\r\n */\r\n search(request: AccordiSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/accordi/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfAccordoRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista accordi\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAccountingClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Export Excel della lista delle valute\r\n */\r\n getCurrenciesExport(request: GetCurrenciesExportRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/currencies/export\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCurrenciesExport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCurrenciesExport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCurrenciesExport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return _observableOf(result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei valute con i cambi attuali\r\n */\r\n getCurrenciesList(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/currencies/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCurrenciesList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCurrenciesList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCurrenciesList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCurrenciesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei cambi della valuta\r\n */\r\n getCurrencyHistory(request: GetCurrencyHistoryRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/currency/rates/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCurrencyHistory(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCurrencyHistory(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCurrencyHistory(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCurrencyHistoryResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista dei cambi\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Valuta aggiornata\r\n */\r\n insertCurrencyRate(request: CurrencyRateInsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/currency/rate/insert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInsertCurrencyRate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInsertCurrencyRate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInsertCurrencyRate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CurrencyRateInsertResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei nuovi cambi\r\n */\r\n getNewExchangeRates(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/currencies/rates/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetNewExchangeRates(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetNewExchangeRates(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetNewExchangeRates(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetNewExchangeRatesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n delete(request: ImportTicketsDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/importtickets/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ImportTicketsDeleteResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n get(request: ImportTicketsGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/importtickets/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ImportTicketsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n list(request: ListTicketsRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/importtickets/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ListTicketsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n update(request: ImportTicketsUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/importtickets/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ImportTicketsUpdateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n uploadFile(): Observable {\r\n let url_ = this.baseUrl + \"/accounting/importtickets/upload\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUploadFile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUploadFile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUploadFile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ImportTicketsUploadResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma\r\n */\r\n incomingDelete(request: IncomingDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incoming/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Incasso richiesto\r\n */\r\n incomingGet(request: IncomingGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incoming/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = IncomingGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultato operazione\r\n */\r\n incomingsBatch(request: IncomingsBatchRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incomings/batch\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingsBatch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingsBatch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingsBatch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = IncomingsBatchResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultato operazione\r\n */\r\n incomingsBatchQuery(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incomings/batch/query\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingsBatchQuery(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingsBatchQuery(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingsBatchQuery(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = IncomingsBatchQueryResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma\r\n */\r\n incomingsChange(request: IncomingsChangeRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incomings/change\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingsChange(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingsChange(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingsChange(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma\r\n */\r\n incomingsCreate(request: IncomingsCreateRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incomings/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingsCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingsCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingsCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma\r\n */\r\n incomingsDelete(request: IncomingsDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incomings/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingsDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingsDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingsDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista degli incassi\r\n */\r\n listIncomings(request: IncomingsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incomings/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processListIncomings(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processListIncomings(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processListIncomings(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = IncomingsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista incassi\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Export Excel della lista incassi\r\n */\r\n reportIncomings(request: IncomingsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incomings/report\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processReportIncomings(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processReportIncomings(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processReportIncomings(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return _observableOf(result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Incasso aggiornato\r\n */\r\n incomingUpsert(request: IncomingUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/incoming/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIncomingUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIncomingUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIncomingUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = IncomingUpsertResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei viaggi fatturabili\r\n */\r\n billableTripsList(request: BillableTripsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/invoices/billable/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processBillableTripsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processBillableTripsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processBillableTripsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = BillableTripsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Prossimo numero progressivo del documento richiesto\r\n */\r\n getNextDocumentNumber(request: GetNextDocumentNumberRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/getnextdocumentnumber\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetNextDocumentNumber(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetNextDocumentNumber(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetNextDocumentNumber(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetNextDocumentNumberResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Operazione eseguita\r\n */\r\n invoiceDelete(request: InvoiceDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/invoice/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInvoiceDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInvoiceDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInvoiceDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Documento\r\n */\r\n invoiceGet(request: InvoiceGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/invoice/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInvoiceGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInvoiceGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInvoiceGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = InvoiceGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Documenti creati\r\n */\r\n invoicesCreate(request: InvoicesCreateRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/invoices/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInvoicesCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInvoicesCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInvoicesCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = InvoicesCreateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei documenti contabili\r\n */\r\n invoicesList(request: InvoicesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/invoices/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInvoicesList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInvoicesList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInvoicesList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = InvoicesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista dei documenti contabili\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Documento salvato\r\n */\r\n invoiceUpsert(request: InvoiceUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/invoice/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInvoiceUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInvoiceUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInvoiceUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = InvoiceUpsertResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma operazione\r\n */\r\n paymentDelete(request: PaymentDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/payment/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Pagamento\r\n */\r\n paymentGet(request: PaymentGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/payment/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PaymentGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati salvati\r\n */\r\n paymentsAssign(request: PaymentsAssignRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/payments/assign\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentsAssign(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentsAssign(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentsAssign(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei pagamenti\r\n */\r\n getPaymentsList(request: GetPaymentsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/payments/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPaymentsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPaymentsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPaymentsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPaymentsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista dei pagamenti\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Export Excel dei servizi associati al pagamento\r\n */\r\n paymentTripRowsExport(request: PaymentGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/payment/export\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentTripRowsExport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentTripRowsExport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentTripRowsExport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return _observableOf(result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Pagamento salvato\r\n */\r\n paymentUpsert(request: PaymentUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/payment/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PaymentUpsertResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei servizi da pagare\r\n */\r\n getServicesToPay(request: ServicesToPayListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/payments/sevices/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetServicesToPay(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetServicesToPay(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetServicesToPay(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ServicesToPayListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista dei servizi da pagare\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n exportTravelfactoringGET(flussoID: number): Observable {\r\n let url_ = this.baseUrl + \"/accounting/travelfactoring/export/{FlussoID}\";\r\n if (flussoID === undefined || flussoID === null)\r\n throw new Error(\"The parameter 'flussoID' must be defined.\");\r\n url_ = url_.replace(\"{FlussoID}\", encodeURIComponent(\"\" + flussoID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExportTravelfactoringGET(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportTravelfactoringGET(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportTravelfactoringGET(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Flusso creato\r\n */\r\n createTravelfactoring(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/travelfactoring/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateTravelfactoring(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateTravelfactoring(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateTravelfactoring(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateTravelfactoringResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma dell'operazione\r\n */\r\n deleteTravelfactoring(request: TravelfactoringGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/travelfactoring/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteTravelfactoring(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteTravelfactoring(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteTravelfactoring(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return File\r\n */\r\n exportTravelfactoringPOST(request: TravelfactoringGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/travelfactoring/export\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExportTravelfactoringPOST(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExportTravelfactoringPOST(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExportTravelfactoringPOST(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ExportTravelfactoringResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista delle righe di un flusso\r\n */\r\n getTravelfactoring(request: TravelfactoringGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/travelfactoring/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTravelfactoring(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTravelfactoring(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTravelfactoring(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TravelfactoringGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista de\r\n */\r\n listTravelfactoring(request: TravelfactoringListRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/travelfactoring/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processListTravelfactoring(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processListTravelfactoring(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processListTravelfactoring(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TravelfactoringListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista delle righe aggiornata\r\n */\r\n updateTravelfactoring(request: UpdateTravelfactoringRequest): Observable {\r\n let url_ = this.baseUrl + \"/accounting/travelfactoring/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateTravelfactoring(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateTravelfactoring(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateTravelfactoring(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TravelfactoringGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiActivityLogsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Ottieni la lista dei logs\r\n */\r\n activityLogsList(request: ActivityLogsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/activitylogs/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processActivityLogsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processActivityLogsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processActivityLogsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfActivityLogsRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAdditionalsDataClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Dato inserito\r\n */\r\n additionalDataCreate(request: AdditionalDataUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionaldata/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalDataCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalDataCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalDataCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalDataGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dato eliminato\r\n */\r\n additionalDataDelete(request: AdditionalDataDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionaldata/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalDataDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalDataDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalDataDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dato ottenuto\r\n */\r\n additionalDataGet(request: AdditionalDataGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionaldata/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalDataGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalDataGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalDataGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalDataGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n additionalDataList(request: AdditionalDataListRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionaldata/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalDataList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalDataList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalDataList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalDataListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n additionalDataUpdate(request: AdditionalDataUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionaldata/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalDataUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalDataUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalDataUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalDataUpdateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAdditionalsDataTypesClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Dato inserito\r\n */\r\n additionalDataTypeCreate(request: AdditionalsDataTypesUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionalsdatatypes/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalDataTypeCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalDataTypeCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalDataTypeCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalDataGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n delete(request: AdditionalsDataTypesDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionalsdatatypes/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalsDataTypesDeleteResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n get(request: AdditionalsDataTypesGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionalsdatatypes/Get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalsDataTypesGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n additionalDataTypeList(request: AdditionalsDataTypesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionalsdatatypes/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalDataTypeList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalDataTypeList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalDataTypeList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalDataTypeListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n additionalsDataTypesUpdate(request: AdditionalsDataTypesUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/additionalsdatatypes/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAdditionalsDataTypesUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAdditionalsDataTypesUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAdditionalsDataTypesUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdditionalsDataTypesGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAdminClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n getEmailForwarderLog(request: GetEmailForwarderLogRequest): Observable {\r\n let url_ = this.baseUrl + \"/admin/emailforwarder/log\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetEmailForwarderLog(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetEmailForwarderLog(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetEmailForwarderLog(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetEmailForwarderLogResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAdvancePaymentsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Anticipo fornitore eliminato\r\n */\r\n delete(request: AdvancePaymentGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/advance_payments/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Possibilità di cancellare\r\n */\r\n deletePreview(request: AdvancePaymentGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/advance_payments/delete/preview\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeletePreview(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeletePreview(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeletePreview(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdvancePaymentDeletePreviewResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Anticipo fornitore richiesto\r\n */\r\n get(request: AdvancePaymentGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/advance_payments/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdvancePaymentGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Anticipo fornitore non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco anticipi pagamento\r\n */\r\n list(request: AdvancePaymentsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/advance_payments/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdvancePaymentsList.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Anticipo fornitore aggiornato\r\n */\r\n upsert(request: AdvancePaymentUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/advance_payments/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AdvancePaymentGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAgencyDashboardClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n helpContentGet(request: HelpContentGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/dashboard/helpcontent\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processHelpContentGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processHelpContentGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processHelpContentGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = HelpContentGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiNaarAIClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Inizia una chat con l'AI\r\n */\r\n naarAIChatRequest(request: NaarAIChatRequestRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/chat\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAIChatRequest(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAIChatRequest(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAIChatRequest(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAIChatRequestResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n generateHotelDescription(request: NaarAIGenerateHotelDescriptionRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/generate_hotel_description\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGenerateHotelDescription(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGenerateHotelDescription(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGenerateHotelDescription(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAIGenerateHotelDescriptionResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n naarAITimeZoneGap(request: NaarAITimeZoneGapRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/timezonegap\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAITimeZoneGap(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAITimeZoneGap(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAITimeZoneGap(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAITimeZoneGapResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n queryDB(request: NaarAIQueryDBRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/dbquery\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processQueryDB(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processQueryDB(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processQueryDB(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAIQueryDBResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n naarAISummarizeText(request: NaarAISummarizeTextRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/summarize\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAISummarizeText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAISummarizeText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAISummarizeText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAISummarizeTextResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elimina un tuning\r\n */\r\n naarAITuningDelete(request: NaarAITuningDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/tuning/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAITuningDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAITuningDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAITuningDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Ottieni un tuning\r\n */\r\n naarAITuningGet(request: NaarAITuningGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/tuning/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAITuningGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAITuningGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAITuningGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAITuningGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Ottieni la lista dei tuning\r\n */\r\n naarAITuningList(request: NaarAITuningListRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/tuning/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAITuningList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAITuningList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAITuningList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfNaarAIRequestTuning.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testa un tuning\r\n */\r\n naarAITuningTest(request: NaarAITuningTestRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/tuning/test\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAITuningTest(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAITuningTest(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAITuningTest(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAITuningTestResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Crea o modifica un tuning\r\n */\r\n naarAITuningUpsert(request: NaarAITuningUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/ai/tuning/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNaarAITuningUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNaarAITuningUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNaarAITuningUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarAITuningGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAirlinesCompaniesClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Compagnia aerea salvata\r\n */\r\n create(request: AirlineUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/airlinescompanies/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirlineGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n delete(request: AirlineDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/airlinescompanies/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Compagnia aerea richiesta\r\n */\r\n get(request: AirlineGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/airlinescompanies/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirlineGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Compagnia aerea non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco copagnie aeree\r\n */\r\n list(request: AirlinesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/airlinescompanies/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirlinesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Compagnia aerea aggiornata\r\n */\r\n update(request: AirlineUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/airlinescompanies/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirlineGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAirportsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Aeroporto salvato\r\n */\r\n create(request: AirportUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/airports/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirportGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n delete(request: AirportDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/airports/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Aeroporto richiesto\r\n */\r\n get(request: AirportGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/airports/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirportGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Aeroporto non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco aeroporti\r\n */\r\n list(request: AirportsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/airports/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirportsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Aeroporto aggiornato\r\n */\r\n update(request: AirportUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/airports/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AirportGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAliveClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n isAlive(): Observable {\r\n let url_ = this.baseUrl + \"/\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIsAlive(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIsAlive(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIsAlive(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiArticoliClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Allegato creato\r\n */\r\n addAttachment(): Observable {\r\n let url_ = this.baseUrl + \"/articles/attachment/upload\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAddAttachment(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddAttachment(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddAttachment(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AddAttachmentResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Articolo salvato\r\n */\r\n createArticolo(request: UpdateArticoloRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateArticolo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateArticolo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateArticolo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoloGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n deleteArticle(request: ArticoloDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteArticle(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteArticle(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteArticle(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n downloadAttachment(articoloID: number, allegatoID: number): Observable {\r\n let url_ = this.baseUrl + \"/articles/get/{articoloID}/attachment/{allegatoID}\";\r\n if (articoloID === undefined || articoloID === null)\r\n throw new Error(\"The parameter 'articoloID' must be defined.\");\r\n url_ = url_.replace(\"{articoloID}\", encodeURIComponent(\"\" + articoloID));\r\n if (allegatoID === undefined || allegatoID === null)\r\n throw new Error(\"The parameter 'allegatoID' must be defined.\");\r\n url_ = url_.replace(\"{allegatoID}\", encodeURIComponent(\"\" + allegatoID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDownloadAttachment(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDownloadAttachment(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDownloadAttachment(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Articolo richiesto\r\n */\r\n get(request: ArticoloGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoloGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Articolo non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getArticoliFraseList(request: GetArticoliFraseListRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/articolifrase\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetArticoliFraseList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetArticoliFraseList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetArticoliFraseList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetArticoliFraseListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Articolo richiesto\r\n */\r\n getPublished(request: ArticoloGetPublishedRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/published/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPublished(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPublished(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPublished(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoloGetPublishedResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Articolo non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Sezioni dell'articolo richieste\r\n */\r\n getAllSections(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/get/sections\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAllSections(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllSections(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllSections(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAllSectionsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Sezioni non recuperabili\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testo dell'articolo richiesto\r\n */\r\n getArticoloText(request: ArticoloGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/get/text\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetArticoloText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetArticoloText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetArticoloText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetArticoloTextResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Articolo non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista articoli\r\n */\r\n list(request: ArticoliListRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfArticoloListRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista articoli\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma ripristino\r\n */\r\n restoreArticle(request: ArticoloRestoreRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestoreArticle(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestoreArticle(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestoreArticle(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma nuovo ordinamento\r\n */\r\n setArticoliOrder(request: SetArticoliOrderRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/sort\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetArticoliOrder(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetArticoliOrder(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetArticoliOrder(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Articolo aggiornato\r\n */\r\n setLink(request: SetLinkRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/setlink\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetLink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetLink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetLink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoloGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testo tradotto\r\n */\r\n translateArticolo(request: TranslateArticoloRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/translate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslateArticolo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslateArticolo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslateArticolo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslateArticoloResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Articolo aggiornato\r\n */\r\n updateArticolo(request: UpdateArticoloRequest): Observable {\r\n let url_ = this.baseUrl + \"/articles/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateArticolo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateArticolo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateArticolo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoloGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Allegato aggiornato\r\n */\r\n updateAddAttachment(): Observable {\r\n let url_ = this.baseUrl + \"/articles/attachment/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateAddAttachment(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateAddAttachment(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateAddAttachment(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateAttachmentResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiArticoliTemplateClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Template salvato\r\n */\r\n createTemplate(request: UpdateArticoliTemplateRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitemplate/templates/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateTemplate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateTemplate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateTemplate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoliTemplateGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n deleteTemplate(request: ArticoloTemplateDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitemplate/templates/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteTemplate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteTemplate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteTemplate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Richiesta Template\r\n */\r\n get(request: ArticoliTemplateGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitemplate/templates/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoliTemplateGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Template non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei Template\r\n */\r\n getAllTemplates(request: GetTemplatesRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitemplate/templates/getall\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAllTemplates(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllTemplates(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllTemplates(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAllTemplatesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista articoli template\r\n */\r\n listArticoliTemplate(request: ListTemplatesRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitemplate/templates/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processListArticoliTemplate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processListArticoliTemplate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processListArticoliTemplate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ListTemplatesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Template aggiornato\r\n */\r\n updateTemplate(request: UpdateArticoliTemplateRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitemplate/templates/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateTemplate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateTemplate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateTemplate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ArticoliTemplateGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiArticoliTraducibiliClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Tipo Servizi richieste\r\n */\r\n getAllServicesType(request: TypeSericesGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/get/servicetype\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAllServicesType(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAllServicesType(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAllServicesType(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TypeSericesGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Tipo Servizi non recuperabili\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testo duplicato\r\n */\r\n cloneText(request: CloneTextsRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/clone\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCloneText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCloneText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCloneText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CloneArticoloTraducibileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testo salvato\r\n */\r\n createText(request: UpdateTextsRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TextsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n deleteText(request: TextDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testo richiesta\r\n */\r\n get(request: TextsGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TextsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Testo non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Frasi Default richieste\r\n */\r\n getFrasiDefaultSezione(request: TextsGetFrasiDefaultRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/getfrasidefaultsezione\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetFrasiDefaultSezione(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFrasiDefaultSezione(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFrasiDefaultSezione(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TextsGetFrasiDefaultResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Frasi Default non trovate\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Itinerario richiesto\r\n */\r\n getTappeItinerarioServizio(request: TextsGetItinerarioRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/getitinerary\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTappeItinerarioServizio(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTappeItinerarioServizio(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTappeItinerarioServizio(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TextsGetItinerarioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Itinerario non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Frase richiesta\r\n */\r\n getPhrase(request: TextGetArticlePhraseRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/getphrase\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPhrase(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPhrase(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPhrase(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TextGetArticlePhraseResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Frase non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco testi\r\n */\r\n list(request: ListTextsRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ListTextsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testo aggiornato\r\n */\r\n updateText(request: UpdateTextsRequest): Observable {\r\n let url_ = this.baseUrl + \"/articolitraducibili/texts/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TextsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAuthClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * Esegue il check di autenticazione. Ossia non fa nulla se non controllare i cookie di autenticazione\r\n * @param request Richiesta formalmente vuota\r\n * @return Dati dell'utente che ha eseguito il login\r\n */\r\n check(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/auth/check\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCheck(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheck(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheck(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Commodity in caso di cross login per visualizzare all'utente le istruzioni.\r\n La UI non deve mostrare errori se il codice tornato è NOCROSLOGIN\r\n * @param request Richiesta col codice univoco monouso\r\n * @return Dati degli utenti coinvolti nel cross login\r\n */\r\n checkCrossLogin(request: CheckCrossLoginRequest): Observable {\r\n let url_ = this.baseUrl + \"/auth/crosscheck\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCheckCrossLogin(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheckCrossLogin(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheckCrossLogin(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CheckCrossLoginResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Esegue il login rilasciando i cookie di autenticazione\r\n * @param request Dati del form di login\r\n * @return Dati dell'utente che ha eseguito il login\r\n */\r\n login(request: LoginRequest): Observable {\r\n let url_ = this.baseUrl + \"/auth/login\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processLogin(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLogin(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLogin(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n loginViaEmail(request: LoginViaEmailRequest): Observable {\r\n let url_ = this.baseUrl + \"/auth/emaillogin\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processLoginViaEmail(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLoginViaEmail(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLoginViaEmail(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Esegue il logout. Formalmente non fa nulla tranne azzerare i cookie\r\n * @param uniqueID (optional) ID univoco facoltativo della richiesta\r\n */\r\n logout(uniqueID: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/auth/logout?\";\r\n if (uniqueID !== undefined && uniqueID !== null)\r\n url_ += \"UniqueID=\" + encodeURIComponent(\"\" + uniqueID) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processLogout(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLogout(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLogout(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Salva le opzioni utente di frontend\r\n * @return Utente aggiornato\r\n */\r\n saveUserOptions(request: SaveUserOptionsRequest): Observable {\r\n let url_ = this.baseUrl + \"/auth/user/saveoptions\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSaveUserOptions(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSaveUserOptions(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSaveUserOptions(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SaveUserOptionsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n sendLoginViaEmail(request: SendLoginViaEmailRequest): Observable {\r\n let url_ = this.baseUrl + \"/auth/sentloginviaemail\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSendLoginViaEmail(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSendLoginViaEmail(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSendLoginViaEmail(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SendLoginViaEmailResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiAutocompleteClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Valore corrispondente alla chiave richiesta\r\n */\r\n getAutocompleteValue(request: AutocompleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/autocomplete/value\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAutocompleteValue(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAutocompleteValue(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAutocompleteValue(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AutocompleteValueResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Valori per il completamento del termine richiesto\r\n */\r\n searchAutocompleteValues(request: AutocompleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/autocomplete/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearchAutocompleteValues(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchAutocompleteValues(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchAutocompleteValues(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AutocompleteSearchResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiB2cClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Dati di un articolo\r\n */\r\n getArticle(request: GetB2cArticleRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/article\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetArticle(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetArticle(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetArticle(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetB2cArticleResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Articolo non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei contatti\r\n */\r\n getAgencies(request: AgenciesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/contacts\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAgencies(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAgencies(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAgencies(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfAgenciesListRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati di una destinazione\r\n */\r\n getDestination(request: GetDestinationRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/destination\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDestination(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDestination(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDestination(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDestinationResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Destinazione non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle destinazioni\r\n */\r\n getDestinations(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/destinations\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDestinations(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDestinations(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDestinations(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDestinationsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle destinazioni aperte\r\n */\r\n getOpenDestinations(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/opendestinations\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetOpenDestinations(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetOpenDestinations(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetOpenDestinations(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetOpenDestinationsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle idee\r\n */\r\n getIdeas(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/ideas\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetIdeas(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetIdeas(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetIdeas(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetIdeasResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati di una idea\r\n */\r\n getIdea(request: GetIdeaRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/idea\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetIdea(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetIdea(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetIdea(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetIdeaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Idea non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Url assoluto di una immagine\r\n */\r\n getImageUrl(request: GetB2cImageUrlRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/imageUrl\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetImageUrl(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetImageUrl(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetImageUrl(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetB2cImageUrlResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Immagine non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Menu del B2c\r\n */\r\n getMenu(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/menu\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetMenu(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetMenu(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetMenu(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetMenuDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Menu della InfoStrip\r\n */\r\n getInfostrip(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/infostrip\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetInfostrip(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetInfostrip(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetInfostrip(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetMenuDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei dati delle pagine\r\n */\r\n getPageData(request: GetPageDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/pagedata\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPageData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPageData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPageData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPageDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei dati del footer di pagina\r\n */\r\n getFooterData(request: GetPageFooterRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/footer\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetFooterData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFooterData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFooterData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPageFooterResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getPages(request: GetPagesRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/pages\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPages(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPages(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPages(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPagesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati di un viaggio\r\n */\r\n getTrip(request: GetTripRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/trip\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTrip(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTrip(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTrip(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTripResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Viaggio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei contatti\r\n */\r\n setInfos(request: SetInfosRequest): Observable {\r\n let url_ = this.baseUrl + \"/b2c/infos\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetInfos(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetInfos(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetInfos(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfAgenciesListRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiBaseDataClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Elenco trattamenti\r\n */\r\n getTrattamenti(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/trattamenti\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTrattamenti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTrattamenti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTrattamenti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTrattamentiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco fornitori\r\n */\r\n getFornitori(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/fornitori\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetFornitori(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFornitori(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFornitori(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetFornitoriResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco modalità pagamento\r\n */\r\n getPagamentiDocumentoContabile(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/modalitapagamento\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPagamentiDocumentoContabile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPagamentiDocumentoContabile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPagamentiDocumentoContabile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPagamentiDocumentoContabileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco fornitori\r\n */\r\n getBanche(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/banche\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetBanche(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetBanche(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetBanche(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetBancheResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Template email di sistema\r\n */\r\n getSystemEmails(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/email\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSystemEmails(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSystemEmails(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSystemEmails(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSystemEmailsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco compagnie aeree\r\n */\r\n getCompagnieAeree(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/compagnie\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCompagnieAeree(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCompagnieAeree(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCompagnieAeree(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCompagnieAereeResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco aeroporti\r\n */\r\n getAeroporti(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/aeroporti\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAeroporti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAeroporti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAeroporti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAeroportiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco stati volo\r\n */\r\n getStatiVolo(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/stativolo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetStatiVolo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetStatiVolo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetStatiVolo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetStatiVoloResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Immagini a caso\r\n */\r\n getImmaginiPubblicitarie(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/immaginipubblicitarie\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetImmaginiPubblicitarie(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetImmaginiPubblicitarie(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetImmaginiPubblicitarie(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetImmaginiPubblicitarieResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Luoghi top\r\n */\r\n getLuoghiTop(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/luoghitop\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetLuoghiTop(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetLuoghiTop(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetLuoghiTop(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetLuoghiTopResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Ottiene l'elenco delle intestazioni articolo\r\n * @param request Richiesta con la lingua dell'utente\r\n * @return Elenco intestazioni articoli\r\n */\r\n getArticleHeads(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/intestazioniarticoli\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetArticleHeads(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetArticleHeads(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetArticleHeads(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetArticleHeadsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle categorie dei contatti\r\n */\r\n getContactCategories(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/contact_categories\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetContactCategories(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetContactCategories(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetContactCategories(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetContactCategoriesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei tipi dati dei contatti\r\n */\r\n getContactsDataTypes(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/tipi_dato_contatto\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetContactsDataTypes(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetContactsDataTypes(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetContactsDataTypes(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetContattoTipiDatoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei dati aggiuntivi servizio\r\n */\r\n getServicesAdditionalData(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/svcdata\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetServicesAdditionalData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetServicesAdditionalData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetServicesAdditionalData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDatiAggiuntiviServiziResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei tipi documento utilizzabili nelle offerte\r\n */\r\n getDocumentTypes(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/doctypes\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDocumentTypes(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDocumentTypes(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDocumentTypes(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDocumentTypesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco documenti extra\r\n */\r\n getExtraDocs(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/extradocs\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetExtraDocs(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetExtraDocs(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetExtraDocs(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetExtraDocumentsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle miniguide\r\n */\r\n getMiniguide(request: MiniguideRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/miniguide\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetMiniguide(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetMiniguide(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetMiniguide(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetMiniguideResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco degli operatori\r\n */\r\n getOperators(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/operators\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetOperators(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetOperators(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetOperators(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetOperatorsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei tag offerta\r\n */\r\n getOrdersTags(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/orders_tags\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetOrdersTags(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetOrdersTags(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetOrdersTags(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetOrdersTagsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco regole pacchetti\r\n */\r\n getPackageRules(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/regolepacchetti\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPackageRules(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPackageRules(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPackageRules(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPackageRulesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Link di una pagina\r\n */\r\n getPageLinks(request: GetPageLinksRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/pagelinks\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPageLinks(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPageLinks(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPageLinks(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPageLinksResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei permessi applicativi\r\n */\r\n getPermissions(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/permissions\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPermissions(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPermissions(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPermissions(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPermissionsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei tag delle frasi\r\n */\r\n getPhraseTags(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/tags/phrases\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPhraseTags(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPhraseTags(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPhraseTags(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPhraseTagsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle policy\r\n */\r\n getPolicies(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/policies\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPolicies(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPolicies(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPolicies(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPoliciesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco pricing\r\n */\r\n getPricings(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/pricings\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPricings(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPricings(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPricings(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPricingResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco degli ruoli assegnabili agli utenti\r\n */\r\n getRoles(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/roles\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetRoles(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRoles(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRoles(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRolesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei tipi offerta per servizi\r\n */\r\n getServicesOffersTypes(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/services/offerstypes\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetServicesOffersTypes(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetServicesOffersTypes(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetServicesOffersTypes(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetServicesOffersTypesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Ottiene la lista semplificata delle sistemazioni\r\n * @param request Richiesta con lingua dell'utente\r\n * @return Elenco sistemazioni\r\n */\r\n getSistemazioni(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/sistemazioni\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSistemazioni(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSistemazioni(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSistemazioni(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSistemazioniResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei team\r\n */\r\n getTeams(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/teams\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTeams(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTeams(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTeams(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTeamsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco tipologie standard servizi\r\n */\r\n getTipologieStandard(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/tipologie_standard\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTipologieStandard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTipologieStandard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTipologieStandard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTipologiaStandardResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco valute\r\n */\r\n getValute(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/data/valute\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetValute(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetValute(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetValute(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetValuteResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiBiglietteriaClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Elenco emissioni\r\n */\r\n getEmissioni(request: GetEmissioniRequest): Observable {\r\n let url_ = this.baseUrl + \"/biglietteria/emissioni/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetEmissioni(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetEmissioni(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetEmissioni(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfEmissioneRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista emissioni\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Operazione eseguita\r\n */\r\n setBigliettiEmessi(request: SetOkContabilitaRequest): Observable {\r\n let url_ = this.baseUrl + \"/biglietteria/emissioni/set/emessi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetBigliettiEmessi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetBigliettiEmessi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetBigliettiEmessi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Operazione eseguita\r\n */\r\n setOkContabilita(request: SetOkContabilitaRequest): Observable {\r\n let url_ = this.baseUrl + \"/biglietteria/emissioni/set/okcontabilita\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetOkContabilita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetOkContabilita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetOkContabilita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Operazione eseguita\r\n */\r\n setPresaInCarico(request: SetPresaInCaricoRequest): Observable {\r\n let url_ = this.baseUrl + \"/biglietteria/emissioni/set/carico\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetPresaInCarico(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetPresaInCarico(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetPresaInCarico(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiCmsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Pagine aggiornate\r\n */\r\n addLinkContent(request: AddLinkContentRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/content/add\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAddLinkContent(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddLinkContent(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddLinkContent(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LinkEditResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Link creato\r\n */\r\n createLink(request: LinkEditRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateLink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateLink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateLink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LinkEditResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Content created\r\n */\r\n createLinkContent(request: EditLinkContentRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/content/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateLinkContent(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateLinkContent(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateLinkContent(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LinkEditResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n deleteLink(request: LinkEditRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteLink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteLink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteLink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Pagine aggiornate\r\n */\r\n deleteLinkContent(request: DeleteLinkContentRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/content/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteLinkContent(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteLinkContent(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteLinkContent(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LinkEditResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Pagine gestibili da CMS\r\n */\r\n getCmsPages(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/pages\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCmsPages(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCmsPages(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCmsPages(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCmsPagesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getPageContentById(request: PageContentRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/content\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPageContentById(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPageContentById(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPageContentById(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PageContentResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getPageContentList(request: PageContentListRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/content-list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPageContentList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPageContentList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPageContentList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PageContentListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getPageLinkById(request: PageLinkRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/page\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPageLinkById(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPageLinkById(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPageLinkById(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PageLinkResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getPageLinksList(request: PageLinkListRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/pages-list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPageLinksList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPageLinksList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPageLinksList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PageLinkListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Banners del sito\r\n */\r\n getSiteBanners(request: GetSiteBannersRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/site/banners\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSiteBanners(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSiteBanners(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSiteBanners(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSiteBannersResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return BannerSX del sito\r\n */\r\n getSiteBannerSX(request: GetSiteBannerSXRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/site/BannerSX\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSiteBannerSX(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSiteBannerSX(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSiteBannerSX(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSiteBannerSXResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return News del sito\r\n */\r\n getSiteNews(request: GetSiteNewsRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/site/news\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSiteNews(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSiteNews(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSiteNews(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSiteNewsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma ripristino\r\n */\r\n restoreContent(request: ContentEditRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/content/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestoreContent(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestoreContent(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestoreContent(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma ripristino\r\n */\r\n restoreLink(request: LinkEditRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestoreLink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestoreLink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestoreLink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Struttura cms aggiornata\r\n */\r\n setLinkContentsOrder(request: SetLinkContentsOrderRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/contents/sort\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetLinkContentsOrder(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetLinkContentsOrder(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetLinkContentsOrder(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCmsPagesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma nuovo ordinamento\r\n */\r\n setLinksOrder(request: SetLinksOrderRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/links/sort\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetLinksOrder(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetLinksOrder(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetLinksOrder(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Link modificato\r\n */\r\n updateLink(request: LinkEditRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateLink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateLink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateLink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LinkEditResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Link modificato\r\n */\r\n updateLinkContent(request: EditLinkContentRequest): Observable {\r\n let url_ = this.baseUrl + \"/cms/link/content/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateLinkContent(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateLinkContent(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateLinkContent(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCmsPagesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiContactsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Gruppi agenzia ottenuti\r\n */\r\n contactsGetAgencyGroups(request: ContactsGetAgencyGroupsRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/agenzia/getagencygroups\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processContactsGetAgencyGroups(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processContactsGetAgencyGroups(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processContactsGetAgencyGroups(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ContactsGetAgencyGroupsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Create contatto\r\n */\r\n create(request: UpsertContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati dell'utente creato\r\n */\r\n createUtenteAgenzia(request: CreateUtenteAgenziaRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/agenzia/utenti/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateUtenteAgenzia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateUtenteAgenzia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateUtenteAgenzia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateUtenteAgenziaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elimina contatto\r\n */\r\n delete(request: DeleteContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Delete accordo contatto\r\n */\r\n deleteAccordoContatto(request: DeleteAccordoContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/deleteaccordocontatto\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteAccordoContatto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteAccordoContatto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteAccordoContatto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Delete mappa contatto\r\n */\r\n deleteMappa(request: DeleteMappaContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/deletemappacontatto\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteMappa(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteMappa(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteMappa(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dettaglio contatto\r\n */\r\n get(request: GetContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Accordi aggiuntivi contatto\r\n */\r\n getAccordiAggiuntivi(request: GetAccordiAggiuntiviRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/accordiaggiuntivi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAccordiAggiuntivi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAccordiAggiuntivi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAccordiAggiuntivi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAccordiAggiuntiviResoponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Accordi diretti contatto\r\n */\r\n getAccordiDiretti(request: GetAccordiDirettiRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/accordidiretti\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAccordiDiretti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAccordiDiretti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAccordiDiretti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAccordiDirettiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Categorie contatto\r\n */\r\n getCategorieContatto(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/categoriecontatto\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCategorieContatto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCategorieContatto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCategorieContatto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCategorieContattoResoponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati aggiuntivi contatto\r\n */\r\n getDatiAggiuntivi(request: GetDatiAggiuntiviContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/datiaggiuntivi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDatiAggiuntivi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDatiAggiuntivi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDatiAggiuntivi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDatiAggiuntiviContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Mansioni contatto\r\n */\r\n getMansioni(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/mansioni\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetMansioni(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetMansioni(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetMansioni(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetMansioniResoponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati di profilo del contatto agenzia dell'utente corrente\r\n */\r\n getProfile(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/agenzia/profilo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetProfile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetProfile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetProfile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetProfileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Recapiti contatto\r\n */\r\n getRecapitiContatto(request: GetRecapitiContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/recapiti\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetRecapitiContatto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRecapitiContatto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRecapitiContatto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRecapitiContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Relazioni contatto\r\n */\r\n getRelazioniContatto(request: GetRelazioniContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/relazioni\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetRelazioniContatto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRelazioniContatto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRelazioniContatto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRelazioniContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Relazioni contatto parent\r\n */\r\n getRelazioniParents(request: GetRelazioniContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/relazioni/parents\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetRelazioniParents(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRelazioniParents(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRelazioniParents(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRelazioniContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco utenti del contatto (agenzia)\r\n */\r\n getUtentiList(request: GetUtentiListRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/utenti/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetUtentiList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetUtentiList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetUtentiList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetUtentiListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco utenti secondari del contatto (agenzia)\r\n */\r\n getUtentiSecondariList(request: GetUtentiSecondariListRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/utentisecondari/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetUtentiSecondariList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetUtentiSecondariList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetUtentiSecondariList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetUtentiListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco contatti\r\n */\r\n list(request: ContactsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ContactsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Restore contact\r\n */\r\n restore(request: RestoreContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Save accordocontatto\r\n */\r\n saveAccordoContatto(request: SaveAccordoContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/saveaccordocontatto\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSaveAccordoContatto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSaveAccordoContatto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSaveAccordoContatto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SaveAccordoContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set Dati aggiuntivi contatto\r\n */\r\n setDatiAggiuntivi(request: SetDatiAggiuntiviContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/setdatiaggiuntivi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetDatiAggiuntivi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetDatiAggiuntivi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetDatiAggiuntivi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDatiAggiuntiviContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set Mappa contatto\r\n */\r\n setMappa(request: SetMappaContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/setmappa\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetMappa(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetMappa(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetMappa(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetMappaContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set Recapiti contatto\r\n */\r\n setRecapitiContatto(request: SetRecapitiContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/setrecapiti\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetRecapitiContatto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetRecapitiContatto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetRecapitiContatto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRecapitiContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set Relazioni contatto\r\n */\r\n setRelazioniContatto(request: SetRelazioniContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/setrelazioni\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetRelazioniContatto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetRelazioniContatto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetRelazioniContatto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRelazioniContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Update contatto\r\n */\r\n update(request: UpsertContattoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetContattoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati di profilo del contatto agenzia aggiornati\r\n */\r\n updateAgencyData(request: UpdateAgencyDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/agenzia/profilo/updatedata\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateAgencyData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateAgencyData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateAgencyData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetProfileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati di profilo del contatto agenzia aggiornati\r\n */\r\n updateAgencyInvoiceData(request: UpdateAgencyInvoiceDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/agenzia/profilo/updateinvoicedata\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateAgencyInvoiceData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateAgencyInvoiceData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateAgencyInvoiceData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetProfileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati di profilo del contatto agenzia aggiornati\r\n */\r\n updateLogo(request: UpdateLogoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/agenzia/profilo/updatelogo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateLogo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateLogo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateLogo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetProfileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati dell'utente modificato\r\n */\r\n updateUtenteAgenzia(request: UpdateUtenteAgenziaRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/agenzia/utenti/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateUtenteAgenzia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateUtenteAgenzia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateUtenteAgenzia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateUtenteAgenziaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati dell'utente creato\r\n */\r\n upsertUtenteSecondario(request: UpsertUtenteSecondarioRequest): Observable {\r\n let url_ = this.baseUrl + \"/contatti/utentisecondari/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertUtenteSecondario(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertUtenteSecondario(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertUtenteSecondario(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertUtenteSecondarioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiDescriptionsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Frase salvata\r\n */\r\n createPhrase(request: UpdatePhraseRequest): Observable {\r\n let url_ = this.baseUrl + \"/descriptions/phrases/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreatePhrase(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreatePhrase(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreatePhrase(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PhraseGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n deletePhrase(request: PhraseDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/descriptions/phrases/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeletePhrase(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeletePhrase(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeletePhrase(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Frase richiesta\r\n */\r\n get(request: PhraseGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/descriptions/phrases/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PhraseGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Frase non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco frasi\r\n */\r\n list(request: ListPhrasesRequest): Observable {\r\n let url_ = this.baseUrl + \"/descriptions/phrases/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ListPhrasesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Testo tradotto\r\n */\r\n translatePhrase(request: TranslatePhrasesRequest): Observable {\r\n let url_ = this.baseUrl + \"/descriptions/phrases/translate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslatePhrase(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslatePhrase(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslatePhrase(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslatePhrasesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma ripristino\r\n */\r\n restorePhrase(request: PhraseRestoreRequest): Observable {\r\n let url_ = this.baseUrl + \"/descriptions/phrases/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestorePhrase(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestorePhrase(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestorePhrase(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Frase aggiornata\r\n */\r\n updatePhrase(request: UpdatePhraseRequest): Observable {\r\n let url_ = this.baseUrl + \"/descriptions/phrases/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdatePhrase(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdatePhrase(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdatePhrase(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PhraseGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiDocumentsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Operazione eseguita\r\n */\r\n convertPdfMulti(request: ConvertPdfMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/convert/pdf/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processConvertPdfMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConvertPdfMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConvertPdfMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ConvertPdfMultiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata e documento creato\r\n */\r\n convertTraducibile(request: ConvertTraducibileRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/convert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processConvertTraducibile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConvertTraducibile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConvertTraducibile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata e documento creato\r\n */\r\n createDocumentoFrasi(request: DocumentPrintRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/create/frasi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateDocumentoFrasi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateDocumentoFrasi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateDocumentoFrasi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DocumentPrintResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n createReservationDocument(request: CreateReservationDocumentRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/create/reservation\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateReservationDocument(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateReservationDocument(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateReservationDocument(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateReservationDocumentResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Documento da editare e relativi metadati\r\n */\r\n edit(editRequest: EditDocumentRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/edit\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(editRequest);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processEdit(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processEdit(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processEdit(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EditDocumentResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata e documento creato\r\n */\r\n getDocumentoFrasi(request: GetDocumentoFrasiRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/frasidoc/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDocumentoFrasi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDocumentoFrasi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDocumentoFrasi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDocumentoFrasiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Esegue la stampa di un documento, ossia genera la preview e la salva su disco per le successive modifiche e stampe\r\n * @param request Parametri di richiesta\r\n * @return Offerta aggiornata e documento creato\r\n */\r\n print(request: DocumentPrintRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/print\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPrint(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPrint(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPrint(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DocumentPrintResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Operazione eseguita\r\n */\r\n update(request: UpdateDocumentRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateDocumentPhrases(request: UpdateDocumentPhrasesRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/frasidoc/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateDocumentPhrases(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDocumentPhrases(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDocumentPhrases(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateDocumentPhrasesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateExtraDocs(request: UpdateExtraDocsRequest): Observable {\r\n let url_ = this.baseUrl + \"/docs/update/extradocs\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateExtraDocs(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateExtraDocs(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateExtraDocs(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n view(documentoID: number): Observable {\r\n let url_ = this.baseUrl + \"/docs/view/{documentoID}\";\r\n if (documentoID === undefined || documentoID === null)\r\n throw new Error(\"The parameter 'documentoID' must be defined.\");\r\n url_ = url_.replace(\"{documentoID}\", encodeURIComponent(\"\" + documentoID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processView(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processView(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processView(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n viewAutoWidth(documentoID: number): Observable {\r\n let url_ = this.baseUrl + \"/docs/ViewAutoWidth/{documentoID}\";\r\n if (documentoID === undefined || documentoID === null)\r\n throw new Error(\"The parameter 'documentoID' must be defined.\");\r\n url_ = url_.replace(\"{documentoID}\", encodeURIComponent(\"\" + documentoID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processViewAutoWidth(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processViewAutoWidth(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processViewAutoWidth(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n viewMulti(documentiIDs: string): Observable {\r\n let url_ = this.baseUrl + \"/docs/view/multi/{documentiIDs}\";\r\n if (documentiIDs === undefined || documentiIDs === null)\r\n throw new Error(\"The parameter 'documentiIDs' must be defined.\");\r\n url_ = url_.replace(\"{documentiIDs}\", encodeURIComponent(\"\" + documentiIDs));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processViewMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processViewMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processViewMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiPublicDocumentsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n viewPublic(encryptedDocumentID: string): Observable {\r\n let url_ = this.baseUrl + \"/docs/public/view/{encryptedDocumentID}\";\r\n if (encryptedDocumentID === undefined || encryptedDocumentID === null)\r\n throw new Error(\"The parameter 'encryptedDocumentID' must be defined.\");\r\n url_ = url_.replace(\"{encryptedDocumentID}\", encodeURIComponent(\"\" + encryptedDocumentID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processViewPublic(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processViewPublic(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processViewPublic(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n viewPublicNoEncr(documentID: string): Observable {\r\n let url_ = this.baseUrl + \"/docs/public/viewnoencr/{documentID}\";\r\n if (documentID === undefined || documentID === null)\r\n throw new Error(\"The parameter 'documentID' must be defined.\");\r\n url_ = url_.replace(\"{documentID}\", encodeURIComponent(\"\" + documentID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processViewPublicNoEncr(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processViewPublicNoEncr(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processViewPublicNoEncr(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiEmailsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Allegato richiesto\r\n */\r\n getAttachmentPOST(emailID: number, attachmentID: number): Observable {\r\n let url_ = this.baseUrl + \"/emails/attachment/{EmailID}/{AttachmentID}\";\r\n if (emailID === undefined || emailID === null)\r\n throw new Error(\"The parameter 'emailID' must be defined.\");\r\n url_ = url_.replace(\"{EmailID}\", encodeURIComponent(\"\" + emailID));\r\n if (attachmentID === undefined || attachmentID === null)\r\n throw new Error(\"The parameter 'attachmentID' must be defined.\");\r\n url_ = url_.replace(\"{AttachmentID}\", encodeURIComponent(\"\" + attachmentID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAttachmentPOST(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAttachmentPOST(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAttachmentPOST(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ExportFileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Allegato richiesto\r\n */\r\n getAttachmentGET(emailID: number, attachmentID: number): Observable {\r\n let url_ = this.baseUrl + \"/emails/attachment/{EmailID}/{AttachmentID}\";\r\n if (emailID === undefined || emailID === null)\r\n throw new Error(\"The parameter 'emailID' must be defined.\");\r\n url_ = url_.replace(\"{EmailID}\", encodeURIComponent(\"\" + emailID));\r\n if (attachmentID === undefined || attachmentID === null)\r\n throw new Error(\"The parameter 'attachmentID' must be defined.\");\r\n url_ = url_.replace(\"{AttachmentID}\", encodeURIComponent(\"\" + attachmentID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAttachmentGET(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAttachmentGET(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAttachmentGET(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ExportFileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Email richiesta\r\n */\r\n getEmail(request: GetEmailRequest): Observable {\r\n let url_ = this.baseUrl + \"/emails/email\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetEmail(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetEmail(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetEmail(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetEmailResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiErrorsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Crea errore\r\n */\r\n create(request: CreateErrorRequest): Observable {\r\n let url_ = this.baseUrl + \"/errors/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n delete(request: DeleteErrorRequest): Observable {\r\n let url_ = this.baseUrl + \"/errors/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n deleteMulti(request: DeleteErrorMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/errors/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista errori\r\n */\r\n list(request: ErrorsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/errors/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfErrorRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiEstrattiContoClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Report estratto conto\r\n */\r\n getEstrattoContoReport(request: GetEstrattoContoReportRequest): Observable {\r\n let url_ = this.baseUrl + \"/contabilita/estratticonto/report\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetEstrattoContoReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetEstrattoContoReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetEstrattoContoReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetEstrattoContoReportResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel del report estratto conto\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista estratti conto\r\n */\r\n search(request: EstrattiContoSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/contabilita/estratticonto/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfEstrattoContoRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel degli estratti conto\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Estratti conto richiesto\r\n */\r\n read(request: EstrattoContoReadRequest): Observable {\r\n let url_ = this.baseUrl + \"/contabilita/estratticonto/read\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRead(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRead(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRead(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EstrattoContoReadResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Estratto conto creato\r\n */\r\n estrattoContoCreate(request: EstrattoContoCreateRequest): Observable {\r\n let url_ = this.baseUrl + \"/contabilita/estratticonto/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processEstrattoContoCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processEstrattoContoCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processEstrattoContoCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EstrattoContoCreateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n delete(request: EstrattoContoDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/contabilita/estratticonto/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Preview righe dell'estratto conto\r\n */\r\n previewEstrattoConto(request: PreviewEstrattoContoRequest): Observable {\r\n let url_ = this.baseUrl + \"/contabilita/estratticonto/nuovo/preview\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPreviewEstrattoConto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPreviewEstrattoConto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPreviewEstrattoConto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PreviewEstrattoContoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return File Excel di anteprima\r\n */\r\n previewExcel(request: PreviewExcelRequest): Observable {\r\n let url_ = this.baseUrl + \"/contabilita/estratticonto/excel/preview\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPreviewExcel(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPreviewExcel(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPreviewExcel(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ExportFileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiExportClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * Ottiene un file precedentemente esportato\r\n * @param file (optional) \r\n * @return File allegato\r\n */\r\n getExportFile(file: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/export/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = new FormData();\r\n if (file !== null && file !== undefined)\r\n content_.append(\"file\", file.toString());\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetExportFile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetExportFile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetExportFile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Scarica un file temporaneo e lo elimina subito dopo\r\n * @return File allegato\r\n */\r\n getTemporaryDbFile(docID: number): Observable {\r\n let url_ = this.baseUrl + \"/export/get/temp/{docID}\";\r\n if (docID === undefined || docID === null)\r\n throw new Error(\"The parameter 'docID' must be defined.\");\r\n url_ = url_.replace(\"{docID}\", encodeURIComponent(\"\" + docID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTemporaryDbFile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTemporaryDbFile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTemporaryDbFile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiFlightClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n getFlightItinerary(tripId: number): Observable {\r\n let url_ = this.baseUrl + \"/flight/get-flight-itinerary/{tripId}\";\r\n if (tripId === undefined || tripId === null)\r\n throw new Error(\"The parameter 'tripId' must be defined.\");\r\n url_ = url_.replace(\"{tripId}\", encodeURIComponent(\"\" + tripId));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetFlightItinerary(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFlightItinerary(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFlightItinerary(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = JupiterFlightAvailabilityRQ.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n flightAvailability(availabilityRq: JupiterFlightAvailabilityRQ): Observable {\r\n let url_ = this.baseUrl + \"/flight/flight-availability\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(availabilityRq);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processFlightAvailability(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processFlightAvailability(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processFlightAvailability(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = JupiterFlightAvailabilityRS.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n amadeusCryptic(crypticRq: JupiterCrypticRQ): Observable {\r\n let url_ = this.baseUrl + \"/flight/amadeus-cryptic\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(crypticRq);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAmadeusCryptic(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAmadeusCryptic(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAmadeusCryptic(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = JupiterCrypticRS.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n amadeusRetrievePnr(retrieveRq: JupiterFlightPnrRetrieveRQ): Observable {\r\n let url_ = this.baseUrl + \"/flight/retrieve-pnr\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(retrieveRq);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAmadeusRetrievePnr(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAmadeusRetrievePnr(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAmadeusRetrievePnr(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = JupiterFlightPnrRetrieveRS.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return PNR Importato\r\n */\r\n importPnr(importPnrRequest: ImportPnrApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/flight/import-pnr\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(importPnrRequest);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processImportPnr(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processImportPnr(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processImportPnr(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return PNR Importato\r\n */\r\n importPnrFromCryptic(importPnrRequest: ImportCrypticPnrApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/flight/import-pnr-from-cryptic\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(importPnrRequest);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processImportPnrFromCryptic(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processImportPnrFromCryptic(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processImportPnrFromCryptic(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return PNR Chiusi\r\n */\r\n closePnr(closePnrRequest: ClosePnrApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/flight/close-pnr\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(closePnrRequest);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processClosePnr(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processClosePnr(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processClosePnr(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Volo aggiunto\r\n */\r\n addFlightFromSearch(addFlightFromSearchRequest: AddFlightFromSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/flight/add-flight-from-search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(addFlightFromSearchRequest);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAddFlightFromSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddFlightFromSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddFlightFromSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Viaggio Creato\r\n */\r\n createTripFromSearch(createTripFromSearchRequest: CreateTripFromSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/flight/create-trip-from-search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(createTripFromSearchRequest);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateTripFromSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateTripFromSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateTripFromSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiFornitoriH2HClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Elenco fornitori h2h\r\n */\r\n get(request: GetAllSuppliersRequest): Observable {\r\n let url_ = this.baseUrl + \"/fornitorih2h/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAllSuppliersResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Salvataggio fornitori h2h\r\n */\r\n save(request: SaveSuppliersRequest): Observable {\r\n let url_ = this.baseUrl + \"/fornitorih2h/save\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSave(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSave(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSave(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiImagesClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * Clonazione immagine\r\n * @param request ID dell'immagine da clonare\r\n * @return Clone immagine\r\n */\r\n clone(request: CloneImageRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/clone\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processClone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processClone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processClone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CloneImageResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Cancellazione immagine\r\n * @param request ID dell'immagine da eliminare\r\n * @return Delete immagine\r\n */\r\n delete(request: DeleteImageRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DeleteImageResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Cancellazione immagini multiple\r\n * @param request IDs delle immagini da eliminare\r\n * @return Delete multi immagini\r\n */\r\n deleteMulti(request: DeleteMultiImageRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DeleteMultiImageResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Lista delle immagini paginata\r\n * @param request Parametri di filtro\r\n * @return Dettaglio immagine\r\n */\r\n get(request: ImageGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ImageGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Calcola o serve l'immagine del pinpoint per la mappa del tipo richiesto con il prezzo minimo.\r\n * @param lang Codice ISO a due lettere della lingua, serve a formattare correttamente il prezzo\r\n * @param price Prezzo senza decimali\r\n * @param type Tipo di marker\r\n * @return Immagine di tipo PNG con sfondo trasparente da usare come marker\r\n */\r\n getPriceMarkerPinPoint(lang: string, price: number, type: EPriceMarkerType): Observable {\r\n let url_ = this.baseUrl + \"/images/pricepinpoint/{lang}/{price}/{type}\";\r\n if (lang === undefined || lang === null)\r\n throw new Error(\"The parameter 'lang' must be defined.\");\r\n url_ = url_.replace(\"{lang}\", encodeURIComponent(\"\" + lang));\r\n if (price === undefined || price === null)\r\n throw new Error(\"The parameter 'price' must be defined.\");\r\n url_ = url_.replace(\"{price}\", encodeURIComponent(\"\" + price));\r\n if (type === undefined || type === null)\r\n throw new Error(\"The parameter 'type' must be defined.\");\r\n url_ = url_.replace(\"{type}\", encodeURIComponent(\"\" + type));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPriceMarkerPinPoint(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPriceMarkerPinPoint(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPriceMarkerPinPoint(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getQRCode(imageType: string, iD: number, lang: string | null, amount: string | null): Observable {\r\n let url_ = this.baseUrl + \"/images/qrcode/{imageType}/{ID}/{lang}/{amount}\";\r\n if (imageType === undefined || imageType === null)\r\n throw new Error(\"The parameter 'imageType' must be defined.\");\r\n url_ = url_.replace(\"{imageType}\", encodeURIComponent(\"\" + imageType));\r\n if (iD === undefined || iD === null)\r\n throw new Error(\"The parameter 'iD' must be defined.\");\r\n url_ = url_.replace(\"{ID}\", encodeURIComponent(\"\" + iD));\r\n if (lang === undefined || lang === null)\r\n throw new Error(\"The parameter 'lang' must be defined.\");\r\n url_ = url_.replace(\"{lang}\", encodeURIComponent(\"\" + lang));\r\n if (amount === undefined || amount === null)\r\n throw new Error(\"The parameter 'amount' must be defined.\");\r\n url_ = url_.replace(\"{amount}\", encodeURIComponent(\"\" + amount));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetQRCode(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetQRCode(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetQRCode(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getTripStaticSteps(offertaID: number, size: string): Observable {\r\n let url_ = this.baseUrl + \"/images/tripstaticmarkersmap/{offertaID}/{size}\";\r\n if (offertaID === undefined || offertaID === null)\r\n throw new Error(\"The parameter 'offertaID' must be defined.\");\r\n url_ = url_.replace(\"{offertaID}\", encodeURIComponent(\"\" + offertaID));\r\n if (size === undefined || size === null)\r\n throw new Error(\"The parameter 'size' must be defined.\");\r\n url_ = url_.replace(\"{size}\", encodeURIComponent(\"\" + size));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTripStaticSteps(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTripStaticSteps(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTripStaticSteps(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Calcola o serve l'immagine del pinpoint per la mappa con il numero ed il nome.\r\n * @param index Il numero della tappa da disegnare\r\n * @param name Il nome della tappa\r\n * @return Immagine di tipo PNG con sfondo trasparente da usare come marker\r\n */\r\n getTripStepMarkerPinPoint(index: number, name: string): Observable {\r\n let url_ = this.baseUrl + \"/images/tripsteppoint/{index}/{name}\";\r\n if (index === undefined || index === null)\r\n throw new Error(\"The parameter 'index' must be defined.\");\r\n url_ = url_.replace(\"{index}\", encodeURIComponent(\"\" + index));\r\n if (name === undefined || name === null)\r\n throw new Error(\"The parameter 'name' must be defined.\");\r\n url_ = url_.replace(\"{name}\", encodeURIComponent(\"\" + name));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTripStepMarkerPinPoint(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTripStepMarkerPinPoint(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTripStepMarkerPinPoint(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Store delle immagini riscalate. Chiave: ID_LARGHEZZA_ALTEZZA. Retain di default 30gg\r\n */\r\n getSizedImage(id: number, width: number, height: number): Observable {\r\n let url_ = this.baseUrl + \"/images/sized/{id}/{width}/{height}\";\r\n if (id === undefined || id === null)\r\n throw new Error(\"The parameter 'id' must be defined.\");\r\n url_ = url_.replace(\"{id}\", encodeURIComponent(\"\" + id));\r\n if (width === undefined || width === null)\r\n throw new Error(\"The parameter 'width' must be defined.\");\r\n url_ = url_.replace(\"{width}\", encodeURIComponent(\"\" + width));\r\n if (height === undefined || height === null)\r\n throw new Error(\"The parameter 'height' must be defined.\");\r\n url_ = url_.replace(\"{height}\", encodeURIComponent(\"\" + height));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSizedImage(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSizedImage(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSizedImage(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Lista delle immagini paginata\r\n * @param request Parametri di filtro\r\n * @return Elenco immagini richieste\r\n */\r\n list(request: ImagesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ImagesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle immagini isolate per luogoId\r\n */\r\n getImageListByLuogo(request: ImagesListByLuogoRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/imageListByLuogoId\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetImageListByLuogo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetImageListByLuogo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetImageListByLuogo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetImagesListByLuogoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle immagini per listaImmagineID\r\n */\r\n getImageListByImageIds(request: ImageListByImageIdsRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/imageListByImageIds\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetImageListByImageIds(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetImageListByImageIds(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetImageListByImageIds(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetImageListByImageIdsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco delle immagini importate con successo\r\n */\r\n pixabayImportImages(request: PixabayImportImagesRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/pixabay/import\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPixabayImportImages(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPixabayImportImages(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPixabayImportImages(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PixabayImportImagesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco immagini richieste\r\n */\r\n pixabaySearch(request: PixabaySearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/pixabay/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPixabaySearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPixabaySearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPixabaySearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PixabaySearchResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Cancellazione immagine\r\n * @param request ID dell'immagine da eliminare\r\n * @return Restore picture\r\n */\r\n restore(request: RestoreImageRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = RestoreImageResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Lista delle immagini paginata\r\n * @param request Parametri di filtro\r\n * @return Update immagine\r\n */\r\n update(request: UpdateImageRequest): Observable {\r\n let url_ = this.baseUrl + \"/images/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateImageResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Upload dell' immagine su Azure BLOB\r\n * @param luogoId (optional) \r\n * @param servizioId (optional) \r\n * @param programma (optional) \r\n * @param sitoWeb (optional) \r\n * @param preventivo (optional) \r\n * @param miniGuida (optional) \r\n * @param file (optional) \r\n * @param lingua (optional) \r\n * @param uniqueID (optional) \r\n * @return Upload nuove immagini\r\n */\r\n upload(luogoId: number | null | undefined, servizioId: number | null | undefined, programma: boolean | undefined, sitoWeb: boolean | undefined, preventivo: boolean | undefined, miniGuida: boolean | undefined, file: FileParameter | null | undefined, lingua: string | null | undefined, uniqueID: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/images/upload\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = new FormData();\r\n if (luogoId !== null && luogoId !== undefined)\r\n content_.append(\"LuogoId\", luogoId.toString());\r\n if (servizioId !== null && servizioId !== undefined)\r\n content_.append(\"ServizioId\", servizioId.toString());\r\n if (programma === null || programma === undefined)\r\n throw new Error(\"The parameter 'programma' cannot be null.\");\r\n else\r\n content_.append(\"Programma\", programma.toString());\r\n if (sitoWeb === null || sitoWeb === undefined)\r\n throw new Error(\"The parameter 'sitoWeb' cannot be null.\");\r\n else\r\n content_.append(\"SitoWeb\", sitoWeb.toString());\r\n if (preventivo === null || preventivo === undefined)\r\n throw new Error(\"The parameter 'preventivo' cannot be null.\");\r\n else\r\n content_.append(\"Preventivo\", preventivo.toString());\r\n if (miniGuida === null || miniGuida === undefined)\r\n throw new Error(\"The parameter 'miniGuida' cannot be null.\");\r\n else\r\n content_.append(\"MiniGuida\", miniGuida.toString());\r\n if (file !== null && file !== undefined)\r\n content_.append(\"File\", file.data, file.fileName ? file.fileName : \"File\");\r\n if (lingua !== null && lingua !== undefined)\r\n content_.append(\"Lingua\", lingua.toString());\r\n if (uniqueID !== null && uniqueID !== undefined)\r\n content_.append(\"UniqueID\", uniqueID.toString());\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpload(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpload(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpload(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UploadImageResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiInsurancesClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n insuranceGet(request: InsuranceGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/insurances/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInsuranceGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInsuranceGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInsuranceGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = InsuranceGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n insuranceList(request: InsuranceListRequest): Observable {\r\n let url_ = this.baseUrl + \"/insurances/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInsuranceList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInsuranceList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInsuranceList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = InsuranceListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n insuranceSendsList(request: InsuranceSendsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/insurances/sends/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInsuranceSendsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInsuranceSendsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInsuranceSendsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = InsuranceSendsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiIntranetClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n expireCache(parameter: string, request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/intranet/cache/expire/{parameter}\";\r\n if (parameter === undefined || parameter === null)\r\n throw new Error(\"The parameter 'parameter' must be defined.\");\r\n url_ = url_.replace(\"{parameter}\", encodeURIComponent(\"\" + parameter));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExpireCache(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExpireCache(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExpireCache(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiLinksClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Lista link\r\n */\r\n getLinksList(request: GetLinksListRequest): Observable {\r\n let url_ = this.baseUrl + \"/links/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetLinksList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetLinksList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetLinksList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfLinkRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista link\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiLocationsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Check servizi\r\n */\r\n checkServizi(request: CheckServiziRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/checkservizi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCheckServizi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheckServizi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheckServizi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CheckServiziResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Create luogo\r\n */\r\n create(request: CreateLocationRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LocationDetail.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elimina luogo\r\n */\r\n delete(request: DeleteLocationRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Delete mappa luogo\r\n */\r\n deleteMappa(request: DeleteMappaRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/deletemappa\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteMappa(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteMappa(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteMappa(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dettaglio luogo\r\n */\r\n get(request: GetLocationRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LocationDetail.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Distanze luogo\r\n */\r\n getDistanze(request: GetLuogoDistanzeRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/distanze\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDistanze(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDistanze(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDistanze(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LuogoRelazioneResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Relazioni luogo\r\n */\r\n relazioni(request: GetLuoghiRelazioniRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/relazioni\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRelazioni(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRelazioni(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRelazioni(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LuogoRelazioneResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Luoghi vicini\r\n */\r\n luoghiVicini(request: GetLuoghiViciniRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/vicini\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processLuoghiVicini(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLuoghiVicini(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLuoghiVicini(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LuoghiViciniResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco luoghi\r\n */\r\n list(request: ListLocationsRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LocationsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set distanze luogo\r\n */\r\n setDistanze(request: SetDistanzeRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/setdistanze\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetDistanze(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetDistanze(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetDistanze(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LuogoRelazioneResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set mappa luogo\r\n */\r\n setMappa(request: SetMappaRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/setmappa\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetMappa(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetMappa(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetMappa(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetMappaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set Relazioni luogo\r\n */\r\n setRelazioni(request: SetRelazioniRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/setrelazioni\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetRelazioni(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetRelazioni(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetRelazioni(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LuogoRelazioneResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set Vicini luogo\r\n */\r\n setVicini(request: SetViciniRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/setvicini\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetVicini(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetVicini(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetVicini(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LuoghiViciniResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dettaglio luogo\r\n */\r\n update(request: UpdateLocationRequest): Observable {\r\n let url_ = this.baseUrl + \"/locations/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LocationDetail.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiLuoghiH2HClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Confirm luogo h2h\r\n */\r\n confirm(request: ConfirmLuogoH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/luoghih2h/confirm\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processConfirm(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConfirm(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConfirm(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Deletes luogo h2h\r\n */\r\n delete(request: DeleteLuogoH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/luoghih2h/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Discard luogo h2h\r\n */\r\n discard(request: DiscardLuogoH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/luoghih2h/discard\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDiscard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDiscard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDiscard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Singolo luogo\r\n */\r\n get(request: LuogoH2HGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/luoghih2h/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LuogoH2HGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco luoghi h2h\r\n */\r\n list(request: GetLuoghiH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/luoghih2h/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetLuoghiH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Restores luogo h2h\r\n */\r\n restore(request: RestoreLuogoH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/luoghih2h/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Update luogo h2h\r\n */\r\n update(request: UpdateLuogoH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/luoghih2h/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateLuogoH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiM2MClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Informazioni sull'agenzia associata alla pratica\r\n */\r\n getAgencyData(request: GetAgencyDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/m2m/ai/getagencydata\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAgencyData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAgencyData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAgencyData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAgencyDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"ID Offerta non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status === 401) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result401: any = null;\r\n let resultData401 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result401 = ErrorResponse.fromJS(resultData401);\r\n return throwException(\"Token di autorizzazione non valido\", status, _responseText, _headers, result401);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati del documento richiesto\r\n */\r\n getContabilityDocumentData(request: GetContabilityDocumentDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/m2m/contability/data/document\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetContabilityDocumentData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetContabilityDocumentData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetContabilityDocumentData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetContabilityDocumentDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Documento non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status === 401) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result401: any = null;\r\n let resultData401 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result401 = ErrorResponse.fromJS(resultData401);\r\n return throwException(\"Token di autorizzazione non valido\", status, _responseText, _headers, result401);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati del kanban richiesto\r\n */\r\n getKanbanDocumentData(request: GetKanbanDocumentDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/m2m/trip/data/kanban\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetKanbanDocumentData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetKanbanDocumentData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetKanbanDocumentData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetKanbanDocumentDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Kanban non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status === 401) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result401: any = null;\r\n let resultData401 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result401 = ErrorResponse.fromJS(resultData401);\r\n return throwException(\"Token di autorizzazione non valido\", status, _responseText, _headers, result401);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati dell'offerta richiesta\r\n */\r\n getTripDocumentData(request: GetTripDocumentDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/m2m/trip/data/document\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTripDocumentData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTripDocumentData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTripDocumentData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTripDocumentDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Offerta non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status === 401) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result401: any = null;\r\n let resultData401 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result401 = ErrorResponse.fromJS(resultData401);\r\n return throwException(\"Token di autorizzazione non valido\", status, _responseText, _headers, result401);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Get a reservation document data\r\n */\r\n getTripReservationDocData(request: GetTripReservationDocDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/m2m/trip/data/reservation\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTripReservationDocData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTripReservationDocData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTripReservationDocData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTripReservationDocDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status === 401) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result401: any = null;\r\n let resultData401 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result401 = ErrorResponse.fromJS(resultData401);\r\n return throwException(\"Token di autorizzazione non valido\", status, _responseText, _headers, result401);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati del voucher richiesto\r\n */\r\n getTripVoucherData(request: GetTripVoucherDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/m2m/trip/data/voucher\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTripVoucherData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTripVoucherData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTripVoucherData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTripVoucherDataResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Voucher non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status === 401) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result401: any = null;\r\n let resultData401 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result401 = ErrorResponse.fromJS(resultData401);\r\n return throwException(\"Token di autorizzazione non valido\", status, _responseText, _headers, result401);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiMapsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Dati mappa\r\n */\r\n getNearbyPlaces(request: GetNearbyPlacesRequest): Observable {\r\n let url_ = this.baseUrl + \"/maps/nearby\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetNearbyPlaces(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetNearbyPlaces(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetNearbyPlaces(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetNearbyPlacesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati mappa\r\n */\r\n getPlannerMap(request: GetPlannerMapRequest): Observable {\r\n let url_ = this.baseUrl + \"/maps/planner\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPlannerMap(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPlannerMap(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPlannerMap(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPlannerMapResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiMarginClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Margine eliminato\r\n */\r\n delete(request: MarginGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/margins/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Margine servizio richiesto\r\n */\r\n get(request: MarginGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/margins/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = MarginGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Margine servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco margini servizi\r\n */\r\n list(request: MarginsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/margins/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = MarginsList.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Margine servizio aggiornato\r\n */\r\n upsert(request: MarginUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/margins/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = MarginGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiNaarCrypticClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Risultati ricerca Jupiter\r\n */\r\n jS(request: NaarCrypticJRequest): Observable {\r\n let url_ = this.baseUrl + \"/cryptic/js\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processJS(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processJS(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processJS(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarCrypticJResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultati ricerca di cache\r\n */\r\n nQ(request: NaarCrypticNRequest): Observable {\r\n let url_ = this.baseUrl + \"/cryptic/nq\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processNQ(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processNQ(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processNQ(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarCrypticNResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati prezzo\r\n */\r\n pMI(request: NaarCrypticPMIRequest): Observable {\r\n let url_ = this.baseUrl + \"/cryptic/PMI\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPMI(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPMI(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPMI(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarCrypticPMIResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @param tripID (optional) ID del viaggio corrente, per comandi in contesto di viaggio\r\n * @param command (optional) Comando da eseguire\r\n * @param args (optional) Argomenti\r\n * @param lingua (optional) Lingua richiesta\r\n * @param uniqueID (optional) ID univoco facoltativo della richiesta\r\n */\r\n tD(tripID: number | null | undefined, command: string | undefined, args: string | null | undefined, lingua: ELingua | undefined, uniqueID: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/cryptic?\";\r\n if (tripID !== undefined && tripID !== null)\r\n url_ += \"TripID=\" + encodeURIComponent(\"\" + tripID) + \"&\";\r\n if (command === null)\r\n throw new Error(\"The parameter 'command' cannot be null.\");\r\n else if (command !== undefined)\r\n url_ += \"Command=\" + encodeURIComponent(\"\" + command) + \"&\";\r\n if (args !== undefined && args !== null)\r\n url_ += \"Args=\" + encodeURIComponent(\"\" + args) + \"&\";\r\n if (lingua === null)\r\n throw new Error(\"The parameter 'lingua' cannot be null.\");\r\n else if (lingua !== undefined)\r\n url_ += \"Lingua=\" + encodeURIComponent(\"\" + lingua) + \"&\";\r\n if (uniqueID !== undefined && uniqueID !== null)\r\n url_ += \"UniqueID=\" + encodeURIComponent(\"\" + uniqueID) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTD(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTD(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTD(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Responso del comando\r\n */\r\n execute(request: NaarCrypticExecuteRequest): Observable {\r\n let url_ = this.baseUrl + \"/cryptic/execute\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExecute(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExecute(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExecute(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NaarCrypticExecuteResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Retrieve specific agreements for the cryptic\r\n */\r\n getAgreementsList(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/cryptic/get-agreements\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAgreementsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAgreementsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAgreementsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAgreementsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getAmadeusMarkets(request: GetAmadeusMarketsRequest): Observable {\r\n let url_ = this.baseUrl + \"/cryptic/markets\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAmadeusMarkets(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAmadeusMarkets(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAmadeusMarkets(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAmadeusMarketsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Retrieve specific form of payments for the cryptic\r\n */\r\n getPaymentTermsList(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/cryptic/get-payment-terms\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPaymentTermsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPaymentTermsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPaymentTermsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPaymentTermsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiOperatoriClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Lista operatori\r\n */\r\n list(request: OperatoriListRequest): Observable {\r\n let url_ = this.baseUrl + \"/operatori/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OperatoriListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista operatori\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiOrdersClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Conferma operazione\r\n */\r\n optimize(request: OptimizeRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/optimize\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processOptimize(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processOptimize(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processOptimize(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultato operazione\r\n */\r\n optimizeDeleteMulti(request: OptimizeDeleteMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/optimize/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processOptimizeDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processOptimizeDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processOptimizeDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Preview operazione\r\n */\r\n optimizePreview(request: OptimizeRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/optimize/preview\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processOptimizePreview(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processOptimizePreview(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processOptimizePreview(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OptimizePreviewResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultato operazione\r\n */\r\n optimizeQuery(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/optimize/query\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processOptimizeQuery(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processOptimizeQuery(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processOptimizeQuery(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OptimizationsQueryResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco offerte\r\n */\r\n search(request: SearchOrdersRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SearchOrdersResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco conferme\r\n */\r\n searchConfirms(request: SearchConfirmsRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/confirms/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearchConfirms(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchConfirms(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchConfirms(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfConfirmSearchResponseRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco documenti(dettaglio)\r\n */\r\n searchDocuments(request: SearchDocumentsRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/documents/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearchDocuments(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchDocuments(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchDocuments(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfSearchDocumentsResponseRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco Email\r\n */\r\n searchEmails(request: SearchEmailsRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/emails/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearchEmails(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchEmails(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchEmails(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfSearchEmailsResponseRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco Note\r\n */\r\n searchNote(request: SearchNoteRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/note/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearchNote(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchNote(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchNote(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfSearchNoteResponseRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco ottimizzazioni\r\n */\r\n searchOptimizations(request: SearchOptimizationsRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/optimizations/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearchOptimizations(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchOptimizations(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchOptimizations(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SearchOptimizationsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco preventivi\r\n */\r\n searchPreventivi(request: SearchPreventiviRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/preventivi/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSearchPreventivi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSearchPreventivi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSearchPreventivi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SearchPreventiviResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma operazione\r\n */\r\n updateOrdersStatusMulti(request: UpdateOrdersStatusMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/orders/statusupdate/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateOrdersStatusMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateOrdersStatusMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateOrdersStatusMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiPaymentTermsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Creates payment term\r\n */\r\n paymentTermCreate(request: PaymentTermsUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/payment_terms/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentTermCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentTermCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentTermCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PaymentTermUpsertResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n delete(request: PaymentTermsDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/payment_terms/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n paymentTermsGet(request: PaymentTermsGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/payment_terms/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentTermsGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentTermsGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentTermsGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PaymentTermsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n paymentTermsList(request: PaymentTermsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/payment_terms/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentTermsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentTermsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentTermsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfTerminePagamento.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n restore(request: PaymentTermsRestoreRequest): Observable {\r\n let url_ = this.baseUrl + \"/payment_terms/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Payment term update\r\n */\r\n paymentTermUpdate(request: PaymentTermsUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/payment_terms/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPaymentTermUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPaymentTermUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPaymentTermUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PaymentTermUpsertResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiPricesClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Indice aggiornato\r\n */\r\n expireCache(request: ExpireCacheRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/expire\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExpireCache(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExpireCache(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExpireCache(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCacheIndexResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Indice della cache\r\n */\r\n getCacheIndex(request: GetCacheIndexRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/getcacheindex\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCacheIndex(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCacheIndex(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCacheIndex(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCacheIndexResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Policy della tariffa selezionata\r\n */\r\n getPolicies(request: GetPoliciesRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/policies\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPolicies(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPolicies(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPolicies(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPoliciesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Status delle code di ricerca\r\n */\r\n getQueues(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/queues\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetQueues(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetQueues(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetQueues(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetQueuesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Prezzi non cachati del fornitore\r\n */\r\n getRawPrices(request: GetRawPricesRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/getrawprices\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetRawPrices(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRawPrices(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRawPrices(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRawPricesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Prezzi\r\n */\r\n getResults(request: GetResultsRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/results\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetResults(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetResults(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetResults(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetResultsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return File di log di una ricerca\r\n */\r\n getSearchLogFile(request: GetSearchLogFileRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/getsupplierpriceslog\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSearchLogFile(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSearchLogFile(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSearchLogFile(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSearchLogFileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dettaglio prezzi dei servizi\r\n */\r\n getServiceDrilldown(request: GetServiceDrilldownRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/drilldown\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetServiceDrilldown(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetServiceDrilldown(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetServiceDrilldown(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetServiceDrilldownResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dettaglio prezzi del servizio richiesto\r\n */\r\n getSingleServicePrice(request: GetSingleServicePriceRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/singleservice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSingleServicePrice(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSingleServicePrice(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSingleServicePrice(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSingleServicePriceResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Prezzi non cachati del fornitore\r\n */\r\n getSupplierPrices(request: GetSupplierPricesRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/getsupplierprices\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSupplierPrices(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSupplierPrices(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSupplierPrices(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSupplierPricesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Responso avvio ricerca\r\n */\r\n startPriceSearch(request: StartPriceSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/prices/search\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processStartPriceSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processStartPriceSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processStartPriceSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StartPriceSearchResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiPricingsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Elimina pricing\r\n */\r\n delete(request: PricingDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/pricing/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Ottieni dati di un pricing\r\n */\r\n get(request: PricingGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/pricing/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PricingGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista pricing\r\n */\r\n list(request: PricingListRequest): Observable {\r\n let url_ = this.baseUrl + \"/pricing/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfPricingRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista pricing\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elimina regola di pricing\r\n */\r\n rulesDelete(request: PricingRulesDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/pricing/rules/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRulesDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRulesDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRulesDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PricingListRequest.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista regole pricing\r\n */\r\n rulesList(request: PricingRulesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/pricing/rules/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRulesList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRulesList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRulesList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PricingRulesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Crea o modifica regola di pricing\r\n */\r\n rulesUpsert(request: PricingRulesUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/pricing/rules/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRulesUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRulesUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRulesUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PricingListRequest.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Crea o modifica pricing\r\n */\r\n upsert(request: PricingUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/pricing/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = PricingGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiReportsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Dati del report\r\n */\r\n getAdvancePaymentsReport(request: GetAdvancePaymentsReportRequest): Observable {\r\n let url_ = this.baseUrl + \"/reports/advance_payments\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAdvancePaymentsReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAdvancePaymentsReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAdvancePaymentsReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAdvancePaymentsReportResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Anticipo fornitore non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati del report\r\n */\r\n getOfferteIncompleteReport(request: OfferteIncompleteReportRequest): Observable {\r\n let url_ = this.baseUrl + \"/reports/offerte/incomplete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetOfferteIncompleteReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetOfferteIncompleteReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetOfferteIncompleteReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OfferteIncompleteReportResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel del report\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma\r\n */\r\n sendOfferteIncompleteReport(request: SendOfferteIncompleteEmail): Observable {\r\n let url_ = this.baseUrl + \"/reports/offerte/incomplete/send\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSendOfferteIncompleteReport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSendOfferteIncompleteReport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSendOfferteIncompleteReport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiReservationsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Elenco stampe prenotazione\r\n */\r\n list(request: ReservationsListRequestRequest): Observable {\r\n let url_ = this.baseUrl + \"/reservations/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ReservationsListRequestResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiSearchClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Risultati della ricerca globale\r\n */\r\n intranetSearch(request: IntranetSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/search/intranet\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processIntranetSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processIntranetSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processIntranetSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = IntranetSearchResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultati della ricerca globale\r\n */\r\n siteSearch(request: SiteSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/search/site\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSiteSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSiteSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSiteSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SiteSearchResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultati della ricerca offerte semplice\r\n */\r\n tripsSearch(request: SiteSearchRequest): Observable {\r\n let url_ = this.baseUrl + \"/search/trips\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTripsSearch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTripsSearch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTripsSearch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripsSearchResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiServicesClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Servizio clonato\r\n */\r\n clone(request: CloneServizioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/clone\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processClone(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processClone(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processClone(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ServizioGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Validità del servizio aggiornate\r\n */\r\n cloneValidita(request: CloneValiditaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/validita/clone\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCloneValidita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCloneValidita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCloneValidita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetValiditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco partenze aggiornato\r\n */\r\n createPartenze(request: CreatePartenzeRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/partenze/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreatePartenze(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreatePartenze(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreatePartenze(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPartenzeResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma eliminazione\r\n */\r\n delete(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Associazioni aggiornate\r\n */\r\n deleteAssociazione(request: DeleteAssocizioneRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/associazioni/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteAssociazione(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteAssociazione(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteAssociazione(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAssociazioniResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Associazioni aggiornate\r\n */\r\n deleteAssociazioni(request: DeleteAssocizioniRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/associazioni/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteAssociazioni(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteAssociazioni(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteAssociazioni(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAssociazioniResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Costi aggiornati del servizio\r\n */\r\n deleteCosti(request: DeleteCostiRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/costi/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteCosti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteCosti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteCosti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCostiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole pacchetto servizio aggiornate\r\n */\r\n deleteDynamicPackageRule(request: DeleteDynamicPackageRuleRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/packagerules/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteDynamicPackageRule(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteDynamicPackageRule(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteDynamicPackageRule(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDynamicPackageRulesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole pacchetto servizio aggiornate\r\n */\r\n deleteDynamicPackageRules(request: DeleteDynamicPackageRulesRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/packagerules/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteDynamicPackageRules(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteDynamicPackageRules(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteDynamicPackageRules(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDynamicPackageRulesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Itinerari aggiornati\r\n */\r\n deleteItinerario(request: DeleteItinerarioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/itinerario/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteItinerario(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteItinerario(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteItinerario(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetItinerariResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco partenze aggiornato\r\n */\r\n deletePartenze(request: DeletePartenzeRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/partenze/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeletePartenze(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeletePartenze(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeletePartenze(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPartenzeResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole servizio aggiornate\r\n */\r\n deleteRegolaServizio(request: DeleteRegolaServizioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_serv/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteRegolaServizio(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteRegolaServizio(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteRegolaServizio(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRegoleServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole vendita aggiornate\r\n */\r\n deleteRegolaVendita(request: DeleteRegolaVenditaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_vend/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteRegolaVendita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteRegolaVendita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteRegolaVendita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRegoleVenditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole servizio aggiornate\r\n */\r\n deleteRegoleServizio(request: DeleteRegoleServizioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_serv/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteRegoleServizio(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteRegoleServizio(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteRegoleServizio(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRegoleServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole vendita aggiornate\r\n */\r\n deleteRegoleVendita(request: DeleteRegoleVenditaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_vend/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteRegoleVendita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteRegoleVendita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteRegoleVendita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRegoleVenditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tipologie del servizio aggiornate\r\n */\r\n deleteTipologia(request: DeleteTipologiaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tipologia/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteTipologia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteTipologia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteTipologia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTipologieResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tipologie del servizio aggiornate\r\n */\r\n deleteTipologie(request: DeleteTipologieRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tipologia/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteTipologie(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteTipologie(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteTipologie(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTipologieResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Validità del servizio aggiornate\r\n */\r\n deleteValidita(request: DeleteValiditaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/validita/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteValidita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteValidita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteValidita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetValiditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Servizio richiesto\r\n */\r\n servizioGet(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processServizioGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processServizioGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processServizioGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ServizioGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco accordi del servizio\r\n */\r\n getAccordi(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/accordi/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAccordi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAccordi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAccordi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAccordiServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Articoli del servizio\r\n */\r\n getArticoli(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/articoli/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetArticoli(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetArticoli(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetArticoli(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetArticoliServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Associazioni del servizio\r\n */\r\n getAssociazioniServizio(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/associazioni/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetAssociazioniServizio(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetAssociazioniServizio(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetAssociazioniServizio(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAssociazioniResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Costi del servizio\r\n */\r\n getCosti(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/costi/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetCosti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetCosti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetCosti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCostiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati aggiuntivi del servizio\r\n */\r\n getDatiAggiuntivi(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/datiaggiuntivi/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDatiAggiuntivi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDatiAggiuntivi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDatiAggiuntivi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDatiAggiuntiviResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Restituisce le regole pacchetti di un servizio\r\n */\r\n getDynamicPackageRules(request: GetDynamicPackageRulesRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/packagerules/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDynamicPackageRules(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDynamicPackageRules(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDynamicPackageRules(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDynamicPackageRulesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco assicurazioni pubblicate\r\n */\r\n getInsurances(request: SiteRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/get/insurances\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetInsurances(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetInsurances(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetInsurances(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetInsurancesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Itinerari del servizio\r\n */\r\n getItinerari(request: GetItinerariRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/itinerari/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetItinerari(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetItinerari(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetItinerari(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetItinerariResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco luoghi del servizio\r\n */\r\n getLuoghi(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/luoghi/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetLuoghi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetLuoghi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetLuoghi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetLuoghiServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Partenze del servizio\r\n */\r\n getPartenze(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/partenze/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPartenze(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPartenze(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPartenze(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPartenzeResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati del servizio\r\n */\r\n getPublished(request: GetPublishedServiceRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetPublished(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetPublished(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetPublished(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPublishedServiceResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole servizio del servizio\r\n */\r\n getRegoleServizio(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_serv/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetRegoleServizio(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRegoleServizio(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRegoleServizio(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRegoleServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regole vendita del servizio\r\n */\r\n getRegoleVendita(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_vend/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetRegoleVendita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetRegoleVendita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetRegoleVendita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetRegoleVenditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tabelle costi commissioni associate al servizio\r\n */\r\n getTabelleCostiAssociate(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tab_costi/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTabelleCostiAssociate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTabelleCostiAssociate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTabelleCostiAssociate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTabelleCostiAssociateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tipologie del servizio\r\n */\r\n getTipologie(request: GetTipologieRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tipologie/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTipologie(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTipologie(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTipologie(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTipologieResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tiplogie del servizio\r\n */\r\n getTypes(request: GetTypesRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/types/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTypes(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTypes(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTypes(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTypesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Validità del servizio\r\n */\r\n getValidita(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/validita/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetValidita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetValidita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetValidita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetValiditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Costi del servizio aggiornati\r\n */\r\n insertCosti(request: InsertCostiRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/costi/insert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInsertCosti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInsertCosti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInsertCosti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCostiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tipologia standard creata\r\n */\r\n insertTipologiaStandard(request: InsertTipologiaStandardRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tipologiestandard/insert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInsertTipologiaStandard(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInsertTipologiaStandard(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInsertTipologiaStandard(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco servizi\r\n */\r\n list(request: ListServicesRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/list/all\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfAPI_ServiceGetRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco servizi\r\n */\r\n listPublished(request: ListPublishedServicesRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processListPublished(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processListPublished(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processListPublished(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ListPublishedServicesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Luogo non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma ripristino\r\n */\r\n restore(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tipologie del servizio aggiornate\r\n */\r\n restoreTipologia(request: RestoreTipologiaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tipologia/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestoreTipologia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestoreTipologia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestoreTipologia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTipologieResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tipologie del servizio aggiornate\r\n */\r\n restoreTipologie(request: RestoreTipologieRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tipologia/restore/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestoreTipologie(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestoreTipologie(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestoreTipologie(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTipologieResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco accordi aggiornato\r\n */\r\n setAccordi(request: SetAccordiServizioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/accordi/set\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetAccordi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetAccordi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetAccordi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetAccordiServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dati aggiuntivi aggiornato\r\n */\r\n setDatiAggiuntivi(request: SetDatiAggiuntiviRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/datiaggiuntivi/set\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetDatiAggiuntivi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetDatiAggiuntivi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetDatiAggiuntivi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDatiAggiuntiviResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco luoghi aggiornato\r\n */\r\n setLuoghi(request: SetLuoghiServizioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/luoghi/set\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetLuoghi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetLuoghi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetLuoghi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetLuoghiServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco partenze aggiornato\r\n */\r\n setPartenze(request: SetPartenzeRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/partenze/set\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetPartenze(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetPartenze(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetPartenze(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetPartenzeResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Costi del servizio aggiornati\r\n */\r\n updateCosti(request: UpdateCostiRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/costi/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateCosti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateCosti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateCosti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCostiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Costi del servizio aggiornati\r\n */\r\n updateDatiCosti(request: UpdateDatiCostiRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/costi/updatedata\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateDatiCosti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDatiCosti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDatiCosti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCostiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Costi del servizio aggiornati\r\n */\r\n updateMargine(request: UpdateMargineRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/costi/updatemargine\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateMargine(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateMargine(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateMargine(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCostiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Costi del servizio aggiornati\r\n */\r\n updatePrezzi(request: ServizioGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/costi/updateprezzi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdatePrezzi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdatePrezzi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdatePrezzi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetCostiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Pubblicazione servizio aggiornata\r\n */\r\n updatePublishing(request: UpdatePublishingRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/update_publishing\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdatePublishing(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdatePublishing(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdatePublishing(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Servizio creato/aggiornato\r\n */\r\n servizioUpsert(request: ServizioUpsertRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processServizioUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processServizioUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processServizioUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ServizioGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Associazione creata o modificata e nuova lista associazioni\r\n */\r\n upsertAssociazione(request: UpsertAssociazioneRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/associazioni/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertAssociazione(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertAssociazione(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertAssociazione(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertAssociazioneResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regola pacchetto modificata o creata e regole aggiornate\r\n */\r\n upsertDynamicPackageRules(request: UpsertDynamicPackageRulesRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/packagerules/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertDynamicPackageRules(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertDynamicPackageRules(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertDynamicPackageRules(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertDynamicPackageRulesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Itinerari aggiornati\r\n */\r\n upsertItinerario(request: UpsertItinerarioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/itinerario/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertItinerario(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertItinerario(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertItinerario(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertItinerarioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regola servizio modificata o creata e regole aggiornate\r\n */\r\n upsertRegolaServizio(request: UpsertRegolaServizioRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_serv/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertRegolaServizio(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertRegolaServizio(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertRegolaServizio(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertRegolaServizioResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Regola vendita modificata o creata e regole aggiornate\r\n */\r\n upsertRegolaVendita(request: UpsertRegolaVenditaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/reg_vend/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertRegolaVendita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertRegolaVendita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertRegolaVendita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertRegolaVenditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Tipologia modificata o creata e tipologie aggiornate\r\n */\r\n upsertTipologia(request: UpsertTiplogiaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/tipologie/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertTipologia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertTipologia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertTipologia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertTipologiaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Validità modificata o creata e validità aggiornate\r\n */\r\n upsertValidita(request: UpsertValiditaRequest): Observable {\r\n let url_ = this.baseUrl + \"/services/intranet/validita/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertValidita(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertValidita(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertValidita(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertValiditaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiServiziH2HClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Conferma macro tipologia h2h\r\n */\r\n changeMacroType(request: ChangeMacroTypeRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/changemacrotype\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processChangeMacroType(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processChangeMacroType(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processChangeMacroType(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Confirm automatch servizio h2h\r\n */\r\n confirmAutomatch(request: ConfirmAutomatchServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/confirmautomatch\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processConfirmAutomatch(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConfirmAutomatch(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConfirmAutomatch(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma mapping servizio h2h\r\n */\r\n confirmMapping(request: ConfirmMappingServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/confirmmapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processConfirmMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConfirmMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConfirmMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Confirm type mapping servizio h2h\r\n */\r\n confirmTypeMapping(request: ConfirmTypeMappingRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/confirmtypemapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processConfirmTypeMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConfirmTypeMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConfirmTypeMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ConfirmTypeMappingResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Create servizio h2h\r\n */\r\n create(request: CreateServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Crea servizio naar associato\r\n */\r\n createService(request: CreateServiceRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/createservice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateService(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateService(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateService(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateServiceResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Cancellazione servizio h2h\r\n */\r\n delete(request: DeleteServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Cancellazione servizio h2h\r\n */\r\n delete2(request: DeleteServizioAggregatoH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/delete-aggregato\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete2(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete2(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete2(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Delete map servizio h2h\r\n */\r\n deleteMap(request: DeleteMapH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/deletemap\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteMap(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteMap(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteMap(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Disable servizio h2h\r\n */\r\n disable(request: DisableServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/disable\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDisable(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDisable(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDisable(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DisableServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Disable descrizione h2h\r\n */\r\n disable2(request: DisableDescriptionH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/disable-description\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDisable2(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDisable2(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDisable2(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DisableDescriptionH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Disable immagine h2h\r\n */\r\n disable3(request: DisableImageH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/disable-image\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDisable3(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDisable3(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDisable3(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DisableImageH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Enable servizio h2h\r\n */\r\n enable(request: EnableServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/enable\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processEnable(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processEnable(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processEnable(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EnableServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Enable descrizione servizio h2h\r\n */\r\n enable2(request: EnableDescriptionH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/enable-description\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processEnable2(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processEnable2(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processEnable2(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EnableDescriptionH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Enable immagine servizio h2h\r\n */\r\n enable3(request: EnableImageH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/enable-image\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processEnable3(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processEnable3(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processEnable3(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EnableImageH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Servizio fornitore\r\n */\r\n get(request: GetServizioFornitoreRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetServizioFornitoreResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco descrizioni servizo h2h\r\n */\r\n getDescriptions(request: GetDescriptionsServiziH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/getdescriptions\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDescriptions(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDescriptions(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDescriptions(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDescriptionsServiziH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @param giataService (optional) \r\n * @return Elenco giata codes servizo h2h\r\n */\r\n getGiataCodes(giataService: IGiataService | null | undefined, request: GetGiataCodesRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/getgiatacodes?\";\r\n if (giataService !== undefined && giataService !== null)\r\n url_ += \"giataService=\" + encodeURIComponent(\"\" + giataService) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetGiataCodes(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetGiataCodes(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetGiataCodes(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetGiataCodesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Get servizio aggregato\r\n */\r\n getGrouped(request: GetGroupedServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/getgrouped\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetGrouped(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetGrouped(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetGrouped(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetGroupedServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco servizi h2h\r\n */\r\n list(request: GetServiziH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/getgroupedsvclist\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetServiziH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco immagini servizo h2h\r\n */\r\n getImages(request: GetImmaginiServiziH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/getimages\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetImages(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetImages(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetImages(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetImmaginiServiziH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @param uniqueID (optional) ID univoco facoltativo della richiesta\r\n * @return Elenco attributi servizio\r\n */\r\n getServiceAttrs(uniqueID: string | null | undefined): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/getserviceattr?\";\r\n if (uniqueID !== undefined && uniqueID !== null)\r\n url_ += \"UniqueID=\" + encodeURIComponent(\"\" + uniqueID) + \"&\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetServiceAttrs(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetServiceAttrs(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetServiceAttrs(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetServiceAttrsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco servizi fornitore associati a servizo h2h\r\n */\r\n getSVCList(request: GetSVCListRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/getsvclist\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSVCList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSVCList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSVCList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSVCListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco servizi fornitore associati a servizo h2h\r\n */\r\n getTypesList(request: GetTypesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/gettypeslist\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTypesList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTypesList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTypesList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTypesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Link servizio h2h\r\n */\r\n link(request: LinkServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/link\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processLink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = LinkServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Migrate\r\n */\r\n migrate(request: MigrateServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/migrate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processMigrate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMigrate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMigrate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Ripristino servizio h2h\r\n */\r\n restore(request: RestoreServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set agreement servizio\r\n */\r\n setAgreement(request: SetAgreementServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/setagreement\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetAgreement(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetAgreement(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetAgreement(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetAgreementServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set Giata ID\r\n */\r\n setGiataId(request: SetGiataIdRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/setgiataid\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetGiataId(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetGiataId(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetGiataId(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetGiataIdResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set grouped mapping servizio h2h\r\n */\r\n setGroupedMapping(request: SetGroupedMappingServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/setgroupedmapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetGroupedMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetGroupedMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetGroupedMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetGroupedMappingServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set map servizio h2h\r\n */\r\n setMap(request: SetMapH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/setmap\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetMap(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetMap(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetMap(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetMapH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set mapping servizio h2h\r\n */\r\n setMapping(request: SetMappingServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/setmapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetMappingServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set mapping multi\r\n */\r\n setMappingMulti(request: SetMappingMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/setmappingmulti\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetMappingMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetMappingMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetMappingMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetMappingMultiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set rule mapping servizio h2h\r\n */\r\n setRuleMapping(request: SetRuleMappingRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/setrulemapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetRuleMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetRuleMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetRuleMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetRuleMappingResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Set type mapping servizio h2h\r\n */\r\n setTypeMapping(request: SetTypeMappingRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/settypemapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetTypeMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetTypeMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetTypeMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SetTypeMappingResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Rimozione conferma mapping servizio h2h\r\n */\r\n unConfirmMapping(request: UnConfirmMappingServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/unconfirmmapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUnConfirmMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUnConfirmMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUnConfirmMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Unonfirm type mapping servizio h2h\r\n */\r\n unConfirmTypeMapping(request: UnConfirmTypeMappingRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/unconfirmtypemapping\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUnConfirmTypeMapping(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUnConfirmTypeMapping(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUnConfirmTypeMapping(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UnConfirmTypeMappingResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Unlink servizio h2h\r\n */\r\n unlink(request: UnlinkServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/unlink\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUnlink(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUnlink(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUnlink(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Update servizio h2h\r\n */\r\n update(request: UpdateServizioH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateServizioH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Update descrizione h2h\r\n */\r\n update2(request: UpdateDescriptionH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/update-description\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate2(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate2(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate2(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateDescriptionH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Update immagine h2h\r\n */\r\n update3(request: UpdateImageH2HRequest): Observable {\r\n let url_ = this.baseUrl + \"/servizih2h/update-image\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate3(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate3(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate3(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateImageH2HResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiSharedDocumentsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Servizio richiesto\r\n */\r\n get(request: GetSharedDocumentRequest): Observable {\r\n let url_ = this.baseUrl + \"/shareddocs/intranet/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSharedDocumentResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Servizio non trovato\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista documenti condivisi\r\n */\r\n list(request: GetSharedDocumentsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/shareddocs/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetSharedDocumentsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return throwException(\"Export Excel della lista documenti condivisi\", status, _responseText, _headers, result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * Rotta PRIVATA per vedere un documento allegato\r\n http(s)://{apiHost}:{apiPort}/shareddocs/view/{ID}\r\n * @param allegatoID ID dell'allegato\r\n */\r\n view(allegatoID: number): Observable {\r\n let url_ = this.baseUrl + \"/shareddocs/view/{allegatoID}\";\r\n if (allegatoID === undefined || allegatoID === null)\r\n throw new Error(\"The parameter 'allegatoID' must be defined.\");\r\n url_ = url_.replace(\"{allegatoID}\", encodeURIComponent(\"\" + allegatoID));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processView(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processView(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processView(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiStatisticsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Risultato statistica vendite mese\r\n */\r\n monthSales(request: StatisticMonthSalesRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/monthsales\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processMonthSales(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMonthSales(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMonthSales(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StatisticMonthSalesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n quotationsGet(request: QuotationsGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/quotations/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processQuotationsGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processQuotationsGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processQuotationsGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = QuotationsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Values deleted\r\n */\r\n deleteReportValues(request: DeleteReportValuesRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/report/deletevalues\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteReportValues(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteReportValues(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteReportValues(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = DeleteReportValuesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Report export\r\n */\r\n export(request: ReportExportRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/report/export\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ExportFileResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n reportsList(request: ReportsRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/reports/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processReportsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processReportsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processReportsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ReportsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Values saved\r\n */\r\n saveReportValues(request: SaveReportValuesRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/report/savevalues\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSaveReportValues(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSaveReportValues(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSaveReportValues(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SaveReportValuesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Risultato statistica\r\n */\r\n result(request: StatisticResultRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/result\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processResult(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processResult(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processResult(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StatisticResultResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n salesDetails(request: SalesDetailsRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/sales/details\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSalesDetails(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSalesDetails(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSalesDetails(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SalesDetailsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n salesGet(request: SalesGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/sales/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSalesGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSalesGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSalesGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SalesGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco statistiche\r\n */\r\n list(request: StatisticsAllRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/all\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StatisticsAllResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n statisticCreate(request: StatisticUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processStatisticCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processStatisticCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processStatisticCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StatisticGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n statisticDelete(request: StatisticDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processStatisticDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processStatisticDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processStatisticDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n statisticGet(request: StatisticGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processStatisticGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processStatisticGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processStatisticGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StatisticGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n statisticsList(request: StatisticsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processStatisticsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processStatisticsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processStatisticsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StatisticsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateStatistic(request: StatisticUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/statistics/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateStatistic(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateStatistic(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateStatistic(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = StatisticGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiSystemEmailsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Email di sistema salvata\r\n */\r\n systemEmailCreate(request: SystemEmailCreateRequest): Observable {\r\n let url_ = this.baseUrl + \"/systememails/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSystemEmailCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSystemEmailCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSystemEmailCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SystemEmailGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n systemEmailDelete(request: SystemEmailDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/systememails/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSystemEmailDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSystemEmailDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSystemEmailDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n systemEmailGet(request: SystemEmailGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/systememails/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSystemEmailGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSystemEmailGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSystemEmailGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SystemEmailGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n systemEmailList(request: SystemEmailListRequest): Observable {\r\n let url_ = this.baseUrl + \"/systememails/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSystemEmailList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSystemEmailList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSystemEmailList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SystemEmailListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n systemEmailRestore(request: SystemEmailRestoreRequest): Observable {\r\n let url_ = this.baseUrl + \"/systememails/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSystemEmailRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSystemEmailRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSystemEmailRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Email di sistema aggiornata\r\n */\r\n systemEmailUpdate(request: SystemEmailUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/systememails/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSystemEmailUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSystemEmailUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSystemEmailUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = SystemEmailUpdateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiTicketClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Ticket created\r\n */\r\n ticketCreate(request: TicketCreateRequest): Observable {\r\n let url_ = this.baseUrl + \"/tickets/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTicketCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTicketCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTicketCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TicketCreateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiTranslationsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n translationsArticlesAll(request: TranslationsAllRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/articles/translateall\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsArticlesAll(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsArticlesAll(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsArticlesAll(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsAllResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista degli articoli da tradurre\r\n */\r\n translationsArticlesList(request: TranslationsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/articles/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsArticlesList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsArticlesList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsArticlesList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfTranslationsArticleRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Traduce un articolo nella lingua richiesta\r\n */\r\n translationsArticlesTranslate(request: TranslationsArticlesTranslateRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/articles/translate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsArticlesTranslate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsArticlesTranslate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsArticlesTranslate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsArticlesTranslateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Traduce titolo e testo di un articolo\r\n */\r\n translationsArticlesTranslateText(request: TranslationsArticlesTranslateTextRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/articles/translatetext\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsArticlesTranslateText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsArticlesTranslateText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsArticlesTranslateText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsArticlesTranslateTextResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei luoghi da tradurre\r\n */\r\n translationsLocationsList(request: TranslationsLocationsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/locations/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsLocationsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsLocationsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsLocationsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsLocationsListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n translationsPhrasesAll(request: TranslationsAllRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/phrases/translateall\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsPhrasesAll(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsPhrasesAll(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsPhrasesAll(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsAllResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista delle frasi da tradurre\r\n */\r\n translationsPhrasesList(request: TranslationsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/phrases/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsPhrasesList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsPhrasesList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsPhrasesList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfTranslationsPhraseRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Traduce una frase nella lingua richiesta\r\n */\r\n translationsPhrasesTranslate(request: TranslationsPhrasesTranslateRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/phrases/translate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsPhrasesTranslate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsPhrasesTranslate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsPhrasesTranslate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsPhrasesTranslateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Traduce il testo di una frase\r\n */\r\n translationsPhrasesTranslateText(request: TranslationsPhrasesTranslateTextRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/phrases/translatetext\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsPhrasesTranslateText(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsPhrasesTranslateText(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsPhrasesTranslateText(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsPhrasesTranslateTextResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista dei servizi da tradurre\r\n */\r\n translationsServicesList(request: TranslationsServicesListRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/services/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsServicesList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsServicesList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsServicesList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsServicesListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Traduce un servizio nella lingua richiesta\r\n */\r\n translationsServiceTranslate(request: TranslationsServiceTranslateRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/service/translate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsServiceTranslate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsServiceTranslate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsServiceTranslate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsServiceTranslateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Traduce un testo nella lingua richiesta\r\n */\r\n translationsTranslate(request: TranslationsTranslateRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/translate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processTranslationsTranslate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processTranslationsTranslate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processTranslationsTranslate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TranslationsTranslateResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati del servizio o del luogo da tradurre\r\n */\r\n webTranslatableGet(request: WebTranslatableGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/webtranslatable/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebTranslatableGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebTranslatableGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebTranslatableGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = WebTranslatableGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista delle WebTranslatable\r\n */\r\n webTranslatableList(request: WebTranslatableListRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/webtranslatable/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebTranslatableList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebTranslatableList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebTranslatableList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfAPI_Website_translationsGetRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati del servizio o del luogo da tradurre\r\n */\r\n webTranslatableUpdate(request: WebTranslatableUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/translations/webtranslatable/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebTranslatableUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebTranslatableUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebTranslatableUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = WebTranslatableGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiTripClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n addCameraHashcode(request: AddCameraHashcodeRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/servizi/add/hashcode\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAddCameraHashcode(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddCameraHashcode(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddCameraHashcode(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n addServizi(request: AddServiziRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/servizi/add\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAddServizi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddServizi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddServizi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n addServizioAutomatico(request: AddServizioAutomaticoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/servizioauto/add\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAddServizioAutomatico(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddServizioAutomatico(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddServizioAutomatico(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n addServizioMacro(request: AddServizioMacroRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/servizi/add/macro\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAddServizioMacro(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAddServizioMacro(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAddServizioMacro(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n aggiornaAnticipiFornitore(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/aggiornaanticipifornitore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAggiornaAnticipiFornitore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAggiornaAnticipiFornitore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAggiornaAnticipiFornitore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n aggiornaTotale(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/aggiornatotale\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAggiornaTotale(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAggiornaTotale(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAggiornaTotale(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n aggiornaValute(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/aggiornavalute\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAggiornaValute(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAggiornaValute(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAggiornaValute(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n annullamentoADV(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/annullamento/adv\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAnnullamentoADV(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAnnullamentoADV(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAnnullamentoADV(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n annullamentoTO(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/annullamento/to\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAnnullamentoTO(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAnnullamentoTO(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAnnullamentoTO(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Esito autocompletamento\r\n */\r\n avviaCompletamento(request: AvviaCompletamentoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/autofill\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAvviaCompletamento(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAvviaCompletamento(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAvviaCompletamento(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AvviaCompletamentoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Esito\r\n */\r\n avviaVerificaPrezzi(request: AvviaVerificaPrezziRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/priceverify\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processAvviaVerificaPrezzi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processAvviaVerificaPrezzi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processAvviaVerificaPrezzi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = AvviaVerificaPrezziResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Status del viaggio\r\n */\r\n checkTripStatus(request: CheckTripStatusRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/status\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCheckTripStatus(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCheckTripStatus(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCheckTripStatus(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CheckTripStatusResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n clearCart(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/clear\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processClearCart(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processClearCart(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processClearCart(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n closePnrs(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/closepnrs\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processClosePnrs(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processClosePnrs(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processClosePnrs(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Offerta non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n conferma(request: ConfermaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/conferma\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processConferma(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processConferma(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processConferma(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Nuova offerta\r\n */\r\n copia(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/copia\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCopia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCopia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCopia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata, documento copiato\r\n */\r\n copiaDocumento(request: CopiaDocumentoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documento/copia\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCopiaDocumento(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCopiaDocumento(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCopiaDocumento(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CopiaDocumentoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata, riga copiata\r\n */\r\n copiaRiga(request: CopiaRigaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/riga/copia\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCopiaRiga(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCopiaRiga(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCopiaRiga(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CopiaRigaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata, voucher copiato\r\n */\r\n copiaVoucher(request: CopiaVoucherRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/voucher/copia\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCopiaVoucher(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCopiaVoucher(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCopiaVoucher(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CopiaVoucherResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n createDocumentiAllegati(request: CreateDocumentiAllegatiRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documenti/create/allegato\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateDocumentiAllegati(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateDocumentiAllegati(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateDocumentiAllegati(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata, id del documento creato\r\n */\r\n createDocumento(request: CreateDocumentoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documento/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateDocumento(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateDocumento(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateDocumento(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateDocumentoResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n createIncassi(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/incassi/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateIncassi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateIncassi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateIncassi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata e nuova nota\r\n */\r\n createNota(request: EditNotaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/nota/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateNota(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateNota(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateNota(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EditNotaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata e nuova nota agenzia\r\n */\r\n createNotaAgenzia(request: EditNotaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/nota/createAgency\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateNotaAgenzia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateNotaAgenzia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateNotaAgenzia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EditNotaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta creata\r\n */\r\n createQuotation(request: CreateQuotationRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/quotation/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateQuotation(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateQuotation(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateQuotation(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata e nuova riga\r\n */\r\n createRiga(request: CreateRigaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/riga/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateRiga(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateRiga(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateRiga(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateRigaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n createSegnapostoPagamento(request: CreateSegnapostoPagamentoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/riga/create/segnapostopagamento\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateSegnapostoPagamento(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateSegnapostoPagamento(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateSegnapostoPagamento(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta creata\r\n */\r\n createTrip(request: CreateTripRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateTrip(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateTrip(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateTrip(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta creata\r\n */\r\n createTripFromQuotation(request: CreateTripFromQuotationRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/create/fromquotation\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateTripFromQuotation(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateTripFromQuotation(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateTripFromQuotation(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n delete(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/preventivo/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteDocumento(request: DeleteDocumentoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documento/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteDocumento(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteDocumento(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteDocumento(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteDocumentoMulti(request: DeleteDocumentoMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documento/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteDocumentoMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteDocumentoMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteDocumentoMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteNota(request: EditNotaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/nota/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteNota(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteNota(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteNota(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteNotaMulti(request: DeleteNotaMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/nota/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteNotaMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteNotaMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteNotaMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteServizi(request: DeleteServiziRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/servizi/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteServizi(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteServizi(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteServizi(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteVolo(request: UpdateVoloRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/volo/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteVolo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteVolo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteVolo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteVoucher(request: DeleteVoucherRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/voucher/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteVoucher(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteVoucher(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteVoucher(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n deleteVoucherMulti(request: DeleteVoucherMultiRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/voucher/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteVoucherMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteVoucherMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteVoucherMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Export Excel delle righe dell'offerta\r\n */\r\n export(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/export\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExport(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExport(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExport(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 201) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result201: any = null;\r\n let resultData201 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result201 = ExportFileResponse.fromJS(resultData201);\r\n return _observableOf(result201);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta richiesta\r\n */\r\n get(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Offerta non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco dei log attività su questa offerta\r\n */\r\n getActivityLogs(request: GetActivityLogsRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/logs\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetActivityLogs(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetActivityLogs(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetActivityLogs(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfTripActivityLogRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getFlightsTickets(request: GetFlightsTicketsRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/getflighttickets\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetFlightsTickets(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetFlightsTickets(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetFlightsTickets(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetFlightsTicketsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Quotes retrieved\r\n */\r\n getQuotes(request: GetQuotesRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/quotes\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetQuotes(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetQuotes(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetQuotes(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetQuotesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getServiziOfferta(request: GetServiziOffertaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/getservices\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetServiziOfferta(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetServiziOfferta(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetServiziOfferta(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetServiziOffertaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata e riga da inserire\r\n */\r\n getServizioManuale(request: GetServizioManualeRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/getmanual\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetServizioManuale(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetServizioManuale(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetServizioManuale(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetServizioManualeResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Scheletro offerta\r\n */\r\n getTripSkelethon(request: GetTripSkelethonRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/get/skelethon\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTripSkelethon(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTripSkelethon(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTripSkelethon(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetTripSkelethonResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n inviaDocumenti(request: InviaDocumentiRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documenti/invio\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInviaDocumenti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInviaDocumenti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInviaDocumenti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n inviaDocumentoAgenzia(request: InviaDocumentoAgenziaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documento/invio/adv\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInviaDocumentoAgenzia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInviaDocumentoAgenzia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInviaDocumentoAgenzia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Stato preventivo inviato\r\n */\r\n inviaQuotationReady(request: InviaQuotationReadyRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/quotation/invio\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInviaQuotationReady(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInviaQuotationReady(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInviaQuotationReady(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n inviaVoucher(request: InviaVoucherRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/voucher/invio\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processInviaVoucher(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processInviaVoucher(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processInviaVoucher(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n lockPayments(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/payments/lock\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processLockPayments(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processLockPayments(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processLockPayments(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Riga con dati di anticipo ricalcolati\r\n */\r\n recalcAnticipoFornitore(request: RecalcAnticipoFornitoreRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/anticipo_fornitore/recalc\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRecalcAnticipoFornitore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRecalcAnticipoFornitore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRecalcAnticipoFornitore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = RecalcAnticipoFornitoreResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 404) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result404: any = null;\r\n let resultData404 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result404 = ErrorResponse.fromJS(resultData404);\r\n return throwException(\"Offerta non trovata\", status, _responseText, _headers, result404);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Riga con prezzi ricalcolati\r\n */\r\n recalcPrices(request: RecalcPricesRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/prices/recalc\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRecalcPrices(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRecalcPrices(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRecalcPrices(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = RecalcPricesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n resetVerificaPaxVolo(request: ResetVerificaPaxVoloRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/flight/reset\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processResetVerificaPaxVolo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processResetVerificaPaxVolo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processResetVerificaPaxVolo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n richiestaSupportoBooking(request: RichiestaSupportoBookingRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/bookingsupport\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRichiestaSupportoBooking(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRichiestaSupportoBooking(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRichiestaSupportoBooking(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n ripristinaCancellazioneTO(request: TripGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/ripristinacancto\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRipristinaCancellazioneTO(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRipristinaCancellazioneTO(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRipristinaCancellazioneTO(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n sbloccaConferma(request: SbloccaConfermaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/sblocca_conferma\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSbloccaConferma(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSbloccaConferma(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSbloccaConferma(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Sblocca itinerario offerta\r\n */\r\n sbloccaItinerario(request: SbloccaItinerarioRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/itinerario/sblocca\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSbloccaItinerario(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSbloccaItinerario(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSbloccaItinerario(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n update(request: UpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateAgenzia(request: UpdateAgenziaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/agenzia/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateAgenzia(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateAgenzia(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateAgenzia(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateCamereCompleto(request: UpdateCamereCompletoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/camere/update/completo\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateCamereCompleto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateCamereCompleto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateCamereCompleto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateCamereSemplici(request: UpdateCamereSempliciRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/camere/update/semplice\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateCamereSemplici(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateCamereSemplici(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateCamereSemplici(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateClienti(request: UpdateClientiRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/clienti/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateClienti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateClienti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateClienti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateConfirmData(request: UpdateConfirmDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/status/righe/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateConfirmData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateConfirmData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateConfirmData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateDocumentData(request: UpdateDocumentDataRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/documenti/dati/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateDocumentData(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateDocumentData(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateDocumentData(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n updateFlightsTickets(request: UpdateFlightsTicketsRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/updateflighttickets\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateFlightsTickets(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateFlightsTickets(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateFlightsTickets(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetFlightsTicketsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateItinerarioCompleto(request: UpdateItinerarioCompletoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/itinerario/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateItinerarioCompleto(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateItinerarioCompleto(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateItinerarioCompleto(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta e nota aggiornate\r\n */\r\n updateNota(request: EditNotaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/nota/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateNota(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateNota(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateNota(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EditNotaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateRiga(request: UpdateRigaRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/riga/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateRiga(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateRiga(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateRiga(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateRigaResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateStato(request: UpdateStatoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/stato/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateStato(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateStato(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateStato(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateStatoPreventivo(request: UpdateStatoPreventivoRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/status_preventivo/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateStatoPreventivo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateStatoPreventivo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateStatoPreventivo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateTappa(request: UpdateItinerarioRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/tappa/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateTappa(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateTappa(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateTappa(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateVolo(request: UpdateVoloRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/intranet/volo/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateVolo(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateVolo(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateVolo(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta e voucher aggiornati\r\n */\r\n updateVoucher(request: UpdateVoucherRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/voucher/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateVoucher(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateVoucher(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateVoucher(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateVoucherResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n updateWeb(request: UpdateWebRequest): Observable {\r\n let url_ = this.baseUrl + \"/trip/web/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateWeb(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateWeb(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateWeb(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Offerta aggiornata\r\n */\r\n uploadAttachment(): Observable {\r\n let url_ = this.baseUrl + \"/trip/attachment/upload\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUploadAttachment(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUploadAttachment(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUploadAttachment(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = TripGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiDashboardClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Lista delle informazioni della dashboard\r\n */\r\n getDashboardInfos(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/dashboard/infos\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetDashboardInfos(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetDashboardInfos(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetDashboardInfos(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetDashboardInfosResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiUsersClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n changePassword(request: ChangePasswordRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/changepassword\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processChangePassword(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processChangePassword(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processChangePassword(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Codice monouso\r\n */\r\n createCrossLogin(request: CreateCrossLoginRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/impersonate\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateCrossLogin(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateCrossLogin(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateCrossLogin(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = CreateCrossLoginResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista teams aggiornata\r\n */\r\n createTeam(request: UpdateTeamRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/teams/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processCreateTeam(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processCreateTeam(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processCreateTeam(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateTeamResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma operazione eseguita\r\n */\r\n delete(request: UserDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma operazione eseguita\r\n */\r\n deleteMulti(request: DeleteMultiUserRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/delete/multi\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processDeleteMulti(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processDeleteMulti(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processDeleteMulti(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n enableFastLoginFromExcel(): Observable {\r\n let url_ = this.baseUrl + \"/users/enable-fastlogin-file\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processEnableFastLoginFromExcel(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processEnableFastLoginFromExcel(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processEnableFastLoginFromExcel(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = EnableFastLoginFromExcelResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati dell'utente con quell'ID\r\n */\r\n get(request: UserGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco degli ID degli ruoli assegnati all'utente\r\n */\r\n getUserRoles(request: UserGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/roles/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetUserRoles(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetUserRoles(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetUserRoles(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetUserRolesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista utenti\r\n */\r\n list(request: UsersListRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UsersListResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista ruoli\r\n */\r\n listRoles(request: LocalizedRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/roles/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processListRoles(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processListRoles(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processListRoles(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ListRolesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista teams\r\n */\r\n listTeams(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/teams/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processListTeams(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processListTeams(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processListTeams(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ListTeamsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n passwordReset(request: PasswordResetRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/passrecover/reset\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processPasswordReset(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processPasswordReset(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processPasswordReset(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 401) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result401: any = null;\r\n let resultData401 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result401 = ErrorResponse.fromJS(resultData401);\r\n return throwException(\"Errore di autorizzazione\", status, _responseText, _headers, result401);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Conferma operazione eseguita\r\n */\r\n restore(request: UserRestoreRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/restore\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processRestore(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processRestore(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processRestore(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n sendPasswordRecovery(request: SendPasswordRecoveryRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/passrecover/request\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSendPasswordRecovery(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSendPasswordRecovery(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSendPasswordRecovery(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Elenco aggiornato degli ID degli ruoli assegnati all'utente\r\n */\r\n setRoles(request: SetRolesRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/roles/set\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSetRoles(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSetRoles(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSetRoles(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetUserRolesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista teams aggiornata\r\n */\r\n updateTeam(request: UpdateTeamRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/teams/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpdateTeam(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpdateTeam(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpdateTeam(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpdateTeamResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Dati dell'utente creato/aggiornato\r\n */\r\n upsert(request: UpsertUserRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsert(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsert(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsert(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UserGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista ruoli aggiornata e ruolo aggiornato\r\n */\r\n upsertRole(request: UpsertRoleRequest): Observable {\r\n let url_ = this.baseUrl + \"/users/role/upsert\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processUpsertRole(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processUpsertRole(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processUpsertRole(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = UpsertRoleResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiUtilityClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n getSettings(): Observable {\r\n let url_ = this.baseUrl + \"/utility/settings\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetSettings(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetSettings(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetSettings(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ClientAppSettings.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n generateTypescriptClient(swaggerSpecUrl: SwaggerUrlRequest): Observable {\r\n let url_ = this.baseUrl + \"/utility/typescript-client\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(swaggerSpecUrl);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGenerateTypescriptClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGenerateTypescriptClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGenerateTypescriptClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n generateTypescriptGenericClient(swaggerSpecUrl: SwaggerUrlRequest): Observable {\r\n let url_ = this.baseUrl + \"/utility/typescript-generic-client\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(swaggerSpecUrl);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGenerateTypescriptGenericClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGenerateTypescriptGenericClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGenerateTypescriptGenericClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n generateCSharpClient(swaggerSpecUrl: SwaggerUrlRequest): Observable {\r\n let url_ = this.baseUrl + \"/utility/csharp-client\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(swaggerSpecUrl);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGenerateCSharpClient(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGenerateCSharpClient(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGenerateCSharpClient(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Metodo che serve solo ad esporre le classi di SignalR\r\n */\r\n exposeRealtimeClasses(): Observable {\r\n let url_ = this.baseUrl + \"/utility/exposertc\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processExposeRealtimeClasses(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processExposeRealtimeClasses(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processExposeRealtimeClasses(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = VoidContainer.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiValidatorsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Verifica esistenza offerta\r\n */\r\n validateTripExists(request: ValidateTripExistsRequest): Observable {\r\n let url_ = this.baseUrl + \"/validators/trip/exists\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processValidateTripExists(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processValidateTripExists(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processValidateTripExists(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ValidateTripExistsResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiVouchersClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n vouchersCreateEmpty(request: VouchersCreateRequest): Observable {\r\n let url_ = this.baseUrl + \"/voucher/createEmpty\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processVouchersCreateEmpty(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processVouchersCreateEmpty(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processVouchersCreateEmpty(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfVoucherRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getVouchersList(request: VouchersListRequest): Observable {\r\n let url_ = this.baseUrl + \"/voucher/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetVouchersList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetVouchersList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetVouchersList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfVoucherRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiWebsiteLabelsClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n websiteLabelsCreate(request: WebsiteLabelsCreateRequest): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/create\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebsiteLabelsCreate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebsiteLabelsCreate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebsiteLabelsCreate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = WebsiteLabelsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n websiteLabelsDelete(request: WebsiteLabelsDeleteRequest): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/delete\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebsiteLabelsDelete(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebsiteLabelsDelete(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebsiteLabelsDelete(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = OkApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n websiteLabelsGet(request: WebsiteLabelsGetRequest): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebsiteLabelsGet(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebsiteLabelsGet(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebsiteLabelsGet(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = WebsiteLabelsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getTranslationsObject(siteName: string, langCode: string): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/i18n/{siteName}/{langCode}\";\r\n if (siteName === undefined || siteName === null)\r\n throw new Error(\"The parameter 'siteName' must be defined.\");\r\n url_ = url_.replace(\"{siteName}\", encodeURIComponent(\"\" + siteName));\r\n if (langCode === undefined || langCode === null)\r\n throw new Error(\"The parameter 'langCode' must be defined.\");\r\n url_ = url_.replace(\"{langCode}\", encodeURIComponent(\"\" + langCode));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/octet-stream\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetTranslationsObject(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetTranslationsObject(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetTranslationsObject(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200 || status === 206) {\r\n const contentDisposition = response.headers ? response.headers.get(\"content-disposition\") : undefined;\r\n let fileNameMatch = contentDisposition ? /filename\\*=(?:(\\\\?['\"])(.*?)\\1|(?:[^\\s]+'.*?')?([^;\\n]*))/g.exec(contentDisposition) : undefined;\r\n let fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[3] || fileNameMatch[2] : undefined;\r\n if (fileName) {\r\n fileName = decodeURIComponent(fileName);\r\n } else {\r\n fileNameMatch = contentDisposition ? /filename=\"?([^\"]*?)\"?(;|$)/g.exec(contentDisposition) : undefined;\r\n fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;\r\n }\r\n return _observableOf({ fileName: fileName, data: responseBlob as any, status: status, headers: _headers });\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Lista delle label\r\n */\r\n websiteLabelsList(request: WebsiteLabelsListRequest): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/list\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebsiteLabelsList(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebsiteLabelsList(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebsiteLabelsList(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = NrTableResponseOfWebsiteLabelsRow.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n /**\r\n * @return Gestisce le label non trovate\r\n */\r\n missingLabel(request: MissingLabelRequest): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/missing\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processMissingLabel(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processMissingLabel(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processMissingLabel(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n websiteLabelsUpdate(request: WebsiteLabelsUpdateRequest): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/update\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebsiteLabelsUpdate(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebsiteLabelsUpdate(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebsiteLabelsUpdate(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = WebsiteLabelsGetResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n websiteLabelsUpload(): Observable {\r\n let url_ = this.baseUrl + \"/websitelabels/upload\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processWebsiteLabelsUpload(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processWebsiteLabelsUpload(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processWebsiteLabelsUpload(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = ApiResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiWebsitesClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n /**\r\n * @return Definizioni dei siti\r\n */\r\n getWebsites(request: ApiRequest): Observable {\r\n let url_ = this.baseUrl + \"/websites/get\";\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n const content_ = JSON.stringify(request);\r\n\r\n let options_ : any = {\r\n body: content_,\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Content-Type\": \"application/json\",\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"post\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetWebsites(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetWebsites(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetWebsites(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = GetWebsitesResponse.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status === 500) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result500: any = null;\r\n let resultData500 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result500 = ErrorResponse.fromJS(resultData500);\r\n return throwException(\"Errore lato server\", status, _responseText, _headers, result500);\r\n }));\r\n } else if (status === 400) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result400: any = null;\r\n let resultData400 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result400 = ModelValidationFailedResponse.fromJS(resultData400);\r\n return throwException(\"Errore di validazione dell\\'input\", status, _responseText, _headers, result400);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n@Injectable()\r\nexport class NaarApiWeellgoClient extends ApiClientBase {\r\n private http: HttpClient;\r\n private baseUrl: string;\r\n protected jsonParseReviver: ((key: string, value: any) => any) | undefined = undefined;\r\n\r\n constructor(@Inject(ApiConfig) configuration: ApiConfig, @Inject(HttpClient) http: HttpClient, @Optional() @Inject(API_BASE_URL) baseUrl?: string) {\r\n super(configuration);\r\n this.http = http;\r\n this.baseUrl = baseUrl ?? \"http://localhost:4201\";\r\n }\r\n\r\n saveWeellgoTrip(tripId: number): Observable {\r\n let url_ = this.baseUrl + \"/weellgo/save-weellgo-trip/{tripId}\";\r\n if (tripId === undefined || tripId === null)\r\n throw new Error(\"The parameter 'tripId' must be defined.\");\r\n url_ = url_.replace(\"{tripId}\", encodeURIComponent(\"\" + tripId));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processSaveWeellgoTrip(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processSaveWeellgoTrip(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processSaveWeellgoTrip(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = Trip.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n\r\n getWeellgoTrip(tripId: number): Observable {\r\n let url_ = this.baseUrl + \"/weellgo/get-weellgo-trip/{tripId}\";\r\n if (tripId === undefined || tripId === null)\r\n throw new Error(\"The parameter 'tripId' must be defined.\");\r\n url_ = url_.replace(\"{tripId}\", encodeURIComponent(\"\" + tripId));\r\n url_ = url_.replace(/[?&]$/, \"\");\r\n\r\n let options_ : any = {\r\n observe: \"response\",\r\n responseType: \"blob\",\r\n headers: new HttpHeaders({\r\n \"Accept\": \"application/json\"\r\n })\r\n };\r\n\r\n return _observableFrom(this.transformOptions(options_)).pipe(_observableMergeMap(transformedOptions_ => {\r\n return this.http.request(\"get\", url_, transformedOptions_);\r\n })).pipe(_observableMergeMap((response_: any) => {\r\n return this.processGetWeellgoTrip(response_);\r\n })).pipe(_observableCatch((response_: any) => {\r\n if (response_ instanceof HttpResponseBase) {\r\n try {\r\n return this.processGetWeellgoTrip(response_ as any);\r\n } catch (e) {\r\n return _observableThrow(e) as any as Observable;\r\n }\r\n } else\r\n return _observableThrow(response_) as any as Observable;\r\n }));\r\n }\r\n\r\n protected processGetWeellgoTrip(response: HttpResponseBase): Observable {\r\n const status = response.status;\r\n const responseBlob =\r\n response instanceof HttpResponse ? response.body :\r\n (response as any).error instanceof Blob ? (response as any).error : undefined;\r\n\r\n let _headers: any = {}; if (response.headers) { for (let key of response.headers.keys()) { _headers[key] = response.headers.get(key); }}\r\n if (status === 200) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n let result200: any = null;\r\n let resultData200 = _responseText === \"\" ? null : JSON.parse(_responseText, this.jsonParseReviver);\r\n result200 = Trip.fromJS(resultData200);\r\n return _observableOf(result200);\r\n }));\r\n } else if (status !== 200 && status !== 204) {\r\n return blobToText(responseBlob).pipe(_observableMergeMap(_responseText => {\r\n return throwException(\"An unexpected server error occurred.\", status, _responseText, _headers);\r\n }));\r\n }\r\n return _observableOf(null as any);\r\n }\r\n}\r\n\r\n/** Classe base astratta di tutte le risposte API */\r\nexport abstract class ApiResponse implements IApiResponse {\r\n /** Codice facoltativo che identifica il tipo di risposta */\r\n code?: string | null;\r\n /** ID univoco della richiesta alla quale viene fornita la risposta */\r\n requestID?: string | null;\r\n /** Timestamp UTC della risposta */\r\n timestamp?: number;\r\n /** ID univoco della risposta */\r\n uniqueID?: string;\r\n\r\n constructor(data?: IApiResponse) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.requestID = _data[\"requestID\"] !== undefined ? _data[\"requestID\"] : null;\r\n this.timestamp = _data[\"timestamp\"] !== undefined ? _data[\"timestamp\"] : null;\r\n this.uniqueID = _data[\"uniqueID\"] !== undefined ? _data[\"uniqueID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ApiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ApiResponse' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"requestID\"] = this.requestID !== undefined ? this.requestID : null;\r\n data[\"timestamp\"] = this.timestamp !== undefined ? this.timestamp : null;\r\n data[\"uniqueID\"] = this.uniqueID !== undefined ? this.uniqueID : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe base astratta di tutte le risposte API */\r\nexport interface IApiResponse {\r\n /** Codice facoltativo che identifica il tipo di risposta */\r\n code?: string | null;\r\n /** ID univoco della richiesta alla quale viene fornita la risposta */\r\n requestID?: string | null;\r\n /** Timestamp UTC della risposta */\r\n timestamp?: number;\r\n /** ID univoco della risposta */\r\n uniqueID?: string;\r\n}\r\n\r\n/** Classe base delle risposte positive API */\r\nexport class OkApiResponse extends ApiResponse implements IOkApiResponse {\r\n /** Risultato dell'elaborazione. Vale sempre \"OK\" */\r\n result?: EOkResponseType;\r\n\r\n constructor(data?: IOkApiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.result = _data[\"result\"] !== undefined ? _data[\"result\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OkApiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OkApiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"result\"] = this.result !== undefined ? this.result : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe base delle risposte positive API */\r\nexport interface IOkApiResponse extends IApiResponse {\r\n /** Risultato dell'elaborazione. Vale sempre \"OK\" */\r\n result?: EOkResponseType;\r\n}\r\n\r\nexport class AccordoReadResponse extends OkApiResponse implements IAccordoReadResponse {\r\n accordo?: Accordo | null;\r\n\r\n constructor(data?: IAccordoReadResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordo = _data[\"accordo\"] ? Accordo.fromJS(_data[\"accordo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoReadResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoReadResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoReadResponse extends IOkApiResponse {\r\n accordo?: Accordo | null;\r\n}\r\n\r\nexport class Accordo implements IAccordo {\r\n accordoID?: number;\r\n operatore?: EOperatore | null;\r\n contattoID?: number | null;\r\n pagamentoID?: number | null;\r\n tipo?: ETipoAccordo;\r\n nome!: string;\r\n memo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n tipoEmissioneVoucher?: ETipoEmissioneVoucher | null;\r\n notaPiePaginaVoucher?: string | null;\r\n valutaID?: number | null;\r\n contabilizzazione?: EContabilizzazione | null;\r\n centroDiCosto?: ECentroDiCosto | null;\r\n deregolamentato?: boolean;\r\n fornitore?: EFornitore | null;\r\n host2Host?: boolean | null;\r\n prenotazioneAutomatica?: boolean;\r\n commissioniBiglietteriaDeregolamentate?: boolean;\r\n prezziLordi?: boolean | null;\r\n contattoSupportoID?: number | null;\r\n reservationsFrom?: string | null;\r\n margine?: number | null;\r\n conversioneCosti?: number | null;\r\n conversionePrezzi?: number | null;\r\n margineNetto?: number | null;\r\n conversionePrezziNetto?: number | null;\r\n marginePacchetto?: number | null;\r\n conversionePrezziPacchetto?: number | null;\r\n codiceContabile?: number | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IAccordo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.tipoEmissioneVoucher = _data[\"tipoEmissioneVoucher\"] !== undefined ? _data[\"tipoEmissioneVoucher\"] : null;\r\n this.notaPiePaginaVoucher = _data[\"notaPiePaginaVoucher\"] !== undefined ? _data[\"notaPiePaginaVoucher\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.contabilizzazione = _data[\"contabilizzazione\"] !== undefined ? _data[\"contabilizzazione\"] : null;\r\n this.centroDiCosto = _data[\"centroDiCosto\"] !== undefined ? _data[\"centroDiCosto\"] : null;\r\n this.deregolamentato = _data[\"deregolamentato\"] !== undefined ? _data[\"deregolamentato\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.host2Host = _data[\"host2Host\"] !== undefined ? _data[\"host2Host\"] : null;\r\n this.prenotazioneAutomatica = _data[\"prenotazioneAutomatica\"] !== undefined ? _data[\"prenotazioneAutomatica\"] : null;\r\n this.commissioniBiglietteriaDeregolamentate = _data[\"commissioniBiglietteriaDeregolamentate\"] !== undefined ? _data[\"commissioniBiglietteriaDeregolamentate\"] : null;\r\n this.prezziLordi = _data[\"prezziLordi\"] !== undefined ? _data[\"prezziLordi\"] : null;\r\n this.contattoSupportoID = _data[\"contattoSupportoID\"] !== undefined ? _data[\"contattoSupportoID\"] : null;\r\n this.reservationsFrom = _data[\"reservationsFrom\"] !== undefined ? _data[\"reservationsFrom\"] : null;\r\n this.margine = _data[\"margine\"] !== undefined ? _data[\"margine\"] : null;\r\n this.conversioneCosti = _data[\"conversioneCosti\"] !== undefined ? _data[\"conversioneCosti\"] : null;\r\n this.conversionePrezzi = _data[\"conversionePrezzi\"] !== undefined ? _data[\"conversionePrezzi\"] : null;\r\n this.margineNetto = _data[\"margineNetto\"] !== undefined ? _data[\"margineNetto\"] : null;\r\n this.conversionePrezziNetto = _data[\"conversionePrezziNetto\"] !== undefined ? _data[\"conversionePrezziNetto\"] : null;\r\n this.marginePacchetto = _data[\"marginePacchetto\"] !== undefined ? _data[\"marginePacchetto\"] : null;\r\n this.conversionePrezziPacchetto = _data[\"conversionePrezziPacchetto\"] !== undefined ? _data[\"conversionePrezziPacchetto\"] : null;\r\n this.codiceContabile = _data[\"codiceContabile\"] !== undefined ? _data[\"codiceContabile\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Accordo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Accordo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"tipoEmissioneVoucher\"] = this.tipoEmissioneVoucher !== undefined ? this.tipoEmissioneVoucher : null;\r\n data[\"notaPiePaginaVoucher\"] = this.notaPiePaginaVoucher !== undefined ? this.notaPiePaginaVoucher : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"contabilizzazione\"] = this.contabilizzazione !== undefined ? this.contabilizzazione : null;\r\n data[\"centroDiCosto\"] = this.centroDiCosto !== undefined ? this.centroDiCosto : null;\r\n data[\"deregolamentato\"] = this.deregolamentato !== undefined ? this.deregolamentato : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"host2Host\"] = this.host2Host !== undefined ? this.host2Host : null;\r\n data[\"prenotazioneAutomatica\"] = this.prenotazioneAutomatica !== undefined ? this.prenotazioneAutomatica : null;\r\n data[\"commissioniBiglietteriaDeregolamentate\"] = this.commissioniBiglietteriaDeregolamentate !== undefined ? this.commissioniBiglietteriaDeregolamentate : null;\r\n data[\"prezziLordi\"] = this.prezziLordi !== undefined ? this.prezziLordi : null;\r\n data[\"contattoSupportoID\"] = this.contattoSupportoID !== undefined ? this.contattoSupportoID : null;\r\n data[\"reservationsFrom\"] = this.reservationsFrom !== undefined ? this.reservationsFrom : null;\r\n data[\"margine\"] = this.margine !== undefined ? this.margine : null;\r\n data[\"conversioneCosti\"] = this.conversioneCosti !== undefined ? this.conversioneCosti : null;\r\n data[\"conversionePrezzi\"] = this.conversionePrezzi !== undefined ? this.conversionePrezzi : null;\r\n data[\"margineNetto\"] = this.margineNetto !== undefined ? this.margineNetto : null;\r\n data[\"conversionePrezziNetto\"] = this.conversionePrezziNetto !== undefined ? this.conversionePrezziNetto : null;\r\n data[\"marginePacchetto\"] = this.marginePacchetto !== undefined ? this.marginePacchetto : null;\r\n data[\"conversionePrezziPacchetto\"] = this.conversionePrezziPacchetto !== undefined ? this.conversionePrezziPacchetto : null;\r\n data[\"codiceContabile\"] = this.codiceContabile !== undefined ? this.codiceContabile : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordo {\r\n accordoID?: number;\r\n operatore?: EOperatore | null;\r\n contattoID?: number | null;\r\n pagamentoID?: number | null;\r\n tipo?: ETipoAccordo;\r\n nome: string;\r\n memo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n tipoEmissioneVoucher?: ETipoEmissioneVoucher | null;\r\n notaPiePaginaVoucher?: string | null;\r\n valutaID?: number | null;\r\n contabilizzazione?: EContabilizzazione | null;\r\n centroDiCosto?: ECentroDiCosto | null;\r\n deregolamentato?: boolean;\r\n fornitore?: EFornitore | null;\r\n host2Host?: boolean | null;\r\n prenotazioneAutomatica?: boolean;\r\n commissioniBiglietteriaDeregolamentate?: boolean;\r\n prezziLordi?: boolean | null;\r\n contattoSupportoID?: number | null;\r\n reservationsFrom?: string | null;\r\n margine?: number | null;\r\n conversioneCosti?: number | null;\r\n conversionePrezzi?: number | null;\r\n margineNetto?: number | null;\r\n conversionePrezziNetto?: number | null;\r\n marginePacchetto?: number | null;\r\n conversionePrezziPacchetto?: number | null;\r\n codiceContabile?: number | null;\r\n deleted?: string | null;\r\n}\r\n\r\nexport enum EOperatore {\r\n Indefinito = \"Indefinito\",\r\n Naar = \"Naar\",\r\n NaarFrance = \"NaarFrance\",\r\n NaarGermany = \"NaarGermany\",\r\n Aviomar = \"Aviomar\",\r\n NaarBenelux = \"NaarBenelux\",\r\n}\r\n\r\nexport enum ETipoAccordo {\r\n Fornitori = \"Fornitori\",\r\n Agenzie = \"Agenzie\",\r\n Biglietteria = \"Biglietteria\",\r\n Scaduto = \"Scaduto\",\r\n}\r\n\r\nexport enum ETipoEmissioneVoucher {\r\n Nessuna = \"Nessuna\",\r\n UnVoucherAServizio = \"UnVoucherAServizio\",\r\n UnVoucherAOfferta = \"UnVoucherAOfferta\",\r\n VoucherFornitore = \"VoucherFornitore\",\r\n}\r\n\r\nexport enum EContabilizzazione {\r\n ExtraCee = \"ExtraCee\",\r\n Cee = \"Cee\",\r\n Italia = \"Italia\",\r\n}\r\n\r\nexport enum ECentroDiCosto {\r\n Naar = \"Naar\",\r\n Aliviaggi = \"Aliviaggi\",\r\n DriveOut = \"DriveOut\",\r\n Anyway = \"Anyway\",\r\n Aviomar = \"Aviomar\",\r\n}\r\n\r\nexport enum EFornitore {\r\n NONE = \"NONE\",\r\n NAAR_INTERNO = \"NAAR_INTERNO\",\r\n GTA = \"GTA\",\r\n KOBRA = \"KOBRA\",\r\n TOURICO = \"TOURICO\",\r\n ATI = \"ATI\",\r\n PANORAMA = \"PANORAMA\",\r\n CLICKONLINE = \"CLICKONLINE\",\r\n JONVIEW = \"JONVIEW\",\r\n NAAR_INTERNO_NUOVO = \"NAAR_INTERNO_NUOVO\",\r\n HOTELBEDS = \"HOTELBEDS\",\r\n JACTRAVEL = \"JACTRAVEL\",\r\n TRAVCO = \"TRAVCO\",\r\n BONOTEL = \"BONOTEL\",\r\n AMADEUS = \"AMADEUS\",\r\n TEAM_AMERICA = \"TEAM_AMERICA\",\r\n YOUTRAVEL = \"YOUTRAVEL\",\r\n AVIOMAR = \"AVIOMAR\",\r\n GALILEO = \"GALILEO\",\r\n PANPACIFIC = \"PANPACIFIC\",\r\n DELTANET = \"DELTANET\",\r\n ARABIAN = \"ARABIAN\",\r\n EUROTOURS = \"EUROTOURS\",\r\n EXPEDIA = \"EXPEDIA\",\r\n TRAVELFUSION = \"TRAVELFUSION\",\r\n KUONI = \"KUONI\",\r\n TIRRENIA = \"TIRRENIA\",\r\n ALLIED = \"ALLIED\",\r\n INTRA = \"INTRA\",\r\n ITALCAMEL = \"ITALCAMEL\",\r\n MONDIAL = \"MONDIAL\",\r\n UNILINE = \"UNILINE\",\r\n WELCOMEBEDS = \"WELCOMEBEDS\",\r\n RESTEL = \"RESTEL\",\r\n ATI_2012 = \"ATI_2012\",\r\n MIKITRAVEL_OLD = \"MIKITRAVEL_OLD\",\r\n MARK = \"MARK\",\r\n EUROTUR = \"EUROTUR\",\r\n CTN = \"CTN\",\r\n RMHTOURS = \"RMHTOURS\",\r\n OPENTOURS = \"OPENTOURS\",\r\n TRANSHOTEL = \"TRANSHOTEL\",\r\n TEAM_AMERICA_2013 = \"TEAM_AMERICA_2013\",\r\n TEKURA = \"TEKURA\",\r\n AOT = \"AOT\",\r\n TRAVALCO = \"TRAVALCO\",\r\n WTS = \"WTS\",\r\n ASIAN = \"ASIAN\",\r\n VOLATOUR = \"VOLATOUR\",\r\n JTB = \"JTB\",\r\n GOWEST_OLD = \"GOWEST_OLD\",\r\n TOURMAPPERS = \"TOURMAPPERS\",\r\n TOURICO_2014 = \"TOURICO_2014\",\r\n TEAM_AMERICA_2014 = \"TEAM_AMERICA_2014\",\r\n EAN = \"EAN\",\r\n GLOBAL = \"GLOBAL\",\r\n VISION = \"VISION\",\r\n ROSIE = \"ROSIE\",\r\n MECA = \"MECA\",\r\n MARK_2016 = \"MARK_2016\",\r\n CONDOR = \"CONDOR\",\r\n SANDALS = \"SANDALS\",\r\n RTS = \"RTS\",\r\n A4Y = \"A4Y\",\r\n DUMMY = \"DUMMY\",\r\n AIC = \"AIC\",\r\n TRAVALCO_2018 = \"TRAVALCO_2018\",\r\n OLYMPIA = \"OLYMPIA\",\r\n HOTELSTON = \"HOTELSTON\",\r\n ALLIEDTPRO = \"ALLIEDTPRO\",\r\n PACIFIC_DNZ = \"PACIFIC_DNZ\",\r\n CREOLE = \"CREOLE\",\r\n WTS_2018 = \"WTS_2018\",\r\n PACIFIC_DAU = \"PACIFIC_DAU\",\r\n ALAMO = \"ALAMO\",\r\n WHL = \"WHL\",\r\n MSC = \"MSC\",\r\n PRICELINE = \"PRICELINE\",\r\n TOURMAPPERS_2018 = \"TOURMAPPERS_2018\",\r\n MISTER_ROOM = \"MISTER_ROOM\",\r\n RIU = \"RIU\",\r\n WTS_NAMIBIA = \"WTS_NAMIBIA\",\r\n W2M = \"W2M\",\r\n MAGIC_TRAVELS = \"MAGIC_TRAVELS\",\r\n BOOK_ME = \"BOOK_ME\",\r\n CLUBMED = \"CLUBMED\",\r\n MAGIC_TRAVELS_2022 = \"MAGIC_TRAVELS_2022\",\r\n NTA = \"NTA\",\r\n HASHNAP = \"HASHNAP\",\r\n WEBBEDS = \"WEBBEDS\",\r\n HOTEL_TRADER = \"HOTEL_TRADER\",\r\n MIKITRAVEL = \"MIKITRAVEL\",\r\n G2_TRAVEL = \"G2_TRAVEL\",\r\n NUITEE = \"NUITEE\",\r\n GOWEST_2024 = \"GOWEST_2024\",\r\n RATE_HAWK = \"RATE_HAWK\",\r\n WEBBEDS_2024 = \"WEBBEDS_2024\",\r\n GO_WAY = \"GO_WAY\",\r\n GO_GLOBAL = \"GO_GLOBAL\",\r\n DIDA_TRAVEL = \"DIDA_TRAVEL\",\r\n HYPER_GUEST = \"HYPER_GUEST\",\r\n G2_TRAVEL_2024 = \"G2_TRAVEL_2024\",\r\n MIKITRAVEL_2024 = \"MIKITRAVEL_2024\",\r\n JUMBONLINE = \"JUMBONLINE\",\r\n NORDBEDS = \"NORDBEDS\",\r\n TBO = \"TBO\",\r\n AMADEUS_NDC = \"AMADEUS_NDC\",\r\n DIDA_TRAVEL_2025 = \"DIDA_TRAVEL_2025\",\r\n}\r\n\r\nexport enum EOkResponseType {\r\n OK = \"OK\",\r\n}\r\n\r\n/** Classe base delle risposte di errore */\r\nexport class ErrorResponse extends ApiResponse implements IErrorResponse {\r\n /** Risultato dell'elaborazione. Vale sempre \"ERROR\" */\r\n result?: EErrorResponseType;\r\n /** Descrizione testuale dell'errore */\r\n error?: string | null;\r\n /** Valori custom associati all'errore */\r\n values?: { [key: string]: any; } | null;\r\n\r\n constructor(data?: IErrorResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.result = _data[\"result\"] !== undefined ? _data[\"result\"] : null;\r\n this.error = _data[\"error\"] !== undefined ? _data[\"error\"] : null;\r\n if (_data[\"values\"]) {\r\n this.values = {} as any;\r\n for (let key in _data[\"values\"]) {\r\n if (_data[\"values\"].hasOwnProperty(key))\r\n (this.values)![key] = _data[\"values\"][key] !== undefined ? _data[\"values\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.values = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ErrorResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ErrorResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"result\"] = this.result !== undefined ? this.result : null;\r\n data[\"error\"] = this.error !== undefined ? this.error : null;\r\n if (this.values) {\r\n data[\"values\"] = {};\r\n for (let key in this.values) {\r\n if (this.values.hasOwnProperty(key))\r\n (data[\"values\"])[key] = this.values[key] !== undefined ? this.values[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe base delle risposte di errore */\r\nexport interface IErrorResponse extends IApiResponse {\r\n /** Risultato dell'elaborazione. Vale sempre \"ERROR\" */\r\n result?: EErrorResponseType;\r\n /** Descrizione testuale dell'errore */\r\n error?: string | null;\r\n /** Valori custom associati all'errore */\r\n values?: { [key: string]: any; } | null;\r\n}\r\n\r\nexport enum EErrorResponseType {\r\n ERROR = \"ERROR\",\r\n}\r\n\r\nexport class ModelValidationFailedResponse extends ErrorResponse implements IModelValidationFailedResponse {\r\n errors?: string[] | null;\r\n\r\n constructor(data?: IModelValidationFailedResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"errors\"])) {\r\n this.errors = [] as any;\r\n for (let item of _data[\"errors\"])\r\n this.errors!.push(item);\r\n }\r\n else {\r\n this.errors = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ModelValidationFailedResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ModelValidationFailedResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.errors)) {\r\n data[\"errors\"] = [];\r\n for (let item of this.errors)\r\n data[\"errors\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IModelValidationFailedResponse extends IErrorResponse {\r\n errors?: string[] | null;\r\n}\r\n\r\n/** Classe base di tutte le richieste API */\r\nexport class ApiRequest implements IApiRequest {\r\n /** ID univoco facoltativo della richiesta */\r\n uniqueID?: string | null;\r\n\r\n constructor(data?: IApiRequest) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.uniqueID = _data[\"uniqueID\"] !== undefined ? _data[\"uniqueID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ApiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ApiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"uniqueID\"] = this.uniqueID !== undefined ? this.uniqueID : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe base di tutte le richieste API */\r\nexport interface IApiRequest {\r\n /** ID univoco facoltativo della richiesta */\r\n uniqueID?: string | null;\r\n}\r\n\r\nexport class AccordoReadRequest extends ApiRequest implements IAccordoReadRequest {\r\n accordoID?: number;\r\n\r\n constructor(data?: IAccordoReadRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoReadRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoReadRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoReadRequest extends IApiRequest {\r\n accordoID?: number;\r\n}\r\n\r\nexport class AccordoWriteRequest extends ApiRequest implements IAccordoWriteRequest {\r\n accordo?: Accordo | null;\r\n\r\n constructor(data?: IAccordoWriteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordo = _data[\"accordo\"] ? Accordo.fromJS(_data[\"accordo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoWriteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoWriteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoWriteRequest extends IApiRequest {\r\n accordo?: Accordo | null;\r\n}\r\n\r\nexport class AccordoDeleteRequest extends ApiRequest implements IAccordoDeleteRequest {\r\n /** Id dell'accordo da eliminare */\r\n accordoID?: number;\r\n\r\n constructor(data?: IAccordoDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoDeleteRequest extends IApiRequest {\r\n /** Id dell'accordo da eliminare */\r\n accordoID?: number;\r\n}\r\n\r\nexport class RestoreAccordoRequest extends ApiRequest implements IRestoreAccordoRequest {\r\n /** Id dell'accordo da eliminare */\r\n accordoID?: number;\r\n\r\n constructor(data?: IRestoreAccordoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RestoreAccordoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreAccordoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRestoreAccordoRequest extends IApiRequest {\r\n /** Id dell'accordo da eliminare */\r\n accordoID?: number;\r\n}\r\n\r\nexport class AccordiDeleteMultiRequest extends ApiRequest implements IAccordiDeleteMultiRequest {\r\n /** Lista degli id degli accordi da eliminare */\r\n accordiIds?: number[] | null;\r\n\r\n constructor(data?: IAccordiDeleteMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"accordiIds\"])) {\r\n this.accordiIds = [] as any;\r\n for (let item of _data[\"accordiIds\"])\r\n this.accordiIds!.push(item);\r\n }\r\n else {\r\n this.accordiIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordiDeleteMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordiDeleteMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.accordiIds)) {\r\n data[\"accordiIds\"] = [];\r\n for (let item of this.accordiIds)\r\n data[\"accordiIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordiDeleteMultiRequest extends IApiRequest {\r\n /** Lista degli id degli accordi da eliminare */\r\n accordiIds?: number[] | null;\r\n}\r\n\r\nexport class NrTableResponseOfContraenteRow extends OkApiResponse implements INrTableResponseOfContraenteRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ContraenteRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfContraenteRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ContraenteRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfContraenteRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfContraenteRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfContraenteRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ContraenteRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ContraenteRow implements IContraenteRow {\r\n /** Id riga accordo/contraente */\r\n id?: number;\r\n /** Id del contatto contraente */\r\n contattoID?: number;\r\n /** Nome visualizzato del contatto */\r\n contatto?: string | null;\r\n /** Operatore di riferimento */\r\n operatore?: EOperatore;\r\n /** Id del pricing */\r\n pricing?: string | null;\r\n /** True se i viaggi netti sono abilitati */\r\n viaggiNetti?: boolean | null;\r\n /** Il Markup dei viaggi netti */\r\n markup_vn?: number | null;\r\n /** Il Markup dei teds */\r\n markup_teds?: number | null;\r\n /** Data di validità */\r\n data?: string | null;\r\n\r\n constructor(data?: IContraenteRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.pricing = _data[\"pricing\"] !== undefined ? _data[\"pricing\"] : null;\r\n this.viaggiNetti = _data[\"viaggiNetti\"] !== undefined ? _data[\"viaggiNetti\"] : null;\r\n this.markup_vn = _data[\"markup_vn\"] !== undefined ? _data[\"markup_vn\"] : null;\r\n this.markup_teds = _data[\"markup_teds\"] !== undefined ? _data[\"markup_teds\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraenteRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraenteRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"pricing\"] = this.pricing !== undefined ? this.pricing : null;\r\n data[\"viaggiNetti\"] = this.viaggiNetti !== undefined ? this.viaggiNetti : null;\r\n data[\"markup_vn\"] = this.markup_vn !== undefined ? this.markup_vn : null;\r\n data[\"markup_teds\"] = this.markup_teds !== undefined ? this.markup_teds : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraenteRow {\r\n /** Id riga accordo/contraente */\r\n id?: number;\r\n /** Id del contatto contraente */\r\n contattoID?: number;\r\n /** Nome visualizzato del contatto */\r\n contatto?: string | null;\r\n /** Operatore di riferimento */\r\n operatore?: EOperatore;\r\n /** Id del pricing */\r\n pricing?: string | null;\r\n /** True se i viaggi netti sono abilitati */\r\n viaggiNetti?: boolean | null;\r\n /** Il Markup dei viaggi netti */\r\n markup_vn?: number | null;\r\n /** Il Markup dei teds */\r\n markup_teds?: number | null;\r\n /** Data di validità */\r\n data?: string | null;\r\n}\r\n\r\n/** Riferimento ad un file esportato */\r\nexport class ExportFileResponse extends OkApiResponse implements IExportFileResponse {\r\n /** Parametro da passare a /export/get se TempFileID è nullo */\r\n file?: string | null;\r\n /** ID del file temporaneo da passare a /export/get/temp e che prevale su File quando valorizzato */\r\n tempFileID?: number | null;\r\n\r\n constructor(data?: IExportFileResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.file = _data[\"file\"] !== undefined ? _data[\"file\"] : null;\r\n this.tempFileID = _data[\"tempFileID\"] !== undefined ? _data[\"tempFileID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExportFileResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExportFileResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"file\"] = this.file !== undefined ? this.file : null;\r\n data[\"tempFileID\"] = this.tempFileID !== undefined ? this.tempFileID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Riferimento ad un file esportato */\r\nexport interface IExportFileResponse extends IOkApiResponse {\r\n /** Parametro da passare a /export/get se TempFileID è nullo */\r\n file?: string | null;\r\n /** ID del file temporaneo da passare a /export/get/temp e che prevale su File quando valorizzato */\r\n tempFileID?: number | null;\r\n}\r\n\r\nexport class LocalizedRequest extends ApiRequest implements ILocalizedRequest {\r\n /** Lingua richiesta */\r\n lingua!: ELingua;\r\n\r\n constructor(data?: ILocalizedRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LocalizedRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LocalizedRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILocalizedRequest extends IApiRequest {\r\n /** Lingua richiesta */\r\n lingua: ELingua;\r\n}\r\n\r\n/** Base per richieste paginate */\r\nexport class NrTableRequest extends LocalizedRequest implements INrTableRequest {\r\n /** Numero della pagina 1 based */\r\n page?: number;\r\n /** Dimensione della pagina */\r\n pageSize?: number;\r\n /** Nome della colonna su cui effettuare l'ordinamento (facoltativo) */\r\n sortColumn?: string | null;\r\n /** Direzione dell'ordinamento (facoltativo): asc / desc / '' */\r\n sortDirection?: string | null;\r\n /** Se true esporta il file Excel invece di generare la tabella */\r\n export?: boolean;\r\n exportEntityName?: string | null;\r\n exportFieldsNames?: { [key: string]: string; } | null;\r\n fieldsDecoders?: { [key: string]: { [key: string]: string; }; } | null;\r\n\r\n constructor(data?: INrTableRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.page = _data[\"page\"] !== undefined ? _data[\"page\"] : null;\r\n this.pageSize = _data[\"pageSize\"] !== undefined ? _data[\"pageSize\"] : null;\r\n this.sortColumn = _data[\"sortColumn\"] !== undefined ? _data[\"sortColumn\"] : null;\r\n this.sortDirection = _data[\"sortDirection\"] !== undefined ? _data[\"sortDirection\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n this.exportEntityName = _data[\"exportEntityName\"] !== undefined ? _data[\"exportEntityName\"] : null;\r\n if (_data[\"exportFieldsNames\"]) {\r\n this.exportFieldsNames = {} as any;\r\n for (let key in _data[\"exportFieldsNames\"]) {\r\n if (_data[\"exportFieldsNames\"].hasOwnProperty(key))\r\n (this.exportFieldsNames)![key] = _data[\"exportFieldsNames\"][key] !== undefined ? _data[\"exportFieldsNames\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.exportFieldsNames = null;\r\n }\r\n if (_data[\"fieldsDecoders\"]) {\r\n this.fieldsDecoders = {} as any;\r\n for (let key in _data[\"fieldsDecoders\"]) {\r\n if (_data[\"fieldsDecoders\"].hasOwnProperty(key))\r\n (this.fieldsDecoders)![key] = _data[\"fieldsDecoders\"][key] !== undefined ? _data[\"fieldsDecoders\"][key] : {};\r\n }\r\n }\r\n else {\r\n this.fieldsDecoders = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"page\"] = this.page !== undefined ? this.page : null;\r\n data[\"pageSize\"] = this.pageSize !== undefined ? this.pageSize : null;\r\n data[\"sortColumn\"] = this.sortColumn !== undefined ? this.sortColumn : null;\r\n data[\"sortDirection\"] = this.sortDirection !== undefined ? this.sortDirection : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n data[\"exportEntityName\"] = this.exportEntityName !== undefined ? this.exportEntityName : null;\r\n if (this.exportFieldsNames) {\r\n data[\"exportFieldsNames\"] = {};\r\n for (let key in this.exportFieldsNames) {\r\n if (this.exportFieldsNames.hasOwnProperty(key))\r\n (data[\"exportFieldsNames\"])[key] = this.exportFieldsNames[key] !== undefined ? this.exportFieldsNames[key] : null;\r\n }\r\n }\r\n if (this.fieldsDecoders) {\r\n data[\"fieldsDecoders\"] = {};\r\n for (let key in this.fieldsDecoders) {\r\n if (this.fieldsDecoders.hasOwnProperty(key))\r\n (data[\"fieldsDecoders\"])[key] = this.fieldsDecoders[key] !== undefined ? this.fieldsDecoders[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Base per richieste paginate */\r\nexport interface INrTableRequest extends ILocalizedRequest {\r\n /** Numero della pagina 1 based */\r\n page?: number;\r\n /** Dimensione della pagina */\r\n pageSize?: number;\r\n /** Nome della colonna su cui effettuare l'ordinamento (facoltativo) */\r\n sortColumn?: string | null;\r\n /** Direzione dell'ordinamento (facoltativo): asc / desc / '' */\r\n sortDirection?: string | null;\r\n /** Se true esporta il file Excel invece di generare la tabella */\r\n export?: boolean;\r\n exportEntityName?: string | null;\r\n exportFieldsNames?: { [key: string]: string; } | null;\r\n fieldsDecoders?: { [key: string]: { [key: string]: string; }; } | null;\r\n}\r\n\r\nexport class ContraentiSearchRequest extends NrTableRequest implements IContraentiSearchRequest {\r\n /** Id dell'accordo del quale visualizzare i contraenti */\r\n accordoId?: number;\r\n\r\n constructor(data?: IContraentiSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoId = _data[\"accordoId\"] !== undefined ? _data[\"accordoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraentiSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraentiSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoId\"] = this.accordoId !== undefined ? this.accordoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraentiSearchRequest extends INrTableRequest {\r\n /** Id dell'accordo del quale visualizzare i contraenti */\r\n accordoId?: number;\r\n}\r\n\r\nexport enum ELingua {\r\n Italiano = \"Italiano\",\r\n English = \"English\",\r\n Francais = \"Francais\",\r\n Deutsch = \"Deutsch\",\r\n Dutch = \"Dutch\",\r\n Spanish = \"Spanish\",\r\n Portuguese = \"Portuguese\",\r\n Debug = \"Debug\",\r\n}\r\n\r\nexport class ContraenteReadResponse extends OkApiResponse implements IContraenteReadResponse {\r\n accordoContatto?: AccordoContatto | null;\r\n\r\n constructor(data?: IContraenteReadResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoContatto = _data[\"accordoContatto\"] ? AccordoContatto.fromJS(_data[\"accordoContatto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraenteReadResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraenteReadResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoContatto\"] = this.accordoContatto ? this.accordoContatto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraenteReadResponse extends IOkApiResponse {\r\n accordoContatto?: AccordoContatto | null;\r\n}\r\n\r\nexport class AccordoContatto implements IAccordoContatto {\r\n id?: number;\r\n operatore?: EOperatore;\r\n contattoID?: number;\r\n accordoID?: number;\r\n pagamentoID?: number | null;\r\n pagamentoBiglietteriaID?: number | null;\r\n percentualeAcconto?: number | null;\r\n percentualeAccontoNozze?: number | null;\r\n credito?: number | null;\r\n corrente?: number | null;\r\n data?: string | null;\r\n bancaID?: number | null;\r\n noAnticipoBiglietti?: boolean;\r\n noAnticipoQuote?: boolean;\r\n commissioniBiglietteriaDeregolamentate?: boolean;\r\n pricingID?: number | null;\r\n viaggiNetti?: boolean | null;\r\n markup_vn?: number | null;\r\n markup_teds?: number | null;\r\n\r\n constructor(data?: IAccordoContatto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.pagamentoBiglietteriaID = _data[\"pagamentoBiglietteriaID\"] !== undefined ? _data[\"pagamentoBiglietteriaID\"] : null;\r\n this.percentualeAcconto = _data[\"percentualeAcconto\"] !== undefined ? _data[\"percentualeAcconto\"] : null;\r\n this.percentualeAccontoNozze = _data[\"percentualeAccontoNozze\"] !== undefined ? _data[\"percentualeAccontoNozze\"] : null;\r\n this.credito = _data[\"credito\"] !== undefined ? _data[\"credito\"] : null;\r\n this.corrente = _data[\"corrente\"] !== undefined ? _data[\"corrente\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.bancaID = _data[\"bancaID\"] !== undefined ? _data[\"bancaID\"] : null;\r\n this.noAnticipoBiglietti = _data[\"noAnticipoBiglietti\"] !== undefined ? _data[\"noAnticipoBiglietti\"] : null;\r\n this.noAnticipoQuote = _data[\"noAnticipoQuote\"] !== undefined ? _data[\"noAnticipoQuote\"] : null;\r\n this.commissioniBiglietteriaDeregolamentate = _data[\"commissioniBiglietteriaDeregolamentate\"] !== undefined ? _data[\"commissioniBiglietteriaDeregolamentate\"] : null;\r\n this.pricingID = _data[\"pricingID\"] !== undefined ? _data[\"pricingID\"] : null;\r\n this.viaggiNetti = _data[\"viaggiNetti\"] !== undefined ? _data[\"viaggiNetti\"] : null;\r\n this.markup_vn = _data[\"markup_vn\"] !== undefined ? _data[\"markup_vn\"] : null;\r\n this.markup_teds = _data[\"markup_teds\"] !== undefined ? _data[\"markup_teds\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoContatto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoContatto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"pagamentoBiglietteriaID\"] = this.pagamentoBiglietteriaID !== undefined ? this.pagamentoBiglietteriaID : null;\r\n data[\"percentualeAcconto\"] = this.percentualeAcconto !== undefined ? this.percentualeAcconto : null;\r\n data[\"percentualeAccontoNozze\"] = this.percentualeAccontoNozze !== undefined ? this.percentualeAccontoNozze : null;\r\n data[\"credito\"] = this.credito !== undefined ? this.credito : null;\r\n data[\"corrente\"] = this.corrente !== undefined ? this.corrente : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"bancaID\"] = this.bancaID !== undefined ? this.bancaID : null;\r\n data[\"noAnticipoBiglietti\"] = this.noAnticipoBiglietti !== undefined ? this.noAnticipoBiglietti : null;\r\n data[\"noAnticipoQuote\"] = this.noAnticipoQuote !== undefined ? this.noAnticipoQuote : null;\r\n data[\"commissioniBiglietteriaDeregolamentate\"] = this.commissioniBiglietteriaDeregolamentate !== undefined ? this.commissioniBiglietteriaDeregolamentate : null;\r\n data[\"pricingID\"] = this.pricingID !== undefined ? this.pricingID : null;\r\n data[\"viaggiNetti\"] = this.viaggiNetti !== undefined ? this.viaggiNetti : null;\r\n data[\"markup_vn\"] = this.markup_vn !== undefined ? this.markup_vn : null;\r\n data[\"markup_teds\"] = this.markup_teds !== undefined ? this.markup_teds : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoContatto {\r\n id?: number;\r\n operatore?: EOperatore;\r\n contattoID?: number;\r\n accordoID?: number;\r\n pagamentoID?: number | null;\r\n pagamentoBiglietteriaID?: number | null;\r\n percentualeAcconto?: number | null;\r\n percentualeAccontoNozze?: number | null;\r\n credito?: number | null;\r\n corrente?: number | null;\r\n data?: string | null;\r\n bancaID?: number | null;\r\n noAnticipoBiglietti?: boolean;\r\n noAnticipoQuote?: boolean;\r\n commissioniBiglietteriaDeregolamentate?: boolean;\r\n pricingID?: number | null;\r\n viaggiNetti?: boolean | null;\r\n markup_vn?: number | null;\r\n markup_teds?: number | null;\r\n}\r\n\r\nexport class ContraenteReadRequest extends ApiRequest implements IContraenteReadRequest {\r\n accordoID?: number;\r\n accordoContattoID?: number;\r\n\r\n constructor(data?: IContraenteReadRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordoContattoID = _data[\"accordoContattoID\"] !== undefined ? _data[\"accordoContattoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraenteReadRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraenteReadRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordoContattoID\"] = this.accordoContattoID !== undefined ? this.accordoContattoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraenteReadRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordoContattoID?: number;\r\n}\r\n\r\nexport class ContraenteWriteResponse extends OkApiResponse implements IContraenteWriteResponse {\r\n accordoContatto?: AccordoContatto | null;\r\n\r\n constructor(data?: IContraenteWriteResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoContatto = _data[\"accordoContatto\"] ? AccordoContatto.fromJS(_data[\"accordoContatto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraenteWriteResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraenteWriteResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoContatto\"] = this.accordoContatto ? this.accordoContatto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraenteWriteResponse extends IOkApiResponse {\r\n accordoContatto?: AccordoContatto | null;\r\n}\r\n\r\nexport class ContraenteWriteRequest extends ApiRequest implements IContraenteWriteRequest {\r\n accordoID?: number;\r\n accordoContatto?: AccordoContatto | null;\r\n\r\n constructor(data?: IContraenteWriteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordoContatto = _data[\"accordoContatto\"] ? AccordoContatto.fromJS(_data[\"accordoContatto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraenteWriteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraenteWriteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordoContatto\"] = this.accordoContatto ? this.accordoContatto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraenteWriteRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordoContatto?: AccordoContatto | null;\r\n}\r\n\r\nexport class ContraenteDeleteRequest extends ApiRequest implements IContraenteDeleteRequest {\r\n accordoID?: number;\r\n accordoContattoID?: number;\r\n\r\n constructor(data?: IContraenteDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordoContattoID = _data[\"accordoContattoID\"] !== undefined ? _data[\"accordoContattoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraenteDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraenteDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordoContattoID\"] = this.accordoContattoID !== undefined ? this.accordoContattoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraenteDeleteRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordoContattoID?: number;\r\n}\r\n\r\nexport class ContraenteDeleteMultiRequest extends ApiRequest implements IContraenteDeleteMultiRequest {\r\n accordoID?: number;\r\n accordiContattiIDs?: number[] | null;\r\n\r\n constructor(data?: IContraenteDeleteMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n if (Array.isArray(_data[\"accordiContattiIDs\"])) {\r\n this.accordiContattiIDs = [] as any;\r\n for (let item of _data[\"accordiContattiIDs\"])\r\n this.accordiContattiIDs!.push(item);\r\n }\r\n else {\r\n this.accordiContattiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContraenteDeleteMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContraenteDeleteMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n if (Array.isArray(this.accordiContattiIDs)) {\r\n data[\"accordiContattiIDs\"] = [];\r\n for (let item of this.accordiContattiIDs)\r\n data[\"accordiContattiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContraenteDeleteMultiRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordiContattiIDs?: number[] | null;\r\n}\r\n\r\nexport class NrTableResponseOfDatoAggiuntivoRow extends OkApiResponse implements INrTableResponseOfDatoAggiuntivoRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: DatoAggiuntivoRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfDatoAggiuntivoRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(DatoAggiuntivoRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfDatoAggiuntivoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfDatoAggiuntivoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfDatoAggiuntivoRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: DatoAggiuntivoRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class DatoAggiuntivoRow implements IDatoAggiuntivoRow {\r\n id?: number;\r\n iban?: string | null;\r\n swift?: string | null;\r\n banca?: string | null;\r\n\r\n constructor(data?: IDatoAggiuntivoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.iban = _data[\"iban\"] !== undefined ? _data[\"iban\"] : null;\r\n this.swift = _data[\"swift\"] !== undefined ? _data[\"swift\"] : null;\r\n this.banca = _data[\"banca\"] !== undefined ? _data[\"banca\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"iban\"] = this.iban !== undefined ? this.iban : null;\r\n data[\"swift\"] = this.swift !== undefined ? this.swift : null;\r\n data[\"banca\"] = this.banca !== undefined ? this.banca : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoRow {\r\n id?: number;\r\n iban?: string | null;\r\n swift?: string | null;\r\n banca?: string | null;\r\n}\r\n\r\nexport class DatiAggiuntiviSearchRequest extends NrTableRequest implements IDatiAggiuntiviSearchRequest {\r\n accordoId?: number;\r\n\r\n constructor(data?: IDatiAggiuntiviSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoId = _data[\"accordoId\"] !== undefined ? _data[\"accordoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatiAggiuntiviSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatiAggiuntiviSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoId\"] = this.accordoId !== undefined ? this.accordoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatiAggiuntiviSearchRequest extends INrTableRequest {\r\n accordoId?: number;\r\n}\r\n\r\nexport class DatoAggiuntivoReadResponse extends OkApiResponse implements IDatoAggiuntivoReadResponse {\r\n accordoDatoAggiuntivo?: AccordoDatoAggiuntivo | null;\r\n\r\n constructor(data?: IDatoAggiuntivoReadResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoDatoAggiuntivo = _data[\"accordoDatoAggiuntivo\"] ? AccordoDatoAggiuntivo.fromJS(_data[\"accordoDatoAggiuntivo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoReadResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoReadResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoDatoAggiuntivo\"] = this.accordoDatoAggiuntivo ? this.accordoDatoAggiuntivo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoReadResponse extends IOkApiResponse {\r\n accordoDatoAggiuntivo?: AccordoDatoAggiuntivo | null;\r\n}\r\n\r\nexport class AccordoDatoAggiuntivo implements IAccordoDatoAggiuntivo {\r\n datoAggiuntivoID?: number;\r\n accordoID?: number;\r\n iban?: string | null;\r\n swift?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n banca?: string | null;\r\n\r\n constructor(data?: IAccordoDatoAggiuntivo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.datoAggiuntivoID = _data[\"datoAggiuntivoID\"] !== undefined ? _data[\"datoAggiuntivoID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.iban = _data[\"iban\"] !== undefined ? _data[\"iban\"] : null;\r\n this.swift = _data[\"swift\"] !== undefined ? _data[\"swift\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.banca = _data[\"banca\"] !== undefined ? _data[\"banca\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoDatoAggiuntivo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoDatoAggiuntivo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"datoAggiuntivoID\"] = this.datoAggiuntivoID !== undefined ? this.datoAggiuntivoID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"iban\"] = this.iban !== undefined ? this.iban : null;\r\n data[\"swift\"] = this.swift !== undefined ? this.swift : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"banca\"] = this.banca !== undefined ? this.banca : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoDatoAggiuntivo {\r\n datoAggiuntivoID?: number;\r\n accordoID?: number;\r\n iban?: string | null;\r\n swift?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n banca?: string | null;\r\n}\r\n\r\nexport class DatoAggiuntivoReadRequest extends ApiRequest implements IDatoAggiuntivoReadRequest {\r\n accordoID?: number;\r\n accordoDatoAggiuntivoID?: number;\r\n\r\n constructor(data?: IDatoAggiuntivoReadRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordoDatoAggiuntivoID = _data[\"accordoDatoAggiuntivoID\"] !== undefined ? _data[\"accordoDatoAggiuntivoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoReadRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoReadRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordoDatoAggiuntivoID\"] = this.accordoDatoAggiuntivoID !== undefined ? this.accordoDatoAggiuntivoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoReadRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordoDatoAggiuntivoID?: number;\r\n}\r\n\r\nexport class DatoAggiuntivoWriteResponse extends OkApiResponse implements IDatoAggiuntivoWriteResponse {\r\n accordoDatoAggiuntivo?: AccordoDatoAggiuntivo | null;\r\n\r\n constructor(data?: IDatoAggiuntivoWriteResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoDatoAggiuntivo = _data[\"accordoDatoAggiuntivo\"] ? AccordoDatoAggiuntivo.fromJS(_data[\"accordoDatoAggiuntivo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoWriteResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoWriteResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoDatoAggiuntivo\"] = this.accordoDatoAggiuntivo ? this.accordoDatoAggiuntivo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoWriteResponse extends IOkApiResponse {\r\n accordoDatoAggiuntivo?: AccordoDatoAggiuntivo | null;\r\n}\r\n\r\nexport class DatoAggiuntivoWriteRequest extends ApiRequest implements IDatoAggiuntivoWriteRequest {\r\n accordoID?: number;\r\n accordoDatoAggiuntivo?: AccordoDatoAggiuntivo | null;\r\n\r\n constructor(data?: IDatoAggiuntivoWriteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordoDatoAggiuntivo = _data[\"accordoDatoAggiuntivo\"] ? AccordoDatoAggiuntivo.fromJS(_data[\"accordoDatoAggiuntivo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoWriteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoWriteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordoDatoAggiuntivo\"] = this.accordoDatoAggiuntivo ? this.accordoDatoAggiuntivo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoWriteRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordoDatoAggiuntivo?: AccordoDatoAggiuntivo | null;\r\n}\r\n\r\nexport class DatoAggiuntivoDeleteRequest extends ApiRequest implements IDatoAggiuntivoDeleteRequest {\r\n accordoID?: number;\r\n accordoDatoAggiuntivoID?: number;\r\n\r\n constructor(data?: IDatoAggiuntivoDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordoDatoAggiuntivoID = _data[\"accordoDatoAggiuntivoID\"] !== undefined ? _data[\"accordoDatoAggiuntivoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordoDatoAggiuntivoID\"] = this.accordoDatoAggiuntivoID !== undefined ? this.accordoDatoAggiuntivoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoDeleteRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordoDatoAggiuntivoID?: number;\r\n}\r\n\r\nexport class DatoAggiuntivoDeleteMultiRequest extends ApiRequest implements IDatoAggiuntivoDeleteMultiRequest {\r\n accordoID?: number;\r\n accordiContattiIDs?: number[] | null;\r\n\r\n constructor(data?: IDatoAggiuntivoDeleteMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n if (Array.isArray(_data[\"accordiContattiIDs\"])) {\r\n this.accordiContattiIDs = [] as any;\r\n for (let item of _data[\"accordiContattiIDs\"])\r\n this.accordiContattiIDs!.push(item);\r\n }\r\n else {\r\n this.accordiContattiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoDeleteMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoDeleteMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n if (Array.isArray(this.accordiContattiIDs)) {\r\n data[\"accordiContattiIDs\"] = [];\r\n for (let item of this.accordiContattiIDs)\r\n data[\"accordiContattiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoDeleteMultiRequest extends IApiRequest {\r\n accordoID?: number;\r\n accordiContattiIDs?: number[] | null;\r\n}\r\n\r\nexport class NrTableResponseOfTabellaCostiCommissioniRow extends OkApiResponse implements INrTableResponseOfTabellaCostiCommissioniRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TabellaCostiCommissioniRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTabellaCostiCommissioniRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TabellaCostiCommissioniRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTabellaCostiCommissioniRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTabellaCostiCommissioniRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTabellaCostiCommissioniRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TabellaCostiCommissioniRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class TabellaCostiCommissioniRow implements ITabellaCostiCommissioniRow {\r\n id?: number;\r\n nome?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n commissionePercentuale?: number;\r\n commissionePercentualeWeb?: number;\r\n\r\n constructor(data?: ITabellaCostiCommissioniRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.commissionePercentuale = _data[\"commissionePercentuale\"] !== undefined ? _data[\"commissionePercentuale\"] : null;\r\n this.commissionePercentualeWeb = _data[\"commissionePercentualeWeb\"] !== undefined ? _data[\"commissionePercentualeWeb\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"commissionePercentuale\"] = this.commissionePercentuale !== undefined ? this.commissionePercentuale : null;\r\n data[\"commissionePercentualeWeb\"] = this.commissionePercentualeWeb !== undefined ? this.commissionePercentualeWeb : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniRow {\r\n id?: number;\r\n nome?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n commissionePercentuale?: number;\r\n commissionePercentualeWeb?: number;\r\n}\r\n\r\nexport class TabelleCostiCommissioniSearchRequest extends NrTableRequest implements ITabelleCostiCommissioniSearchRequest {\r\n accordoId?: number;\r\n\r\n constructor(data?: ITabelleCostiCommissioniSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoId = _data[\"accordoId\"] !== undefined ? _data[\"accordoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabelleCostiCommissioniSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabelleCostiCommissioniSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoId\"] = this.accordoId !== undefined ? this.accordoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabelleCostiCommissioniSearchRequest extends INrTableRequest {\r\n accordoId?: number;\r\n}\r\n\r\nexport class TabelleCostiCommissioniListResponse extends OkApiResponse implements ITabelleCostiCommissioniListResponse {\r\n tabelle?: TabellaCostiCommissioniList[] | null;\r\n\r\n constructor(data?: ITabelleCostiCommissioniListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tabelle\"])) {\r\n this.tabelle = [] as any;\r\n for (let item of _data[\"tabelle\"])\r\n this.tabelle!.push(TabellaCostiCommissioniList.fromJS(item));\r\n }\r\n else {\r\n this.tabelle = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabelleCostiCommissioniListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabelleCostiCommissioniListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tabelle)) {\r\n data[\"tabelle\"] = [];\r\n for (let item of this.tabelle)\r\n data[\"tabelle\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabelleCostiCommissioniListResponse extends IOkApiResponse {\r\n tabelle?: TabellaCostiCommissioniList[] | null;\r\n}\r\n\r\nexport class TabellaCostiCommissioniList implements ITabellaCostiCommissioniList {\r\n tabella?: TabellaCostiCommissioni | null;\r\n nome?: string | null;\r\n codiceValuta?: string | null;\r\n\r\n constructor(data?: ITabellaCostiCommissioniList) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tabella = _data[\"tabella\"] ? TabellaCostiCommissioni.fromJS(_data[\"tabella\"]) : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniList {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniList();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tabella\"] = this.tabella ? this.tabella.toJSON() : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniList {\r\n tabella?: TabellaCostiCommissioni | null;\r\n nome?: string | null;\r\n codiceValuta?: string | null;\r\n}\r\n\r\nexport class TabellaCostiCommissioni implements ITabellaCostiCommissioni {\r\n tabellaCostiCommissioniID?: number;\r\n accordoID?: number;\r\n nome!: string;\r\n nomeOriginale?: string | null;\r\n descrizioneWeb?: string | null;\r\n dal?: string;\r\n al?: string;\r\n tipo?: ETipoTabellaCostiCommissioni | null;\r\n tipoCommissione?: ETipoCommissione | null;\r\n prenotaEntro?: string | null;\r\n prenotaDopo?: string | null;\r\n prenotaEntroGiorni?: number | null;\r\n regolaInserimentoID?: number | null;\r\n commissionePercentuale?: number;\r\n commissionePercentualeWeb?: number;\r\n commissionePercentualePacchetti?: number | null;\r\n permutaBambini?: boolean | null;\r\n nonRimborsabile?: boolean;\r\n pagaSubito?: boolean;\r\n nozze?: boolean;\r\n fisso?: boolean;\r\n codiceAviomar?: number | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n ordine?: number | null;\r\n\r\n constructor(data?: ITabellaCostiCommissioni) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tabellaCostiCommissioniID = _data[\"tabellaCostiCommissioniID\"] !== undefined ? _data[\"tabellaCostiCommissioniID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeOriginale = _data[\"nomeOriginale\"] !== undefined ? _data[\"nomeOriginale\"] : null;\r\n this.descrizioneWeb = _data[\"descrizioneWeb\"] !== undefined ? _data[\"descrizioneWeb\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.tipoCommissione = _data[\"tipoCommissione\"] !== undefined ? _data[\"tipoCommissione\"] : null;\r\n this.prenotaEntro = _data[\"prenotaEntro\"] !== undefined ? _data[\"prenotaEntro\"] : null;\r\n this.prenotaDopo = _data[\"prenotaDopo\"] !== undefined ? _data[\"prenotaDopo\"] : null;\r\n this.prenotaEntroGiorni = _data[\"prenotaEntroGiorni\"] !== undefined ? _data[\"prenotaEntroGiorni\"] : null;\r\n this.regolaInserimentoID = _data[\"regolaInserimentoID\"] !== undefined ? _data[\"regolaInserimentoID\"] : null;\r\n this.commissionePercentuale = _data[\"commissionePercentuale\"] !== undefined ? _data[\"commissionePercentuale\"] : null;\r\n this.commissionePercentualeWeb = _data[\"commissionePercentualeWeb\"] !== undefined ? _data[\"commissionePercentualeWeb\"] : null;\r\n this.commissionePercentualePacchetti = _data[\"commissionePercentualePacchetti\"] !== undefined ? _data[\"commissionePercentualePacchetti\"] : null;\r\n this.permutaBambini = _data[\"permutaBambini\"] !== undefined ? _data[\"permutaBambini\"] : null;\r\n this.nonRimborsabile = _data[\"nonRimborsabile\"] !== undefined ? _data[\"nonRimborsabile\"] : null;\r\n this.pagaSubito = _data[\"pagaSubito\"] !== undefined ? _data[\"pagaSubito\"] : null;\r\n this.nozze = _data[\"nozze\"] !== undefined ? _data[\"nozze\"] : null;\r\n this.fisso = _data[\"fisso\"] !== undefined ? _data[\"fisso\"] : null;\r\n this.codiceAviomar = _data[\"codiceAviomar\"] !== undefined ? _data[\"codiceAviomar\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioni {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioni();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tabellaCostiCommissioniID\"] = this.tabellaCostiCommissioniID !== undefined ? this.tabellaCostiCommissioniID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeOriginale\"] = this.nomeOriginale !== undefined ? this.nomeOriginale : null;\r\n data[\"descrizioneWeb\"] = this.descrizioneWeb !== undefined ? this.descrizioneWeb : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"tipoCommissione\"] = this.tipoCommissione !== undefined ? this.tipoCommissione : null;\r\n data[\"prenotaEntro\"] = this.prenotaEntro !== undefined ? this.prenotaEntro : null;\r\n data[\"prenotaDopo\"] = this.prenotaDopo !== undefined ? this.prenotaDopo : null;\r\n data[\"prenotaEntroGiorni\"] = this.prenotaEntroGiorni !== undefined ? this.prenotaEntroGiorni : null;\r\n data[\"regolaInserimentoID\"] = this.regolaInserimentoID !== undefined ? this.regolaInserimentoID : null;\r\n data[\"commissionePercentuale\"] = this.commissionePercentuale !== undefined ? this.commissionePercentuale : null;\r\n data[\"commissionePercentualeWeb\"] = this.commissionePercentualeWeb !== undefined ? this.commissionePercentualeWeb : null;\r\n data[\"commissionePercentualePacchetti\"] = this.commissionePercentualePacchetti !== undefined ? this.commissionePercentualePacchetti : null;\r\n data[\"permutaBambini\"] = this.permutaBambini !== undefined ? this.permutaBambini : null;\r\n data[\"nonRimborsabile\"] = this.nonRimborsabile !== undefined ? this.nonRimborsabile : null;\r\n data[\"pagaSubito\"] = this.pagaSubito !== undefined ? this.pagaSubito : null;\r\n data[\"nozze\"] = this.nozze !== undefined ? this.nozze : null;\r\n data[\"fisso\"] = this.fisso !== undefined ? this.fisso : null;\r\n data[\"codiceAviomar\"] = this.codiceAviomar !== undefined ? this.codiceAviomar : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioni {\r\n tabellaCostiCommissioniID?: number;\r\n accordoID?: number;\r\n nome: string;\r\n nomeOriginale?: string | null;\r\n descrizioneWeb?: string | null;\r\n dal?: string;\r\n al?: string;\r\n tipo?: ETipoTabellaCostiCommissioni | null;\r\n tipoCommissione?: ETipoCommissione | null;\r\n prenotaEntro?: string | null;\r\n prenotaDopo?: string | null;\r\n prenotaEntroGiorni?: number | null;\r\n regolaInserimentoID?: number | null;\r\n commissionePercentuale?: number;\r\n commissionePercentualeWeb?: number;\r\n commissionePercentualePacchetti?: number | null;\r\n permutaBambini?: boolean | null;\r\n nonRimborsabile?: boolean;\r\n pagaSubito?: boolean;\r\n nozze?: boolean;\r\n fisso?: boolean;\r\n codiceAviomar?: number | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n ordine?: number | null;\r\n}\r\n\r\nexport enum ETipoTabellaCostiCommissioni {\r\n Standard = \"Standard\",\r\n LastMinute = \"LastMinute\",\r\n PrenotaPrima = \"PrenotaPrima\",\r\n}\r\n\r\nexport enum ETipoCommissione {\r\n ContrattiAlNetto = \"ContrattiAlNetto\",\r\n SuLordo = \"SuLordo\",\r\n SuImponibile = \"SuImponibile\",\r\n ScontoCommerciale = \"ScontoCommerciale\",\r\n}\r\n\r\nexport class SiteRequest extends LocalizedRequest implements ISiteRequest {\r\n siteID?: number;\r\n\r\n constructor(data?: ISiteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.siteID = _data[\"siteID\"] !== undefined ? _data[\"siteID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SiteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SiteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"siteID\"] = this.siteID !== undefined ? this.siteID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISiteRequest extends ILocalizedRequest {\r\n siteID?: number;\r\n}\r\n\r\nexport class TabelleCostiCommissioniListRequest extends SiteRequest implements ITabelleCostiCommissioniListRequest {\r\n accordoID?: number;\r\n\r\n constructor(data?: ITabelleCostiCommissioniListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabelleCostiCommissioniListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabelleCostiCommissioniListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabelleCostiCommissioniListRequest extends ISiteRequest {\r\n accordoID?: number;\r\n}\r\n\r\nexport class TabellaCostiCommissioniReadResponse extends OkApiResponse implements ITabellaCostiCommissioniReadResponse {\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni | null;\r\n\r\n constructor(data?: ITabellaCostiCommissioniReadResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tabellaCostiCommissioni = _data[\"tabellaCostiCommissioni\"] ? TabellaCostiCommissioni.fromJS(_data[\"tabellaCostiCommissioni\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniReadResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniReadResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tabellaCostiCommissioni\"] = this.tabellaCostiCommissioni ? this.tabellaCostiCommissioni.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniReadResponse extends IOkApiResponse {\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni | null;\r\n}\r\n\r\nexport class TabellaCostiCommissioniReadRequest extends ApiRequest implements ITabellaCostiCommissioniReadRequest {\r\n accordoID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n\r\n constructor(data?: ITabellaCostiCommissioniReadRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.tabellaCostiCommissioniID = _data[\"tabellaCostiCommissioniID\"] !== undefined ? _data[\"tabellaCostiCommissioniID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniReadRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniReadRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"tabellaCostiCommissioniID\"] = this.tabellaCostiCommissioniID !== undefined ? this.tabellaCostiCommissioniID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniReadRequest extends IApiRequest {\r\n accordoID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n}\r\n\r\nexport class TabellaCostiCommissioniWriteResponse extends OkApiResponse implements ITabellaCostiCommissioniWriteResponse {\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni | null;\r\n\r\n constructor(data?: ITabellaCostiCommissioniWriteResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tabellaCostiCommissioni = _data[\"tabellaCostiCommissioni\"] ? TabellaCostiCommissioni.fromJS(_data[\"tabellaCostiCommissioni\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniWriteResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniWriteResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tabellaCostiCommissioni\"] = this.tabellaCostiCommissioni ? this.tabellaCostiCommissioni.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniWriteResponse extends IOkApiResponse {\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni | null;\r\n}\r\n\r\nexport class TabellaCostiCommissioniWriteRequest extends ApiRequest implements ITabellaCostiCommissioniWriteRequest {\r\n accordoID?: number;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni | null;\r\n\r\n constructor(data?: ITabellaCostiCommissioniWriteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.tabellaCostiCommissioni = _data[\"tabellaCostiCommissioni\"] ? TabellaCostiCommissioni.fromJS(_data[\"tabellaCostiCommissioni\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniWriteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniWriteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"tabellaCostiCommissioni\"] = this.tabellaCostiCommissioni ? this.tabellaCostiCommissioni.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniWriteRequest extends IApiRequest {\r\n accordoID?: number;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni | null;\r\n}\r\n\r\nexport class TabellaCostiCommissioniDeleteRequest extends ApiRequest implements ITabellaCostiCommissioniDeleteRequest {\r\n accordoID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n\r\n constructor(data?: ITabellaCostiCommissioniDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.tabellaCostiCommissioniID = _data[\"tabellaCostiCommissioniID\"] !== undefined ? _data[\"tabellaCostiCommissioniID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"tabellaCostiCommissioniID\"] = this.tabellaCostiCommissioniID !== undefined ? this.tabellaCostiCommissioniID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniDeleteRequest extends IApiRequest {\r\n accordoID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n}\r\n\r\nexport class TabellaCostiCommissioniDeleteMultiRequest extends ApiRequest implements ITabellaCostiCommissioniDeleteMultiRequest {\r\n accordoID?: number;\r\n tabelleCostiCommissioniIDs?: number[] | null;\r\n\r\n constructor(data?: ITabellaCostiCommissioniDeleteMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n if (Array.isArray(_data[\"tabelleCostiCommissioniIDs\"])) {\r\n this.tabelleCostiCommissioniIDs = [] as any;\r\n for (let item of _data[\"tabelleCostiCommissioniIDs\"])\r\n this.tabelleCostiCommissioniIDs!.push(item);\r\n }\r\n else {\r\n this.tabelleCostiCommissioniIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniDeleteMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniDeleteMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n if (Array.isArray(this.tabelleCostiCommissioniIDs)) {\r\n data[\"tabelleCostiCommissioniIDs\"] = [];\r\n for (let item of this.tabelleCostiCommissioniIDs)\r\n data[\"tabelleCostiCommissioniIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniDeleteMultiRequest extends IApiRequest {\r\n accordoID?: number;\r\n tabelleCostiCommissioniIDs?: number[] | null;\r\n}\r\n\r\nexport class NrTableResponseOfAccordoRow extends OkApiResponse implements INrTableResponseOfAccordoRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AccordoRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAccordoRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AccordoRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAccordoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAccordoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAccordoRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AccordoRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\n/** Vista di riga per l'elenco accordi */\r\nexport class AccordoRow implements IAccordoRow {\r\n /** ID dell'accordo */\r\n id?: number;\r\n /** Nome dell'accordo */\r\n nome?: string | null;\r\n /** Operatore al quale si applica l'accordo */\r\n operatore?: EOperatore | null;\r\n /** Nome visualizzato del contatto dell'accordo */\r\n contatto?: string | null;\r\n /** Nome del luogo del contatto dell'accordo */\r\n luogo?: string | null;\r\n /** Se true il luogo è eliminato */\r\n luogoEliminato?: boolean;\r\n /** Codice mnemonico dell'accordo */\r\n memo?: string | null;\r\n /** Data di validità \"dal\" */\r\n dal?: string | null;\r\n /** Data di validità \"al\" */\r\n al?: string | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IAccordoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoEliminato = _data[\"luogoEliminato\"] !== undefined ? _data[\"luogoEliminato\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoEliminato\"] = this.luogoEliminato !== undefined ? this.luogoEliminato : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Vista di riga per l'elenco accordi */\r\nexport interface IAccordoRow {\r\n /** ID dell'accordo */\r\n id?: number;\r\n /** Nome dell'accordo */\r\n nome?: string | null;\r\n /** Operatore al quale si applica l'accordo */\r\n operatore?: EOperatore | null;\r\n /** Nome visualizzato del contatto dell'accordo */\r\n contatto?: string | null;\r\n /** Nome del luogo del contatto dell'accordo */\r\n luogo?: string | null;\r\n /** Se true il luogo è eliminato */\r\n luogoEliminato?: boolean;\r\n /** Codice mnemonico dell'accordo */\r\n memo?: string | null;\r\n /** Data di validità \"dal\" */\r\n dal?: string | null;\r\n /** Data di validità \"al\" */\r\n al?: string | null;\r\n deleted?: string | null;\r\n}\r\n\r\n/** Filtri per la ricerca paginata degli accordi */\r\nexport class AccordiSearchRequest extends NrTableRequest implements IAccordiSearchRequest {\r\n /** Nome da ricercare, o parte. Case insensitive */\r\n nome?: string | null;\r\n /** Tipo di accordo, obbligatorio */\r\n tipo?: ETipoAccordo;\r\n /** Id del contatto. Facoltativo */\r\n contattoId?: number | null;\r\n /** Filtro sul tipo di scadenza */\r\n filtroScadenza?: EFiltroScadenzaAccordi;\r\n operatore?: EOperatore | null;\r\n /** Show also deleted items */\r\n showValid?: boolean | null;\r\n\r\n constructor(data?: IAccordiSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n this.filtroScadenza = _data[\"filtroScadenza\"] !== undefined ? _data[\"filtroScadenza\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.showValid = _data[\"showValid\"] !== undefined ? _data[\"showValid\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordiSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordiSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n data[\"filtroScadenza\"] = this.filtroScadenza !== undefined ? this.filtroScadenza : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"showValid\"] = this.showValid !== undefined ? this.showValid : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Filtri per la ricerca paginata degli accordi */\r\nexport interface IAccordiSearchRequest extends INrTableRequest {\r\n /** Nome da ricercare, o parte. Case insensitive */\r\n nome?: string | null;\r\n /** Tipo di accordo, obbligatorio */\r\n tipo?: ETipoAccordo;\r\n /** Id del contatto. Facoltativo */\r\n contattoId?: number | null;\r\n /** Filtro sul tipo di scadenza */\r\n filtroScadenza?: EFiltroScadenzaAccordi;\r\n operatore?: EOperatore | null;\r\n /** Show also deleted items */\r\n showValid?: boolean | null;\r\n}\r\n\r\n/** Modalità del filtro scadenza per gli accordi */\r\nexport enum EFiltroScadenzaAccordi {\r\n Qualsiasi = \"Qualsiasi\",\r\n Scaduti = \"Scaduti\",\r\n NonScaduti = \"NonScaduti\",\r\n ValidiAdesso = \"ValidiAdesso\",\r\n ValidiInFuturo = \"ValidiInFuturo\",\r\n}\r\n\r\nexport class GetCurrenciesExportRequest extends LocalizedRequest implements IGetCurrenciesExportRequest {\r\n exportEntityName?: string | null;\r\n exportFieldsNames?: { [key: string]: string; } | null;\r\n fieldsDecoders?: { [key: string]: { [key: string]: string; }; } | null;\r\n\r\n constructor(data?: IGetCurrenciesExportRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.exportEntityName = _data[\"exportEntityName\"] !== undefined ? _data[\"exportEntityName\"] : null;\r\n if (_data[\"exportFieldsNames\"]) {\r\n this.exportFieldsNames = {} as any;\r\n for (let key in _data[\"exportFieldsNames\"]) {\r\n if (_data[\"exportFieldsNames\"].hasOwnProperty(key))\r\n (this.exportFieldsNames)![key] = _data[\"exportFieldsNames\"][key] !== undefined ? _data[\"exportFieldsNames\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.exportFieldsNames = null;\r\n }\r\n if (_data[\"fieldsDecoders\"]) {\r\n this.fieldsDecoders = {} as any;\r\n for (let key in _data[\"fieldsDecoders\"]) {\r\n if (_data[\"fieldsDecoders\"].hasOwnProperty(key))\r\n (this.fieldsDecoders)![key] = _data[\"fieldsDecoders\"][key] !== undefined ? _data[\"fieldsDecoders\"][key] : {};\r\n }\r\n }\r\n else {\r\n this.fieldsDecoders = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCurrenciesExportRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCurrenciesExportRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"exportEntityName\"] = this.exportEntityName !== undefined ? this.exportEntityName : null;\r\n if (this.exportFieldsNames) {\r\n data[\"exportFieldsNames\"] = {};\r\n for (let key in this.exportFieldsNames) {\r\n if (this.exportFieldsNames.hasOwnProperty(key))\r\n (data[\"exportFieldsNames\"])[key] = this.exportFieldsNames[key] !== undefined ? this.exportFieldsNames[key] : null;\r\n }\r\n }\r\n if (this.fieldsDecoders) {\r\n data[\"fieldsDecoders\"] = {};\r\n for (let key in this.fieldsDecoders) {\r\n if (this.fieldsDecoders.hasOwnProperty(key))\r\n (data[\"fieldsDecoders\"])[key] = this.fieldsDecoders[key] !== undefined ? this.fieldsDecoders[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCurrenciesExportRequest extends ILocalizedRequest {\r\n exportEntityName?: string | null;\r\n exportFieldsNames?: { [key: string]: string; } | null;\r\n fieldsDecoders?: { [key: string]: { [key: string]: string; }; } | null;\r\n}\r\n\r\nexport class GetCurrenciesListResponse extends OkApiResponse implements IGetCurrenciesListResponse {\r\n /** Elenco delle valute e relativi cambi */\r\n currencies?: CurrencyRow[];\r\n\r\n constructor(data?: IGetCurrenciesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"currencies\"])) {\r\n this.currencies = [] as any;\r\n for (let item of _data[\"currencies\"])\r\n this.currencies!.push(CurrencyRow.fromJS(item));\r\n }\r\n else {\r\n this.currencies = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCurrenciesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCurrenciesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.currencies)) {\r\n data[\"currencies\"] = [];\r\n for (let item of this.currencies)\r\n data[\"currencies\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCurrenciesListResponse extends IOkApiResponse {\r\n /** Elenco delle valute e relativi cambi */\r\n currencies?: CurrencyRow[];\r\n}\r\n\r\nexport class CurrencyRow implements ICurrencyRow {\r\n /** ID della valuta */\r\n id?: number;\r\n /** Codice a 3 lettere della valuta */\r\n code?: string;\r\n /** Nome della valuta */\r\n name?: string;\r\n /** Valore di cambio corrente */\r\n valoreCorrente?: number | null;\r\n /** Valore di cambio applicato alle offerte corrente */\r\n valoreApplicato?: number | null;\r\n /** Ultimo aggiornamento del valore */\r\n lastUpdate?: string | null;\r\n\r\n constructor(data?: ICurrencyRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.valoreCorrente = _data[\"valoreCorrente\"] !== undefined ? _data[\"valoreCorrente\"] : null;\r\n this.valoreApplicato = _data[\"valoreApplicato\"] !== undefined ? _data[\"valoreApplicato\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CurrencyRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CurrencyRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"valoreCorrente\"] = this.valoreCorrente !== undefined ? this.valoreCorrente : null;\r\n data[\"valoreApplicato\"] = this.valoreApplicato !== undefined ? this.valoreApplicato : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICurrencyRow {\r\n /** ID della valuta */\r\n id?: number;\r\n /** Codice a 3 lettere della valuta */\r\n code?: string;\r\n /** Nome della valuta */\r\n name?: string;\r\n /** Valore di cambio corrente */\r\n valoreCorrente?: number | null;\r\n /** Valore di cambio applicato alle offerte corrente */\r\n valoreApplicato?: number | null;\r\n /** Ultimo aggiornamento del valore */\r\n lastUpdate?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfValutaValore extends OkApiResponse implements INrTableResponseOfValutaValore {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ValutaValore[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfValutaValore) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ValutaValore.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfValutaValore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfValutaValore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfValutaValore extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ValutaValore[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetCurrencyHistoryResponse extends NrTableResponseOfValutaValore implements IGetCurrencyHistoryResponse {\r\n\r\n constructor(data?: IGetCurrencyHistoryResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetCurrencyHistoryResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCurrencyHistoryResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCurrencyHistoryResponse extends INrTableResponseOfValutaValore {\r\n}\r\n\r\nexport class ValutaValore implements IValutaValore {\r\n valutaValoreID?: number;\r\n valutaID?: number;\r\n data?: string;\r\n valoreCorrente?: number;\r\n valore?: number;\r\n valoreApplicato?: number;\r\n attiva?: boolean | null;\r\n operatoreID?: number | null;\r\n\r\n constructor(data?: IValutaValore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.valutaValoreID = _data[\"valutaValoreID\"] !== undefined ? _data[\"valutaValoreID\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.valoreCorrente = _data[\"valoreCorrente\"] !== undefined ? _data[\"valoreCorrente\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n this.valoreApplicato = _data[\"valoreApplicato\"] !== undefined ? _data[\"valoreApplicato\"] : null;\r\n this.attiva = _data[\"attiva\"] !== undefined ? _data[\"attiva\"] : null;\r\n this.operatoreID = _data[\"operatoreID\"] !== undefined ? _data[\"operatoreID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ValutaValore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ValutaValore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"valutaValoreID\"] = this.valutaValoreID !== undefined ? this.valutaValoreID : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"valoreCorrente\"] = this.valoreCorrente !== undefined ? this.valoreCorrente : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n data[\"valoreApplicato\"] = this.valoreApplicato !== undefined ? this.valoreApplicato : null;\r\n data[\"attiva\"] = this.attiva !== undefined ? this.attiva : null;\r\n data[\"operatoreID\"] = this.operatoreID !== undefined ? this.operatoreID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValutaValore {\r\n valutaValoreID?: number;\r\n valutaID?: number;\r\n data?: string;\r\n valoreCorrente?: number;\r\n valore?: number;\r\n valoreApplicato?: number;\r\n attiva?: boolean | null;\r\n operatoreID?: number | null;\r\n}\r\n\r\nexport class GetCurrencyHistoryRequest extends NrTableRequest implements IGetCurrencyHistoryRequest {\r\n /** ID della valuta di cui caricare lo storico */\r\n valutaID?: number;\r\n\r\n constructor(data?: IGetCurrencyHistoryRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCurrencyHistoryRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCurrencyHistoryRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCurrencyHistoryRequest extends INrTableRequest {\r\n /** ID della valuta di cui caricare lo storico */\r\n valutaID?: number;\r\n}\r\n\r\nexport class CurrencyRateInsertResponse extends OkApiResponse implements ICurrencyRateInsertResponse {\r\n /** Singola riga aggiornata */\r\n valutaAggiornata?: CurrencyRow;\r\n\r\n constructor(data?: ICurrencyRateInsertResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.valutaAggiornata = _data[\"valutaAggiornata\"] ? CurrencyRow.fromJS(_data[\"valutaAggiornata\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CurrencyRateInsertResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CurrencyRateInsertResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"valutaAggiornata\"] = this.valutaAggiornata ? this.valutaAggiornata.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICurrencyRateInsertResponse extends IOkApiResponse {\r\n /** Singola riga aggiornata */\r\n valutaAggiornata?: CurrencyRow;\r\n}\r\n\r\nexport class CurrencyRateInsertRequest extends LocalizedRequest implements ICurrencyRateInsertRequest {\r\n /** ID della valuta alla quale aggiungere un nuovo cambio */\r\n valutaID?: number;\r\n /** Nuovo valore corrente */\r\n valoreCorrente?: number;\r\n /** Nuovo valore applicato */\r\n valoreApplicato?: number;\r\n\r\n constructor(data?: ICurrencyRateInsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.valoreCorrente = _data[\"valoreCorrente\"] !== undefined ? _data[\"valoreCorrente\"] : null;\r\n this.valoreApplicato = _data[\"valoreApplicato\"] !== undefined ? _data[\"valoreApplicato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CurrencyRateInsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CurrencyRateInsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"valoreCorrente\"] = this.valoreCorrente !== undefined ? this.valoreCorrente : null;\r\n data[\"valoreApplicato\"] = this.valoreApplicato !== undefined ? this.valoreApplicato : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICurrencyRateInsertRequest extends ILocalizedRequest {\r\n /** ID della valuta alla quale aggiungere un nuovo cambio */\r\n valutaID?: number;\r\n /** Nuovo valore corrente */\r\n valoreCorrente?: number;\r\n /** Nuovo valore applicato */\r\n valoreApplicato?: number;\r\n}\r\n\r\nexport class GetNewExchangeRatesResponse extends OkApiResponse implements IGetNewExchangeRatesResponse {\r\n /** Elenco dei cambi */\r\n cambi?: ValutaValore[];\r\n\r\n constructor(data?: IGetNewExchangeRatesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"cambi\"])) {\r\n this.cambi = [] as any;\r\n for (let item of _data[\"cambi\"])\r\n this.cambi!.push(ValutaValore.fromJS(item));\r\n }\r\n else {\r\n this.cambi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetNewExchangeRatesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetNewExchangeRatesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.cambi)) {\r\n data[\"cambi\"] = [];\r\n for (let item of this.cambi)\r\n data[\"cambi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetNewExchangeRatesResponse extends IOkApiResponse {\r\n /** Elenco dei cambi */\r\n cambi?: ValutaValore[];\r\n}\r\n\r\nexport class ImportTicketsDeleteResponse extends OkApiResponse implements IImportTicketsDeleteResponse {\r\n\r\n constructor(data?: IImportTicketsDeleteResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ImportTicketsDeleteResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicketsDeleteResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicketsDeleteResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class ImportTicketsDeleteRequest extends ApiRequest implements IImportTicketsDeleteRequest {\r\n id?: number;\r\n\r\n constructor(data?: IImportTicketsDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportTicketsDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicketsDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicketsDeleteRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class ImportTicketsGetResponse extends OkApiResponse implements IImportTicketsGetResponse {\r\n id?: number;\r\n dataBolla?: string | null;\r\n numeroBolla?: string | null;\r\n vettore?: string | null;\r\n codiceV?: string | null;\r\n pax?: string | null;\r\n serie?: string | null;\r\n tkt?: string | null;\r\n routing?: string | null;\r\n classe?: string | null;\r\n nazInt?: string | null;\r\n partenza?: string | null;\r\n c_Costo?: number | null;\r\n commessa?: string | null;\r\n tariffaApplicata?: number | null;\r\n tax?: number | null;\r\n totale?: number | null;\r\n tariffaOrdinaria?: number | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n note?: string | null;\r\n partenzaPratica?: string | null;\r\n\r\n constructor(data?: IImportTicketsGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.dataBolla = _data[\"dataBolla\"] !== undefined ? _data[\"dataBolla\"] : null;\r\n this.numeroBolla = _data[\"numeroBolla\"] !== undefined ? _data[\"numeroBolla\"] : null;\r\n this.vettore = _data[\"vettore\"] !== undefined ? _data[\"vettore\"] : null;\r\n this.codiceV = _data[\"codiceV\"] !== undefined ? _data[\"codiceV\"] : null;\r\n this.pax = _data[\"pax\"] !== undefined ? _data[\"pax\"] : null;\r\n this.serie = _data[\"serie\"] !== undefined ? _data[\"serie\"] : null;\r\n this.tkt = _data[\"tkt\"] !== undefined ? _data[\"tkt\"] : null;\r\n this.routing = _data[\"routing\"] !== undefined ? _data[\"routing\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n this.nazInt = _data[\"nazInt\"] !== undefined ? _data[\"nazInt\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.c_Costo = _data[\"c_Costo\"] !== undefined ? _data[\"c_Costo\"] : null;\r\n this.commessa = _data[\"commessa\"] !== undefined ? _data[\"commessa\"] : null;\r\n this.tariffaApplicata = _data[\"tariffaApplicata\"] !== undefined ? _data[\"tariffaApplicata\"] : null;\r\n this.tax = _data[\"tax\"] !== undefined ? _data[\"tax\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.tariffaOrdinaria = _data[\"tariffaOrdinaria\"] !== undefined ? _data[\"tariffaOrdinaria\"] : null;\r\n this.f_Pag = _data[\"f_Pag\"] !== undefined ? _data[\"f_Pag\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.iva = _data[\"iva\"] !== undefined ? _data[\"iva\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.partenzaPratica = _data[\"partenzaPratica\"] !== undefined ? _data[\"partenzaPratica\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportTicketsGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicketsGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"dataBolla\"] = this.dataBolla !== undefined ? this.dataBolla : null;\r\n data[\"numeroBolla\"] = this.numeroBolla !== undefined ? this.numeroBolla : null;\r\n data[\"vettore\"] = this.vettore !== undefined ? this.vettore : null;\r\n data[\"codiceV\"] = this.codiceV !== undefined ? this.codiceV : null;\r\n data[\"pax\"] = this.pax !== undefined ? this.pax : null;\r\n data[\"serie\"] = this.serie !== undefined ? this.serie : null;\r\n data[\"tkt\"] = this.tkt !== undefined ? this.tkt : null;\r\n data[\"routing\"] = this.routing !== undefined ? this.routing : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n data[\"nazInt\"] = this.nazInt !== undefined ? this.nazInt : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"c_Costo\"] = this.c_Costo !== undefined ? this.c_Costo : null;\r\n data[\"commessa\"] = this.commessa !== undefined ? this.commessa : null;\r\n data[\"tariffaApplicata\"] = this.tariffaApplicata !== undefined ? this.tariffaApplicata : null;\r\n data[\"tax\"] = this.tax !== undefined ? this.tax : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"tariffaOrdinaria\"] = this.tariffaOrdinaria !== undefined ? this.tariffaOrdinaria : null;\r\n data[\"f_Pag\"] = this.f_Pag !== undefined ? this.f_Pag : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"iva\"] = this.iva !== undefined ? this.iva : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"partenzaPratica\"] = this.partenzaPratica !== undefined ? this.partenzaPratica : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicketsGetResponse extends IOkApiResponse {\r\n id?: number;\r\n dataBolla?: string | null;\r\n numeroBolla?: string | null;\r\n vettore?: string | null;\r\n codiceV?: string | null;\r\n pax?: string | null;\r\n serie?: string | null;\r\n tkt?: string | null;\r\n routing?: string | null;\r\n classe?: string | null;\r\n nazInt?: string | null;\r\n partenza?: string | null;\r\n c_Costo?: number | null;\r\n commessa?: string | null;\r\n tariffaApplicata?: number | null;\r\n tax?: number | null;\r\n totale?: number | null;\r\n tariffaOrdinaria?: number | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n note?: string | null;\r\n partenzaPratica?: string | null;\r\n}\r\n\r\nexport class ImportTicketsGetRequest extends ApiRequest implements IImportTicketsGetRequest {\r\n id!: number;\r\n\r\n constructor(data?: IImportTicketsGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportTicketsGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicketsGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicketsGetRequest extends IApiRequest {\r\n id: number;\r\n}\r\n\r\nexport class NrTableResponseOfTicketsRows extends OkApiResponse implements INrTableResponseOfTicketsRows {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TicketsRows[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTicketsRows) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TicketsRows.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTicketsRows {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTicketsRows();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTicketsRows extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TicketsRows[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ListTicketsResponse extends NrTableResponseOfTicketsRows implements IListTicketsResponse {\r\n\r\n constructor(data?: IListTicketsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ListTicketsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListTicketsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListTicketsResponse extends INrTableResponseOfTicketsRows {\r\n}\r\n\r\nexport class TicketsRows implements ITicketsRows {\r\n id?: number;\r\n dataBolla?: string | null;\r\n numeroBolla?: string | null;\r\n vettore?: string | null;\r\n codiceV?: string | null;\r\n pax?: string | null;\r\n serie?: string | null;\r\n tkt?: string | null;\r\n routing?: string | null;\r\n classe?: string | null;\r\n nazInt?: string | null;\r\n partenza?: string | null;\r\n c_Costo?: number | null;\r\n commessa?: string | null;\r\n tariffaApplicata?: number | null;\r\n tax?: number | null;\r\n totale?: number | null;\r\n tariffaOrdinaria?: number | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n note?: string | null;\r\n partenzaPratica?: string | null;\r\n ticketType?: ETicketsType;\r\n\r\n constructor(data?: ITicketsRows) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.dataBolla = _data[\"dataBolla\"] !== undefined ? _data[\"dataBolla\"] : null;\r\n this.numeroBolla = _data[\"numeroBolla\"] !== undefined ? _data[\"numeroBolla\"] : null;\r\n this.vettore = _data[\"vettore\"] !== undefined ? _data[\"vettore\"] : null;\r\n this.codiceV = _data[\"codiceV\"] !== undefined ? _data[\"codiceV\"] : null;\r\n this.pax = _data[\"pax\"] !== undefined ? _data[\"pax\"] : null;\r\n this.serie = _data[\"serie\"] !== undefined ? _data[\"serie\"] : null;\r\n this.tkt = _data[\"tkt\"] !== undefined ? _data[\"tkt\"] : null;\r\n this.routing = _data[\"routing\"] !== undefined ? _data[\"routing\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n this.nazInt = _data[\"nazInt\"] !== undefined ? _data[\"nazInt\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.c_Costo = _data[\"c_Costo\"] !== undefined ? _data[\"c_Costo\"] : null;\r\n this.commessa = _data[\"commessa\"] !== undefined ? _data[\"commessa\"] : null;\r\n this.tariffaApplicata = _data[\"tariffaApplicata\"] !== undefined ? _data[\"tariffaApplicata\"] : null;\r\n this.tax = _data[\"tax\"] !== undefined ? _data[\"tax\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.tariffaOrdinaria = _data[\"tariffaOrdinaria\"] !== undefined ? _data[\"tariffaOrdinaria\"] : null;\r\n this.f_Pag = _data[\"f_Pag\"] !== undefined ? _data[\"f_Pag\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.iva = _data[\"iva\"] !== undefined ? _data[\"iva\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.partenzaPratica = _data[\"partenzaPratica\"] !== undefined ? _data[\"partenzaPratica\"] : null;\r\n this.ticketType = _data[\"ticketType\"] !== undefined ? _data[\"ticketType\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TicketsRows {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TicketsRows();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"dataBolla\"] = this.dataBolla !== undefined ? this.dataBolla : null;\r\n data[\"numeroBolla\"] = this.numeroBolla !== undefined ? this.numeroBolla : null;\r\n data[\"vettore\"] = this.vettore !== undefined ? this.vettore : null;\r\n data[\"codiceV\"] = this.codiceV !== undefined ? this.codiceV : null;\r\n data[\"pax\"] = this.pax !== undefined ? this.pax : null;\r\n data[\"serie\"] = this.serie !== undefined ? this.serie : null;\r\n data[\"tkt\"] = this.tkt !== undefined ? this.tkt : null;\r\n data[\"routing\"] = this.routing !== undefined ? this.routing : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n data[\"nazInt\"] = this.nazInt !== undefined ? this.nazInt : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"c_Costo\"] = this.c_Costo !== undefined ? this.c_Costo : null;\r\n data[\"commessa\"] = this.commessa !== undefined ? this.commessa : null;\r\n data[\"tariffaApplicata\"] = this.tariffaApplicata !== undefined ? this.tariffaApplicata : null;\r\n data[\"tax\"] = this.tax !== undefined ? this.tax : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"tariffaOrdinaria\"] = this.tariffaOrdinaria !== undefined ? this.tariffaOrdinaria : null;\r\n data[\"f_Pag\"] = this.f_Pag !== undefined ? this.f_Pag : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"iva\"] = this.iva !== undefined ? this.iva : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"partenzaPratica\"] = this.partenzaPratica !== undefined ? this.partenzaPratica : null;\r\n data[\"ticketType\"] = this.ticketType !== undefined ? this.ticketType : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITicketsRows {\r\n id?: number;\r\n dataBolla?: string | null;\r\n numeroBolla?: string | null;\r\n vettore?: string | null;\r\n codiceV?: string | null;\r\n pax?: string | null;\r\n serie?: string | null;\r\n tkt?: string | null;\r\n routing?: string | null;\r\n classe?: string | null;\r\n nazInt?: string | null;\r\n partenza?: string | null;\r\n c_Costo?: number | null;\r\n commessa?: string | null;\r\n tariffaApplicata?: number | null;\r\n tax?: number | null;\r\n totale?: number | null;\r\n tariffaOrdinaria?: number | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n note?: string | null;\r\n partenzaPratica?: string | null;\r\n ticketType?: ETicketsType;\r\n}\r\n\r\nexport enum ETicketsType {\r\n Meridiano = \"Meridiano\",\r\n Amadeus = \"Amadeus\",\r\n}\r\n\r\nexport class ListTicketsRequest extends NrTableRequest implements IListTicketsRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n emessoDal?: string | null;\r\n emessoAl?: string | null;\r\n pax?: string | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n tkt?: string | null;\r\n ticketType?: ETicketsType | null;\r\n\r\n constructor(data?: IListTicketsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.emessoDal = _data[\"emessoDal\"] !== undefined ? _data[\"emessoDal\"] : null;\r\n this.emessoAl = _data[\"emessoAl\"] !== undefined ? _data[\"emessoAl\"] : null;\r\n this.pax = _data[\"pax\"] !== undefined ? _data[\"pax\"] : null;\r\n this.f_Pag = _data[\"f_Pag\"] !== undefined ? _data[\"f_Pag\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.iva = _data[\"iva\"] !== undefined ? _data[\"iva\"] : null;\r\n this.tkt = _data[\"tkt\"] !== undefined ? _data[\"tkt\"] : null;\r\n this.ticketType = _data[\"ticketType\"] !== undefined ? _data[\"ticketType\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListTicketsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListTicketsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"emessoDal\"] = this.emessoDal !== undefined ? this.emessoDal : null;\r\n data[\"emessoAl\"] = this.emessoAl !== undefined ? this.emessoAl : null;\r\n data[\"pax\"] = this.pax !== undefined ? this.pax : null;\r\n data[\"f_Pag\"] = this.f_Pag !== undefined ? this.f_Pag : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"iva\"] = this.iva !== undefined ? this.iva : null;\r\n data[\"tkt\"] = this.tkt !== undefined ? this.tkt : null;\r\n data[\"ticketType\"] = this.ticketType !== undefined ? this.ticketType : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListTicketsRequest extends INrTableRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n emessoDal?: string | null;\r\n emessoAl?: string | null;\r\n pax?: string | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n tkt?: string | null;\r\n ticketType?: ETicketsType | null;\r\n}\r\n\r\nexport class ImportTicketsUpdateResponse extends OkApiResponse implements IImportTicketsUpdateResponse {\r\n\r\n constructor(data?: IImportTicketsUpdateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ImportTicketsUpdateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicketsUpdateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicketsUpdateResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class ImportTicketsUpdateRequest extends ImportTicketsGetRequest implements IImportTicketsUpdateRequest {\r\n importTickets?: ImportTicket | null;\r\n\r\n constructor(data?: IImportTicketsUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.importTickets = _data[\"importTickets\"] ? ImportTicket.fromJS(_data[\"importTickets\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportTicketsUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicketsUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"importTickets\"] = this.importTickets ? this.importTickets.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicketsUpdateRequest extends IImportTicketsGetRequest {\r\n importTickets?: ImportTicket | null;\r\n}\r\n\r\nexport class ImportTicket implements IImportTicket {\r\n id?: number;\r\n dataBolla?: string | null;\r\n numeroBolla?: string | null;\r\n vettore?: string | null;\r\n codiceV?: string | null;\r\n pax?: string | null;\r\n serie?: string | null;\r\n tkt?: string | null;\r\n routing?: string | null;\r\n classe?: string | null;\r\n nazInt?: string | null;\r\n partenza?: string | null;\r\n c_Costo?: number | null;\r\n commessa?: string | null;\r\n tariffaApplicata?: number | null;\r\n tax?: number | null;\r\n totale?: number | null;\r\n tariffaOrdinaria?: number | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n note?: string | null;\r\n partenzaPratica?: string | null;\r\n ticketType?: ETicketsType;\r\n searchTerms?: string;\r\n\r\n constructor(data?: IImportTicket) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.dataBolla = _data[\"dataBolla\"] !== undefined ? _data[\"dataBolla\"] : null;\r\n this.numeroBolla = _data[\"numeroBolla\"] !== undefined ? _data[\"numeroBolla\"] : null;\r\n this.vettore = _data[\"vettore\"] !== undefined ? _data[\"vettore\"] : null;\r\n this.codiceV = _data[\"codiceV\"] !== undefined ? _data[\"codiceV\"] : null;\r\n this.pax = _data[\"pax\"] !== undefined ? _data[\"pax\"] : null;\r\n this.serie = _data[\"serie\"] !== undefined ? _data[\"serie\"] : null;\r\n this.tkt = _data[\"tkt\"] !== undefined ? _data[\"tkt\"] : null;\r\n this.routing = _data[\"routing\"] !== undefined ? _data[\"routing\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n this.nazInt = _data[\"nazInt\"] !== undefined ? _data[\"nazInt\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.c_Costo = _data[\"c_Costo\"] !== undefined ? _data[\"c_Costo\"] : null;\r\n this.commessa = _data[\"commessa\"] !== undefined ? _data[\"commessa\"] : null;\r\n this.tariffaApplicata = _data[\"tariffaApplicata\"] !== undefined ? _data[\"tariffaApplicata\"] : null;\r\n this.tax = _data[\"tax\"] !== undefined ? _data[\"tax\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.tariffaOrdinaria = _data[\"tariffaOrdinaria\"] !== undefined ? _data[\"tariffaOrdinaria\"] : null;\r\n this.f_Pag = _data[\"f_Pag\"] !== undefined ? _data[\"f_Pag\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.iva = _data[\"iva\"] !== undefined ? _data[\"iva\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.partenzaPratica = _data[\"partenzaPratica\"] !== undefined ? _data[\"partenzaPratica\"] : null;\r\n this.ticketType = _data[\"ticketType\"] !== undefined ? _data[\"ticketType\"] : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportTicket {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicket();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"dataBolla\"] = this.dataBolla !== undefined ? this.dataBolla : null;\r\n data[\"numeroBolla\"] = this.numeroBolla !== undefined ? this.numeroBolla : null;\r\n data[\"vettore\"] = this.vettore !== undefined ? this.vettore : null;\r\n data[\"codiceV\"] = this.codiceV !== undefined ? this.codiceV : null;\r\n data[\"pax\"] = this.pax !== undefined ? this.pax : null;\r\n data[\"serie\"] = this.serie !== undefined ? this.serie : null;\r\n data[\"tkt\"] = this.tkt !== undefined ? this.tkt : null;\r\n data[\"routing\"] = this.routing !== undefined ? this.routing : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n data[\"nazInt\"] = this.nazInt !== undefined ? this.nazInt : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"c_Costo\"] = this.c_Costo !== undefined ? this.c_Costo : null;\r\n data[\"commessa\"] = this.commessa !== undefined ? this.commessa : null;\r\n data[\"tariffaApplicata\"] = this.tariffaApplicata !== undefined ? this.tariffaApplicata : null;\r\n data[\"tax\"] = this.tax !== undefined ? this.tax : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"tariffaOrdinaria\"] = this.tariffaOrdinaria !== undefined ? this.tariffaOrdinaria : null;\r\n data[\"f_Pag\"] = this.f_Pag !== undefined ? this.f_Pag : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"iva\"] = this.iva !== undefined ? this.iva : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"partenzaPratica\"] = this.partenzaPratica !== undefined ? this.partenzaPratica : null;\r\n data[\"ticketType\"] = this.ticketType !== undefined ? this.ticketType : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicket {\r\n id?: number;\r\n dataBolla?: string | null;\r\n numeroBolla?: string | null;\r\n vettore?: string | null;\r\n codiceV?: string | null;\r\n pax?: string | null;\r\n serie?: string | null;\r\n tkt?: string | null;\r\n routing?: string | null;\r\n classe?: string | null;\r\n nazInt?: string | null;\r\n partenza?: string | null;\r\n c_Costo?: number | null;\r\n commessa?: string | null;\r\n tariffaApplicata?: number | null;\r\n tax?: number | null;\r\n totale?: number | null;\r\n tariffaOrdinaria?: number | null;\r\n f_Pag?: string | null;\r\n offertaID?: number | null;\r\n iva?: string | null;\r\n note?: string | null;\r\n partenzaPratica?: string | null;\r\n ticketType?: ETicketsType;\r\n searchTerms?: string;\r\n}\r\n\r\nexport class ImportTicketsUploadResponse extends OkApiResponse implements IImportTicketsUploadResponse {\r\n\r\n constructor(data?: IImportTicketsUploadResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ImportTicketsUploadResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportTicketsUploadResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportTicketsUploadResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class IncomingDeleteRequest extends ApiRequest implements IIncomingDeleteRequest {\r\n offertaID?: number;\r\n incassoID?: number;\r\n\r\n constructor(data?: IIncomingDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.incassoID = _data[\"incassoID\"] !== undefined ? _data[\"incassoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"incassoID\"] = this.incassoID !== undefined ? this.incassoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingDeleteRequest extends IApiRequest {\r\n offertaID?: number;\r\n incassoID?: number;\r\n}\r\n\r\nexport class IncomingGetResponse extends OkApiResponse implements IIncomingGetResponse {\r\n /** Entità dell'incasso */\r\n incasso?: OffertaIncasso;\r\n\r\n constructor(data?: IIncomingGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.incasso = _data[\"incasso\"] ? OffertaIncasso.fromJS(_data[\"incasso\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"incasso\"] = this.incasso ? this.incasso.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingGetResponse extends IOkApiResponse {\r\n /** Entità dell'incasso */\r\n incasso?: OffertaIncasso;\r\n}\r\n\r\nexport class OffertaIncasso implements IOffertaIncasso {\r\n incassoID?: number;\r\n offertaID?: number;\r\n importo?: number | null;\r\n dataPagamento?: string | null;\r\n dataScadenza?: string | null;\r\n dataCessione?: string | null;\r\n tipoPagamentoIncasso?: ETipoPagamentoIncasso | null;\r\n tipoPagamento?: number | null;\r\n tipoOperazioneIncasso?: ETipoOperazioneIncasso | null;\r\n tipoOperazione?: number | null;\r\n offertaDatoID?: number | null;\r\n descrizione?: string | null;\r\n tipoTicketBiglietteria?: ETipoTicketBiglietteria | null;\r\n tipoBiglietteria?: number | null;\r\n tipoPrepagamentoIncasso?: ETipoAcconto | null;\r\n tipoPrepagamento?: number | null;\r\n banca?: string | null;\r\n causale?: string | null;\r\n contattoID?: number;\r\n operatoreID?: number | null;\r\n estrattoContoID?: number | null;\r\n dareAvere?: EDareAvere | null;\r\n flussoID?: number | null;\r\n\r\n constructor(data?: IOffertaIncasso) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.incassoID = _data[\"incassoID\"] !== undefined ? _data[\"incassoID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.dataPagamento = _data[\"dataPagamento\"] !== undefined ? _data[\"dataPagamento\"] : null;\r\n this.dataScadenza = _data[\"dataScadenza\"] !== undefined ? _data[\"dataScadenza\"] : null;\r\n this.dataCessione = _data[\"dataCessione\"] !== undefined ? _data[\"dataCessione\"] : null;\r\n this.tipoPagamentoIncasso = _data[\"tipoPagamentoIncasso\"] !== undefined ? _data[\"tipoPagamentoIncasso\"] : null;\r\n this.tipoPagamento = _data[\"tipoPagamento\"] !== undefined ? _data[\"tipoPagamento\"] : null;\r\n this.tipoOperazioneIncasso = _data[\"tipoOperazioneIncasso\"] !== undefined ? _data[\"tipoOperazioneIncasso\"] : null;\r\n this.tipoOperazione = _data[\"tipoOperazione\"] !== undefined ? _data[\"tipoOperazione\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.tipoTicketBiglietteria = _data[\"tipoTicketBiglietteria\"] !== undefined ? _data[\"tipoTicketBiglietteria\"] : null;\r\n this.tipoBiglietteria = _data[\"tipoBiglietteria\"] !== undefined ? _data[\"tipoBiglietteria\"] : null;\r\n this.tipoPrepagamentoIncasso = _data[\"tipoPrepagamentoIncasso\"] !== undefined ? _data[\"tipoPrepagamentoIncasso\"] : null;\r\n this.tipoPrepagamento = _data[\"tipoPrepagamento\"] !== undefined ? _data[\"tipoPrepagamento\"] : null;\r\n this.banca = _data[\"banca\"] !== undefined ? _data[\"banca\"] : null;\r\n this.causale = _data[\"causale\"] !== undefined ? _data[\"causale\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.operatoreID = _data[\"operatoreID\"] !== undefined ? _data[\"operatoreID\"] : null;\r\n this.estrattoContoID = _data[\"estrattoContoID\"] !== undefined ? _data[\"estrattoContoID\"] : null;\r\n this.dareAvere = _data[\"dareAvere\"] !== undefined ? _data[\"dareAvere\"] : null;\r\n this.flussoID = _data[\"flussoID\"] !== undefined ? _data[\"flussoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaIncasso {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaIncasso();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"incassoID\"] = this.incassoID !== undefined ? this.incassoID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"dataPagamento\"] = this.dataPagamento !== undefined ? this.dataPagamento : null;\r\n data[\"dataScadenza\"] = this.dataScadenza !== undefined ? this.dataScadenza : null;\r\n data[\"dataCessione\"] = this.dataCessione !== undefined ? this.dataCessione : null;\r\n data[\"tipoPagamentoIncasso\"] = this.tipoPagamentoIncasso !== undefined ? this.tipoPagamentoIncasso : null;\r\n data[\"tipoPagamento\"] = this.tipoPagamento !== undefined ? this.tipoPagamento : null;\r\n data[\"tipoOperazioneIncasso\"] = this.tipoOperazioneIncasso !== undefined ? this.tipoOperazioneIncasso : null;\r\n data[\"tipoOperazione\"] = this.tipoOperazione !== undefined ? this.tipoOperazione : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"tipoTicketBiglietteria\"] = this.tipoTicketBiglietteria !== undefined ? this.tipoTicketBiglietteria : null;\r\n data[\"tipoBiglietteria\"] = this.tipoBiglietteria !== undefined ? this.tipoBiglietteria : null;\r\n data[\"tipoPrepagamentoIncasso\"] = this.tipoPrepagamentoIncasso !== undefined ? this.tipoPrepagamentoIncasso : null;\r\n data[\"tipoPrepagamento\"] = this.tipoPrepagamento !== undefined ? this.tipoPrepagamento : null;\r\n data[\"banca\"] = this.banca !== undefined ? this.banca : null;\r\n data[\"causale\"] = this.causale !== undefined ? this.causale : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"operatoreID\"] = this.operatoreID !== undefined ? this.operatoreID : null;\r\n data[\"estrattoContoID\"] = this.estrattoContoID !== undefined ? this.estrattoContoID : null;\r\n data[\"dareAvere\"] = this.dareAvere !== undefined ? this.dareAvere : null;\r\n data[\"flussoID\"] = this.flussoID !== undefined ? this.flussoID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaIncasso {\r\n incassoID?: number;\r\n offertaID?: number;\r\n importo?: number | null;\r\n dataPagamento?: string | null;\r\n dataScadenza?: string | null;\r\n dataCessione?: string | null;\r\n tipoPagamentoIncasso?: ETipoPagamentoIncasso | null;\r\n tipoPagamento?: number | null;\r\n tipoOperazioneIncasso?: ETipoOperazioneIncasso | null;\r\n tipoOperazione?: number | null;\r\n offertaDatoID?: number | null;\r\n descrizione?: string | null;\r\n tipoTicketBiglietteria?: ETipoTicketBiglietteria | null;\r\n tipoBiglietteria?: number | null;\r\n tipoPrepagamentoIncasso?: ETipoAcconto | null;\r\n tipoPrepagamento?: number | null;\r\n banca?: string | null;\r\n causale?: string | null;\r\n contattoID?: number;\r\n operatoreID?: number | null;\r\n estrattoContoID?: number | null;\r\n dareAvere?: EDareAvere | null;\r\n flussoID?: number | null;\r\n}\r\n\r\nexport enum ETipoPagamentoIncasso {\r\n Bonifico = \"Bonifico\",\r\n Factoring = \"Factoring\",\r\n TravelFactoring = \"TravelFactoring\",\r\n RID = \"RID\",\r\n POS = \"POS\",\r\n PAYPAL = \"PAYPAL\",\r\n Assegno = \"Assegno\",\r\n Contanti = \"Contanti\",\r\n Compensazione = \"Compensazione\",\r\n}\r\n\r\nexport enum ETipoOperazioneIncasso {\r\n Acconto = \"Acconto\",\r\n Saldo = \"Saldo\",\r\n Cessione = \"Cessione\",\r\n}\r\n\r\nexport enum ETipoTicketBiglietteria {\r\n Tutto = \"Tutto\",\r\n IP = \"IP\",\r\n TO = \"TO\",\r\n}\r\n\r\nexport enum ETipoAcconto {\r\n Acconto = \"Acconto\",\r\n Hotel = \"Hotel\",\r\n Tour = \"Tour\",\r\n TariffaIP = \"TariffaIP\",\r\n TariffaTO = \"TariffaTO\",\r\n AltriVoli = \"AltriVoli\",\r\n}\r\n\r\nexport enum EDareAvere {\r\n Avere = \"Avere\",\r\n Dare = \"Dare\",\r\n Previsione = \"Previsione\",\r\n}\r\n\r\nexport class IncomingGetRequest extends ApiRequest implements IIncomingGetRequest {\r\n /** ID dell'incasso da caricare */\r\n incassoID?: number;\r\n\r\n constructor(data?: IIncomingGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.incassoID = _data[\"incassoID\"] !== undefined ? _data[\"incassoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"incassoID\"] = this.incassoID !== undefined ? this.incassoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingGetRequest extends IApiRequest {\r\n /** ID dell'incasso da caricare */\r\n incassoID?: number;\r\n}\r\n\r\nexport class IncomingsBatchResponse extends OkApiResponse implements IIncomingsBatchResponse {\r\n count?: number;\r\n taskID?: number;\r\n\r\n constructor(data?: IIncomingsBatchResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.count = _data[\"count\"] !== undefined ? _data[\"count\"] : null;\r\n this.taskID = _data[\"taskID\"] !== undefined ? _data[\"taskID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsBatchResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsBatchResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"count\"] = this.count !== undefined ? this.count : null;\r\n data[\"taskID\"] = this.taskID !== undefined ? this.taskID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsBatchResponse extends IOkApiResponse {\r\n count?: number;\r\n taskID?: number;\r\n}\r\n\r\nexport class IncomingsListRequest extends LocalizedRequest implements IIncomingsListRequest {\r\n /** Filtro su offerta singola. NOTA: Invalida tutti gli altri filtri */\r\n offertaID?: number | null;\r\n /** Modalità della gestione incassi */\r\n modalita?: EModalitaIncassi;\r\n /** Filtro Dare/Avere */\r\n modalitaDareAvere?: EModalitaDareAvere;\r\n /** Filtro sull'operatore della pratica */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto agenzia associato alle righe */\r\n contattoAgenziaID?: number | null;\r\n /** Filtro sulla partita IVA del contatto agenzia */\r\n partitaIVA?: string | null;\r\n /** Filtro sulla data di partenza \"dal\" incluso */\r\n partenzaDal?: string | null;\r\n /** Filtro sulla data di partenza \"al\" incluso */\r\n partenzaAl?: string | null;\r\n /** Filtro sulla data di scadenza \"dal\" incluso */\r\n scadenzaDal?: string | null;\r\n /** Filtro sulla data di scadenza \"al\" incluso */\r\n scadenzaAl?: string | null;\r\n /** ID della modalità di pagamento (riferita all'offerta) */\r\n modalitaPagamentoID?: number | null;\r\n /** ID della banca (come stringa) */\r\n bancaID?: string | null;\r\n /** ID del promotore dell'agenzia */\r\n contattoPromotoreID?: number | null;\r\n\r\n constructor(data?: IIncomingsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.modalita = _data[\"modalita\"] !== undefined ? _data[\"modalita\"] : null;\r\n this.modalitaDareAvere = _data[\"modalitaDareAvere\"] !== undefined ? _data[\"modalitaDareAvere\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.scadenzaDal = _data[\"scadenzaDal\"] !== undefined ? _data[\"scadenzaDal\"] : null;\r\n this.scadenzaAl = _data[\"scadenzaAl\"] !== undefined ? _data[\"scadenzaAl\"] : null;\r\n this.modalitaPagamentoID = _data[\"modalitaPagamentoID\"] !== undefined ? _data[\"modalitaPagamentoID\"] : null;\r\n this.bancaID = _data[\"bancaID\"] !== undefined ? _data[\"bancaID\"] : null;\r\n this.contattoPromotoreID = _data[\"contattoPromotoreID\"] !== undefined ? _data[\"contattoPromotoreID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"modalita\"] = this.modalita !== undefined ? this.modalita : null;\r\n data[\"modalitaDareAvere\"] = this.modalitaDareAvere !== undefined ? this.modalitaDareAvere : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"scadenzaDal\"] = this.scadenzaDal !== undefined ? this.scadenzaDal : null;\r\n data[\"scadenzaAl\"] = this.scadenzaAl !== undefined ? this.scadenzaAl : null;\r\n data[\"modalitaPagamentoID\"] = this.modalitaPagamentoID !== undefined ? this.modalitaPagamentoID : null;\r\n data[\"bancaID\"] = this.bancaID !== undefined ? this.bancaID : null;\r\n data[\"contattoPromotoreID\"] = this.contattoPromotoreID !== undefined ? this.contattoPromotoreID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsListRequest extends ILocalizedRequest {\r\n /** Filtro su offerta singola. NOTA: Invalida tutti gli altri filtri */\r\n offertaID?: number | null;\r\n /** Modalità della gestione incassi */\r\n modalita?: EModalitaIncassi;\r\n /** Filtro Dare/Avere */\r\n modalitaDareAvere?: EModalitaDareAvere;\r\n /** Filtro sull'operatore della pratica */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto agenzia associato alle righe */\r\n contattoAgenziaID?: number | null;\r\n /** Filtro sulla partita IVA del contatto agenzia */\r\n partitaIVA?: string | null;\r\n /** Filtro sulla data di partenza \"dal\" incluso */\r\n partenzaDal?: string | null;\r\n /** Filtro sulla data di partenza \"al\" incluso */\r\n partenzaAl?: string | null;\r\n /** Filtro sulla data di scadenza \"dal\" incluso */\r\n scadenzaDal?: string | null;\r\n /** Filtro sulla data di scadenza \"al\" incluso */\r\n scadenzaAl?: string | null;\r\n /** ID della modalità di pagamento (riferita all'offerta) */\r\n modalitaPagamentoID?: number | null;\r\n /** ID della banca (come stringa) */\r\n bancaID?: string | null;\r\n /** ID del promotore dell'agenzia */\r\n contattoPromotoreID?: number | null;\r\n}\r\n\r\nexport class IncomingsBatchRequest extends IncomingsListRequest implements IIncomingsBatchRequest {\r\n /** Se true non crea il task ma fa solo i conteggi */\r\n preview?: boolean;\r\n /** Se true esegue il ricalcolo accorpato */\r\n grouped?: boolean;\r\n\r\n constructor(data?: IIncomingsBatchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.preview = _data[\"preview\"] !== undefined ? _data[\"preview\"] : null;\r\n this.grouped = _data[\"grouped\"] !== undefined ? _data[\"grouped\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsBatchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsBatchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"preview\"] = this.preview !== undefined ? this.preview : null;\r\n data[\"grouped\"] = this.grouped !== undefined ? this.grouped : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsBatchRequest extends IIncomingsListRequest {\r\n /** Se true non crea il task ma fa solo i conteggi */\r\n preview?: boolean;\r\n /** Se true esegue il ricalcolo accorpato */\r\n grouped?: boolean;\r\n}\r\n\r\nexport enum EModalitaIncassi {\r\n Scadenziario = \"Scadenziario\",\r\n DareAvere = \"DareAvere\",\r\n}\r\n\r\nexport enum EModalitaDareAvere {\r\n Tutto = \"Tutto\",\r\n Dare = \"Dare\",\r\n Avere = \"Avere\",\r\n}\r\n\r\nexport class IncomingsBatchQueryResponse extends OkApiResponse implements IIncomingsBatchQueryResponse {\r\n hasWork?: boolean;\r\n done?: number;\r\n total?: number;\r\n\r\n constructor(data?: IIncomingsBatchQueryResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.hasWork = _data[\"hasWork\"] !== undefined ? _data[\"hasWork\"] : null;\r\n this.done = _data[\"done\"] !== undefined ? _data[\"done\"] : null;\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsBatchQueryResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsBatchQueryResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"hasWork\"] = this.hasWork !== undefined ? this.hasWork : null;\r\n data[\"done\"] = this.done !== undefined ? this.done : null;\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsBatchQueryResponse extends IOkApiResponse {\r\n hasWork?: boolean;\r\n done?: number;\r\n total?: number;\r\n}\r\n\r\nexport class IncomingsChangeRequest extends ApiRequest implements IIncomingsChangeRequest {\r\n incassiIDs?: number[];\r\n pagamentoIncassoID?: number | null;\r\n bancaID?: number | null;\r\n data?: string | null;\r\n\r\n constructor(data?: IIncomingsChangeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"incassiIDs\"])) {\r\n this.incassiIDs = [] as any;\r\n for (let item of _data[\"incassiIDs\"])\r\n this.incassiIDs!.push(item);\r\n }\r\n else {\r\n this.incassiIDs = null;\r\n }\r\n this.pagamentoIncassoID = _data[\"pagamentoIncassoID\"] !== undefined ? _data[\"pagamentoIncassoID\"] : null;\r\n this.bancaID = _data[\"bancaID\"] !== undefined ? _data[\"bancaID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsChangeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsChangeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.incassiIDs)) {\r\n data[\"incassiIDs\"] = [];\r\n for (let item of this.incassiIDs)\r\n data[\"incassiIDs\"].push(item);\r\n }\r\n data[\"pagamentoIncassoID\"] = this.pagamentoIncassoID !== undefined ? this.pagamentoIncassoID : null;\r\n data[\"bancaID\"] = this.bancaID !== undefined ? this.bancaID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsChangeRequest extends IApiRequest {\r\n incassiIDs?: number[];\r\n pagamentoIncassoID?: number | null;\r\n bancaID?: number | null;\r\n data?: string | null;\r\n}\r\n\r\nexport class IncomingsCreateRequest extends ApiRequest implements IIncomingsCreateRequest {\r\n offertaID?: number;\r\n grouped?: boolean;\r\n\r\n constructor(data?: IIncomingsCreateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.grouped = _data[\"grouped\"] !== undefined ? _data[\"grouped\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsCreateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsCreateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"grouped\"] = this.grouped !== undefined ? this.grouped : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsCreateRequest extends IApiRequest {\r\n offertaID?: number;\r\n grouped?: boolean;\r\n}\r\n\r\nexport class IncomingsDeleteRequest extends ApiRequest implements IIncomingsDeleteRequest {\r\n incassiIDs?: number[];\r\n\r\n constructor(data?: IIncomingsDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"incassiIDs\"])) {\r\n this.incassiIDs = [] as any;\r\n for (let item of _data[\"incassiIDs\"])\r\n this.incassiIDs!.push(item);\r\n }\r\n else {\r\n this.incassiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.incassiIDs)) {\r\n data[\"incassiIDs\"] = [];\r\n for (let item of this.incassiIDs)\r\n data[\"incassiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsDeleteRequest extends IApiRequest {\r\n incassiIDs?: number[];\r\n}\r\n\r\nexport class IncomingsListResponse extends OkApiResponse implements IIncomingsListResponse {\r\n /** Lista delle righe */\r\n rows?: IncomingListRow[];\r\n /** Numero di righe massimo estratto */\r\n maxRows?: number;\r\n /** Numero di righe totali che corrispondono al criterio */\r\n totalRows?: number;\r\n /** Modalità della lista (se chiedo un'offerta specifica potrebbe essere diversa da quella del filtro) */\r\n modalita?: EModalitaIncassi;\r\n /** Toale dare, incluse non visualizzate */\r\n totaleDare?: number;\r\n /** Totale avere, incluse non visualizzate */\r\n totaleAvere?: number;\r\n /** Totale avere incluse le non visualizzate, con data inferiore ad oggi ed importo non coperto dal totale dare */\r\n totaleAvereScaduto?: number;\r\n /** Totale sbilancio, incluse non visualizzate */\r\n totaleSbilancio?: number;\r\n /** Se true ci sono altri record che rispettano il criterio ma non sono visualizzati */\r\n hasMore?: boolean;\r\n\r\n constructor(data?: IIncomingsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(IncomingListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.maxRows = _data[\"maxRows\"] !== undefined ? _data[\"maxRows\"] : null;\r\n this.totalRows = _data[\"totalRows\"] !== undefined ? _data[\"totalRows\"] : null;\r\n this.modalita = _data[\"modalita\"] !== undefined ? _data[\"modalita\"] : null;\r\n this.totaleDare = _data[\"totaleDare\"] !== undefined ? _data[\"totaleDare\"] : null;\r\n this.totaleAvere = _data[\"totaleAvere\"] !== undefined ? _data[\"totaleAvere\"] : null;\r\n this.totaleAvereScaduto = _data[\"totaleAvereScaduto\"] !== undefined ? _data[\"totaleAvereScaduto\"] : null;\r\n this.totaleSbilancio = _data[\"totaleSbilancio\"] !== undefined ? _data[\"totaleSbilancio\"] : null;\r\n this.hasMore = _data[\"hasMore\"] !== undefined ? _data[\"hasMore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"maxRows\"] = this.maxRows !== undefined ? this.maxRows : null;\r\n data[\"totalRows\"] = this.totalRows !== undefined ? this.totalRows : null;\r\n data[\"modalita\"] = this.modalita !== undefined ? this.modalita : null;\r\n data[\"totaleDare\"] = this.totaleDare !== undefined ? this.totaleDare : null;\r\n data[\"totaleAvere\"] = this.totaleAvere !== undefined ? this.totaleAvere : null;\r\n data[\"totaleAvereScaduto\"] = this.totaleAvereScaduto !== undefined ? this.totaleAvereScaduto : null;\r\n data[\"totaleSbilancio\"] = this.totaleSbilancio !== undefined ? this.totaleSbilancio : null;\r\n data[\"hasMore\"] = this.hasMore !== undefined ? this.hasMore : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingsListResponse extends IOkApiResponse {\r\n /** Lista delle righe */\r\n rows?: IncomingListRow[];\r\n /** Numero di righe massimo estratto */\r\n maxRows?: number;\r\n /** Numero di righe totali che corrispondono al criterio */\r\n totalRows?: number;\r\n /** Modalità della lista (se chiedo un'offerta specifica potrebbe essere diversa da quella del filtro) */\r\n modalita?: EModalitaIncassi;\r\n /** Toale dare, incluse non visualizzate */\r\n totaleDare?: number;\r\n /** Totale avere, incluse non visualizzate */\r\n totaleAvere?: number;\r\n /** Totale avere incluse le non visualizzate, con data inferiore ad oggi ed importo non coperto dal totale dare */\r\n totaleAvereScaduto?: number;\r\n /** Totale sbilancio, incluse non visualizzate */\r\n totaleSbilancio?: number;\r\n /** Se true ci sono altri record che rispettano il criterio ma non sono visualizzati */\r\n hasMore?: boolean;\r\n}\r\n\r\nexport class IncomingListRow implements IIncomingListRow {\r\n id?: number;\r\n offertaID?: number;\r\n descrizioneOfferta?: string | null;\r\n partenza?: string;\r\n offertaDatoID?: number | null;\r\n data?: string;\r\n importo?: number;\r\n descrizioneIncasso?: string | null;\r\n dareAvere?: EDareAvere | null;\r\n contattoID?: number;\r\n nomeContatto?: string | null;\r\n contattoNetworkID?: number | null;\r\n nomeContattoNetwork?: string | null;\r\n dataIncasso?: string | null;\r\n dataCessione?: string | null;\r\n pagamentoOffertaID?: number | null;\r\n nomePagamentoOfferta?: string | null;\r\n bancaID?: string | null;\r\n nomeBanca?: string | null;\r\n tipoOperazione?: ETipoOperazioneIncasso | null;\r\n tipoPagamento?: ETipoPagamentoIncasso | null;\r\n tipoTicketBiglietteria?: ETipoTicketBiglietteria | null;\r\n tipoPrepagamento?: ETipoAcconto | null;\r\n contattoPromotoreID?: number | null;\r\n nomeContattoPromotore?: string | null;\r\n incasso?: OffertaIncasso | null;\r\n\r\n constructor(data?: IIncomingListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.descrizioneOfferta = _data[\"descrizioneOfferta\"] !== undefined ? _data[\"descrizioneOfferta\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.descrizioneIncasso = _data[\"descrizioneIncasso\"] !== undefined ? _data[\"descrizioneIncasso\"] : null;\r\n this.dareAvere = _data[\"dareAvere\"] !== undefined ? _data[\"dareAvere\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.nomeContatto = _data[\"nomeContatto\"] !== undefined ? _data[\"nomeContatto\"] : null;\r\n this.contattoNetworkID = _data[\"contattoNetworkID\"] !== undefined ? _data[\"contattoNetworkID\"] : null;\r\n this.nomeContattoNetwork = _data[\"nomeContattoNetwork\"] !== undefined ? _data[\"nomeContattoNetwork\"] : null;\r\n this.dataIncasso = _data[\"dataIncasso\"] !== undefined ? _data[\"dataIncasso\"] : null;\r\n this.dataCessione = _data[\"dataCessione\"] !== undefined ? _data[\"dataCessione\"] : null;\r\n this.pagamentoOffertaID = _data[\"pagamentoOffertaID\"] !== undefined ? _data[\"pagamentoOffertaID\"] : null;\r\n this.nomePagamentoOfferta = _data[\"nomePagamentoOfferta\"] !== undefined ? _data[\"nomePagamentoOfferta\"] : null;\r\n this.bancaID = _data[\"bancaID\"] !== undefined ? _data[\"bancaID\"] : null;\r\n this.nomeBanca = _data[\"nomeBanca\"] !== undefined ? _data[\"nomeBanca\"] : null;\r\n this.tipoOperazione = _data[\"tipoOperazione\"] !== undefined ? _data[\"tipoOperazione\"] : null;\r\n this.tipoPagamento = _data[\"tipoPagamento\"] !== undefined ? _data[\"tipoPagamento\"] : null;\r\n this.tipoTicketBiglietteria = _data[\"tipoTicketBiglietteria\"] !== undefined ? _data[\"tipoTicketBiglietteria\"] : null;\r\n this.tipoPrepagamento = _data[\"tipoPrepagamento\"] !== undefined ? _data[\"tipoPrepagamento\"] : null;\r\n this.contattoPromotoreID = _data[\"contattoPromotoreID\"] !== undefined ? _data[\"contattoPromotoreID\"] : null;\r\n this.nomeContattoPromotore = _data[\"nomeContattoPromotore\"] !== undefined ? _data[\"nomeContattoPromotore\"] : null;\r\n this.incasso = _data[\"incasso\"] ? OffertaIncasso.fromJS(_data[\"incasso\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"descrizioneOfferta\"] = this.descrizioneOfferta !== undefined ? this.descrizioneOfferta : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"descrizioneIncasso\"] = this.descrizioneIncasso !== undefined ? this.descrizioneIncasso : null;\r\n data[\"dareAvere\"] = this.dareAvere !== undefined ? this.dareAvere : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"nomeContatto\"] = this.nomeContatto !== undefined ? this.nomeContatto : null;\r\n data[\"contattoNetworkID\"] = this.contattoNetworkID !== undefined ? this.contattoNetworkID : null;\r\n data[\"nomeContattoNetwork\"] = this.nomeContattoNetwork !== undefined ? this.nomeContattoNetwork : null;\r\n data[\"dataIncasso\"] = this.dataIncasso !== undefined ? this.dataIncasso : null;\r\n data[\"dataCessione\"] = this.dataCessione !== undefined ? this.dataCessione : null;\r\n data[\"pagamentoOffertaID\"] = this.pagamentoOffertaID !== undefined ? this.pagamentoOffertaID : null;\r\n data[\"nomePagamentoOfferta\"] = this.nomePagamentoOfferta !== undefined ? this.nomePagamentoOfferta : null;\r\n data[\"bancaID\"] = this.bancaID !== undefined ? this.bancaID : null;\r\n data[\"nomeBanca\"] = this.nomeBanca !== undefined ? this.nomeBanca : null;\r\n data[\"tipoOperazione\"] = this.tipoOperazione !== undefined ? this.tipoOperazione : null;\r\n data[\"tipoPagamento\"] = this.tipoPagamento !== undefined ? this.tipoPagamento : null;\r\n data[\"tipoTicketBiglietteria\"] = this.tipoTicketBiglietteria !== undefined ? this.tipoTicketBiglietteria : null;\r\n data[\"tipoPrepagamento\"] = this.tipoPrepagamento !== undefined ? this.tipoPrepagamento : null;\r\n data[\"contattoPromotoreID\"] = this.contattoPromotoreID !== undefined ? this.contattoPromotoreID : null;\r\n data[\"nomeContattoPromotore\"] = this.nomeContattoPromotore !== undefined ? this.nomeContattoPromotore : null;\r\n data[\"incasso\"] = this.incasso ? this.incasso.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingListRow {\r\n id?: number;\r\n offertaID?: number;\r\n descrizioneOfferta?: string | null;\r\n partenza?: string;\r\n offertaDatoID?: number | null;\r\n data?: string;\r\n importo?: number;\r\n descrizioneIncasso?: string | null;\r\n dareAvere?: EDareAvere | null;\r\n contattoID?: number;\r\n nomeContatto?: string | null;\r\n contattoNetworkID?: number | null;\r\n nomeContattoNetwork?: string | null;\r\n dataIncasso?: string | null;\r\n dataCessione?: string | null;\r\n pagamentoOffertaID?: number | null;\r\n nomePagamentoOfferta?: string | null;\r\n bancaID?: string | null;\r\n nomeBanca?: string | null;\r\n tipoOperazione?: ETipoOperazioneIncasso | null;\r\n tipoPagamento?: ETipoPagamentoIncasso | null;\r\n tipoTicketBiglietteria?: ETipoTicketBiglietteria | null;\r\n tipoPrepagamento?: ETipoAcconto | null;\r\n contattoPromotoreID?: number | null;\r\n nomeContattoPromotore?: string | null;\r\n incasso?: OffertaIncasso | null;\r\n}\r\n\r\nexport class IncomingUpsertResponse extends OkApiResponse implements IIncomingUpsertResponse {\r\n incasso?: OffertaIncasso;\r\n\r\n constructor(data?: IIncomingUpsertResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.incasso = _data[\"incasso\"] ? OffertaIncasso.fromJS(_data[\"incasso\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingUpsertResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingUpsertResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"incasso\"] = this.incasso ? this.incasso.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingUpsertResponse extends IOkApiResponse {\r\n incasso?: OffertaIncasso;\r\n}\r\n\r\nexport class IncomingUpsertRequest extends ApiRequest implements IIncomingUpsertRequest {\r\n incasso?: OffertaIncasso;\r\n\r\n constructor(data?: IIncomingUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.incasso = _data[\"incasso\"] ? OffertaIncasso.fromJS(_data[\"incasso\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncomingUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncomingUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"incasso\"] = this.incasso ? this.incasso.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncomingUpsertRequest extends IApiRequest {\r\n incasso?: OffertaIncasso;\r\n}\r\n\r\nexport class NrTableResponseOfBillableTrip extends OkApiResponse implements INrTableResponseOfBillableTrip {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: BillableTrip[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfBillableTrip) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(BillableTrip.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfBillableTrip {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfBillableTrip();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfBillableTrip extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: BillableTrip[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class BillableTripsListResponse extends NrTableResponseOfBillableTrip implements IBillableTripsListResponse {\r\n\r\n constructor(data?: IBillableTripsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): BillableTripsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BillableTripsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBillableTripsListResponse extends INrTableResponseOfBillableTrip {\r\n}\r\n\r\n/** Classe che rappresenta una singola riga di viaggio fatturabile */\r\nexport class BillableTrip implements IBillableTrip {\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** ID dell'offerta / agenzia */\r\n offertaAgenziaID?: number;\r\n /** Nome del network, se l'agenzia appartiene ad un network */\r\n network?: string | null;\r\n /** ID del contatto agenzia */\r\n contattoAgenziaID?: number | null;\r\n /** Nome dell'agenzia */\r\n agenzia?: string | null;\r\n /** Data di partenza dell'offerta */\r\n partenza?: string;\r\n /** Nome del viaggio */\r\n descrizione?: string | null;\r\n /** Totale netto dell'offerta */\r\n totale?: number;\r\n /** Totale commissioni sull'offerta */\r\n totaleCommissione?: number;\r\n /** Viaggio al netto */\r\n alNetto?: boolean;\r\n /** Data di cancellazione */\r\n dataCancellazione?: string | null;\r\n /** True se la fattura è stata emessa */\r\n fatturaEmessa?: boolean;\r\n /** True se l'autofattura è stata emessa */\r\n autofatturaEmessa?: boolean;\r\n\r\n constructor(data?: IBillableTrip) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offertaAgenziaID = _data[\"offertaAgenziaID\"] !== undefined ? _data[\"offertaAgenziaID\"] : null;\r\n this.network = _data[\"network\"] !== undefined ? _data[\"network\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.agenzia = _data[\"agenzia\"] !== undefined ? _data[\"agenzia\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.totaleCommissione = _data[\"totaleCommissione\"] !== undefined ? _data[\"totaleCommissione\"] : null;\r\n this.alNetto = _data[\"alNetto\"] !== undefined ? _data[\"alNetto\"] : null;\r\n this.dataCancellazione = _data[\"dataCancellazione\"] !== undefined ? _data[\"dataCancellazione\"] : null;\r\n this.fatturaEmessa = _data[\"fatturaEmessa\"] !== undefined ? _data[\"fatturaEmessa\"] : null;\r\n this.autofatturaEmessa = _data[\"autofatturaEmessa\"] !== undefined ? _data[\"autofatturaEmessa\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BillableTrip {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BillableTrip();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offertaAgenziaID\"] = this.offertaAgenziaID !== undefined ? this.offertaAgenziaID : null;\r\n data[\"network\"] = this.network !== undefined ? this.network : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"agenzia\"] = this.agenzia !== undefined ? this.agenzia : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"totaleCommissione\"] = this.totaleCommissione !== undefined ? this.totaleCommissione : null;\r\n data[\"alNetto\"] = this.alNetto !== undefined ? this.alNetto : null;\r\n data[\"dataCancellazione\"] = this.dataCancellazione !== undefined ? this.dataCancellazione : null;\r\n data[\"fatturaEmessa\"] = this.fatturaEmessa !== undefined ? this.fatturaEmessa : null;\r\n data[\"autofatturaEmessa\"] = this.autofatturaEmessa !== undefined ? this.autofatturaEmessa : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta una singola riga di viaggio fatturabile */\r\nexport interface IBillableTrip {\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** ID dell'offerta / agenzia */\r\n offertaAgenziaID?: number;\r\n /** Nome del network, se l'agenzia appartiene ad un network */\r\n network?: string | null;\r\n /** ID del contatto agenzia */\r\n contattoAgenziaID?: number | null;\r\n /** Nome dell'agenzia */\r\n agenzia?: string | null;\r\n /** Data di partenza dell'offerta */\r\n partenza?: string;\r\n /** Nome del viaggio */\r\n descrizione?: string | null;\r\n /** Totale netto dell'offerta */\r\n totale?: number;\r\n /** Totale commissioni sull'offerta */\r\n totaleCommissione?: number;\r\n /** Viaggio al netto */\r\n alNetto?: boolean;\r\n /** Data di cancellazione */\r\n dataCancellazione?: string | null;\r\n /** True se la fattura è stata emessa */\r\n fatturaEmessa?: boolean;\r\n /** True se l'autofattura è stata emessa */\r\n autofatturaEmessa?: boolean;\r\n}\r\n\r\nexport class BillableTripsListRequest extends NrTableRequest implements IBillableTripsListRequest {\r\n /** Filtro per operatore obbligatorio */\r\n operatore?: EOperatore;\r\n /** ID di una singola offerta, prevale sugli altri filtri */\r\n offertaID?: number | null;\r\n /** ID del contatto agenzia associato alle offerte */\r\n contattoAgenziaID?: number | null;\r\n /** Partita IVA dell'agenzia */\r\n partitaIVA?: string | null;\r\n /** Data di partenza, DAL */\r\n partenzaDal?: string | null;\r\n /** Data di partenza, AL */\r\n partenzaAl?: string | null;\r\n /** ID della modalità di pagamento (dallo status pratiche) */\r\n tipoPagamentoID?: number | null;\r\n /** Solo offerte al netto */\r\n soloNetto?: boolean;\r\n /** Solo offerte cancellate */\r\n soloCancellate?: boolean;\r\n\r\n constructor(data?: IBillableTripsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.tipoPagamentoID = _data[\"tipoPagamentoID\"] !== undefined ? _data[\"tipoPagamentoID\"] : null;\r\n this.soloNetto = _data[\"soloNetto\"] !== undefined ? _data[\"soloNetto\"] : null;\r\n this.soloCancellate = _data[\"soloCancellate\"] !== undefined ? _data[\"soloCancellate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BillableTripsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BillableTripsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"tipoPagamentoID\"] = this.tipoPagamentoID !== undefined ? this.tipoPagamentoID : null;\r\n data[\"soloNetto\"] = this.soloNetto !== undefined ? this.soloNetto : null;\r\n data[\"soloCancellate\"] = this.soloCancellate !== undefined ? this.soloCancellate : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBillableTripsListRequest extends INrTableRequest {\r\n /** Filtro per operatore obbligatorio */\r\n operatore?: EOperatore;\r\n /** ID di una singola offerta, prevale sugli altri filtri */\r\n offertaID?: number | null;\r\n /** ID del contatto agenzia associato alle offerte */\r\n contattoAgenziaID?: number | null;\r\n /** Partita IVA dell'agenzia */\r\n partitaIVA?: string | null;\r\n /** Data di partenza, DAL */\r\n partenzaDal?: string | null;\r\n /** Data di partenza, AL */\r\n partenzaAl?: string | null;\r\n /** ID della modalità di pagamento (dallo status pratiche) */\r\n tipoPagamentoID?: number | null;\r\n /** Solo offerte al netto */\r\n soloNetto?: boolean;\r\n /** Solo offerte cancellate */\r\n soloCancellate?: boolean;\r\n}\r\n\r\nexport class GetNextDocumentNumberResponse extends OkApiResponse implements IGetNextDocumentNumberResponse {\r\n /** Next \"free\" document number */\r\n nextDocumentNumber?: number;\r\n\r\n constructor(data?: IGetNextDocumentNumberResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nextDocumentNumber = _data[\"nextDocumentNumber\"] !== undefined ? _data[\"nextDocumentNumber\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetNextDocumentNumberResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetNextDocumentNumberResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nextDocumentNumber\"] = this.nextDocumentNumber !== undefined ? this.nextDocumentNumber : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetNextDocumentNumberResponse extends IOkApiResponse {\r\n /** Next \"free\" document number */\r\n nextDocumentNumber?: number;\r\n}\r\n\r\nexport class GetNextDocumentNumberRequest extends ApiRequest implements IGetNextDocumentNumberRequest {\r\n /** Document type to retrive. Document numbers are \"per type\" */\r\n documentType?: ETipoDocumento;\r\n /** Tour operator */\r\n operator?: EOperatore;\r\n\r\n constructor(data?: IGetNextDocumentNumberRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentType = _data[\"documentType\"] !== undefined ? _data[\"documentType\"] : null;\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetNextDocumentNumberRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetNextDocumentNumberRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentType\"] = this.documentType !== undefined ? this.documentType : null;\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetNextDocumentNumberRequest extends IApiRequest {\r\n /** Document type to retrive. Document numbers are \"per type\" */\r\n documentType?: ETipoDocumento;\r\n /** Tour operator */\r\n operator?: EOperatore;\r\n}\r\n\r\nexport enum ETipoDocumento {\r\n Generico = \"Generico\",\r\n NotaCredito = \"NotaCredito\",\r\n Fattura = \"Fattura\",\r\n EstrattoConto = \"EstrattoConto\",\r\n Autofattura = \"Autofattura\",\r\n RapportoContabile = \"RapportoContabile\",\r\n Offerta = \"Offerta\",\r\n Conferma = \"Conferma\",\r\n Prenotazione = \"Prenotazione\",\r\n Voucher = \"Voucher\",\r\n ProgrammaViaggio = \"ProgrammaViaggio\",\r\n PreventivoCliente = \"PreventivoCliente\",\r\n Miniguida = \"Miniguida\",\r\n Corrispondenza = \"Corrispondenza\",\r\n EstrattoContoConfermaServizi = \"EstrattoContoConfermaServizi\",\r\n NotaCreditoOrdinaria = \"NotaCreditoOrdinaria\",\r\n FatturaOrdinaria = \"FatturaOrdinaria\",\r\n RiepilogoPrenotazioni = \"RiepilogoPrenotazioni\",\r\n RiepilogoPrenotazioniAccordo = \"RiepilogoPrenotazioniAccordo\",\r\n RiepilogoPrenotazioniNU = \"RiepilogoPrenotazioniNU\",\r\n StornoAutofattura = \"StornoAutofattura\",\r\n FatturaAcquisto = \"FatturaAcquisto\",\r\n NotaCreditoAcquisto = \"NotaCreditoAcquisto\",\r\n FatturaAcquistoOrdinaria = \"FatturaAcquistoOrdinaria\",\r\n NotaCreditoAcquistoOrdinaria = \"NotaCreditoAcquistoOrdinaria\",\r\n RispostaPrenotazione = \"RispostaPrenotazione\",\r\n PrenotazioneH2H = \"PrenotazioneH2H\",\r\n DocumentiDiViaggio = \"DocumentiDiViaggio\",\r\n MultiDocumento = \"MultiDocumento\",\r\n MailPrenotazioneClienteFinale = \"MailPrenotazioneClienteFinale\",\r\n Biglietteria = \"Biglietteria\",\r\n Assicurazioni = \"Assicurazioni\",\r\n MailConfermaClienteFinale = \"MailConfermaClienteFinale\",\r\n RispostaPerAdv = \"RispostaPerAdv\",\r\n DocumentoContabile = \"DocumentoContabile\",\r\n PreventivoClienteTraducibile = \"PreventivoClienteTraducibile\",\r\n ProgrammaViaggioTraducibile = \"ProgrammaViaggioTraducibile\",\r\n DocumentoCondiviso = \"DocumentoCondiviso\",\r\n AutofatturaBis = \"AutofatturaBis\",\r\n NotaDiDebito = \"NotaDiDebito\",\r\n NotaDiDebitoOrdinaria = \"NotaDiDebitoOrdinaria\",\r\n VoucherTuristico = \"VoucherTuristico\",\r\n PreventivoClientePlus = \"PreventivoClientePlus\",\r\n ConfermaCliente = \"ConfermaCliente\",\r\n ConfermaProvvisoriaAgenzia = \"ConfermaProvvisoriaAgenzia\",\r\n EstrattoContoPenale = \"EstrattoContoPenale\",\r\n ProgrammaViaggio2022 = \"ProgrammaViaggio2022\",\r\n ProgrammaViaggio2023 = \"ProgrammaViaggio2023\",\r\n Kanban = \"Kanban\",\r\n}\r\n\r\nexport class InvoiceDeleteRequest extends ApiRequest implements IInvoiceDeleteRequest {\r\n /** ID del documento da eliminare */\r\n documentoID?: number;\r\n\r\n constructor(data?: IInvoiceDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoiceDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoiceDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoiceDeleteRequest extends IApiRequest {\r\n /** ID del documento da eliminare */\r\n documentoID?: number;\r\n}\r\n\r\nexport class InvoiceGetResponse extends OkApiResponse implements IInvoiceGetResponse {\r\n /** Dati, testata e righe del documento */\r\n listRow?: InvoicesListRow | null;\r\n\r\n constructor(data?: IInvoiceGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.listRow = _data[\"listRow\"] ? InvoicesListRow.fromJS(_data[\"listRow\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoiceGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoiceGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"listRow\"] = this.listRow ? this.listRow.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoiceGetResponse extends IOkApiResponse {\r\n /** Dati, testata e righe del documento */\r\n listRow?: InvoicesListRow | null;\r\n}\r\n\r\nexport class InvoicesListRowBase implements IInvoicesListRowBase {\r\n /** ID del documento */\r\n id?: number;\r\n /** Tipo di documento */\r\n tipoDocumento?: ETipoDocumento;\r\n /** Numero del documento */\r\n numeroDocumento?: number;\r\n /** Data del documento */\r\n dataDocumento?: string;\r\n /** ID del contatto associato */\r\n contattoID?: number | null;\r\n /** Ragione sociale del contatto associato */\r\n contatto?: string | null;\r\n /** Descrizione testuale del cliente */\r\n cliente?: string | null;\r\n /** Data partenza viaggio */\r\n partenza?: string | null;\r\n /** Importo del documento */\r\n importo?: number;\r\n /** Iva totale del documento */\r\n totaleIva?: number;\r\n\r\n constructor(data?: IInvoicesListRowBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.numeroDocumento = _data[\"numeroDocumento\"] !== undefined ? _data[\"numeroDocumento\"] : null;\r\n this.dataDocumento = _data[\"dataDocumento\"] !== undefined ? _data[\"dataDocumento\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.cliente = _data[\"cliente\"] !== undefined ? _data[\"cliente\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.totaleIva = _data[\"totaleIva\"] !== undefined ? _data[\"totaleIva\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoicesListRowBase {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicesListRowBase();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"numeroDocumento\"] = this.numeroDocumento !== undefined ? this.numeroDocumento : null;\r\n data[\"dataDocumento\"] = this.dataDocumento !== undefined ? this.dataDocumento : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"cliente\"] = this.cliente !== undefined ? this.cliente : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"totaleIva\"] = this.totaleIva !== undefined ? this.totaleIva : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicesListRowBase {\r\n /** ID del documento */\r\n id?: number;\r\n /** Tipo di documento */\r\n tipoDocumento?: ETipoDocumento;\r\n /** Numero del documento */\r\n numeroDocumento?: number;\r\n /** Data del documento */\r\n dataDocumento?: string;\r\n /** ID del contatto associato */\r\n contattoID?: number | null;\r\n /** Ragione sociale del contatto associato */\r\n contatto?: string | null;\r\n /** Descrizione testuale del cliente */\r\n cliente?: string | null;\r\n /** Data partenza viaggio */\r\n partenza?: string | null;\r\n /** Importo del documento */\r\n importo?: number;\r\n /** Iva totale del documento */\r\n totaleIva?: number;\r\n}\r\n\r\nexport class InvoicesListRow extends InvoicesListRowBase implements IInvoicesListRow {\r\n /** Entità del documento */\r\n documento?: DocumentoContabileTestata;\r\n /** Righe della fattura */\r\n righe?: InvoicesListRowDetail[];\r\n\r\n constructor(data?: IInvoicesListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documento = _data[\"documento\"] ? DocumentoContabileTestata.fromJS(_data[\"documento\"]) : null;\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(InvoicesListRowDetail.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoicesListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicesListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documento\"] = this.documento ? this.documento.toJSON() : null;\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicesListRow extends IInvoicesListRowBase {\r\n /** Entità del documento */\r\n documento?: DocumentoContabileTestata;\r\n /** Righe della fattura */\r\n righe?: InvoicesListRowDetail[];\r\n}\r\n\r\nexport class DocumentoContabileTestata implements IDocumentoContabileTestata {\r\n documentoID?: number;\r\n tipoDocumentoID?: number;\r\n tipoDocumento?: ETipoDocumento;\r\n alfanum?: string | null;\r\n num_doc?: number | null;\r\n dataDocumento?: string;\r\n cliente?: string | null;\r\n indirizzo?: string | null;\r\n piva?: string | null;\r\n descrizione?: string | null;\r\n dataPartenza?: string | null;\r\n pagamentoID?: number | null;\r\n totale_doc?: number | null;\r\n stampato?: boolean;\r\n contabilizzato?: boolean;\r\n note?: string | null;\r\n nota_credito?: boolean;\r\n riferimento_id?: number | null;\r\n contattoID?: number | null;\r\n cliente_age?: boolean;\r\n causale?: string | null;\r\n codfisc?: string | null;\r\n resultSentMail?: string | null;\r\n operatore?: EOperatore;\r\n idsede?: number | null;\r\n statoSDI?: EStatoSDI | null;\r\n documentoParentID?: number | null;\r\n ragioneSociale?: string | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n indirizzoFatt?: string | null;\r\n numeroCivico?: string | null;\r\n cap?: string | null;\r\n comune?: string | null;\r\n provincia?: string | null;\r\n nazione?: string | null;\r\n\r\n constructor(data?: IDocumentoContabileTestata) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.tipoDocumentoID = _data[\"tipoDocumentoID\"] !== undefined ? _data[\"tipoDocumentoID\"] : null;\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.alfanum = _data[\"alfanum\"] !== undefined ? _data[\"alfanum\"] : null;\r\n this.num_doc = _data[\"num_doc\"] !== undefined ? _data[\"num_doc\"] : null;\r\n this.dataDocumento = _data[\"dataDocumento\"] !== undefined ? _data[\"dataDocumento\"] : null;\r\n this.cliente = _data[\"cliente\"] !== undefined ? _data[\"cliente\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.piva = _data[\"piva\"] !== undefined ? _data[\"piva\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.dataPartenza = _data[\"dataPartenza\"] !== undefined ? _data[\"dataPartenza\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.totale_doc = _data[\"totale_doc\"] !== undefined ? _data[\"totale_doc\"] : null;\r\n this.stampato = _data[\"stampato\"] !== undefined ? _data[\"stampato\"] : null;\r\n this.contabilizzato = _data[\"contabilizzato\"] !== undefined ? _data[\"contabilizzato\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.nota_credito = _data[\"nota_credito\"] !== undefined ? _data[\"nota_credito\"] : null;\r\n this.riferimento_id = _data[\"riferimento_id\"] !== undefined ? _data[\"riferimento_id\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.cliente_age = _data[\"cliente_age\"] !== undefined ? _data[\"cliente_age\"] : null;\r\n this.causale = _data[\"causale\"] !== undefined ? _data[\"causale\"] : null;\r\n this.codfisc = _data[\"codfisc\"] !== undefined ? _data[\"codfisc\"] : null;\r\n this.resultSentMail = _data[\"resultSentMail\"] !== undefined ? _data[\"resultSentMail\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.idsede = _data[\"idsede\"] !== undefined ? _data[\"idsede\"] : null;\r\n this.statoSDI = _data[\"statoSDI\"] !== undefined ? _data[\"statoSDI\"] : null;\r\n this.documentoParentID = _data[\"documentoParentID\"] !== undefined ? _data[\"documentoParentID\"] : null;\r\n this.ragioneSociale = _data[\"ragioneSociale\"] !== undefined ? _data[\"ragioneSociale\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.indirizzoFatt = _data[\"indirizzoFatt\"] !== undefined ? _data[\"indirizzoFatt\"] : null;\r\n this.numeroCivico = _data[\"numeroCivico\"] !== undefined ? _data[\"numeroCivico\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.comune = _data[\"comune\"] !== undefined ? _data[\"comune\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.nazione = _data[\"nazione\"] !== undefined ? _data[\"nazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoContabileTestata {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoContabileTestata();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"tipoDocumentoID\"] = this.tipoDocumentoID !== undefined ? this.tipoDocumentoID : null;\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"alfanum\"] = this.alfanum !== undefined ? this.alfanum : null;\r\n data[\"num_doc\"] = this.num_doc !== undefined ? this.num_doc : null;\r\n data[\"dataDocumento\"] = this.dataDocumento !== undefined ? this.dataDocumento : null;\r\n data[\"cliente\"] = this.cliente !== undefined ? this.cliente : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"piva\"] = this.piva !== undefined ? this.piva : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"dataPartenza\"] = this.dataPartenza !== undefined ? this.dataPartenza : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"totale_doc\"] = this.totale_doc !== undefined ? this.totale_doc : null;\r\n data[\"stampato\"] = this.stampato !== undefined ? this.stampato : null;\r\n data[\"contabilizzato\"] = this.contabilizzato !== undefined ? this.contabilizzato : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"nota_credito\"] = this.nota_credito !== undefined ? this.nota_credito : null;\r\n data[\"riferimento_id\"] = this.riferimento_id !== undefined ? this.riferimento_id : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"cliente_age\"] = this.cliente_age !== undefined ? this.cliente_age : null;\r\n data[\"causale\"] = this.causale !== undefined ? this.causale : null;\r\n data[\"codfisc\"] = this.codfisc !== undefined ? this.codfisc : null;\r\n data[\"resultSentMail\"] = this.resultSentMail !== undefined ? this.resultSentMail : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"idsede\"] = this.idsede !== undefined ? this.idsede : null;\r\n data[\"statoSDI\"] = this.statoSDI !== undefined ? this.statoSDI : null;\r\n data[\"documentoParentID\"] = this.documentoParentID !== undefined ? this.documentoParentID : null;\r\n data[\"ragioneSociale\"] = this.ragioneSociale !== undefined ? this.ragioneSociale : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"indirizzoFatt\"] = this.indirizzoFatt !== undefined ? this.indirizzoFatt : null;\r\n data[\"numeroCivico\"] = this.numeroCivico !== undefined ? this.numeroCivico : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"comune\"] = this.comune !== undefined ? this.comune : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"nazione\"] = this.nazione !== undefined ? this.nazione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoContabileTestata {\r\n documentoID?: number;\r\n tipoDocumentoID?: number;\r\n tipoDocumento?: ETipoDocumento;\r\n alfanum?: string | null;\r\n num_doc?: number | null;\r\n dataDocumento?: string;\r\n cliente?: string | null;\r\n indirizzo?: string | null;\r\n piva?: string | null;\r\n descrizione?: string | null;\r\n dataPartenza?: string | null;\r\n pagamentoID?: number | null;\r\n totale_doc?: number | null;\r\n stampato?: boolean;\r\n contabilizzato?: boolean;\r\n note?: string | null;\r\n nota_credito?: boolean;\r\n riferimento_id?: number | null;\r\n contattoID?: number | null;\r\n cliente_age?: boolean;\r\n causale?: string | null;\r\n codfisc?: string | null;\r\n resultSentMail?: string | null;\r\n operatore?: EOperatore;\r\n idsede?: number | null;\r\n statoSDI?: EStatoSDI | null;\r\n documentoParentID?: number | null;\r\n ragioneSociale?: string | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n indirizzoFatt?: string | null;\r\n numeroCivico?: string | null;\r\n cap?: string | null;\r\n comune?: string | null;\r\n provincia?: string | null;\r\n nazione?: string | null;\r\n}\r\n\r\nexport enum EStatoSDI {\r\n Nessuno = \"Nessuno\",\r\n Pronto = \"Pronto\",\r\n Inviato = \"Inviato\",\r\n RifiutatoVAR = \"RifiutatoVAR\",\r\n Accettato = \"Accettato\",\r\n RifiutatoSDI = \"RifiutatoSDI\",\r\n}\r\n\r\nexport class InvoicesListRowDetail implements IInvoicesListRowDetail {\r\n /** ID della riga */\r\n id?: number;\r\n /** Descrizione della riga */\r\n descrizione?: string | null;\r\n /** Importo della riga */\r\n importo?: number;\r\n /** Se true è un importo CEE */\r\n isCee?: boolean;\r\n /** Entità della riga */\r\n riga?: DocumentoContabileRiga;\r\n\r\n constructor(data?: IInvoicesListRowDetail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.isCee = _data[\"isCee\"] !== undefined ? _data[\"isCee\"] : null;\r\n this.riga = _data[\"riga\"] ? DocumentoContabileRiga.fromJS(_data[\"riga\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoicesListRowDetail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicesListRowDetail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"isCee\"] = this.isCee !== undefined ? this.isCee : null;\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicesListRowDetail {\r\n /** ID della riga */\r\n id?: number;\r\n /** Descrizione della riga */\r\n descrizione?: string | null;\r\n /** Importo della riga */\r\n importo?: number;\r\n /** Se true è un importo CEE */\r\n isCee?: boolean;\r\n /** Entità della riga */\r\n riga?: DocumentoContabileRiga;\r\n}\r\n\r\nexport class DocumentoContabileRiga implements IDocumentoContabileRiga {\r\n idriga?: number;\r\n idsede?: number;\r\n iddocumento?: number;\r\n idoffagenzia?: number | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n iva?: number | null;\r\n codiva?: string | null;\r\n natura?: NaturaType | null;\r\n\r\n constructor(data?: IDocumentoContabileRiga) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.idriga = _data[\"idriga\"] !== undefined ? _data[\"idriga\"] : null;\r\n this.idsede = _data[\"idsede\"] !== undefined ? _data[\"idsede\"] : null;\r\n this.iddocumento = _data[\"iddocumento\"] !== undefined ? _data[\"iddocumento\"] : null;\r\n this.idoffagenzia = _data[\"idoffagenzia\"] !== undefined ? _data[\"idoffagenzia\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.iva = _data[\"iva\"] !== undefined ? _data[\"iva\"] : null;\r\n this.codiva = _data[\"codiva\"] !== undefined ? _data[\"codiva\"] : null;\r\n this.natura = _data[\"natura\"] !== undefined ? _data[\"natura\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoContabileRiga {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoContabileRiga();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"idriga\"] = this.idriga !== undefined ? this.idriga : null;\r\n data[\"idsede\"] = this.idsede !== undefined ? this.idsede : null;\r\n data[\"iddocumento\"] = this.iddocumento !== undefined ? this.iddocumento : null;\r\n data[\"idoffagenzia\"] = this.idoffagenzia !== undefined ? this.idoffagenzia : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"iva\"] = this.iva !== undefined ? this.iva : null;\r\n data[\"codiva\"] = this.codiva !== undefined ? this.codiva : null;\r\n data[\"natura\"] = this.natura !== undefined ? this.natura : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoContabileRiga {\r\n idriga?: number;\r\n idsede?: number;\r\n iddocumento?: number;\r\n idoffagenzia?: number | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n iva?: number | null;\r\n codiva?: string | null;\r\n natura?: NaturaType | null;\r\n}\r\n\r\nexport enum NaturaType {\r\n N1 = \"N1\",\r\n N2 = \"N2\",\r\n N3 = \"N3\",\r\n N4 = \"N4\",\r\n N5 = \"N5\",\r\n N6 = \"N6\",\r\n N7 = \"N7\",\r\n}\r\n\r\nexport class InvoiceGetRequest extends ApiRequest implements IInvoiceGetRequest {\r\n /** ID del documento da richiedere */\r\n documentoID?: number;\r\n\r\n constructor(data?: IInvoiceGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoiceGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoiceGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoiceGetRequest extends IApiRequest {\r\n /** ID del documento da richiedere */\r\n documentoID?: number;\r\n}\r\n\r\nexport class InvoicesCreateResponse extends OkApiResponse implements IInvoicesCreateResponse {\r\n docs?: InvoicesListRow[] | null;\r\n\r\n constructor(data?: IInvoicesCreateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"docs\"])) {\r\n this.docs = [] as any;\r\n for (let item of _data[\"docs\"])\r\n this.docs!.push(InvoicesListRow.fromJS(item));\r\n }\r\n else {\r\n this.docs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoicesCreateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicesCreateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.docs)) {\r\n data[\"docs\"] = [];\r\n for (let item of this.docs)\r\n data[\"docs\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicesCreateResponse extends IOkApiResponse {\r\n docs?: InvoicesListRow[] | null;\r\n}\r\n\r\nexport class InvoicesCreateRequest extends ApiRequest implements IInvoicesCreateRequest {\r\n tipoDocumento?: ETipoDocumento;\r\n dataEmissione?: string;\r\n offerte?: DatiDocumentoContabile[] | null;\r\n\r\n constructor(data?: IInvoicesCreateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.dataEmissione = _data[\"dataEmissione\"] !== undefined ? _data[\"dataEmissione\"] : null;\r\n if (Array.isArray(_data[\"offerte\"])) {\r\n this.offerte = [] as any;\r\n for (let item of _data[\"offerte\"])\r\n this.offerte!.push(DatiDocumentoContabile.fromJS(item));\r\n }\r\n else {\r\n this.offerte = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoicesCreateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicesCreateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"dataEmissione\"] = this.dataEmissione !== undefined ? this.dataEmissione : null;\r\n if (Array.isArray(this.offerte)) {\r\n data[\"offerte\"] = [];\r\n for (let item of this.offerte)\r\n data[\"offerte\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicesCreateRequest extends IApiRequest {\r\n tipoDocumento?: ETipoDocumento;\r\n dataEmissione?: string;\r\n offerte?: DatiDocumentoContabile[] | null;\r\n}\r\n\r\nexport class DatiDocumentoContabile implements IDatiDocumentoContabile {\r\n offertaID?: number;\r\n contattoAgenziaID?: number;\r\n offertaAgenziaID?: number;\r\n alNetto?: boolean;\r\n\r\n constructor(data?: IDatiDocumentoContabile) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.offertaAgenziaID = _data[\"offertaAgenziaID\"] !== undefined ? _data[\"offertaAgenziaID\"] : null;\r\n this.alNetto = _data[\"alNetto\"] !== undefined ? _data[\"alNetto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatiDocumentoContabile {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatiDocumentoContabile();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"offertaAgenziaID\"] = this.offertaAgenziaID !== undefined ? this.offertaAgenziaID : null;\r\n data[\"alNetto\"] = this.alNetto !== undefined ? this.alNetto : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatiDocumentoContabile {\r\n offertaID?: number;\r\n contattoAgenziaID?: number;\r\n offertaAgenziaID?: number;\r\n alNetto?: boolean;\r\n}\r\n\r\nexport class NrTableResponseOfInvoicesListRow extends OkApiResponse implements INrTableResponseOfInvoicesListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: InvoicesListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfInvoicesListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(InvoicesListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfInvoicesListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfInvoicesListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfInvoicesListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: InvoicesListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class InvoicesListResponse extends NrTableResponseOfInvoicesListRow implements IInvoicesListResponse {\r\n\r\n constructor(data?: IInvoicesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): InvoicesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicesListResponse extends INrTableResponseOfInvoicesListRow {\r\n}\r\n\r\nexport class InvoicesListRequest extends NrTableRequest implements IInvoicesListRequest {\r\n /** ID del contatto (agenzia) */\r\n contattoID?: number | null;\r\n /** Operatore del documento */\r\n operatore?: EOperatore | null;\r\n /** Partita IVA associata al documento */\r\n partitaIVA?: string | null;\r\n /** Inizio range data del documento */\r\n dataDocumentoFrom?: string | null;\r\n /** Fine range data del documento */\r\n dataDocumentoTo?: string | null;\r\n /** Intestazione (come testo) */\r\n intestazione?: string | null;\r\n /** Tipo di documento */\r\n tipoDocumento?: ETipoDocumento | null;\r\n /** ID del tipo di pagamento */\r\n tipoPagamentoID?: number | null;\r\n /** Numero di documento */\r\n numeroDocumento?: number | null;\r\n /** Anno di emissione del documento */\r\n annoDocumento?: number | null;\r\n /** Trip id */\r\n tripId?: number | null;\r\n\r\n constructor(data?: IInvoicesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.dataDocumentoFrom = _data[\"dataDocumentoFrom\"] !== undefined ? _data[\"dataDocumentoFrom\"] : null;\r\n this.dataDocumentoTo = _data[\"dataDocumentoTo\"] !== undefined ? _data[\"dataDocumentoTo\"] : null;\r\n this.intestazione = _data[\"intestazione\"] !== undefined ? _data[\"intestazione\"] : null;\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.tipoPagamentoID = _data[\"tipoPagamentoID\"] !== undefined ? _data[\"tipoPagamentoID\"] : null;\r\n this.numeroDocumento = _data[\"numeroDocumento\"] !== undefined ? _data[\"numeroDocumento\"] : null;\r\n this.annoDocumento = _data[\"annoDocumento\"] !== undefined ? _data[\"annoDocumento\"] : null;\r\n this.tripId = _data[\"tripId\"] !== undefined ? _data[\"tripId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoicesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"dataDocumentoFrom\"] = this.dataDocumentoFrom !== undefined ? this.dataDocumentoFrom : null;\r\n data[\"dataDocumentoTo\"] = this.dataDocumentoTo !== undefined ? this.dataDocumentoTo : null;\r\n data[\"intestazione\"] = this.intestazione !== undefined ? this.intestazione : null;\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"tipoPagamentoID\"] = this.tipoPagamentoID !== undefined ? this.tipoPagamentoID : null;\r\n data[\"numeroDocumento\"] = this.numeroDocumento !== undefined ? this.numeroDocumento : null;\r\n data[\"annoDocumento\"] = this.annoDocumento !== undefined ? this.annoDocumento : null;\r\n data[\"tripId\"] = this.tripId !== undefined ? this.tripId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicesListRequest extends INrTableRequest {\r\n /** ID del contatto (agenzia) */\r\n contattoID?: number | null;\r\n /** Operatore del documento */\r\n operatore?: EOperatore | null;\r\n /** Partita IVA associata al documento */\r\n partitaIVA?: string | null;\r\n /** Inizio range data del documento */\r\n dataDocumentoFrom?: string | null;\r\n /** Fine range data del documento */\r\n dataDocumentoTo?: string | null;\r\n /** Intestazione (come testo) */\r\n intestazione?: string | null;\r\n /** Tipo di documento */\r\n tipoDocumento?: ETipoDocumento | null;\r\n /** ID del tipo di pagamento */\r\n tipoPagamentoID?: number | null;\r\n /** Numero di documento */\r\n numeroDocumento?: number | null;\r\n /** Anno di emissione del documento */\r\n annoDocumento?: number | null;\r\n /** Trip id */\r\n tripId?: number | null;\r\n}\r\n\r\nexport class InvoiceUpsertResponse extends OkApiResponse implements IInvoiceUpsertResponse {\r\n /** Documento creato o aggiornato */\r\n documento?: DocumentoContabileTestata;\r\n /** Righe create o aggiornate */\r\n righe?: DocumentoContabileRiga[] | null;\r\n\r\n constructor(data?: IInvoiceUpsertResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documento = _data[\"documento\"] ? DocumentoContabileTestata.fromJS(_data[\"documento\"]) : null;\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(DocumentoContabileRiga.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoiceUpsertResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoiceUpsertResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documento\"] = this.documento ? this.documento.toJSON() : null;\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoiceUpsertResponse extends IOkApiResponse {\r\n /** Documento creato o aggiornato */\r\n documento?: DocumentoContabileTestata;\r\n /** Righe create o aggiornate */\r\n righe?: DocumentoContabileRiga[] | null;\r\n}\r\n\r\nexport class InvoiceUpsertRequest extends ApiRequest implements IInvoiceUpsertRequest {\r\n /** Testata del documento */\r\n documento!: DocumentoContabileTestata;\r\n /** Righe del documento. Se mancanti in un update le righe restano invariate */\r\n righe?: DocumentoContabileRiga[] | null;\r\n\r\n constructor(data?: IInvoiceUpsertRequest) {\r\n super(data);\r\n if (!data) {\r\n this.documento = new DocumentoContabileTestata();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documento = _data[\"documento\"] ? DocumentoContabileTestata.fromJS(_data[\"documento\"]) : new DocumentoContabileTestata();\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(DocumentoContabileRiga.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoiceUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoiceUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documento\"] = this.documento ? this.documento.toJSON() : null;\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoiceUpsertRequest extends IApiRequest {\r\n /** Testata del documento */\r\n documento: DocumentoContabileTestata;\r\n /** Righe del documento. Se mancanti in un update le righe restano invariate */\r\n righe?: DocumentoContabileRiga[] | null;\r\n}\r\n\r\nexport class PaymentDeleteRequest extends ApiRequest implements IPaymentDeleteRequest {\r\n /** ID del pagamento da eliminare */\r\n pagamentoID?: number;\r\n\r\n constructor(data?: IPaymentDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentDeleteRequest extends IApiRequest {\r\n /** ID del pagamento da eliminare */\r\n pagamentoID?: number;\r\n}\r\n\r\nexport class PaymentGetResponse extends OkApiResponse implements IPaymentGetResponse {\r\n /** Entità del pagamenti */\r\n pagamento?: Pagamento;\r\n /** Codice della valuta del pagamento */\r\n valuta?: string | null;\r\n /** Nome del contatto */\r\n contatto?: string | null;\r\n /** Nome della banca */\r\n banca?: string | null;\r\n /** Offerte associate al pagamento, ordinate per partenza e ID */\r\n offerte?: PaymentTripRow[] | null;\r\n /** Totale dei \"Pagare\" delle offerte */\r\n totalePagare?: number;\r\n\r\n constructor(data?: IPaymentGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pagamento = _data[\"pagamento\"] ? Pagamento.fromJS(_data[\"pagamento\"]) : null;\r\n this.valuta = _data[\"valuta\"] !== undefined ? _data[\"valuta\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.banca = _data[\"banca\"] !== undefined ? _data[\"banca\"] : null;\r\n if (Array.isArray(_data[\"offerte\"])) {\r\n this.offerte = [] as any;\r\n for (let item of _data[\"offerte\"])\r\n this.offerte!.push(PaymentTripRow.fromJS(item));\r\n }\r\n else {\r\n this.offerte = null;\r\n }\r\n this.totalePagare = _data[\"totalePagare\"] !== undefined ? _data[\"totalePagare\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pagamento\"] = this.pagamento ? this.pagamento.toJSON() : null;\r\n data[\"valuta\"] = this.valuta !== undefined ? this.valuta : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"banca\"] = this.banca !== undefined ? this.banca : null;\r\n if (Array.isArray(this.offerte)) {\r\n data[\"offerte\"] = [];\r\n for (let item of this.offerte)\r\n data[\"offerte\"].push(item.toJSON());\r\n }\r\n data[\"totalePagare\"] = this.totalePagare !== undefined ? this.totalePagare : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentGetResponse extends IOkApiResponse {\r\n /** Entità del pagamenti */\r\n pagamento?: Pagamento;\r\n /** Codice della valuta del pagamento */\r\n valuta?: string | null;\r\n /** Nome del contatto */\r\n contatto?: string | null;\r\n /** Nome della banca */\r\n banca?: string | null;\r\n /** Offerte associate al pagamento, ordinate per partenza e ID */\r\n offerte?: PaymentTripRow[] | null;\r\n /** Totale dei \"Pagare\" delle offerte */\r\n totalePagare?: number;\r\n}\r\n\r\nexport class Pagamento implements IPagamento {\r\n id?: number;\r\n contattoID?: number;\r\n offertaID?: number | null;\r\n data?: string | null;\r\n commissioniBancarie?: number | null;\r\n valutaID?: number;\r\n cambio?: number | null;\r\n tipoOperazioneID?: number | null;\r\n navBanca?: string | null;\r\n navCausale?: string | null;\r\n operatoreID?: EOperatore | null;\r\n note?: string | null;\r\n datiBancaFor?: string | null;\r\n importo?: number | null;\r\n\r\n constructor(data?: IPagamento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.commissioniBancarie = _data[\"commissioniBancarie\"] !== undefined ? _data[\"commissioniBancarie\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.cambio = _data[\"cambio\"] !== undefined ? _data[\"cambio\"] : null;\r\n this.tipoOperazioneID = _data[\"tipoOperazioneID\"] !== undefined ? _data[\"tipoOperazioneID\"] : null;\r\n this.navBanca = _data[\"navBanca\"] !== undefined ? _data[\"navBanca\"] : null;\r\n this.navCausale = _data[\"navCausale\"] !== undefined ? _data[\"navCausale\"] : null;\r\n this.operatoreID = _data[\"operatoreID\"] !== undefined ? _data[\"operatoreID\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.datiBancaFor = _data[\"datiBancaFor\"] !== undefined ? _data[\"datiBancaFor\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Pagamento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Pagamento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"commissioniBancarie\"] = this.commissioniBancarie !== undefined ? this.commissioniBancarie : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"cambio\"] = this.cambio !== undefined ? this.cambio : null;\r\n data[\"tipoOperazioneID\"] = this.tipoOperazioneID !== undefined ? this.tipoOperazioneID : null;\r\n data[\"navBanca\"] = this.navBanca !== undefined ? this.navBanca : null;\r\n data[\"navCausale\"] = this.navCausale !== undefined ? this.navCausale : null;\r\n data[\"operatoreID\"] = this.operatoreID !== undefined ? this.operatoreID : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"datiBancaFor\"] = this.datiBancaFor !== undefined ? this.datiBancaFor : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPagamento {\r\n id?: number;\r\n contattoID?: number;\r\n offertaID?: number | null;\r\n data?: string | null;\r\n commissioniBancarie?: number | null;\r\n valutaID?: number;\r\n cambio?: number | null;\r\n tipoOperazioneID?: number | null;\r\n navBanca?: string | null;\r\n navCausale?: string | null;\r\n operatoreID?: EOperatore | null;\r\n note?: string | null;\r\n datiBancaFor?: string | null;\r\n importo?: number | null;\r\n}\r\n\r\nexport class PaymentTripRow implements IPaymentTripRow {\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** Operatore dell'offerta */\r\n operatore?: EOperatore;\r\n /** Data di partenza */\r\n partenza?: string;\r\n /** Data di conferma */\r\n conferma?: string | null;\r\n /** Se true c'è cancellazione conferma */\r\n cancellataADV?: boolean;\r\n /** Se true è cancellata TO */\r\n cancellataTO?: boolean;\r\n /** Importo da pagare in valuta */\r\n pagare?: number;\r\n /** Tipo di contabilizzazione */\r\n contabilizzazione?: EContabilizzazione | null;\r\n /** Nomi abbreviati dei clienti */\r\n clienti?: string;\r\n /** Nome dell'utente di conferma */\r\n utenteConferma?: string | null;\r\n /** Indirizzo email dell'utente di conferma */\r\n emailUtenteConferma?: string | null;\r\n /** Codice booking se presente */\r\n bookingRef?: string | null;\r\n\r\n constructor(data?: IPaymentTripRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.conferma = _data[\"conferma\"] !== undefined ? _data[\"conferma\"] : null;\r\n this.cancellataADV = _data[\"cancellataADV\"] !== undefined ? _data[\"cancellataADV\"] : null;\r\n this.cancellataTO = _data[\"cancellataTO\"] !== undefined ? _data[\"cancellataTO\"] : null;\r\n this.pagare = _data[\"pagare\"] !== undefined ? _data[\"pagare\"] : null;\r\n this.contabilizzazione = _data[\"contabilizzazione\"] !== undefined ? _data[\"contabilizzazione\"] : null;\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n this.utenteConferma = _data[\"utenteConferma\"] !== undefined ? _data[\"utenteConferma\"] : null;\r\n this.emailUtenteConferma = _data[\"emailUtenteConferma\"] !== undefined ? _data[\"emailUtenteConferma\"] : null;\r\n this.bookingRef = _data[\"bookingRef\"] !== undefined ? _data[\"bookingRef\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTripRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTripRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"conferma\"] = this.conferma !== undefined ? this.conferma : null;\r\n data[\"cancellataADV\"] = this.cancellataADV !== undefined ? this.cancellataADV : null;\r\n data[\"cancellataTO\"] = this.cancellataTO !== undefined ? this.cancellataTO : null;\r\n data[\"pagare\"] = this.pagare !== undefined ? this.pagare : null;\r\n data[\"contabilizzazione\"] = this.contabilizzazione !== undefined ? this.contabilizzazione : null;\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n data[\"utenteConferma\"] = this.utenteConferma !== undefined ? this.utenteConferma : null;\r\n data[\"emailUtenteConferma\"] = this.emailUtenteConferma !== undefined ? this.emailUtenteConferma : null;\r\n data[\"bookingRef\"] = this.bookingRef !== undefined ? this.bookingRef : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTripRow {\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** Operatore dell'offerta */\r\n operatore?: EOperatore;\r\n /** Data di partenza */\r\n partenza?: string;\r\n /** Data di conferma */\r\n conferma?: string | null;\r\n /** Se true c'è cancellazione conferma */\r\n cancellataADV?: boolean;\r\n /** Se true è cancellata TO */\r\n cancellataTO?: boolean;\r\n /** Importo da pagare in valuta */\r\n pagare?: number;\r\n /** Tipo di contabilizzazione */\r\n contabilizzazione?: EContabilizzazione | null;\r\n /** Nomi abbreviati dei clienti */\r\n clienti?: string;\r\n /** Nome dell'utente di conferma */\r\n utenteConferma?: string | null;\r\n /** Indirizzo email dell'utente di conferma */\r\n emailUtenteConferma?: string | null;\r\n /** Codice booking se presente */\r\n bookingRef?: string | null;\r\n}\r\n\r\nexport class PaymentGetRequest extends LocalizedRequest implements IPaymentGetRequest {\r\n /** ID del pagamento da caricare */\r\n pagamentoID?: number;\r\n /** Se true include le righe di pagamento sulle offerte */\r\n includiRighe?: boolean;\r\n\r\n constructor(data?: IPaymentGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.includiRighe = _data[\"includiRighe\"] !== undefined ? _data[\"includiRighe\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"includiRighe\"] = this.includiRighe !== undefined ? this.includiRighe : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentGetRequest extends ILocalizedRequest {\r\n /** ID del pagamento da caricare */\r\n pagamentoID?: number;\r\n /** Se true include le righe di pagamento sulle offerte */\r\n includiRighe?: boolean;\r\n}\r\n\r\nexport class PaymentsAssignRequest extends ApiRequest implements IPaymentsAssignRequest {\r\n /** Lista dei pagamenti da impostare */\r\n pagamenti!: ServicePayment[];\r\n\r\n constructor(data?: IPaymentsAssignRequest) {\r\n super(data);\r\n if (!data) {\r\n this.pagamenti = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"pagamenti\"])) {\r\n this.pagamenti = [] as any;\r\n for (let item of _data[\"pagamenti\"])\r\n this.pagamenti!.push(ServicePayment.fromJS(item));\r\n }\r\n else {\r\n this.pagamenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentsAssignRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentsAssignRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.pagamenti)) {\r\n data[\"pagamenti\"] = [];\r\n for (let item of this.pagamenti)\r\n data[\"pagamenti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentsAssignRequest extends IApiRequest {\r\n /** Lista dei pagamenti da impostare */\r\n pagamenti: ServicePayment[];\r\n}\r\n\r\nexport class ServicePayment implements IServicePayment {\r\n offertaID?: number;\r\n offertaDatoID?: number;\r\n pagamentoID?: number | null;\r\n importo?: number;\r\n\r\n constructor(data?: IServicePayment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServicePayment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServicePayment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServicePayment {\r\n offertaID?: number;\r\n offertaDatoID?: number;\r\n pagamentoID?: number | null;\r\n importo?: number;\r\n}\r\n\r\nexport class NrTableResponseOfPaymentRow extends OkApiResponse implements INrTableResponseOfPaymentRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PaymentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfPaymentRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(PaymentRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfPaymentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfPaymentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfPaymentRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PaymentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetPaymentsListResponse extends NrTableResponseOfPaymentRow implements IGetPaymentsListResponse {\r\n /** Totali divisi per moneta */\r\n currenciesTotals?: PaymentCurrencyTotal[];\r\n /** Totale Euro */\r\n euroTotal?: number;\r\n\r\n constructor(data?: IGetPaymentsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"currenciesTotals\"])) {\r\n this.currenciesTotals = [] as any;\r\n for (let item of _data[\"currenciesTotals\"])\r\n this.currenciesTotals!.push(PaymentCurrencyTotal.fromJS(item));\r\n }\r\n else {\r\n this.currenciesTotals = null;\r\n }\r\n this.euroTotal = _data[\"euroTotal\"] !== undefined ? _data[\"euroTotal\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPaymentsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPaymentsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.currenciesTotals)) {\r\n data[\"currenciesTotals\"] = [];\r\n for (let item of this.currenciesTotals)\r\n data[\"currenciesTotals\"].push(item.toJSON());\r\n }\r\n data[\"euroTotal\"] = this.euroTotal !== undefined ? this.euroTotal : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPaymentsListResponse extends INrTableResponseOfPaymentRow {\r\n /** Totali divisi per moneta */\r\n currenciesTotals?: PaymentCurrencyTotal[];\r\n /** Totale Euro */\r\n euroTotal?: number;\r\n}\r\n\r\nexport class PaymentCurrencyTotal implements IPaymentCurrencyTotal {\r\n /** Codice della valuta */\r\n codiceValuta?: string | null;\r\n /** Importo totale in valuta */\r\n importoValuta?: number;\r\n /** Importo totale in Euro */\r\n importoEuro?: number;\r\n /** Totale dei \"Pagato\" in riga delle offerte */\r\n importoCosti?: number;\r\n\r\n constructor(data?: IPaymentCurrencyTotal) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n this.importoValuta = _data[\"importoValuta\"] !== undefined ? _data[\"importoValuta\"] : null;\r\n this.importoEuro = _data[\"importoEuro\"] !== undefined ? _data[\"importoEuro\"] : null;\r\n this.importoCosti = _data[\"importoCosti\"] !== undefined ? _data[\"importoCosti\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentCurrencyTotal {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentCurrencyTotal();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n data[\"importoValuta\"] = this.importoValuta !== undefined ? this.importoValuta : null;\r\n data[\"importoEuro\"] = this.importoEuro !== undefined ? this.importoEuro : null;\r\n data[\"importoCosti\"] = this.importoCosti !== undefined ? this.importoCosti : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentCurrencyTotal {\r\n /** Codice della valuta */\r\n codiceValuta?: string | null;\r\n /** Importo totale in valuta */\r\n importoValuta?: number;\r\n /** Importo totale in Euro */\r\n importoEuro?: number;\r\n /** Totale dei \"Pagato\" in riga delle offerte */\r\n importoCosti?: number;\r\n}\r\n\r\n/** Vista dell'export Excel */\r\nexport class PaymentExportRow implements IPaymentExportRow {\r\n /** ID del pagamento */\r\n id?: number;\r\n /** Operatore del pagamento */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto fornitore */\r\n contattoID?: number | null;\r\n /** Nome / Ragione sociale del fornitore */\r\n contattoFornitore?: string | null;\r\n /** Data di effettuazione del pagamento */\r\n dataEffettuazione?: string | null;\r\n /** Codice 3 lettere della valuta */\r\n codiceValuta?: string | null;\r\n /** Cambio della valuta al momento del pagamento */\r\n cambioValuta?: number | null;\r\n /** ID della banca d'appoggio */\r\n bancaID?: number | null;\r\n /** Nome della banca */\r\n banca?: string | null;\r\n /** Importo in valuta del pagamento */\r\n importoValuta?: number | null;\r\n /** Importo in Euro */\r\n importoEuro?: number | null;\r\n /** Totale dei \"Pagato\" in riga delle offerte */\r\n totaleCosti?: number | null;\r\n\r\n constructor(data?: IPaymentExportRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.contattoFornitore = _data[\"contattoFornitore\"] !== undefined ? _data[\"contattoFornitore\"] : null;\r\n this.dataEffettuazione = _data[\"dataEffettuazione\"] !== undefined ? _data[\"dataEffettuazione\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n this.cambioValuta = _data[\"cambioValuta\"] !== undefined ? _data[\"cambioValuta\"] : null;\r\n this.bancaID = _data[\"bancaID\"] !== undefined ? _data[\"bancaID\"] : null;\r\n this.banca = _data[\"banca\"] !== undefined ? _data[\"banca\"] : null;\r\n this.importoValuta = _data[\"importoValuta\"] !== undefined ? _data[\"importoValuta\"] : null;\r\n this.importoEuro = _data[\"importoEuro\"] !== undefined ? _data[\"importoEuro\"] : null;\r\n this.totaleCosti = _data[\"totaleCosti\"] !== undefined ? _data[\"totaleCosti\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentExportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentExportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"contattoFornitore\"] = this.contattoFornitore !== undefined ? this.contattoFornitore : null;\r\n data[\"dataEffettuazione\"] = this.dataEffettuazione !== undefined ? this.dataEffettuazione : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n data[\"cambioValuta\"] = this.cambioValuta !== undefined ? this.cambioValuta : null;\r\n data[\"bancaID\"] = this.bancaID !== undefined ? this.bancaID : null;\r\n data[\"banca\"] = this.banca !== undefined ? this.banca : null;\r\n data[\"importoValuta\"] = this.importoValuta !== undefined ? this.importoValuta : null;\r\n data[\"importoEuro\"] = this.importoEuro !== undefined ? this.importoEuro : null;\r\n data[\"totaleCosti\"] = this.totaleCosti !== undefined ? this.totaleCosti : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Vista dell'export Excel */\r\nexport interface IPaymentExportRow {\r\n /** ID del pagamento */\r\n id?: number;\r\n /** Operatore del pagamento */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto fornitore */\r\n contattoID?: number | null;\r\n /** Nome / Ragione sociale del fornitore */\r\n contattoFornitore?: string | null;\r\n /** Data di effettuazione del pagamento */\r\n dataEffettuazione?: string | null;\r\n /** Codice 3 lettere della valuta */\r\n codiceValuta?: string | null;\r\n /** Cambio della valuta al momento del pagamento */\r\n cambioValuta?: number | null;\r\n /** ID della banca d'appoggio */\r\n bancaID?: number | null;\r\n /** Nome della banca */\r\n banca?: string | null;\r\n /** Importo in valuta del pagamento */\r\n importoValuta?: number | null;\r\n /** Importo in Euro */\r\n importoEuro?: number | null;\r\n /** Totale dei \"Pagato\" in riga delle offerte */\r\n totaleCosti?: number | null;\r\n}\r\n\r\n/** View della singola riga di pagamento (Export + ID vari) */\r\nexport class PaymentRow extends PaymentExportRow implements IPaymentRow {\r\n /** ID del contatto fornitore */\r\n contattoFornitoreID?: number;\r\n /** ID della valuta */\r\n valutaID?: number;\r\n /** Entità del pagamento */\r\n pagamento?: Pagamento;\r\n\r\n constructor(data?: IPaymentRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoFornitoreID = _data[\"contattoFornitoreID\"] !== undefined ? _data[\"contattoFornitoreID\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.pagamento = _data[\"pagamento\"] ? Pagamento.fromJS(_data[\"pagamento\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoFornitoreID\"] = this.contattoFornitoreID !== undefined ? this.contattoFornitoreID : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"pagamento\"] = this.pagamento ? this.pagamento.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** View della singola riga di pagamento (Export + ID vari) */\r\nexport interface IPaymentRow extends IPaymentExportRow {\r\n /** ID del contatto fornitore */\r\n contattoFornitoreID?: number;\r\n /** ID della valuta */\r\n valutaID?: number;\r\n /** Entità del pagamento */\r\n pagamento?: Pagamento;\r\n}\r\n\r\nexport class GetPaymentsListRequest extends NrTableRequest implements IGetPaymentsListRequest {\r\n /** Filtro per operatore */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto fornitore associato al pagamento */\r\n contattoFornitoreID?: number | null;\r\n /** ID offerta singola */\r\n offertaID?: number | null;\r\n /** Pagamento singolo */\r\n pagamentoID?: number | null;\r\n /** ID della banca */\r\n bancaID?: number | null;\r\n /** Data iniziale */\r\n dataDal?: string | null;\r\n /** Data finale */\r\n dataAl?: string | null;\r\n\r\n constructor(data?: IGetPaymentsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contattoFornitoreID = _data[\"contattoFornitoreID\"] !== undefined ? _data[\"contattoFornitoreID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.bancaID = _data[\"bancaID\"] !== undefined ? _data[\"bancaID\"] : null;\r\n this.dataDal = _data[\"dataDal\"] !== undefined ? _data[\"dataDal\"] : null;\r\n this.dataAl = _data[\"dataAl\"] !== undefined ? _data[\"dataAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPaymentsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPaymentsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contattoFornitoreID\"] = this.contattoFornitoreID !== undefined ? this.contattoFornitoreID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"bancaID\"] = this.bancaID !== undefined ? this.bancaID : null;\r\n data[\"dataDal\"] = this.dataDal !== undefined ? this.dataDal : null;\r\n data[\"dataAl\"] = this.dataAl !== undefined ? this.dataAl : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPaymentsListRequest extends INrTableRequest {\r\n /** Filtro per operatore */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto fornitore associato al pagamento */\r\n contattoFornitoreID?: number | null;\r\n /** ID offerta singola */\r\n offertaID?: number | null;\r\n /** Pagamento singolo */\r\n pagamentoID?: number | null;\r\n /** ID della banca */\r\n bancaID?: number | null;\r\n /** Data iniziale */\r\n dataDal?: string | null;\r\n /** Data finale */\r\n dataAl?: string | null;\r\n}\r\n\r\nexport class PaymentUpsertResponse extends OkApiResponse implements IPaymentUpsertResponse {\r\n /** Entità del pagamento dopo il salvataggio */\r\n pagamento?: Pagamento;\r\n\r\n constructor(data?: IPaymentUpsertResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pagamento = _data[\"pagamento\"] ? Pagamento.fromJS(_data[\"pagamento\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentUpsertResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentUpsertResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pagamento\"] = this.pagamento ? this.pagamento.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentUpsertResponse extends IOkApiResponse {\r\n /** Entità del pagamento dopo il salvataggio */\r\n pagamento?: Pagamento;\r\n}\r\n\r\nexport class PaymentUpsertRequest extends ApiRequest implements IPaymentUpsertRequest {\r\n /** Entità del pagamento */\r\n pagamento!: Pagamento;\r\n\r\n constructor(data?: IPaymentUpsertRequest) {\r\n super(data);\r\n if (!data) {\r\n this.pagamento = new Pagamento();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pagamento = _data[\"pagamento\"] ? Pagamento.fromJS(_data[\"pagamento\"]) : new Pagamento();\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pagamento\"] = this.pagamento ? this.pagamento.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentUpsertRequest extends IApiRequest {\r\n /** Entità del pagamento */\r\n pagamento: Pagamento;\r\n}\r\n\r\nexport class ServicesToPayListResponse extends OkApiResponse implements IServicesToPayListResponse {\r\n /** Lista dei servizi da pagare */\r\n rows?: ServiceToPayRow[];\r\n\r\n constructor(data?: IServicesToPayListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ServiceToPayRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServicesToPayListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServicesToPayListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServicesToPayListResponse extends IOkApiResponse {\r\n /** Lista dei servizi da pagare */\r\n rows?: ServiceToPayRow[];\r\n}\r\n\r\nexport class ServiceToPayExportRow implements IServiceToPayExportRow {\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** Operatore dell'offerta */\r\n operatore?: EOperatore;\r\n /** Se true è annullata TO */\r\n annullataTO?: boolean;\r\n /** Se true è annullata ADV */\r\n annullataADV?: boolean;\r\n /** Nome del contatto dell'accordo */\r\n contattoAccordo?: string | null;\r\n /** Data di partenza */\r\n partenza?: string;\r\n /** Clienti (dall'abbinamento) */\r\n clienti?: string | null;\r\n /** Paese (dal luogo della tappa) */\r\n paese?: string | null;\r\n /** Luogo della tappa */\r\n luogo?: string | null;\r\n /** Descrizione servizio in riga */\r\n servizio?: string | null;\r\n /** Prezzo totale */\r\n prezzo?: number;\r\n /** Codice della valuta */\r\n valuta?: string | null;\r\n /** Addebito in valuta */\r\n addebito?: number;\r\n /** Costo progressivo per offerta */\r\n costoProgressivoOfferta?: number;\r\n /** Importo già pagato */\r\n pagato?: number;\r\n /** Importo da pagare */\r\n pagare?: number;\r\n /** ID del pagamento associato */\r\n pagamentoID?: number | null;\r\n /** Verificato */\r\n verificato?: boolean;\r\n /** Tipo di contabilizzazione */\r\n contabilizzazione?: EContabilizzazione;\r\n /** Codice della conferma del fornitore */\r\n bookingRef?: string | null;\r\n\r\n constructor(data?: IServiceToPayExportRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.annullataTO = _data[\"annullataTO\"] !== undefined ? _data[\"annullataTO\"] : null;\r\n this.annullataADV = _data[\"annullataADV\"] !== undefined ? _data[\"annullataADV\"] : null;\r\n this.contattoAccordo = _data[\"contattoAccordo\"] !== undefined ? _data[\"contattoAccordo\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.valuta = _data[\"valuta\"] !== undefined ? _data[\"valuta\"] : null;\r\n this.addebito = _data[\"addebito\"] !== undefined ? _data[\"addebito\"] : null;\r\n this.costoProgressivoOfferta = _data[\"costoProgressivoOfferta\"] !== undefined ? _data[\"costoProgressivoOfferta\"] : null;\r\n this.pagato = _data[\"pagato\"] !== undefined ? _data[\"pagato\"] : null;\r\n this.pagare = _data[\"pagare\"] !== undefined ? _data[\"pagare\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.verificato = _data[\"verificato\"] !== undefined ? _data[\"verificato\"] : null;\r\n this.contabilizzazione = _data[\"contabilizzazione\"] !== undefined ? _data[\"contabilizzazione\"] : null;\r\n this.bookingRef = _data[\"bookingRef\"] !== undefined ? _data[\"bookingRef\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceToPayExportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceToPayExportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"annullataTO\"] = this.annullataTO !== undefined ? this.annullataTO : null;\r\n data[\"annullataADV\"] = this.annullataADV !== undefined ? this.annullataADV : null;\r\n data[\"contattoAccordo\"] = this.contattoAccordo !== undefined ? this.contattoAccordo : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"valuta\"] = this.valuta !== undefined ? this.valuta : null;\r\n data[\"addebito\"] = this.addebito !== undefined ? this.addebito : null;\r\n data[\"costoProgressivoOfferta\"] = this.costoProgressivoOfferta !== undefined ? this.costoProgressivoOfferta : null;\r\n data[\"pagato\"] = this.pagato !== undefined ? this.pagato : null;\r\n data[\"pagare\"] = this.pagare !== undefined ? this.pagare : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"verificato\"] = this.verificato !== undefined ? this.verificato : null;\r\n data[\"contabilizzazione\"] = this.contabilizzazione !== undefined ? this.contabilizzazione : null;\r\n data[\"bookingRef\"] = this.bookingRef !== undefined ? this.bookingRef : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceToPayExportRow {\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** Operatore dell'offerta */\r\n operatore?: EOperatore;\r\n /** Se true è annullata TO */\r\n annullataTO?: boolean;\r\n /** Se true è annullata ADV */\r\n annullataADV?: boolean;\r\n /** Nome del contatto dell'accordo */\r\n contattoAccordo?: string | null;\r\n /** Data di partenza */\r\n partenza?: string;\r\n /** Clienti (dall'abbinamento) */\r\n clienti?: string | null;\r\n /** Paese (dal luogo della tappa) */\r\n paese?: string | null;\r\n /** Luogo della tappa */\r\n luogo?: string | null;\r\n /** Descrizione servizio in riga */\r\n servizio?: string | null;\r\n /** Prezzo totale */\r\n prezzo?: number;\r\n /** Codice della valuta */\r\n valuta?: string | null;\r\n /** Addebito in valuta */\r\n addebito?: number;\r\n /** Costo progressivo per offerta */\r\n costoProgressivoOfferta?: number;\r\n /** Importo già pagato */\r\n pagato?: number;\r\n /** Importo da pagare */\r\n pagare?: number;\r\n /** ID del pagamento associato */\r\n pagamentoID?: number | null;\r\n /** Verificato */\r\n verificato?: boolean;\r\n /** Tipo di contabilizzazione */\r\n contabilizzazione?: EContabilizzazione;\r\n /** Codice della conferma del fornitore */\r\n bookingRef?: string | null;\r\n}\r\n\r\nexport class ServiceToPayRow extends ServiceToPayExportRow implements IServiceToPayRow {\r\n /** ID della riga */\r\n offertaDatoID?: number;\r\n /** Contatto indicato nell'accordo */\r\n contattoAccordoID?: number | null;\r\n /** Check di corrispondenza contatto fornitore */\r\n supplierCheck?: ESupplierCheck;\r\n /** Valuta del pagamento già assegnato */\r\n valutaPagamento?: string | null;\r\n /** Check sull'ID pagamento associato */\r\n check?: EPaymentCheck;\r\n /** Se true è una riga \"dispari\" (per guidare la colorazione raggruppata per ID offerta */\r\n odd?: boolean;\r\n /** Span della riga per visualizzare correttamente la tabella */\r\n rowSpan?: number;\r\n\r\n constructor(data?: IServiceToPayRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.contattoAccordoID = _data[\"contattoAccordoID\"] !== undefined ? _data[\"contattoAccordoID\"] : null;\r\n this.supplierCheck = _data[\"supplierCheck\"] !== undefined ? _data[\"supplierCheck\"] : null;\r\n this.valutaPagamento = _data[\"valutaPagamento\"] !== undefined ? _data[\"valutaPagamento\"] : null;\r\n this.check = _data[\"check\"] !== undefined ? _data[\"check\"] : null;\r\n this.odd = _data[\"odd\"] !== undefined ? _data[\"odd\"] : null;\r\n this.rowSpan = _data[\"rowSpan\"] !== undefined ? _data[\"rowSpan\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceToPayRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceToPayRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"contattoAccordoID\"] = this.contattoAccordoID !== undefined ? this.contattoAccordoID : null;\r\n data[\"supplierCheck\"] = this.supplierCheck !== undefined ? this.supplierCheck : null;\r\n data[\"valutaPagamento\"] = this.valutaPagamento !== undefined ? this.valutaPagamento : null;\r\n data[\"check\"] = this.check !== undefined ? this.check : null;\r\n data[\"odd\"] = this.odd !== undefined ? this.odd : null;\r\n data[\"rowSpan\"] = this.rowSpan !== undefined ? this.rowSpan : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceToPayRow extends IServiceToPayExportRow {\r\n /** ID della riga */\r\n offertaDatoID?: number;\r\n /** Contatto indicato nell'accordo */\r\n contattoAccordoID?: number | null;\r\n /** Check di corrispondenza contatto fornitore */\r\n supplierCheck?: ESupplierCheck;\r\n /** Valuta del pagamento già assegnato */\r\n valutaPagamento?: string | null;\r\n /** Check sull'ID pagamento associato */\r\n check?: EPaymentCheck;\r\n /** Se true è una riga \"dispari\" (per guidare la colorazione raggruppata per ID offerta */\r\n odd?: boolean;\r\n /** Span della riga per visualizzare correttamente la tabella */\r\n rowSpan?: number;\r\n}\r\n\r\nexport enum ESupplierCheck {\r\n Missing = \"Missing\",\r\n Ok = \"Ok\",\r\n Mismatch = \"Mismatch\",\r\n}\r\n\r\nexport enum EPaymentCheck {\r\n None = \"None\",\r\n Exists = \"Exists\",\r\n Missing = \"Missing\",\r\n Checking = \"Checking\",\r\n}\r\n\r\nexport class ServicesToPayListRequest extends LocalizedRequest implements IServicesToPayListRequest {\r\n /** ID dell'operatore */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto fornitore (da cercare sull'accordo) */\r\n contattoID?: number | null;\r\n /** ID dell'accordo */\r\n accordoID?: number | null;\r\n /** Data di partenza Dal */\r\n partenzaDal!: string;\r\n /** Data di partenza Al */\r\n partenzaAl!: string;\r\n /** ID di un'offerta */\r\n offertaID?: number | null;\r\n /** Se true è richiesta l'esportazione Excel */\r\n export?: boolean;\r\n /** Nome o parte del nome di un pax */\r\n nomePax?: string | null;\r\n /** Data inizio servizio \"Dal\" */\r\n inizioServizioDal?: string | null;\r\n /** Data inizio servizio \"Al\" */\r\n inizioServizioAl?: string | null;\r\n\r\n constructor(data?: IServicesToPayListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n this.nomePax = _data[\"nomePax\"] !== undefined ? _data[\"nomePax\"] : null;\r\n this.inizioServizioDal = _data[\"inizioServizioDal\"] !== undefined ? _data[\"inizioServizioDal\"] : null;\r\n this.inizioServizioAl = _data[\"inizioServizioAl\"] !== undefined ? _data[\"inizioServizioAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServicesToPayListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServicesToPayListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n data[\"nomePax\"] = this.nomePax !== undefined ? this.nomePax : null;\r\n data[\"inizioServizioDal\"] = this.inizioServizioDal !== undefined ? this.inizioServizioDal : null;\r\n data[\"inizioServizioAl\"] = this.inizioServizioAl !== undefined ? this.inizioServizioAl : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServicesToPayListRequest extends ILocalizedRequest {\r\n /** ID dell'operatore */\r\n operatore?: EOperatore | null;\r\n /** ID del contatto fornitore (da cercare sull'accordo) */\r\n contattoID?: number | null;\r\n /** ID dell'accordo */\r\n accordoID?: number | null;\r\n /** Data di partenza Dal */\r\n partenzaDal: string;\r\n /** Data di partenza Al */\r\n partenzaAl: string;\r\n /** ID di un'offerta */\r\n offertaID?: number | null;\r\n /** Se true è richiesta l'esportazione Excel */\r\n export?: boolean;\r\n /** Nome o parte del nome di un pax */\r\n nomePax?: string | null;\r\n /** Data inizio servizio \"Dal\" */\r\n inizioServizioDal?: string | null;\r\n /** Data inizio servizio \"Al\" */\r\n inizioServizioAl?: string | null;\r\n}\r\n\r\nexport class CreateTravelfactoringResponse extends OkApiResponse implements ICreateTravelfactoringResponse {\r\n /** Flusso creato. Se null non c'erano righe da aggiungere */\r\n flusso?: Travelfactoring_Flusso | null;\r\n\r\n constructor(data?: ICreateTravelfactoringResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.flusso = _data[\"flusso\"] ? Travelfactoring_Flusso.fromJS(_data[\"flusso\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateTravelfactoringResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateTravelfactoringResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"flusso\"] = this.flusso ? this.flusso.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateTravelfactoringResponse extends IOkApiResponse {\r\n /** Flusso creato. Se null non c'erano righe da aggiungere */\r\n flusso?: Travelfactoring_Flusso | null;\r\n}\r\n\r\nexport class Travelfactoring_Flusso implements ITravelfactoring_Flusso {\r\n id?: number;\r\n creato?: string;\r\n inviato?: string | null;\r\n\r\n constructor(data?: ITravelfactoring_Flusso) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.creato = _data[\"creato\"] !== undefined ? _data[\"creato\"] : null;\r\n this.inviato = _data[\"inviato\"] !== undefined ? _data[\"inviato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Travelfactoring_Flusso {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Travelfactoring_Flusso();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"creato\"] = this.creato !== undefined ? this.creato : null;\r\n data[\"inviato\"] = this.inviato !== undefined ? this.inviato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelfactoring_Flusso {\r\n id?: number;\r\n creato?: string;\r\n inviato?: string | null;\r\n}\r\n\r\nexport class TravelfactoringGetRequest extends ApiRequest implements ITravelfactoringGetRequest {\r\n flussoID?: number;\r\n\r\n constructor(data?: ITravelfactoringGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.flussoID = _data[\"flussoID\"] !== undefined ? _data[\"flussoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TravelfactoringGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TravelfactoringGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"flussoID\"] = this.flussoID !== undefined ? this.flussoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelfactoringGetRequest extends IApiRequest {\r\n flussoID?: number;\r\n}\r\n\r\nexport class ExportTravelfactoringResponse extends OkApiResponse implements IExportTravelfactoringResponse {\r\n fileName?: string;\r\n fileContent?: string;\r\n\r\n constructor(data?: IExportTravelfactoringResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.fileName = _data[\"fileName\"] !== undefined ? _data[\"fileName\"] : null;\r\n this.fileContent = _data[\"fileContent\"] !== undefined ? _data[\"fileContent\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExportTravelfactoringResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExportTravelfactoringResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fileName\"] = this.fileName !== undefined ? this.fileName : null;\r\n data[\"fileContent\"] = this.fileContent !== undefined ? this.fileContent : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExportTravelfactoringResponse extends IOkApiResponse {\r\n fileName?: string;\r\n fileContent?: string;\r\n}\r\n\r\nexport class TravelfactoringGetResponse extends OkApiResponse implements ITravelfactoringGetResponse {\r\n righe?: Travelfactoring_Riga[];\r\n\r\n constructor(data?: ITravelfactoringGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(Travelfactoring_Riga.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TravelfactoringGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TravelfactoringGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelfactoringGetResponse extends IOkApiResponse {\r\n righe?: Travelfactoring_Riga[];\r\n}\r\n\r\nexport class Travelfactoring_Riga implements ITravelfactoring_Riga {\r\n id?: number;\r\n flussoID?: number;\r\n agenziaID?: number;\r\n offertaID?: number | null;\r\n pratica!: string;\r\n partenza?: string;\r\n scadenza?: string;\r\n operazione?: EOperazioneFactoring;\r\n importo?: number;\r\n passeggero?: string | null;\r\n\r\n constructor(data?: ITravelfactoring_Riga) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.flussoID = _data[\"flussoID\"] !== undefined ? _data[\"flussoID\"] : null;\r\n this.agenziaID = _data[\"agenziaID\"] !== undefined ? _data[\"agenziaID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.pratica = _data[\"pratica\"] !== undefined ? _data[\"pratica\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.scadenza = _data[\"scadenza\"] !== undefined ? _data[\"scadenza\"] : null;\r\n this.operazione = _data[\"operazione\"] !== undefined ? _data[\"operazione\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.passeggero = _data[\"passeggero\"] !== undefined ? _data[\"passeggero\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Travelfactoring_Riga {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Travelfactoring_Riga();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"flussoID\"] = this.flussoID !== undefined ? this.flussoID : null;\r\n data[\"agenziaID\"] = this.agenziaID !== undefined ? this.agenziaID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"pratica\"] = this.pratica !== undefined ? this.pratica : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"scadenza\"] = this.scadenza !== undefined ? this.scadenza : null;\r\n data[\"operazione\"] = this.operazione !== undefined ? this.operazione : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"passeggero\"] = this.passeggero !== undefined ? this.passeggero : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelfactoring_Riga {\r\n id?: number;\r\n flussoID?: number;\r\n agenziaID?: number;\r\n offertaID?: number | null;\r\n pratica: string;\r\n partenza?: string;\r\n scadenza?: string;\r\n operazione?: EOperazioneFactoring;\r\n importo?: number;\r\n passeggero?: string | null;\r\n}\r\n\r\nexport enum EOperazioneFactoring {\r\n PrimaCessione = \"PrimaCessione\",\r\n Integrazione = \"Integrazione\",\r\n StornoParziale = \"StornoParziale\",\r\n AccreditoTotale = \"AccreditoTotale\",\r\n Rinuncia = \"Rinuncia\",\r\n AccreditoAutofattura = \"AccreditoAutofattura\",\r\n}\r\n\r\nexport class NrTableResponseOfTravelfactoringFlussoView extends OkApiResponse implements INrTableResponseOfTravelfactoringFlussoView {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TravelfactoringFlussoView[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTravelfactoringFlussoView) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TravelfactoringFlussoView.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTravelfactoringFlussoView {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTravelfactoringFlussoView();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTravelfactoringFlussoView extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TravelfactoringFlussoView[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class TravelfactoringListResponse extends NrTableResponseOfTravelfactoringFlussoView implements ITravelfactoringListResponse {\r\n\r\n constructor(data?: ITravelfactoringListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): TravelfactoringListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TravelfactoringListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelfactoringListResponse extends INrTableResponseOfTravelfactoringFlussoView {\r\n}\r\n\r\nexport class TravelfactoringFlussoView implements ITravelfactoringFlussoView {\r\n id?: number;\r\n creato?: string;\r\n inviato?: string | null;\r\n righe?: number;\r\n importo?: number;\r\n\r\n constructor(data?: ITravelfactoringFlussoView) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.creato = _data[\"creato\"] !== undefined ? _data[\"creato\"] : null;\r\n this.inviato = _data[\"inviato\"] !== undefined ? _data[\"inviato\"] : null;\r\n this.righe = _data[\"righe\"] !== undefined ? _data[\"righe\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TravelfactoringFlussoView {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TravelfactoringFlussoView();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"creato\"] = this.creato !== undefined ? this.creato : null;\r\n data[\"inviato\"] = this.inviato !== undefined ? this.inviato : null;\r\n data[\"righe\"] = this.righe !== undefined ? this.righe : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelfactoringFlussoView {\r\n id?: number;\r\n creato?: string;\r\n inviato?: string | null;\r\n righe?: number;\r\n importo?: number;\r\n}\r\n\r\nexport class TravelfactoringListRequest extends NrTableRequest implements ITravelfactoringListRequest {\r\n dal?: string | null;\r\n al?: string | null;\r\n\r\n constructor(data?: ITravelfactoringListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TravelfactoringListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TravelfactoringListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelfactoringListRequest extends INrTableRequest {\r\n dal?: string | null;\r\n al?: string | null;\r\n}\r\n\r\nexport class UpdateTravelfactoringRequest extends TravelfactoringGetRequest implements IUpdateTravelfactoringRequest {\r\n righe?: Travelfactoring_Riga[];\r\n\r\n constructor(data?: IUpdateTravelfactoringRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(Travelfactoring_Riga.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateTravelfactoringRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateTravelfactoringRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateTravelfactoringRequest extends ITravelfactoringGetRequest {\r\n righe?: Travelfactoring_Riga[];\r\n}\r\n\r\nexport class NrTableResponseOfActivityLogsRow extends OkApiResponse implements INrTableResponseOfActivityLogsRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ActivityLogsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfActivityLogsRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ActivityLogsRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfActivityLogsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfActivityLogsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfActivityLogsRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ActivityLogsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class TripActivityLogItem implements ITripActivityLogItem {\r\n transactionID?: string;\r\n ip?: string | null;\r\n context?: EActivityContext;\r\n userID?: number | null;\r\n tripID?: number | null;\r\n date?: string;\r\n operations?: ActivityLogOperation[];\r\n\r\n constructor(data?: ITripActivityLogItem) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.transactionID = _data[\"transactionID\"] !== undefined ? _data[\"transactionID\"] : null;\r\n this.ip = _data[\"ip\"] !== undefined ? _data[\"ip\"] : null;\r\n this.context = _data[\"context\"] !== undefined ? _data[\"context\"] : null;\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n if (Array.isArray(_data[\"operations\"])) {\r\n this.operations = [] as any;\r\n for (let item of _data[\"operations\"])\r\n this.operations!.push(ActivityLogOperation.fromJS(item));\r\n }\r\n else {\r\n this.operations = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripActivityLogItem {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripActivityLogItem();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"transactionID\"] = this.transactionID !== undefined ? this.transactionID : null;\r\n data[\"ip\"] = this.ip !== undefined ? this.ip : null;\r\n data[\"context\"] = this.context !== undefined ? this.context : null;\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n if (Array.isArray(this.operations)) {\r\n data[\"operations\"] = [];\r\n for (let item of this.operations)\r\n data[\"operations\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripActivityLogItem {\r\n transactionID?: string;\r\n ip?: string | null;\r\n context?: EActivityContext;\r\n userID?: number | null;\r\n tripID?: number | null;\r\n date?: string;\r\n operations?: ActivityLogOperation[];\r\n}\r\n\r\nexport class SqlTripActivityLogItem extends TripActivityLogItem implements ISqlTripActivityLogItem {\r\n id?: number;\r\n\r\n constructor(data?: ISqlTripActivityLogItem) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SqlTripActivityLogItem {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SqlTripActivityLogItem();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISqlTripActivityLogItem extends ITripActivityLogItem {\r\n id?: number;\r\n}\r\n\r\nexport class ActivityLogsRow extends SqlTripActivityLogItem implements IActivityLogsRow {\r\n /** OperationsItems but re-declared without JsonIgnore */\r\n items?: SqlActivityLogOperation[] | null;\r\n userName?: string | null;\r\n\r\n constructor(data?: IActivityLogsRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"items\"])) {\r\n this.items = [] as any;\r\n for (let item of _data[\"items\"])\r\n this.items!.push(SqlActivityLogOperation.fromJS(item));\r\n }\r\n else {\r\n this.items = null;\r\n }\r\n this.userName = _data[\"userName\"] !== undefined ? _data[\"userName\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ActivityLogsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ActivityLogsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.items)) {\r\n data[\"items\"] = [];\r\n for (let item of this.items)\r\n data[\"items\"].push(item.toJSON());\r\n }\r\n data[\"userName\"] = this.userName !== undefined ? this.userName : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IActivityLogsRow extends ISqlTripActivityLogItem {\r\n /** OperationsItems but re-declared without JsonIgnore */\r\n items?: SqlActivityLogOperation[] | null;\r\n userName?: string | null;\r\n}\r\n\r\nexport class ActivityLogOperation implements IActivityLogOperation {\r\n operationNr?: number;\r\n methodType?: string;\r\n operation?: EDataOperation;\r\n message?: string | null;\r\n methodName?: string;\r\n masterRecordID?: number | null;\r\n masterTable?: string | null;\r\n table?: string | null;\r\n date?: string;\r\n recordID?: number | null;\r\n rawDataJObject?: any | null;\r\n\r\n constructor(data?: IActivityLogOperation) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.operationNr = _data[\"operationNr\"] !== undefined ? _data[\"operationNr\"] : null;\r\n this.methodType = _data[\"methodType\"] !== undefined ? _data[\"methodType\"] : null;\r\n this.operation = _data[\"operation\"] !== undefined ? _data[\"operation\"] : null;\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n this.methodName = _data[\"methodName\"] !== undefined ? _data[\"methodName\"] : null;\r\n this.masterRecordID = _data[\"masterRecordID\"] !== undefined ? _data[\"masterRecordID\"] : null;\r\n this.masterTable = _data[\"masterTable\"] !== undefined ? _data[\"masterTable\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.recordID = _data[\"recordID\"] !== undefined ? _data[\"recordID\"] : null;\r\n this.rawDataJObject = _data[\"rawDataJObject\"] !== undefined ? _data[\"rawDataJObject\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ActivityLogOperation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ActivityLogOperation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operationNr\"] = this.operationNr !== undefined ? this.operationNr : null;\r\n data[\"methodType\"] = this.methodType !== undefined ? this.methodType : null;\r\n data[\"operation\"] = this.operation !== undefined ? this.operation : null;\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n data[\"methodName\"] = this.methodName !== undefined ? this.methodName : null;\r\n data[\"masterRecordID\"] = this.masterRecordID !== undefined ? this.masterRecordID : null;\r\n data[\"masterTable\"] = this.masterTable !== undefined ? this.masterTable : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"recordID\"] = this.recordID !== undefined ? this.recordID : null;\r\n data[\"rawDataJObject\"] = this.rawDataJObject !== undefined ? this.rawDataJObject : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IActivityLogOperation {\r\n operationNr?: number;\r\n methodType?: string;\r\n operation?: EDataOperation;\r\n message?: string | null;\r\n methodName?: string;\r\n masterRecordID?: number | null;\r\n masterTable?: string | null;\r\n table?: string | null;\r\n date?: string;\r\n recordID?: number | null;\r\n rawDataJObject?: any | null;\r\n}\r\n\r\nexport class SqlActivityLogOperation extends ActivityLogOperation implements ISqlActivityLogOperation {\r\n id?: number;\r\n logItemID?: number;\r\n\r\n constructor(data?: ISqlActivityLogOperation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.logItemID = _data[\"logItemID\"] !== undefined ? _data[\"logItemID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SqlActivityLogOperation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SqlActivityLogOperation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"logItemID\"] = this.logItemID !== undefined ? this.logItemID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISqlActivityLogOperation extends IActivityLogOperation {\r\n id?: number;\r\n logItemID?: number;\r\n}\r\n\r\nexport enum EDataOperation {\r\n Create = \"Create\",\r\n Update = \"Update\",\r\n Delete = \"Delete\",\r\n Select = \"Select\",\r\n Restore = \"Restore\",\r\n}\r\n\r\nexport enum EActivityContext {\r\n WEB = \"WEB\",\r\n INTRANET = \"INTRANET\",\r\n B2B = \"B2B\",\r\n B2C = \"B2C\",\r\n AGENT = \"AGENT\",\r\n AUTOFILL = \"AUTOFILL\",\r\n}\r\n\r\nexport class ActivityLogsListRequest extends NrTableRequest implements IActivityLogsListRequest {\r\n userID?: number | null;\r\n date?: string | null;\r\n context?: EActivityContext | null;\r\n\r\n constructor(data?: IActivityLogsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.context = _data[\"context\"] !== undefined ? _data[\"context\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ActivityLogsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ActivityLogsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"context\"] = this.context !== undefined ? this.context : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IActivityLogsListRequest extends INrTableRequest {\r\n userID?: number | null;\r\n date?: string | null;\r\n context?: EActivityContext | null;\r\n}\r\n\r\nexport class AdditionalDataGetResponse extends OkApiResponse implements IAdditionalDataGetResponse {\r\n additionalData?: DatoAggiuntivo | null;\r\n\r\n constructor(data?: IAdditionalDataGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.additionalData = _data[\"additionalData\"] ? DatoAggiuntivo.fromJS(_data[\"additionalData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"additionalData\"] = this.additionalData ? this.additionalData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataGetResponse extends IOkApiResponse {\r\n additionalData?: DatoAggiuntivo | null;\r\n}\r\n\r\nexport class DatoAggiuntivo implements IDatoAggiuntivo {\r\n id?: number;\r\n tipoDatiID?: number;\r\n traduzioni?: AdditionalDataTranslation[] | null;\r\n codice?: string | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n ordine?: number | null;\r\n mostraDescrizione?: boolean;\r\n priorita?: number | null;\r\n luogoID?: number | null;\r\n tipoServizioID?: number | null;\r\n variabili?: number | null;\r\n temporizzato?: boolean;\r\n gif?: number | null;\r\n gifName?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n\r\n constructor(data?: IDatoAggiuntivo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipoDatiID = _data[\"tipoDatiID\"] !== undefined ? _data[\"tipoDatiID\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(AdditionalDataTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.mostraDescrizione = _data[\"mostraDescrizione\"] !== undefined ? _data[\"mostraDescrizione\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.tipoServizioID = _data[\"tipoServizioID\"] !== undefined ? _data[\"tipoServizioID\"] : null;\r\n this.variabili = _data[\"variabili\"] !== undefined ? _data[\"variabili\"] : null;\r\n this.temporizzato = _data[\"temporizzato\"] !== undefined ? _data[\"temporizzato\"] : null;\r\n this.gif = _data[\"gif\"] !== undefined ? _data[\"gif\"] : null;\r\n this.gifName = _data[\"gifName\"] !== undefined ? _data[\"gifName\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipoDatiID\"] = this.tipoDatiID !== undefined ? this.tipoDatiID : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"mostraDescrizione\"] = this.mostraDescrizione !== undefined ? this.mostraDescrizione : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"tipoServizioID\"] = this.tipoServizioID !== undefined ? this.tipoServizioID : null;\r\n data[\"variabili\"] = this.variabili !== undefined ? this.variabili : null;\r\n data[\"temporizzato\"] = this.temporizzato !== undefined ? this.temporizzato : null;\r\n data[\"gif\"] = this.gif !== undefined ? this.gif : null;\r\n data[\"gifName\"] = this.gifName !== undefined ? this.gifName : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivo {\r\n id?: number;\r\n tipoDatiID?: number;\r\n traduzioni?: AdditionalDataTranslation[] | null;\r\n codice?: string | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n ordine?: number | null;\r\n mostraDescrizione?: boolean;\r\n priorita?: number | null;\r\n luogoID?: number | null;\r\n tipoServizioID?: number | null;\r\n variabili?: number | null;\r\n temporizzato?: boolean;\r\n gif?: number | null;\r\n gifName?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n}\r\n\r\nexport class WebTranslation implements IWebTranslation {\r\n id?: number;\r\n table!: string;\r\n entityID!: number;\r\n lang!: ELingua;\r\n culture?: string | null;\r\n translation!: string;\r\n lastUpdate?: string | null;\r\n confirmed?: boolean | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IWebTranslation) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n this.entityID = _data[\"entityID\"] !== undefined ? _data[\"entityID\"] : null;\r\n this.lang = _data[\"lang\"] !== undefined ? _data[\"lang\"] : null;\r\n this.culture = _data[\"culture\"] !== undefined ? _data[\"culture\"] : null;\r\n this.translation = _data[\"translation\"] !== undefined ? _data[\"translation\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n data[\"entityID\"] = this.entityID !== undefined ? this.entityID : null;\r\n data[\"lang\"] = this.lang !== undefined ? this.lang : null;\r\n data[\"culture\"] = this.culture !== undefined ? this.culture : null;\r\n data[\"translation\"] = this.translation !== undefined ? this.translation : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebTranslation {\r\n id?: number;\r\n table: string;\r\n entityID: number;\r\n lang: ELingua;\r\n culture?: string | null;\r\n translation: string;\r\n lastUpdate?: string | null;\r\n confirmed?: boolean | null;\r\n deleted?: string | null;\r\n}\r\n\r\nexport class AdditionalDataTranslation extends WebTranslation implements IAdditionalDataTranslation {\r\n\r\n constructor(data?: IAdditionalDataTranslation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataTranslation extends IWebTranslation {\r\n}\r\n\r\nexport class AdditionalDataGetRequest extends ApiRequest implements IAdditionalDataGetRequest {\r\n additionalDataID!: number;\r\n\r\n constructor(data?: IAdditionalDataGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.additionalDataID = _data[\"additionalDataID\"] !== undefined ? _data[\"additionalDataID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"additionalDataID\"] = this.additionalDataID !== undefined ? this.additionalDataID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataGetRequest extends IApiRequest {\r\n additionalDataID: number;\r\n}\r\n\r\nexport class AdditionalDataUpdateRequest extends AdditionalDataGetRequest implements IAdditionalDataUpdateRequest {\r\n additionalData!: DatoAggiuntivo;\r\n\r\n constructor(data?: IAdditionalDataUpdateRequest) {\r\n super(data);\r\n if (!data) {\r\n this.additionalData = new DatoAggiuntivo();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.additionalData = _data[\"additionalData\"] ? DatoAggiuntivo.fromJS(_data[\"additionalData\"]) : new DatoAggiuntivo();\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"additionalData\"] = this.additionalData ? this.additionalData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataUpdateRequest extends IAdditionalDataGetRequest {\r\n additionalData: DatoAggiuntivo;\r\n}\r\n\r\nexport class AdditionalDataDeleteRequest extends AdditionalDataGetRequest implements IAdditionalDataDeleteRequest {\r\n\r\n constructor(data?: IAdditionalDataDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataDeleteRequest extends IAdditionalDataGetRequest {\r\n}\r\n\r\nexport class NrTableResponseOfAdditionalDataRow extends OkApiResponse implements INrTableResponseOfAdditionalDataRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdditionalDataRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAdditionalDataRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AdditionalDataRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAdditionalDataRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAdditionalDataRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAdditionalDataRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdditionalDataRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class AdditionalDataListResponse extends NrTableResponseOfAdditionalDataRow implements IAdditionalDataListResponse {\r\n\r\n constructor(data?: IAdditionalDataListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataListResponse extends INrTableResponseOfAdditionalDataRow {\r\n}\r\n\r\nexport class AdditionalDataRow implements IAdditionalDataRow {\r\n id?: number;\r\n type?: string;\r\n name?: string | null;\r\n place?: string;\r\n serviceType?: string;\r\n order?: number | null;\r\n priority?: number | null;\r\n additionalData?: DatoAggiuntivo | null;\r\n\r\n constructor(data?: IAdditionalDataRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.place = _data[\"place\"] !== undefined ? _data[\"place\"] : null;\r\n this.serviceType = _data[\"serviceType\"] !== undefined ? _data[\"serviceType\"] : null;\r\n this.order = _data[\"order\"] !== undefined ? _data[\"order\"] : null;\r\n this.priority = _data[\"priority\"] !== undefined ? _data[\"priority\"] : null;\r\n this.additionalData = _data[\"additionalData\"] ? DatoAggiuntivo.fromJS(_data[\"additionalData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"place\"] = this.place !== undefined ? this.place : null;\r\n data[\"serviceType\"] = this.serviceType !== undefined ? this.serviceType : null;\r\n data[\"order\"] = this.order !== undefined ? this.order : null;\r\n data[\"priority\"] = this.priority !== undefined ? this.priority : null;\r\n data[\"additionalData\"] = this.additionalData ? this.additionalData.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataRow {\r\n id?: number;\r\n type?: string;\r\n name?: string | null;\r\n place?: string;\r\n serviceType?: string;\r\n order?: number | null;\r\n priority?: number | null;\r\n additionalData?: DatoAggiuntivo | null;\r\n}\r\n\r\nexport class AdditionalDataListRequest extends NrTableRequest implements IAdditionalDataListRequest {\r\n term?: string | null;\r\n typeID?: number | null;\r\n placeID?: number | null;\r\n\r\n constructor(data?: IAdditionalDataListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.typeID = _data[\"typeID\"] !== undefined ? _data[\"typeID\"] : null;\r\n this.placeID = _data[\"placeID\"] !== undefined ? _data[\"placeID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"typeID\"] = this.typeID !== undefined ? this.typeID : null;\r\n data[\"placeID\"] = this.placeID !== undefined ? this.placeID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataListRequest extends INrTableRequest {\r\n term?: string | null;\r\n typeID?: number | null;\r\n placeID?: number | null;\r\n}\r\n\r\nexport class AdditionalDataUpdateResponse extends AdditionalDataGetResponse implements IAdditionalDataUpdateResponse {\r\n\r\n constructor(data?: IAdditionalDataUpdateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataUpdateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataUpdateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataUpdateResponse extends IAdditionalDataGetResponse {\r\n}\r\n\r\nexport class AdditionalsDataTypesGetRequest extends ApiRequest implements IAdditionalsDataTypesGetRequest {\r\n id!: number;\r\n\r\n constructor(data?: IAdditionalsDataTypesGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalsDataTypesGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalsDataTypesGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalsDataTypesGetRequest extends IApiRequest {\r\n id: number;\r\n}\r\n\r\nexport class AdditionalsDataTypesUpdateRequest extends AdditionalsDataTypesGetRequest implements IAdditionalsDataTypesUpdateRequest {\r\n additionalDataType!: DatoAggiuntivoTipo;\r\n\r\n constructor(data?: IAdditionalsDataTypesUpdateRequest) {\r\n super(data);\r\n if (!data) {\r\n this.additionalDataType = new DatoAggiuntivoTipo();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.additionalDataType = _data[\"additionalDataType\"] ? DatoAggiuntivoTipo.fromJS(_data[\"additionalDataType\"]) : new DatoAggiuntivoTipo();\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalsDataTypesUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalsDataTypesUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"additionalDataType\"] = this.additionalDataType ? this.additionalDataType.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalsDataTypesUpdateRequest extends IAdditionalsDataTypesGetRequest {\r\n additionalDataType: DatoAggiuntivoTipo;\r\n}\r\n\r\nexport class DatoAggiuntivoTipo implements IDatoAggiuntivoTipo {\r\n id?: number;\r\n tipoDatiID?: number;\r\n traduzioni?: AdditionalDataTypeTranslation[] | null;\r\n tipoServizio?: ETipoServizio | null;\r\n nome!: string;\r\n ordine?: number | null;\r\n usaPerRicerca?: boolean;\r\n codice?: string | null;\r\n standard?: boolean;\r\n nome_en?: string | null;\r\n mostra_descr?: number | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n\r\n constructor(data?: IDatoAggiuntivoTipo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipoDatiID = _data[\"tipoDatiID\"] !== undefined ? _data[\"tipoDatiID\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(AdditionalDataTypeTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.usaPerRicerca = _data[\"usaPerRicerca\"] !== undefined ? _data[\"usaPerRicerca\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.standard = _data[\"standard\"] !== undefined ? _data[\"standard\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.mostra_descr = _data[\"mostra_descr\"] !== undefined ? _data[\"mostra_descr\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoTipo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoTipo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipoDatiID\"] = this.tipoDatiID !== undefined ? this.tipoDatiID : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"usaPerRicerca\"] = this.usaPerRicerca !== undefined ? this.usaPerRicerca : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"standard\"] = this.standard !== undefined ? this.standard : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"mostra_descr\"] = this.mostra_descr !== undefined ? this.mostra_descr : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoTipo {\r\n id?: number;\r\n tipoDatiID?: number;\r\n traduzioni?: AdditionalDataTypeTranslation[] | null;\r\n tipoServizio?: ETipoServizio | null;\r\n nome: string;\r\n ordine?: number | null;\r\n usaPerRicerca?: boolean;\r\n codice?: string | null;\r\n standard?: boolean;\r\n nome_en?: string | null;\r\n mostra_descr?: number | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n}\r\n\r\nexport class AdditionalDataTypeTranslation extends WebTranslation implements IAdditionalDataTypeTranslation {\r\n\r\n constructor(data?: IAdditionalDataTypeTranslation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataTypeTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataTypeTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataTypeTranslation extends IWebTranslation {\r\n}\r\n\r\nexport enum ETipoServizio {\r\n TrasferimentiEVisite = \"TrasferimentiEVisite\",\r\n NoleggiAuto = \"NoleggiAuto\",\r\n SelfDrive = \"SelfDrive\",\r\n TourECrociere = \"TourECrociere\",\r\n Hotel = \"Hotel\",\r\n KitViaggio = \"KitViaggio\",\r\n Pacchetti = \"Pacchetti\",\r\n Voli = \"Voli\",\r\n KitViaggioOLD = \"KitViaggioOLD\",\r\n ItinerariConsigliati = \"ItinerariConsigliati\",\r\n PacchettiDinamici = \"PacchettiDinamici\",\r\n PacchettiCatalogo = \"PacchettiCatalogo\",\r\n}\r\n\r\nexport class AdditionalsDataTypesDeleteResponse extends OkApiResponse implements IAdditionalsDataTypesDeleteResponse {\r\n\r\n constructor(data?: IAdditionalsDataTypesDeleteResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalsDataTypesDeleteResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalsDataTypesDeleteResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalsDataTypesDeleteResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class AdditionalsDataTypesDeleteRequest extends AdditionalsDataTypesGetRequest implements IAdditionalsDataTypesDeleteRequest {\r\n\r\n constructor(data?: IAdditionalsDataTypesDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalsDataTypesDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalsDataTypesDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalsDataTypesDeleteRequest extends IAdditionalsDataTypesGetRequest {\r\n}\r\n\r\nexport class AdditionalsDataTypesGetResponse extends OkApiResponse implements IAdditionalsDataTypesGetResponse {\r\n additionalDataType?: DatoAggiuntivoTipo | null;\r\n\r\n constructor(data?: IAdditionalsDataTypesGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.additionalDataType = _data[\"additionalDataType\"] ? DatoAggiuntivoTipo.fromJS(_data[\"additionalDataType\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalsDataTypesGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalsDataTypesGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"additionalDataType\"] = this.additionalDataType ? this.additionalDataType.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalsDataTypesGetResponse extends IOkApiResponse {\r\n additionalDataType?: DatoAggiuntivoTipo | null;\r\n}\r\n\r\nexport class NrTableResponseOfAdditionalDataTypeRow extends OkApiResponse implements INrTableResponseOfAdditionalDataTypeRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdditionalDataTypeRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAdditionalDataTypeRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AdditionalDataTypeRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAdditionalDataTypeRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAdditionalDataTypeRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAdditionalDataTypeRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdditionalDataTypeRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class AdditionalDataTypeListResponse extends NrTableResponseOfAdditionalDataTypeRow implements IAdditionalDataTypeListResponse {\r\n\r\n constructor(data?: IAdditionalDataTypeListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataTypeListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataTypeListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataTypeListResponse extends INrTableResponseOfAdditionalDataTypeRow {\r\n}\r\n\r\nexport class AdditionalDataTypeRow implements IAdditionalDataTypeRow {\r\n id?: number;\r\n order?: number | null;\r\n type?: string | null;\r\n ricerca?: boolean;\r\n standard?: boolean;\r\n mostra_desc?: number | null;\r\n name?: string;\r\n name_en?: string | null;\r\n name_ep?: string | null;\r\n name_fr?: string | null;\r\n name_de?: string | null;\r\n name_es?: string | null;\r\n serviceType?: ETipoServizio | null;\r\n\r\n constructor(data?: IAdditionalDataTypeRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.order = _data[\"order\"] !== undefined ? _data[\"order\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.ricerca = _data[\"ricerca\"] !== undefined ? _data[\"ricerca\"] : null;\r\n this.standard = _data[\"standard\"] !== undefined ? _data[\"standard\"] : null;\r\n this.mostra_desc = _data[\"mostra_desc\"] !== undefined ? _data[\"mostra_desc\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.name_en = _data[\"name_en\"] !== undefined ? _data[\"name_en\"] : null;\r\n this.name_ep = _data[\"name_ep\"] !== undefined ? _data[\"name_ep\"] : null;\r\n this.name_fr = _data[\"name_fr\"] !== undefined ? _data[\"name_fr\"] : null;\r\n this.name_de = _data[\"name_de\"] !== undefined ? _data[\"name_de\"] : null;\r\n this.name_es = _data[\"name_es\"] !== undefined ? _data[\"name_es\"] : null;\r\n this.serviceType = _data[\"serviceType\"] !== undefined ? _data[\"serviceType\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalDataTypeRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalDataTypeRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"order\"] = this.order !== undefined ? this.order : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"ricerca\"] = this.ricerca !== undefined ? this.ricerca : null;\r\n data[\"standard\"] = this.standard !== undefined ? this.standard : null;\r\n data[\"mostra_desc\"] = this.mostra_desc !== undefined ? this.mostra_desc : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"name_en\"] = this.name_en !== undefined ? this.name_en : null;\r\n data[\"name_ep\"] = this.name_ep !== undefined ? this.name_ep : null;\r\n data[\"name_fr\"] = this.name_fr !== undefined ? this.name_fr : null;\r\n data[\"name_de\"] = this.name_de !== undefined ? this.name_de : null;\r\n data[\"name_es\"] = this.name_es !== undefined ? this.name_es : null;\r\n data[\"serviceType\"] = this.serviceType !== undefined ? this.serviceType : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalDataTypeRow {\r\n id?: number;\r\n order?: number | null;\r\n type?: string | null;\r\n ricerca?: boolean;\r\n standard?: boolean;\r\n mostra_desc?: number | null;\r\n name?: string;\r\n name_en?: string | null;\r\n name_ep?: string | null;\r\n name_fr?: string | null;\r\n name_de?: string | null;\r\n name_es?: string | null;\r\n serviceType?: ETipoServizio | null;\r\n}\r\n\r\nexport class AdditionalsDataTypesListRequest extends NrTableRequest implements IAdditionalsDataTypesListRequest {\r\n term?: string | null;\r\n serviceID?: number | null;\r\n\r\n constructor(data?: IAdditionalsDataTypesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdditionalsDataTypesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdditionalsDataTypesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdditionalsDataTypesListRequest extends INrTableRequest {\r\n term?: string | null;\r\n serviceID?: number | null;\r\n}\r\n\r\nexport class NrTableResponseOfEmailForwarderLogRow extends OkApiResponse implements INrTableResponseOfEmailForwarderLogRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EmailForwarderLogRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfEmailForwarderLogRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(EmailForwarderLogRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfEmailForwarderLogRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfEmailForwarderLogRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfEmailForwarderLogRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EmailForwarderLogRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetEmailForwarderLogResponse extends NrTableResponseOfEmailForwarderLogRow implements IGetEmailForwarderLogResponse {\r\n\r\n constructor(data?: IGetEmailForwarderLogResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetEmailForwarderLogResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetEmailForwarderLogResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetEmailForwarderLogResponse extends INrTableResponseOfEmailForwarderLogRow {\r\n}\r\n\r\nexport class EmailForwarderLogRow implements IEmailForwarderLogRow {\r\n id?: number;\r\n contactID?: number | null;\r\n forwardedDate?: string | null;\r\n senderEmail?: string | null;\r\n forwardedToEmail?: string | null;\r\n statusID?: EEmailForwardedStatus | null;\r\n mailSubject?: string | null;\r\n reservationNumber?: string | null;\r\n offertaID?: number | null;\r\n\r\n constructor(data?: IEmailForwarderLogRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contactID = _data[\"contactID\"] !== undefined ? _data[\"contactID\"] : null;\r\n this.forwardedDate = _data[\"forwardedDate\"] !== undefined ? _data[\"forwardedDate\"] : null;\r\n this.senderEmail = _data[\"senderEmail\"] !== undefined ? _data[\"senderEmail\"] : null;\r\n this.forwardedToEmail = _data[\"forwardedToEmail\"] !== undefined ? _data[\"forwardedToEmail\"] : null;\r\n this.statusID = _data[\"statusID\"] !== undefined ? _data[\"statusID\"] : null;\r\n this.mailSubject = _data[\"mailSubject\"] !== undefined ? _data[\"mailSubject\"] : null;\r\n this.reservationNumber = _data[\"reservationNumber\"] !== undefined ? _data[\"reservationNumber\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EmailForwarderLogRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EmailForwarderLogRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contactID\"] = this.contactID !== undefined ? this.contactID : null;\r\n data[\"forwardedDate\"] = this.forwardedDate !== undefined ? this.forwardedDate : null;\r\n data[\"senderEmail\"] = this.senderEmail !== undefined ? this.senderEmail : null;\r\n data[\"forwardedToEmail\"] = this.forwardedToEmail !== undefined ? this.forwardedToEmail : null;\r\n data[\"statusID\"] = this.statusID !== undefined ? this.statusID : null;\r\n data[\"mailSubject\"] = this.mailSubject !== undefined ? this.mailSubject : null;\r\n data[\"reservationNumber\"] = this.reservationNumber !== undefined ? this.reservationNumber : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmailForwarderLogRow {\r\n id?: number;\r\n contactID?: number | null;\r\n forwardedDate?: string | null;\r\n senderEmail?: string | null;\r\n forwardedToEmail?: string | null;\r\n statusID?: EEmailForwardedStatus | null;\r\n mailSubject?: string | null;\r\n reservationNumber?: string | null;\r\n offertaID?: number | null;\r\n}\r\n\r\nexport enum EEmailForwardedStatus {\r\n Ok = \"Ok\",\r\n Error = \"Error\",\r\n NotForwarded = \"NotForwarded\",\r\n}\r\n\r\nexport class GetEmailForwarderLogRequest extends NrTableRequest implements IGetEmailForwarderLogRequest {\r\n startDate?: string | null;\r\n endDate?: string | null;\r\n toEmail?: string | null;\r\n fromEmail?: string | null;\r\n subject?: string | null;\r\n status?: EEmailForwardedStatus | null;\r\n contactID?: number | null;\r\n reservationNumber?: string | null;\r\n offertaID?: number | null;\r\n externalOnly?: boolean;\r\n\r\n constructor(data?: IGetEmailForwarderLogRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.startDate = _data[\"startDate\"] !== undefined ? _data[\"startDate\"] : null;\r\n this.endDate = _data[\"endDate\"] !== undefined ? _data[\"endDate\"] : null;\r\n this.toEmail = _data[\"toEmail\"] !== undefined ? _data[\"toEmail\"] : null;\r\n this.fromEmail = _data[\"fromEmail\"] !== undefined ? _data[\"fromEmail\"] : null;\r\n this.subject = _data[\"subject\"] !== undefined ? _data[\"subject\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.contactID = _data[\"contactID\"] !== undefined ? _data[\"contactID\"] : null;\r\n this.reservationNumber = _data[\"reservationNumber\"] !== undefined ? _data[\"reservationNumber\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.externalOnly = _data[\"externalOnly\"] !== undefined ? _data[\"externalOnly\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetEmailForwarderLogRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetEmailForwarderLogRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"startDate\"] = this.startDate !== undefined ? this.startDate : null;\r\n data[\"endDate\"] = this.endDate !== undefined ? this.endDate : null;\r\n data[\"toEmail\"] = this.toEmail !== undefined ? this.toEmail : null;\r\n data[\"fromEmail\"] = this.fromEmail !== undefined ? this.fromEmail : null;\r\n data[\"subject\"] = this.subject !== undefined ? this.subject : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"contactID\"] = this.contactID !== undefined ? this.contactID : null;\r\n data[\"reservationNumber\"] = this.reservationNumber !== undefined ? this.reservationNumber : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"externalOnly\"] = this.externalOnly !== undefined ? this.externalOnly : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetEmailForwarderLogRequest extends INrTableRequest {\r\n startDate?: string | null;\r\n endDate?: string | null;\r\n toEmail?: string | null;\r\n fromEmail?: string | null;\r\n subject?: string | null;\r\n status?: EEmailForwardedStatus | null;\r\n contactID?: number | null;\r\n reservationNumber?: string | null;\r\n offertaID?: number | null;\r\n externalOnly?: boolean;\r\n}\r\n\r\nexport class AdvancePaymentGetRequest extends LocalizedRequest implements IAdvancePaymentGetRequest {\r\n /** ID dell'entità da recuperare */\r\n id?: number;\r\n\r\n constructor(data?: IAdvancePaymentGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentGetRequest extends ILocalizedRequest {\r\n /** ID dell'entità da recuperare */\r\n id?: number;\r\n}\r\n\r\nexport class AdvancePaymentDeletePreviewResponse extends OkApiResponse implements IAdvancePaymentDeletePreviewResponse {\r\n /** Se true è possibile procedere all'eliminazione */\r\n okToDelete?: boolean;\r\n /** Numero di righe di dati offerte che hanno l'ID che si sta per cancellare */\r\n affectedCount?: number;\r\n\r\n constructor(data?: IAdvancePaymentDeletePreviewResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.okToDelete = _data[\"okToDelete\"] !== undefined ? _data[\"okToDelete\"] : null;\r\n this.affectedCount = _data[\"affectedCount\"] !== undefined ? _data[\"affectedCount\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentDeletePreviewResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentDeletePreviewResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"okToDelete\"] = this.okToDelete !== undefined ? this.okToDelete : null;\r\n data[\"affectedCount\"] = this.affectedCount !== undefined ? this.affectedCount : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentDeletePreviewResponse extends IOkApiResponse {\r\n /** Se true è possibile procedere all'eliminazione */\r\n okToDelete?: boolean;\r\n /** Numero di righe di dati offerte che hanno l'ID che si sta per cancellare */\r\n affectedCount?: number;\r\n}\r\n\r\nexport class AdvancePaymentGetResponse extends OkApiResponse implements IAdvancePaymentGetResponse {\r\n /** Entità letta */\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitore;\r\n\r\n constructor(data?: IAdvancePaymentGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAnticipoFornitore = _data[\"servizioAnticipoFornitore\"] ? ServizioAnticipoFornitore.fromJS(_data[\"servizioAnticipoFornitore\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAnticipoFornitore\"] = this.servizioAnticipoFornitore ? this.servizioAnticipoFornitore.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentGetResponse extends IOkApiResponse {\r\n /** Entità letta */\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitore;\r\n}\r\n\r\nexport class ServizioAnticipoFornitore implements IServizioAnticipoFornitore {\r\n id?: number;\r\n nome!: string;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n ordine?: number;\r\n note?: string | null;\r\n tipoAnticipo?: ETipoAnticipoFornitore;\r\n valore?: number;\r\n moltiplicaPerPax?: boolean;\r\n valutaID?: number | null;\r\n entroGiorni?: number | null;\r\n entroGiorniDaInizioServizio?: boolean;\r\n\r\n constructor(data?: IServizioAnticipoFornitore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.tipoAnticipo = _data[\"tipoAnticipo\"] !== undefined ? _data[\"tipoAnticipo\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n this.moltiplicaPerPax = _data[\"moltiplicaPerPax\"] !== undefined ? _data[\"moltiplicaPerPax\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.entroGiorni = _data[\"entroGiorni\"] !== undefined ? _data[\"entroGiorni\"] : null;\r\n this.entroGiorniDaInizioServizio = _data[\"entroGiorniDaInizioServizio\"] !== undefined ? _data[\"entroGiorniDaInizioServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAnticipoFornitore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAnticipoFornitore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"tipoAnticipo\"] = this.tipoAnticipo !== undefined ? this.tipoAnticipo : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n data[\"moltiplicaPerPax\"] = this.moltiplicaPerPax !== undefined ? this.moltiplicaPerPax : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"entroGiorni\"] = this.entroGiorni !== undefined ? this.entroGiorni : null;\r\n data[\"entroGiorniDaInizioServizio\"] = this.entroGiorniDaInizioServizio !== undefined ? this.entroGiorniDaInizioServizio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAnticipoFornitore {\r\n id?: number;\r\n nome: string;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n ordine?: number;\r\n note?: string | null;\r\n tipoAnticipo?: ETipoAnticipoFornitore;\r\n valore?: number;\r\n moltiplicaPerPax?: boolean;\r\n valutaID?: number | null;\r\n entroGiorni?: number | null;\r\n entroGiorniDaInizioServizio?: boolean;\r\n}\r\n\r\nexport enum ETipoAnticipoFornitore {\r\n ImportoFisso = \"ImportoFisso\",\r\n Percentuale = \"Percentuale\",\r\n Notti = \"Notti\",\r\n}\r\n\r\nexport class NrTableResponseOfAdvancePaymentRow extends OkApiResponse implements INrTableResponseOfAdvancePaymentRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdvancePaymentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAdvancePaymentRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AdvancePaymentRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAdvancePaymentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAdvancePaymentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAdvancePaymentRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdvancePaymentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class AdvancePaymentsList extends NrTableResponseOfAdvancePaymentRow implements IAdvancePaymentsList {\r\n\r\n constructor(data?: IAdvancePaymentsList) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentsList {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentsList();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentsList extends INrTableResponseOfAdvancePaymentRow {\r\n}\r\n\r\nexport class AdvancePaymentRow implements IAdvancePaymentRow {\r\n /** ID dell'entità */\r\n id?: number;\r\n /** Entità */\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitore;\r\n /** Nome in lingua del servizio (se c'è) */\r\n servizio?: string | null;\r\n /** True se il servizio è obsoleto */\r\n servizioObsoleto?: boolean;\r\n /** True se il servizio è eliminato */\r\n servizioEliminato?: boolean;\r\n /** Nome dell'accordo (se c'è) */\r\n accordo?: string | null;\r\n /** Nome in lingua del luogo (se c'è) */\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n\r\n constructor(data?: IAdvancePaymentRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioAnticipoFornitore = _data[\"servizioAnticipoFornitore\"] ? ServizioAnticipoFornitore.fromJS(_data[\"servizioAnticipoFornitore\"]) : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.servizioObsoleto = _data[\"servizioObsoleto\"] !== undefined ? _data[\"servizioObsoleto\"] : null;\r\n this.servizioEliminato = _data[\"servizioEliminato\"] !== undefined ? _data[\"servizioEliminato\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoEliminato = _data[\"luogoEliminato\"] !== undefined ? _data[\"luogoEliminato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioAnticipoFornitore\"] = this.servizioAnticipoFornitore ? this.servizioAnticipoFornitore.toJSON() : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"servizioObsoleto\"] = this.servizioObsoleto !== undefined ? this.servizioObsoleto : null;\r\n data[\"servizioEliminato\"] = this.servizioEliminato !== undefined ? this.servizioEliminato : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoEliminato\"] = this.luogoEliminato !== undefined ? this.luogoEliminato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentRow {\r\n /** ID dell'entità */\r\n id?: number;\r\n /** Entità */\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitore;\r\n /** Nome in lingua del servizio (se c'è) */\r\n servizio?: string | null;\r\n /** True se il servizio è obsoleto */\r\n servizioObsoleto?: boolean;\r\n /** True se il servizio è eliminato */\r\n servizioEliminato?: boolean;\r\n /** Nome dell'accordo (se c'è) */\r\n accordo?: string | null;\r\n /** Nome in lingua del luogo (se c'è) */\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n}\r\n\r\nexport class AdvancePaymentsListRequest extends NrTableRequest implements IAdvancePaymentsListRequest {\r\n /** Testo da cercare nelle note */\r\n term?: string | null;\r\n /** Accordo associato */\r\n accordoID?: number | null;\r\n /** Solo non associati ad accordo */\r\n noAccordo?: boolean;\r\n /** Tipo di servizio associato */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Sono non associati a tipo servizio */\r\n noTipoServizio?: boolean;\r\n /** Servizio associato */\r\n servizioID?: number | null;\r\n /** Solo non associati a servizio */\r\n noServizio?: boolean;\r\n /** Luogo associato */\r\n luogoID?: number | null;\r\n /** Solo non associati a luogo */\r\n noLuogo?: boolean;\r\n\r\n constructor(data?: IAdvancePaymentsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.noAccordo = _data[\"noAccordo\"] !== undefined ? _data[\"noAccordo\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.noTipoServizio = _data[\"noTipoServizio\"] !== undefined ? _data[\"noTipoServizio\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.noServizio = _data[\"noServizio\"] !== undefined ? _data[\"noServizio\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.noLuogo = _data[\"noLuogo\"] !== undefined ? _data[\"noLuogo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"noAccordo\"] = this.noAccordo !== undefined ? this.noAccordo : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"noTipoServizio\"] = this.noTipoServizio !== undefined ? this.noTipoServizio : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"noServizio\"] = this.noServizio !== undefined ? this.noServizio : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"noLuogo\"] = this.noLuogo !== undefined ? this.noLuogo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentsListRequest extends INrTableRequest {\r\n /** Testo da cercare nelle note */\r\n term?: string | null;\r\n /** Accordo associato */\r\n accordoID?: number | null;\r\n /** Solo non associati ad accordo */\r\n noAccordo?: boolean;\r\n /** Tipo di servizio associato */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Sono non associati a tipo servizio */\r\n noTipoServizio?: boolean;\r\n /** Servizio associato */\r\n servizioID?: number | null;\r\n /** Solo non associati a servizio */\r\n noServizio?: boolean;\r\n /** Luogo associato */\r\n luogoID?: number | null;\r\n /** Solo non associati a luogo */\r\n noLuogo?: boolean;\r\n}\r\n\r\nexport class AdvancePaymentUpsertRequest extends LocalizedRequest implements IAdvancePaymentUpsertRequest {\r\n /** Entità da persistere (nuova o modificata) */\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitoreBase;\r\n\r\n constructor(data?: IAdvancePaymentUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAnticipoFornitore = _data[\"servizioAnticipoFornitore\"] ? ServizioAnticipoFornitoreBase.fromJS(_data[\"servizioAnticipoFornitore\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAnticipoFornitore\"] = this.servizioAnticipoFornitore ? this.servizioAnticipoFornitore.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentUpsertRequest extends ILocalizedRequest {\r\n /** Entità da persistere (nuova o modificata) */\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitoreBase;\r\n}\r\n\r\nexport abstract class ServizioAnticipoFornitoreBase implements IServizioAnticipoFornitoreBase {\r\n id?: number;\r\n nome?: string;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n ordine?: number;\r\n note?: string | null;\r\n tipoAnticipo?: ETipoAnticipoFornitore;\r\n valore?: number;\r\n moltiplicaPerPax?: boolean;\r\n valutaID?: number | null;\r\n entroGiorni?: number | null;\r\n entroGiorniDaInizioServizio?: boolean;\r\n\r\n constructor(data?: IServizioAnticipoFornitoreBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.tipoAnticipo = _data[\"tipoAnticipo\"] !== undefined ? _data[\"tipoAnticipo\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n this.moltiplicaPerPax = _data[\"moltiplicaPerPax\"] !== undefined ? _data[\"moltiplicaPerPax\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.entroGiorni = _data[\"entroGiorni\"] !== undefined ? _data[\"entroGiorni\"] : null;\r\n this.entroGiorniDaInizioServizio = _data[\"entroGiorniDaInizioServizio\"] !== undefined ? _data[\"entroGiorniDaInizioServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAnticipoFornitoreBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ServizioAnticipoFornitoreBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"tipoAnticipo\"] = this.tipoAnticipo !== undefined ? this.tipoAnticipo : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n data[\"moltiplicaPerPax\"] = this.moltiplicaPerPax !== undefined ? this.moltiplicaPerPax : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"entroGiorni\"] = this.entroGiorni !== undefined ? this.entroGiorni : null;\r\n data[\"entroGiorniDaInizioServizio\"] = this.entroGiorniDaInizioServizio !== undefined ? this.entroGiorniDaInizioServizio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAnticipoFornitoreBase {\r\n id?: number;\r\n nome?: string;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n ordine?: number;\r\n note?: string | null;\r\n tipoAnticipo?: ETipoAnticipoFornitore;\r\n valore?: number;\r\n moltiplicaPerPax?: boolean;\r\n valutaID?: number | null;\r\n entroGiorni?: number | null;\r\n entroGiorniDaInizioServizio?: boolean;\r\n}\r\n\r\nexport class HelpContentGetResponse extends OkApiResponse implements IHelpContentGetResponse {\r\n videos?: YouTubeVideo[] | null;\r\n nextPageToken?: string | null;\r\n prevPageToken?: string | null;\r\n\r\n constructor(data?: IHelpContentGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"videos\"])) {\r\n this.videos = [] as any;\r\n for (let item of _data[\"videos\"])\r\n this.videos!.push(YouTubeVideo.fromJS(item));\r\n }\r\n else {\r\n this.videos = null;\r\n }\r\n this.nextPageToken = _data[\"nextPageToken\"] !== undefined ? _data[\"nextPageToken\"] : null;\r\n this.prevPageToken = _data[\"prevPageToken\"] !== undefined ? _data[\"prevPageToken\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HelpContentGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HelpContentGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.videos)) {\r\n data[\"videos\"] = [];\r\n for (let item of this.videos)\r\n data[\"videos\"].push(item.toJSON());\r\n }\r\n data[\"nextPageToken\"] = this.nextPageToken !== undefined ? this.nextPageToken : null;\r\n data[\"prevPageToken\"] = this.prevPageToken !== undefined ? this.prevPageToken : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHelpContentGetResponse extends IOkApiResponse {\r\n videos?: YouTubeVideo[] | null;\r\n nextPageToken?: string | null;\r\n prevPageToken?: string | null;\r\n}\r\n\r\nexport class YouTubeVideo implements IYouTubeVideo {\r\n id?: string | null;\r\n publishedAt?: string;\r\n player?: string | null;\r\n title?: string | null;\r\n tags?: string[] | null;\r\n thumbnails?: YouTubeThumbnails | null;\r\n\r\n constructor(data?: IYouTubeVideo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.publishedAt = _data[\"publishedAt\"] !== undefined ? _data[\"publishedAt\"] : null;\r\n this.player = _data[\"player\"] !== undefined ? _data[\"player\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(item);\r\n }\r\n else {\r\n this.tags = null;\r\n }\r\n this.thumbnails = _data[\"thumbnails\"] ? YouTubeThumbnails.fromJS(_data[\"thumbnails\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): YouTubeVideo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new YouTubeVideo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"publishedAt\"] = this.publishedAt !== undefined ? this.publishedAt : null;\r\n data[\"player\"] = this.player !== undefined ? this.player : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item);\r\n }\r\n data[\"thumbnails\"] = this.thumbnails ? this.thumbnails.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IYouTubeVideo {\r\n id?: string | null;\r\n publishedAt?: string;\r\n player?: string | null;\r\n title?: string | null;\r\n tags?: string[] | null;\r\n thumbnails?: YouTubeThumbnails | null;\r\n}\r\n\r\nexport class YouTubeThumbnails implements IYouTubeThumbnails {\r\n default?: YouTubeThumbnail | null;\r\n medium?: YouTubeThumbnail | null;\r\n high?: YouTubeThumbnail | null;\r\n standard?: YouTubeThumbnail | null;\r\n maxres?: YouTubeThumbnail | null;\r\n\r\n constructor(data?: IYouTubeThumbnails) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.default = _data[\"default\"] ? YouTubeThumbnail.fromJS(_data[\"default\"]) : null;\r\n this.medium = _data[\"medium\"] ? YouTubeThumbnail.fromJS(_data[\"medium\"]) : null;\r\n this.high = _data[\"high\"] ? YouTubeThumbnail.fromJS(_data[\"high\"]) : null;\r\n this.standard = _data[\"standard\"] ? YouTubeThumbnail.fromJS(_data[\"standard\"]) : null;\r\n this.maxres = _data[\"maxres\"] ? YouTubeThumbnail.fromJS(_data[\"maxres\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): YouTubeThumbnails {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new YouTubeThumbnails();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"default\"] = this.default ? this.default.toJSON() : null;\r\n data[\"medium\"] = this.medium ? this.medium.toJSON() : null;\r\n data[\"high\"] = this.high ? this.high.toJSON() : null;\r\n data[\"standard\"] = this.standard ? this.standard.toJSON() : null;\r\n data[\"maxres\"] = this.maxres ? this.maxres.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IYouTubeThumbnails {\r\n default?: YouTubeThumbnail | null;\r\n medium?: YouTubeThumbnail | null;\r\n high?: YouTubeThumbnail | null;\r\n standard?: YouTubeThumbnail | null;\r\n maxres?: YouTubeThumbnail | null;\r\n}\r\n\r\nexport class YouTubeThumbnail implements IYouTubeThumbnail {\r\n url?: string | null;\r\n width?: number;\r\n height?: number;\r\n\r\n constructor(data?: IYouTubeThumbnail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.width = _data[\"width\"] !== undefined ? _data[\"width\"] : null;\r\n this.height = _data[\"height\"] !== undefined ? _data[\"height\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): YouTubeThumbnail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new YouTubeThumbnail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"width\"] = this.width !== undefined ? this.width : null;\r\n data[\"height\"] = this.height !== undefined ? this.height : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IYouTubeThumbnail {\r\n url?: string | null;\r\n width?: number;\r\n height?: number;\r\n}\r\n\r\nexport class HelpContentGetRequest extends ApiRequest implements IHelpContentGetRequest {\r\n pageSize?: number;\r\n pageToken?: string | null;\r\n\r\n constructor(data?: IHelpContentGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pageSize = _data[\"pageSize\"] !== undefined ? _data[\"pageSize\"] : null;\r\n this.pageToken = _data[\"pageToken\"] !== undefined ? _data[\"pageToken\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HelpContentGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HelpContentGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pageSize\"] = this.pageSize !== undefined ? this.pageSize : null;\r\n data[\"pageToken\"] = this.pageToken !== undefined ? this.pageToken : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHelpContentGetRequest extends IApiRequest {\r\n pageSize?: number;\r\n pageToken?: string | null;\r\n}\r\n\r\nexport class NaarAIChatRequestResponse extends OkApiResponse implements INaarAIChatRequestResponse {\r\n message?: string;\r\n\r\n constructor(data?: INaarAIChatRequestResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIChatRequestResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIChatRequestResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIChatRequestResponse extends IOkApiResponse {\r\n message?: string;\r\n}\r\n\r\nexport class NaarAIChatRequestRequest extends LocalizedRequest implements INaarAIChatRequestRequest {\r\n message?: string;\r\n newChat?: boolean;\r\n\r\n constructor(data?: INaarAIChatRequestRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n this.newChat = _data[\"newChat\"] !== undefined ? _data[\"newChat\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIChatRequestRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIChatRequestRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n data[\"newChat\"] = this.newChat !== undefined ? this.newChat : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIChatRequestRequest extends ILocalizedRequest {\r\n message?: string;\r\n newChat?: boolean;\r\n}\r\n\r\nexport class NaarAIGenerateHotelDescriptionResponse extends OkApiResponse implements INaarAIGenerateHotelDescriptionResponse {\r\n testi?: TestoCompleto[] | null;\r\n\r\n constructor(data?: INaarAIGenerateHotelDescriptionResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"testi\"])) {\r\n this.testi = [] as any;\r\n for (let item of _data[\"testi\"])\r\n this.testi!.push(TestoCompleto.fromJS(item));\r\n }\r\n else {\r\n this.testi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIGenerateHotelDescriptionResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIGenerateHotelDescriptionResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.testi)) {\r\n data[\"testi\"] = [];\r\n for (let item of this.testi)\r\n data[\"testi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIGenerateHotelDescriptionResponse extends IOkApiResponse {\r\n testi?: TestoCompleto[] | null;\r\n}\r\n\r\nexport class TestoCompleto implements ITestoCompleto {\r\n testoID?: number;\r\n lingua?: ELingua;\r\n tipoTesto?: ETipoTesto;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n testo?: string | null;\r\n giorno?: number;\r\n ordine?: number;\r\n tradottoAutomaticamente?: boolean;\r\n generatoAI?: boolean;\r\n allegati?: TestoCompletoAllegato[] | null;\r\n\r\n constructor(data?: ITestoCompleto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.testoID = _data[\"testoID\"] !== undefined ? _data[\"testoID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.tipoTesto = _data[\"tipoTesto\"] !== undefined ? _data[\"tipoTesto\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.sunto = _data[\"sunto\"] !== undefined ? _data[\"sunto\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.tradottoAutomaticamente = _data[\"tradottoAutomaticamente\"] !== undefined ? _data[\"tradottoAutomaticamente\"] : null;\r\n this.generatoAI = _data[\"generatoAI\"] !== undefined ? _data[\"generatoAI\"] : null;\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(TestoCompletoAllegato.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TestoCompleto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TestoCompleto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testoID\"] = this.testoID !== undefined ? this.testoID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"tipoTesto\"] = this.tipoTesto !== undefined ? this.tipoTesto : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"sunto\"] = this.sunto !== undefined ? this.sunto : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"tradottoAutomaticamente\"] = this.tradottoAutomaticamente !== undefined ? this.tradottoAutomaticamente : null;\r\n data[\"generatoAI\"] = this.generatoAI !== undefined ? this.generatoAI : null;\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITestoCompleto {\r\n testoID?: number;\r\n lingua?: ELingua;\r\n tipoTesto?: ETipoTesto;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n testo?: string | null;\r\n giorno?: number;\r\n ordine?: number;\r\n tradottoAutomaticamente?: boolean;\r\n generatoAI?: boolean;\r\n allegati?: TestoCompletoAllegato[] | null;\r\n}\r\n\r\nexport enum ETipoTesto {\r\n Articolo = \"Articolo\",\r\n ArticoloTraducibile = \"ArticoloTraducibile\",\r\n TestoFornitore = \"TestoFornitore\",\r\n}\r\n\r\nexport class TestoCompletoAllegato implements ITestoCompletoAllegato {\r\n id?: number;\r\n nome?: string | null;\r\n\r\n constructor(data?: ITestoCompletoAllegato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TestoCompletoAllegato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TestoCompletoAllegato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITestoCompletoAllegato {\r\n id?: number;\r\n nome?: string | null;\r\n}\r\n\r\nexport class NaarAIGenerateHotelDescriptionRequest extends LocalizedRequest implements INaarAIGenerateHotelDescriptionRequest {\r\n servizioID?: number;\r\n\r\n constructor(data?: INaarAIGenerateHotelDescriptionRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIGenerateHotelDescriptionRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIGenerateHotelDescriptionRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIGenerateHotelDescriptionRequest extends ILocalizedRequest {\r\n servizioID?: number;\r\n}\r\n\r\nexport class NaarAITimeZoneGapResponse extends OkApiResponse implements INaarAITimeZoneGapResponse {\r\n timeZoneOne?: string | null;\r\n timeZoneTwo?: string | null;\r\n timeFromGreenwichOne?: string | null;\r\n timeFromGreenwichTwo?: string | null;\r\n gap?: number;\r\n\r\n constructor(data?: INaarAITimeZoneGapResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.timeZoneOne = _data[\"timeZoneOne\"] !== undefined ? _data[\"timeZoneOne\"] : null;\r\n this.timeZoneTwo = _data[\"timeZoneTwo\"] !== undefined ? _data[\"timeZoneTwo\"] : null;\r\n this.timeFromGreenwichOne = _data[\"timeFromGreenwichOne\"] !== undefined ? _data[\"timeFromGreenwichOne\"] : null;\r\n this.timeFromGreenwichTwo = _data[\"timeFromGreenwichTwo\"] !== undefined ? _data[\"timeFromGreenwichTwo\"] : null;\r\n this.gap = _data[\"gap\"] !== undefined ? _data[\"gap\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITimeZoneGapResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITimeZoneGapResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"timeZoneOne\"] = this.timeZoneOne !== undefined ? this.timeZoneOne : null;\r\n data[\"timeZoneTwo\"] = this.timeZoneTwo !== undefined ? this.timeZoneTwo : null;\r\n data[\"timeFromGreenwichOne\"] = this.timeFromGreenwichOne !== undefined ? this.timeFromGreenwichOne : null;\r\n data[\"timeFromGreenwichTwo\"] = this.timeFromGreenwichTwo !== undefined ? this.timeFromGreenwichTwo : null;\r\n data[\"gap\"] = this.gap !== undefined ? this.gap : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITimeZoneGapResponse extends IOkApiResponse {\r\n timeZoneOne?: string | null;\r\n timeZoneTwo?: string | null;\r\n timeFromGreenwichOne?: string | null;\r\n timeFromGreenwichTwo?: string | null;\r\n gap?: number;\r\n}\r\n\r\nexport class NaarAITimeZoneGapRequest extends ApiRequest implements INaarAITimeZoneGapRequest {\r\n placeFromID!: number;\r\n placeToID!: number;\r\n\r\n constructor(data?: INaarAITimeZoneGapRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.placeFromID = _data[\"placeFromID\"] !== undefined ? _data[\"placeFromID\"] : null;\r\n this.placeToID = _data[\"placeToID\"] !== undefined ? _data[\"placeToID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITimeZoneGapRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITimeZoneGapRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"placeFromID\"] = this.placeFromID !== undefined ? this.placeFromID : null;\r\n data[\"placeToID\"] = this.placeToID !== undefined ? this.placeToID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITimeZoneGapRequest extends IApiRequest {\r\n placeFromID: number;\r\n placeToID: number;\r\n}\r\n\r\nexport class NaarAIQueryDBResponse extends OkApiResponse implements INaarAIQueryDBResponse {\r\n sqlQuery?: string | null;\r\n resultData?: StatisticTable | null;\r\n\r\n constructor(data?: INaarAIQueryDBResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.sqlQuery = _data[\"sqlQuery\"] !== undefined ? _data[\"sqlQuery\"] : null;\r\n this.resultData = _data[\"resultData\"] ? StatisticTable.fromJS(_data[\"resultData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIQueryDBResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIQueryDBResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sqlQuery\"] = this.sqlQuery !== undefined ? this.sqlQuery : null;\r\n data[\"resultData\"] = this.resultData ? this.resultData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIQueryDBResponse extends IOkApiResponse {\r\n sqlQuery?: string | null;\r\n resultData?: StatisticTable | null;\r\n}\r\n\r\nexport class StatisticTable implements IStatisticTable {\r\n columns?: StatisticTableColumn[];\r\n rows?: { [key: string]: any; }[];\r\n rowCount?: number;\r\n\r\n constructor(data?: IStatisticTable) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"columns\"])) {\r\n this.columns = [] as any;\r\n for (let item of _data[\"columns\"])\r\n this.columns!.push(StatisticTableColumn.fromJS(item));\r\n }\r\n else {\r\n this.columns = null;\r\n }\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(item);\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.rowCount = _data[\"rowCount\"] !== undefined ? _data[\"rowCount\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticTable {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticTable();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.columns)) {\r\n data[\"columns\"] = [];\r\n for (let item of this.columns)\r\n data[\"columns\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item);\r\n }\r\n data[\"rowCount\"] = this.rowCount !== undefined ? this.rowCount : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticTable {\r\n columns?: StatisticTableColumn[];\r\n rows?: { [key: string]: any; }[];\r\n rowCount?: number;\r\n}\r\n\r\nexport class StatisticTableColumn implements IStatisticTableColumn {\r\n name?: string;\r\n format?: string;\r\n text?: string;\r\n alignment?: string;\r\n\r\n constructor(data?: IStatisticTableColumn) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.format = _data[\"format\"] !== undefined ? _data[\"format\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.alignment = _data[\"alignment\"] !== undefined ? _data[\"alignment\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticTableColumn {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticTableColumn();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"format\"] = this.format !== undefined ? this.format : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"alignment\"] = this.alignment !== undefined ? this.alignment : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticTableColumn {\r\n name?: string;\r\n format?: string;\r\n text?: string;\r\n alignment?: string;\r\n}\r\n\r\nexport class NaarAIQueryDBRequest extends LocalizedRequest implements INaarAIQueryDBRequest {\r\n contextTableName?: string | null;\r\n query?: string | null;\r\n\r\n constructor(data?: INaarAIQueryDBRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contextTableName = _data[\"contextTableName\"] !== undefined ? _data[\"contextTableName\"] : null;\r\n this.query = _data[\"query\"] !== undefined ? _data[\"query\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIQueryDBRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIQueryDBRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contextTableName\"] = this.contextTableName !== undefined ? this.contextTableName : null;\r\n data[\"query\"] = this.query !== undefined ? this.query : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIQueryDBRequest extends ILocalizedRequest {\r\n contextTableName?: string | null;\r\n query?: string | null;\r\n}\r\n\r\nexport class NaarAISummarizeTextResponse extends OkApiResponse implements INaarAISummarizeTextResponse {\r\n summarizedText?: string | null;\r\n\r\n constructor(data?: INaarAISummarizeTextResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.summarizedText = _data[\"summarizedText\"] !== undefined ? _data[\"summarizedText\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAISummarizeTextResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAISummarizeTextResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"summarizedText\"] = this.summarizedText !== undefined ? this.summarizedText : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAISummarizeTextResponse extends IOkApiResponse {\r\n summarizedText?: string | null;\r\n}\r\n\r\nexport class NaarAISummarizeTextRequest extends LocalizedRequest implements INaarAISummarizeTextRequest {\r\n text?: string | null;\r\n\r\n constructor(data?: INaarAISummarizeTextRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAISummarizeTextRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAISummarizeTextRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAISummarizeTextRequest extends ILocalizedRequest {\r\n text?: string | null;\r\n}\r\n\r\nexport class NaarAITuningGetRequest extends ApiRequest implements INaarAITuningGetRequest {\r\n id?: number;\r\n\r\n constructor(data?: INaarAITuningGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITuningGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITuningGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITuningGetRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class NaarAITuningDeleteRequest extends NaarAITuningGetRequest implements INaarAITuningDeleteRequest {\r\n\r\n constructor(data?: INaarAITuningDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): NaarAITuningDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITuningDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITuningDeleteRequest extends INaarAITuningGetRequest {\r\n}\r\n\r\nexport class NaarAITuningGetResponse extends OkApiResponse implements INaarAITuningGetResponse {\r\n tuning?: NaarAIRequestTuning | null;\r\n\r\n constructor(data?: INaarAITuningGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tuning = _data[\"tuning\"] ? NaarAIRequestTuning.fromJS(_data[\"tuning\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITuningGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITuningGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tuning\"] = this.tuning ? this.tuning.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITuningGetResponse extends IOkApiResponse {\r\n tuning?: NaarAIRequestTuning | null;\r\n}\r\n\r\nexport class NaarAIRequestTuning implements INaarAIRequestTuning {\r\n id!: number;\r\n name!: string;\r\n model!: string;\r\n message!: string;\r\n params?: { [key: string]: NaarAIRequestTuningParam; } | null;\r\n assistantMessage?: string | null;\r\n assistantParams?: { [key: string]: NaarAIRequestTuningParam; } | null;\r\n\r\n constructor(data?: INaarAIRequestTuning) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.model = _data[\"model\"] !== undefined ? _data[\"model\"] : null;\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n if (_data[\"params\"]) {\r\n this.params = {} as any;\r\n for (let key in _data[\"params\"]) {\r\n if (_data[\"params\"].hasOwnProperty(key))\r\n (this.params)![key] = _data[\"params\"][key] ? NaarAIRequestTuningParam.fromJS(_data[\"params\"][key]) : new NaarAIRequestTuningParam();\r\n }\r\n }\r\n else {\r\n this.params = null;\r\n }\r\n this.assistantMessage = _data[\"assistantMessage\"] !== undefined ? _data[\"assistantMessage\"] : null;\r\n if (_data[\"assistantParams\"]) {\r\n this.assistantParams = {} as any;\r\n for (let key in _data[\"assistantParams\"]) {\r\n if (_data[\"assistantParams\"].hasOwnProperty(key))\r\n (this.assistantParams)![key] = _data[\"assistantParams\"][key] ? NaarAIRequestTuningParam.fromJS(_data[\"assistantParams\"][key]) : new NaarAIRequestTuningParam();\r\n }\r\n }\r\n else {\r\n this.assistantParams = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIRequestTuning {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIRequestTuning();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"model\"] = this.model !== undefined ? this.model : null;\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n if (this.params) {\r\n data[\"params\"] = {};\r\n for (let key in this.params) {\r\n if (this.params.hasOwnProperty(key))\r\n (data[\"params\"])[key] = this.params[key] ? this.params[key].toJSON() : null;\r\n }\r\n }\r\n data[\"assistantMessage\"] = this.assistantMessage !== undefined ? this.assistantMessage : null;\r\n if (this.assistantParams) {\r\n data[\"assistantParams\"] = {};\r\n for (let key in this.assistantParams) {\r\n if (this.assistantParams.hasOwnProperty(key))\r\n (data[\"assistantParams\"])[key] = this.assistantParams[key] ? this.assistantParams[key].toJSON() : null;\r\n }\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIRequestTuning {\r\n id: number;\r\n name: string;\r\n model: string;\r\n message: string;\r\n params?: { [key: string]: NaarAIRequestTuningParam; } | null;\r\n assistantMessage?: string | null;\r\n assistantParams?: { [key: string]: NaarAIRequestTuningParam; } | null;\r\n}\r\n\r\nexport class NaarAIRequestTuningParam implements INaarAIRequestTuningParam {\r\n type?: string;\r\n labelId?: string | null;\r\n\r\n constructor(data?: INaarAIRequestTuningParam) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.labelId = _data[\"labelId\"] !== undefined ? _data[\"labelId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAIRequestTuningParam {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAIRequestTuningParam();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"labelId\"] = this.labelId !== undefined ? this.labelId : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAIRequestTuningParam {\r\n type?: string;\r\n labelId?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfNaarAIRequestTuning extends OkApiResponse implements INrTableResponseOfNaarAIRequestTuning {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: NaarAIRequestTuning[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfNaarAIRequestTuning) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(NaarAIRequestTuning.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfNaarAIRequestTuning {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfNaarAIRequestTuning();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfNaarAIRequestTuning extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: NaarAIRequestTuning[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class NaarAITuningListRequest extends NrTableRequest implements INaarAITuningListRequest {\r\n name?: string | null;\r\n model?: string | null;\r\n\r\n constructor(data?: INaarAITuningListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.model = _data[\"model\"] !== undefined ? _data[\"model\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITuningListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITuningListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"model\"] = this.model !== undefined ? this.model : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITuningListRequest extends INrTableRequest {\r\n name?: string | null;\r\n model?: string | null;\r\n}\r\n\r\nexport class NaarAITuningTestResponse extends OkApiResponse implements INaarAITuningTestResponse {\r\n response?: string | null;\r\n\r\n constructor(data?: INaarAITuningTestResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.response = _data[\"response\"] !== undefined ? _data[\"response\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITuningTestResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITuningTestResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"response\"] = this.response !== undefined ? this.response : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITuningTestResponse extends IOkApiResponse {\r\n response?: string | null;\r\n}\r\n\r\nexport class NaarAITuningTestRequest extends ApiRequest implements INaarAITuningTestRequest {\r\n tuning?: NaarAIRequestTuning | null;\r\n userMessage?: string | null;\r\n parameters?: { [key: string]: string; } | null;\r\n\r\n constructor(data?: INaarAITuningTestRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tuning = _data[\"tuning\"] ? NaarAIRequestTuning.fromJS(_data[\"tuning\"]) : null;\r\n this.userMessage = _data[\"userMessage\"] !== undefined ? _data[\"userMessage\"] : null;\r\n if (_data[\"parameters\"]) {\r\n this.parameters = {} as any;\r\n for (let key in _data[\"parameters\"]) {\r\n if (_data[\"parameters\"].hasOwnProperty(key))\r\n (this.parameters)![key] = _data[\"parameters\"][key] !== undefined ? _data[\"parameters\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.parameters = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITuningTestRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITuningTestRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tuning\"] = this.tuning ? this.tuning.toJSON() : null;\r\n data[\"userMessage\"] = this.userMessage !== undefined ? this.userMessage : null;\r\n if (this.parameters) {\r\n data[\"parameters\"] = {};\r\n for (let key in this.parameters) {\r\n if (this.parameters.hasOwnProperty(key))\r\n (data[\"parameters\"])[key] = this.parameters[key] !== undefined ? this.parameters[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITuningTestRequest extends IApiRequest {\r\n tuning?: NaarAIRequestTuning | null;\r\n userMessage?: string | null;\r\n parameters?: { [key: string]: string; } | null;\r\n}\r\n\r\nexport class NaarAITuningUpsertRequest extends ApiRequest implements INaarAITuningUpsertRequest {\r\n tuning?: NaarAIRequestTuning | null;\r\n\r\n constructor(data?: INaarAITuningUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tuning = _data[\"tuning\"] ? NaarAIRequestTuning.fromJS(_data[\"tuning\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarAITuningUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarAITuningUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tuning\"] = this.tuning ? this.tuning.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarAITuningUpsertRequest extends IApiRequest {\r\n tuning?: NaarAIRequestTuning | null;\r\n}\r\n\r\nexport class AirlineGetResponse extends OkApiResponse implements IAirlineGetResponse {\r\n airline?: CompagniaAerea;\r\n\r\n constructor(data?: IAirlineGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airline = _data[\"airline\"] ? CompagniaAerea.fromJS(_data[\"airline\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirlineGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirlineGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airline\"] = this.airline ? this.airline.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirlineGetResponse extends IOkApiResponse {\r\n airline?: CompagniaAerea;\r\n}\r\n\r\nexport class CompagniaAerea implements ICompagniaAerea {\r\n id?: number;\r\n codice!: string;\r\n nome!: string;\r\n idCpf?: number | null;\r\n rank?: number | null;\r\n commissione?: number | null;\r\n commNazionali?: number | null;\r\n codiceBSP?: string | null;\r\n icao?: string | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n searchTerms?: string | null;\r\n\r\n constructor(data?: ICompagniaAerea) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.idCpf = _data[\"idCpf\"] !== undefined ? _data[\"idCpf\"] : null;\r\n this.rank = _data[\"rank\"] !== undefined ? _data[\"rank\"] : null;\r\n this.commissione = _data[\"commissione\"] !== undefined ? _data[\"commissione\"] : null;\r\n this.commNazionali = _data[\"commNazionali\"] !== undefined ? _data[\"commNazionali\"] : null;\r\n this.codiceBSP = _data[\"codiceBSP\"] !== undefined ? _data[\"codiceBSP\"] : null;\r\n this.icao = _data[\"icao\"] !== undefined ? _data[\"icao\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.deletedAt = _data[\"deletedAt\"] !== undefined ? _data[\"deletedAt\"] : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CompagniaAerea {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CompagniaAerea();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"idCpf\"] = this.idCpf !== undefined ? this.idCpf : null;\r\n data[\"rank\"] = this.rank !== undefined ? this.rank : null;\r\n data[\"commissione\"] = this.commissione !== undefined ? this.commissione : null;\r\n data[\"commNazionali\"] = this.commNazionali !== undefined ? this.commNazionali : null;\r\n data[\"codiceBSP\"] = this.codiceBSP !== undefined ? this.codiceBSP : null;\r\n data[\"icao\"] = this.icao !== undefined ? this.icao : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"deletedAt\"] = this.deletedAt !== undefined ? this.deletedAt : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICompagniaAerea {\r\n id?: number;\r\n codice: string;\r\n nome: string;\r\n idCpf?: number | null;\r\n rank?: number | null;\r\n commissione?: number | null;\r\n commNazionali?: number | null;\r\n codiceBSP?: string | null;\r\n icao?: string | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n searchTerms?: string | null;\r\n}\r\n\r\nexport class AirlineGetRequest extends LocalizedRequest implements IAirlineGetRequest {\r\n airlineID?: number;\r\n\r\n constructor(data?: IAirlineGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airlineID = _data[\"airlineID\"] !== undefined ? _data[\"airlineID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirlineGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirlineGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airlineID\"] = this.airlineID !== undefined ? this.airlineID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirlineGetRequest extends ILocalizedRequest {\r\n airlineID?: number;\r\n}\r\n\r\nexport class AirlineUpdateRequest extends AirlineGetRequest implements IAirlineUpdateRequest {\r\n airline?: CompagniaAerea | null;\r\n\r\n constructor(data?: IAirlineUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airline = _data[\"airline\"] ? CompagniaAerea.fromJS(_data[\"airline\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirlineUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirlineUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airline\"] = this.airline ? this.airline.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirlineUpdateRequest extends IAirlineGetRequest {\r\n airline?: CompagniaAerea | null;\r\n}\r\n\r\nexport class AirlineDeleteRequest extends ApiRequest implements IAirlineDeleteRequest {\r\n airlineID?: number;\r\n\r\n constructor(data?: IAirlineDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airlineID = _data[\"airlineID\"] !== undefined ? _data[\"airlineID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirlineDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirlineDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airlineID\"] = this.airlineID !== undefined ? this.airlineID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirlineDeleteRequest extends IApiRequest {\r\n airlineID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfAirlineRow extends OkApiResponse implements INrTableResponseOfAirlineRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AirlineRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAirlineRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AirlineRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAirlineRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAirlineRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAirlineRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AirlineRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class AirlinesListResponse extends NrTableResponseOfAirlineRow implements IAirlinesListResponse {\r\n\r\n constructor(data?: IAirlinesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AirlinesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirlinesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirlinesListResponse extends INrTableResponseOfAirlineRow {\r\n}\r\n\r\nexport class AirlineRow implements IAirlineRow {\r\n id?: number;\r\n name?: string;\r\n code?: string;\r\n rank?: string;\r\n airline?: CompagniaAerea | null;\r\n\r\n constructor(data?: IAirlineRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.rank = _data[\"rank\"] !== undefined ? _data[\"rank\"] : null;\r\n this.airline = _data[\"airline\"] ? CompagniaAerea.fromJS(_data[\"airline\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirlineRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirlineRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"rank\"] = this.rank !== undefined ? this.rank : null;\r\n data[\"airline\"] = this.airline ? this.airline.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirlineRow {\r\n id?: number;\r\n name?: string;\r\n code?: string;\r\n rank?: string;\r\n airline?: CompagniaAerea | null;\r\n}\r\n\r\nexport class AirlinesListRequest extends NrTableRequest implements IAirlinesListRequest {\r\n code?: string | null;\r\n name?: string | null;\r\n\r\n constructor(data?: IAirlinesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirlinesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirlinesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirlinesListRequest extends INrTableRequest {\r\n code?: string | null;\r\n name?: string | null;\r\n}\r\n\r\nexport class AirportGetResponse extends OkApiResponse implements IAirportGetResponse {\r\n airport?: Aeroporto;\r\n\r\n constructor(data?: IAirportGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airport = _data[\"airport\"] ? Aeroporto.fromJS(_data[\"airport\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirportGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airport\"] = this.airport ? this.airport.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportGetResponse extends IOkApiResponse {\r\n airport?: Aeroporto;\r\n}\r\n\r\nexport class Aeroporto implements IAeroporto {\r\n id?: number;\r\n codice?: string | null;\r\n codiceArea?: string | null;\r\n nome?: string | null;\r\n airport?: string | null;\r\n paese?: string | null;\r\n nomeItaliano?: string | null;\r\n tipo?: number | null;\r\n luogoID?: number | null;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n mainAirport?: boolean | null;\r\n gmt?: number | null;\r\n domesticCheckin?: number | null;\r\n internationalCheckin?: number | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n isAreaCode?: boolean;\r\n\r\n constructor(data?: IAeroporto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.codiceArea = _data[\"codiceArea\"] !== undefined ? _data[\"codiceArea\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.airport = _data[\"airport\"] !== undefined ? _data[\"airport\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.nomeItaliano = _data[\"nomeItaliano\"] !== undefined ? _data[\"nomeItaliano\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.mainAirport = _data[\"mainAirport\"] !== undefined ? _data[\"mainAirport\"] : null;\r\n this.gmt = _data[\"gmt\"] !== undefined ? _data[\"gmt\"] : null;\r\n this.domesticCheckin = _data[\"domesticCheckin\"] !== undefined ? _data[\"domesticCheckin\"] : null;\r\n this.internationalCheckin = _data[\"internationalCheckin\"] !== undefined ? _data[\"internationalCheckin\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.deletedAt = _data[\"deletedAt\"] !== undefined ? _data[\"deletedAt\"] : null;\r\n this.isAreaCode = _data[\"isAreaCode\"] !== undefined ? _data[\"isAreaCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Aeroporto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Aeroporto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"codiceArea\"] = this.codiceArea !== undefined ? this.codiceArea : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"airport\"] = this.airport !== undefined ? this.airport : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"nomeItaliano\"] = this.nomeItaliano !== undefined ? this.nomeItaliano : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"mainAirport\"] = this.mainAirport !== undefined ? this.mainAirport : null;\r\n data[\"gmt\"] = this.gmt !== undefined ? this.gmt : null;\r\n data[\"domesticCheckin\"] = this.domesticCheckin !== undefined ? this.domesticCheckin : null;\r\n data[\"internationalCheckin\"] = this.internationalCheckin !== undefined ? this.internationalCheckin : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"deletedAt\"] = this.deletedAt !== undefined ? this.deletedAt : null;\r\n data[\"isAreaCode\"] = this.isAreaCode !== undefined ? this.isAreaCode : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAeroporto {\r\n id?: number;\r\n codice?: string | null;\r\n codiceArea?: string | null;\r\n nome?: string | null;\r\n airport?: string | null;\r\n paese?: string | null;\r\n nomeItaliano?: string | null;\r\n tipo?: number | null;\r\n luogoID?: number | null;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n mainAirport?: boolean | null;\r\n gmt?: number | null;\r\n domesticCheckin?: number | null;\r\n internationalCheckin?: number | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n isAreaCode?: boolean;\r\n}\r\n\r\nexport class AirportGetRequest extends LocalizedRequest implements IAirportGetRequest {\r\n airportID?: number;\r\n\r\n constructor(data?: IAirportGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airportID = _data[\"airportID\"] !== undefined ? _data[\"airportID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirportGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airportID\"] = this.airportID !== undefined ? this.airportID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportGetRequest extends ILocalizedRequest {\r\n airportID?: number;\r\n}\r\n\r\nexport class AirportUpdateRequest extends AirportGetRequest implements IAirportUpdateRequest {\r\n airport?: Aeroporto | null;\r\n\r\n constructor(data?: IAirportUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airport = _data[\"airport\"] ? Aeroporto.fromJS(_data[\"airport\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirportUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airport\"] = this.airport ? this.airport.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportUpdateRequest extends IAirportGetRequest {\r\n airport?: Aeroporto | null;\r\n}\r\n\r\nexport class AirportDeleteRequest extends ApiRequest implements IAirportDeleteRequest {\r\n airportID?: number;\r\n\r\n constructor(data?: IAirportDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.airportID = _data[\"airportID\"] !== undefined ? _data[\"airportID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirportDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"airportID\"] = this.airportID !== undefined ? this.airportID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportDeleteRequest extends IApiRequest {\r\n airportID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfAirportRow extends OkApiResponse implements INrTableResponseOfAirportRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AirportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAirportRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AirportRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAirportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAirportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAirportRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AirportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class AirportsListResponse extends NrTableResponseOfAirportRow implements IAirportsListResponse {\r\n\r\n constructor(data?: IAirportsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): AirportsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportsListResponse extends INrTableResponseOfAirportRow {\r\n}\r\n\r\nexport class AirportRow implements IAirportRow {\r\n id?: number;\r\n name?: string;\r\n iataCode?: string;\r\n country?: string | null;\r\n airport?: Aeroporto | null;\r\n\r\n constructor(data?: IAirportRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.iataCode = _data[\"iataCode\"] !== undefined ? _data[\"iataCode\"] : null;\r\n this.country = _data[\"country\"] !== undefined ? _data[\"country\"] : null;\r\n this.airport = _data[\"airport\"] ? Aeroporto.fromJS(_data[\"airport\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"iataCode\"] = this.iataCode !== undefined ? this.iataCode : null;\r\n data[\"country\"] = this.country !== undefined ? this.country : null;\r\n data[\"airport\"] = this.airport ? this.airport.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportRow {\r\n id?: number;\r\n name?: string;\r\n iataCode?: string;\r\n country?: string | null;\r\n airport?: Aeroporto | null;\r\n}\r\n\r\nexport class AirportsListRequest extends NrTableRequest implements IAirportsListRequest {\r\n iataCode?: string | null;\r\n name?: string | null;\r\n country?: string | null;\r\n\r\n constructor(data?: IAirportsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.iataCode = _data[\"iataCode\"] !== undefined ? _data[\"iataCode\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.country = _data[\"country\"] !== undefined ? _data[\"country\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirportsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"iataCode\"] = this.iataCode !== undefined ? this.iataCode : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"country\"] = this.country !== undefined ? this.country : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportsListRequest extends INrTableRequest {\r\n iataCode?: string | null;\r\n name?: string | null;\r\n country?: string | null;\r\n}\r\n\r\nexport class AddAttachmentResponse extends OkApiResponse implements IAddAttachmentResponse {\r\n allegato?: ArticoloAllegato;\r\n\r\n constructor(data?: IAddAttachmentResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.allegato = _data[\"allegato\"] ? ArticoloAllegato.fromJS(_data[\"allegato\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddAttachmentResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddAttachmentResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"allegato\"] = this.allegato ? this.allegato.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddAttachmentResponse extends IOkApiResponse {\r\n allegato?: ArticoloAllegato;\r\n}\r\n\r\nexport class ArticoloAllegato implements IArticoloAllegato {\r\n /** Entità dell'allegato */\r\n allegato?: ArticoloAttachment;\r\n /** Dimensione in byte, se il file esiste */\r\n dimensione?: number | null;\r\n /** True se il file esiste ed è accessibile */\r\n esiste?: boolean;\r\n\r\n constructor(data?: IArticoloAllegato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.allegato = _data[\"allegato\"] ? ArticoloAttachment.fromJS(_data[\"allegato\"]) : null;\r\n this.dimensione = _data[\"dimensione\"] !== undefined ? _data[\"dimensione\"] : null;\r\n this.esiste = _data[\"esiste\"] !== undefined ? _data[\"esiste\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloAllegato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloAllegato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"allegato\"] = this.allegato ? this.allegato.toJSON() : null;\r\n data[\"dimensione\"] = this.dimensione !== undefined ? this.dimensione : null;\r\n data[\"esiste\"] = this.esiste !== undefined ? this.esiste : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloAllegato {\r\n /** Entità dell'allegato */\r\n allegato?: ArticoloAttachment;\r\n /** Dimensione in byte, se il file esiste */\r\n dimensione?: number | null;\r\n /** True se il file esiste ed è accessibile */\r\n esiste?: boolean;\r\n}\r\n\r\nexport class ArticoloAttachment implements IArticoloAttachment {\r\n articoloAttachmentID?: number;\r\n articoloID?: number;\r\n filename?: string | null;\r\n originalFilename?: string | null;\r\n descrizione?: string | null;\r\n\r\n constructor(data?: IArticoloAttachment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.articoloAttachmentID = _data[\"articoloAttachmentID\"] !== undefined ? _data[\"articoloAttachmentID\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.filename = _data[\"filename\"] !== undefined ? _data[\"filename\"] : null;\r\n this.originalFilename = _data[\"originalFilename\"] !== undefined ? _data[\"originalFilename\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloAttachment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloAttachment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloAttachmentID\"] = this.articoloAttachmentID !== undefined ? this.articoloAttachmentID : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"filename\"] = this.filename !== undefined ? this.filename : null;\r\n data[\"originalFilename\"] = this.originalFilename !== undefined ? this.originalFilename : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloAttachment {\r\n articoloAttachmentID?: number;\r\n articoloID?: number;\r\n filename?: string | null;\r\n originalFilename?: string | null;\r\n descrizione?: string | null;\r\n}\r\n\r\nexport class ArticoloGetResponse extends OkApiResponse implements IArticoloGetResponse {\r\n /** Entità dell'articolo */\r\n articolo?: Articolo;\r\n /** Elenco dei testi nelle varie lingue */\r\n testi?: ArticoloTestoLingua[];\r\n /** Elenco degli allegati */\r\n allegati?: ArticoloAllegato[];\r\n /** Riferimenti agli articoli padre, in ordine dal più prossimo alla radice */\r\n padri?: ArticoloRiferimento[];\r\n /** Riferimenti agli articoli figlio */\r\n figli?: ArticoloRiferimento[];\r\n /** True se sono presenti riferimenti circolari */\r\n riferimentiCircolari?: boolean;\r\n /** Eventuale link associato */\r\n link?: ArticoloLink | null;\r\n /** Testo per la UI */\r\n testo?: TripTextHtml;\r\n\r\n constructor(data?: IArticoloGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articolo = _data[\"articolo\"] ? Articolo.fromJS(_data[\"articolo\"]) : null;\r\n if (Array.isArray(_data[\"testi\"])) {\r\n this.testi = [] as any;\r\n for (let item of _data[\"testi\"])\r\n this.testi!.push(ArticoloTestoLingua.fromJS(item));\r\n }\r\n else {\r\n this.testi = null;\r\n }\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(ArticoloAllegato.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n if (Array.isArray(_data[\"padri\"])) {\r\n this.padri = [] as any;\r\n for (let item of _data[\"padri\"])\r\n this.padri!.push(ArticoloRiferimento.fromJS(item));\r\n }\r\n else {\r\n this.padri = null;\r\n }\r\n if (Array.isArray(_data[\"figli\"])) {\r\n this.figli = [] as any;\r\n for (let item of _data[\"figli\"])\r\n this.figli!.push(ArticoloRiferimento.fromJS(item));\r\n }\r\n else {\r\n this.figli = null;\r\n }\r\n this.riferimentiCircolari = _data[\"riferimentiCircolari\"] !== undefined ? _data[\"riferimentiCircolari\"] : null;\r\n this.link = _data[\"link\"] ? ArticoloLink.fromJS(_data[\"link\"]) : null;\r\n this.testo = _data[\"testo\"] ? TripTextHtml.fromJS(_data[\"testo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articolo\"] = this.articolo ? this.articolo.toJSON() : null;\r\n if (Array.isArray(this.testi)) {\r\n data[\"testi\"] = [];\r\n for (let item of this.testi)\r\n data[\"testi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.padri)) {\r\n data[\"padri\"] = [];\r\n for (let item of this.padri)\r\n data[\"padri\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.figli)) {\r\n data[\"figli\"] = [];\r\n for (let item of this.figli)\r\n data[\"figli\"].push(item.toJSON());\r\n }\r\n data[\"riferimentiCircolari\"] = this.riferimentiCircolari !== undefined ? this.riferimentiCircolari : null;\r\n data[\"link\"] = this.link ? this.link.toJSON() : null;\r\n data[\"testo\"] = this.testo ? this.testo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloGetResponse extends IOkApiResponse {\r\n /** Entità dell'articolo */\r\n articolo?: Articolo;\r\n /** Elenco dei testi nelle varie lingue */\r\n testi?: ArticoloTestoLingua[];\r\n /** Elenco degli allegati */\r\n allegati?: ArticoloAllegato[];\r\n /** Riferimenti agli articoli padre, in ordine dal più prossimo alla radice */\r\n padri?: ArticoloRiferimento[];\r\n /** Riferimenti agli articoli figlio */\r\n figli?: ArticoloRiferimento[];\r\n /** True se sono presenti riferimenti circolari */\r\n riferimentiCircolari?: boolean;\r\n /** Eventuale link associato */\r\n link?: ArticoloLink | null;\r\n /** Testo per la UI */\r\n testo?: TripTextHtml;\r\n}\r\n\r\nexport class Articolo implements IArticolo {\r\n id?: number;\r\n linguaID?: ELingua;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n articoloPadreID?: number | null;\r\n linkPadre?: boolean;\r\n articoloTestataID?: number | null;\r\n categoria?: ECategoriaArticolo | null;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n ordine1?: number | null;\r\n ordine2?: number | null;\r\n pubblicaWeb?: boolean;\r\n pubblicaCatalogo?: boolean;\r\n pubblicaOfferta?: boolean;\r\n pubblicaProgramma?: boolean;\r\n pubblicaPreventivo?: boolean;\r\n pubblicaMiniguida?: boolean;\r\n pubblicaVoucher?: boolean;\r\n pubblicaEstrattoConto?: boolean;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n priority?: number | null;\r\n ultimoAggiornamento?: string | null;\r\n tipoServizio?: ETipoServizio | null;\r\n pageLinkID?: number | null;\r\n faIcon?: string | null;\r\n rawEdit?: boolean;\r\n showAsLink?: boolean;\r\n compagniaID?: number | null;\r\n operatore?: EOperatore | null;\r\n eliminato?: string | null;\r\n generatoAI?: boolean;\r\n\r\n constructor(data?: IArticolo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.linguaID = _data[\"linguaID\"] !== undefined ? _data[\"linguaID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.articoloPadreID = _data[\"articoloPadreID\"] !== undefined ? _data[\"articoloPadreID\"] : null;\r\n this.linkPadre = _data[\"linkPadre\"] !== undefined ? _data[\"linkPadre\"] : null;\r\n this.articoloTestataID = _data[\"articoloTestataID\"] !== undefined ? _data[\"articoloTestataID\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.sunto = _data[\"sunto\"] !== undefined ? _data[\"sunto\"] : null;\r\n this.ordine1 = _data[\"ordine1\"] !== undefined ? _data[\"ordine1\"] : null;\r\n this.ordine2 = _data[\"ordine2\"] !== undefined ? _data[\"ordine2\"] : null;\r\n this.pubblicaWeb = _data[\"pubblicaWeb\"] !== undefined ? _data[\"pubblicaWeb\"] : null;\r\n this.pubblicaCatalogo = _data[\"pubblicaCatalogo\"] !== undefined ? _data[\"pubblicaCatalogo\"] : null;\r\n this.pubblicaOfferta = _data[\"pubblicaOfferta\"] !== undefined ? _data[\"pubblicaOfferta\"] : null;\r\n this.pubblicaProgramma = _data[\"pubblicaProgramma\"] !== undefined ? _data[\"pubblicaProgramma\"] : null;\r\n this.pubblicaPreventivo = _data[\"pubblicaPreventivo\"] !== undefined ? _data[\"pubblicaPreventivo\"] : null;\r\n this.pubblicaMiniguida = _data[\"pubblicaMiniguida\"] !== undefined ? _data[\"pubblicaMiniguida\"] : null;\r\n this.pubblicaVoucher = _data[\"pubblicaVoucher\"] !== undefined ? _data[\"pubblicaVoucher\"] : null;\r\n this.pubblicaEstrattoConto = _data[\"pubblicaEstrattoConto\"] !== undefined ? _data[\"pubblicaEstrattoConto\"] : null;\r\n this.pubblicaDal = _data[\"pubblicaDal\"] !== undefined ? _data[\"pubblicaDal\"] : null;\r\n this.pubblicaAl = _data[\"pubblicaAl\"] !== undefined ? _data[\"pubblicaAl\"] : null;\r\n this.priority = _data[\"priority\"] !== undefined ? _data[\"priority\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.pageLinkID = _data[\"pageLinkID\"] !== undefined ? _data[\"pageLinkID\"] : null;\r\n this.faIcon = _data[\"faIcon\"] !== undefined ? _data[\"faIcon\"] : null;\r\n this.rawEdit = _data[\"rawEdit\"] !== undefined ? _data[\"rawEdit\"] : null;\r\n this.showAsLink = _data[\"showAsLink\"] !== undefined ? _data[\"showAsLink\"] : null;\r\n this.compagniaID = _data[\"compagniaID\"] !== undefined ? _data[\"compagniaID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.generatoAI = _data[\"generatoAI\"] !== undefined ? _data[\"generatoAI\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Articolo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Articolo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"linguaID\"] = this.linguaID !== undefined ? this.linguaID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"articoloPadreID\"] = this.articoloPadreID !== undefined ? this.articoloPadreID : null;\r\n data[\"linkPadre\"] = this.linkPadre !== undefined ? this.linkPadre : null;\r\n data[\"articoloTestataID\"] = this.articoloTestataID !== undefined ? this.articoloTestataID : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"sunto\"] = this.sunto !== undefined ? this.sunto : null;\r\n data[\"ordine1\"] = this.ordine1 !== undefined ? this.ordine1 : null;\r\n data[\"ordine2\"] = this.ordine2 !== undefined ? this.ordine2 : null;\r\n data[\"pubblicaWeb\"] = this.pubblicaWeb !== undefined ? this.pubblicaWeb : null;\r\n data[\"pubblicaCatalogo\"] = this.pubblicaCatalogo !== undefined ? this.pubblicaCatalogo : null;\r\n data[\"pubblicaOfferta\"] = this.pubblicaOfferta !== undefined ? this.pubblicaOfferta : null;\r\n data[\"pubblicaProgramma\"] = this.pubblicaProgramma !== undefined ? this.pubblicaProgramma : null;\r\n data[\"pubblicaPreventivo\"] = this.pubblicaPreventivo !== undefined ? this.pubblicaPreventivo : null;\r\n data[\"pubblicaMiniguida\"] = this.pubblicaMiniguida !== undefined ? this.pubblicaMiniguida : null;\r\n data[\"pubblicaVoucher\"] = this.pubblicaVoucher !== undefined ? this.pubblicaVoucher : null;\r\n data[\"pubblicaEstrattoConto\"] = this.pubblicaEstrattoConto !== undefined ? this.pubblicaEstrattoConto : null;\r\n data[\"pubblicaDal\"] = this.pubblicaDal !== undefined ? this.pubblicaDal : null;\r\n data[\"pubblicaAl\"] = this.pubblicaAl !== undefined ? this.pubblicaAl : null;\r\n data[\"priority\"] = this.priority !== undefined ? this.priority : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"pageLinkID\"] = this.pageLinkID !== undefined ? this.pageLinkID : null;\r\n data[\"faIcon\"] = this.faIcon !== undefined ? this.faIcon : null;\r\n data[\"rawEdit\"] = this.rawEdit !== undefined ? this.rawEdit : null;\r\n data[\"showAsLink\"] = this.showAsLink !== undefined ? this.showAsLink : null;\r\n data[\"compagniaID\"] = this.compagniaID !== undefined ? this.compagniaID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"generatoAI\"] = this.generatoAI !== undefined ? this.generatoAI : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticolo {\r\n id?: number;\r\n linguaID?: ELingua;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n articoloPadreID?: number | null;\r\n linkPadre?: boolean;\r\n articoloTestataID?: number | null;\r\n categoria?: ECategoriaArticolo | null;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n ordine1?: number | null;\r\n ordine2?: number | null;\r\n pubblicaWeb?: boolean;\r\n pubblicaCatalogo?: boolean;\r\n pubblicaOfferta?: boolean;\r\n pubblicaProgramma?: boolean;\r\n pubblicaPreventivo?: boolean;\r\n pubblicaMiniguida?: boolean;\r\n pubblicaVoucher?: boolean;\r\n pubblicaEstrattoConto?: boolean;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n priority?: number | null;\r\n ultimoAggiornamento?: string | null;\r\n tipoServizio?: ETipoServizio | null;\r\n pageLinkID?: number | null;\r\n faIcon?: string | null;\r\n rawEdit?: boolean;\r\n showAsLink?: boolean;\r\n compagniaID?: number | null;\r\n operatore?: EOperatore | null;\r\n eliminato?: string | null;\r\n generatoAI?: boolean;\r\n}\r\n\r\nexport enum ECategoriaArticolo {\r\n Produzione = \"Produzione\",\r\n PreProduzione = \"PreProduzione\",\r\n Miniguida = \"Miniguida\",\r\n Offerte = \"Offerte\",\r\n ElementiArticoli = \"ElementiArticoli\",\r\n TestiCatalogo = \"TestiCatalogo\",\r\n TestiStampe = \"TestiStampe\",\r\n Obsoleto = \"Obsoleto\",\r\n}\r\n\r\nexport class ArticoloTestoLingua implements IArticoloTestoLingua {\r\n articoloID?: number;\r\n lingua?: ELingua;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n testo?: string | null;\r\n confermato?: boolean;\r\n ultimoAggiornamento?: string | null;\r\n\r\n constructor(data?: IArticoloTestoLingua) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.sunto = _data[\"sunto\"] !== undefined ? _data[\"sunto\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.confermato = _data[\"confermato\"] !== undefined ? _data[\"confermato\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloTestoLingua {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloTestoLingua();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"sunto\"] = this.sunto !== undefined ? this.sunto : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"confermato\"] = this.confermato !== undefined ? this.confermato : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloTestoLingua {\r\n articoloID?: number;\r\n lingua?: ELingua;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n testo?: string | null;\r\n confermato?: boolean;\r\n ultimoAggiornamento?: string | null;\r\n}\r\n\r\nexport class ArticoloRiferimento implements IArticoloRiferimento {\r\n /** ID dell'articolo puntato */\r\n id?: number;\r\n /** Titolo dell'articolo (se c'è) */\r\n titolo?: string | null;\r\n /** Servizio associato (se c'è) */\r\n servizio?: string | null;\r\n\r\n constructor(data?: IArticoloRiferimento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloRiferimento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloRiferimento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloRiferimento {\r\n /** ID dell'articolo puntato */\r\n id?: number;\r\n /** Titolo dell'articolo (se c'è) */\r\n titolo?: string | null;\r\n /** Servizio associato (se c'è) */\r\n servizio?: string | null;\r\n}\r\n\r\nexport class ArticoloLink implements IArticoloLink {\r\n id?: number;\r\n nome?: string | null;\r\n luogo?: string | null;\r\n posizione?: EPosizioneLink;\r\n\r\n constructor(data?: IArticoloLink) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.posizione = _data[\"posizione\"] !== undefined ? _data[\"posizione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloLink {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloLink();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"posizione\"] = this.posizione !== undefined ? this.posizione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloLink {\r\n id?: number;\r\n nome?: string | null;\r\n luogo?: string | null;\r\n posizione?: EPosizioneLink;\r\n}\r\n\r\nexport enum EPosizioneLink {\r\n Default = \"Default\",\r\n MenuNavigazione = \"MenuNavigazione\",\r\n BannerTop = \"BannerTop\",\r\n BannerBottom = \"BannerBottom\",\r\n BannerLeft = \"BannerLeft\",\r\n BannerRight = \"BannerRight\",\r\n MenuSecondario = \"MenuSecondario\",\r\n BoxNews = \"BoxNews\",\r\n FooterLinks = \"FooterLinks\",\r\n}\r\n\r\n/** Contentiore generico dei testi */\r\nexport class TripTextHtml implements ITripTextHtml {\r\n /** Sorgente del testo */\r\n source?: ETripTextHtmlSource;\r\n /** ID riferimento, usato secondo i contesti */\r\n refID?: number;\r\n /** Hash ad uso interno */\r\n hash?: string;\r\n /** Titolo facoltativo */\r\n titolo?: string | null;\r\n /** Testo HTML */\r\n testo?: string;\r\n /** Se true in un documento deve apparire come URL. In questo caso il titolo deve esserci */\r\n usaUrlInDocumenti?: boolean;\r\n /** Url da utilizzare */\r\n url?: string | null;\r\n luogoID?: number;\r\n ordine?: number;\r\n\r\n constructor(data?: ITripTextHtml) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.source = _data[\"source\"] !== undefined ? _data[\"source\"] : null;\r\n this.refID = _data[\"refID\"] !== undefined ? _data[\"refID\"] : null;\r\n this.hash = _data[\"hash\"] !== undefined ? _data[\"hash\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.usaUrlInDocumenti = _data[\"usaUrlInDocumenti\"] !== undefined ? _data[\"usaUrlInDocumenti\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripTextHtml {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripTextHtml();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"source\"] = this.source !== undefined ? this.source : null;\r\n data[\"refID\"] = this.refID !== undefined ? this.refID : null;\r\n data[\"hash\"] = this.hash !== undefined ? this.hash : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"usaUrlInDocumenti\"] = this.usaUrlInDocumenti !== undefined ? this.usaUrlInDocumenti : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Contentiore generico dei testi */\r\nexport interface ITripTextHtml {\r\n /** Sorgente del testo */\r\n source?: ETripTextHtmlSource;\r\n /** ID riferimento, usato secondo i contesti */\r\n refID?: number;\r\n /** Hash ad uso interno */\r\n hash?: string;\r\n /** Titolo facoltativo */\r\n titolo?: string | null;\r\n /** Testo HTML */\r\n testo?: string;\r\n /** Se true in un documento deve apparire come URL. In questo caso il titolo deve esserci */\r\n usaUrlInDocumenti?: boolean;\r\n /** Url da utilizzare */\r\n url?: string | null;\r\n luogoID?: number;\r\n ordine?: number;\r\n}\r\n\r\n/** Sorgente del testo, ad uso interno */\r\nexport enum ETripTextHtmlSource {\r\n Articolo = \"Articolo\",\r\n NotaOfferta = \"NotaOfferta\",\r\n DatiAggiuntiviServizio = \"DatiAggiuntiviServizio\",\r\n PenaleH2H = \"PenaleH2H\",\r\n Custom = \"Custom\",\r\n}\r\n\r\nexport class ArticoloGetRequest extends LocalizedRequest implements IArticoloGetRequest {\r\n articoloID?: number;\r\n\r\n constructor(data?: IArticoloGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloGetRequest extends ILocalizedRequest {\r\n articoloID?: number;\r\n}\r\n\r\nexport class UpdateArticoloRequest extends ArticoloGetRequest implements IUpdateArticoloRequest {\r\n articolo?: Articolo | null;\r\n testoPrincipale?: ArticoloTestoLingua | null;\r\n traduzioni?: ArticoloTestoLingua[] | null;\r\n allegati?: ArticoloAttachment[] | null;\r\n\r\n constructor(data?: IUpdateArticoloRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articolo = _data[\"articolo\"] ? Articolo.fromJS(_data[\"articolo\"]) : null;\r\n this.testoPrincipale = _data[\"testoPrincipale\"] ? ArticoloTestoLingua.fromJS(_data[\"testoPrincipale\"]) : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(ArticoloTestoLingua.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(ArticoloAttachment.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateArticoloRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateArticoloRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articolo\"] = this.articolo ? this.articolo.toJSON() : null;\r\n data[\"testoPrincipale\"] = this.testoPrincipale ? this.testoPrincipale.toJSON() : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateArticoloRequest extends IArticoloGetRequest {\r\n articolo?: Articolo | null;\r\n testoPrincipale?: ArticoloTestoLingua | null;\r\n traduzioni?: ArticoloTestoLingua[] | null;\r\n allegati?: ArticoloAttachment[] | null;\r\n}\r\n\r\nexport class ArticoloDeleteRequest extends ApiRequest implements IArticoloDeleteRequest {\r\n articoloID?: number;\r\n\r\n constructor(data?: IArticoloDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloDeleteRequest extends IApiRequest {\r\n articoloID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfArticoloFraseListRow extends OkApiResponse implements INrTableResponseOfArticoloFraseListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ArticoloFraseListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfArticoloFraseListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ArticoloFraseListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfArticoloFraseListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfArticoloFraseListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfArticoloFraseListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ArticoloFraseListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetArticoliFraseListResponse extends NrTableResponseOfArticoloFraseListRow implements IGetArticoliFraseListResponse {\r\n\r\n constructor(data?: IGetArticoliFraseListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetArticoliFraseListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetArticoliFraseListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetArticoliFraseListResponse extends INrTableResponseOfArticoloFraseListRow {\r\n}\r\n\r\nexport class ArticoloFraseListRow implements IArticoloFraseListRow {\r\n id?: number;\r\n title?: string;\r\n\r\n constructor(data?: IArticoloFraseListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloFraseListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloFraseListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloFraseListRow {\r\n id?: number;\r\n title?: string;\r\n}\r\n\r\nexport class GetArticoliFraseListRequest extends NrTableRequest implements IGetArticoliFraseListRequest {\r\n phraseID?: number;\r\n\r\n constructor(data?: IGetArticoliFraseListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.phraseID = _data[\"phraseID\"] !== undefined ? _data[\"phraseID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetArticoliFraseListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetArticoliFraseListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"phraseID\"] = this.phraseID !== undefined ? this.phraseID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetArticoliFraseListRequest extends INrTableRequest {\r\n phraseID?: number;\r\n}\r\n\r\nexport class ArticoloGetPublishedResponse extends OkApiResponse implements IArticoloGetPublishedResponse {\r\n id?: number;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n allegati?: ArticoloAllegato[] | null;\r\n\r\n constructor(data?: IArticoloGetPublishedResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(ArticoloAllegato.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloGetPublishedResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloGetPublishedResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloGetPublishedResponse extends IOkApiResponse {\r\n id?: number;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n allegati?: ArticoloAllegato[] | null;\r\n}\r\n\r\nexport class ArticoloGetPublishedRequest extends SiteRequest implements IArticoloGetPublishedRequest {\r\n articoloID?: number;\r\n\r\n constructor(data?: IArticoloGetPublishedRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloGetPublishedRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloGetPublishedRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloGetPublishedRequest extends ISiteRequest {\r\n articoloID?: number;\r\n}\r\n\r\nexport class GetAllSectionsResponse extends OkApiResponse implements IGetAllSectionsResponse {\r\n sezioni?: SectionsRow[];\r\n\r\n constructor(data?: IGetAllSectionsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"sezioni\"])) {\r\n this.sezioni = [] as any;\r\n for (let item of _data[\"sezioni\"])\r\n this.sezioni!.push(SectionsRow.fromJS(item));\r\n }\r\n else {\r\n this.sezioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAllSectionsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAllSectionsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.sezioni)) {\r\n data[\"sezioni\"] = [];\r\n for (let item of this.sezioni)\r\n data[\"sezioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAllSectionsResponse extends IOkApiResponse {\r\n sezioni?: SectionsRow[];\r\n}\r\n\r\nexport class SectionsRow implements ISectionsRow {\r\n id?: number;\r\n nome?: string;\r\n codice?: string;\r\n visibilita?: EVisibilitaSezione;\r\n tipoServizio?: ETipoServizioFlags;\r\n\r\n constructor(data?: ISectionsRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionsRow {\r\n id?: number;\r\n nome?: string;\r\n codice?: string;\r\n visibilita?: EVisibilitaSezione;\r\n tipoServizio?: ETipoServizioFlags;\r\n}\r\n\r\nexport enum EVisibilitaSezione {\r\n Nessuno = \"Nessuno\",\r\n Articoli = \"Articoli\",\r\n PreventivoCliente = \"PreventivoCliente\",\r\n ProgrammaDiViaggio = \"ProgrammaDiViaggio\",\r\n}\r\n\r\nexport enum ETipoServizioFlags {\r\n Nessuno = \"Nessuno\",\r\n Hotel = \"Hotel\",\r\n Tour = \"Tour\",\r\n Crociere = \"Crociere\",\r\n SelfDrive = \"SelfDrive\",\r\n Trasferimenti = \"Trasferimenti\",\r\n Visite = \"Visite\",\r\n Noleggi = \"Noleggi\",\r\n Pacchetti = \"Pacchetti\",\r\n}\r\n\r\nexport class GetArticoloTextResponse extends OkApiResponse implements IGetArticoloTextResponse {\r\n id?: number;\r\n testo?: TripTextHtml;\r\n\r\n constructor(data?: IGetArticoloTextResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.testo = _data[\"testo\"] ? TripTextHtml.fromJS(_data[\"testo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetArticoloTextResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetArticoloTextResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"testo\"] = this.testo ? this.testo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetArticoloTextResponse extends IOkApiResponse {\r\n id?: number;\r\n testo?: TripTextHtml;\r\n}\r\n\r\nexport class NrTableResponseOfArticoloListRow extends OkApiResponse implements INrTableResponseOfArticoloListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ArticoloListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfArticoloListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ArticoloListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfArticoloListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfArticoloListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfArticoloListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ArticoloListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ArticoloListRow implements IArticoloListRow {\r\n articoloID?: number;\r\n categoria?: ECategoriaArticolo;\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n servizio?: string | null;\r\n servizioObsoleto?: boolean;\r\n servizioEliminato?: boolean;\r\n accordo?: string | null;\r\n compagniaAerea?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n titolo?: string | null;\r\n titoloOriginale?: string | null;\r\n giorno?: number;\r\n ordine?: number;\r\n ordineStr?: string;\r\n link?: string | null;\r\n luogoLink?: string | null;\r\n intestazione?: string | null;\r\n operatore?: EOperatore | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IArticoloListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoEliminato = _data[\"luogoEliminato\"] !== undefined ? _data[\"luogoEliminato\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.servizioObsoleto = _data[\"servizioObsoleto\"] !== undefined ? _data[\"servizioObsoleto\"] : null;\r\n this.servizioEliminato = _data[\"servizioEliminato\"] !== undefined ? _data[\"servizioEliminato\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.titoloOriginale = _data[\"titoloOriginale\"] !== undefined ? _data[\"titoloOriginale\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.ordineStr = _data[\"ordineStr\"] !== undefined ? _data[\"ordineStr\"] : null;\r\n this.link = _data[\"link\"] !== undefined ? _data[\"link\"] : null;\r\n this.luogoLink = _data[\"luogoLink\"] !== undefined ? _data[\"luogoLink\"] : null;\r\n this.intestazione = _data[\"intestazione\"] !== undefined ? _data[\"intestazione\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoEliminato\"] = this.luogoEliminato !== undefined ? this.luogoEliminato : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"servizioObsoleto\"] = this.servizioObsoleto !== undefined ? this.servizioObsoleto : null;\r\n data[\"servizioEliminato\"] = this.servizioEliminato !== undefined ? this.servizioEliminato : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"titoloOriginale\"] = this.titoloOriginale !== undefined ? this.titoloOriginale : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"ordineStr\"] = this.ordineStr !== undefined ? this.ordineStr : null;\r\n data[\"link\"] = this.link !== undefined ? this.link : null;\r\n data[\"luogoLink\"] = this.luogoLink !== undefined ? this.luogoLink : null;\r\n data[\"intestazione\"] = this.intestazione !== undefined ? this.intestazione : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloListRow {\r\n articoloID?: number;\r\n categoria?: ECategoriaArticolo;\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n servizio?: string | null;\r\n servizioObsoleto?: boolean;\r\n servizioEliminato?: boolean;\r\n accordo?: string | null;\r\n compagniaAerea?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n titolo?: string | null;\r\n titoloOriginale?: string | null;\r\n giorno?: number;\r\n ordine?: number;\r\n ordineStr?: string;\r\n link?: string | null;\r\n luogoLink?: string | null;\r\n intestazione?: string | null;\r\n operatore?: EOperatore | null;\r\n deleted?: string | null;\r\n}\r\n\r\nexport class ArticoliListRequest extends NrTableRequest implements IArticoliListRequest {\r\n tipoRicercaArticolo?: ETipoRicercaArticolo;\r\n tipoDocumento?: ETipoDocumento | null;\r\n articoliIdEsclusi?: number[] | null;\r\n servizioID?: number | null;\r\n noServizio?: boolean;\r\n categoria?: ECategoriaArticolo | null;\r\n testataID?: number | null;\r\n luogoID?: number | null;\r\n noLuogo?: boolean;\r\n accordoID?: number | null;\r\n noAccordo?: boolean;\r\n compagniaID?: number | null;\r\n noCompagnia?: boolean;\r\n noLink?: boolean;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n linguaArticolo?: ELingua | null;\r\n nomiCategorie?: { [key in keyof typeof ECategoriaArticolo]?: string; } | null;\r\n operatore?: EOperatore | null;\r\n pubblicaWeb?: boolean;\r\n pubblicaCatalogo?: boolean;\r\n pubblicaOfferta?: boolean;\r\n pubblicaProgramma?: boolean;\r\n pubblicaPreventivo?: boolean;\r\n pubblicaMiniguida?: boolean;\r\n pubblicaVoucher?: boolean;\r\n pubblicaEstrattoConto?: boolean;\r\n showDeleted?: boolean | null;\r\n showActiveOnly?: boolean | null;\r\n\r\n constructor(data?: IArticoliListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoRicercaArticolo = _data[\"tipoRicercaArticolo\"] !== undefined ? _data[\"tipoRicercaArticolo\"] : null;\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n if (Array.isArray(_data[\"articoliIdEsclusi\"])) {\r\n this.articoliIdEsclusi = [] as any;\r\n for (let item of _data[\"articoliIdEsclusi\"])\r\n this.articoliIdEsclusi!.push(item);\r\n }\r\n else {\r\n this.articoliIdEsclusi = null;\r\n }\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.noServizio = _data[\"noServizio\"] !== undefined ? _data[\"noServizio\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.testataID = _data[\"testataID\"] !== undefined ? _data[\"testataID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.noLuogo = _data[\"noLuogo\"] !== undefined ? _data[\"noLuogo\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.noAccordo = _data[\"noAccordo\"] !== undefined ? _data[\"noAccordo\"] : null;\r\n this.compagniaID = _data[\"compagniaID\"] !== undefined ? _data[\"compagniaID\"] : null;\r\n this.noCompagnia = _data[\"noCompagnia\"] !== undefined ? _data[\"noCompagnia\"] : null;\r\n this.noLink = _data[\"noLink\"] !== undefined ? _data[\"noLink\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.linguaArticolo = _data[\"linguaArticolo\"] !== undefined ? _data[\"linguaArticolo\"] : null;\r\n if (_data[\"nomiCategorie\"]) {\r\n this.nomiCategorie = {} as any;\r\n for (let key in _data[\"nomiCategorie\"]) {\r\n if (_data[\"nomiCategorie\"].hasOwnProperty(key))\r\n (this.nomiCategorie)![key] = _data[\"nomiCategorie\"][key] !== undefined ? _data[\"nomiCategorie\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomiCategorie = null;\r\n }\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.pubblicaWeb = _data[\"pubblicaWeb\"] !== undefined ? _data[\"pubblicaWeb\"] : null;\r\n this.pubblicaCatalogo = _data[\"pubblicaCatalogo\"] !== undefined ? _data[\"pubblicaCatalogo\"] : null;\r\n this.pubblicaOfferta = _data[\"pubblicaOfferta\"] !== undefined ? _data[\"pubblicaOfferta\"] : null;\r\n this.pubblicaProgramma = _data[\"pubblicaProgramma\"] !== undefined ? _data[\"pubblicaProgramma\"] : null;\r\n this.pubblicaPreventivo = _data[\"pubblicaPreventivo\"] !== undefined ? _data[\"pubblicaPreventivo\"] : null;\r\n this.pubblicaMiniguida = _data[\"pubblicaMiniguida\"] !== undefined ? _data[\"pubblicaMiniguida\"] : null;\r\n this.pubblicaVoucher = _data[\"pubblicaVoucher\"] !== undefined ? _data[\"pubblicaVoucher\"] : null;\r\n this.pubblicaEstrattoConto = _data[\"pubblicaEstrattoConto\"] !== undefined ? _data[\"pubblicaEstrattoConto\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n this.showActiveOnly = _data[\"showActiveOnly\"] !== undefined ? _data[\"showActiveOnly\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoliListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoliListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoRicercaArticolo\"] = this.tipoRicercaArticolo !== undefined ? this.tipoRicercaArticolo : null;\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n if (Array.isArray(this.articoliIdEsclusi)) {\r\n data[\"articoliIdEsclusi\"] = [];\r\n for (let item of this.articoliIdEsclusi)\r\n data[\"articoliIdEsclusi\"].push(item);\r\n }\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"noServizio\"] = this.noServizio !== undefined ? this.noServizio : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"testataID\"] = this.testataID !== undefined ? this.testataID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"noLuogo\"] = this.noLuogo !== undefined ? this.noLuogo : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"noAccordo\"] = this.noAccordo !== undefined ? this.noAccordo : null;\r\n data[\"compagniaID\"] = this.compagniaID !== undefined ? this.compagniaID : null;\r\n data[\"noCompagnia\"] = this.noCompagnia !== undefined ? this.noCompagnia : null;\r\n data[\"noLink\"] = this.noLink !== undefined ? this.noLink : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"linguaArticolo\"] = this.linguaArticolo !== undefined ? this.linguaArticolo : null;\r\n if (this.nomiCategorie) {\r\n data[\"nomiCategorie\"] = {};\r\n for (let key in this.nomiCategorie) {\r\n if (this.nomiCategorie.hasOwnProperty(key))\r\n (data[\"nomiCategorie\"])[key] = this.nomiCategorie[key] !== undefined ? this.nomiCategorie[key] : null;\r\n }\r\n }\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"pubblicaWeb\"] = this.pubblicaWeb !== undefined ? this.pubblicaWeb : null;\r\n data[\"pubblicaCatalogo\"] = this.pubblicaCatalogo !== undefined ? this.pubblicaCatalogo : null;\r\n data[\"pubblicaOfferta\"] = this.pubblicaOfferta !== undefined ? this.pubblicaOfferta : null;\r\n data[\"pubblicaProgramma\"] = this.pubblicaProgramma !== undefined ? this.pubblicaProgramma : null;\r\n data[\"pubblicaPreventivo\"] = this.pubblicaPreventivo !== undefined ? this.pubblicaPreventivo : null;\r\n data[\"pubblicaMiniguida\"] = this.pubblicaMiniguida !== undefined ? this.pubblicaMiniguida : null;\r\n data[\"pubblicaVoucher\"] = this.pubblicaVoucher !== undefined ? this.pubblicaVoucher : null;\r\n data[\"pubblicaEstrattoConto\"] = this.pubblicaEstrattoConto !== undefined ? this.pubblicaEstrattoConto : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n data[\"showActiveOnly\"] = this.showActiveOnly !== undefined ? this.showActiveOnly : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoliListRequest extends INrTableRequest {\r\n tipoRicercaArticolo?: ETipoRicercaArticolo;\r\n tipoDocumento?: ETipoDocumento | null;\r\n articoliIdEsclusi?: number[] | null;\r\n servizioID?: number | null;\r\n noServizio?: boolean;\r\n categoria?: ECategoriaArticolo | null;\r\n testataID?: number | null;\r\n luogoID?: number | null;\r\n noLuogo?: boolean;\r\n accordoID?: number | null;\r\n noAccordo?: boolean;\r\n compagniaID?: number | null;\r\n noCompagnia?: boolean;\r\n noLink?: boolean;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n linguaArticolo?: ELingua | null;\r\n nomiCategorie?: { [key in keyof typeof ECategoriaArticolo]?: string; } | null;\r\n operatore?: EOperatore | null;\r\n pubblicaWeb?: boolean;\r\n pubblicaCatalogo?: boolean;\r\n pubblicaOfferta?: boolean;\r\n pubblicaProgramma?: boolean;\r\n pubblicaPreventivo?: boolean;\r\n pubblicaMiniguida?: boolean;\r\n pubblicaVoucher?: boolean;\r\n pubblicaEstrattoConto?: boolean;\r\n showDeleted?: boolean | null;\r\n showActiveOnly?: boolean | null;\r\n}\r\n\r\nexport enum ETipoRicercaArticolo {\r\n Standard = \"Standard\",\r\n NoteDocumento = \"NoteDocumento\",\r\n NoteCompagniaAerea = \"NoteCompagniaAerea\",\r\n NoteServizio = \"NoteServizio\",\r\n}\r\n\r\nexport class ArticoloRestoreRequest extends ApiRequest implements IArticoloRestoreRequest {\r\n articoloID?: number;\r\n\r\n constructor(data?: IArticoloRestoreRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloRestoreRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloRestoreRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloRestoreRequest extends IApiRequest {\r\n articoloID?: number;\r\n}\r\n\r\nexport class SetArticoliOrderRequest extends ApiRequest implements ISetArticoliOrderRequest {\r\n sortedIds?: number[] | null;\r\n\r\n constructor(data?: ISetArticoliOrderRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"sortedIds\"])) {\r\n this.sortedIds = [] as any;\r\n for (let item of _data[\"sortedIds\"])\r\n this.sortedIds!.push(item);\r\n }\r\n else {\r\n this.sortedIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetArticoliOrderRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetArticoliOrderRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.sortedIds)) {\r\n data[\"sortedIds\"] = [];\r\n for (let item of this.sortedIds)\r\n data[\"sortedIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetArticoliOrderRequest extends IApiRequest {\r\n sortedIds?: number[] | null;\r\n}\r\n\r\nexport class SetLinkRequest extends ArticoloGetRequest implements ISetLinkRequest {\r\n pageLinkID?: number | null;\r\n\r\n constructor(data?: ISetLinkRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pageLinkID = _data[\"pageLinkID\"] !== undefined ? _data[\"pageLinkID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetLinkRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetLinkRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pageLinkID\"] = this.pageLinkID !== undefined ? this.pageLinkID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetLinkRequest extends IArticoloGetRequest {\r\n pageLinkID?: number | null;\r\n}\r\n\r\nexport class TranslateArticoloResponse extends OkApiResponse implements ITranslateArticoloResponse {\r\n testoTradotto?: ArticoloTestoLingua | null;\r\n\r\n constructor(data?: ITranslateArticoloResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.testoTradotto = _data[\"testoTradotto\"] ? ArticoloTestoLingua.fromJS(_data[\"testoTradotto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslateArticoloResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslateArticoloResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testoTradotto\"] = this.testoTradotto ? this.testoTradotto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslateArticoloResponse extends IOkApiResponse {\r\n testoTradotto?: ArticoloTestoLingua | null;\r\n}\r\n\r\nexport class TranslateArticoloRequest extends ApiRequest implements ITranslateArticoloRequest {\r\n testo?: ArticoloTestoLingua | null;\r\n linguaDestinazione?: ELingua;\r\n\r\n constructor(data?: ITranslateArticoloRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.testo = _data[\"testo\"] ? ArticoloTestoLingua.fromJS(_data[\"testo\"]) : null;\r\n this.linguaDestinazione = _data[\"linguaDestinazione\"] !== undefined ? _data[\"linguaDestinazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslateArticoloRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslateArticoloRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testo\"] = this.testo ? this.testo.toJSON() : null;\r\n data[\"linguaDestinazione\"] = this.linguaDestinazione !== undefined ? this.linguaDestinazione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslateArticoloRequest extends IApiRequest {\r\n testo?: ArticoloTestoLingua | null;\r\n linguaDestinazione?: ELingua;\r\n}\r\n\r\nexport class UpdateAttachmentResponse extends AddAttachmentResponse implements IUpdateAttachmentResponse {\r\n\r\n constructor(data?: IUpdateAttachmentResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UpdateAttachmentResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateAttachmentResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateAttachmentResponse extends IAddAttachmentResponse {\r\n}\r\n\r\nexport class ArticoliTemplateGetResponse extends OkApiResponse implements IArticoliTemplateGetResponse {\r\n articoloTemplate?: ArticoloTemplate;\r\n nomeTipoServizio?: string;\r\n\r\n constructor(data?: IArticoliTemplateGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articoloTemplate = _data[\"articoloTemplate\"] ? ArticoloTemplate.fromJS(_data[\"articoloTemplate\"]) : null;\r\n this.nomeTipoServizio = _data[\"nomeTipoServizio\"] !== undefined ? _data[\"nomeTipoServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoliTemplateGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoliTemplateGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloTemplate\"] = this.articoloTemplate ? this.articoloTemplate.toJSON() : null;\r\n data[\"nomeTipoServizio\"] = this.nomeTipoServizio !== undefined ? this.nomeTipoServizio : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoliTemplateGetResponse extends IOkApiResponse {\r\n articoloTemplate?: ArticoloTemplate;\r\n nomeTipoServizio?: string;\r\n}\r\n\r\nexport class ArticoloTemplate implements IArticoloTemplate {\r\n id?: number;\r\n nome!: string;\r\n servizioTipoID?: number | null;\r\n createdAt?: string;\r\n updatedAt?: string | null;\r\n deletedAt?: string | null;\r\n\r\n constructor(data?: IArticoloTemplate) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.servizioTipoID = _data[\"servizioTipoID\"] !== undefined ? _data[\"servizioTipoID\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.deletedAt = _data[\"deletedAt\"] !== undefined ? _data[\"deletedAt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloTemplate {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloTemplate();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"servizioTipoID\"] = this.servizioTipoID !== undefined ? this.servizioTipoID : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"deletedAt\"] = this.deletedAt !== undefined ? this.deletedAt : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloTemplate {\r\n id?: number;\r\n nome: string;\r\n servizioTipoID?: number | null;\r\n createdAt?: string;\r\n updatedAt?: string | null;\r\n deletedAt?: string | null;\r\n}\r\n\r\nexport class ArticoliTemplateGetRequest extends LocalizedRequest implements IArticoliTemplateGetRequest {\r\n templateID!: number;\r\n\r\n constructor(data?: IArticoliTemplateGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.templateID = _data[\"templateID\"] !== undefined ? _data[\"templateID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoliTemplateGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoliTemplateGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"templateID\"] = this.templateID !== undefined ? this.templateID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoliTemplateGetRequest extends ILocalizedRequest {\r\n templateID: number;\r\n}\r\n\r\nexport class UpdateArticoliTemplateRequest extends ArticoliTemplateGetRequest implements IUpdateArticoliTemplateRequest {\r\n articolotemplate?: ArticoloTemplate | null;\r\n\r\n constructor(data?: IUpdateArticoliTemplateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articolotemplate = _data[\"articolotemplate\"] ? ArticoloTemplate.fromJS(_data[\"articolotemplate\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateArticoliTemplateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateArticoliTemplateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articolotemplate\"] = this.articolotemplate ? this.articolotemplate.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateArticoliTemplateRequest extends IArticoliTemplateGetRequest {\r\n articolotemplate?: ArticoloTemplate | null;\r\n}\r\n\r\nexport class ArticoloTemplateDeleteRequest extends ApiRequest implements IArticoloTemplateDeleteRequest {\r\n templateID?: number;\r\n\r\n constructor(data?: IArticoloTemplateDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.templateID = _data[\"templateID\"] !== undefined ? _data[\"templateID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloTemplateDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloTemplateDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"templateID\"] = this.templateID !== undefined ? this.templateID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloTemplateDeleteRequest extends IApiRequest {\r\n templateID?: number;\r\n}\r\n\r\nexport class GetAllTemplatesResponse extends OkApiResponse implements IGetAllTemplatesResponse {\r\n template?: TemplatesRow[];\r\n\r\n constructor(data?: IGetAllTemplatesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"template\"])) {\r\n this.template = [] as any;\r\n for (let item of _data[\"template\"])\r\n this.template!.push(TemplatesRow.fromJS(item));\r\n }\r\n else {\r\n this.template = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAllTemplatesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAllTemplatesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.template)) {\r\n data[\"template\"] = [];\r\n for (let item of this.template)\r\n data[\"template\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAllTemplatesResponse extends IOkApiResponse {\r\n template?: TemplatesRow[];\r\n}\r\n\r\nexport class TemplatesRow implements ITemplatesRow {\r\n id?: number;\r\n nome?: string;\r\n tipoServizio?: string;\r\n tipoServizioID?: number | null;\r\n\r\n constructor(data?: ITemplatesRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.tipoServizioID = _data[\"tipoServizioID\"] !== undefined ? _data[\"tipoServizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TemplatesRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TemplatesRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"tipoServizioID\"] = this.tipoServizioID !== undefined ? this.tipoServizioID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITemplatesRow {\r\n id?: number;\r\n nome?: string;\r\n tipoServizio?: string;\r\n tipoServizioID?: number | null;\r\n}\r\n\r\nexport class GetTemplatesRequest extends LocalizedRequest implements IGetTemplatesRequest {\r\n servizioID?: number | null;\r\n\r\n constructor(data?: IGetTemplatesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTemplatesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTemplatesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTemplatesRequest extends ILocalizedRequest {\r\n servizioID?: number | null;\r\n}\r\n\r\nexport class NrTableResponseOfTemplatesRow extends OkApiResponse implements INrTableResponseOfTemplatesRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TemplatesRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTemplatesRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TemplatesRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTemplatesRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTemplatesRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTemplatesRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TemplatesRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ListTemplatesResponse extends NrTableResponseOfTemplatesRow implements IListTemplatesResponse {\r\n\r\n constructor(data?: IListTemplatesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ListTemplatesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListTemplatesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListTemplatesResponse extends INrTableResponseOfTemplatesRow {\r\n}\r\n\r\nexport class ListTemplatesRequest extends NrTableRequest implements IListTemplatesRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n\r\n constructor(data?: IListTemplatesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListTemplatesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListTemplatesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListTemplatesRequest extends INrTableRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n}\r\n\r\nexport class TypeSericesGetResponse extends OkApiResponse implements ITypeSericesGetResponse {\r\n serviceTypeList?: ServizioTipo[];\r\n\r\n constructor(data?: ITypeSericesGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"serviceTypeList\"])) {\r\n this.serviceTypeList = [] as any;\r\n for (let item of _data[\"serviceTypeList\"])\r\n this.serviceTypeList!.push(ServizioTipo.fromJS(item));\r\n }\r\n else {\r\n this.serviceTypeList = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TypeSericesGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TypeSericesGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.serviceTypeList)) {\r\n data[\"serviceTypeList\"] = [];\r\n for (let item of this.serviceTypeList)\r\n data[\"serviceTypeList\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITypeSericesGetResponse extends IOkApiResponse {\r\n serviceTypeList?: ServizioTipo[];\r\n}\r\n\r\nexport class ServizioTipo implements IServizioTipo {\r\n id?: number;\r\n tipo?: ETipoServizio;\r\n traduzioni?: ServiceTypeTranslation[] | null;\r\n ordine?: number | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n serviziTipologieStandard?: ServizioTipologiaStandard[] | null;\r\n\r\n constructor(data?: IServizioTipo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(ServiceTypeTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n if (Array.isArray(_data[\"serviziTipologieStandard\"])) {\r\n this.serviziTipologieStandard = [] as any;\r\n for (let item of _data[\"serviziTipologieStandard\"])\r\n this.serviziTipologieStandard!.push(ServizioTipologiaStandard.fromJS(item));\r\n }\r\n else {\r\n this.serviziTipologieStandard = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioTipo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioTipo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n if (Array.isArray(this.serviziTipologieStandard)) {\r\n data[\"serviziTipologieStandard\"] = [];\r\n for (let item of this.serviziTipologieStandard)\r\n data[\"serviziTipologieStandard\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioTipo {\r\n id?: number;\r\n tipo?: ETipoServizio;\r\n traduzioni?: ServiceTypeTranslation[] | null;\r\n ordine?: number | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n serviziTipologieStandard?: ServizioTipologiaStandard[] | null;\r\n}\r\n\r\nexport class ServiceTypeTranslation extends WebTranslation implements IServiceTypeTranslation {\r\n\r\n constructor(data?: IServiceTypeTranslation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ServiceTypeTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceTypeTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceTypeTranslation extends IWebTranslation {\r\n}\r\n\r\nexport class ServizioTipologiaStandard implements IServizioTipologiaStandard {\r\n id?: number;\r\n eTipoServizio?: ETipoServizio;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n aggiornato?: string | null;\r\n eliminato?: string | null;\r\n traduzioni?: ServiceDefinitionStandardTranslation[] | null;\r\n paramNames?: TipologiaStandardParam[] | null;\r\n\r\n constructor(data?: IServizioTipologiaStandard) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.eTipoServizio = _data[\"eTipoServizio\"] !== undefined ? _data[\"eTipoServizio\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n this.aggiornato = _data[\"aggiornato\"] !== undefined ? _data[\"aggiornato\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(ServiceDefinitionStandardTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n if (Array.isArray(_data[\"paramNames\"])) {\r\n this.paramNames = [] as any;\r\n for (let item of _data[\"paramNames\"])\r\n this.paramNames!.push(TipologiaStandardParam.fromJS(item));\r\n }\r\n else {\r\n this.paramNames = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioTipologiaStandard {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioTipologiaStandard();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"eTipoServizio\"] = this.eTipoServizio !== undefined ? this.eTipoServizio : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n data[\"aggiornato\"] = this.aggiornato !== undefined ? this.aggiornato : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.paramNames)) {\r\n data[\"paramNames\"] = [];\r\n for (let item of this.paramNames)\r\n data[\"paramNames\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioTipologiaStandard {\r\n id?: number;\r\n eTipoServizio?: ETipoServizio;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n aggiornato?: string | null;\r\n eliminato?: string | null;\r\n traduzioni?: ServiceDefinitionStandardTranslation[] | null;\r\n paramNames?: TipologiaStandardParam[] | null;\r\n}\r\n\r\nexport class ServiceDefinitionStandardTranslation extends WebTranslation implements IServiceDefinitionStandardTranslation {\r\n\r\n constructor(data?: IServiceDefinitionStandardTranslation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ServiceDefinitionStandardTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceDefinitionStandardTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceDefinitionStandardTranslation extends IWebTranslation {\r\n}\r\n\r\nexport class TipologiaStandardParam implements ITipologiaStandardParam {\r\n name?: string | null;\r\n languages?: ELingua[] | null;\r\n isSpecial?: boolean;\r\n\r\n constructor(data?: ITipologiaStandardParam) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n if (Array.isArray(_data[\"languages\"])) {\r\n this.languages = [] as any;\r\n for (let item of _data[\"languages\"])\r\n this.languages!.push(item);\r\n }\r\n else {\r\n this.languages = null;\r\n }\r\n this.isSpecial = _data[\"isSpecial\"] !== undefined ? _data[\"isSpecial\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TipologiaStandardParam {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TipologiaStandardParam();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n if (Array.isArray(this.languages)) {\r\n data[\"languages\"] = [];\r\n for (let item of this.languages)\r\n data[\"languages\"].push(item);\r\n }\r\n data[\"isSpecial\"] = this.isSpecial !== undefined ? this.isSpecial : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITipologiaStandardParam {\r\n name?: string | null;\r\n languages?: ELingua[] | null;\r\n isSpecial?: boolean;\r\n}\r\n\r\nexport class TypeSericesGetRequest extends LocalizedRequest implements ITypeSericesGetRequest {\r\n servicetypeID?: number;\r\n\r\n constructor(data?: ITypeSericesGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servicetypeID = _data[\"servicetypeID\"] !== undefined ? _data[\"servicetypeID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TypeSericesGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TypeSericesGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servicetypeID\"] = this.servicetypeID !== undefined ? this.servicetypeID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITypeSericesGetRequest extends ILocalizedRequest {\r\n servicetypeID?: number;\r\n}\r\n\r\nexport class CloneArticoloTraducibileResponse extends OkApiResponse implements ICloneArticoloTraducibileResponse {\r\n testoId?: number | null;\r\n\r\n constructor(data?: ICloneArticoloTraducibileResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.testoId = _data[\"testoId\"] !== undefined ? _data[\"testoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CloneArticoloTraducibileResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CloneArticoloTraducibileResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testoId\"] = this.testoId !== undefined ? this.testoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICloneArticoloTraducibileResponse extends IOkApiResponse {\r\n testoId?: number | null;\r\n}\r\n\r\nexport class TextsGetRequest extends LocalizedRequest implements ITextsGetRequest {\r\n testoID?: number;\r\n\r\n constructor(data?: ITextsGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.testoID = _data[\"testoID\"] !== undefined ? _data[\"testoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextsGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextsGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testoID\"] = this.testoID !== undefined ? this.testoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextsGetRequest extends ILocalizedRequest {\r\n testoID?: number;\r\n}\r\n\r\nexport class CloneTextsRequest extends TextsGetRequest implements ICloneTextsRequest {\r\n\r\n constructor(data?: ICloneTextsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): CloneTextsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CloneTextsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICloneTextsRequest extends ITextsGetRequest {\r\n}\r\n\r\nexport class TextsGetResponse extends OkApiResponse implements ITextsGetResponse {\r\n service?: Servizio | null;\r\n articoloTraducibile?: ArticoloTraducibile;\r\n sections?: TranslateArticleSection[] | null;\r\n services?: IdValore[] | null;\r\n locations?: IdValore[] | null;\r\n\r\n constructor(data?: ITextsGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.service = _data[\"service\"] ? Servizio.fromJS(_data[\"service\"]) : null;\r\n this.articoloTraducibile = _data[\"articoloTraducibile\"] ? ArticoloTraducibile.fromJS(_data[\"articoloTraducibile\"]) : null;\r\n if (Array.isArray(_data[\"sections\"])) {\r\n this.sections = [] as any;\r\n for (let item of _data[\"sections\"])\r\n this.sections!.push(TranslateArticleSection.fromJS(item));\r\n }\r\n else {\r\n this.sections = null;\r\n }\r\n if (Array.isArray(_data[\"services\"])) {\r\n this.services = [] as any;\r\n for (let item of _data[\"services\"])\r\n this.services!.push(IdValore.fromJS(item));\r\n }\r\n else {\r\n this.services = null;\r\n }\r\n if (Array.isArray(_data[\"locations\"])) {\r\n this.locations = [] as any;\r\n for (let item of _data[\"locations\"])\r\n this.locations!.push(IdValore.fromJS(item));\r\n }\r\n else {\r\n this.locations = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextsGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextsGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"service\"] = this.service ? this.service.toJSON() : null;\r\n data[\"articoloTraducibile\"] = this.articoloTraducibile ? this.articoloTraducibile.toJSON() : null;\r\n if (Array.isArray(this.sections)) {\r\n data[\"sections\"] = [];\r\n for (let item of this.sections)\r\n data[\"sections\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.services)) {\r\n data[\"services\"] = [];\r\n for (let item of this.services)\r\n data[\"services\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.locations)) {\r\n data[\"locations\"] = [];\r\n for (let item of this.locations)\r\n data[\"locations\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextsGetResponse extends IOkApiResponse {\r\n service?: Servizio | null;\r\n articoloTraducibile?: ArticoloTraducibile;\r\n sections?: TranslateArticleSection[] | null;\r\n services?: IdValore[] | null;\r\n locations?: IdValore[] | null;\r\n}\r\n\r\nexport abstract class ServizioBase implements IServizioBase {\r\n servizioID?: number;\r\n\r\n constructor(data?: IServizioBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ServizioBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioBase {\r\n servizioID?: number;\r\n}\r\n\r\nexport class Servizio extends ServizioBase implements IServizio {\r\n traduzioni?: ServiceTranslation[] | null;\r\n pubblicazioni?: ServicePublish[] | null;\r\n luogoID?: number;\r\n contattoFornitoreID?: number | null;\r\n tipo?: ETipoServizio;\r\n markup?: number | null;\r\n penaleID?: number | null;\r\n giorniPenale?: number | null;\r\n parametroPenale?: number | null;\r\n deleted?: string | null;\r\n nome!: string;\r\n nomeInglese?: string | null;\r\n nomeOriginale?: string | null;\r\n popolarita?: number | null;\r\n ordine?: number | null;\r\n pubblicazione1?: EStatoPubblicazioneServizio | null;\r\n pubblicazione2?: EStatoPubblicazioneServizio | null;\r\n pubblicazione3?: EStatoPubblicazioneServizio | null;\r\n note?: string | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n preferito?: boolean;\r\n codice?: string | null;\r\n giataID?: number | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n\r\n constructor(data?: IServizio) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(ServiceTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n if (Array.isArray(_data[\"pubblicazioni\"])) {\r\n this.pubblicazioni = [] as any;\r\n for (let item of _data[\"pubblicazioni\"])\r\n this.pubblicazioni!.push(ServicePublish.fromJS(item));\r\n }\r\n else {\r\n this.pubblicazioni = null;\r\n }\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.contattoFornitoreID = _data[\"contattoFornitoreID\"] !== undefined ? _data[\"contattoFornitoreID\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.markup = _data[\"markup\"] !== undefined ? _data[\"markup\"] : null;\r\n this.penaleID = _data[\"penaleID\"] !== undefined ? _data[\"penaleID\"] : null;\r\n this.giorniPenale = _data[\"giorniPenale\"] !== undefined ? _data[\"giorniPenale\"] : null;\r\n this.parametroPenale = _data[\"parametroPenale\"] !== undefined ? _data[\"parametroPenale\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n this.nomeOriginale = _data[\"nomeOriginale\"] !== undefined ? _data[\"nomeOriginale\"] : null;\r\n this.popolarita = _data[\"popolarita\"] !== undefined ? _data[\"popolarita\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.pubblicazione1 = _data[\"pubblicazione1\"] !== undefined ? _data[\"pubblicazione1\"] : null;\r\n this.pubblicazione2 = _data[\"pubblicazione2\"] !== undefined ? _data[\"pubblicazione2\"] : null;\r\n this.pubblicazione3 = _data[\"pubblicazione3\"] !== undefined ? _data[\"pubblicazione3\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.preferito = _data[\"preferito\"] !== undefined ? _data[\"preferito\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Servizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Servizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.pubblicazioni)) {\r\n data[\"pubblicazioni\"] = [];\r\n for (let item of this.pubblicazioni)\r\n data[\"pubblicazioni\"].push(item.toJSON());\r\n }\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"contattoFornitoreID\"] = this.contattoFornitoreID !== undefined ? this.contattoFornitoreID : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"markup\"] = this.markup !== undefined ? this.markup : null;\r\n data[\"penaleID\"] = this.penaleID !== undefined ? this.penaleID : null;\r\n data[\"giorniPenale\"] = this.giorniPenale !== undefined ? this.giorniPenale : null;\r\n data[\"parametroPenale\"] = this.parametroPenale !== undefined ? this.parametroPenale : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n data[\"nomeOriginale\"] = this.nomeOriginale !== undefined ? this.nomeOriginale : null;\r\n data[\"popolarita\"] = this.popolarita !== undefined ? this.popolarita : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"pubblicazione1\"] = this.pubblicazione1 !== undefined ? this.pubblicazione1 : null;\r\n data[\"pubblicazione2\"] = this.pubblicazione2 !== undefined ? this.pubblicazione2 : null;\r\n data[\"pubblicazione3\"] = this.pubblicazione3 !== undefined ? this.pubblicazione3 : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"preferito\"] = this.preferito !== undefined ? this.preferito : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizio extends IServizioBase {\r\n traduzioni?: ServiceTranslation[] | null;\r\n pubblicazioni?: ServicePublish[] | null;\r\n luogoID?: number;\r\n contattoFornitoreID?: number | null;\r\n tipo?: ETipoServizio;\r\n markup?: number | null;\r\n penaleID?: number | null;\r\n giorniPenale?: number | null;\r\n parametroPenale?: number | null;\r\n deleted?: string | null;\r\n nome: string;\r\n nomeInglese?: string | null;\r\n nomeOriginale?: string | null;\r\n popolarita?: number | null;\r\n ordine?: number | null;\r\n pubblicazione1?: EStatoPubblicazioneServizio | null;\r\n pubblicazione2?: EStatoPubblicazioneServizio | null;\r\n pubblicazione3?: EStatoPubblicazioneServizio | null;\r\n note?: string | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n preferito?: boolean;\r\n codice?: string | null;\r\n giataID?: number | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n}\r\n\r\nexport class ServiceTranslation extends WebTranslation implements IServiceTranslation {\r\n\r\n constructor(data?: IServiceTranslation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ServiceTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceTranslation extends IWebTranslation {\r\n}\r\n\r\nexport class WebsitePublish implements IWebsitePublish {\r\n id?: number;\r\n websiteID!: number;\r\n table!: string;\r\n entityID!: number;\r\n publish?: number;\r\n publishFrom?: string | null;\r\n publishTo?: string | null;\r\n markupOverride?: number | null;\r\n\r\n constructor(data?: IWebsitePublish) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.websiteID = _data[\"websiteID\"] !== undefined ? _data[\"websiteID\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n this.entityID = _data[\"entityID\"] !== undefined ? _data[\"entityID\"] : null;\r\n this.publish = _data[\"publish\"] !== undefined ? _data[\"publish\"] : null;\r\n this.publishFrom = _data[\"publishFrom\"] !== undefined ? _data[\"publishFrom\"] : null;\r\n this.publishTo = _data[\"publishTo\"] !== undefined ? _data[\"publishTo\"] : null;\r\n this.markupOverride = _data[\"markupOverride\"] !== undefined ? _data[\"markupOverride\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsitePublish {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsitePublish();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"websiteID\"] = this.websiteID !== undefined ? this.websiteID : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n data[\"entityID\"] = this.entityID !== undefined ? this.entityID : null;\r\n data[\"publish\"] = this.publish !== undefined ? this.publish : null;\r\n data[\"publishFrom\"] = this.publishFrom !== undefined ? this.publishFrom : null;\r\n data[\"publishTo\"] = this.publishTo !== undefined ? this.publishTo : null;\r\n data[\"markupOverride\"] = this.markupOverride !== undefined ? this.markupOverride : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsitePublish {\r\n id?: number;\r\n websiteID: number;\r\n table: string;\r\n entityID: number;\r\n publish?: number;\r\n publishFrom?: string | null;\r\n publishTo?: string | null;\r\n markupOverride?: number | null;\r\n}\r\n\r\nexport class ServicePublish extends WebsitePublish implements IServicePublish {\r\n statoPubblicazione?: EStatoPubblicazioneServizio;\r\n\r\n constructor(data?: IServicePublish) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statoPubblicazione = _data[\"statoPubblicazione\"] !== undefined ? _data[\"statoPubblicazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServicePublish {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServicePublish();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statoPubblicazione\"] = this.statoPubblicazione !== undefined ? this.statoPubblicazione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServicePublish extends IWebsitePublish {\r\n statoPubblicazione?: EStatoPubblicazioneServizio;\r\n}\r\n\r\nexport enum EStatoPubblicazioneServizio {\r\n NonPubblicare = \"NonPubblicare\",\r\n PubblicaWeb = \"PubblicaWeb\",\r\n PubblicaIntranet = \"PubblicaIntranet\",\r\n PubblicaWebPreferito = \"PubblicaWebPreferito\",\r\n VisibilePubblicamente = \"VisibilePubblicamente\",\r\n InLavorazione = \"InLavorazione\",\r\n}\r\n\r\nexport enum EStatoUtilizzoServizio {\r\n Attivo = \"Attivo\",\r\n Occasionale = \"Occasionale\",\r\n InLavorazione = \"InLavorazione\",\r\n Obsoleto = \"Obsoleto\",\r\n}\r\n\r\nexport class ArticoloTraducibile implements IArticoloTraducibile {\r\n id?: number;\r\n templateID?: number | null;\r\n titoloInterno?: string | null;\r\n entita?: EArticoloEntita;\r\n recordID?: number;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n visibilita?: EArticoloVisibilita;\r\n status?: EStatoArticolo;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n sortOrder?: number;\r\n\r\n constructor(data?: IArticoloTraducibile) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.templateID = _data[\"templateID\"] !== undefined ? _data[\"templateID\"] : null;\r\n this.titoloInterno = _data[\"titoloInterno\"] !== undefined ? _data[\"titoloInterno\"] : null;\r\n this.entita = _data[\"entita\"] !== undefined ? _data[\"entita\"] : null;\r\n this.recordID = _data[\"recordID\"] !== undefined ? _data[\"recordID\"] : null;\r\n this.pubblicaDal = _data[\"pubblicaDal\"] !== undefined ? _data[\"pubblicaDal\"] : null;\r\n this.pubblicaAl = _data[\"pubblicaAl\"] !== undefined ? _data[\"pubblicaAl\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.deletedAt = _data[\"deletedAt\"] !== undefined ? _data[\"deletedAt\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloTraducibile {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloTraducibile();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"templateID\"] = this.templateID !== undefined ? this.templateID : null;\r\n data[\"titoloInterno\"] = this.titoloInterno !== undefined ? this.titoloInterno : null;\r\n data[\"entita\"] = this.entita !== undefined ? this.entita : null;\r\n data[\"recordID\"] = this.recordID !== undefined ? this.recordID : null;\r\n data[\"pubblicaDal\"] = this.pubblicaDal !== undefined ? this.pubblicaDal : null;\r\n data[\"pubblicaAl\"] = this.pubblicaAl !== undefined ? this.pubblicaAl : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"deletedAt\"] = this.deletedAt !== undefined ? this.deletedAt : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloTraducibile {\r\n id?: number;\r\n templateID?: number | null;\r\n titoloInterno?: string | null;\r\n entita?: EArticoloEntita;\r\n recordID?: number;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n visibilita?: EArticoloVisibilita;\r\n status?: EStatoArticolo;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n sortOrder?: number;\r\n}\r\n\r\nexport enum EArticoloEntita {\r\n Luogo = \"Luogo\",\r\n Servizio = \"Servizio\",\r\n Tipologia = \"Tipologia\",\r\n Itinerario = \"Itinerario\",\r\n WebsiteTree = \"WebsiteTree\",\r\n}\r\n\r\nexport enum EArticoloVisibilita {\r\n Nessuna = \"Nessuna\",\r\n Web = \"Web\",\r\n Offerta = \"Offerta\",\r\n Preventivo = \"Preventivo\",\r\n ProgrammaDiViaggio = \"ProgrammaDiViaggio\",\r\n Voucher = \"Voucher\",\r\n EstrattoConto = \"EstrattoConto\",\r\n Template = \"Template\",\r\n}\r\n\r\nexport enum EStatoArticolo {\r\n Bozza = \"Bozza\",\r\n Pronto = \"Pronto\",\r\n Pubblicato = \"Pubblicato\",\r\n PubblicatoIntranet = \"PubblicatoIntranet\",\r\n}\r\n\r\nexport class TranslateArticleSection implements ITranslateArticleSection {\r\n id?: number;\r\n name?: string;\r\n itinerary?: string | null;\r\n phrases?: ArticlePhrase[] | null;\r\n days?: TranslateArticleSectionDay[] | null;\r\n\r\n constructor(data?: ITranslateArticleSection) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.itinerary = _data[\"itinerary\"] !== undefined ? _data[\"itinerary\"] : null;\r\n if (Array.isArray(_data[\"phrases\"])) {\r\n this.phrases = [] as any;\r\n for (let item of _data[\"phrases\"])\r\n this.phrases!.push(ArticlePhrase.fromJS(item));\r\n }\r\n else {\r\n this.phrases = null;\r\n }\r\n if (Array.isArray(_data[\"days\"])) {\r\n this.days = [] as any;\r\n for (let item of _data[\"days\"])\r\n this.days!.push(TranslateArticleSectionDay.fromJS(item));\r\n }\r\n else {\r\n this.days = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslateArticleSection {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslateArticleSection();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"itinerary\"] = this.itinerary !== undefined ? this.itinerary : null;\r\n if (Array.isArray(this.phrases)) {\r\n data[\"phrases\"] = [];\r\n for (let item of this.phrases)\r\n data[\"phrases\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.days)) {\r\n data[\"days\"] = [];\r\n for (let item of this.days)\r\n data[\"days\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslateArticleSection {\r\n id?: number;\r\n name?: string;\r\n itinerary?: string | null;\r\n phrases?: ArticlePhrase[] | null;\r\n days?: TranslateArticleSectionDay[] | null;\r\n}\r\n\r\nexport class ArticoloFrase implements IArticoloFrase {\r\n id?: number;\r\n articoloID?: number;\r\n fraseID?: number | null;\r\n frase?: Frase | null;\r\n terminatore?: EFraseTerminatore;\r\n articoloTestoID?: number | null;\r\n sezioneID?: number;\r\n ordine?: number;\r\n giorno?: number | null;\r\n parametri?: string | null;\r\n visibilita?: EFraseVisibilita;\r\n\r\n constructor(data?: IArticoloFrase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n this.frase = _data[\"frase\"] ? Frase.fromJS(_data[\"frase\"]) : null;\r\n this.terminatore = _data[\"terminatore\"] !== undefined ? _data[\"terminatore\"] : null;\r\n this.articoloTestoID = _data[\"articoloTestoID\"] !== undefined ? _data[\"articoloTestoID\"] : null;\r\n this.sezioneID = _data[\"sezioneID\"] !== undefined ? _data[\"sezioneID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.parametri = _data[\"parametri\"] !== undefined ? _data[\"parametri\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloFrase {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloFrase();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n data[\"frase\"] = this.frase ? this.frase.toJSON() : null;\r\n data[\"terminatore\"] = this.terminatore !== undefined ? this.terminatore : null;\r\n data[\"articoloTestoID\"] = this.articoloTestoID !== undefined ? this.articoloTestoID : null;\r\n data[\"sezioneID\"] = this.sezioneID !== undefined ? this.sezioneID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"parametri\"] = this.parametri !== undefined ? this.parametri : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloFrase {\r\n id?: number;\r\n articoloID?: number;\r\n fraseID?: number | null;\r\n frase?: Frase | null;\r\n terminatore?: EFraseTerminatore;\r\n articoloTestoID?: number | null;\r\n sezioneID?: number;\r\n ordine?: number;\r\n giorno?: number | null;\r\n parametri?: string | null;\r\n visibilita?: EFraseVisibilita;\r\n}\r\n\r\nexport class ArticlePhrase extends ArticoloFrase implements IArticlePhrase {\r\n variables?: { [key: string]: VariabileValore; } | null;\r\n\r\n constructor(data?: IArticlePhrase) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (_data[\"variables\"]) {\r\n this.variables = {} as any;\r\n for (let key in _data[\"variables\"]) {\r\n if (_data[\"variables\"].hasOwnProperty(key))\r\n (this.variables)![key] = _data[\"variables\"][key] ? VariabileValore.fromJS(_data[\"variables\"][key]) : new VariabileValore();\r\n }\r\n }\r\n else {\r\n this.variables = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticlePhrase {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticlePhrase();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (this.variables) {\r\n data[\"variables\"] = {};\r\n for (let key in this.variables) {\r\n if (this.variables.hasOwnProperty(key))\r\n (data[\"variables\"])[key] = this.variables[key] ? this.variables[key].toJSON() : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticlePhrase extends IArticoloFrase {\r\n variables?: { [key: string]: VariabileValore; } | null;\r\n}\r\n\r\nexport class VariabileValore implements IVariabileValore {\r\n default?: string | null;\r\n valore?: string | null;\r\n\r\n constructor(data?: IVariabileValore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.default = _data[\"default\"] !== undefined ? _data[\"default\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VariabileValore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VariabileValore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"default\"] = this.default !== undefined ? this.default : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVariabileValore {\r\n default?: string | null;\r\n valore?: string | null;\r\n}\r\n\r\nexport class Frase implements IFrase {\r\n id!: number;\r\n traduzioni?: FraseTraduzione[] | null;\r\n sezioneID?: number | null;\r\n luogoID?: number | null;\r\n luogoDestID?: number | null;\r\n servizioID?: number | null;\r\n contattoID?: number | null;\r\n documentoID?: number | null;\r\n titoloInterno?: string | null;\r\n testoITA!: string;\r\n testoENG?: string | null;\r\n testoEstesoITA?: string | null;\r\n testoEstesoENG?: string | null;\r\n default!: boolean;\r\n usaFIT!: boolean;\r\n defaultFIT!: boolean;\r\n sistema!: boolean;\r\n codice?: string | null;\r\n sortOrder?: number | null;\r\n visibilita!: EFraseVisibilita;\r\n pasti!: EFrasiPasti;\r\n createdAt!: string;\r\n updatedAt!: string;\r\n deletedAt?: string | null;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n confermato?: boolean | null;\r\n createdAtENG?: string | null;\r\n updatedAtENG?: string | null;\r\n deletedAtENG?: string | null;\r\n confermatoENG?: boolean | null;\r\n\r\n constructor(data?: IFrase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(FraseTraduzione.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.sezioneID = _data[\"sezioneID\"] !== undefined ? _data[\"sezioneID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoDestID = _data[\"luogoDestID\"] !== undefined ? _data[\"luogoDestID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.titoloInterno = _data[\"titoloInterno\"] !== undefined ? _data[\"titoloInterno\"] : null;\r\n this.testoITA = _data[\"testoITA\"] !== undefined ? _data[\"testoITA\"] : null;\r\n this.testoENG = _data[\"testoENG\"] !== undefined ? _data[\"testoENG\"] : null;\r\n this.testoEstesoITA = _data[\"testoEstesoITA\"] !== undefined ? _data[\"testoEstesoITA\"] : null;\r\n this.testoEstesoENG = _data[\"testoEstesoENG\"] !== undefined ? _data[\"testoEstesoENG\"] : null;\r\n this.default = _data[\"default\"] !== undefined ? _data[\"default\"] : null;\r\n this.usaFIT = _data[\"usaFIT\"] !== undefined ? _data[\"usaFIT\"] : null;\r\n this.defaultFIT = _data[\"defaultFIT\"] !== undefined ? _data[\"defaultFIT\"] : null;\r\n this.sistema = _data[\"sistema\"] !== undefined ? _data[\"sistema\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n this.pasti = _data[\"pasti\"] !== undefined ? _data[\"pasti\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.deletedAt = _data[\"deletedAt\"] !== undefined ? _data[\"deletedAt\"] : null;\r\n this.pubblicaDal = _data[\"pubblicaDal\"] !== undefined ? _data[\"pubblicaDal\"] : null;\r\n this.pubblicaAl = _data[\"pubblicaAl\"] !== undefined ? _data[\"pubblicaAl\"] : null;\r\n this.confermato = _data[\"confermato\"] !== undefined ? _data[\"confermato\"] : null;\r\n this.createdAtENG = _data[\"createdAtENG\"] !== undefined ? _data[\"createdAtENG\"] : null;\r\n this.updatedAtENG = _data[\"updatedAtENG\"] !== undefined ? _data[\"updatedAtENG\"] : null;\r\n this.deletedAtENG = _data[\"deletedAtENG\"] !== undefined ? _data[\"deletedAtENG\"] : null;\r\n this.confermatoENG = _data[\"confermatoENG\"] !== undefined ? _data[\"confermatoENG\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Frase {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Frase();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"sezioneID\"] = this.sezioneID !== undefined ? this.sezioneID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoDestID\"] = this.luogoDestID !== undefined ? this.luogoDestID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"titoloInterno\"] = this.titoloInterno !== undefined ? this.titoloInterno : null;\r\n data[\"testoITA\"] = this.testoITA !== undefined ? this.testoITA : null;\r\n data[\"testoENG\"] = this.testoENG !== undefined ? this.testoENG : null;\r\n data[\"testoEstesoITA\"] = this.testoEstesoITA !== undefined ? this.testoEstesoITA : null;\r\n data[\"testoEstesoENG\"] = this.testoEstesoENG !== undefined ? this.testoEstesoENG : null;\r\n data[\"default\"] = this.default !== undefined ? this.default : null;\r\n data[\"usaFIT\"] = this.usaFIT !== undefined ? this.usaFIT : null;\r\n data[\"defaultFIT\"] = this.defaultFIT !== undefined ? this.defaultFIT : null;\r\n data[\"sistema\"] = this.sistema !== undefined ? this.sistema : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n data[\"pasti\"] = this.pasti !== undefined ? this.pasti : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"deletedAt\"] = this.deletedAt !== undefined ? this.deletedAt : null;\r\n data[\"pubblicaDal\"] = this.pubblicaDal !== undefined ? this.pubblicaDal : null;\r\n data[\"pubblicaAl\"] = this.pubblicaAl !== undefined ? this.pubblicaAl : null;\r\n data[\"confermato\"] = this.confermato !== undefined ? this.confermato : null;\r\n data[\"createdAtENG\"] = this.createdAtENG !== undefined ? this.createdAtENG : null;\r\n data[\"updatedAtENG\"] = this.updatedAtENG !== undefined ? this.updatedAtENG : null;\r\n data[\"deletedAtENG\"] = this.deletedAtENG !== undefined ? this.deletedAtENG : null;\r\n data[\"confermatoENG\"] = this.confermatoENG !== undefined ? this.confermatoENG : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFrase {\r\n id: number;\r\n traduzioni?: FraseTraduzione[] | null;\r\n sezioneID?: number | null;\r\n luogoID?: number | null;\r\n luogoDestID?: number | null;\r\n servizioID?: number | null;\r\n contattoID?: number | null;\r\n documentoID?: number | null;\r\n titoloInterno?: string | null;\r\n testoITA: string;\r\n testoENG?: string | null;\r\n testoEstesoITA?: string | null;\r\n testoEstesoENG?: string | null;\r\n default: boolean;\r\n usaFIT: boolean;\r\n defaultFIT: boolean;\r\n sistema: boolean;\r\n codice?: string | null;\r\n sortOrder?: number | null;\r\n visibilita: EFraseVisibilita;\r\n pasti: EFrasiPasti;\r\n createdAt: string;\r\n updatedAt: string;\r\n deletedAt?: string | null;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n confermato?: boolean | null;\r\n createdAtENG?: string | null;\r\n updatedAtENG?: string | null;\r\n deletedAtENG?: string | null;\r\n confermatoENG?: boolean | null;\r\n}\r\n\r\nexport class FraseTraduzione implements IFraseTraduzione {\r\n id?: number;\r\n fraseID?: number;\r\n lingua?: ELingua;\r\n testo?: string | null;\r\n confermata?: boolean;\r\n creazione?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n\r\n constructor(data?: IFraseTraduzione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.confermata = _data[\"confermata\"] !== undefined ? _data[\"confermata\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FraseTraduzione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FraseTraduzione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"confermata\"] = this.confermata !== undefined ? this.confermata : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFraseTraduzione {\r\n id?: number;\r\n fraseID?: number;\r\n lingua?: ELingua;\r\n testo?: string | null;\r\n confermata?: boolean;\r\n creazione?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n}\r\n\r\nexport enum EFraseVisibilita {\r\n Tutto = \"Tutto\",\r\n ProgrammaDiViaggio = \"ProgrammaDiViaggio\",\r\n Web = \"Web\",\r\n PreventivoCliente = \"PreventivoCliente\",\r\n}\r\n\r\nexport enum EFrasiPasti {\r\n Nessuno = \"Nessuno\",\r\n Colazione = \"Colazione\",\r\n PranzoAlSacco = \"PranzoAlSacco\",\r\n Pranzo = \"Pranzo\",\r\n Cena = \"Cena\",\r\n}\r\n\r\nexport enum EFraseTerminatore {\r\n Nessuno = \"Nessuno\",\r\n ACapo = \"ACapo\",\r\n Punto = \"Punto\",\r\n PuntoACapo = \"PuntoACapo\",\r\n Virgola = \"Virgola\",\r\n PuntoEVirgola = \"PuntoEVirgola\",\r\n Duepunti = \"Duepunti\",\r\n Trattino = \"Trattino\",\r\n PuntoEVirgolaACapo = \"PuntoEVirgolaACapo\",\r\n DoppioACapo = \"DoppioACapo\",\r\n PuntoEDoppioACapo = \"PuntoEDoppioACapo\",\r\n SegueMaiuscolo = \"SegueMaiuscolo\",\r\n ACapoESegueMaiuscolo = \"ACapoESegueMaiuscolo\",\r\n Separatore = \"Separatore\",\r\n}\r\n\r\nexport class TranslateArticleSectionDay implements ITranslateArticleSectionDay {\r\n day?: number;\r\n dayName?: string;\r\n place?: string | null;\r\n serviceID?: number | null;\r\n duration?: number | null;\r\n phrases?: ArticlePhrase[];\r\n\r\n constructor(data?: ITranslateArticleSectionDay) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.day = _data[\"day\"] !== undefined ? _data[\"day\"] : null;\r\n this.dayName = _data[\"dayName\"] !== undefined ? _data[\"dayName\"] : null;\r\n this.place = _data[\"place\"] !== undefined ? _data[\"place\"] : null;\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n this.duration = _data[\"duration\"] !== undefined ? _data[\"duration\"] : null;\r\n if (Array.isArray(_data[\"phrases\"])) {\r\n this.phrases = [] as any;\r\n for (let item of _data[\"phrases\"])\r\n this.phrases!.push(ArticlePhrase.fromJS(item));\r\n }\r\n else {\r\n this.phrases = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslateArticleSectionDay {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslateArticleSectionDay();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"day\"] = this.day !== undefined ? this.day : null;\r\n data[\"dayName\"] = this.dayName !== undefined ? this.dayName : null;\r\n data[\"place\"] = this.place !== undefined ? this.place : null;\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n data[\"duration\"] = this.duration !== undefined ? this.duration : null;\r\n if (Array.isArray(this.phrases)) {\r\n data[\"phrases\"] = [];\r\n for (let item of this.phrases)\r\n data[\"phrases\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslateArticleSectionDay {\r\n day?: number;\r\n dayName?: string;\r\n place?: string | null;\r\n serviceID?: number | null;\r\n duration?: number | null;\r\n phrases?: ArticlePhrase[];\r\n}\r\n\r\nexport class IdValore implements IIdValore {\r\n id?: number;\r\n valore?: string;\r\n\r\n constructor(data?: IIdValore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IdValore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IdValore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIdValore {\r\n id?: number;\r\n valore?: string;\r\n}\r\n\r\nexport class UpdateTextsRequest extends TextsGetRequest implements IUpdateTextsRequest {\r\n articoloTraducibile?: ArticoloTraducibile | null;\r\n sections?: TranslateArticleSection[] | null;\r\n\r\n constructor(data?: IUpdateTextsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articoloTraducibile = _data[\"articoloTraducibile\"] ? ArticoloTraducibile.fromJS(_data[\"articoloTraducibile\"]) : null;\r\n if (Array.isArray(_data[\"sections\"])) {\r\n this.sections = [] as any;\r\n for (let item of _data[\"sections\"])\r\n this.sections!.push(TranslateArticleSection.fromJS(item));\r\n }\r\n else {\r\n this.sections = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateTextsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateTextsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloTraducibile\"] = this.articoloTraducibile ? this.articoloTraducibile.toJSON() : null;\r\n if (Array.isArray(this.sections)) {\r\n data[\"sections\"] = [];\r\n for (let item of this.sections)\r\n data[\"sections\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateTextsRequest extends ITextsGetRequest {\r\n articoloTraducibile?: ArticoloTraducibile | null;\r\n sections?: TranslateArticleSection[] | null;\r\n}\r\n\r\nexport class TextDeleteRequest extends ApiRequest implements ITextDeleteRequest {\r\n testoID?: number;\r\n\r\n constructor(data?: ITextDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.testoID = _data[\"testoID\"] !== undefined ? _data[\"testoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testoID\"] = this.testoID !== undefined ? this.testoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextDeleteRequest extends IApiRequest {\r\n testoID?: number;\r\n}\r\n\r\nexport class TextsGetFrasiDefaultResponse extends OkApiResponse implements ITextsGetFrasiDefaultResponse {\r\n section?: TranslateArticleSection;\r\n\r\n constructor(data?: ITextsGetFrasiDefaultResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.section = _data[\"section\"] ? TranslateArticleSection.fromJS(_data[\"section\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextsGetFrasiDefaultResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextsGetFrasiDefaultResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"section\"] = this.section ? this.section.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextsGetFrasiDefaultResponse extends IOkApiResponse {\r\n section?: TranslateArticleSection;\r\n}\r\n\r\nexport class TextsGetFrasiDefaultRequest extends LocalizedRequest implements ITextsGetFrasiDefaultRequest {\r\n sezioneID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n\r\n constructor(data?: ITextsGetFrasiDefaultRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.sezioneID = _data[\"sezioneID\"] !== undefined ? _data[\"sezioneID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextsGetFrasiDefaultRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextsGetFrasiDefaultRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sezioneID\"] = this.sezioneID !== undefined ? this.sezioneID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextsGetFrasiDefaultRequest extends ILocalizedRequest {\r\n sezioneID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n}\r\n\r\nexport class TextsGetItinerarioResponse extends OkApiResponse implements ITextsGetItinerarioResponse {\r\n section?: TranslateArticleSection;\r\n\r\n constructor(data?: ITextsGetItinerarioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.section = _data[\"section\"] ? TranslateArticleSection.fromJS(_data[\"section\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextsGetItinerarioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextsGetItinerarioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"section\"] = this.section ? this.section.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextsGetItinerarioResponse extends IOkApiResponse {\r\n section?: TranslateArticleSection;\r\n}\r\n\r\nexport class TextsGetItinerarioRequest extends LocalizedRequest implements ITextsGetItinerarioRequest {\r\n servizioID?: number | null;\r\n\r\n constructor(data?: ITextsGetItinerarioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextsGetItinerarioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextsGetItinerarioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextsGetItinerarioRequest extends ILocalizedRequest {\r\n servizioID?: number | null;\r\n}\r\n\r\nexport class TextGetArticlePhraseResponse extends OkApiResponse implements ITextGetArticlePhraseResponse {\r\n articlePhrase?: ArticlePhrase;\r\n\r\n constructor(data?: ITextGetArticlePhraseResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articlePhrase = _data[\"articlePhrase\"] ? ArticlePhrase.fromJS(_data[\"articlePhrase\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextGetArticlePhraseResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextGetArticlePhraseResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articlePhrase\"] = this.articlePhrase ? this.articlePhrase.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextGetArticlePhraseResponse extends IOkApiResponse {\r\n articlePhrase?: ArticlePhrase;\r\n}\r\n\r\nexport class TextGetArticlePhraseRequest extends LocalizedRequest implements ITextGetArticlePhraseRequest {\r\n phraseID?: number;\r\n\r\n constructor(data?: ITextGetArticlePhraseRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.phraseID = _data[\"phraseID\"] !== undefined ? _data[\"phraseID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextGetArticlePhraseRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextGetArticlePhraseRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"phraseID\"] = this.phraseID !== undefined ? this.phraseID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextGetArticlePhraseRequest extends ILocalizedRequest {\r\n phraseID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfTextsRow extends OkApiResponse implements INrTableResponseOfTextsRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TextsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTextsRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TextsRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTextsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTextsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTextsRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TextsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ListTextsResponse extends NrTableResponseOfTextsRow implements IListTextsResponse {\r\n\r\n constructor(data?: IListTextsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ListTextsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListTextsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListTextsResponse extends INrTableResponseOfTextsRow {\r\n}\r\n\r\nexport class TextsRow implements ITextsRow {\r\n id?: number;\r\n title?: string | null;\r\n luogo?: string | null;\r\n servizio?: string | null;\r\n contatto?: string | null;\r\n paese?: string | null;\r\n tipoServizio?: ETipoServizioFlags | null;\r\n status?: EStatoArticolo | null;\r\n\r\n constructor(data?: ITextsRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextsRow {\r\n id?: number;\r\n title?: string | null;\r\n luogo?: string | null;\r\n servizio?: string | null;\r\n contatto?: string | null;\r\n paese?: string | null;\r\n tipoServizio?: ETipoServizioFlags | null;\r\n status?: EStatoArticolo | null;\r\n}\r\n\r\nexport class ListTextsRequest extends NrTableRequest implements IListTextsRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n /** Se true cerca solo frasi non associate a luogo */\r\n noLuogo?: boolean;\r\n /** Se true cerca solo frasi non associate a servizio */\r\n noServizio?: boolean;\r\n /** Se true cerca solo frasi non associate a contatto */\r\n noContatto?: boolean;\r\n /** Filtro sugli ID luogo. Se presente la frase deve appartenere ad uno di questi luoghi */\r\n luoghiIds?: number[] | null;\r\n /** Filtro sugli ID servizio. Se presente la frase deve appartenere ad uno di questi servizi */\r\n serviziIds?: number[] | null;\r\n /** Filtro sugli ID contatto. Se presente la frase deve appartenere ad uno di questi contatti */\r\n contattiIds?: number[] | null;\r\n paeseID?: number | null;\r\n status?: EStatoArticolo | null;\r\n tipoServizio?: ETipoServizioFlags | null;\r\n\r\n constructor(data?: IListTextsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.noLuogo = _data[\"noLuogo\"] !== undefined ? _data[\"noLuogo\"] : null;\r\n this.noServizio = _data[\"noServizio\"] !== undefined ? _data[\"noServizio\"] : null;\r\n this.noContatto = _data[\"noContatto\"] !== undefined ? _data[\"noContatto\"] : null;\r\n if (Array.isArray(_data[\"luoghiIds\"])) {\r\n this.luoghiIds = [] as any;\r\n for (let item of _data[\"luoghiIds\"])\r\n this.luoghiIds!.push(item);\r\n }\r\n else {\r\n this.luoghiIds = null;\r\n }\r\n if (Array.isArray(_data[\"serviziIds\"])) {\r\n this.serviziIds = [] as any;\r\n for (let item of _data[\"serviziIds\"])\r\n this.serviziIds!.push(item);\r\n }\r\n else {\r\n this.serviziIds = null;\r\n }\r\n if (Array.isArray(_data[\"contattiIds\"])) {\r\n this.contattiIds = [] as any;\r\n for (let item of _data[\"contattiIds\"])\r\n this.contattiIds!.push(item);\r\n }\r\n else {\r\n this.contattiIds = null;\r\n }\r\n this.paeseID = _data[\"paeseID\"] !== undefined ? _data[\"paeseID\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListTextsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListTextsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"noLuogo\"] = this.noLuogo !== undefined ? this.noLuogo : null;\r\n data[\"noServizio\"] = this.noServizio !== undefined ? this.noServizio : null;\r\n data[\"noContatto\"] = this.noContatto !== undefined ? this.noContatto : null;\r\n if (Array.isArray(this.luoghiIds)) {\r\n data[\"luoghiIds\"] = [];\r\n for (let item of this.luoghiIds)\r\n data[\"luoghiIds\"].push(item);\r\n }\r\n if (Array.isArray(this.serviziIds)) {\r\n data[\"serviziIds\"] = [];\r\n for (let item of this.serviziIds)\r\n data[\"serviziIds\"].push(item);\r\n }\r\n if (Array.isArray(this.contattiIds)) {\r\n data[\"contattiIds\"] = [];\r\n for (let item of this.contattiIds)\r\n data[\"contattiIds\"].push(item);\r\n }\r\n data[\"paeseID\"] = this.paeseID !== undefined ? this.paeseID : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListTextsRequest extends INrTableRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n /** Se true cerca solo frasi non associate a luogo */\r\n noLuogo?: boolean;\r\n /** Se true cerca solo frasi non associate a servizio */\r\n noServizio?: boolean;\r\n /** Se true cerca solo frasi non associate a contatto */\r\n noContatto?: boolean;\r\n /** Filtro sugli ID luogo. Se presente la frase deve appartenere ad uno di questi luoghi */\r\n luoghiIds?: number[] | null;\r\n /** Filtro sugli ID servizio. Se presente la frase deve appartenere ad uno di questi servizi */\r\n serviziIds?: number[] | null;\r\n /** Filtro sugli ID contatto. Se presente la frase deve appartenere ad uno di questi contatti */\r\n contattiIds?: number[] | null;\r\n paeseID?: number | null;\r\n status?: EStatoArticolo | null;\r\n tipoServizio?: ETipoServizioFlags | null;\r\n}\r\n\r\n/** Dati dell'utente */\r\nexport class UserDataResponse extends OkApiResponse implements IUserDataResponse {\r\n /** ID in chiaro */\r\n id?: number;\r\n /** User email */\r\n email?: string | null;\r\n /** ID criptato per operazioni in SSO */\r\n ssoToken?: string;\r\n /** Nome */\r\n nome?: string | null;\r\n /** Cognome */\r\n cognome?: string | null;\r\n /** Tipo di utente */\r\n tipo?: ETipoUtente;\r\n /** Elenco complessivo dei suoi permessi */\r\n permessi?: string[];\r\n /** Can Book Flight -> diverso dai permessi!!! e su userinfo */\r\n canBookFlights?: boolean;\r\n /** Può prenotare? */\r\n canBook?: boolean;\r\n /** Opzioni del frontend */\r\n opzioniUI?: OpzioniUI;\r\n /** Dati dell'agenzia dell'utente, se ne ha una */\r\n agencyData?: AgencyData | null;\r\n /** Dati di debug con le impostazioni del server */\r\n debugData?: DebugData;\r\n operator?: EOperatore;\r\n mustChangePassword?: boolean;\r\n resetPasswordCode?: string | null;\r\n\r\n constructor(data?: IUserDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.ssoToken = _data[\"ssoToken\"] !== undefined ? _data[\"ssoToken\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n if (Array.isArray(_data[\"permessi\"])) {\r\n this.permessi = [] as any;\r\n for (let item of _data[\"permessi\"])\r\n this.permessi!.push(item);\r\n }\r\n else {\r\n this.permessi = null;\r\n }\r\n this.canBookFlights = _data[\"canBookFlights\"] !== undefined ? _data[\"canBookFlights\"] : null;\r\n this.canBook = _data[\"canBook\"] !== undefined ? _data[\"canBook\"] : null;\r\n this.opzioniUI = _data[\"opzioniUI\"] ? OpzioniUI.fromJS(_data[\"opzioniUI\"]) : null;\r\n this.agencyData = _data[\"agencyData\"] ? AgencyData.fromJS(_data[\"agencyData\"]) : null;\r\n this.debugData = _data[\"debugData\"] ? DebugData.fromJS(_data[\"debugData\"]) : null;\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n this.mustChangePassword = _data[\"mustChangePassword\"] !== undefined ? _data[\"mustChangePassword\"] : null;\r\n this.resetPasswordCode = _data[\"resetPasswordCode\"] !== undefined ? _data[\"resetPasswordCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"ssoToken\"] = this.ssoToken !== undefined ? this.ssoToken : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n if (Array.isArray(this.permessi)) {\r\n data[\"permessi\"] = [];\r\n for (let item of this.permessi)\r\n data[\"permessi\"].push(item);\r\n }\r\n data[\"canBookFlights\"] = this.canBookFlights !== undefined ? this.canBookFlights : null;\r\n data[\"canBook\"] = this.canBook !== undefined ? this.canBook : null;\r\n data[\"opzioniUI\"] = this.opzioniUI ? this.opzioniUI.toJSON() : null;\r\n data[\"agencyData\"] = this.agencyData ? this.agencyData.toJSON() : null;\r\n data[\"debugData\"] = this.debugData ? this.debugData.toJSON() : null;\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n data[\"mustChangePassword\"] = this.mustChangePassword !== undefined ? this.mustChangePassword : null;\r\n data[\"resetPasswordCode\"] = this.resetPasswordCode !== undefined ? this.resetPasswordCode : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati dell'utente */\r\nexport interface IUserDataResponse extends IOkApiResponse {\r\n /** ID in chiaro */\r\n id?: number;\r\n /** User email */\r\n email?: string | null;\r\n /** ID criptato per operazioni in SSO */\r\n ssoToken?: string;\r\n /** Nome */\r\n nome?: string | null;\r\n /** Cognome */\r\n cognome?: string | null;\r\n /** Tipo di utente */\r\n tipo?: ETipoUtente;\r\n /** Elenco complessivo dei suoi permessi */\r\n permessi?: string[];\r\n /** Can Book Flight -> diverso dai permessi!!! e su userinfo */\r\n canBookFlights?: boolean;\r\n /** Può prenotare? */\r\n canBook?: boolean;\r\n /** Opzioni del frontend */\r\n opzioniUI?: OpzioniUI;\r\n /** Dati dell'agenzia dell'utente, se ne ha una */\r\n agencyData?: AgencyData | null;\r\n /** Dati di debug con le impostazioni del server */\r\n debugData?: DebugData;\r\n operator?: EOperatore;\r\n mustChangePassword?: boolean;\r\n resetPasswordCode?: string | null;\r\n}\r\n\r\nexport enum ETipoUtente {\r\n Privato = \"Privato\",\r\n Agenzia = \"Agenzia\",\r\n Intranet = \"Intranet\",\r\n TestCertificazioni = \"TestCertificazioni\",\r\n}\r\n\r\n/** Classe con le opzioni di frontend dell'utene */\r\nexport class OpzioniUI implements IOpzioniUI {\r\n /** Nome del tema del sito (usato dal sito vecchio) */\r\n theme?: string | null;\r\n /** Nome del tema Nebular della intranet */\r\n intranetTheme?: string | null;\r\n /** Lingua preferita */\r\n lang?: string | null;\r\n presaVisionePrivacy?: string | null;\r\n\r\n constructor(data?: IOpzioniUI) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.theme = _data[\"theme\"] !== undefined ? _data[\"theme\"] : null;\r\n this.intranetTheme = _data[\"intranetTheme\"] !== undefined ? _data[\"intranetTheme\"] : null;\r\n this.lang = _data[\"lang\"] !== undefined ? _data[\"lang\"] : null;\r\n this.presaVisionePrivacy = _data[\"presaVisionePrivacy\"] !== undefined ? _data[\"presaVisionePrivacy\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OpzioniUI {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OpzioniUI();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"theme\"] = this.theme !== undefined ? this.theme : null;\r\n data[\"intranetTheme\"] = this.intranetTheme !== undefined ? this.intranetTheme : null;\r\n data[\"lang\"] = this.lang !== undefined ? this.lang : null;\r\n data[\"presaVisionePrivacy\"] = this.presaVisionePrivacy !== undefined ? this.presaVisionePrivacy : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe con le opzioni di frontend dell'utene */\r\nexport interface IOpzioniUI {\r\n /** Nome del tema del sito (usato dal sito vecchio) */\r\n theme?: string | null;\r\n /** Nome del tema Nebular della intranet */\r\n intranetTheme?: string | null;\r\n /** Lingua preferita */\r\n lang?: string | null;\r\n presaVisionePrivacy?: string | null;\r\n}\r\n\r\n/** Dati dell'agenzia dell'utente */\r\nexport class AgencyData implements IAgencyData {\r\n /** ID del contatto agenzia */\r\n agencyID?: number;\r\n /** Nome visualizzato del contatto */\r\n agencyName?: string;\r\n /** Url del logo dell'agenzia, se ce l'ha */\r\n agencyLogoUrl?: string | null;\r\n\r\n constructor(data?: IAgencyData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.agencyID = _data[\"agencyID\"] !== undefined ? _data[\"agencyID\"] : null;\r\n this.agencyName = _data[\"agencyName\"] !== undefined ? _data[\"agencyName\"] : null;\r\n this.agencyLogoUrl = _data[\"agencyLogoUrl\"] !== undefined ? _data[\"agencyLogoUrl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AgencyData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AgencyData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"agencyID\"] = this.agencyID !== undefined ? this.agencyID : null;\r\n data[\"agencyName\"] = this.agencyName !== undefined ? this.agencyName : null;\r\n data[\"agencyLogoUrl\"] = this.agencyLogoUrl !== undefined ? this.agencyLogoUrl : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati dell'agenzia dell'utente */\r\nexport interface IAgencyData {\r\n /** ID del contatto agenzia */\r\n agencyID?: number;\r\n /** Nome visualizzato del contatto */\r\n agencyName?: string;\r\n /** Url del logo dell'agenzia, se ce l'ha */\r\n agencyLogoUrl?: string | null;\r\n}\r\n\r\nexport class DebugData implements IDebugData {\r\n /** Se true il server è compilato in debug */\r\n isDebug?: boolean;\r\n /** IP/Nome del server del database Naar7 */\r\n naarDatabaseServer?: string | null;\r\n /** Nome del database Naar7 */\r\n naarDatabaseName?: string | null;\r\n /** IP/Nome del server del database NaarHH */\r\n hhDatabaseServer?: string | null;\r\n /** Nome del database NaarHH */\r\n hhDatabaseName?: string | null;\r\n /** IP/Nome del server del database NaarDocs */\r\n docsDatabaseServer?: string | null;\r\n /** Nome del database NaarDocs */\r\n docsDatabaseName?: string | null;\r\n /** Coda delle richieste al pricer */\r\n pricerQueueName?: string | null;\r\n /** Coda delle richiestea all'agent */\r\n agentQueueName?: string | null;\r\n\r\n constructor(data?: IDebugData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.isDebug = _data[\"isDebug\"] !== undefined ? _data[\"isDebug\"] : null;\r\n this.naarDatabaseServer = _data[\"naarDatabaseServer\"] !== undefined ? _data[\"naarDatabaseServer\"] : null;\r\n this.naarDatabaseName = _data[\"naarDatabaseName\"] !== undefined ? _data[\"naarDatabaseName\"] : null;\r\n this.hhDatabaseServer = _data[\"hhDatabaseServer\"] !== undefined ? _data[\"hhDatabaseServer\"] : null;\r\n this.hhDatabaseName = _data[\"hhDatabaseName\"] !== undefined ? _data[\"hhDatabaseName\"] : null;\r\n this.docsDatabaseServer = _data[\"docsDatabaseServer\"] !== undefined ? _data[\"docsDatabaseServer\"] : null;\r\n this.docsDatabaseName = _data[\"docsDatabaseName\"] !== undefined ? _data[\"docsDatabaseName\"] : null;\r\n this.pricerQueueName = _data[\"pricerQueueName\"] !== undefined ? _data[\"pricerQueueName\"] : null;\r\n this.agentQueueName = _data[\"agentQueueName\"] !== undefined ? _data[\"agentQueueName\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DebugData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DebugData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"isDebug\"] = this.isDebug !== undefined ? this.isDebug : null;\r\n data[\"naarDatabaseServer\"] = this.naarDatabaseServer !== undefined ? this.naarDatabaseServer : null;\r\n data[\"naarDatabaseName\"] = this.naarDatabaseName !== undefined ? this.naarDatabaseName : null;\r\n data[\"hhDatabaseServer\"] = this.hhDatabaseServer !== undefined ? this.hhDatabaseServer : null;\r\n data[\"hhDatabaseName\"] = this.hhDatabaseName !== undefined ? this.hhDatabaseName : null;\r\n data[\"docsDatabaseServer\"] = this.docsDatabaseServer !== undefined ? this.docsDatabaseServer : null;\r\n data[\"docsDatabaseName\"] = this.docsDatabaseName !== undefined ? this.docsDatabaseName : null;\r\n data[\"pricerQueueName\"] = this.pricerQueueName !== undefined ? this.pricerQueueName : null;\r\n data[\"agentQueueName\"] = this.agentQueueName !== undefined ? this.agentQueueName : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDebugData {\r\n /** Se true il server è compilato in debug */\r\n isDebug?: boolean;\r\n /** IP/Nome del server del database Naar7 */\r\n naarDatabaseServer?: string | null;\r\n /** Nome del database Naar7 */\r\n naarDatabaseName?: string | null;\r\n /** IP/Nome del server del database NaarHH */\r\n hhDatabaseServer?: string | null;\r\n /** Nome del database NaarHH */\r\n hhDatabaseName?: string | null;\r\n /** IP/Nome del server del database NaarDocs */\r\n docsDatabaseServer?: string | null;\r\n /** Nome del database NaarDocs */\r\n docsDatabaseName?: string | null;\r\n /** Coda delle richieste al pricer */\r\n pricerQueueName?: string | null;\r\n /** Coda delle richiestea all'agent */\r\n agentQueueName?: string | null;\r\n}\r\n\r\nexport class CheckCrossLoginResponse extends OkApiResponse implements ICheckCrossLoginResponse {\r\n /** Nome visualizzato dell'utente che ha chiesto il token e che dovrà autenticarsi */\r\n requestUserDiplayName?: string | null;\r\n /** Nome visualzzato dell'utente target */\r\n targetUserDisplayName?: string | null;\r\n\r\n constructor(data?: ICheckCrossLoginResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.requestUserDiplayName = _data[\"requestUserDiplayName\"] !== undefined ? _data[\"requestUserDiplayName\"] : null;\r\n this.targetUserDisplayName = _data[\"targetUserDisplayName\"] !== undefined ? _data[\"targetUserDisplayName\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckCrossLoginResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckCrossLoginResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"requestUserDiplayName\"] = this.requestUserDiplayName !== undefined ? this.requestUserDiplayName : null;\r\n data[\"targetUserDisplayName\"] = this.targetUserDisplayName !== undefined ? this.targetUserDisplayName : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckCrossLoginResponse extends IOkApiResponse {\r\n /** Nome visualizzato dell'utente che ha chiesto il token e che dovrà autenticarsi */\r\n requestUserDiplayName?: string | null;\r\n /** Nome visualzzato dell'utente target */\r\n targetUserDisplayName?: string | null;\r\n}\r\n\r\nexport class CheckCrossLoginRequest extends ApiRequest implements ICheckCrossLoginRequest {\r\n /** Codice univoco monouso da testare */\r\n codice?: string;\r\n\r\n constructor(data?: ICheckCrossLoginRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckCrossLoginRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckCrossLoginRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckCrossLoginRequest extends IApiRequest {\r\n /** Codice univoco monouso da testare */\r\n codice?: string;\r\n}\r\n\r\n/** Form di login */\r\nexport class LoginRequest extends ApiRequest implements ILoginRequest {\r\n /** Nome utente */\r\n username!: string;\r\n /** Password */\r\n password!: string;\r\n /** Eventuale codice di cross login per impersonare un altro utente */\r\n crossLoginCode?: string | null;\r\n\r\n constructor(data?: ILoginRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.username = _data[\"username\"] !== undefined ? _data[\"username\"] : null;\r\n this.password = _data[\"password\"] !== undefined ? _data[\"password\"] : null;\r\n this.crossLoginCode = _data[\"crossLoginCode\"] !== undefined ? _data[\"crossLoginCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LoginRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LoginRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"username\"] = this.username !== undefined ? this.username : null;\r\n data[\"password\"] = this.password !== undefined ? this.password : null;\r\n data[\"crossLoginCode\"] = this.crossLoginCode !== undefined ? this.crossLoginCode : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Form di login */\r\nexport interface ILoginRequest extends IApiRequest {\r\n /** Nome utente */\r\n username: string;\r\n /** Password */\r\n password: string;\r\n /** Eventuale codice di cross login per impersonare un altro utente */\r\n crossLoginCode?: string | null;\r\n}\r\n\r\nexport class LoginViaEmailRequest extends ApiRequest implements ILoginViaEmailRequest {\r\n /** Nome utente */\r\n username!: string;\r\n /** Codice per accesso temporaneo */\r\n emailLoginCode!: string;\r\n\r\n constructor(data?: ILoginViaEmailRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.username = _data[\"username\"] !== undefined ? _data[\"username\"] : null;\r\n this.emailLoginCode = _data[\"emailLoginCode\"] !== undefined ? _data[\"emailLoginCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LoginViaEmailRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LoginViaEmailRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"username\"] = this.username !== undefined ? this.username : null;\r\n data[\"emailLoginCode\"] = this.emailLoginCode !== undefined ? this.emailLoginCode : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILoginViaEmailRequest extends IApiRequest {\r\n /** Nome utente */\r\n username: string;\r\n /** Codice per accesso temporaneo */\r\n emailLoginCode: string;\r\n}\r\n\r\n/** Risposta al salvataggio delle opzioni utente */\r\nexport class SaveUserOptionsResponse extends OkApiResponse implements ISaveUserOptionsResponse {\r\n /** Oggetto utente aggiornato */\r\n user?: Utente;\r\n /** Opzioni utente aggiorntate */\r\n uiOptions?: any;\r\n\r\n constructor(data?: ISaveUserOptionsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.user = _data[\"user\"] ? Utente.fromJS(_data[\"user\"]) : null;\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SaveUserOptionsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SaveUserOptionsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"user\"] = this.user ? this.user.toJSON() : null;\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Risposta al salvataggio delle opzioni utente */\r\nexport interface ISaveUserOptionsResponse extends IOkApiResponse {\r\n /** Oggetto utente aggiornato */\r\n user?: Utente;\r\n /** Opzioni utente aggiorntate */\r\n uiOptions?: any;\r\n}\r\n\r\nexport class Utente implements IUtente {\r\n id?: number;\r\n contattoAgenziaID?: number | null;\r\n contattoUtenteID?: number | null;\r\n tipoUtente?: ETipoUtente | null;\r\n registrationDate?: string;\r\n email?: string | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n passwordInChiaro?: string | null;\r\n passwordCifrata?: string | null;\r\n abilitato?: boolean;\r\n deleted?: string | null;\r\n operatoreID?: number | null;\r\n operatore?: EOperatore | null;\r\n abilitazioneCrs?: number | null;\r\n telefono?: string | null;\r\n teamID?: string | null;\r\n npr?: boolean;\r\n uiOptions?: string | null;\r\n fuorisede?: boolean;\r\n emailFuorisede?: string | null;\r\n categoriaContattoID?: number | null;\r\n utentePadreID?: number | null;\r\n ultimoAccesso?: string | null;\r\n ultimoAggiornamentoPassword?: string | null;\r\n fastLoginEnabled?: boolean | null;\r\n fastLogingEnabledDate?: string | null;\r\n fastLoginTokenValidityDays?: number | null;\r\n fastLoginToken?: string | null;\r\n emailLoginEnabled?: boolean | null;\r\n\r\n constructor(data?: IUtente) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.contattoUtenteID = _data[\"contattoUtenteID\"] !== undefined ? _data[\"contattoUtenteID\"] : null;\r\n this.tipoUtente = _data[\"tipoUtente\"] !== undefined ? _data[\"tipoUtente\"] : null;\r\n this.registrationDate = _data[\"registrationDate\"] !== undefined ? _data[\"registrationDate\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.passwordInChiaro = _data[\"passwordInChiaro\"] !== undefined ? _data[\"passwordInChiaro\"] : null;\r\n this.passwordCifrata = _data[\"passwordCifrata\"] !== undefined ? _data[\"passwordCifrata\"] : null;\r\n this.abilitato = _data[\"abilitato\"] !== undefined ? _data[\"abilitato\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n this.operatoreID = _data[\"operatoreID\"] !== undefined ? _data[\"operatoreID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.abilitazioneCrs = _data[\"abilitazioneCrs\"] !== undefined ? _data[\"abilitazioneCrs\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.npr = _data[\"npr\"] !== undefined ? _data[\"npr\"] : null;\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n this.fuorisede = _data[\"fuorisede\"] !== undefined ? _data[\"fuorisede\"] : null;\r\n this.emailFuorisede = _data[\"emailFuorisede\"] !== undefined ? _data[\"emailFuorisede\"] : null;\r\n this.categoriaContattoID = _data[\"categoriaContattoID\"] !== undefined ? _data[\"categoriaContattoID\"] : null;\r\n this.utentePadreID = _data[\"utentePadreID\"] !== undefined ? _data[\"utentePadreID\"] : null;\r\n this.ultimoAccesso = _data[\"ultimoAccesso\"] !== undefined ? _data[\"ultimoAccesso\"] : null;\r\n this.ultimoAggiornamentoPassword = _data[\"ultimoAggiornamentoPassword\"] !== undefined ? _data[\"ultimoAggiornamentoPassword\"] : null;\r\n this.fastLoginEnabled = _data[\"fastLoginEnabled\"] !== undefined ? _data[\"fastLoginEnabled\"] : null;\r\n this.fastLogingEnabledDate = _data[\"fastLogingEnabledDate\"] !== undefined ? _data[\"fastLogingEnabledDate\"] : null;\r\n this.fastLoginTokenValidityDays = _data[\"fastLoginTokenValidityDays\"] !== undefined ? _data[\"fastLoginTokenValidityDays\"] : null;\r\n this.fastLoginToken = _data[\"fastLoginToken\"] !== undefined ? _data[\"fastLoginToken\"] : null;\r\n this.emailLoginEnabled = _data[\"emailLoginEnabled\"] !== undefined ? _data[\"emailLoginEnabled\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Utente {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Utente();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"contattoUtenteID\"] = this.contattoUtenteID !== undefined ? this.contattoUtenteID : null;\r\n data[\"tipoUtente\"] = this.tipoUtente !== undefined ? this.tipoUtente : null;\r\n data[\"registrationDate\"] = this.registrationDate !== undefined ? this.registrationDate : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"passwordInChiaro\"] = this.passwordInChiaro !== undefined ? this.passwordInChiaro : null;\r\n data[\"passwordCifrata\"] = this.passwordCifrata !== undefined ? this.passwordCifrata : null;\r\n data[\"abilitato\"] = this.abilitato !== undefined ? this.abilitato : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n data[\"operatoreID\"] = this.operatoreID !== undefined ? this.operatoreID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"abilitazioneCrs\"] = this.abilitazioneCrs !== undefined ? this.abilitazioneCrs : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"npr\"] = this.npr !== undefined ? this.npr : null;\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n data[\"fuorisede\"] = this.fuorisede !== undefined ? this.fuorisede : null;\r\n data[\"emailFuorisede\"] = this.emailFuorisede !== undefined ? this.emailFuorisede : null;\r\n data[\"categoriaContattoID\"] = this.categoriaContattoID !== undefined ? this.categoriaContattoID : null;\r\n data[\"utentePadreID\"] = this.utentePadreID !== undefined ? this.utentePadreID : null;\r\n data[\"ultimoAccesso\"] = this.ultimoAccesso !== undefined ? this.ultimoAccesso : null;\r\n data[\"ultimoAggiornamentoPassword\"] = this.ultimoAggiornamentoPassword !== undefined ? this.ultimoAggiornamentoPassword : null;\r\n data[\"fastLoginEnabled\"] = this.fastLoginEnabled !== undefined ? this.fastLoginEnabled : null;\r\n data[\"fastLogingEnabledDate\"] = this.fastLogingEnabledDate !== undefined ? this.fastLogingEnabledDate : null;\r\n data[\"fastLoginTokenValidityDays\"] = this.fastLoginTokenValidityDays !== undefined ? this.fastLoginTokenValidityDays : null;\r\n data[\"fastLoginToken\"] = this.fastLoginToken !== undefined ? this.fastLoginToken : null;\r\n data[\"emailLoginEnabled\"] = this.emailLoginEnabled !== undefined ? this.emailLoginEnabled : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUtente {\r\n id?: number;\r\n contattoAgenziaID?: number | null;\r\n contattoUtenteID?: number | null;\r\n tipoUtente?: ETipoUtente | null;\r\n registrationDate?: string;\r\n email?: string | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n passwordInChiaro?: string | null;\r\n passwordCifrata?: string | null;\r\n abilitato?: boolean;\r\n deleted?: string | null;\r\n operatoreID?: number | null;\r\n operatore?: EOperatore | null;\r\n abilitazioneCrs?: number | null;\r\n telefono?: string | null;\r\n teamID?: string | null;\r\n npr?: boolean;\r\n uiOptions?: string | null;\r\n fuorisede?: boolean;\r\n emailFuorisede?: string | null;\r\n categoriaContattoID?: number | null;\r\n utentePadreID?: number | null;\r\n ultimoAccesso?: string | null;\r\n ultimoAggiornamentoPassword?: string | null;\r\n fastLoginEnabled?: boolean | null;\r\n fastLogingEnabledDate?: string | null;\r\n fastLoginTokenValidityDays?: number | null;\r\n fastLoginToken?: string | null;\r\n emailLoginEnabled?: boolean | null;\r\n}\r\n\r\n/** Richiesta di salvataggio delle opzioni utente */\r\nexport class SaveUserOptionsRequest extends ApiRequest implements ISaveUserOptionsRequest {\r\n /** Dati dell'utente */\r\n user?: Utente;\r\n /** Opzioni di frontend */\r\n uiOptions?: any;\r\n\r\n constructor(data?: ISaveUserOptionsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.user = _data[\"user\"] ? Utente.fromJS(_data[\"user\"]) : null;\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SaveUserOptionsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SaveUserOptionsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"user\"] = this.user ? this.user.toJSON() : null;\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Richiesta di salvataggio delle opzioni utente */\r\nexport interface ISaveUserOptionsRequest extends IApiRequest {\r\n /** Dati dell'utente */\r\n user?: Utente;\r\n /** Opzioni di frontend */\r\n uiOptions?: any;\r\n}\r\n\r\nexport class SendLoginViaEmailResponse extends OkApiResponse implements ISendLoginViaEmailResponse {\r\n\r\n constructor(data?: ISendLoginViaEmailResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SendLoginViaEmailResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SendLoginViaEmailResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISendLoginViaEmailResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class SendLoginViaEmailRequest extends LocalizedRequest implements ISendLoginViaEmailRequest {\r\n emailAddress?: string | null;\r\n\r\n constructor(data?: ISendLoginViaEmailRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.emailAddress = _data[\"emailAddress\"] !== undefined ? _data[\"emailAddress\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SendLoginViaEmailRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SendLoginViaEmailRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"emailAddress\"] = this.emailAddress !== undefined ? this.emailAddress : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISendLoginViaEmailRequest extends ILocalizedRequest {\r\n emailAddress?: string | null;\r\n}\r\n\r\nexport class AutocompleteValueResponse extends OkApiResponse implements IAutocompleteValueResponse {\r\n value?: AutocompleteValue | null;\r\n\r\n constructor(data?: IAutocompleteValueResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.value = _data[\"value\"] ? AutocompleteValue.fromJS(_data[\"value\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutocompleteValueResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutocompleteValueResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"value\"] = this.value ? this.value.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutocompleteValueResponse extends IOkApiResponse {\r\n value?: AutocompleteValue | null;\r\n}\r\n\r\nexport class AutocompleteValue implements IAutocompleteValue {\r\n id?: string | null;\r\n label?: string | null;\r\n value?: string | null;\r\n qualifier?: string | null;\r\n extraInt?: number | null;\r\n extraString?: string | null;\r\n extraString2?: string | null;\r\n extraDecimal?: number | null;\r\n extraBool?: boolean;\r\n inactive?: boolean;\r\n deleted?: boolean;\r\n\r\n constructor(data?: IAutocompleteValue) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.value = _data[\"value\"] !== undefined ? _data[\"value\"] : null;\r\n this.qualifier = _data[\"qualifier\"] !== undefined ? _data[\"qualifier\"] : null;\r\n this.extraInt = _data[\"extraInt\"] !== undefined ? _data[\"extraInt\"] : null;\r\n this.extraString = _data[\"extraString\"] !== undefined ? _data[\"extraString\"] : null;\r\n this.extraString2 = _data[\"extraString2\"] !== undefined ? _data[\"extraString2\"] : null;\r\n this.extraDecimal = _data[\"extraDecimal\"] !== undefined ? _data[\"extraDecimal\"] : null;\r\n this.extraBool = _data[\"extraBool\"] !== undefined ? _data[\"extraBool\"] : null;\r\n this.inactive = _data[\"inactive\"] !== undefined ? _data[\"inactive\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutocompleteValue {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutocompleteValue();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"value\"] = this.value !== undefined ? this.value : null;\r\n data[\"qualifier\"] = this.qualifier !== undefined ? this.qualifier : null;\r\n data[\"extraInt\"] = this.extraInt !== undefined ? this.extraInt : null;\r\n data[\"extraString\"] = this.extraString !== undefined ? this.extraString : null;\r\n data[\"extraString2\"] = this.extraString2 !== undefined ? this.extraString2 : null;\r\n data[\"extraDecimal\"] = this.extraDecimal !== undefined ? this.extraDecimal : null;\r\n data[\"extraBool\"] = this.extraBool !== undefined ? this.extraBool : null;\r\n data[\"inactive\"] = this.inactive !== undefined ? this.inactive : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutocompleteValue {\r\n id?: string | null;\r\n label?: string | null;\r\n value?: string | null;\r\n qualifier?: string | null;\r\n extraInt?: number | null;\r\n extraString?: string | null;\r\n extraString2?: string | null;\r\n extraDecimal?: number | null;\r\n extraBool?: boolean;\r\n inactive?: boolean;\r\n deleted?: boolean;\r\n}\r\n\r\nexport class AutocompleteRequest extends SiteRequest implements IAutocompleteRequest {\r\n tableName?: string | null;\r\n term?: string | null;\r\n limit?: number | null;\r\n pageNr?: number | null;\r\n fieldName?: string | null;\r\n nameFormat?: string | null;\r\n foreingKeyValue?: string | null;\r\n id?: string | null;\r\n\r\n constructor(data?: IAutocompleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tableName = _data[\"tableName\"] !== undefined ? _data[\"tableName\"] : null;\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.limit = _data[\"limit\"] !== undefined ? _data[\"limit\"] : null;\r\n this.pageNr = _data[\"pageNr\"] !== undefined ? _data[\"pageNr\"] : null;\r\n this.fieldName = _data[\"fieldName\"] !== undefined ? _data[\"fieldName\"] : null;\r\n this.nameFormat = _data[\"nameFormat\"] !== undefined ? _data[\"nameFormat\"] : null;\r\n this.foreingKeyValue = _data[\"foreingKeyValue\"] !== undefined ? _data[\"foreingKeyValue\"] : null;\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutocompleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutocompleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tableName\"] = this.tableName !== undefined ? this.tableName : null;\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"limit\"] = this.limit !== undefined ? this.limit : null;\r\n data[\"pageNr\"] = this.pageNr !== undefined ? this.pageNr : null;\r\n data[\"fieldName\"] = this.fieldName !== undefined ? this.fieldName : null;\r\n data[\"nameFormat\"] = this.nameFormat !== undefined ? this.nameFormat : null;\r\n data[\"foreingKeyValue\"] = this.foreingKeyValue !== undefined ? this.foreingKeyValue : null;\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutocompleteRequest extends ISiteRequest {\r\n tableName?: string | null;\r\n term?: string | null;\r\n limit?: number | null;\r\n pageNr?: number | null;\r\n fieldName?: string | null;\r\n nameFormat?: string | null;\r\n foreingKeyValue?: string | null;\r\n id?: string | null;\r\n}\r\n\r\nexport class AutocompleteSearchResponse extends OkApiResponse implements IAutocompleteSearchResponse {\r\n values?: AutocompleteValue[] | null;\r\n hasMore?: boolean;\r\n\r\n constructor(data?: IAutocompleteSearchResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"values\"])) {\r\n this.values = [] as any;\r\n for (let item of _data[\"values\"])\r\n this.values!.push(AutocompleteValue.fromJS(item));\r\n }\r\n else {\r\n this.values = null;\r\n }\r\n this.hasMore = _data[\"hasMore\"] !== undefined ? _data[\"hasMore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutocompleteSearchResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutocompleteSearchResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.values)) {\r\n data[\"values\"] = [];\r\n for (let item of this.values)\r\n data[\"values\"].push(item.toJSON());\r\n }\r\n data[\"hasMore\"] = this.hasMore !== undefined ? this.hasMore : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutocompleteSearchResponse extends IOkApiResponse {\r\n values?: AutocompleteValue[] | null;\r\n hasMore?: boolean;\r\n}\r\n\r\nexport class GetB2cArticleResponse extends OkApiResponse implements IGetB2cArticleResponse {\r\n article?: B2cArticle | null;\r\n\r\n constructor(data?: IGetB2cArticleResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.article = _data[\"article\"] ? B2cArticle.fromJS(_data[\"article\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetB2cArticleResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetB2cArticleResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"article\"] = this.article ? this.article.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetB2cArticleResponse extends IOkApiResponse {\r\n article?: B2cArticle | null;\r\n}\r\n\r\nexport class B2cArticle implements IB2cArticle {\r\n articleId?: number;\r\n title?: string | null;\r\n text?: string | null;\r\n luogoId?: number;\r\n numberOfImages?: number;\r\n\r\n constructor(data?: IB2cArticle) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.articleId = _data[\"articleId\"] !== undefined ? _data[\"articleId\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n this.numberOfImages = _data[\"numberOfImages\"] !== undefined ? _data[\"numberOfImages\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): B2cArticle {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new B2cArticle();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articleId\"] = this.articleId !== undefined ? this.articleId : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n data[\"numberOfImages\"] = this.numberOfImages !== undefined ? this.numberOfImages : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IB2cArticle {\r\n articleId?: number;\r\n title?: string | null;\r\n text?: string | null;\r\n luogoId?: number;\r\n numberOfImages?: number;\r\n}\r\n\r\nexport class GetB2cArticleRequest extends SiteRequest implements IGetB2cArticleRequest {\r\n articleID?: number;\r\n parseToken?: boolean;\r\n\r\n constructor(data?: IGetB2cArticleRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articleID = _data[\"articleID\"] !== undefined ? _data[\"articleID\"] : null;\r\n this.parseToken = _data[\"parseToken\"] !== undefined ? _data[\"parseToken\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetB2cArticleRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetB2cArticleRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articleID\"] = this.articleID !== undefined ? this.articleID : null;\r\n data[\"parseToken\"] = this.parseToken !== undefined ? this.parseToken : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetB2cArticleRequest extends ISiteRequest {\r\n articleID?: number;\r\n parseToken?: boolean;\r\n}\r\n\r\nexport class NrTableResponseOfAgenciesListRow extends OkApiResponse implements INrTableResponseOfAgenciesListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AgenciesListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAgenciesListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AgenciesListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAgenciesListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAgenciesListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAgenciesListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AgenciesListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class AgenciesListRow implements IAgenciesListRow {\r\n contactID?: number;\r\n nome?: string | null;\r\n indirizzo?: string | null;\r\n cap?: string | null;\r\n telefono?: string | null;\r\n prov?: string | null;\r\n luogo?: string | null;\r\n\r\n constructor(data?: IAgenciesListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contactID = _data[\"contactID\"] !== undefined ? _data[\"contactID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.prov = _data[\"prov\"] !== undefined ? _data[\"prov\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AgenciesListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AgenciesListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contactID\"] = this.contactID !== undefined ? this.contactID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"prov\"] = this.prov !== undefined ? this.prov : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAgenciesListRow {\r\n contactID?: number;\r\n nome?: string | null;\r\n indirizzo?: string | null;\r\n cap?: string | null;\r\n telefono?: string | null;\r\n prov?: string | null;\r\n luogo?: string | null;\r\n}\r\n\r\nexport class AgenciesListRequest extends NrTableRequest implements IAgenciesListRequest {\r\n cap?: number | null;\r\n prov?: string | null;\r\n citta?: string | null;\r\n position?: string | null;\r\n raggio?: number | null;\r\n\r\n constructor(data?: IAgenciesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.prov = _data[\"prov\"] !== undefined ? _data[\"prov\"] : null;\r\n this.citta = _data[\"citta\"] !== undefined ? _data[\"citta\"] : null;\r\n this.position = _data[\"position\"] !== undefined ? _data[\"position\"] : null;\r\n this.raggio = _data[\"raggio\"] !== undefined ? _data[\"raggio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AgenciesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AgenciesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"prov\"] = this.prov !== undefined ? this.prov : null;\r\n data[\"citta\"] = this.citta !== undefined ? this.citta : null;\r\n data[\"position\"] = this.position !== undefined ? this.position : null;\r\n data[\"raggio\"] = this.raggio !== undefined ? this.raggio : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAgenciesListRequest extends INrTableRequest {\r\n cap?: number | null;\r\n prov?: string | null;\r\n citta?: string | null;\r\n position?: string | null;\r\n raggio?: number | null;\r\n}\r\n\r\nexport class GetDestinationResponse extends OkApiResponse implements IGetDestinationResponse {\r\n destination?: DestinationInfo | null;\r\n\r\n constructor(data?: IGetDestinationResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.destination = _data[\"destination\"] ? DestinationInfo.fromJS(_data[\"destination\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDestinationResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDestinationResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"destination\"] = this.destination ? this.destination.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDestinationResponse extends IOkApiResponse {\r\n destination?: DestinationInfo | null;\r\n}\r\n\r\n/** Intestazione di una destinazione; nome, Abstract (Descrizione), Immagine di copertina */\r\nexport class Destination implements IDestination {\r\n lingua?: ELingua;\r\n luogoID?: number;\r\n coverImageUrl?: string | null;\r\n nome?: string | null;\r\n nomeAbbreviato?: string | null;\r\n abstract?: string | null;\r\n gaColor?: string | null;\r\n gaBgColor?: string | null;\r\n gaIcon?: string | null;\r\n ordine?: number;\r\n\r\n constructor(data?: IDestination) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.coverImageUrl = _data[\"coverImageUrl\"] !== undefined ? _data[\"coverImageUrl\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeAbbreviato = _data[\"nomeAbbreviato\"] !== undefined ? _data[\"nomeAbbreviato\"] : null;\r\n this.abstract = _data[\"abstract\"] !== undefined ? _data[\"abstract\"] : null;\r\n this.gaColor = _data[\"gaColor\"] !== undefined ? _data[\"gaColor\"] : null;\r\n this.gaBgColor = _data[\"gaBgColor\"] !== undefined ? _data[\"gaBgColor\"] : null;\r\n this.gaIcon = _data[\"gaIcon\"] !== undefined ? _data[\"gaIcon\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Destination {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Destination();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"coverImageUrl\"] = this.coverImageUrl !== undefined ? this.coverImageUrl : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeAbbreviato\"] = this.nomeAbbreviato !== undefined ? this.nomeAbbreviato : null;\r\n data[\"abstract\"] = this.abstract !== undefined ? this.abstract : null;\r\n data[\"gaColor\"] = this.gaColor !== undefined ? this.gaColor : null;\r\n data[\"gaBgColor\"] = this.gaBgColor !== undefined ? this.gaBgColor : null;\r\n data[\"gaIcon\"] = this.gaIcon !== undefined ? this.gaIcon : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Intestazione di una destinazione; nome, Abstract (Descrizione), Immagine di copertina */\r\nexport interface IDestination {\r\n lingua?: ELingua;\r\n luogoID?: number;\r\n coverImageUrl?: string | null;\r\n nome?: string | null;\r\n nomeAbbreviato?: string | null;\r\n abstract?: string | null;\r\n gaColor?: string | null;\r\n gaBgColor?: string | null;\r\n gaIcon?: string | null;\r\n ordine?: number;\r\n}\r\n\r\n/** Versione completa di una Destinazione tutti i viaggi ad essa legati */\r\nexport class DestinationInfo extends Destination implements IDestinationInfo {\r\n elencoViaggi?: TripHead[] | null;\r\n elencoImmagini?: ImageSeed[] | null;\r\n\r\n constructor(data?: IDestinationInfo) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"elencoViaggi\"])) {\r\n this.elencoViaggi = [] as any;\r\n for (let item of _data[\"elencoViaggi\"])\r\n this.elencoViaggi!.push(TripHead.fromJS(item));\r\n }\r\n else {\r\n this.elencoViaggi = null;\r\n }\r\n if (Array.isArray(_data[\"elencoImmagini\"])) {\r\n this.elencoImmagini = [] as any;\r\n for (let item of _data[\"elencoImmagini\"])\r\n this.elencoImmagini!.push(ImageSeed.fromJS(item));\r\n }\r\n else {\r\n this.elencoImmagini = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DestinationInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DestinationInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.elencoViaggi)) {\r\n data[\"elencoViaggi\"] = [];\r\n for (let item of this.elencoViaggi)\r\n data[\"elencoViaggi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.elencoImmagini)) {\r\n data[\"elencoImmagini\"] = [];\r\n for (let item of this.elencoImmagini)\r\n data[\"elencoImmagini\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Versione completa di una Destinazione tutti i viaggi ad essa legati */\r\nexport interface IDestinationInfo extends IDestination {\r\n elencoViaggi?: TripHead[] | null;\r\n elencoImmagini?: ImageSeed[] | null;\r\n}\r\n\r\n/** È l'intestazione di un viaggio; Nome, Luogo, Descrizione sommaria (Abstract), immagine di copertina */\r\nexport class TripHead implements ITripHead {\r\n tripID?: number;\r\n nome?: string | null;\r\n luogo?: string | null;\r\n descr?: string | null;\r\n cover?: string | null;\r\n lingua?: ELingua;\r\n durata?: ServiceDuration | null;\r\n ideas?: number[] | null;\r\n destinations?: number[] | null;\r\n map?: TripMap | null;\r\n\r\n constructor(data?: ITripHead) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.descr = _data[\"descr\"] !== undefined ? _data[\"descr\"] : null;\r\n this.cover = _data[\"cover\"] !== undefined ? _data[\"cover\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.durata = _data[\"durata\"] ? ServiceDuration.fromJS(_data[\"durata\"]) : null;\r\n if (Array.isArray(_data[\"ideas\"])) {\r\n this.ideas = [] as any;\r\n for (let item of _data[\"ideas\"])\r\n this.ideas!.push(item);\r\n }\r\n else {\r\n this.ideas = null;\r\n }\r\n if (Array.isArray(_data[\"destinations\"])) {\r\n this.destinations = [] as any;\r\n for (let item of _data[\"destinations\"])\r\n this.destinations!.push(item);\r\n }\r\n else {\r\n this.destinations = null;\r\n }\r\n this.map = _data[\"map\"] ? TripMap.fromJS(_data[\"map\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripHead {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripHead();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"descr\"] = this.descr !== undefined ? this.descr : null;\r\n data[\"cover\"] = this.cover !== undefined ? this.cover : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"durata\"] = this.durata ? this.durata.toJSON() : null;\r\n if (Array.isArray(this.ideas)) {\r\n data[\"ideas\"] = [];\r\n for (let item of this.ideas)\r\n data[\"ideas\"].push(item);\r\n }\r\n if (Array.isArray(this.destinations)) {\r\n data[\"destinations\"] = [];\r\n for (let item of this.destinations)\r\n data[\"destinations\"].push(item);\r\n }\r\n data[\"map\"] = this.map ? this.map.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** È l'intestazione di un viaggio; Nome, Luogo, Descrizione sommaria (Abstract), immagine di copertina */\r\nexport interface ITripHead {\r\n tripID?: number;\r\n nome?: string | null;\r\n luogo?: string | null;\r\n descr?: string | null;\r\n cover?: string | null;\r\n lingua?: ELingua;\r\n durata?: ServiceDuration | null;\r\n ideas?: number[] | null;\r\n destinations?: number[] | null;\r\n map?: TripMap | null;\r\n}\r\n\r\nexport class ServiceDuration implements IServiceDuration {\r\n giorni?: number;\r\n notti?: number;\r\n\r\n constructor(data?: IServiceDuration) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceDuration {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceDuration();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceDuration {\r\n giorni?: number;\r\n notti?: number;\r\n}\r\n\r\nexport class TripMap implements ITripMap {\r\n lat?: number;\r\n long?: number;\r\n zoom?: number;\r\n\r\n constructor(data?: ITripMap) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lat = _data[\"lat\"] !== undefined ? _data[\"lat\"] : null;\r\n this.long = _data[\"long\"] !== undefined ? _data[\"long\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripMap {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripMap();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"long\"] = this.long !== undefined ? this.long : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripMap {\r\n lat?: number;\r\n long?: number;\r\n zoom?: number;\r\n}\r\n\r\nexport class ImageSeed implements IImageSeed {\r\n id?: number;\r\n url?: string;\r\n caption?: string;\r\n\r\n constructor(data?: IImageSeed) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.caption = _data[\"caption\"] !== undefined ? _data[\"caption\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImageSeed {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImageSeed();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"caption\"] = this.caption !== undefined ? this.caption : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImageSeed {\r\n id?: number;\r\n url?: string;\r\n caption?: string;\r\n}\r\n\r\nexport class GetDestinationRequest extends SiteRequest implements IGetDestinationRequest {\r\n destinationID?: number;\r\n\r\n constructor(data?: IGetDestinationRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.destinationID = _data[\"destinationID\"] !== undefined ? _data[\"destinationID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDestinationRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDestinationRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"destinationID\"] = this.destinationID !== undefined ? this.destinationID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDestinationRequest extends ISiteRequest {\r\n destinationID?: number;\r\n}\r\n\r\nexport class GetDestinationsResponse extends OkApiResponse implements IGetDestinationsResponse {\r\n destinazioni?: Destination[] | null;\r\n\r\n constructor(data?: IGetDestinationsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"destinazioni\"])) {\r\n this.destinazioni = [] as any;\r\n for (let item of _data[\"destinazioni\"])\r\n this.destinazioni!.push(Destination.fromJS(item));\r\n }\r\n else {\r\n this.destinazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDestinationsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDestinationsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.destinazioni)) {\r\n data[\"destinazioni\"] = [];\r\n for (let item of this.destinazioni)\r\n data[\"destinazioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDestinationsResponse extends IOkApiResponse {\r\n destinazioni?: Destination[] | null;\r\n}\r\n\r\nexport class GetOpenDestinationsResponse extends OkApiResponse implements IGetOpenDestinationsResponse {\r\n destinazioni?: OpenDestination[] | null;\r\n\r\n constructor(data?: IGetOpenDestinationsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"destinazioni\"])) {\r\n this.destinazioni = [] as any;\r\n for (let item of _data[\"destinazioni\"])\r\n this.destinazioni!.push(OpenDestination.fromJS(item));\r\n }\r\n else {\r\n this.destinazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetOpenDestinationsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetOpenDestinationsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.destinazioni)) {\r\n data[\"destinazioni\"] = [];\r\n for (let item of this.destinazioni)\r\n data[\"destinazioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetOpenDestinationsResponse extends IOkApiResponse {\r\n destinazioni?: OpenDestination[] | null;\r\n}\r\n\r\nexport class OpenDestination implements IOpenDestination {\r\n articles?: OpenDestinationArticle[] | null;\r\n destinazione?: Destination | null;\r\n order?: number;\r\n\r\n constructor(data?: IOpenDestination) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"articles\"])) {\r\n this.articles = [] as any;\r\n for (let item of _data[\"articles\"])\r\n this.articles!.push(OpenDestinationArticle.fromJS(item));\r\n }\r\n else {\r\n this.articles = null;\r\n }\r\n this.destinazione = _data[\"destinazione\"] ? Destination.fromJS(_data[\"destinazione\"]) : null;\r\n this.order = _data[\"order\"] !== undefined ? _data[\"order\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OpenDestination {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OpenDestination();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.articles)) {\r\n data[\"articles\"] = [];\r\n for (let item of this.articles)\r\n data[\"articles\"].push(item.toJSON());\r\n }\r\n data[\"destinazione\"] = this.destinazione ? this.destinazione.toJSON() : null;\r\n data[\"order\"] = this.order !== undefined ? this.order : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOpenDestination {\r\n articles?: OpenDestinationArticle[] | null;\r\n destinazione?: Destination | null;\r\n order?: number;\r\n}\r\n\r\nexport class OpenDestinationArticle implements IOpenDestinationArticle {\r\n id?: number;\r\n title?: string | null;\r\n text?: string | null;\r\n updateAt?: string | null;\r\n order?: number;\r\n allegati?: ArticoloAllegato[] | null;\r\n\r\n constructor(data?: IOpenDestinationArticle) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.updateAt = _data[\"updateAt\"] !== undefined ? _data[\"updateAt\"] : null;\r\n this.order = _data[\"order\"] !== undefined ? _data[\"order\"] : null;\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(ArticoloAllegato.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): OpenDestinationArticle {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OpenDestinationArticle();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"updateAt\"] = this.updateAt !== undefined ? this.updateAt : null;\r\n data[\"order\"] = this.order !== undefined ? this.order : null;\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOpenDestinationArticle {\r\n id?: number;\r\n title?: string | null;\r\n text?: string | null;\r\n updateAt?: string | null;\r\n order?: number;\r\n allegati?: ArticoloAllegato[] | null;\r\n}\r\n\r\nexport class GetIdeasResponse extends OkApiResponse implements IGetIdeasResponse {\r\n idee?: Idea[] | null;\r\n\r\n constructor(data?: IGetIdeasResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"idee\"])) {\r\n this.idee = [] as any;\r\n for (let item of _data[\"idee\"])\r\n this.idee!.push(Idea.fromJS(item));\r\n }\r\n else {\r\n this.idee = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetIdeasResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetIdeasResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.idee)) {\r\n data[\"idee\"] = [];\r\n for (let item of this.idee)\r\n data[\"idee\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetIdeasResponse extends IOkApiResponse {\r\n idee?: Idea[] | null;\r\n}\r\n\r\n/** Descrittore dell'Idea di viaggio */\r\nexport class Idea implements IIdea {\r\n ideaID?: number;\r\n nome?: string | null;\r\n gliphIdx?: number | null;\r\n gliphName?: string | null;\r\n gliphColor?: string | null;\r\n variabili?: number | null;\r\n luogoID?: number | null;\r\n coverImageUrl?: string | null;\r\n abstract?: string | null;\r\n ordine?: number;\r\n\r\n constructor(data?: IIdea) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.ideaID = _data[\"ideaID\"] !== undefined ? _data[\"ideaID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.gliphIdx = _data[\"gliphIdx\"] !== undefined ? _data[\"gliphIdx\"] : null;\r\n this.gliphName = _data[\"gliphName\"] !== undefined ? _data[\"gliphName\"] : null;\r\n this.gliphColor = _data[\"gliphColor\"] !== undefined ? _data[\"gliphColor\"] : null;\r\n this.variabili = _data[\"variabili\"] !== undefined ? _data[\"variabili\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.coverImageUrl = _data[\"coverImageUrl\"] !== undefined ? _data[\"coverImageUrl\"] : null;\r\n this.abstract = _data[\"abstract\"] !== undefined ? _data[\"abstract\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Idea {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Idea();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ideaID\"] = this.ideaID !== undefined ? this.ideaID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"gliphIdx\"] = this.gliphIdx !== undefined ? this.gliphIdx : null;\r\n data[\"gliphName\"] = this.gliphName !== undefined ? this.gliphName : null;\r\n data[\"gliphColor\"] = this.gliphColor !== undefined ? this.gliphColor : null;\r\n data[\"variabili\"] = this.variabili !== undefined ? this.variabili : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"coverImageUrl\"] = this.coverImageUrl !== undefined ? this.coverImageUrl : null;\r\n data[\"abstract\"] = this.abstract !== undefined ? this.abstract : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Descrittore dell'Idea di viaggio */\r\nexport interface IIdea {\r\n ideaID?: number;\r\n nome?: string | null;\r\n gliphIdx?: number | null;\r\n gliphName?: string | null;\r\n gliphColor?: string | null;\r\n variabili?: number | null;\r\n luogoID?: number | null;\r\n coverImageUrl?: string | null;\r\n abstract?: string | null;\r\n ordine?: number;\r\n}\r\n\r\nexport class GetIdeaResponse extends OkApiResponse implements IGetIdeaResponse {\r\n idea?: IdeaInfo | null;\r\n\r\n constructor(data?: IGetIdeaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.idea = _data[\"idea\"] ? IdeaInfo.fromJS(_data[\"idea\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetIdeaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetIdeaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"idea\"] = this.idea ? this.idea.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetIdeaResponse extends IOkApiResponse {\r\n idea?: IdeaInfo | null;\r\n}\r\n\r\n/** Estendo la classe integrando la lista dei viaggi e la lista dei testi */\r\nexport class IdeaInfo extends Idea implements IIdeaInfo {\r\n elencoViaggi?: TripHead[] | null;\r\n elencoTesti?: string[] | null;\r\n\r\n constructor(data?: IIdeaInfo) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"elencoViaggi\"])) {\r\n this.elencoViaggi = [] as any;\r\n for (let item of _data[\"elencoViaggi\"])\r\n this.elencoViaggi!.push(TripHead.fromJS(item));\r\n }\r\n else {\r\n this.elencoViaggi = null;\r\n }\r\n if (Array.isArray(_data[\"elencoTesti\"])) {\r\n this.elencoTesti = [] as any;\r\n for (let item of _data[\"elencoTesti\"])\r\n this.elencoTesti!.push(item);\r\n }\r\n else {\r\n this.elencoTesti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): IdeaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IdeaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.elencoViaggi)) {\r\n data[\"elencoViaggi\"] = [];\r\n for (let item of this.elencoViaggi)\r\n data[\"elencoViaggi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.elencoTesti)) {\r\n data[\"elencoTesti\"] = [];\r\n for (let item of this.elencoTesti)\r\n data[\"elencoTesti\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Estendo la classe integrando la lista dei viaggi e la lista dei testi */\r\nexport interface IIdeaInfo extends IIdea {\r\n elencoViaggi?: TripHead[] | null;\r\n elencoTesti?: string[] | null;\r\n}\r\n\r\nexport class GetIdeaRequest extends SiteRequest implements IGetIdeaRequest {\r\n ideaID?: number;\r\n\r\n constructor(data?: IGetIdeaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ideaID = _data[\"ideaID\"] !== undefined ? _data[\"ideaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetIdeaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetIdeaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ideaID\"] = this.ideaID !== undefined ? this.ideaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetIdeaRequest extends ISiteRequest {\r\n ideaID?: number;\r\n}\r\n\r\nexport class GetB2cImageUrlResponse extends OkApiResponse implements IGetB2cImageUrlResponse {\r\n image?: string | null;\r\n\r\n constructor(data?: IGetB2cImageUrlResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.image = _data[\"image\"] !== undefined ? _data[\"image\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetB2cImageUrlResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetB2cImageUrlResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"image\"] = this.image !== undefined ? this.image : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetB2cImageUrlResponse extends IOkApiResponse {\r\n image?: string | null;\r\n}\r\n\r\nexport class GetB2cImageUrlRequest extends SiteRequest implements IGetB2cImageUrlRequest {\r\n imageID?: number;\r\n\r\n constructor(data?: IGetB2cImageUrlRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.imageID = _data[\"imageID\"] !== undefined ? _data[\"imageID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetB2cImageUrlRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetB2cImageUrlRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"imageID\"] = this.imageID !== undefined ? this.imageID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetB2cImageUrlRequest extends ISiteRequest {\r\n imageID?: number;\r\n}\r\n\r\nexport class GetMenuDataResponse extends OkApiResponse implements IGetMenuDataResponse {\r\n menuData?: MenuData[] | null;\r\n\r\n constructor(data?: IGetMenuDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"menuData\"])) {\r\n this.menuData = [] as any;\r\n for (let item of _data[\"menuData\"])\r\n this.menuData!.push(MenuData.fromJS(item));\r\n }\r\n else {\r\n this.menuData = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetMenuDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetMenuDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.menuData)) {\r\n data[\"menuData\"] = [];\r\n for (let item of this.menuData)\r\n data[\"menuData\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetMenuDataResponse extends IOkApiResponse {\r\n menuData?: MenuData[] | null;\r\n}\r\n\r\nexport class MenuData implements IMenuData {\r\n nome?: string | null;\r\n idPagelink?: number;\r\n url?: string | null;\r\n icon?: string | null;\r\n idLuogo?: number;\r\n\r\n constructor(data?: IMenuData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.idPagelink = _data[\"idPagelink\"] !== undefined ? _data[\"idPagelink\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.icon = _data[\"icon\"] !== undefined ? _data[\"icon\"] : null;\r\n this.idLuogo = _data[\"idLuogo\"] !== undefined ? _data[\"idLuogo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MenuData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MenuData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"idPagelink\"] = this.idPagelink !== undefined ? this.idPagelink : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"icon\"] = this.icon !== undefined ? this.icon : null;\r\n data[\"idLuogo\"] = this.idLuogo !== undefined ? this.idLuogo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMenuData {\r\n nome?: string | null;\r\n idPagelink?: number;\r\n url?: string | null;\r\n icon?: string | null;\r\n idLuogo?: number;\r\n}\r\n\r\nexport class GetPageDataResponse extends OkApiResponse implements IGetPageDataResponse {\r\n pageData?: PageData | null;\r\n\r\n constructor(data?: IGetPageDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pageData = _data[\"pageData\"] ? PageData.fromJS(_data[\"pageData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPageDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPageDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pageData\"] = this.pageData ? this.pageData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPageDataResponse extends IOkApiResponse {\r\n pageData?: PageData | null;\r\n}\r\n\r\n/** Acquisizione dei testi relativi ad una pagina */\r\nexport class PageData implements IPageData {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoLink;\r\n elencoDati?: PageDataGeneric[] | null;\r\n\r\n constructor(data?: IPageData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n if (Array.isArray(_data[\"elencoDati\"])) {\r\n this.elencoDati = [] as any;\r\n for (let item of _data[\"elencoDati\"])\r\n this.elencoDati!.push(PageDataGeneric.fromJS(item));\r\n }\r\n else {\r\n this.elencoDati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n if (Array.isArray(this.elencoDati)) {\r\n data[\"elencoDati\"] = [];\r\n for (let item of this.elencoDati)\r\n data[\"elencoDati\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\n/** Acquisizione dei testi relativi ad una pagina */\r\nexport interface IPageData {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoLink;\r\n elencoDati?: PageDataGeneric[] | null;\r\n}\r\n\r\nexport enum ETipoLink {\r\n Url = \"Url\",\r\n RouterLink = \"RouterLink\",\r\n Contenitore = \"Contenitore\",\r\n}\r\n\r\nexport class PageDataGeneric implements IPageDataGeneric {\r\n id?: number;\r\n entityId?: number;\r\n entityType?: ETipoEntita;\r\n name?: string | null;\r\n content?: string | null;\r\n group?: number;\r\n order?: number;\r\n style?: number;\r\n\r\n constructor(data?: IPageDataGeneric) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.entityId = _data[\"entityId\"] !== undefined ? _data[\"entityId\"] : null;\r\n this.entityType = _data[\"entityType\"] !== undefined ? _data[\"entityType\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.content = _data[\"content\"] !== undefined ? _data[\"content\"] : null;\r\n this.group = _data[\"group\"] !== undefined ? _data[\"group\"] : null;\r\n this.order = _data[\"order\"] !== undefined ? _data[\"order\"] : null;\r\n this.style = _data[\"style\"] !== undefined ? _data[\"style\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageDataGeneric {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageDataGeneric();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"entityId\"] = this.entityId !== undefined ? this.entityId : null;\r\n data[\"entityType\"] = this.entityType !== undefined ? this.entityType : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"content\"] = this.content !== undefined ? this.content : null;\r\n data[\"group\"] = this.group !== undefined ? this.group : null;\r\n data[\"order\"] = this.order !== undefined ? this.order : null;\r\n data[\"style\"] = this.style !== undefined ? this.style : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageDataGeneric {\r\n id?: number;\r\n entityId?: number;\r\n entityType?: ETipoEntita;\r\n name?: string | null;\r\n content?: string | null;\r\n group?: number;\r\n order?: number;\r\n style?: number;\r\n}\r\n\r\nexport enum ETipoEntita {\r\n Articolo = \"Articolo\",\r\n}\r\n\r\nexport class GetPageDataRequest extends SiteRequest implements IGetPageDataRequest {\r\n pageDataID?: number;\r\n\r\n constructor(data?: IGetPageDataRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pageDataID = _data[\"pageDataID\"] !== undefined ? _data[\"pageDataID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPageDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPageDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pageDataID\"] = this.pageDataID !== undefined ? this.pageDataID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPageDataRequest extends ISiteRequest {\r\n pageDataID?: number;\r\n}\r\n\r\nexport class GetPageFooterResponse extends OkApiResponse implements IGetPageFooterResponse {\r\n footerData?: PageData | null;\r\n contactInfo?: PageContact | null;\r\n\r\n constructor(data?: IGetPageFooterResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.footerData = _data[\"footerData\"] ? PageData.fromJS(_data[\"footerData\"]) : null;\r\n this.contactInfo = _data[\"contactInfo\"] ? PageContact.fromJS(_data[\"contactInfo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPageFooterResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPageFooterResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"footerData\"] = this.footerData ? this.footerData.toJSON() : null;\r\n data[\"contactInfo\"] = this.contactInfo ? this.contactInfo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPageFooterResponse extends IOkApiResponse {\r\n footerData?: PageData | null;\r\n contactInfo?: PageContact | null;\r\n}\r\n\r\nexport class Contatto implements IContatto {\r\n contattoID?: number;\r\n contattoTipo?: ETipoContatto;\r\n luogoID?: number | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n indirizzo?: string | null;\r\n civico?: string | null;\r\n cap?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n note?: string | null;\r\n noFee?: boolean;\r\n categoriaContattoID?: number | null;\r\n titolo?: ETitolo;\r\n mansioneID?: number | null;\r\n abilitatoBookingVoli?: boolean;\r\n markupAdv?: number | null;\r\n indirizzoFatturazione?: string | null;\r\n luogoFatturazioneID?: number | null;\r\n capFatturazione?: string | null;\r\n civicoFatturazione?: string | null;\r\n eliminato?: boolean;\r\n lingua?: number | null;\r\n\r\n constructor(data?: IContatto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.contattoTipo = _data[\"contattoTipo\"] !== undefined ? _data[\"contattoTipo\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.civico = _data[\"civico\"] !== undefined ? _data[\"civico\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.noFee = _data[\"noFee\"] !== undefined ? _data[\"noFee\"] : null;\r\n this.categoriaContattoID = _data[\"categoriaContattoID\"] !== undefined ? _data[\"categoriaContattoID\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.mansioneID = _data[\"mansioneID\"] !== undefined ? _data[\"mansioneID\"] : null;\r\n this.abilitatoBookingVoli = _data[\"abilitatoBookingVoli\"] !== undefined ? _data[\"abilitatoBookingVoli\"] : null;\r\n this.markupAdv = _data[\"markupAdv\"] !== undefined ? _data[\"markupAdv\"] : null;\r\n this.indirizzoFatturazione = _data[\"indirizzoFatturazione\"] !== undefined ? _data[\"indirizzoFatturazione\"] : null;\r\n this.luogoFatturazioneID = _data[\"luogoFatturazioneID\"] !== undefined ? _data[\"luogoFatturazioneID\"] : null;\r\n this.capFatturazione = _data[\"capFatturazione\"] !== undefined ? _data[\"capFatturazione\"] : null;\r\n this.civicoFatturazione = _data[\"civicoFatturazione\"] !== undefined ? _data[\"civicoFatturazione\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Contatto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Contatto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"contattoTipo\"] = this.contattoTipo !== undefined ? this.contattoTipo : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"civico\"] = this.civico !== undefined ? this.civico : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"noFee\"] = this.noFee !== undefined ? this.noFee : null;\r\n data[\"categoriaContattoID\"] = this.categoriaContattoID !== undefined ? this.categoriaContattoID : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"mansioneID\"] = this.mansioneID !== undefined ? this.mansioneID : null;\r\n data[\"abilitatoBookingVoli\"] = this.abilitatoBookingVoli !== undefined ? this.abilitatoBookingVoli : null;\r\n data[\"markupAdv\"] = this.markupAdv !== undefined ? this.markupAdv : null;\r\n data[\"indirizzoFatturazione\"] = this.indirizzoFatturazione !== undefined ? this.indirizzoFatturazione : null;\r\n data[\"luogoFatturazioneID\"] = this.luogoFatturazioneID !== undefined ? this.luogoFatturazioneID : null;\r\n data[\"capFatturazione\"] = this.capFatturazione !== undefined ? this.capFatturazione : null;\r\n data[\"civicoFatturazione\"] = this.civicoFatturazione !== undefined ? this.civicoFatturazione : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContatto {\r\n contattoID?: number;\r\n contattoTipo?: ETipoContatto;\r\n luogoID?: number | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n indirizzo?: string | null;\r\n civico?: string | null;\r\n cap?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n note?: string | null;\r\n noFee?: boolean;\r\n categoriaContattoID?: number | null;\r\n titolo?: ETitolo;\r\n mansioneID?: number | null;\r\n abilitatoBookingVoli?: boolean;\r\n markupAdv?: number | null;\r\n indirizzoFatturazione?: string | null;\r\n luogoFatturazioneID?: number | null;\r\n capFatturazione?: string | null;\r\n civicoFatturazione?: string | null;\r\n eliminato?: boolean;\r\n lingua?: number | null;\r\n}\r\n\r\nexport class PageContact extends Contatto implements IPageContact {\r\n citta?: string | null;\r\n paese?: string | null;\r\n\r\n constructor(data?: IPageContact) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.citta = _data[\"citta\"] !== undefined ? _data[\"citta\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageContact {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageContact();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"citta\"] = this.citta !== undefined ? this.citta : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageContact extends IContatto {\r\n citta?: string | null;\r\n paese?: string | null;\r\n}\r\n\r\nexport enum ETipoContatto {\r\n Fornitore = \"Fornitore\",\r\n Addetto = \"Addetto\",\r\n Agenzia = \"Agenzia\",\r\n UfficioFornitore = \"UfficioFornitore\",\r\n Produttore = \"Produttore\",\r\n TourOperator = \"TourOperator\",\r\n GruppiAgenzie = \"GruppiAgenzie\",\r\n ContrattiAgenti = \"ContrattiAgenti\",\r\n Hotel = \"Hotel\",\r\n Corrieri = \"Corrieri\",\r\n CompagnieAeree = \"CompagnieAeree\",\r\n FornitoreIndiretto = \"FornitoreIndiretto\",\r\n Giornali = \"Giornali\",\r\n ClienteDiretto = \"ClienteDiretto\",\r\n Appartamenti = \"Appartamenti\",\r\n AgenzieChiuse = \"AgenzieChiuse\",\r\n SottogruppiAgenzie = \"SottogruppiAgenzie\",\r\n FornitoreContabilita = \"FornitoreContabilita\",\r\n PuntoPickup = \"PuntoPickup\",\r\n ClienteContabilita = \"ClienteContabilita\",\r\n}\r\n\r\nexport enum ETitolo {\r\n Signor = \"Signor\",\r\n Signora = \"Signora\",\r\n Bambina = \"Bambina\",\r\n Bambino = \"Bambino\",\r\n Dottor = \"Dottor\",\r\n Dottssa = \"Dottssa\",\r\n Sconosciuto = \"Sconosciuto\",\r\n Srl = \"Srl\",\r\n SpA = \"SpA\",\r\n Sas = \"Sas\",\r\n Snc = \"Snc\",\r\n}\r\n\r\nexport class GetPageFooterRequest extends SiteRequest implements IGetPageFooterRequest {\r\n pageDataID?: number;\r\n\r\n constructor(data?: IGetPageFooterRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pageDataID = _data[\"pageDataID\"] !== undefined ? _data[\"pageDataID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPageFooterRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPageFooterRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pageDataID\"] = this.pageDataID !== undefined ? this.pageDataID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPageFooterRequest extends ISiteRequest {\r\n pageDataID?: number;\r\n}\r\n\r\nexport class GetPagesResponse extends OkApiResponse implements IGetPagesResponse {\r\n pages?: PageLinkDetails[];\r\n footer?: PageLinkDetails | null;\r\n secondMenu?: PageLinkDetails[] | null;\r\n\r\n constructor(data?: IGetPagesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"pages\"])) {\r\n this.pages = [] as any;\r\n for (let item of _data[\"pages\"])\r\n this.pages!.push(PageLinkDetails.fromJS(item));\r\n }\r\n else {\r\n this.pages = null;\r\n }\r\n this.footer = _data[\"footer\"] ? PageLinkDetails.fromJS(_data[\"footer\"]) : null;\r\n if (Array.isArray(_data[\"secondMenu\"])) {\r\n this.secondMenu = [] as any;\r\n for (let item of _data[\"secondMenu\"])\r\n this.secondMenu!.push(PageLinkDetails.fromJS(item));\r\n }\r\n else {\r\n this.secondMenu = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPagesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPagesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.pages)) {\r\n data[\"pages\"] = [];\r\n for (let item of this.pages)\r\n data[\"pages\"].push(item.toJSON());\r\n }\r\n data[\"footer\"] = this.footer ? this.footer.toJSON() : null;\r\n if (Array.isArray(this.secondMenu)) {\r\n data[\"secondMenu\"] = [];\r\n for (let item of this.secondMenu)\r\n data[\"secondMenu\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPagesResponse extends IOkApiResponse {\r\n pages?: PageLinkDetails[];\r\n footer?: PageLinkDetails | null;\r\n secondMenu?: PageLinkDetails[] | null;\r\n}\r\n\r\nexport class PageLink implements IPageLink {\r\n id?: number;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n ordine?: number;\r\n operatore?: EOperatore | null;\r\n tipo?: ETipoLink;\r\n posizione?: EPosizioneLink;\r\n memo?: string | null;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n url?: string | null;\r\n nome!: string;\r\n nome_fr?: string | null;\r\n nome_en?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n faIcon?: string | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IPageLink) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.posizione = _data[\"posizione\"] !== undefined ? _data[\"posizione\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.pubblicaDal = _data[\"pubblicaDal\"] !== undefined ? _data[\"pubblicaDal\"] : null;\r\n this.pubblicaAl = _data[\"pubblicaAl\"] !== undefined ? _data[\"pubblicaAl\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.faIcon = _data[\"faIcon\"] !== undefined ? _data[\"faIcon\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLink {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLink();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"posizione\"] = this.posizione !== undefined ? this.posizione : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"pubblicaDal\"] = this.pubblicaDal !== undefined ? this.pubblicaDal : null;\r\n data[\"pubblicaAl\"] = this.pubblicaAl !== undefined ? this.pubblicaAl : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"faIcon\"] = this.faIcon !== undefined ? this.faIcon : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLink {\r\n id?: number;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n ordine?: number;\r\n operatore?: EOperatore | null;\r\n tipo?: ETipoLink;\r\n posizione?: EPosizioneLink;\r\n memo?: string | null;\r\n pubblicaDal?: string | null;\r\n pubblicaAl?: string | null;\r\n url?: string | null;\r\n nome: string;\r\n nome_fr?: string | null;\r\n nome_en?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n faIcon?: string | null;\r\n deleted?: string | null;\r\n}\r\n\r\nexport class PageLinkDetails extends PageLink implements IPageLinkDetails {\r\n contents?: PageLinkContent[] | null;\r\n\r\n constructor(data?: IPageLinkDetails) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"contents\"])) {\r\n this.contents = [] as any;\r\n for (let item of _data[\"contents\"])\r\n this.contents!.push(PageLinkContent.fromJS(item));\r\n }\r\n else {\r\n this.contents = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkDetails {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkDetails();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.contents)) {\r\n data[\"contents\"] = [];\r\n for (let item of this.contents)\r\n data[\"contents\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkDetails extends IPageLink {\r\n contents?: PageLinkContent[] | null;\r\n}\r\n\r\nexport class PageLinkContent implements IPageLinkContent {\r\n id?: number;\r\n pageLinkID?: number;\r\n entityType?: ETipoEntita;\r\n entityID?: number;\r\n sortOrder?: number;\r\n faIcon?: string | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IPageLinkContent) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.pageLinkID = _data[\"pageLinkID\"] !== undefined ? _data[\"pageLinkID\"] : null;\r\n this.entityType = _data[\"entityType\"] !== undefined ? _data[\"entityType\"] : null;\r\n this.entityID = _data[\"entityID\"] !== undefined ? _data[\"entityID\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n this.faIcon = _data[\"faIcon\"] !== undefined ? _data[\"faIcon\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkContent {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkContent();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"pageLinkID\"] = this.pageLinkID !== undefined ? this.pageLinkID : null;\r\n data[\"entityType\"] = this.entityType !== undefined ? this.entityType : null;\r\n data[\"entityID\"] = this.entityID !== undefined ? this.entityID : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n data[\"faIcon\"] = this.faIcon !== undefined ? this.faIcon : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkContent {\r\n id?: number;\r\n pageLinkID?: number;\r\n entityType?: ETipoEntita;\r\n entityID?: number;\r\n sortOrder?: number;\r\n faIcon?: string | null;\r\n deleted?: string | null;\r\n}\r\n\r\nexport class GetPagesRequest extends LocalizedRequest implements IGetPagesRequest {\r\n operator!: EOperatore;\r\n\r\n constructor(data?: IGetPagesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPagesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPagesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPagesRequest extends ILocalizedRequest {\r\n operator: EOperatore;\r\n}\r\n\r\nexport class GetTripResponse extends OkApiResponse implements IGetTripResponse {\r\n trip?: TripInfo | null;\r\n\r\n constructor(data?: IGetTripResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.trip = _data[\"trip\"] ? TripInfo.fromJS(_data[\"trip\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"trip\"] = this.trip ? this.trip.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripResponse extends IOkApiResponse {\r\n trip?: TripInfo | null;\r\n}\r\n\r\n/** Versione completa di un viaggio Articoli, Immagini, Partenze e Itinerario */\r\nexport class TripInfo extends TripHead implements ITripInfo {\r\n articoli?: TripArticle[] | null;\r\n articoliTraducibili?: TripArticle[] | null;\r\n immagini?: TripImage[] | null;\r\n partenze?: TripDeparture[] | null;\r\n itinerario?: TripItinerary | null;\r\n tipoServizio?: ETipoServizio;\r\n popolarita?: number | null;\r\n attributi?: ServiceAttribute[] | null;\r\n allegati?: TripAttachment[] | null;\r\n\r\n constructor(data?: ITripInfo) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"articoli\"])) {\r\n this.articoli = [] as any;\r\n for (let item of _data[\"articoli\"])\r\n this.articoli!.push(TripArticle.fromJS(item));\r\n }\r\n else {\r\n this.articoli = null;\r\n }\r\n if (Array.isArray(_data[\"articoliTraducibili\"])) {\r\n this.articoliTraducibili = [] as any;\r\n for (let item of _data[\"articoliTraducibili\"])\r\n this.articoliTraducibili!.push(TripArticle.fromJS(item));\r\n }\r\n else {\r\n this.articoliTraducibili = null;\r\n }\r\n if (Array.isArray(_data[\"immagini\"])) {\r\n this.immagini = [] as any;\r\n for (let item of _data[\"immagini\"])\r\n this.immagini!.push(TripImage.fromJS(item));\r\n }\r\n else {\r\n this.immagini = null;\r\n }\r\n if (Array.isArray(_data[\"partenze\"])) {\r\n this.partenze = [] as any;\r\n for (let item of _data[\"partenze\"])\r\n this.partenze!.push(TripDeparture.fromJS(item));\r\n }\r\n else {\r\n this.partenze = null;\r\n }\r\n this.itinerario = _data[\"itinerario\"] ? TripItinerary.fromJS(_data[\"itinerario\"]) : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.popolarita = _data[\"popolarita\"] !== undefined ? _data[\"popolarita\"] : null;\r\n if (Array.isArray(_data[\"attributi\"])) {\r\n this.attributi = [] as any;\r\n for (let item of _data[\"attributi\"])\r\n this.attributi!.push(ServiceAttribute.fromJS(item));\r\n }\r\n else {\r\n this.attributi = null;\r\n }\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(TripAttachment.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.articoli)) {\r\n data[\"articoli\"] = [];\r\n for (let item of this.articoli)\r\n data[\"articoli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.articoliTraducibili)) {\r\n data[\"articoliTraducibili\"] = [];\r\n for (let item of this.articoliTraducibili)\r\n data[\"articoliTraducibili\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.immagini)) {\r\n data[\"immagini\"] = [];\r\n for (let item of this.immagini)\r\n data[\"immagini\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.partenze)) {\r\n data[\"partenze\"] = [];\r\n for (let item of this.partenze)\r\n data[\"partenze\"].push(item.toJSON());\r\n }\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"popolarita\"] = this.popolarita !== undefined ? this.popolarita : null;\r\n if (Array.isArray(this.attributi)) {\r\n data[\"attributi\"] = [];\r\n for (let item of this.attributi)\r\n data[\"attributi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Versione completa di un viaggio Articoli, Immagini, Partenze e Itinerario */\r\nexport interface ITripInfo extends ITripHead {\r\n articoli?: TripArticle[] | null;\r\n articoliTraducibili?: TripArticle[] | null;\r\n immagini?: TripImage[] | null;\r\n partenze?: TripDeparture[] | null;\r\n itinerario?: TripItinerary | null;\r\n tipoServizio?: ETipoServizio;\r\n popolarita?: number | null;\r\n attributi?: ServiceAttribute[] | null;\r\n allegati?: TripAttachment[] | null;\r\n}\r\n\r\nexport class TripArticle implements ITripArticle {\r\n titolo?: string | null;\r\n testo?: string | null;\r\n\r\n constructor(data?: ITripArticle) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripArticle {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripArticle();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripArticle {\r\n titolo?: string | null;\r\n testo?: string | null;\r\n}\r\n\r\nexport class TripImage implements ITripImage {\r\n titolo?: string | null;\r\n url?: string | null;\r\n\r\n constructor(data?: ITripImage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripImage {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripImage();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripImage {\r\n titolo?: string | null;\r\n url?: string | null;\r\n}\r\n\r\nexport class TripDeparture implements ITripDeparture {\r\n dataFirst?: string;\r\n anno?: number;\r\n parts?: TripDeparturePart[] | null;\r\n\r\n constructor(data?: ITripDeparture) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dataFirst = _data[\"dataFirst\"] !== undefined ? _data[\"dataFirst\"] : null;\r\n this.anno = _data[\"anno\"] !== undefined ? _data[\"anno\"] : null;\r\n if (Array.isArray(_data[\"parts\"])) {\r\n this.parts = [] as any;\r\n for (let item of _data[\"parts\"])\r\n this.parts!.push(TripDeparturePart.fromJS(item));\r\n }\r\n else {\r\n this.parts = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripDeparture {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripDeparture();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dataFirst\"] = this.dataFirst !== undefined ? this.dataFirst : null;\r\n data[\"anno\"] = this.anno !== undefined ? this.anno : null;\r\n if (Array.isArray(this.parts)) {\r\n data[\"parts\"] = [];\r\n for (let item of this.parts)\r\n data[\"parts\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripDeparture {\r\n dataFirst?: string;\r\n anno?: number;\r\n parts?: TripDeparturePart[] | null;\r\n}\r\n\r\nexport class TripDeparturePart implements ITripDeparturePart {\r\n mese?: number;\r\n giorni?: number[] | null;\r\n\r\n constructor(data?: ITripDeparturePart) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.mese = _data[\"mese\"] !== undefined ? _data[\"mese\"] : null;\r\n if (Array.isArray(_data[\"giorni\"])) {\r\n this.giorni = [] as any;\r\n for (let item of _data[\"giorni\"])\r\n this.giorni!.push(item);\r\n }\r\n else {\r\n this.giorni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripDeparturePart {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripDeparturePart();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"mese\"] = this.mese !== undefined ? this.mese : null;\r\n if (Array.isArray(this.giorni)) {\r\n data[\"giorni\"] = [];\r\n for (let item of this.giorni)\r\n data[\"giorni\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripDeparturePart {\r\n mese?: number;\r\n giorni?: number[] | null;\r\n}\r\n\r\nexport class TripItinerary implements ITripItinerary {\r\n nome?: string | null;\r\n giorni?: number;\r\n notti?: number;\r\n days?: TripItineraryDay[] | null;\r\n\r\n constructor(data?: ITripItinerary) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n if (Array.isArray(_data[\"days\"])) {\r\n this.days = [] as any;\r\n for (let item of _data[\"days\"])\r\n this.days!.push(TripItineraryDay.fromJS(item));\r\n }\r\n else {\r\n this.days = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripItinerary {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripItinerary();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n if (Array.isArray(this.days)) {\r\n data[\"days\"] = [];\r\n for (let item of this.days)\r\n data[\"days\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripItinerary {\r\n nome?: string | null;\r\n giorni?: number;\r\n notti?: number;\r\n days?: TripItineraryDay[] | null;\r\n}\r\n\r\nexport class TripItineraryDay implements ITripItineraryDay {\r\n giorno?: number;\r\n ordine?: number;\r\n luogo?: string | null;\r\n durata?: number;\r\n hotel?: string | null;\r\n immagine?: TripImage | null;\r\n lat?: number;\r\n lon?: number;\r\n tipoTrasporto?: ETipoTrasporto | null;\r\n\r\n constructor(data?: ITripItineraryDay) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.durata = _data[\"durata\"] !== undefined ? _data[\"durata\"] : null;\r\n this.hotel = _data[\"hotel\"] !== undefined ? _data[\"hotel\"] : null;\r\n this.immagine = _data[\"immagine\"] ? TripImage.fromJS(_data[\"immagine\"]) : null;\r\n this.lat = _data[\"lat\"] !== undefined ? _data[\"lat\"] : null;\r\n this.lon = _data[\"lon\"] !== undefined ? _data[\"lon\"] : null;\r\n this.tipoTrasporto = _data[\"tipoTrasporto\"] !== undefined ? _data[\"tipoTrasporto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripItineraryDay {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripItineraryDay();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"durata\"] = this.durata !== undefined ? this.durata : null;\r\n data[\"hotel\"] = this.hotel !== undefined ? this.hotel : null;\r\n data[\"immagine\"] = this.immagine ? this.immagine.toJSON() : null;\r\n data[\"lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"lon\"] = this.lon !== undefined ? this.lon : null;\r\n data[\"tipoTrasporto\"] = this.tipoTrasporto !== undefined ? this.tipoTrasporto : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripItineraryDay {\r\n giorno?: number;\r\n ordine?: number;\r\n luogo?: string | null;\r\n durata?: number;\r\n hotel?: string | null;\r\n immagine?: TripImage | null;\r\n lat?: number;\r\n lon?: number;\r\n tipoTrasporto?: ETipoTrasporto | null;\r\n}\r\n\r\nexport enum ETipoTrasporto {\r\n Aereo = \"Aereo\",\r\n Auto = \"Auto\",\r\n Traghetto = \"Traghetto\",\r\n Indefinito = \"Indefinito\",\r\n Treno = \"Treno\",\r\n Pullman = \"Pullman\",\r\n}\r\n\r\nexport class ServiceAttribute implements IServiceAttribute {\r\n tipoID?: number;\r\n nomeTipo?: string | null;\r\n valori?: string[] | null;\r\n\r\n constructor(data?: IServiceAttribute) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoID = _data[\"tipoID\"] !== undefined ? _data[\"tipoID\"] : null;\r\n this.nomeTipo = _data[\"nomeTipo\"] !== undefined ? _data[\"nomeTipo\"] : null;\r\n if (Array.isArray(_data[\"valori\"])) {\r\n this.valori = [] as any;\r\n for (let item of _data[\"valori\"])\r\n this.valori!.push(item);\r\n }\r\n else {\r\n this.valori = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceAttribute {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceAttribute();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoID\"] = this.tipoID !== undefined ? this.tipoID : null;\r\n data[\"nomeTipo\"] = this.nomeTipo !== undefined ? this.nomeTipo : null;\r\n if (Array.isArray(this.valori)) {\r\n data[\"valori\"] = [];\r\n for (let item of this.valori)\r\n data[\"valori\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceAttribute {\r\n tipoID?: number;\r\n nomeTipo?: string | null;\r\n valori?: string[] | null;\r\n}\r\n\r\nexport class TripAttachment implements ITripAttachment {\r\n fileUrl?: string | null;\r\n fileExt?: string | null;\r\n descr?: string | null;\r\n\r\n constructor(data?: ITripAttachment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.fileUrl = _data[\"fileUrl\"] !== undefined ? _data[\"fileUrl\"] : null;\r\n this.fileExt = _data[\"fileExt\"] !== undefined ? _data[\"fileExt\"] : null;\r\n this.descr = _data[\"descr\"] !== undefined ? _data[\"descr\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripAttachment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripAttachment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fileUrl\"] = this.fileUrl !== undefined ? this.fileUrl : null;\r\n data[\"fileExt\"] = this.fileExt !== undefined ? this.fileExt : null;\r\n data[\"descr\"] = this.descr !== undefined ? this.descr : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripAttachment {\r\n fileUrl?: string | null;\r\n fileExt?: string | null;\r\n descr?: string | null;\r\n}\r\n\r\nexport class GetTripRequest extends SiteRequest implements IGetTripRequest {\r\n tripID?: number;\r\n\r\n constructor(data?: IGetTripRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripRequest extends ISiteRequest {\r\n tripID?: number;\r\n}\r\n\r\nexport class SetInfosRequest extends SiteRequest implements ISetInfosRequest {\r\n cognome?: string | null;\r\n nome?: string | null;\r\n email?: string | null;\r\n viaggioDiNozze?: string | null;\r\n budget?: string | null;\r\n note?: string | null;\r\n selectedADV?: TinySelectedAdv | null;\r\n interestedTrip?: TinyTripOfInterest[] | null;\r\n sentOn?: string | null;\r\n destinazioni?: string[] | null;\r\n selectedTrip?: string | null;\r\n\r\n constructor(data?: ISetInfosRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.viaggioDiNozze = _data[\"viaggioDiNozze\"] !== undefined ? _data[\"viaggioDiNozze\"] : null;\r\n this.budget = _data[\"budget\"] !== undefined ? _data[\"budget\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.selectedADV = _data[\"selectedADV\"] ? TinySelectedAdv.fromJS(_data[\"selectedADV\"]) : null;\r\n if (Array.isArray(_data[\"interestedTrip\"])) {\r\n this.interestedTrip = [] as any;\r\n for (let item of _data[\"interestedTrip\"])\r\n this.interestedTrip!.push(TinyTripOfInterest.fromJS(item));\r\n }\r\n else {\r\n this.interestedTrip = null;\r\n }\r\n this.sentOn = _data[\"sentOn\"] !== undefined ? _data[\"sentOn\"] : null;\r\n if (Array.isArray(_data[\"destinazioni\"])) {\r\n this.destinazioni = [] as any;\r\n for (let item of _data[\"destinazioni\"])\r\n this.destinazioni!.push(item);\r\n }\r\n else {\r\n this.destinazioni = null;\r\n }\r\n this.selectedTrip = _data[\"selectedTrip\"] !== undefined ? _data[\"selectedTrip\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetInfosRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetInfosRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"viaggioDiNozze\"] = this.viaggioDiNozze !== undefined ? this.viaggioDiNozze : null;\r\n data[\"budget\"] = this.budget !== undefined ? this.budget : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"selectedADV\"] = this.selectedADV ? this.selectedADV.toJSON() : null;\r\n if (Array.isArray(this.interestedTrip)) {\r\n data[\"interestedTrip\"] = [];\r\n for (let item of this.interestedTrip)\r\n data[\"interestedTrip\"].push(item.toJSON());\r\n }\r\n data[\"sentOn\"] = this.sentOn !== undefined ? this.sentOn : null;\r\n if (Array.isArray(this.destinazioni)) {\r\n data[\"destinazioni\"] = [];\r\n for (let item of this.destinazioni)\r\n data[\"destinazioni\"].push(item);\r\n }\r\n data[\"selectedTrip\"] = this.selectedTrip !== undefined ? this.selectedTrip : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetInfosRequest extends ISiteRequest {\r\n cognome?: string | null;\r\n nome?: string | null;\r\n email?: string | null;\r\n viaggioDiNozze?: string | null;\r\n budget?: string | null;\r\n note?: string | null;\r\n selectedADV?: TinySelectedAdv | null;\r\n interestedTrip?: TinyTripOfInterest[] | null;\r\n sentOn?: string | null;\r\n destinazioni?: string[] | null;\r\n selectedTrip?: string | null;\r\n}\r\n\r\nexport class TinySelectedAdv implements ITinySelectedAdv {\r\n contactID?: string | null;\r\n nome?: string | null;\r\n telefono?: string | null;\r\n indirizzo?: string | null;\r\n\r\n constructor(data?: ITinySelectedAdv) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contactID = _data[\"contactID\"] !== undefined ? _data[\"contactID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TinySelectedAdv {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TinySelectedAdv();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contactID\"] = this.contactID !== undefined ? this.contactID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITinySelectedAdv {\r\n contactID?: string | null;\r\n nome?: string | null;\r\n telefono?: string | null;\r\n indirizzo?: string | null;\r\n}\r\n\r\nexport class TinyTripOfInterest implements ITinyTripOfInterest {\r\n id?: string | null;\r\n nome?: string | null;\r\n durata?: string | null;\r\n\r\n constructor(data?: ITinyTripOfInterest) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.durata = _data[\"durata\"] !== undefined ? _data[\"durata\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TinyTripOfInterest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TinyTripOfInterest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"durata\"] = this.durata !== undefined ? this.durata : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITinyTripOfInterest {\r\n id?: string | null;\r\n nome?: string | null;\r\n durata?: string | null;\r\n}\r\n\r\nexport class GetTrattamentiResponse extends OkApiResponse implements IGetTrattamentiResponse {\r\n trattamenti?: TrattamentoTradotto[] | null;\r\n\r\n constructor(data?: IGetTrattamentiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"trattamenti\"])) {\r\n this.trattamenti = [] as any;\r\n for (let item of _data[\"trattamenti\"])\r\n this.trattamenti!.push(TrattamentoTradotto.fromJS(item));\r\n }\r\n else {\r\n this.trattamenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTrattamentiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTrattamentiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.trattamenti)) {\r\n data[\"trattamenti\"] = [];\r\n for (let item of this.trattamenti)\r\n data[\"trattamenti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTrattamentiResponse extends IOkApiResponse {\r\n trattamenti?: TrattamentoTradotto[] | null;\r\n}\r\n\r\nexport class TrattamentoTradotto implements ITrattamentoTradotto {\r\n trattamento?: Trattamento | null;\r\n nome?: string | null;\r\n\r\n constructor(data?: ITrattamentoTradotto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.trattamento = _data[\"trattamento\"] ? Trattamento.fromJS(_data[\"trattamento\"]) : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TrattamentoTradotto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TrattamentoTradotto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"trattamento\"] = this.trattamento ? this.trattamento.toJSON() : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITrattamentoTradotto {\r\n trattamento?: Trattamento | null;\r\n nome?: string | null;\r\n}\r\n\r\nexport class Trattamento implements ITrattamento {\r\n id?: number;\r\n traduzioni?: TreatmentTranslation[] | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n nomeVoucher?: string | null;\r\n ordine?: number;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n\r\n constructor(data?: ITrattamento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(TreatmentTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.nomeVoucher = _data[\"nomeVoucher\"] !== undefined ? _data[\"nomeVoucher\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Trattamento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Trattamento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"nomeVoucher\"] = this.nomeVoucher !== undefined ? this.nomeVoucher : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITrattamento {\r\n id?: number;\r\n traduzioni?: TreatmentTranslation[] | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n nomeVoucher?: string | null;\r\n ordine?: number;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n}\r\n\r\nexport class TreatmentTranslation extends WebTranslation implements ITreatmentTranslation {\r\n\r\n constructor(data?: ITreatmentTranslation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): TreatmentTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TreatmentTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITreatmentTranslation extends IWebTranslation {\r\n}\r\n\r\nexport class GetFornitoriResponse extends OkApiResponse implements IGetFornitoriResponse {\r\n fornitori?: Fornitore[] | null;\r\n\r\n constructor(data?: IGetFornitoriResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"fornitori\"])) {\r\n this.fornitori = [] as any;\r\n for (let item of _data[\"fornitori\"])\r\n this.fornitori!.push(Fornitore.fromJS(item));\r\n }\r\n else {\r\n this.fornitori = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetFornitoriResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetFornitoriResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.fornitori)) {\r\n data[\"fornitori\"] = [];\r\n for (let item of this.fornitori)\r\n data[\"fornitori\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetFornitoriResponse extends IOkApiResponse {\r\n fornitori?: Fornitore[] | null;\r\n}\r\n\r\nexport class Fornitore implements IFornitore {\r\n id?: number;\r\n codice?: EFornitore;\r\n nome?: string | null;\r\n attivo?: boolean;\r\n ricercaHotel?: boolean;\r\n bookingHotel?: boolean;\r\n ricercaVoli?: boolean;\r\n bookingVoli?: boolean;\r\n ricercaVisite?: boolean;\r\n bookingVisite?: boolean;\r\n ricercaNoleggi?: boolean;\r\n bookingNoleggi?: boolean;\r\n accordoObbligatorio?: boolean;\r\n\r\n constructor(data?: IFornitore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.attivo = _data[\"attivo\"] !== undefined ? _data[\"attivo\"] : null;\r\n this.ricercaHotel = _data[\"ricercaHotel\"] !== undefined ? _data[\"ricercaHotel\"] : null;\r\n this.bookingHotel = _data[\"bookingHotel\"] !== undefined ? _data[\"bookingHotel\"] : null;\r\n this.ricercaVoli = _data[\"ricercaVoli\"] !== undefined ? _data[\"ricercaVoli\"] : null;\r\n this.bookingVoli = _data[\"bookingVoli\"] !== undefined ? _data[\"bookingVoli\"] : null;\r\n this.ricercaVisite = _data[\"ricercaVisite\"] !== undefined ? _data[\"ricercaVisite\"] : null;\r\n this.bookingVisite = _data[\"bookingVisite\"] !== undefined ? _data[\"bookingVisite\"] : null;\r\n this.ricercaNoleggi = _data[\"ricercaNoleggi\"] !== undefined ? _data[\"ricercaNoleggi\"] : null;\r\n this.bookingNoleggi = _data[\"bookingNoleggi\"] !== undefined ? _data[\"bookingNoleggi\"] : null;\r\n this.accordoObbligatorio = _data[\"accordoObbligatorio\"] !== undefined ? _data[\"accordoObbligatorio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Fornitore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Fornitore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"attivo\"] = this.attivo !== undefined ? this.attivo : null;\r\n data[\"ricercaHotel\"] = this.ricercaHotel !== undefined ? this.ricercaHotel : null;\r\n data[\"bookingHotel\"] = this.bookingHotel !== undefined ? this.bookingHotel : null;\r\n data[\"ricercaVoli\"] = this.ricercaVoli !== undefined ? this.ricercaVoli : null;\r\n data[\"bookingVoli\"] = this.bookingVoli !== undefined ? this.bookingVoli : null;\r\n data[\"ricercaVisite\"] = this.ricercaVisite !== undefined ? this.ricercaVisite : null;\r\n data[\"bookingVisite\"] = this.bookingVisite !== undefined ? this.bookingVisite : null;\r\n data[\"ricercaNoleggi\"] = this.ricercaNoleggi !== undefined ? this.ricercaNoleggi : null;\r\n data[\"bookingNoleggi\"] = this.bookingNoleggi !== undefined ? this.bookingNoleggi : null;\r\n data[\"accordoObbligatorio\"] = this.accordoObbligatorio !== undefined ? this.accordoObbligatorio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFornitore {\r\n id?: number;\r\n codice?: EFornitore;\r\n nome?: string | null;\r\n attivo?: boolean;\r\n ricercaHotel?: boolean;\r\n bookingHotel?: boolean;\r\n ricercaVoli?: boolean;\r\n bookingVoli?: boolean;\r\n ricercaVisite?: boolean;\r\n bookingVisite?: boolean;\r\n ricercaNoleggi?: boolean;\r\n bookingNoleggi?: boolean;\r\n accordoObbligatorio?: boolean;\r\n}\r\n\r\nexport class GetPagamentiDocumentoContabileResponse extends OkApiResponse implements IGetPagamentiDocumentoContabileResponse {\r\n modalitaPagamento?: ModalitaPagamento[] | null;\r\n\r\n constructor(data?: IGetPagamentiDocumentoContabileResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"modalitaPagamento\"])) {\r\n this.modalitaPagamento = [] as any;\r\n for (let item of _data[\"modalitaPagamento\"])\r\n this.modalitaPagamento!.push(ModalitaPagamento.fromJS(item));\r\n }\r\n else {\r\n this.modalitaPagamento = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPagamentiDocumentoContabileResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPagamentiDocumentoContabileResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.modalitaPagamento)) {\r\n data[\"modalitaPagamento\"] = [];\r\n for (let item of this.modalitaPagamento)\r\n data[\"modalitaPagamento\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPagamentiDocumentoContabileResponse extends IOkApiResponse {\r\n modalitaPagamento?: ModalitaPagamento[] | null;\r\n}\r\n\r\nexport class ModalitaPagamento implements IModalitaPagamento {\r\n id?: number;\r\n nome?: string | null;\r\n\r\n constructor(data?: IModalitaPagamento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ModalitaPagamento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ModalitaPagamento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IModalitaPagamento {\r\n id?: number;\r\n nome?: string | null;\r\n}\r\n\r\nexport class GetBancheResponse extends OkApiResponse implements IGetBancheResponse {\r\n banche?: Banca[] | null;\r\n\r\n constructor(data?: IGetBancheResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"banche\"])) {\r\n this.banche = [] as any;\r\n for (let item of _data[\"banche\"])\r\n this.banche!.push(Banca.fromJS(item));\r\n }\r\n else {\r\n this.banche = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetBancheResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetBancheResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.banche)) {\r\n data[\"banche\"] = [];\r\n for (let item of this.banche)\r\n data[\"banche\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetBancheResponse extends IOkApiResponse {\r\n banche?: Banca[] | null;\r\n}\r\n\r\nexport class Banca implements IBanca {\r\n id?: number;\r\n nome?: string | null;\r\n iban?: string | null;\r\n\r\n constructor(data?: IBanca) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.iban = _data[\"iban\"] !== undefined ? _data[\"iban\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Banca {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Banca();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"iban\"] = this.iban !== undefined ? this.iban : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBanca {\r\n id?: number;\r\n nome?: string | null;\r\n iban?: string | null;\r\n}\r\n\r\nexport class GetSystemEmailsResponse extends OkApiResponse implements IGetSystemEmailsResponse {\r\n emails?: SystemEmailRow[] | null;\r\n\r\n constructor(data?: IGetSystemEmailsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"emails\"])) {\r\n this.emails = [] as any;\r\n for (let item of _data[\"emails\"])\r\n this.emails!.push(SystemEmailRow.fromJS(item));\r\n }\r\n else {\r\n this.emails = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSystemEmailsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSystemEmailsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.emails)) {\r\n data[\"emails\"] = [];\r\n for (let item of this.emails)\r\n data[\"emails\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSystemEmailsResponse extends IOkApiResponse {\r\n emails?: SystemEmailRow[] | null;\r\n}\r\n\r\nexport class SystemEmailRow implements ISystemEmailRow {\r\n id?: number;\r\n code?: string | null;\r\n hasDynamicBody?: boolean;\r\n hasDynamicRecipient?: boolean;\r\n isHtmlBody?: boolean;\r\n name?: string | null;\r\n texts?: SystemEmailTextRow[] | null;\r\n\r\n constructor(data?: ISystemEmailRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.hasDynamicBody = _data[\"hasDynamicBody\"] !== undefined ? _data[\"hasDynamicBody\"] : null;\r\n this.hasDynamicRecipient = _data[\"hasDynamicRecipient\"] !== undefined ? _data[\"hasDynamicRecipient\"] : null;\r\n this.isHtmlBody = _data[\"isHtmlBody\"] !== undefined ? _data[\"isHtmlBody\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n if (Array.isArray(_data[\"texts\"])) {\r\n this.texts = [] as any;\r\n for (let item of _data[\"texts\"])\r\n this.texts!.push(SystemEmailTextRow.fromJS(item));\r\n }\r\n else {\r\n this.texts = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"hasDynamicBody\"] = this.hasDynamicBody !== undefined ? this.hasDynamicBody : null;\r\n data[\"hasDynamicRecipient\"] = this.hasDynamicRecipient !== undefined ? this.hasDynamicRecipient : null;\r\n data[\"isHtmlBody\"] = this.isHtmlBody !== undefined ? this.isHtmlBody : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n if (Array.isArray(this.texts)) {\r\n data[\"texts\"] = [];\r\n for (let item of this.texts)\r\n data[\"texts\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailRow {\r\n id?: number;\r\n code?: string | null;\r\n hasDynamicBody?: boolean;\r\n hasDynamicRecipient?: boolean;\r\n isHtmlBody?: boolean;\r\n name?: string | null;\r\n texts?: SystemEmailTextRow[] | null;\r\n}\r\n\r\nexport class SystemEmailTextRow implements ISystemEmailTextRow {\r\n id?: number;\r\n body?: string | null;\r\n language?: ELingua;\r\n senderAddress?: string | null;\r\n senderName?: string | null;\r\n subject?: string | null;\r\n addresses?: SystemEmailAddress[] | null;\r\n\r\n constructor(data?: ISystemEmailTextRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.body = _data[\"body\"] !== undefined ? _data[\"body\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n this.senderAddress = _data[\"senderAddress\"] !== undefined ? _data[\"senderAddress\"] : null;\r\n this.senderName = _data[\"senderName\"] !== undefined ? _data[\"senderName\"] : null;\r\n this.subject = _data[\"subject\"] !== undefined ? _data[\"subject\"] : null;\r\n if (Array.isArray(_data[\"addresses\"])) {\r\n this.addresses = [] as any;\r\n for (let item of _data[\"addresses\"])\r\n this.addresses!.push(SystemEmailAddress.fromJS(item));\r\n }\r\n else {\r\n this.addresses = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailTextRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailTextRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"body\"] = this.body !== undefined ? this.body : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n data[\"senderAddress\"] = this.senderAddress !== undefined ? this.senderAddress : null;\r\n data[\"senderName\"] = this.senderName !== undefined ? this.senderName : null;\r\n data[\"subject\"] = this.subject !== undefined ? this.subject : null;\r\n if (Array.isArray(this.addresses)) {\r\n data[\"addresses\"] = [];\r\n for (let item of this.addresses)\r\n data[\"addresses\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailTextRow {\r\n id?: number;\r\n body?: string | null;\r\n language?: ELingua;\r\n senderAddress?: string | null;\r\n senderName?: string | null;\r\n subject?: string | null;\r\n addresses?: SystemEmailAddress[] | null;\r\n}\r\n\r\nexport class SystemEmailAddress implements ISystemEmailAddress {\r\n id?: number;\r\n emailTextID?: number;\r\n addressType?: EEmailAddressType;\r\n name?: string | null;\r\n address!: string;\r\n\r\n constructor(data?: ISystemEmailAddress) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.emailTextID = _data[\"emailTextID\"] !== undefined ? _data[\"emailTextID\"] : null;\r\n this.addressType = _data[\"addressType\"] !== undefined ? _data[\"addressType\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.address = _data[\"address\"] !== undefined ? _data[\"address\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailAddress {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailAddress();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"emailTextID\"] = this.emailTextID !== undefined ? this.emailTextID : null;\r\n data[\"addressType\"] = this.addressType !== undefined ? this.addressType : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"address\"] = this.address !== undefined ? this.address : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailAddress {\r\n id?: number;\r\n emailTextID?: number;\r\n addressType?: EEmailAddressType;\r\n name?: string | null;\r\n address: string;\r\n}\r\n\r\nexport enum EEmailAddressType {\r\n To = \"To\",\r\n Cc = \"Cc\",\r\n Bcc = \"Bcc\",\r\n}\r\n\r\nexport class GetCompagnieAereeResponse extends OkApiResponse implements IGetCompagnieAereeResponse {\r\n compagnie?: CompagniaAerea[] | null;\r\n\r\n constructor(data?: IGetCompagnieAereeResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"compagnie\"])) {\r\n this.compagnie = [] as any;\r\n for (let item of _data[\"compagnie\"])\r\n this.compagnie!.push(CompagniaAerea.fromJS(item));\r\n }\r\n else {\r\n this.compagnie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCompagnieAereeResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCompagnieAereeResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.compagnie)) {\r\n data[\"compagnie\"] = [];\r\n for (let item of this.compagnie)\r\n data[\"compagnie\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCompagnieAereeResponse extends IOkApiResponse {\r\n compagnie?: CompagniaAerea[] | null;\r\n}\r\n\r\nexport class GetAeroportiResponse extends OkApiResponse implements IGetAeroportiResponse {\r\n aeroporti?: Aeroporto[] | null;\r\n\r\n constructor(data?: IGetAeroportiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"aeroporti\"])) {\r\n this.aeroporti = [] as any;\r\n for (let item of _data[\"aeroporti\"])\r\n this.aeroporti!.push(Aeroporto.fromJS(item));\r\n }\r\n else {\r\n this.aeroporti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAeroportiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAeroportiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.aeroporti)) {\r\n data[\"aeroporti\"] = [];\r\n for (let item of this.aeroporti)\r\n data[\"aeroporti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAeroportiResponse extends IOkApiResponse {\r\n aeroporti?: Aeroporto[] | null;\r\n}\r\n\r\nexport class GetStatiVoloResponse extends OkApiResponse implements IGetStatiVoloResponse {\r\n stati?: StatoVolo[] | null;\r\n\r\n constructor(data?: IGetStatiVoloResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"stati\"])) {\r\n this.stati = [] as any;\r\n for (let item of _data[\"stati\"])\r\n this.stati!.push(StatoVolo.fromJS(item));\r\n }\r\n else {\r\n this.stati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetStatiVoloResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetStatiVoloResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.stati)) {\r\n data[\"stati\"] = [];\r\n for (let item of this.stati)\r\n data[\"stati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetStatiVoloResponse extends IOkApiResponse {\r\n stati?: StatoVolo[] | null;\r\n}\r\n\r\nexport class StatoVolo implements IStatoVolo {\r\n statoID?: number;\r\n codice?: string;\r\n nome!: string;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n ok?: boolean;\r\n\r\n constructor(data?: IStatoVolo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.statoID = _data[\"statoID\"] !== undefined ? _data[\"statoID\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n this.ok = _data[\"ok\"] !== undefined ? _data[\"ok\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatoVolo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatoVolo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statoID\"] = this.statoID !== undefined ? this.statoID : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n data[\"ok\"] = this.ok !== undefined ? this.ok : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatoVolo {\r\n statoID?: number;\r\n codice?: string;\r\n nome: string;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n ok?: boolean;\r\n}\r\n\r\nexport class GetImmaginiPubblicitarieResponse extends OkApiResponse implements IGetImmaginiPubblicitarieResponse {\r\n immagini?: ImmaginePubblicitaria[] | null;\r\n\r\n constructor(data?: IGetImmaginiPubblicitarieResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"immagini\"])) {\r\n this.immagini = [] as any;\r\n for (let item of _data[\"immagini\"])\r\n this.immagini!.push(ImmaginePubblicitaria.fromJS(item));\r\n }\r\n else {\r\n this.immagini = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetImmaginiPubblicitarieResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetImmaginiPubblicitarieResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.immagini)) {\r\n data[\"immagini\"] = [];\r\n for (let item of this.immagini)\r\n data[\"immagini\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetImmaginiPubblicitarieResponse extends IOkApiResponse {\r\n immagini?: ImmaginePubblicitaria[] | null;\r\n}\r\n\r\nexport class ImmaginePubblicitaria implements IImmaginePubblicitaria {\r\n url?: string | null;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n\r\n constructor(data?: IImmaginePubblicitaria) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImmaginePubblicitaria {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImmaginePubblicitaria();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImmaginePubblicitaria {\r\n url?: string | null;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n}\r\n\r\nexport class GetLuoghiTopResponse extends OkApiResponse implements IGetLuoghiTopResponse {\r\n luoghiTop?: LuogoTop[] | null;\r\n\r\n constructor(data?: IGetLuoghiTopResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"luoghiTop\"])) {\r\n this.luoghiTop = [] as any;\r\n for (let item of _data[\"luoghiTop\"])\r\n this.luoghiTop!.push(LuogoTop.fromJS(item));\r\n }\r\n else {\r\n this.luoghiTop = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLuoghiTopResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLuoghiTopResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.luoghiTop)) {\r\n data[\"luoghiTop\"] = [];\r\n for (let item of this.luoghiTop)\r\n data[\"luoghiTop\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLuoghiTopResponse extends IOkApiResponse {\r\n luoghiTop?: LuogoTop[] | null;\r\n}\r\n\r\nexport class LuogoTop implements ILuogoTop {\r\n id?: number;\r\n nome?: string | null;\r\n latitudine?: number;\r\n longitudine?: number;\r\n popolarita?: number;\r\n\r\n constructor(data?: ILuogoTop) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.popolarita = _data[\"popolarita\"] !== undefined ? _data[\"popolarita\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoTop {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoTop();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"popolarita\"] = this.popolarita !== undefined ? this.popolarita : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoTop {\r\n id?: number;\r\n nome?: string | null;\r\n latitudine?: number;\r\n longitudine?: number;\r\n popolarita?: number;\r\n}\r\n\r\nexport class GetArticleHeadsResponse extends OkApiResponse implements IGetArticleHeadsResponse {\r\n intestazioni?: ArticoloTestataRow[];\r\n\r\n constructor(data?: IGetArticleHeadsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"intestazioni\"])) {\r\n this.intestazioni = [] as any;\r\n for (let item of _data[\"intestazioni\"])\r\n this.intestazioni!.push(ArticoloTestataRow.fromJS(item));\r\n }\r\n else {\r\n this.intestazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetArticleHeadsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetArticleHeadsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.intestazioni)) {\r\n data[\"intestazioni\"] = [];\r\n for (let item of this.intestazioni)\r\n data[\"intestazioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetArticleHeadsResponse extends IOkApiResponse {\r\n intestazioni?: ArticoloTestataRow[];\r\n}\r\n\r\n/** Rappresenta sul frontent una testa articolo con id e nome tradotto */\r\nexport class ArticoloTestataRow implements IArticoloTestataRow {\r\n /** ID dell'intestazione articolo */\r\n articoloTestataID?: number;\r\n /** Nome nella lingua richiesta */\r\n nome?: string;\r\n\r\n constructor(data?: IArticoloTestataRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.articoloTestataID = _data[\"articoloTestataID\"] !== undefined ? _data[\"articoloTestataID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloTestataRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloTestataRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloTestataID\"] = this.articoloTestataID !== undefined ? this.articoloTestataID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Rappresenta sul frontent una testa articolo con id e nome tradotto */\r\nexport interface IArticoloTestataRow {\r\n /** ID dell'intestazione articolo */\r\n articoloTestataID?: number;\r\n /** Nome nella lingua richiesta */\r\n nome?: string;\r\n}\r\n\r\nexport class GetContactCategoriesResponse extends OkApiResponse implements IGetContactCategoriesResponse {\r\n /** Lista delle categorie contatto */\r\n categories?: ContactCategory[];\r\n\r\n constructor(data?: IGetContactCategoriesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"categories\"])) {\r\n this.categories = [] as any;\r\n for (let item of _data[\"categories\"])\r\n this.categories!.push(ContactCategory.fromJS(item));\r\n }\r\n else {\r\n this.categories = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetContactCategoriesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetContactCategoriesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.categories)) {\r\n data[\"categories\"] = [];\r\n for (let item of this.categories)\r\n data[\"categories\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetContactCategoriesResponse extends IOkApiResponse {\r\n /** Lista delle categorie contatto */\r\n categories?: ContactCategory[];\r\n}\r\n\r\nexport class ContactCategory implements IContactCategory {\r\n /** ID della categoria */\r\n id?: number;\r\n /** Nome della categoria */\r\n name?: string;\r\n\r\n constructor(data?: IContactCategory) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContactCategory {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContactCategory();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContactCategory {\r\n /** ID della categoria */\r\n id?: number;\r\n /** Nome della categoria */\r\n name?: string;\r\n}\r\n\r\nexport class GetContattoTipiDatoResponse extends OkApiResponse implements IGetContattoTipiDatoResponse {\r\n contattoTipiDato?: ContattoTipoDatoRow[] | null;\r\n\r\n constructor(data?: IGetContattoTipiDatoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"contattoTipiDato\"])) {\r\n this.contattoTipiDato = [] as any;\r\n for (let item of _data[\"contattoTipiDato\"])\r\n this.contattoTipiDato!.push(ContattoTipoDatoRow.fromJS(item));\r\n }\r\n else {\r\n this.contattoTipiDato = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetContattoTipiDatoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetContattoTipiDatoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.contattoTipiDato)) {\r\n data[\"contattoTipiDato\"] = [];\r\n for (let item of this.contattoTipiDato)\r\n data[\"contattoTipiDato\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetContattoTipiDatoResponse extends IOkApiResponse {\r\n contattoTipiDato?: ContattoTipoDatoRow[] | null;\r\n}\r\n\r\nexport class ContattoTipoDatoRow implements IContattoTipoDatoRow {\r\n id?: number;\r\n nome?: string | null;\r\n\r\n constructor(data?: IContattoTipoDatoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoTipoDatoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoTipoDatoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoTipoDatoRow {\r\n id?: number;\r\n nome?: string | null;\r\n}\r\n\r\nexport class GetDatiAggiuntiviServiziResponse extends OkApiResponse implements IGetDatiAggiuntiviServiziResponse {\r\n tipiDatoAggiuntivo?: DatoAggiuntivoTipoRow[];\r\n\r\n constructor(data?: IGetDatiAggiuntiviServiziResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tipiDatoAggiuntivo\"])) {\r\n this.tipiDatoAggiuntivo = [] as any;\r\n for (let item of _data[\"tipiDatoAggiuntivo\"])\r\n this.tipiDatoAggiuntivo!.push(DatoAggiuntivoTipoRow.fromJS(item));\r\n }\r\n else {\r\n this.tipiDatoAggiuntivo = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDatiAggiuntiviServiziResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDatiAggiuntiviServiziResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tipiDatoAggiuntivo)) {\r\n data[\"tipiDatoAggiuntivo\"] = [];\r\n for (let item of this.tipiDatoAggiuntivo)\r\n data[\"tipiDatoAggiuntivo\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDatiAggiuntiviServiziResponse extends IOkApiResponse {\r\n tipiDatoAggiuntivo?: DatoAggiuntivoTipoRow[];\r\n}\r\n\r\nexport class DatoAggiuntivoTipoRow implements IDatoAggiuntivoTipoRow {\r\n /** ID del tipo di dato */\r\n id?: number;\r\n /** Se valorizzato il tipo di dato va ristretto al tipo servizio */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Nome localizzato del tipo di dato aggiuntivo */\r\n nome?: string;\r\n dati?: DatoAggiuntivoServizioRow[];\r\n\r\n constructor(data?: IDatoAggiuntivoTipoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (Array.isArray(_data[\"dati\"])) {\r\n this.dati = [] as any;\r\n for (let item of _data[\"dati\"])\r\n this.dati!.push(DatoAggiuntivoServizioRow.fromJS(item));\r\n }\r\n else {\r\n this.dati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoTipoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoTipoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (Array.isArray(this.dati)) {\r\n data[\"dati\"] = [];\r\n for (let item of this.dati)\r\n data[\"dati\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoTipoRow {\r\n /** ID del tipo di dato */\r\n id?: number;\r\n /** Se valorizzato il tipo di dato va ristretto al tipo servizio */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Nome localizzato del tipo di dato aggiuntivo */\r\n nome?: string;\r\n dati?: DatoAggiuntivoServizioRow[];\r\n}\r\n\r\nexport class DatoAggiuntivoServizioRow implements IDatoAggiuntivoServizioRow {\r\n /** ID del dato */\r\n id?: number;\r\n /** Nome localizzato */\r\n nome?: string;\r\n /** Se usato vale solo nel luogo indicato */\r\n luogoID?: number | null;\r\n /** Se usato vale solo per il tipo di servizio indicato */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Se true l'attributo accetta una variabile stringa */\r\n variabili?: boolean;\r\n /** Se true l'attributo è limitabile nel tempo */\r\n temporizzato?: boolean;\r\n\r\n constructor(data?: IDatoAggiuntivoServizioRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.variabili = _data[\"variabili\"] !== undefined ? _data[\"variabili\"] : null;\r\n this.temporizzato = _data[\"temporizzato\"] !== undefined ? _data[\"temporizzato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoServizioRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoServizioRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"variabili\"] = this.variabili !== undefined ? this.variabili : null;\r\n data[\"temporizzato\"] = this.temporizzato !== undefined ? this.temporizzato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoServizioRow {\r\n /** ID del dato */\r\n id?: number;\r\n /** Nome localizzato */\r\n nome?: string;\r\n /** Se usato vale solo nel luogo indicato */\r\n luogoID?: number | null;\r\n /** Se usato vale solo per il tipo di servizio indicato */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Se true l'attributo accetta una variabile stringa */\r\n variabili?: boolean;\r\n /** Se true l'attributo è limitabile nel tempo */\r\n temporizzato?: boolean;\r\n}\r\n\r\nexport class GetDocumentTypesResponse extends OkApiResponse implements IGetDocumentTypesResponse {\r\n documentTypes?: { [key in keyof typeof ETipoDocumento]?: DocumentType; };\r\n\r\n constructor(data?: IGetDocumentTypesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (_data[\"documentTypes\"]) {\r\n this.documentTypes = {} as any;\r\n for (let key in _data[\"documentTypes\"]) {\r\n if (_data[\"documentTypes\"].hasOwnProperty(key))\r\n (this.documentTypes)![key] = _data[\"documentTypes\"][key] ? DocumentType.fromJS(_data[\"documentTypes\"][key]) : new DocumentType();\r\n }\r\n }\r\n else {\r\n this.documentTypes = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDocumentTypesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDocumentTypesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (this.documentTypes) {\r\n data[\"documentTypes\"] = {};\r\n for (let key in this.documentTypes) {\r\n if (this.documentTypes.hasOwnProperty(key))\r\n (data[\"documentTypes\"])[key] = this.documentTypes[key] ? this.documentTypes[key].toJSON() : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDocumentTypesResponse extends IOkApiResponse {\r\n documentTypes?: { [key in keyof typeof ETipoDocumento]?: DocumentType; };\r\n}\r\n\r\nexport class DocumentType implements IDocumentType {\r\n /** Tipo */\r\n tipoDocumento?: ETipoDocumento;\r\n /** True se è un documento a frasi da creare con CreateDocumentoFrasi */\r\n usaFrasi?: boolean;\r\n /** True se consente di fare la preview */\r\n consentePreview?: boolean;\r\n /** Se true il documento è ancora sul NaarPrintServer */\r\n usaNps?: boolean;\r\n\r\n constructor(data?: IDocumentType) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.usaFrasi = _data[\"usaFrasi\"] !== undefined ? _data[\"usaFrasi\"] : null;\r\n this.consentePreview = _data[\"consentePreview\"] !== undefined ? _data[\"consentePreview\"] : null;\r\n this.usaNps = _data[\"usaNps\"] !== undefined ? _data[\"usaNps\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentType {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentType();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"usaFrasi\"] = this.usaFrasi !== undefined ? this.usaFrasi : null;\r\n data[\"consentePreview\"] = this.consentePreview !== undefined ? this.consentePreview : null;\r\n data[\"usaNps\"] = this.usaNps !== undefined ? this.usaNps : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentType {\r\n /** Tipo */\r\n tipoDocumento?: ETipoDocumento;\r\n /** True se è un documento a frasi da creare con CreateDocumentoFrasi */\r\n usaFrasi?: boolean;\r\n /** True se consente di fare la preview */\r\n consentePreview?: boolean;\r\n /** Se true il documento è ancora sul NaarPrintServer */\r\n usaNps?: boolean;\r\n}\r\n\r\nexport class GetExtraDocumentsResponse extends OkApiResponse implements IGetExtraDocumentsResponse {\r\n extraDocuments?: ExtraDocument[] | null;\r\n groups?: string[] | null;\r\n\r\n constructor(data?: IGetExtraDocumentsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"extraDocuments\"])) {\r\n this.extraDocuments = [] as any;\r\n for (let item of _data[\"extraDocuments\"])\r\n this.extraDocuments!.push(ExtraDocument.fromJS(item));\r\n }\r\n else {\r\n this.extraDocuments = null;\r\n }\r\n if (Array.isArray(_data[\"groups\"])) {\r\n this.groups = [] as any;\r\n for (let item of _data[\"groups\"])\r\n this.groups!.push(item);\r\n }\r\n else {\r\n this.groups = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetExtraDocumentsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetExtraDocumentsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.extraDocuments)) {\r\n data[\"extraDocuments\"] = [];\r\n for (let item of this.extraDocuments)\r\n data[\"extraDocuments\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.groups)) {\r\n data[\"groups\"] = [];\r\n for (let item of this.groups)\r\n data[\"groups\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetExtraDocumentsResponse extends IOkApiResponse {\r\n extraDocuments?: ExtraDocument[] | null;\r\n groups?: string[] | null;\r\n}\r\n\r\nexport class ExtraDocument implements IExtraDocument {\r\n id?: number;\r\n nome?: string | null;\r\n ordine?: number;\r\n pagine?: number;\r\n gruppo?: string | null;\r\n default?: boolean;\r\n luogoID?: number | null;\r\n tipoDocID?: number;\r\n\r\n constructor(data?: IExtraDocument) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.pagine = _data[\"pagine\"] !== undefined ? _data[\"pagine\"] : null;\r\n this.gruppo = _data[\"gruppo\"] !== undefined ? _data[\"gruppo\"] : null;\r\n this.default = _data[\"default\"] !== undefined ? _data[\"default\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.tipoDocID = _data[\"tipoDocID\"] !== undefined ? _data[\"tipoDocID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExtraDocument {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExtraDocument();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"pagine\"] = this.pagine !== undefined ? this.pagine : null;\r\n data[\"gruppo\"] = this.gruppo !== undefined ? this.gruppo : null;\r\n data[\"default\"] = this.default !== undefined ? this.default : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"tipoDocID\"] = this.tipoDocID !== undefined ? this.tipoDocID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExtraDocument {\r\n id?: number;\r\n nome?: string | null;\r\n ordine?: number;\r\n pagine?: number;\r\n gruppo?: string | null;\r\n default?: boolean;\r\n luogoID?: number | null;\r\n tipoDocID?: number;\r\n}\r\n\r\nexport class GetMiniguideResponse extends OkApiResponse implements IGetMiniguideResponse {\r\n miniguide?: MiniguidaHeader[];\r\n\r\n constructor(data?: IGetMiniguideResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"miniguide\"])) {\r\n this.miniguide = [] as any;\r\n for (let item of _data[\"miniguide\"])\r\n this.miniguide!.push(MiniguidaHeader.fromJS(item));\r\n }\r\n else {\r\n this.miniguide = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetMiniguideResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetMiniguideResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.miniguide)) {\r\n data[\"miniguide\"] = [];\r\n for (let item of this.miniguide)\r\n data[\"miniguide\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetMiniguideResponse extends IOkApiResponse {\r\n miniguide?: MiniguidaHeader[];\r\n}\r\n\r\nexport class MiniguidaHeader implements IMiniguidaHeader {\r\n id?: number;\r\n luogoID?: number;\r\n titolo?: string | null;\r\n ordine?: number;\r\n lingua?: ELingua;\r\n selected?: boolean;\r\n paeseID?: number;\r\n paese?: string | null;\r\n\r\n constructor(data?: IMiniguidaHeader) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.selected = _data[\"selected\"] !== undefined ? _data[\"selected\"] : null;\r\n this.paeseID = _data[\"paeseID\"] !== undefined ? _data[\"paeseID\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MiniguidaHeader {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MiniguidaHeader();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"selected\"] = this.selected !== undefined ? this.selected : null;\r\n data[\"paeseID\"] = this.paeseID !== undefined ? this.paeseID : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMiniguidaHeader {\r\n id?: number;\r\n luogoID?: number;\r\n titolo?: string | null;\r\n ordine?: number;\r\n lingua?: ELingua;\r\n selected?: boolean;\r\n paeseID?: number;\r\n paese?: string | null;\r\n}\r\n\r\nexport class MiniguideRequest extends LocalizedRequest implements IMiniguideRequest {\r\n /** ID dell'offerta da cui estrarre i luoghi */\r\n offertaId!: number;\r\n\r\n constructor(data?: IMiniguideRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaId = _data[\"offertaId\"] !== undefined ? _data[\"offertaId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MiniguideRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MiniguideRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaId\"] = this.offertaId !== undefined ? this.offertaId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMiniguideRequest extends ILocalizedRequest {\r\n /** ID dell'offerta da cui estrarre i luoghi */\r\n offertaId: number;\r\n}\r\n\r\nexport class GetOperatorsResponse extends OkApiResponse implements IGetOperatorsResponse {\r\n /** Lista degli operatori */\r\n operators?: OperatorData[];\r\n\r\n constructor(data?: IGetOperatorsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"operators\"])) {\r\n this.operators = [] as any;\r\n for (let item of _data[\"operators\"])\r\n this.operators!.push(OperatorData.fromJS(item));\r\n }\r\n else {\r\n this.operators = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetOperatorsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetOperatorsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.operators)) {\r\n data[\"operators\"] = [];\r\n for (let item of this.operators)\r\n data[\"operators\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetOperatorsResponse extends IOkApiResponse {\r\n /** Lista degli operatori */\r\n operators?: OperatorData[];\r\n}\r\n\r\nexport class OperatorData implements IOperatorData {\r\n /** ID dell'operatore */\r\n id?: number;\r\n /** Nome dell'operatore */\r\n name?: string;\r\n /** Enum dell'operatore */\r\n operatore?: EOperatore;\r\n /** Lingue supportate dall'operatore */\r\n lingue?: ELingua[];\r\n /** Lingua di default */\r\n linguaDiDefault?: ELingua;\r\n /** Se l'operatore è visibile */\r\n visible?: boolean;\r\n\r\n constructor(data?: IOperatorData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n if (Array.isArray(_data[\"lingue\"])) {\r\n this.lingue = [] as any;\r\n for (let item of _data[\"lingue\"])\r\n this.lingue!.push(item);\r\n }\r\n else {\r\n this.lingue = null;\r\n }\r\n this.linguaDiDefault = _data[\"linguaDiDefault\"] !== undefined ? _data[\"linguaDiDefault\"] : null;\r\n this.visible = _data[\"visible\"] !== undefined ? _data[\"visible\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OperatorData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OperatorData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n if (Array.isArray(this.lingue)) {\r\n data[\"lingue\"] = [];\r\n for (let item of this.lingue)\r\n data[\"lingue\"].push(item);\r\n }\r\n data[\"linguaDiDefault\"] = this.linguaDiDefault !== undefined ? this.linguaDiDefault : null;\r\n data[\"visible\"] = this.visible !== undefined ? this.visible : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOperatorData {\r\n /** ID dell'operatore */\r\n id?: number;\r\n /** Nome dell'operatore */\r\n name?: string;\r\n /** Enum dell'operatore */\r\n operatore?: EOperatore;\r\n /** Lingue supportate dall'operatore */\r\n lingue?: ELingua[];\r\n /** Lingua di default */\r\n linguaDiDefault?: ELingua;\r\n /** Se l'operatore è visibile */\r\n visible?: boolean;\r\n}\r\n\r\nexport class GetOrdersTagsResponse extends OkApiResponse implements IGetOrdersTagsResponse {\r\n /** Lista dei tag in ordine alfabetico */\r\n tags?: OrderTagData[];\r\n\r\n constructor(data?: IGetOrdersTagsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(OrderTagData.fromJS(item));\r\n }\r\n else {\r\n this.tags = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetOrdersTagsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetOrdersTagsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetOrdersTagsResponse extends IOkApiResponse {\r\n /** Lista dei tag in ordine alfabetico */\r\n tags?: OrderTagData[];\r\n}\r\n\r\n/** Rappresentazione di un Tag offerta, per uso lista generica/visualizzazione */\r\nexport class OrderTagData implements IOrderTagData {\r\n /** ID del tag */\r\n id?: number;\r\n /** Nome visualizzato del tag */\r\n tag?: string;\r\n /** JSON Opzioni UI */\r\n uiOptions?: string | null;\r\n\r\n constructor(data?: IOrderTagData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tag = _data[\"tag\"] !== undefined ? _data[\"tag\"] : null;\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OrderTagData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OrderTagData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tag\"] = this.tag !== undefined ? this.tag : null;\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Rappresentazione di un Tag offerta, per uso lista generica/visualizzazione */\r\nexport interface IOrderTagData {\r\n /** ID del tag */\r\n id?: number;\r\n /** Nome visualizzato del tag */\r\n tag?: string;\r\n /** JSON Opzioni UI */\r\n uiOptions?: string | null;\r\n}\r\n\r\nexport class GetPackageRulesResponse extends OkApiResponse implements IGetPackageRulesResponse {\r\n regole?: RegolaPacchettoRow[] | null;\r\n\r\n constructor(data?: IGetPackageRulesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"regole\"])) {\r\n this.regole = [] as any;\r\n for (let item of _data[\"regole\"])\r\n this.regole!.push(RegolaPacchettoRow.fromJS(item));\r\n }\r\n else {\r\n this.regole = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPackageRulesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPackageRulesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.regole)) {\r\n data[\"regole\"] = [];\r\n for (let item of this.regole)\r\n data[\"regole\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPackageRulesResponse extends IOkApiResponse {\r\n regole?: RegolaPacchettoRow[] | null;\r\n}\r\n\r\nexport class RegolaPacchettoRow implements IRegolaPacchettoRow {\r\n id?: number;\r\n nome?: string | null;\r\n regola?: ServizioTipologiaRegolaPacchetto | null;\r\n\r\n constructor(data?: IRegolaPacchettoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.regola = _data[\"regola\"] ? ServizioTipologiaRegolaPacchetto.fromJS(_data[\"regola\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RegolaPacchettoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RegolaPacchettoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRegolaPacchettoRow {\r\n id?: number;\r\n nome?: string | null;\r\n regola?: ServizioTipologiaRegolaPacchetto | null;\r\n}\r\n\r\nexport class ServizioTipologiaRegolaPacchetto implements IServizioTipologiaRegolaPacchetto {\r\n id?: number;\r\n creaItinerario?: boolean;\r\n nome!: string;\r\n nome_en?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n\r\n constructor(data?: IServizioTipologiaRegolaPacchetto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.creaItinerario = _data[\"creaItinerario\"] !== undefined ? _data[\"creaItinerario\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioTipologiaRegolaPacchetto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioTipologiaRegolaPacchetto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"creaItinerario\"] = this.creaItinerario !== undefined ? this.creaItinerario : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioTipologiaRegolaPacchetto {\r\n id?: number;\r\n creaItinerario?: boolean;\r\n nome: string;\r\n nome_en?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n}\r\n\r\nexport class GetPageLinksResponse extends OkApiResponse implements IGetPageLinksResponse {\r\n menuLinks?: SitePageLink[] | null;\r\n bannerLinks?: SitePageLink[] | null;\r\n newsLinks?: SitePageLink[] | null;\r\n\r\n constructor(data?: IGetPageLinksResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"menuLinks\"])) {\r\n this.menuLinks = [] as any;\r\n for (let item of _data[\"menuLinks\"])\r\n this.menuLinks!.push(SitePageLink.fromJS(item));\r\n }\r\n else {\r\n this.menuLinks = null;\r\n }\r\n if (Array.isArray(_data[\"bannerLinks\"])) {\r\n this.bannerLinks = [] as any;\r\n for (let item of _data[\"bannerLinks\"])\r\n this.bannerLinks!.push(SitePageLink.fromJS(item));\r\n }\r\n else {\r\n this.bannerLinks = null;\r\n }\r\n if (Array.isArray(_data[\"newsLinks\"])) {\r\n this.newsLinks = [] as any;\r\n for (let item of _data[\"newsLinks\"])\r\n this.newsLinks!.push(SitePageLink.fromJS(item));\r\n }\r\n else {\r\n this.newsLinks = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPageLinksResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPageLinksResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.menuLinks)) {\r\n data[\"menuLinks\"] = [];\r\n for (let item of this.menuLinks)\r\n data[\"menuLinks\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.bannerLinks)) {\r\n data[\"bannerLinks\"] = [];\r\n for (let item of this.bannerLinks)\r\n data[\"bannerLinks\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.newsLinks)) {\r\n data[\"newsLinks\"] = [];\r\n for (let item of this.newsLinks)\r\n data[\"newsLinks\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPageLinksResponse extends IOkApiResponse {\r\n menuLinks?: SitePageLink[] | null;\r\n bannerLinks?: SitePageLink[] | null;\r\n newsLinks?: SitePageLink[] | null;\r\n}\r\n\r\nexport class SitePageLink implements ISitePageLink {\r\n nome?: string | null;\r\n tipo?: ETipoLink;\r\n url?: string | null;\r\n routerLink?: any[] | null;\r\n icona?: string | null;\r\n articoli?: PageArticle[] | null;\r\n collapseFlag?: boolean;\r\n\r\n constructor(data?: ISitePageLink) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n if (Array.isArray(_data[\"routerLink\"])) {\r\n this.routerLink = [] as any;\r\n for (let item of _data[\"routerLink\"])\r\n this.routerLink!.push(item);\r\n }\r\n else {\r\n this.routerLink = null;\r\n }\r\n this.icona = _data[\"icona\"] !== undefined ? _data[\"icona\"] : null;\r\n if (Array.isArray(_data[\"articoli\"])) {\r\n this.articoli = [] as any;\r\n for (let item of _data[\"articoli\"])\r\n this.articoli!.push(PageArticle.fromJS(item));\r\n }\r\n else {\r\n this.articoli = null;\r\n }\r\n this.collapseFlag = _data[\"collapseFlag\"] !== undefined ? _data[\"collapseFlag\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SitePageLink {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SitePageLink();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n if (Array.isArray(this.routerLink)) {\r\n data[\"routerLink\"] = [];\r\n for (let item of this.routerLink)\r\n data[\"routerLink\"].push(item);\r\n }\r\n data[\"icona\"] = this.icona !== undefined ? this.icona : null;\r\n if (Array.isArray(this.articoli)) {\r\n data[\"articoli\"] = [];\r\n for (let item of this.articoli)\r\n data[\"articoli\"].push(item.toJSON());\r\n }\r\n data[\"collapseFlag\"] = this.collapseFlag !== undefined ? this.collapseFlag : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISitePageLink {\r\n nome?: string | null;\r\n tipo?: ETipoLink;\r\n url?: string | null;\r\n routerLink?: any[] | null;\r\n icona?: string | null;\r\n articoli?: PageArticle[] | null;\r\n collapseFlag?: boolean;\r\n}\r\n\r\nexport class PageArticle implements IPageArticle {\r\n id?: number;\r\n titolo?: string | null;\r\n icona?: string | null;\r\n\r\n constructor(data?: IPageArticle) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.icona = _data[\"icona\"] !== undefined ? _data[\"icona\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageArticle {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageArticle();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"icona\"] = this.icona !== undefined ? this.icona : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageArticle {\r\n id?: number;\r\n titolo?: string | null;\r\n icona?: string | null;\r\n}\r\n\r\nexport class GetPageLinksRequest extends SiteRequest implements IGetPageLinksRequest {\r\n luogoPaginaID?: number;\r\n\r\n constructor(data?: IGetPageLinksRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoPaginaID = _data[\"luogoPaginaID\"] !== undefined ? _data[\"luogoPaginaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPageLinksRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPageLinksRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoPaginaID\"] = this.luogoPaginaID !== undefined ? this.luogoPaginaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPageLinksRequest extends ISiteRequest {\r\n luogoPaginaID?: number;\r\n}\r\n\r\nexport class GetPermissionsResponse extends OkApiResponse implements IGetPermissionsResponse {\r\n /** Categorie di permessi (e relativi permessi) */\r\n categories?: PermissionCategoryData[];\r\n /** Elenco \"flat\" dei permessi */\r\n permissions?: PermissionData[];\r\n\r\n constructor(data?: IGetPermissionsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"categories\"])) {\r\n this.categories = [] as any;\r\n for (let item of _data[\"categories\"])\r\n this.categories!.push(PermissionCategoryData.fromJS(item));\r\n }\r\n else {\r\n this.categories = null;\r\n }\r\n if (Array.isArray(_data[\"permissions\"])) {\r\n this.permissions = [] as any;\r\n for (let item of _data[\"permissions\"])\r\n this.permissions!.push(PermissionData.fromJS(item));\r\n }\r\n else {\r\n this.permissions = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPermissionsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPermissionsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.categories)) {\r\n data[\"categories\"] = [];\r\n for (let item of this.categories)\r\n data[\"categories\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.permissions)) {\r\n data[\"permissions\"] = [];\r\n for (let item of this.permissions)\r\n data[\"permissions\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPermissionsResponse extends IOkApiResponse {\r\n /** Categorie di permessi (e relativi permessi) */\r\n categories?: PermissionCategoryData[];\r\n /** Elenco \"flat\" dei permessi */\r\n permissions?: PermissionData[];\r\n}\r\n\r\nexport class PermissionCategoryData implements IPermissionCategoryData {\r\n /** ID della categoria */\r\n id?: number;\r\n /** Nome della categoria */\r\n name?: string;\r\n /** Lista dei permessi di questa categoria */\r\n permissions?: PermissionData[];\r\n\r\n constructor(data?: IPermissionCategoryData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n if (Array.isArray(_data[\"permissions\"])) {\r\n this.permissions = [] as any;\r\n for (let item of _data[\"permissions\"])\r\n this.permissions!.push(PermissionData.fromJS(item));\r\n }\r\n else {\r\n this.permissions = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PermissionCategoryData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PermissionCategoryData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n if (Array.isArray(this.permissions)) {\r\n data[\"permissions\"] = [];\r\n for (let item of this.permissions)\r\n data[\"permissions\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPermissionCategoryData {\r\n /** ID della categoria */\r\n id?: number;\r\n /** Nome della categoria */\r\n name?: string;\r\n /** Lista dei permessi di questa categoria */\r\n permissions?: PermissionData[];\r\n}\r\n\r\nexport class PermissionData implements IPermissionData {\r\n /** ID del permesso */\r\n id?: number;\r\n /** Codice alfanumerico del permesso */\r\n code?: string;\r\n /** Descrizione del permesso */\r\n description?: string;\r\n\r\n constructor(data?: IPermissionData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.description = _data[\"description\"] !== undefined ? _data[\"description\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PermissionData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PermissionData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"description\"] = this.description !== undefined ? this.description : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPermissionData {\r\n /** ID del permesso */\r\n id?: number;\r\n /** Codice alfanumerico del permesso */\r\n code?: string;\r\n /** Descrizione del permesso */\r\n description?: string;\r\n}\r\n\r\nexport class GetPhraseTagsResponse extends OkApiResponse implements IGetPhraseTagsResponse {\r\n tags?: TagView[];\r\n\r\n constructor(data?: IGetPhraseTagsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(TagView.fromJS(item));\r\n }\r\n else {\r\n this.tags = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPhraseTagsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPhraseTagsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPhraseTagsResponse extends IOkApiResponse {\r\n tags?: TagView[];\r\n}\r\n\r\nexport class TagView implements ITagView {\r\n id?: number;\r\n /** Nome localizzato del tag */\r\n tag?: string;\r\n /** True se è un tag di sistema */\r\n isSystem?: boolean;\r\n /** Codice del tag */\r\n code?: string | null;\r\n /** Opzioni UI (colore e sfondo) */\r\n uiOptions?: string | null;\r\n /** Numero di frasi associate */\r\n usageCount?: number;\r\n\r\n constructor(data?: ITagView) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tag = _data[\"tag\"] !== undefined ? _data[\"tag\"] : null;\r\n this.isSystem = _data[\"isSystem\"] !== undefined ? _data[\"isSystem\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n this.usageCount = _data[\"usageCount\"] !== undefined ? _data[\"usageCount\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TagView {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TagView();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tag\"] = this.tag !== undefined ? this.tag : null;\r\n data[\"isSystem\"] = this.isSystem !== undefined ? this.isSystem : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n data[\"usageCount\"] = this.usageCount !== undefined ? this.usageCount : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITagView {\r\n id?: number;\r\n /** Nome localizzato del tag */\r\n tag?: string;\r\n /** True se è un tag di sistema */\r\n isSystem?: boolean;\r\n /** Codice del tag */\r\n code?: string | null;\r\n /** Opzioni UI (colore e sfondo) */\r\n uiOptions?: string | null;\r\n /** Numero di frasi associate */\r\n usageCount?: number;\r\n}\r\n\r\nexport class GetPoliciesListResponse extends OkApiResponse implements IGetPoliciesListResponse {\r\n penali?: PenaleRow[] | null;\r\n\r\n constructor(data?: IGetPoliciesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"penali\"])) {\r\n this.penali = [] as any;\r\n for (let item of _data[\"penali\"])\r\n this.penali!.push(PenaleRow.fromJS(item));\r\n }\r\n else {\r\n this.penali = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPoliciesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPoliciesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.penali)) {\r\n data[\"penali\"] = [];\r\n for (let item of this.penali)\r\n data[\"penali\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPoliciesListResponse extends IOkApiResponse {\r\n penali?: PenaleRow[] | null;\r\n}\r\n\r\nexport class PenaleRow implements IPenaleRow {\r\n id?: number;\r\n nome?: string | null;\r\n cfgDataLimite?: EConfigurazioneParametro;\r\n cfgImporto?: EConfigurazioneParametro;\r\n utilizzabileSuRegolaVendita?: boolean;\r\n\r\n constructor(data?: IPenaleRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cfgDataLimite = _data[\"cfgDataLimite\"] !== undefined ? _data[\"cfgDataLimite\"] : null;\r\n this.cfgImporto = _data[\"cfgImporto\"] !== undefined ? _data[\"cfgImporto\"] : null;\r\n this.utilizzabileSuRegolaVendita = _data[\"utilizzabileSuRegolaVendita\"] !== undefined ? _data[\"utilizzabileSuRegolaVendita\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PenaleRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PenaleRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cfgDataLimite\"] = this.cfgDataLimite !== undefined ? this.cfgDataLimite : null;\r\n data[\"cfgImporto\"] = this.cfgImporto !== undefined ? this.cfgImporto : null;\r\n data[\"utilizzabileSuRegolaVendita\"] = this.utilizzabileSuRegolaVendita !== undefined ? this.utilizzabileSuRegolaVendita : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPenaleRow {\r\n id?: number;\r\n nome?: string | null;\r\n cfgDataLimite?: EConfigurazioneParametro;\r\n cfgImporto?: EConfigurazioneParametro;\r\n utilizzabileSuRegolaVendita?: boolean;\r\n}\r\n\r\nexport enum EConfigurazioneParametro {\r\n NonUsato = \"NonUsato\",\r\n SolaLettura = \"SolaLettura\",\r\n Modificabile = \"Modificabile\",\r\n}\r\n\r\nexport class GetPricingResponse extends OkApiResponse implements IGetPricingResponse {\r\n pricings?: PricingItem[];\r\n\r\n constructor(data?: IGetPricingResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"pricings\"])) {\r\n this.pricings = [] as any;\r\n for (let item of _data[\"pricings\"])\r\n this.pricings!.push(PricingItem.fromJS(item));\r\n }\r\n else {\r\n this.pricings = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPricingResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPricingResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.pricings)) {\r\n data[\"pricings\"] = [];\r\n for (let item of this.pricings)\r\n data[\"pricings\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPricingResponse extends IOkApiResponse {\r\n pricings?: PricingItem[];\r\n}\r\n\r\nexport class PricingItem implements IPricingItem {\r\n pricing?: Pricing;\r\n tourOperator?: string;\r\n\r\n constructor(data?: IPricingItem) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pricing = _data[\"pricing\"] ? Pricing.fromJS(_data[\"pricing\"]) : null;\r\n this.tourOperator = _data[\"tourOperator\"] !== undefined ? _data[\"tourOperator\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingItem {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingItem();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pricing\"] = this.pricing ? this.pricing.toJSON() : null;\r\n data[\"tourOperator\"] = this.tourOperator !== undefined ? this.tourOperator : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingItem {\r\n pricing?: Pricing;\r\n tourOperator?: string;\r\n}\r\n\r\nexport class Pricing implements IPricing {\r\n id?: number;\r\n name!: string;\r\n operator?: EOperatore;\r\n\r\n constructor(data?: IPricing) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Pricing {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Pricing();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricing {\r\n id?: number;\r\n name: string;\r\n operator?: EOperatore;\r\n}\r\n\r\nexport class GetRolesResponse extends OkApiResponse implements IGetRolesResponse {\r\n /** Lista degli ruoli */\r\n roles?: RoleData[] | null;\r\n\r\n constructor(data?: IGetRolesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"roles\"])) {\r\n this.roles = [] as any;\r\n for (let item of _data[\"roles\"])\r\n this.roles!.push(RoleData.fromJS(item));\r\n }\r\n else {\r\n this.roles = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRolesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRolesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.roles)) {\r\n data[\"roles\"] = [];\r\n for (let item of this.roles)\r\n data[\"roles\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetRolesResponse extends IOkApiResponse {\r\n /** Lista degli ruoli */\r\n roles?: RoleData[] | null;\r\n}\r\n\r\nexport class RoleData implements IRoleData {\r\n /** ID del ruolo */\r\n id?: number;\r\n /** Nome del ruolo */\r\n name?: string | null;\r\n\r\n constructor(data?: IRoleData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RoleData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RoleData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRoleData {\r\n /** ID del ruolo */\r\n id?: number;\r\n /** Nome del ruolo */\r\n name?: string | null;\r\n}\r\n\r\nexport class GetServicesOffersTypesResponse extends OkApiResponse implements IGetServicesOffersTypesResponse {\r\n offersTypes?: ServiceOfferTypeRow[];\r\n\r\n constructor(data?: IGetServicesOffersTypesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"offersTypes\"])) {\r\n this.offersTypes = [] as any;\r\n for (let item of _data[\"offersTypes\"])\r\n this.offersTypes!.push(ServiceOfferTypeRow.fromJS(item));\r\n }\r\n else {\r\n this.offersTypes = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServicesOffersTypesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServicesOffersTypesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.offersTypes)) {\r\n data[\"offersTypes\"] = [];\r\n for (let item of this.offersTypes)\r\n data[\"offersTypes\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServicesOffersTypesResponse extends IOkApiResponse {\r\n offersTypes?: ServiceOfferTypeRow[];\r\n}\r\n\r\nexport class ServiceOfferTypeRow implements IServiceOfferTypeRow {\r\n id?: number;\r\n name?: string;\r\n\r\n constructor(data?: IServiceOfferTypeRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceOfferTypeRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceOfferTypeRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceOfferTypeRow {\r\n id?: number;\r\n name?: string;\r\n}\r\n\r\nexport class GetSistemazioniResponse extends OkApiResponse implements IGetSistemazioniResponse {\r\n sistemazioni?: SistemazioneListRow[] | null;\r\n\r\n constructor(data?: IGetSistemazioniResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"sistemazioni\"])) {\r\n this.sistemazioni = [] as any;\r\n for (let item of _data[\"sistemazioni\"])\r\n this.sistemazioni!.push(SistemazioneListRow.fromJS(item));\r\n }\r\n else {\r\n this.sistemazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSistemazioniResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSistemazioniResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.sistemazioni)) {\r\n data[\"sistemazioni\"] = [];\r\n for (let item of this.sistemazioni)\r\n data[\"sistemazioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSistemazioniResponse extends IOkApiResponse {\r\n sistemazioni?: SistemazioneListRow[] | null;\r\n}\r\n\r\nexport class SistemazioneListRow implements ISistemazioneListRow {\r\n /** ID del bedding */\r\n sistemazioneID?: number;\r\n /** Nome localizzato */\r\n nome?: string | null;\r\n\r\n constructor(data?: ISistemazioneListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sistemazioneID = _data[\"sistemazioneID\"] !== undefined ? _data[\"sistemazioneID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SistemazioneListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SistemazioneListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sistemazioneID\"] = this.sistemazioneID !== undefined ? this.sistemazioneID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISistemazioneListRow {\r\n /** ID del bedding */\r\n sistemazioneID?: number;\r\n /** Nome localizzato */\r\n nome?: string | null;\r\n}\r\n\r\nexport class GetTeamsResponse extends OkApiResponse implements IGetTeamsResponse {\r\n /** Lista dei team */\r\n teams?: TeamData[];\r\n\r\n constructor(data?: IGetTeamsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"teams\"])) {\r\n this.teams = [] as any;\r\n for (let item of _data[\"teams\"])\r\n this.teams!.push(TeamData.fromJS(item));\r\n }\r\n else {\r\n this.teams = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTeamsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTeamsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.teams)) {\r\n data[\"teams\"] = [];\r\n for (let item of this.teams)\r\n data[\"teams\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTeamsResponse extends IOkApiResponse {\r\n /** Lista dei team */\r\n teams?: TeamData[];\r\n}\r\n\r\nexport class TeamData implements ITeamData {\r\n /** ID del team */\r\n id?: string;\r\n /** ID numerico del team */\r\n teamID?: number;\r\n /** Nome del team */\r\n name?: string;\r\n /** Visibilità del team */\r\n visibilita?: EVisibilitaTeam;\r\n operatore?: EOperatore;\r\n\r\n constructor(data?: ITeamData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TeamData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TeamData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITeamData {\r\n /** ID del team */\r\n id?: string;\r\n /** ID numerico del team */\r\n teamID?: number;\r\n /** Nome del team */\r\n name?: string;\r\n /** Visibilità del team */\r\n visibilita?: EVisibilitaTeam;\r\n operatore?: EOperatore;\r\n}\r\n\r\nexport enum EVisibilitaTeam {\r\n NonVisibile = \"NonVisibile\",\r\n Privato = \"Privato\",\r\n Pubblico = \"Pubblico\",\r\n Obsoleto = \"Obsoleto\",\r\n}\r\n\r\nexport class GetTipologiaStandardResponse extends OkApiResponse implements IGetTipologiaStandardResponse {\r\n tipologieStandard?: ServizioTipologiaStandard[] | null;\r\n\r\n constructor(data?: IGetTipologiaStandardResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tipologieStandard\"])) {\r\n this.tipologieStandard = [] as any;\r\n for (let item of _data[\"tipologieStandard\"])\r\n this.tipologieStandard!.push(ServizioTipologiaStandard.fromJS(item));\r\n }\r\n else {\r\n this.tipologieStandard = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTipologiaStandardResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTipologiaStandardResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tipologieStandard)) {\r\n data[\"tipologieStandard\"] = [];\r\n for (let item of this.tipologieStandard)\r\n data[\"tipologieStandard\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTipologiaStandardResponse extends IOkApiResponse {\r\n tipologieStandard?: ServizioTipologiaStandard[] | null;\r\n}\r\n\r\nexport class GetValuteResponse extends OkApiResponse implements IGetValuteResponse {\r\n valute?: ValutaCorrente[];\r\n\r\n constructor(data?: IGetValuteResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"valute\"])) {\r\n this.valute = [] as any;\r\n for (let item of _data[\"valute\"])\r\n this.valute!.push(ValutaCorrente.fromJS(item));\r\n }\r\n else {\r\n this.valute = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetValuteResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetValuteResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.valute)) {\r\n data[\"valute\"] = [];\r\n for (let item of this.valute)\r\n data[\"valute\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetValuteResponse extends IOkApiResponse {\r\n valute?: ValutaCorrente[];\r\n}\r\n\r\nexport class ValutaCorrente implements IValutaCorrente {\r\n /** ID della valuta */\r\n id?: number;\r\n /** Nome visualizzato */\r\n nome?: string;\r\n /** Codice a tre lettere della valuta */\r\n codice?: string;\r\n /** Cambio applicato nelle offerte */\r\n cambio?: number | null;\r\n /** Cambio reale da usare nei pagamenti */\r\n cambioReale?: number | null;\r\n\r\n constructor(data?: IValutaCorrente) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.cambio = _data[\"cambio\"] !== undefined ? _data[\"cambio\"] : null;\r\n this.cambioReale = _data[\"cambioReale\"] !== undefined ? _data[\"cambioReale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ValutaCorrente {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ValutaCorrente();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"cambio\"] = this.cambio !== undefined ? this.cambio : null;\r\n data[\"cambioReale\"] = this.cambioReale !== undefined ? this.cambioReale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValutaCorrente {\r\n /** ID della valuta */\r\n id?: number;\r\n /** Nome visualizzato */\r\n nome?: string;\r\n /** Codice a tre lettere della valuta */\r\n codice?: string;\r\n /** Cambio applicato nelle offerte */\r\n cambio?: number | null;\r\n /** Cambio reale da usare nei pagamenti */\r\n cambioReale?: number | null;\r\n}\r\n\r\nexport class NrTableResponseOfEmissioneRow extends OkApiResponse implements INrTableResponseOfEmissioneRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EmissioneRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfEmissioneRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(EmissioneRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfEmissioneRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfEmissioneRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfEmissioneRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EmissioneRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class EmissioneRow implements IEmissioneRow {\r\n offertaID?: number;\r\n offertaDatoID?: number;\r\n partenza?: string;\r\n contattoAgenziaID?: number;\r\n operatore?: EOperatore;\r\n agenzia?: string | null;\r\n pagamento?: string | null;\r\n descrizione?: string | null;\r\n pnr?: string | null;\r\n pagaSubito?: boolean;\r\n dataPagamento?: string | null;\r\n dataPresaInCarico?: string | null;\r\n dataRichiesta?: string;\r\n dataEmissione?: string | null;\r\n okContabilita?: boolean;\r\n emesso?: boolean;\r\n utenteConferma?: string | null;\r\n\r\n constructor(data?: IEmissioneRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.agenzia = _data[\"agenzia\"] !== undefined ? _data[\"agenzia\"] : null;\r\n this.pagamento = _data[\"pagamento\"] !== undefined ? _data[\"pagamento\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.pnr = _data[\"pnr\"] !== undefined ? _data[\"pnr\"] : null;\r\n this.pagaSubito = _data[\"pagaSubito\"] !== undefined ? _data[\"pagaSubito\"] : null;\r\n this.dataPagamento = _data[\"dataPagamento\"] !== undefined ? _data[\"dataPagamento\"] : null;\r\n this.dataPresaInCarico = _data[\"dataPresaInCarico\"] !== undefined ? _data[\"dataPresaInCarico\"] : null;\r\n this.dataRichiesta = _data[\"dataRichiesta\"] !== undefined ? _data[\"dataRichiesta\"] : null;\r\n this.dataEmissione = _data[\"dataEmissione\"] !== undefined ? _data[\"dataEmissione\"] : null;\r\n this.okContabilita = _data[\"okContabilita\"] !== undefined ? _data[\"okContabilita\"] : null;\r\n this.emesso = _data[\"emesso\"] !== undefined ? _data[\"emesso\"] : null;\r\n this.utenteConferma = _data[\"utenteConferma\"] !== undefined ? _data[\"utenteConferma\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EmissioneRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EmissioneRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"agenzia\"] = this.agenzia !== undefined ? this.agenzia : null;\r\n data[\"pagamento\"] = this.pagamento !== undefined ? this.pagamento : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"pnr\"] = this.pnr !== undefined ? this.pnr : null;\r\n data[\"pagaSubito\"] = this.pagaSubito !== undefined ? this.pagaSubito : null;\r\n data[\"dataPagamento\"] = this.dataPagamento !== undefined ? this.dataPagamento : null;\r\n data[\"dataPresaInCarico\"] = this.dataPresaInCarico !== undefined ? this.dataPresaInCarico : null;\r\n data[\"dataRichiesta\"] = this.dataRichiesta !== undefined ? this.dataRichiesta : null;\r\n data[\"dataEmissione\"] = this.dataEmissione !== undefined ? this.dataEmissione : null;\r\n data[\"okContabilita\"] = this.okContabilita !== undefined ? this.okContabilita : null;\r\n data[\"emesso\"] = this.emesso !== undefined ? this.emesso : null;\r\n data[\"utenteConferma\"] = this.utenteConferma !== undefined ? this.utenteConferma : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmissioneRow {\r\n offertaID?: number;\r\n offertaDatoID?: number;\r\n partenza?: string;\r\n contattoAgenziaID?: number;\r\n operatore?: EOperatore;\r\n agenzia?: string | null;\r\n pagamento?: string | null;\r\n descrizione?: string | null;\r\n pnr?: string | null;\r\n pagaSubito?: boolean;\r\n dataPagamento?: string | null;\r\n dataPresaInCarico?: string | null;\r\n dataRichiesta?: string;\r\n dataEmissione?: string | null;\r\n okContabilita?: boolean;\r\n emesso?: boolean;\r\n utenteConferma?: string | null;\r\n}\r\n\r\nexport class GetEmissioniRequest extends NrTableRequest implements IGetEmissioniRequest {\r\n offertaID?: number | null;\r\n utenteConfermaID?: number | null;\r\n tipoLista?: ETipoListaEmissioni;\r\n contattoAgenziaID?: number | null;\r\n pagamentoID?: number | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n scadenzaEmissioneDal?: string | null;\r\n scadenzaEmissioneAl?: string | null;\r\n scadenzaPagamentoDal?: string | null;\r\n scadenzaPagamentoAl?: string | null;\r\n operatore?: EOperatore | null;\r\n\r\n constructor(data?: IGetEmissioniRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.utenteConfermaID = _data[\"utenteConfermaID\"] !== undefined ? _data[\"utenteConfermaID\"] : null;\r\n this.tipoLista = _data[\"tipoLista\"] !== undefined ? _data[\"tipoLista\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.scadenzaEmissioneDal = _data[\"scadenzaEmissioneDal\"] !== undefined ? _data[\"scadenzaEmissioneDal\"] : null;\r\n this.scadenzaEmissioneAl = _data[\"scadenzaEmissioneAl\"] !== undefined ? _data[\"scadenzaEmissioneAl\"] : null;\r\n this.scadenzaPagamentoDal = _data[\"scadenzaPagamentoDal\"] !== undefined ? _data[\"scadenzaPagamentoDal\"] : null;\r\n this.scadenzaPagamentoAl = _data[\"scadenzaPagamentoAl\"] !== undefined ? _data[\"scadenzaPagamentoAl\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetEmissioniRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetEmissioniRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"utenteConfermaID\"] = this.utenteConfermaID !== undefined ? this.utenteConfermaID : null;\r\n data[\"tipoLista\"] = this.tipoLista !== undefined ? this.tipoLista : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"scadenzaEmissioneDal\"] = this.scadenzaEmissioneDal !== undefined ? this.scadenzaEmissioneDal : null;\r\n data[\"scadenzaEmissioneAl\"] = this.scadenzaEmissioneAl !== undefined ? this.scadenzaEmissioneAl : null;\r\n data[\"scadenzaPagamentoDal\"] = this.scadenzaPagamentoDal !== undefined ? this.scadenzaPagamentoDal : null;\r\n data[\"scadenzaPagamentoAl\"] = this.scadenzaPagamentoAl !== undefined ? this.scadenzaPagamentoAl : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetEmissioniRequest extends INrTableRequest {\r\n offertaID?: number | null;\r\n utenteConfermaID?: number | null;\r\n tipoLista?: ETipoListaEmissioni;\r\n contattoAgenziaID?: number | null;\r\n pagamentoID?: number | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n scadenzaEmissioneDal?: string | null;\r\n scadenzaEmissioneAl?: string | null;\r\n scadenzaPagamentoDal?: string | null;\r\n scadenzaPagamentoAl?: string | null;\r\n operatore?: EOperatore | null;\r\n}\r\n\r\nexport enum ETipoListaEmissioni {\r\n Tutti = \"Tutti\",\r\n DaAutorizzare = \"DaAutorizzare\",\r\n DaEmettere = \"DaEmettere\",\r\n Emessi = \"Emessi\",\r\n NonPresiInCarico = \"NonPresiInCarico\",\r\n PresiInCarico = \"PresiInCarico\",\r\n}\r\n\r\nexport class SetOkContabilitaRequest extends ApiRequest implements ISetOkContabilitaRequest {\r\n righe?: OffertaRiga[] | null;\r\n\r\n constructor(data?: ISetOkContabilitaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(OffertaRiga.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetOkContabilitaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetOkContabilitaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetOkContabilitaRequest extends IApiRequest {\r\n righe?: OffertaRiga[] | null;\r\n}\r\n\r\nexport class OffertaRiga implements IOffertaRiga {\r\n offertaID?: number;\r\n rigaID?: number;\r\n\r\n constructor(data?: IOffertaRiga) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaRiga {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaRiga();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaRiga {\r\n offertaID?: number;\r\n rigaID?: number;\r\n}\r\n\r\nexport class SetPresaInCaricoRequest extends ApiRequest implements ISetPresaInCaricoRequest {\r\n righe?: OffertaRiga[] | null;\r\n\r\n constructor(data?: ISetPresaInCaricoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(OffertaRiga.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetPresaInCaricoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetPresaInCaricoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetPresaInCaricoRequest extends IApiRequest {\r\n righe?: OffertaRiga[] | null;\r\n}\r\n\r\nexport class LinkEditResponse extends OkApiResponse implements ILinkEditResponse {\r\n link?: PageLink | null;\r\n\r\n constructor(data?: ILinkEditResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.link = _data[\"link\"] ? PageLink.fromJS(_data[\"link\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LinkEditResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LinkEditResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"link\"] = this.link ? this.link.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILinkEditResponse extends IOkApiResponse {\r\n link?: PageLink | null;\r\n}\r\n\r\nexport class AddLinkContentRequest extends LocalizedRequest implements IAddLinkContentRequest {\r\n linkID?: number;\r\n tipoEntita?: ETipoEntita;\r\n entitaID?: number;\r\n\r\n constructor(data?: IAddLinkContentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.linkID = _data[\"linkID\"] !== undefined ? _data[\"linkID\"] : null;\r\n this.tipoEntita = _data[\"tipoEntita\"] !== undefined ? _data[\"tipoEntita\"] : null;\r\n this.entitaID = _data[\"entitaID\"] !== undefined ? _data[\"entitaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddLinkContentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddLinkContentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"linkID\"] = this.linkID !== undefined ? this.linkID : null;\r\n data[\"tipoEntita\"] = this.tipoEntita !== undefined ? this.tipoEntita : null;\r\n data[\"entitaID\"] = this.entitaID !== undefined ? this.entitaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddLinkContentRequest extends ILocalizedRequest {\r\n linkID?: number;\r\n tipoEntita?: ETipoEntita;\r\n entitaID?: number;\r\n}\r\n\r\nexport class LinkEditRequest extends ApiRequest implements ILinkEditRequest {\r\n link?: PageLink | null;\r\n\r\n constructor(data?: ILinkEditRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.link = _data[\"link\"] ? PageLink.fromJS(_data[\"link\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LinkEditRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LinkEditRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"link\"] = this.link ? this.link.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILinkEditRequest extends IApiRequest {\r\n link?: PageLink | null;\r\n}\r\n\r\nexport class EditLinkContentRequest extends LocalizedRequest implements IEditLinkContentRequest {\r\n contenuto?: PageLinkContent | null;\r\n\r\n constructor(data?: IEditLinkContentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contenuto = _data[\"contenuto\"] ? PageLinkContent.fromJS(_data[\"contenuto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EditLinkContentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EditLinkContentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contenuto\"] = this.contenuto ? this.contenuto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEditLinkContentRequest extends ILocalizedRequest {\r\n contenuto?: PageLinkContent | null;\r\n}\r\n\r\nexport class DeleteLinkContentRequest extends LocalizedRequest implements IDeleteLinkContentRequest {\r\n linkID?: number;\r\n linkContentID?: number;\r\n\r\n constructor(data?: IDeleteLinkContentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.linkID = _data[\"linkID\"] !== undefined ? _data[\"linkID\"] : null;\r\n this.linkContentID = _data[\"linkContentID\"] !== undefined ? _data[\"linkContentID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteLinkContentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteLinkContentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"linkID\"] = this.linkID !== undefined ? this.linkID : null;\r\n data[\"linkContentID\"] = this.linkContentID !== undefined ? this.linkContentID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteLinkContentRequest extends ILocalizedRequest {\r\n linkID?: number;\r\n linkContentID?: number;\r\n}\r\n\r\nexport class GetCmsPagesResponse extends OkApiResponse implements IGetCmsPagesResponse {\r\n pages?: CmsPage[] | null;\r\n\r\n constructor(data?: IGetCmsPagesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"pages\"])) {\r\n this.pages = [] as any;\r\n for (let item of _data[\"pages\"])\r\n this.pages!.push(CmsPage.fromJS(item));\r\n }\r\n else {\r\n this.pages = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCmsPagesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCmsPagesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.pages)) {\r\n data[\"pages\"] = [];\r\n for (let item of this.pages)\r\n data[\"pages\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCmsPagesResponse extends IOkApiResponse {\r\n pages?: CmsPage[] | null;\r\n}\r\n\r\nexport class CmsPage implements ICmsPage {\r\n id?: number;\r\n nome?: string | null;\r\n sezioni?: { [key in keyof typeof EPosizioneLink]?: CmsPageSection; } | null;\r\n\r\n constructor(data?: ICmsPage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (_data[\"sezioni\"]) {\r\n this.sezioni = {} as any;\r\n for (let key in _data[\"sezioni\"]) {\r\n if (_data[\"sezioni\"].hasOwnProperty(key))\r\n (this.sezioni)![key] = _data[\"sezioni\"][key] ? CmsPageSection.fromJS(_data[\"sezioni\"][key]) : new CmsPageSection();\r\n }\r\n }\r\n else {\r\n this.sezioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CmsPage {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CmsPage();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (this.sezioni) {\r\n data[\"sezioni\"] = {};\r\n for (let key in this.sezioni) {\r\n if (this.sezioni.hasOwnProperty(key))\r\n (data[\"sezioni\"])[key] = this.sezioni[key] ? this.sezioni[key].toJSON() : null;\r\n }\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICmsPage {\r\n id?: number;\r\n nome?: string | null;\r\n sezioni?: { [key in keyof typeof EPosizioneLink]?: CmsPageSection; } | null;\r\n}\r\n\r\nexport class CmsPageSection implements ICmsPageSection {\r\n nome?: string | null;\r\n help?: string | null;\r\n links?: CmsPageLink[] | null;\r\n linkConsentiti?: ETipoLink[] | null;\r\n contenutiConsentiti?: ETipoEntita[] | null;\r\n\r\n constructor(data?: ICmsPageSection) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.help = _data[\"help\"] !== undefined ? _data[\"help\"] : null;\r\n if (Array.isArray(_data[\"links\"])) {\r\n this.links = [] as any;\r\n for (let item of _data[\"links\"])\r\n this.links!.push(CmsPageLink.fromJS(item));\r\n }\r\n else {\r\n this.links = null;\r\n }\r\n if (Array.isArray(_data[\"linkConsentiti\"])) {\r\n this.linkConsentiti = [] as any;\r\n for (let item of _data[\"linkConsentiti\"])\r\n this.linkConsentiti!.push(item);\r\n }\r\n else {\r\n this.linkConsentiti = null;\r\n }\r\n if (Array.isArray(_data[\"contenutiConsentiti\"])) {\r\n this.contenutiConsentiti = [] as any;\r\n for (let item of _data[\"contenutiConsentiti\"])\r\n this.contenutiConsentiti!.push(item);\r\n }\r\n else {\r\n this.contenutiConsentiti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CmsPageSection {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CmsPageSection();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"help\"] = this.help !== undefined ? this.help : null;\r\n if (Array.isArray(this.links)) {\r\n data[\"links\"] = [];\r\n for (let item of this.links)\r\n data[\"links\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.linkConsentiti)) {\r\n data[\"linkConsentiti\"] = [];\r\n for (let item of this.linkConsentiti)\r\n data[\"linkConsentiti\"].push(item);\r\n }\r\n if (Array.isArray(this.contenutiConsentiti)) {\r\n data[\"contenutiConsentiti\"] = [];\r\n for (let item of this.contenutiConsentiti)\r\n data[\"contenutiConsentiti\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICmsPageSection {\r\n nome?: string | null;\r\n help?: string | null;\r\n links?: CmsPageLink[] | null;\r\n linkConsentiti?: ETipoLink[] | null;\r\n contenutiConsentiti?: ETipoEntita[] | null;\r\n}\r\n\r\nexport class CmsPageLink implements ICmsPageLink {\r\n id?: number;\r\n nome?: string | null;\r\n ordine?: number;\r\n tipo?: ETipoLink;\r\n url?: string | null;\r\n icona?: string | null;\r\n link?: PageLink | null;\r\n contenuti?: CmsPageContent[] | null;\r\n\r\n constructor(data?: ICmsPageLink) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.icona = _data[\"icona\"] !== undefined ? _data[\"icona\"] : null;\r\n this.link = _data[\"link\"] ? PageLink.fromJS(_data[\"link\"]) : null;\r\n if (Array.isArray(_data[\"contenuti\"])) {\r\n this.contenuti = [] as any;\r\n for (let item of _data[\"contenuti\"])\r\n this.contenuti!.push(CmsPageContent.fromJS(item));\r\n }\r\n else {\r\n this.contenuti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CmsPageLink {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CmsPageLink();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"icona\"] = this.icona !== undefined ? this.icona : null;\r\n data[\"link\"] = this.link ? this.link.toJSON() : null;\r\n if (Array.isArray(this.contenuti)) {\r\n data[\"contenuti\"] = [];\r\n for (let item of this.contenuti)\r\n data[\"contenuti\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICmsPageLink {\r\n id?: number;\r\n nome?: string | null;\r\n ordine?: number;\r\n tipo?: ETipoLink;\r\n url?: string | null;\r\n icona?: string | null;\r\n link?: PageLink | null;\r\n contenuti?: CmsPageContent[] | null;\r\n}\r\n\r\nexport class CmsPageContent implements ICmsPageContent {\r\n id?: number;\r\n contenuto?: PageLinkContent | null;\r\n title?: string | null;\r\n visibile?: boolean;\r\n missing?: boolean;\r\n\r\n constructor(data?: ICmsPageContent) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contenuto = _data[\"contenuto\"] ? PageLinkContent.fromJS(_data[\"contenuto\"]) : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.visibile = _data[\"visibile\"] !== undefined ? _data[\"visibile\"] : null;\r\n this.missing = _data[\"missing\"] !== undefined ? _data[\"missing\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CmsPageContent {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CmsPageContent();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contenuto\"] = this.contenuto ? this.contenuto.toJSON() : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"visibile\"] = this.visibile !== undefined ? this.visibile : null;\r\n data[\"missing\"] = this.missing !== undefined ? this.missing : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICmsPageContent {\r\n id?: number;\r\n contenuto?: PageLinkContent | null;\r\n title?: string | null;\r\n visibile?: boolean;\r\n missing?: boolean;\r\n}\r\n\r\nexport class PageContentResponse extends OkApiResponse implements IPageContentResponse {\r\n content?: PageLinkContent | null;\r\n\r\n constructor(data?: IPageContentResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.content = _data[\"content\"] ? PageLinkContent.fromJS(_data[\"content\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageContentResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageContentResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"content\"] = this.content ? this.content.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageContentResponse extends IOkApiResponse {\r\n content?: PageLinkContent | null;\r\n}\r\n\r\nexport class PageContentRequest extends LocalizedRequest implements IPageContentRequest {\r\n id?: number;\r\n\r\n constructor(data?: IPageContentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageContentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageContentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageContentRequest extends ILocalizedRequest {\r\n id?: number;\r\n}\r\n\r\nexport class NrTableResponseOfPageContentRow extends OkApiResponse implements INrTableResponseOfPageContentRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PageContentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfPageContentRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(PageContentRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfPageContentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfPageContentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfPageContentRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PageContentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class PageContentListResponse extends NrTableResponseOfPageContentRow implements IPageContentListResponse {\r\n\r\n constructor(data?: IPageContentListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PageContentListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageContentListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageContentListResponse extends INrTableResponseOfPageContentRow {\r\n}\r\n\r\nexport class PageContentRow implements IPageContentRow {\r\n pageContentName?: string | null;\r\n pageContent?: PageLinkContent | null;\r\n\r\n constructor(data?: IPageContentRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pageContentName = _data[\"pageContentName\"] !== undefined ? _data[\"pageContentName\"] : null;\r\n this.pageContent = _data[\"pageContent\"] ? PageLinkContent.fromJS(_data[\"pageContent\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageContentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageContentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pageContentName\"] = this.pageContentName !== undefined ? this.pageContentName : null;\r\n data[\"pageContent\"] = this.pageContent ? this.pageContent.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageContentRow {\r\n pageContentName?: string | null;\r\n pageContent?: PageLinkContent | null;\r\n}\r\n\r\nexport class PageContentListRequest extends NrTableRequest implements IPageContentListRequest {\r\n pagelinkId?: number;\r\n showDeleted?: boolean;\r\n\r\n constructor(data?: IPageContentListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pagelinkId = _data[\"pagelinkId\"] !== undefined ? _data[\"pagelinkId\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageContentListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageContentListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pagelinkId\"] = this.pagelinkId !== undefined ? this.pagelinkId : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageContentListRequest extends INrTableRequest {\r\n pagelinkId?: number;\r\n showDeleted?: boolean;\r\n}\r\n\r\nexport class PageLinkResponse extends OkApiResponse implements IPageLinkResponse {\r\n link?: PageLink | null;\r\n\r\n constructor(data?: IPageLinkResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.link = _data[\"link\"] ? PageLink.fromJS(_data[\"link\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"link\"] = this.link ? this.link.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkResponse extends IOkApiResponse {\r\n link?: PageLink | null;\r\n}\r\n\r\nexport class PageLinkRequest extends LocalizedRequest implements IPageLinkRequest {\r\n id?: number;\r\n\r\n constructor(data?: IPageLinkRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkRequest extends ILocalizedRequest {\r\n id?: number;\r\n}\r\n\r\nexport class NrTableResponseOfPageLinkRow extends OkApiResponse implements INrTableResponseOfPageLinkRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PageLinkRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfPageLinkRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(PageLinkRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfPageLinkRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfPageLinkRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfPageLinkRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PageLinkRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class PageLinkListResponse extends NrTableResponseOfPageLinkRow implements IPageLinkListResponse {\r\n\r\n constructor(data?: IPageLinkListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PageLinkListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkListResponse extends INrTableResponseOfPageLinkRow {\r\n}\r\n\r\nexport class PageLinkRow implements IPageLinkRow {\r\n pageLink?: PageLink | null;\r\n\r\n constructor(data?: IPageLinkRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pageLink = _data[\"pageLink\"] ? PageLink.fromJS(_data[\"pageLink\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pageLink\"] = this.pageLink ? this.pageLink.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkRow {\r\n pageLink?: PageLink | null;\r\n}\r\n\r\nexport class PageLinkListRequest extends NrTableRequest implements IPageLinkListRequest {\r\n operator?: EOperatore | null;\r\n position?: EPosizioneLink | null;\r\n type?: ETipoLink | null;\r\n name?: string | null;\r\n showDeleted?: boolean | null;\r\n\r\n constructor(data?: IPageLinkListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n this.position = _data[\"position\"] !== undefined ? _data[\"position\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n data[\"position\"] = this.position !== undefined ? this.position : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkListRequest extends INrTableRequest {\r\n operator?: EOperatore | null;\r\n position?: EPosizioneLink | null;\r\n type?: ETipoLink | null;\r\n name?: string | null;\r\n showDeleted?: boolean | null;\r\n}\r\n\r\nexport class GetSiteBannersResponse extends OkApiResponse implements IGetSiteBannersResponse {\r\n banners?: Banner[] | null;\r\n\r\n constructor(data?: IGetSiteBannersResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"banners\"])) {\r\n this.banners = [] as any;\r\n for (let item of _data[\"banners\"])\r\n this.banners!.push(Banner.fromJS(item));\r\n }\r\n else {\r\n this.banners = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSiteBannersResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSiteBannersResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.banners)) {\r\n data[\"banners\"] = [];\r\n for (let item of this.banners)\r\n data[\"banners\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSiteBannersResponse extends IOkApiResponse {\r\n banners?: Banner[] | null;\r\n}\r\n\r\nexport class Banner implements IBanner {\r\n id?: number;\r\n imgUrl?: string | null;\r\n title?: string | null;\r\n sunto?: string | null;\r\n destCode?: string | null;\r\n offViaggio?: boolean;\r\n destination?: Destination | null;\r\n bannerType?: EBannerType;\r\n ordine?: number;\r\n attachment?: string | null;\r\n attachmentId?: number;\r\n attachmentFileType?: string | null;\r\n\r\n constructor(data?: IBanner) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.imgUrl = _data[\"imgUrl\"] !== undefined ? _data[\"imgUrl\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.sunto = _data[\"sunto\"] !== undefined ? _data[\"sunto\"] : null;\r\n this.destCode = _data[\"destCode\"] !== undefined ? _data[\"destCode\"] : null;\r\n this.offViaggio = _data[\"offViaggio\"] !== undefined ? _data[\"offViaggio\"] : null;\r\n this.destination = _data[\"destination\"] ? Destination.fromJS(_data[\"destination\"]) : null;\r\n this.bannerType = _data[\"bannerType\"] !== undefined ? _data[\"bannerType\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.attachment = _data[\"attachment\"] !== undefined ? _data[\"attachment\"] : null;\r\n this.attachmentId = _data[\"attachmentId\"] !== undefined ? _data[\"attachmentId\"] : null;\r\n this.attachmentFileType = _data[\"attachmentFileType\"] !== undefined ? _data[\"attachmentFileType\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Banner {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Banner();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"imgUrl\"] = this.imgUrl !== undefined ? this.imgUrl : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"sunto\"] = this.sunto !== undefined ? this.sunto : null;\r\n data[\"destCode\"] = this.destCode !== undefined ? this.destCode : null;\r\n data[\"offViaggio\"] = this.offViaggio !== undefined ? this.offViaggio : null;\r\n data[\"destination\"] = this.destination ? this.destination.toJSON() : null;\r\n data[\"bannerType\"] = this.bannerType !== undefined ? this.bannerType : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"attachment\"] = this.attachment !== undefined ? this.attachment : null;\r\n data[\"attachmentId\"] = this.attachmentId !== undefined ? this.attachmentId : null;\r\n data[\"attachmentFileType\"] = this.attachmentFileType !== undefined ? this.attachmentFileType : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBanner {\r\n id?: number;\r\n imgUrl?: string | null;\r\n title?: string | null;\r\n sunto?: string | null;\r\n destCode?: string | null;\r\n offViaggio?: boolean;\r\n destination?: Destination | null;\r\n bannerType?: EBannerType;\r\n ordine?: number;\r\n attachment?: string | null;\r\n attachmentId?: number;\r\n attachmentFileType?: string | null;\r\n}\r\n\r\nexport enum EBannerType {\r\n Offerta = \"offerta\",\r\n Banner = \"banner\",\r\n}\r\n\r\nexport class GetSiteBannersRequest extends SiteRequest implements IGetSiteBannersRequest {\r\n addCoBranded?: boolean;\r\n\r\n constructor(data?: IGetSiteBannersRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.addCoBranded = _data[\"addCoBranded\"] !== undefined ? _data[\"addCoBranded\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSiteBannersRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSiteBannersRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"addCoBranded\"] = this.addCoBranded !== undefined ? this.addCoBranded : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSiteBannersRequest extends ISiteRequest {\r\n addCoBranded?: boolean;\r\n}\r\n\r\nexport class GetSiteBannerSXResponse extends OkApiResponse implements IGetSiteBannerSXResponse {\r\n bannerSX?: BannerSX[] | null;\r\n\r\n constructor(data?: IGetSiteBannerSXResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"bannerSX\"])) {\r\n this.bannerSX = [] as any;\r\n for (let item of _data[\"bannerSX\"])\r\n this.bannerSX!.push(BannerSX.fromJS(item));\r\n }\r\n else {\r\n this.bannerSX = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSiteBannerSXResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSiteBannerSXResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.bannerSX)) {\r\n data[\"bannerSX\"] = [];\r\n for (let item of this.bannerSX)\r\n data[\"bannerSX\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSiteBannerSXResponse extends IOkApiResponse {\r\n bannerSX?: BannerSX[] | null;\r\n}\r\n\r\nexport class BannerSX implements IBannerSX {\r\n id?: number;\r\n title?: string | null;\r\n content?: string | null;\r\n grp?: number;\r\n\r\n constructor(data?: IBannerSX) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.content = _data[\"content\"] !== undefined ? _data[\"content\"] : null;\r\n this.grp = _data[\"grp\"] !== undefined ? _data[\"grp\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BannerSX {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BannerSX();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"content\"] = this.content !== undefined ? this.content : null;\r\n data[\"grp\"] = this.grp !== undefined ? this.grp : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBannerSX {\r\n id?: number;\r\n title?: string | null;\r\n content?: string | null;\r\n grp?: number;\r\n}\r\n\r\nexport class GetSiteBannerSXRequest extends SiteRequest implements IGetSiteBannerSXRequest {\r\n\r\n constructor(data?: IGetSiteBannerSXRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetSiteBannerSXRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSiteBannerSXRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSiteBannerSXRequest extends ISiteRequest {\r\n}\r\n\r\nexport class GetSiteNewsResponse extends OkApiResponse implements IGetSiteNewsResponse {\r\n news?: NewsArticle[] | null;\r\n\r\n constructor(data?: IGetSiteNewsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"news\"])) {\r\n this.news = [] as any;\r\n for (let item of _data[\"news\"])\r\n this.news!.push(NewsArticle.fromJS(item));\r\n }\r\n else {\r\n this.news = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSiteNewsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSiteNewsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.news)) {\r\n data[\"news\"] = [];\r\n for (let item of this.news)\r\n data[\"news\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSiteNewsResponse extends IOkApiResponse {\r\n news?: NewsArticle[] | null;\r\n}\r\n\r\nexport class NewsArticle implements INewsArticle {\r\n id?: number;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n testo?: string | null;\r\n testoShort?: string | null;\r\n tipoNews?: ENewsType;\r\n updated?: string | null;\r\n allegati?: ArticoloAllegato[] | null;\r\n\r\n constructor(data?: INewsArticle) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.sunto = _data[\"sunto\"] !== undefined ? _data[\"sunto\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.testoShort = _data[\"testoShort\"] !== undefined ? _data[\"testoShort\"] : null;\r\n this.tipoNews = _data[\"tipoNews\"] !== undefined ? _data[\"tipoNews\"] : null;\r\n this.updated = _data[\"updated\"] !== undefined ? _data[\"updated\"] : null;\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(ArticoloAllegato.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NewsArticle {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NewsArticle();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"sunto\"] = this.sunto !== undefined ? this.sunto : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"testoShort\"] = this.testoShort !== undefined ? this.testoShort : null;\r\n data[\"tipoNews\"] = this.tipoNews !== undefined ? this.tipoNews : null;\r\n data[\"updated\"] = this.updated !== undefined ? this.updated : null;\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INewsArticle {\r\n id?: number;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n testo?: string | null;\r\n testoShort?: string | null;\r\n tipoNews?: ENewsType;\r\n updated?: string | null;\r\n allegati?: ArticoloAllegato[] | null;\r\n}\r\n\r\nexport enum ENewsType {\r\n Approfondimenti = \"approfondimenti\",\r\n UltimeNotizie = \"ultimeNotizie\",\r\n InPrimoPiano = \"inPrimoPiano\",\r\n}\r\n\r\nexport class GetSiteNewsRequest extends SiteRequest implements IGetSiteNewsRequest {\r\n\r\n constructor(data?: IGetSiteNewsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetSiteNewsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSiteNewsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSiteNewsRequest extends ISiteRequest {\r\n}\r\n\r\nexport class ContentEditRequest extends ApiRequest implements IContentEditRequest {\r\n content?: PageLinkContent | null;\r\n\r\n constructor(data?: IContentEditRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.content = _data[\"content\"] ? PageLinkContent.fromJS(_data[\"content\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContentEditRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContentEditRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"content\"] = this.content ? this.content.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContentEditRequest extends IApiRequest {\r\n content?: PageLinkContent | null;\r\n}\r\n\r\nexport class SetLinkContentsOrderRequest extends LocalizedRequest implements ISetLinkContentsOrderRequest {\r\n linkID?: number;\r\n sortedIds?: number[] | null;\r\n\r\n constructor(data?: ISetLinkContentsOrderRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.linkID = _data[\"linkID\"] !== undefined ? _data[\"linkID\"] : null;\r\n if (Array.isArray(_data[\"sortedIds\"])) {\r\n this.sortedIds = [] as any;\r\n for (let item of _data[\"sortedIds\"])\r\n this.sortedIds!.push(item);\r\n }\r\n else {\r\n this.sortedIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetLinkContentsOrderRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetLinkContentsOrderRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"linkID\"] = this.linkID !== undefined ? this.linkID : null;\r\n if (Array.isArray(this.sortedIds)) {\r\n data[\"sortedIds\"] = [];\r\n for (let item of this.sortedIds)\r\n data[\"sortedIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetLinkContentsOrderRequest extends ILocalizedRequest {\r\n linkID?: number;\r\n sortedIds?: number[] | null;\r\n}\r\n\r\nexport class SetLinksOrderRequest extends ApiRequest implements ISetLinksOrderRequest {\r\n sortedIds?: number[] | null;\r\n\r\n constructor(data?: ISetLinksOrderRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"sortedIds\"])) {\r\n this.sortedIds = [] as any;\r\n for (let item of _data[\"sortedIds\"])\r\n this.sortedIds!.push(item);\r\n }\r\n else {\r\n this.sortedIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetLinksOrderRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetLinksOrderRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.sortedIds)) {\r\n data[\"sortedIds\"] = [];\r\n for (let item of this.sortedIds)\r\n data[\"sortedIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetLinksOrderRequest extends IApiRequest {\r\n sortedIds?: number[] | null;\r\n}\r\n\r\nexport class ContactsGetAgencyGroupsResponse extends OkApiResponse implements IContactsGetAgencyGroupsResponse {\r\n agencyGroups?: AgencyGroup[];\r\n\r\n constructor(data?: IContactsGetAgencyGroupsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"agencyGroups\"])) {\r\n this.agencyGroups = [] as any;\r\n for (let item of _data[\"agencyGroups\"])\r\n this.agencyGroups!.push(AgencyGroup.fromJS(item));\r\n }\r\n else {\r\n this.agencyGroups = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContactsGetAgencyGroupsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContactsGetAgencyGroupsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.agencyGroups)) {\r\n data[\"agencyGroups\"] = [];\r\n for (let item of this.agencyGroups)\r\n data[\"agencyGroups\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContactsGetAgencyGroupsResponse extends IOkApiResponse {\r\n agencyGroups?: AgencyGroup[];\r\n}\r\n\r\nexport class AgencyGroup implements IAgencyGroup {\r\n id?: number;\r\n name?: string;\r\n\r\n constructor(data?: IAgencyGroup) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AgencyGroup {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AgencyGroup();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAgencyGroup {\r\n id?: number;\r\n name?: string;\r\n}\r\n\r\nexport class ContactsGetAgencyGroupsRequest extends ApiRequest implements IContactsGetAgencyGroupsRequest {\r\n\r\n constructor(data?: IContactsGetAgencyGroupsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ContactsGetAgencyGroupsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContactsGetAgencyGroupsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContactsGetAgencyGroupsRequest extends IApiRequest {\r\n}\r\n\r\nexport class GetContattoResponse extends OkApiResponse implements IGetContattoResponse {\r\n contatto?: ContactListRow;\r\n mappa?: Mappa;\r\n logo?: LogoInfo;\r\n\r\n constructor(data?: IGetContattoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contatto = _data[\"contatto\"] ? ContactListRow.fromJS(_data[\"contatto\"]) : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n this.logo = _data[\"logo\"] ? LogoInfo.fromJS(_data[\"logo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetContattoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetContattoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n data[\"logo\"] = this.logo ? this.logo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetContattoResponse extends IOkApiResponse {\r\n contatto?: ContactListRow;\r\n mappa?: Mappa;\r\n logo?: LogoInfo;\r\n}\r\n\r\n/** Classe che rappresenta una singola riga dell'elenco contatti */\r\nexport class ContactListRow implements IContactListRow {\r\n /** ID del contatto */\r\n id?: number;\r\n /** Nome proprio per le persone oppure nome colloquiale per agenzie e società */\r\n nome?: string | null;\r\n /** Cognome per le persone fisiche oppure ragione sociale per agenzie e società */\r\n cognome?: string | null;\r\n /** Nome del luogo associato al contatto */\r\n luogo?: string | null;\r\n /** True se il luogo associato è stato eliminato */\r\n luogoEliminato?: boolean;\r\n /** Nome del luogo associato al contatto */\r\n luogoID?: number | null;\r\n /** Nome della regione del luogo associato al contatto */\r\n regione?: string | null;\r\n /** Nome del paese del luogo associato al contatto */\r\n paese?: string | null;\r\n /** CAP dell'indirizzo del contatto */\r\n cap?: string | null;\r\n /** Indirizzo del contatto, incluso il numero civico */\r\n indirizzo?: string | null;\r\n /** Numero di telefono del contatto */\r\n telefono?: string | null;\r\n /** Partita IVA del contatto */\r\n partitaIVA?: string | null;\r\n /** Indirizzo email del contatto */\r\n email?: string | null;\r\n /** Nome visualizzato del contatto promotore */\r\n promotore?: string | null;\r\n /** Nome della categoria per le agenzie */\r\n categoria?: string | null;\r\n /** Nome visualizzato del contatto network per le agenzie */\r\n network?: string | null;\r\n /** Nome dell'accordo */\r\n accordoCommerciale?: string | null;\r\n /** Nome del metodo di pagamento dei servizi a terra */\r\n pagamentoServiziTerra?: string | null;\r\n /** Nome del metodo di pagamento dei servizi volo (biglietteria) */\r\n pagamentoServiziVolo?: string | null;\r\n /** True se i dati di un contatto hotel sono completi */\r\n datiHotelOk?: boolean;\r\n /** True se il contatto hotel ha la mappa */\r\n mappaOk?: boolean;\r\n /** True se il contatto hotel ha almeno un servizio associato */\r\n haServizi?: boolean;\r\n lingua?: number | null;\r\n contatto?: Contatto;\r\n\r\n constructor(data?: IContactListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoEliminato = _data[\"luogoEliminato\"] !== undefined ? _data[\"luogoEliminato\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.promotore = _data[\"promotore\"] !== undefined ? _data[\"promotore\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.network = _data[\"network\"] !== undefined ? _data[\"network\"] : null;\r\n this.accordoCommerciale = _data[\"accordoCommerciale\"] !== undefined ? _data[\"accordoCommerciale\"] : null;\r\n this.pagamentoServiziTerra = _data[\"pagamentoServiziTerra\"] !== undefined ? _data[\"pagamentoServiziTerra\"] : null;\r\n this.pagamentoServiziVolo = _data[\"pagamentoServiziVolo\"] !== undefined ? _data[\"pagamentoServiziVolo\"] : null;\r\n this.datiHotelOk = _data[\"datiHotelOk\"] !== undefined ? _data[\"datiHotelOk\"] : null;\r\n this.mappaOk = _data[\"mappaOk\"] !== undefined ? _data[\"mappaOk\"] : null;\r\n this.haServizi = _data[\"haServizi\"] !== undefined ? _data[\"haServizi\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.contatto = _data[\"contatto\"] ? Contatto.fromJS(_data[\"contatto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContactListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContactListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoEliminato\"] = this.luogoEliminato !== undefined ? this.luogoEliminato : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"promotore\"] = this.promotore !== undefined ? this.promotore : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"network\"] = this.network !== undefined ? this.network : null;\r\n data[\"accordoCommerciale\"] = this.accordoCommerciale !== undefined ? this.accordoCommerciale : null;\r\n data[\"pagamentoServiziTerra\"] = this.pagamentoServiziTerra !== undefined ? this.pagamentoServiziTerra : null;\r\n data[\"pagamentoServiziVolo\"] = this.pagamentoServiziVolo !== undefined ? this.pagamentoServiziVolo : null;\r\n data[\"datiHotelOk\"] = this.datiHotelOk !== undefined ? this.datiHotelOk : null;\r\n data[\"mappaOk\"] = this.mappaOk !== undefined ? this.mappaOk : null;\r\n data[\"haServizi\"] = this.haServizi !== undefined ? this.haServizi : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta una singola riga dell'elenco contatti */\r\nexport interface IContactListRow {\r\n /** ID del contatto */\r\n id?: number;\r\n /** Nome proprio per le persone oppure nome colloquiale per agenzie e società */\r\n nome?: string | null;\r\n /** Cognome per le persone fisiche oppure ragione sociale per agenzie e società */\r\n cognome?: string | null;\r\n /** Nome del luogo associato al contatto */\r\n luogo?: string | null;\r\n /** True se il luogo associato è stato eliminato */\r\n luogoEliminato?: boolean;\r\n /** Nome del luogo associato al contatto */\r\n luogoID?: number | null;\r\n /** Nome della regione del luogo associato al contatto */\r\n regione?: string | null;\r\n /** Nome del paese del luogo associato al contatto */\r\n paese?: string | null;\r\n /** CAP dell'indirizzo del contatto */\r\n cap?: string | null;\r\n /** Indirizzo del contatto, incluso il numero civico */\r\n indirizzo?: string | null;\r\n /** Numero di telefono del contatto */\r\n telefono?: string | null;\r\n /** Partita IVA del contatto */\r\n partitaIVA?: string | null;\r\n /** Indirizzo email del contatto */\r\n email?: string | null;\r\n /** Nome visualizzato del contatto promotore */\r\n promotore?: string | null;\r\n /** Nome della categoria per le agenzie */\r\n categoria?: string | null;\r\n /** Nome visualizzato del contatto network per le agenzie */\r\n network?: string | null;\r\n /** Nome dell'accordo */\r\n accordoCommerciale?: string | null;\r\n /** Nome del metodo di pagamento dei servizi a terra */\r\n pagamentoServiziTerra?: string | null;\r\n /** Nome del metodo di pagamento dei servizi volo (biglietteria) */\r\n pagamentoServiziVolo?: string | null;\r\n /** True se i dati di un contatto hotel sono completi */\r\n datiHotelOk?: boolean;\r\n /** True se il contatto hotel ha la mappa */\r\n mappaOk?: boolean;\r\n /** True se il contatto hotel ha almeno un servizio associato */\r\n haServizi?: boolean;\r\n lingua?: number | null;\r\n contatto?: Contatto;\r\n}\r\n\r\nexport class Mappa implements IMappa {\r\n mappaID?: number;\r\n tabella!: string;\r\n entitaID?: number;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n provider?: number | null;\r\n zoom?: number | null;\r\n layout?: number | null;\r\n\r\n constructor(data?: IMappa) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.mappaID = _data[\"mappaID\"] !== undefined ? _data[\"mappaID\"] : null;\r\n this.tabella = _data[\"tabella\"] !== undefined ? _data[\"tabella\"] : null;\r\n this.entitaID = _data[\"entitaID\"] !== undefined ? _data[\"entitaID\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.provider = _data[\"provider\"] !== undefined ? _data[\"provider\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n this.layout = _data[\"layout\"] !== undefined ? _data[\"layout\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Mappa {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Mappa();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"mappaID\"] = this.mappaID !== undefined ? this.mappaID : null;\r\n data[\"tabella\"] = this.tabella !== undefined ? this.tabella : null;\r\n data[\"entitaID\"] = this.entitaID !== undefined ? this.entitaID : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"provider\"] = this.provider !== undefined ? this.provider : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n data[\"layout\"] = this.layout !== undefined ? this.layout : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMappa {\r\n mappaID?: number;\r\n tabella: string;\r\n entitaID?: number;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n provider?: number | null;\r\n zoom?: number | null;\r\n layout?: number | null;\r\n}\r\n\r\nexport class LogoInfo implements ILogoInfo {\r\n id?: number;\r\n logo?: ContattoLogo;\r\n exists?: boolean;\r\n filePath?: string | null;\r\n url?: string | null;\r\n base64?: string;\r\n\r\n constructor(data?: ILogoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.logo = _data[\"logo\"] ? ContattoLogo.fromJS(_data[\"logo\"]) : null;\r\n this.exists = _data[\"exists\"] !== undefined ? _data[\"exists\"] : null;\r\n this.filePath = _data[\"filePath\"] !== undefined ? _data[\"filePath\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.base64 = _data[\"base64\"] !== undefined ? _data[\"base64\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LogoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LogoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"logo\"] = this.logo ? this.logo.toJSON() : null;\r\n data[\"exists\"] = this.exists !== undefined ? this.exists : null;\r\n data[\"filePath\"] = this.filePath !== undefined ? this.filePath : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"base64\"] = this.base64 !== undefined ? this.base64 : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILogoInfo {\r\n id?: number;\r\n logo?: ContattoLogo;\r\n exists?: boolean;\r\n filePath?: string | null;\r\n url?: string | null;\r\n base64?: string;\r\n}\r\n\r\nexport class ContattoLogo implements IContattoLogo {\r\n contattoLogoID?: number;\r\n contattoID?: number;\r\n stampaSuOfferta?: boolean;\r\n stampaSuPreventivo?: boolean;\r\n stampaSuProgramma?: boolean;\r\n stampaSuConferma?: boolean | null;\r\n caricato?: string;\r\n nome?: string | null;\r\n nomeOriginale?: string | null;\r\n\r\n constructor(data?: IContattoLogo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoLogoID = _data[\"contattoLogoID\"] !== undefined ? _data[\"contattoLogoID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.stampaSuOfferta = _data[\"stampaSuOfferta\"] !== undefined ? _data[\"stampaSuOfferta\"] : null;\r\n this.stampaSuPreventivo = _data[\"stampaSuPreventivo\"] !== undefined ? _data[\"stampaSuPreventivo\"] : null;\r\n this.stampaSuProgramma = _data[\"stampaSuProgramma\"] !== undefined ? _data[\"stampaSuProgramma\"] : null;\r\n this.stampaSuConferma = _data[\"stampaSuConferma\"] !== undefined ? _data[\"stampaSuConferma\"] : null;\r\n this.caricato = _data[\"caricato\"] !== undefined ? _data[\"caricato\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeOriginale = _data[\"nomeOriginale\"] !== undefined ? _data[\"nomeOriginale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoLogo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoLogo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoLogoID\"] = this.contattoLogoID !== undefined ? this.contattoLogoID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"stampaSuOfferta\"] = this.stampaSuOfferta !== undefined ? this.stampaSuOfferta : null;\r\n data[\"stampaSuPreventivo\"] = this.stampaSuPreventivo !== undefined ? this.stampaSuPreventivo : null;\r\n data[\"stampaSuProgramma\"] = this.stampaSuProgramma !== undefined ? this.stampaSuProgramma : null;\r\n data[\"stampaSuConferma\"] = this.stampaSuConferma !== undefined ? this.stampaSuConferma : null;\r\n data[\"caricato\"] = this.caricato !== undefined ? this.caricato : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeOriginale\"] = this.nomeOriginale !== undefined ? this.nomeOriginale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoLogo {\r\n contattoLogoID?: number;\r\n contattoID?: number;\r\n stampaSuOfferta?: boolean;\r\n stampaSuPreventivo?: boolean;\r\n stampaSuProgramma?: boolean;\r\n stampaSuConferma?: boolean | null;\r\n caricato?: string;\r\n nome?: string | null;\r\n nomeOriginale?: string | null;\r\n}\r\n\r\nexport class UpsertContattoRequest extends LocalizedRequest implements IUpsertContattoRequest {\r\n contatto?: Contatto | null;\r\n logo?: LogoUpsert | null;\r\n\r\n constructor(data?: IUpsertContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contatto = _data[\"contatto\"] ? Contatto.fromJS(_data[\"contatto\"]) : null;\r\n this.logo = _data[\"logo\"] ? LogoUpsert.fromJS(_data[\"logo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n data[\"logo\"] = this.logo ? this.logo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertContattoRequest extends ILocalizedRequest {\r\n contatto?: Contatto | null;\r\n logo?: LogoUpsert | null;\r\n}\r\n\r\nexport class LogoUpsert implements ILogoUpsert {\r\n logoDataBase64?: string | null;\r\n contentType?: string | null;\r\n fileName?: string | null;\r\n\r\n constructor(data?: ILogoUpsert) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.logoDataBase64 = _data[\"logoDataBase64\"] !== undefined ? _data[\"logoDataBase64\"] : null;\r\n this.contentType = _data[\"contentType\"] !== undefined ? _data[\"contentType\"] : null;\r\n this.fileName = _data[\"fileName\"] !== undefined ? _data[\"fileName\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LogoUpsert {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LogoUpsert();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"logoDataBase64\"] = this.logoDataBase64 !== undefined ? this.logoDataBase64 : null;\r\n data[\"contentType\"] = this.contentType !== undefined ? this.contentType : null;\r\n data[\"fileName\"] = this.fileName !== undefined ? this.fileName : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILogoUpsert {\r\n logoDataBase64?: string | null;\r\n contentType?: string | null;\r\n fileName?: string | null;\r\n}\r\n\r\nexport class CreateUtenteAgenziaResponse extends OkApiResponse implements ICreateUtenteAgenziaResponse {\r\n /** Entità creata */\r\n utente?: UtenteRow;\r\n\r\n constructor(data?: ICreateUtenteAgenziaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.utente = _data[\"utente\"] ? UtenteRow.fromJS(_data[\"utente\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateUtenteAgenziaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateUtenteAgenziaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"utente\"] = this.utente ? this.utente.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateUtenteAgenziaResponse extends IOkApiResponse {\r\n /** Entità creata */\r\n utente?: UtenteRow;\r\n}\r\n\r\nexport class UtenteRow implements IUtenteRow {\r\n id?: number;\r\n nome?: string;\r\n email?: string | null;\r\n tipoUtente?: ETipoUtente;\r\n otherInfo?: Utente | null;\r\n isSecondaryUser?: boolean;\r\n\r\n constructor(data?: IUtenteRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.tipoUtente = _data[\"tipoUtente\"] !== undefined ? _data[\"tipoUtente\"] : null;\r\n this.otherInfo = _data[\"otherInfo\"] ? Utente.fromJS(_data[\"otherInfo\"]) : null;\r\n this.isSecondaryUser = _data[\"isSecondaryUser\"] !== undefined ? _data[\"isSecondaryUser\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UtenteRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UtenteRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"tipoUtente\"] = this.tipoUtente !== undefined ? this.tipoUtente : null;\r\n data[\"otherInfo\"] = this.otherInfo ? this.otherInfo.toJSON() : null;\r\n data[\"isSecondaryUser\"] = this.isSecondaryUser !== undefined ? this.isSecondaryUser : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUtenteRow {\r\n id?: number;\r\n nome?: string;\r\n email?: string | null;\r\n tipoUtente?: ETipoUtente;\r\n otherInfo?: Utente | null;\r\n isSecondaryUser?: boolean;\r\n}\r\n\r\nexport class CreateUtenteAgenziaRequest extends SiteRequest implements ICreateUtenteAgenziaRequest {\r\n /** Indirizzo email dell'utente */\r\n email!: string;\r\n /** Nome proprio */\r\n nome!: string;\r\n /** Cognome, facoltativo */\r\n cognome?: string | null;\r\n /** Numero di telefono dell'utente, facoltativo */\r\n telefono?: string | null;\r\n\r\n constructor(data?: ICreateUtenteAgenziaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateUtenteAgenziaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateUtenteAgenziaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateUtenteAgenziaRequest extends ISiteRequest {\r\n /** Indirizzo email dell'utente */\r\n email: string;\r\n /** Nome proprio */\r\n nome: string;\r\n /** Cognome, facoltativo */\r\n cognome?: string | null;\r\n /** Numero di telefono dell'utente, facoltativo */\r\n telefono?: string | null;\r\n}\r\n\r\nexport class DeleteContattoRequest extends LocalizedRequest implements IDeleteContattoRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IDeleteContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class DeleteAccordoContattoRequest extends LocalizedRequest implements IDeleteAccordoContattoRequest {\r\n contattoID?: number;\r\n accordoContattoID?: number;\r\n\r\n constructor(data?: IDeleteAccordoContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.accordoContattoID = _data[\"accordoContattoID\"] !== undefined ? _data[\"accordoContattoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteAccordoContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteAccordoContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"accordoContattoID\"] = this.accordoContattoID !== undefined ? this.accordoContattoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IDeleteAccordoContattoRequest extends ILocalizedRequest {\r\n contattoID?: number;\r\n accordoContattoID?: number;\r\n}\r\n\r\nexport class DeleteMappaContattoRequest extends LocalizedRequest implements IDeleteMappaContattoRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IDeleteMappaContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteMappaContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteMappaContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteMappaContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class GetContattoRequest extends LocalizedRequest implements IGetContattoRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IGetContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class GetAccordiAggiuntiviResoponse extends OkApiResponse implements IGetAccordiAggiuntiviResoponse {\r\n rows?: AccordoAggiuntivoRow[] | null;\r\n\r\n constructor(data?: IGetAccordiAggiuntiviResoponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AccordoAggiuntivoRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAccordiAggiuntiviResoponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAccordiAggiuntiviResoponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAccordiAggiuntiviResoponse extends IOkApiResponse {\r\n rows?: AccordoAggiuntivoRow[] | null;\r\n}\r\n\r\nexport class AccordoAggiuntivoRow implements IAccordoAggiuntivoRow {\r\n id?: number;\r\n accordoID?: number;\r\n nome?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n operatore?: EOperatore;\r\n accordoContatto?: AccordoContatto | null;\r\n\r\n constructor(data?: IAccordoAggiuntivoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.accordoContatto = _data[\"accordoContatto\"] ? AccordoContatto.fromJS(_data[\"accordoContatto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoAggiuntivoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoAggiuntivoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"accordoContatto\"] = this.accordoContatto ? this.accordoContatto.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoAggiuntivoRow {\r\n id?: number;\r\n accordoID?: number;\r\n nome?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n operatore?: EOperatore;\r\n accordoContatto?: AccordoContatto | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetAccordiAggiuntiviRequest extends LocalizedRequest implements IGetAccordiAggiuntiviRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IGetAccordiAggiuntiviRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAccordiAggiuntiviRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAccordiAggiuntiviRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetAccordiAggiuntiviRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class GetAccordiDirettiResponse extends OkApiResponse implements IGetAccordiDirettiResponse {\r\n rows?: AccordoDirettoRow[] | null;\r\n\r\n constructor(data?: IGetAccordiDirettiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AccordoDirettoRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAccordiDirettiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAccordiDirettiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAccordiDirettiResponse extends IOkApiResponse {\r\n rows?: AccordoDirettoRow[] | null;\r\n}\r\n\r\nexport class AccordoDirettoRow implements IAccordoDirettoRow {\r\n id?: number;\r\n nome?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n\r\n constructor(data?: IAccordoDirettoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoDirettoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoDirettoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoDirettoRow {\r\n id?: number;\r\n nome?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetAccordiDirettiRequest extends LocalizedRequest implements IGetAccordiDirettiRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IGetAccordiDirettiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAccordiDirettiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAccordiDirettiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetAccordiDirettiRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class GetCategorieContattoResoponse extends OkApiResponse implements IGetCategorieContattoResoponse {\r\n rows?: CategoriaContatto[] | null;\r\n\r\n constructor(data?: IGetCategorieContattoResoponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(CategoriaContatto.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCategorieContattoResoponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCategorieContattoResoponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCategorieContattoResoponse extends IOkApiResponse {\r\n rows?: CategoriaContatto[] | null;\r\n}\r\n\r\nexport class CategoriaContatto implements ICategoriaContatto {\r\n categoriaContattoID?: number;\r\n memo?: string | null;\r\n nome?: string | null;\r\n operatore?: EOperatore | null;\r\n\r\n constructor(data?: ICategoriaContatto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.categoriaContattoID = _data[\"categoriaContattoID\"] !== undefined ? _data[\"categoriaContattoID\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CategoriaContatto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CategoriaContatto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"categoriaContattoID\"] = this.categoriaContattoID !== undefined ? this.categoriaContattoID : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICategoriaContatto {\r\n categoriaContattoID?: number;\r\n memo?: string | null;\r\n nome?: string | null;\r\n operatore?: EOperatore | null;\r\n}\r\n\r\nexport class GetDatiAggiuntiviContattoResponse extends OkApiResponse implements IGetDatiAggiuntiviContattoResponse {\r\n rows?: ContattoDato[] | null;\r\n\r\n constructor(data?: IGetDatiAggiuntiviContattoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ContattoDato.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDatiAggiuntiviContattoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDatiAggiuntiviContattoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDatiAggiuntiviContattoResponse extends IOkApiResponse {\r\n rows?: ContattoDato[] | null;\r\n}\r\n\r\nexport class ContattoDato implements IContattoDato {\r\n contattoDatoID?: number;\r\n contattoID?: number;\r\n tipoDatoID?: number;\r\n tipoDato?: ETipoDatoContatto;\r\n testo?: string | null;\r\n\r\n constructor(data?: IContattoDato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoDatoID = _data[\"contattoDatoID\"] !== undefined ? _data[\"contattoDatoID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.tipoDatoID = _data[\"tipoDatoID\"] !== undefined ? _data[\"tipoDatoID\"] : null;\r\n this.tipoDato = _data[\"tipoDato\"] !== undefined ? _data[\"tipoDato\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoDato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoDato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoDatoID\"] = this.contattoDatoID !== undefined ? this.contattoDatoID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"tipoDatoID\"] = this.tipoDatoID !== undefined ? this.tipoDatoID : null;\r\n data[\"tipoDato\"] = this.tipoDato !== undefined ? this.tipoDato : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoDato {\r\n contattoDatoID?: number;\r\n contattoID?: number;\r\n tipoDatoID?: number;\r\n tipoDato?: ETipoDatoContatto;\r\n testo?: string | null;\r\n}\r\n\r\nexport enum ETipoDatoContatto {\r\n NonDefinito = \"NonDefinito\",\r\n PosizioneAgenzia = \"PosizioneAgenzia\",\r\n Responsabile = \"Responsabile\",\r\n Regione = \"Regione\",\r\n PartitaIVA = \"PartitaIVA\",\r\n CodiceFiscale = \"CodiceFiscale\",\r\n CodiceAdHoc = \"CodiceAdHoc\",\r\n NoteOfferta = \"NoteOfferta\",\r\n ProvinciaAgenzie = \"ProvinciaAgenzie\",\r\n CodAviomar = \"CodAviomar\",\r\n CodiceIATA = \"CodiceIATA\",\r\n PCC = \"PCC\",\r\n PasswordTicketStats = \"PasswordTicketStats\",\r\n NotaCommercialeAgenzia = \"NotaCommercialeAgenzia\",\r\n Sesso = \"Sesso\",\r\n Provincia = \"Provincia\",\r\n Citta = \"Citta\",\r\n AccessoBetaTest = \"AccessoBetaTest\",\r\n SsoToken = \"SsoToken\",\r\n ContrattoAgenzia = \"ContrattoAgenzia\",\r\n CodicePrioritaTelefonica = \"CodicePrioritaTelefonica\",\r\n CodiceUnivocoAgenziaFE = \"CodiceUnivocoAgenziaFE\",\r\n IndirizzoPecAgenziaFE = \"IndirizzoPecAgenziaFE\",\r\n IndirizzoPEC = \"IndirizzoPEC\",\r\n FEsenzaPECneCodice = \"FEsenzaPECneCodice\",\r\n SitoWeb = \"SitoWeb\",\r\n UrlLogo = \"UrlLogo\",\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetDatiAggiuntiviContattoRequest extends LocalizedRequest implements IGetDatiAggiuntiviContattoRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IGetDatiAggiuntiviContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDatiAggiuntiviContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDatiAggiuntiviContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetDatiAggiuntiviContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class GetMansioniResoponse extends OkApiResponse implements IGetMansioniResoponse {\r\n rows?: Mansione[] | null;\r\n\r\n constructor(data?: IGetMansioniResoponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(Mansione.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetMansioniResoponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetMansioniResoponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetMansioniResoponse extends IOkApiResponse {\r\n rows?: Mansione[] | null;\r\n}\r\n\r\nexport class Mansione implements IMansione {\r\n id?: number;\r\n nome!: string;\r\n descrizione?: string | null;\r\n\r\n constructor(data?: IMansione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Mansione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Mansione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMansione {\r\n id?: number;\r\n nome: string;\r\n descrizione?: string | null;\r\n}\r\n\r\nexport class GetProfileResponse extends OkApiResponse implements IGetProfileResponse {\r\n /** Dati generici */\r\n profileData?: ProfileData;\r\n /** Dati del logo */\r\n logoData?: LogoData | null;\r\n /** Dati di fatturazione */\r\n invoiceData?: ProfileInvoiceData;\r\n\r\n constructor(data?: IGetProfileResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.profileData = _data[\"profileData\"] ? ProfileData.fromJS(_data[\"profileData\"]) : null;\r\n this.logoData = _data[\"logoData\"] ? LogoData.fromJS(_data[\"logoData\"]) : null;\r\n this.invoiceData = _data[\"invoiceData\"] ? ProfileInvoiceData.fromJS(_data[\"invoiceData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetProfileResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetProfileResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"profileData\"] = this.profileData ? this.profileData.toJSON() : null;\r\n data[\"logoData\"] = this.logoData ? this.logoData.toJSON() : null;\r\n data[\"invoiceData\"] = this.invoiceData ? this.invoiceData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetProfileResponse extends IOkApiResponse {\r\n /** Dati generici */\r\n profileData?: ProfileData;\r\n /** Dati del logo */\r\n logoData?: LogoData | null;\r\n /** Dati di fatturazione */\r\n invoiceData?: ProfileInvoiceData;\r\n}\r\n\r\n/** Dati generici di profilo di un'agenzia */\r\nexport class ProfileData implements IProfileData {\r\n /** Nome colloquiale dell'agenzia */\r\n nome?: string | null;\r\n /** Indirizzo generico, senza il civico */\r\n indirizzo?: string | null;\r\n /** Codice avviamento postale o assimilabile */\r\n cap?: string | null;\r\n /** Numero civico */\r\n civico?: string | null;\r\n /** ID del luogo */\r\n luogoID?: number | null;\r\n /** Città, prelevata dal luogo */\r\n citta?: string | null;\r\n /** Indirizzo email generico */\r\n email?: string | null;\r\n /** Numero di telefono */\r\n telefono?: string | null;\r\n /** Numero di fax. Ma chi cavolo usa ancora il fax? */\r\n fax?: string | null;\r\n\r\n constructor(data?: IProfileData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.civico = _data[\"civico\"] !== undefined ? _data[\"civico\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.citta = _data[\"citta\"] !== undefined ? _data[\"citta\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProfileData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProfileData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"civico\"] = this.civico !== undefined ? this.civico : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"citta\"] = this.citta !== undefined ? this.citta : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati generici di profilo di un'agenzia */\r\nexport interface IProfileData {\r\n /** Nome colloquiale dell'agenzia */\r\n nome?: string | null;\r\n /** Indirizzo generico, senza il civico */\r\n indirizzo?: string | null;\r\n /** Codice avviamento postale o assimilabile */\r\n cap?: string | null;\r\n /** Numero civico */\r\n civico?: string | null;\r\n /** ID del luogo */\r\n luogoID?: number | null;\r\n /** Città, prelevata dal luogo */\r\n citta?: string | null;\r\n /** Indirizzo email generico */\r\n email?: string | null;\r\n /** Numero di telefono */\r\n telefono?: string | null;\r\n /** Numero di fax. Ma chi cavolo usa ancora il fax? */\r\n fax?: string | null;\r\n}\r\n\r\n/** Dati del logo, predisposti per loghi multipli */\r\nexport class LogoData implements ILogoData {\r\n /** Url assoluta del logo attuale */\r\n logoURL?: string;\r\n /** Questo logo viene usato sulle offerte */\r\n stampaSuOfferta?: boolean;\r\n /** Questo logo viene usato sui preventivi */\r\n stampaSuPreventivo?: boolean;\r\n /** Questo logo viene usato sul programma di viaggio */\r\n stampaSuProgramma?: boolean;\r\n /** Questo logo viene usato sulle conferme */\r\n stampaSuConferma?: boolean;\r\n\r\n constructor(data?: ILogoData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.logoURL = _data[\"logoURL\"] !== undefined ? _data[\"logoURL\"] : null;\r\n this.stampaSuOfferta = _data[\"stampaSuOfferta\"] !== undefined ? _data[\"stampaSuOfferta\"] : null;\r\n this.stampaSuPreventivo = _data[\"stampaSuPreventivo\"] !== undefined ? _data[\"stampaSuPreventivo\"] : null;\r\n this.stampaSuProgramma = _data[\"stampaSuProgramma\"] !== undefined ? _data[\"stampaSuProgramma\"] : null;\r\n this.stampaSuConferma = _data[\"stampaSuConferma\"] !== undefined ? _data[\"stampaSuConferma\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LogoData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LogoData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"logoURL\"] = this.logoURL !== undefined ? this.logoURL : null;\r\n data[\"stampaSuOfferta\"] = this.stampaSuOfferta !== undefined ? this.stampaSuOfferta : null;\r\n data[\"stampaSuPreventivo\"] = this.stampaSuPreventivo !== undefined ? this.stampaSuPreventivo : null;\r\n data[\"stampaSuProgramma\"] = this.stampaSuProgramma !== undefined ? this.stampaSuProgramma : null;\r\n data[\"stampaSuConferma\"] = this.stampaSuConferma !== undefined ? this.stampaSuConferma : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati del logo, predisposti per loghi multipli */\r\nexport interface ILogoData {\r\n /** Url assoluta del logo attuale */\r\n logoURL?: string;\r\n /** Questo logo viene usato sulle offerte */\r\n stampaSuOfferta?: boolean;\r\n /** Questo logo viene usato sui preventivi */\r\n stampaSuPreventivo?: boolean;\r\n /** Questo logo viene usato sul programma di viaggio */\r\n stampaSuProgramma?: boolean;\r\n /** Questo logo viene usato sulle conferme */\r\n stampaSuConferma?: boolean;\r\n}\r\n\r\n/** Dati specifici di fatturazione di un'agenzia */\r\nexport class ProfileInvoiceData implements IProfileInvoiceData {\r\n /** Ragione sociale completa dell'agenzia */\r\n ragioneSociale?: string | null;\r\n /** Prefisso della partita IVA in base al luogo di fatturazione */\r\n prefissoPartitaIVA?: string | null;\r\n /** Partita IVA */\r\n partitaIVA?: string | null;\r\n /** Indirizzo di fatturazione, senza il civico */\r\n indirizzo?: string | null;\r\n /** Codice avviamento postale o assimilabile */\r\n cap?: string | null;\r\n /** Numero civico */\r\n civico?: string | null;\r\n /** ID del luogo */\r\n luogoID?: number | null;\r\n /** Città, prelevata dal luogo */\r\n citta?: string | null;\r\n /** Casella PEC per fatturazione elettronica, solo per partite iva IT\r\nAlternativo al codice univoco */\r\n pecFatturazioneElettronica?: string | null;\r\n /** Codice univoco per fatturazione elettronica, solo per partite iva IT\r\nAlternativo alla PEC */\r\n codiceUnivocoFatturazioneElettronica?: string | null;\r\n\r\n constructor(data?: IProfileInvoiceData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.ragioneSociale = _data[\"ragioneSociale\"] !== undefined ? _data[\"ragioneSociale\"] : null;\r\n this.prefissoPartitaIVA = _data[\"prefissoPartitaIVA\"] !== undefined ? _data[\"prefissoPartitaIVA\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.civico = _data[\"civico\"] !== undefined ? _data[\"civico\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.citta = _data[\"citta\"] !== undefined ? _data[\"citta\"] : null;\r\n this.pecFatturazioneElettronica = _data[\"pecFatturazioneElettronica\"] !== undefined ? _data[\"pecFatturazioneElettronica\"] : null;\r\n this.codiceUnivocoFatturazioneElettronica = _data[\"codiceUnivocoFatturazioneElettronica\"] !== undefined ? _data[\"codiceUnivocoFatturazioneElettronica\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ProfileInvoiceData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ProfileInvoiceData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ragioneSociale\"] = this.ragioneSociale !== undefined ? this.ragioneSociale : null;\r\n data[\"prefissoPartitaIVA\"] = this.prefissoPartitaIVA !== undefined ? this.prefissoPartitaIVA : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"civico\"] = this.civico !== undefined ? this.civico : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"citta\"] = this.citta !== undefined ? this.citta : null;\r\n data[\"pecFatturazioneElettronica\"] = this.pecFatturazioneElettronica !== undefined ? this.pecFatturazioneElettronica : null;\r\n data[\"codiceUnivocoFatturazioneElettronica\"] = this.codiceUnivocoFatturazioneElettronica !== undefined ? this.codiceUnivocoFatturazioneElettronica : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati specifici di fatturazione di un'agenzia */\r\nexport interface IProfileInvoiceData {\r\n /** Ragione sociale completa dell'agenzia */\r\n ragioneSociale?: string | null;\r\n /** Prefisso della partita IVA in base al luogo di fatturazione */\r\n prefissoPartitaIVA?: string | null;\r\n /** Partita IVA */\r\n partitaIVA?: string | null;\r\n /** Indirizzo di fatturazione, senza il civico */\r\n indirizzo?: string | null;\r\n /** Codice avviamento postale o assimilabile */\r\n cap?: string | null;\r\n /** Numero civico */\r\n civico?: string | null;\r\n /** ID del luogo */\r\n luogoID?: number | null;\r\n /** Città, prelevata dal luogo */\r\n citta?: string | null;\r\n /** Casella PEC per fatturazione elettronica, solo per partite iva IT\r\nAlternativo al codice univoco */\r\n pecFatturazioneElettronica?: string | null;\r\n /** Codice univoco per fatturazione elettronica, solo per partite iva IT\r\nAlternativo alla PEC */\r\n codiceUnivocoFatturazioneElettronica?: string | null;\r\n}\r\n\r\nexport class GetRecapitiContattoResponse extends OkApiResponse implements IGetRecapitiContattoResponse {\r\n rows?: ContattoRecapito[] | null;\r\n\r\n constructor(data?: IGetRecapitiContattoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ContattoRecapito.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRecapitiContattoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRecapitiContattoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetRecapitiContattoResponse extends IOkApiResponse {\r\n rows?: ContattoRecapito[] | null;\r\n}\r\n\r\nexport class ContattoRecapito implements IContattoRecapito {\r\n recapitoID?: number;\r\n contattoID?: number;\r\n mezzoprenID?: EMezzoPrenotazione;\r\n recapito?: string | null;\r\n principale?: number | null;\r\n ordine?: number | null;\r\n attivo?: boolean;\r\n note?: string | null;\r\n\r\n constructor(data?: IContattoRecapito) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.recapitoID = _data[\"recapitoID\"] !== undefined ? _data[\"recapitoID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.mezzoprenID = _data[\"mezzoprenID\"] !== undefined ? _data[\"mezzoprenID\"] : null;\r\n this.recapito = _data[\"recapito\"] !== undefined ? _data[\"recapito\"] : null;\r\n this.principale = _data[\"principale\"] !== undefined ? _data[\"principale\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.attivo = _data[\"attivo\"] !== undefined ? _data[\"attivo\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoRecapito {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoRecapito();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"recapitoID\"] = this.recapitoID !== undefined ? this.recapitoID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"mezzoprenID\"] = this.mezzoprenID !== undefined ? this.mezzoprenID : null;\r\n data[\"recapito\"] = this.recapito !== undefined ? this.recapito : null;\r\n data[\"principale\"] = this.principale !== undefined ? this.principale : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"attivo\"] = this.attivo !== undefined ? this.attivo : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoRecapito {\r\n recapitoID?: number;\r\n contattoID?: number;\r\n mezzoprenID?: EMezzoPrenotazione;\r\n recapito?: string | null;\r\n principale?: number | null;\r\n ordine?: number | null;\r\n attivo?: boolean;\r\n note?: string | null;\r\n}\r\n\r\nexport enum EMezzoPrenotazione {\r\n FaxPrenotazioni = \"FaxPrenotazioni\",\r\n Telefono = \"Telefono\",\r\n TerminaleAereo = \"TerminaleAereo\",\r\n Cellulare = \"Cellulare\",\r\n EmailPrenotazioni = \"EmailPrenotazioni\",\r\n EmailPromozioni = \"EmailPromozioni\",\r\n InvioDocContabili = \"InvioDocContabili\",\r\n BigliettiAerei = \"BigliettiAerei\",\r\n FaxPromozioni = \"FaxPromozioni\",\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetRecapitiContattoRequest extends LocalizedRequest implements IGetRecapitiContattoRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IGetRecapitiContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRecapitiContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRecapitiContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetRecapitiContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class GetRelazioniContattoResponse extends OkApiResponse implements IGetRelazioniContattoResponse {\r\n rows?: ContattoRelazione[] | null;\r\n\r\n constructor(data?: IGetRelazioniContattoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ContattoRelazione.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRelazioniContattoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRelazioniContattoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetRelazioniContattoResponse extends IOkApiResponse {\r\n rows?: ContattoRelazione[] | null;\r\n}\r\n\r\nexport class ContattoRelazione implements IContattoRelazione {\r\n relazioneID?: number;\r\n contattoID?: number;\r\n contattoPadreID?: number;\r\n tipoRelazione?: ETipoRelazioneContatto;\r\n nome?: string | null;\r\n\r\n constructor(data?: IContattoRelazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.relazioneID = _data[\"relazioneID\"] !== undefined ? _data[\"relazioneID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.contattoPadreID = _data[\"contattoPadreID\"] !== undefined ? _data[\"contattoPadreID\"] : null;\r\n this.tipoRelazione = _data[\"tipoRelazione\"] !== undefined ? _data[\"tipoRelazione\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoRelazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoRelazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"relazioneID\"] = this.relazioneID !== undefined ? this.relazioneID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"contattoPadreID\"] = this.contattoPadreID !== undefined ? this.contattoPadreID : null;\r\n data[\"tipoRelazione\"] = this.tipoRelazione !== undefined ? this.tipoRelazione : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoRelazione {\r\n relazioneID?: number;\r\n contattoID?: number;\r\n contattoPadreID?: number;\r\n tipoRelazione?: ETipoRelazioneContatto;\r\n nome?: string | null;\r\n}\r\n\r\nexport enum ETipoRelazioneContatto {\r\n UfficioDi = \"UfficioDi\",\r\n DipendenteDi = \"DipendenteDi\",\r\n CompetaA = \"CompetaA\",\r\n MembroDelGruppo = \"MembroDelGruppo\",\r\n MembroDelSottogruppo = \"MembroDelSottogruppo\",\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetRelazioniContattoRequest extends LocalizedRequest implements IGetRelazioniContattoRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IGetRelazioniContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRelazioniContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRelazioniContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetRelazioniContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class GetUtentiListResponse extends OkApiResponse implements IGetUtentiListResponse {\r\n utenti?: UtenteRow[];\r\n\r\n constructor(data?: IGetUtentiListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"utenti\"])) {\r\n this.utenti = [] as any;\r\n for (let item of _data[\"utenti\"])\r\n this.utenti!.push(UtenteRow.fromJS(item));\r\n }\r\n else {\r\n this.utenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetUtentiListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetUtentiListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.utenti)) {\r\n data[\"utenti\"] = [];\r\n for (let item of this.utenti)\r\n data[\"utenti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetUtentiListResponse extends IOkApiResponse {\r\n utenti?: UtenteRow[];\r\n}\r\n\r\nexport class GetUtentiListRequest extends ApiRequest implements IGetUtentiListRequest {\r\n contattoID?: number;\r\n\r\n constructor(data?: IGetUtentiListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetUtentiListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetUtentiListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetUtentiListRequest extends IApiRequest {\r\n contattoID?: number;\r\n}\r\n\r\nexport class GetUtentiSecondariListRequest extends GetUtentiListRequest implements IGetUtentiSecondariListRequest {\r\n utenteID?: number;\r\n\r\n constructor(data?: IGetUtentiSecondariListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.utenteID = _data[\"utenteID\"] !== undefined ? _data[\"utenteID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetUtentiSecondariListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetUtentiSecondariListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"utenteID\"] = this.utenteID !== undefined ? this.utenteID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetUtentiSecondariListRequest extends IGetUtentiListRequest {\r\n utenteID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfContactListRow extends OkApiResponse implements INrTableResponseOfContactListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ContactListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfContactListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ContactListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfContactListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfContactListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfContactListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ContactListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\n/** Classe che rappresenta la risposta ad una richiesta di elenco contatti */\r\nexport class ContactsListResponse extends NrTableResponseOfContactListRow implements IContactsListResponse {\r\n\r\n constructor(data?: IContactsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ContactsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContactsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta la risposta ad una richiesta di elenco contatti */\r\nexport interface IContactsListResponse extends INrTableResponseOfContactListRow {\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class ContactsListRequest extends NrTableRequest implements IContactsListRequest {\r\n /** Ragione sociale, email, ID, ecc... da cercare */\r\n term?: string | null;\r\n /** Tipo di contatto */\r\n tipo?: ETipoContatto | null;\r\n /** ID del luogo associato al contatto */\r\n luogoCittaID?: number | null;\r\n /** ID del luogo paese associato al luogo del contatto */\r\n luogoPaeseID?: number | null;\r\n /** ID del luogo regione associato al luogo del contatto */\r\n luogoRegioneID?: number | null;\r\n /** Partita IVA del contatto */\r\n partitaIVA?: string | null;\r\n /** Sigla della provincia */\r\n provincia?: string | null;\r\n /** Filter contatscts based on validity (delted or not) */\r\n showValid?: boolean | null;\r\n\r\n constructor(data?: IContactsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.luogoCittaID = _data[\"luogoCittaID\"] !== undefined ? _data[\"luogoCittaID\"] : null;\r\n this.luogoPaeseID = _data[\"luogoPaeseID\"] !== undefined ? _data[\"luogoPaeseID\"] : null;\r\n this.luogoRegioneID = _data[\"luogoRegioneID\"] !== undefined ? _data[\"luogoRegioneID\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.showValid = _data[\"showValid\"] !== undefined ? _data[\"showValid\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContactsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContactsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"luogoCittaID\"] = this.luogoCittaID !== undefined ? this.luogoCittaID : null;\r\n data[\"luogoPaeseID\"] = this.luogoPaeseID !== undefined ? this.luogoPaeseID : null;\r\n data[\"luogoRegioneID\"] = this.luogoRegioneID !== undefined ? this.luogoRegioneID : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"showValid\"] = this.showValid !== undefined ? this.showValid : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IContactsListRequest extends INrTableRequest {\r\n /** Ragione sociale, email, ID, ecc... da cercare */\r\n term?: string | null;\r\n /** Tipo di contatto */\r\n tipo?: ETipoContatto | null;\r\n /** ID del luogo associato al contatto */\r\n luogoCittaID?: number | null;\r\n /** ID del luogo paese associato al luogo del contatto */\r\n luogoPaeseID?: number | null;\r\n /** ID del luogo regione associato al luogo del contatto */\r\n luogoRegioneID?: number | null;\r\n /** Partita IVA del contatto */\r\n partitaIVA?: string | null;\r\n /** Sigla della provincia */\r\n provincia?: string | null;\r\n /** Filter contatscts based on validity (delted or not) */\r\n showValid?: boolean | null;\r\n}\r\n\r\nexport class RestoreContattoRequest extends LocalizedRequest implements IRestoreContattoRequest {\r\n contattoId?: number;\r\n\r\n constructor(data?: IRestoreContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RestoreContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRestoreContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n}\r\n\r\nexport class SaveAccordoContattoResponse extends OkApiResponse implements ISaveAccordoContattoResponse {\r\n accordoContatto?: AccordoContatto | null;\r\n\r\n constructor(data?: ISaveAccordoContattoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoContatto = _data[\"accordoContatto\"] ? AccordoContatto.fromJS(_data[\"accordoContatto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SaveAccordoContattoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SaveAccordoContattoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoContatto\"] = this.accordoContatto ? this.accordoContatto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISaveAccordoContattoResponse extends IOkApiResponse {\r\n accordoContatto?: AccordoContatto | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class SaveAccordoContattoRequest extends LocalizedRequest implements ISaveAccordoContattoRequest {\r\n accordoContatto?: AccordoContatto | null;\r\n\r\n constructor(data?: ISaveAccordoContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.accordoContatto = _data[\"accordoContatto\"] ? AccordoContatto.fromJS(_data[\"accordoContatto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SaveAccordoContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SaveAccordoContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoContatto\"] = this.accordoContatto ? this.accordoContatto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface ISaveAccordoContattoRequest extends ILocalizedRequest {\r\n accordoContatto?: AccordoContatto | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class SetDatiAggiuntiviContattoRequest extends LocalizedRequest implements ISetDatiAggiuntiviContattoRequest {\r\n contattoId?: number;\r\n dati?: ContattoDato[] | null;\r\n\r\n constructor(data?: ISetDatiAggiuntiviContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n if (Array.isArray(_data[\"dati\"])) {\r\n this.dati = [] as any;\r\n for (let item of _data[\"dati\"])\r\n this.dati!.push(ContattoDato.fromJS(item));\r\n }\r\n else {\r\n this.dati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetDatiAggiuntiviContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetDatiAggiuntiviContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n if (Array.isArray(this.dati)) {\r\n data[\"dati\"] = [];\r\n for (let item of this.dati)\r\n data[\"dati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface ISetDatiAggiuntiviContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n dati?: ContattoDato[] | null;\r\n}\r\n\r\nexport class SetMappaContattoResponse extends OkApiResponse implements ISetMappaContattoResponse {\r\n mappa?: Mappa | null;\r\n\r\n constructor(data?: ISetMappaContattoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappaContattoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappaContattoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappaContattoResponse extends IOkApiResponse {\r\n mappa?: Mappa | null;\r\n}\r\n\r\nexport class SetMappaContattoRequest extends LocalizedRequest implements ISetMappaContattoRequest {\r\n contattoId?: number;\r\n mappa?: Mappa | null;\r\n\r\n constructor(data?: ISetMappaContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappaContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappaContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappaContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n mappa?: Mappa | null;\r\n}\r\n\r\nexport class SetRecapitiContattoRequest extends LocalizedRequest implements ISetRecapitiContattoRequest {\r\n contattoId?: number;\r\n dati?: ContattoRecapito[] | null;\r\n\r\n constructor(data?: ISetRecapitiContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n if (Array.isArray(_data[\"dati\"])) {\r\n this.dati = [] as any;\r\n for (let item of _data[\"dati\"])\r\n this.dati!.push(ContattoRecapito.fromJS(item));\r\n }\r\n else {\r\n this.dati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetRecapitiContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetRecapitiContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n if (Array.isArray(this.dati)) {\r\n data[\"dati\"] = [];\r\n for (let item of this.dati)\r\n data[\"dati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetRecapitiContattoRequest extends ILocalizedRequest {\r\n contattoId?: number;\r\n dati?: ContattoRecapito[] | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class SetRelazioniContattoRequest extends LocalizedRequest implements ISetRelazioniContattoRequest {\r\n contattoID?: number;\r\n relazioni?: ContattoRelazione[] | null;\r\n\r\n constructor(data?: ISetRelazioniContattoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n if (Array.isArray(_data[\"relazioni\"])) {\r\n this.relazioni = [] as any;\r\n for (let item of _data[\"relazioni\"])\r\n this.relazioni!.push(ContattoRelazione.fromJS(item));\r\n }\r\n else {\r\n this.relazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetRelazioniContattoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetRelazioniContattoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n if (Array.isArray(this.relazioni)) {\r\n data[\"relazioni\"] = [];\r\n for (let item of this.relazioni)\r\n data[\"relazioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface ISetRelazioniContattoRequest extends ILocalizedRequest {\r\n contattoID?: number;\r\n relazioni?: ContattoRelazione[] | null;\r\n}\r\n\r\nexport class UpdateAgencyDataRequest extends LocalizedRequest implements IUpdateAgencyDataRequest {\r\n profileData!: ProfileData;\r\n\r\n constructor(data?: IUpdateAgencyDataRequest) {\r\n super(data);\r\n if (!data) {\r\n this.profileData = new ProfileData();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.profileData = _data[\"profileData\"] ? ProfileData.fromJS(_data[\"profileData\"]) : new ProfileData();\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateAgencyDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateAgencyDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"profileData\"] = this.profileData ? this.profileData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateAgencyDataRequest extends ILocalizedRequest {\r\n profileData: ProfileData;\r\n}\r\n\r\nexport class UpdateAgencyInvoiceDataRequest extends LocalizedRequest implements IUpdateAgencyInvoiceDataRequest {\r\n profileInvoiceData!: ProfileInvoiceData;\r\n\r\n constructor(data?: IUpdateAgencyInvoiceDataRequest) {\r\n super(data);\r\n if (!data) {\r\n this.profileInvoiceData = new ProfileInvoiceData();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.profileInvoiceData = _data[\"profileInvoiceData\"] ? ProfileInvoiceData.fromJS(_data[\"profileInvoiceData\"]) : new ProfileInvoiceData();\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateAgencyInvoiceDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateAgencyInvoiceDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"profileInvoiceData\"] = this.profileInvoiceData ? this.profileInvoiceData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateAgencyInvoiceDataRequest extends ILocalizedRequest {\r\n profileInvoiceData: ProfileInvoiceData;\r\n}\r\n\r\nexport class UpdateLogoRequest extends LocalizedRequest implements IUpdateLogoRequest {\r\n logo?: LogoUpsert | null;\r\n\r\n constructor(data?: IUpdateLogoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.logo = _data[\"logo\"] ? LogoUpsert.fromJS(_data[\"logo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateLogoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateLogoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"logo\"] = this.logo ? this.logo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateLogoRequest extends ILocalizedRequest {\r\n logo?: LogoUpsert | null;\r\n}\r\n\r\nexport class UpdateUtenteAgenziaResponse extends OkApiResponse implements IUpdateUtenteAgenziaResponse {\r\n /** Entità modificata */\r\n utente?: UtenteRow;\r\n\r\n constructor(data?: IUpdateUtenteAgenziaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.utente = _data[\"utente\"] ? UtenteRow.fromJS(_data[\"utente\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateUtenteAgenziaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateUtenteAgenziaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"utente\"] = this.utente ? this.utente.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateUtenteAgenziaResponse extends IOkApiResponse {\r\n /** Entità modificata */\r\n utente?: UtenteRow;\r\n}\r\n\r\nexport class UpdateUtenteAgenziaRequest extends SiteRequest implements IUpdateUtenteAgenziaRequest {\r\n /** ID dell'utente da modificare */\r\n id!: number;\r\n /** Indirizzo email dell'utente */\r\n email!: string;\r\n /** Nome proprio */\r\n nome!: string;\r\n /** Cognome, facoltativo */\r\n cognome?: string | null;\r\n /** Numero di telefono dell'utente, facoltativo */\r\n telefono?: string | null;\r\n /** Flag di abilitazione */\r\n abilitato?: boolean;\r\n\r\n constructor(data?: IUpdateUtenteAgenziaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.abilitato = _data[\"abilitato\"] !== undefined ? _data[\"abilitato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateUtenteAgenziaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateUtenteAgenziaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"abilitato\"] = this.abilitato !== undefined ? this.abilitato : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateUtenteAgenziaRequest extends ISiteRequest {\r\n /** ID dell'utente da modificare */\r\n id: number;\r\n /** Indirizzo email dell'utente */\r\n email: string;\r\n /** Nome proprio */\r\n nome: string;\r\n /** Cognome, facoltativo */\r\n cognome?: string | null;\r\n /** Numero di telefono dell'utente, facoltativo */\r\n telefono?: string | null;\r\n /** Flag di abilitazione */\r\n abilitato?: boolean;\r\n}\r\n\r\nexport class UpsertUtenteSecondarioResponse extends CreateUtenteAgenziaResponse implements IUpsertUtenteSecondarioResponse {\r\n\r\n constructor(data?: IUpsertUtenteSecondarioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UpsertUtenteSecondarioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertUtenteSecondarioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertUtenteSecondarioResponse extends ICreateUtenteAgenziaResponse {\r\n}\r\n\r\nexport class UpsertUtenteSecondarioRequest extends CreateUtenteAgenziaRequest implements IUpsertUtenteSecondarioRequest {\r\n utenteID?: number;\r\n\r\n constructor(data?: IUpsertUtenteSecondarioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.utenteID = _data[\"utenteID\"] !== undefined ? _data[\"utenteID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertUtenteSecondarioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertUtenteSecondarioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"utenteID\"] = this.utenteID !== undefined ? this.utenteID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertUtenteSecondarioRequest extends ICreateUtenteAgenziaRequest {\r\n utenteID?: number;\r\n}\r\n\r\nexport class PhraseGetResponse extends OkApiResponse implements IPhraseGetResponse {\r\n frase?: Frase;\r\n tagsIds?: number[];\r\n\r\n constructor(data?: IPhraseGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.frase = _data[\"frase\"] ? Frase.fromJS(_data[\"frase\"]) : null;\r\n if (Array.isArray(_data[\"tagsIds\"])) {\r\n this.tagsIds = [] as any;\r\n for (let item of _data[\"tagsIds\"])\r\n this.tagsIds!.push(item);\r\n }\r\n else {\r\n this.tagsIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PhraseGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PhraseGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"frase\"] = this.frase ? this.frase.toJSON() : null;\r\n if (Array.isArray(this.tagsIds)) {\r\n data[\"tagsIds\"] = [];\r\n for (let item of this.tagsIds)\r\n data[\"tagsIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhraseGetResponse extends IOkApiResponse {\r\n frase?: Frase;\r\n tagsIds?: number[];\r\n}\r\n\r\nexport class PhraseGetRequest extends LocalizedRequest implements IPhraseGetRequest {\r\n fraseID?: number;\r\n\r\n constructor(data?: IPhraseGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PhraseGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PhraseGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhraseGetRequest extends ILocalizedRequest {\r\n fraseID?: number;\r\n}\r\n\r\nexport class UpdatePhraseRequest extends PhraseGetRequest implements IUpdatePhraseRequest {\r\n frase?: Frase | null;\r\n tagsIds?: number[] | null;\r\n\r\n constructor(data?: IUpdatePhraseRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.frase = _data[\"frase\"] ? Frase.fromJS(_data[\"frase\"]) : null;\r\n if (Array.isArray(_data[\"tagsIds\"])) {\r\n this.tagsIds = [] as any;\r\n for (let item of _data[\"tagsIds\"])\r\n this.tagsIds!.push(item);\r\n }\r\n else {\r\n this.tagsIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdatePhraseRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdatePhraseRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"frase\"] = this.frase ? this.frase.toJSON() : null;\r\n if (Array.isArray(this.tagsIds)) {\r\n data[\"tagsIds\"] = [];\r\n for (let item of this.tagsIds)\r\n data[\"tagsIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdatePhraseRequest extends IPhraseGetRequest {\r\n frase?: Frase | null;\r\n tagsIds?: number[] | null;\r\n}\r\n\r\nexport class PhraseDeleteRequest extends ApiRequest implements IPhraseDeleteRequest {\r\n fraseID?: number;\r\n\r\n constructor(data?: IPhraseDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PhraseDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PhraseDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhraseDeleteRequest extends IApiRequest {\r\n fraseID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfPhraseRow extends OkApiResponse implements INrTableResponseOfPhraseRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PhraseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfPhraseRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(PhraseRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfPhraseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfPhraseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfPhraseRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PhraseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ListPhrasesResponse extends NrTableResponseOfPhraseRow implements IListPhrasesResponse {\r\n\r\n constructor(data?: IListPhrasesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ListPhrasesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListPhrasesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListPhrasesResponse extends INrTableResponseOfPhraseRow {\r\n}\r\n\r\nexport class PhraseRow implements IPhraseRow {\r\n text?: string;\r\n title?: string | null;\r\n frase?: Frase;\r\n luogo?: string | null;\r\n paese?: string | null;\r\n luogoDestinazione?: string | null;\r\n servizio?: string | null;\r\n sezione?: string | null;\r\n contatto?: string | null;\r\n deleted?: boolean;\r\n tagsIds?: number[];\r\n\r\n constructor(data?: IPhraseRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.frase = _data[\"frase\"] ? Frase.fromJS(_data[\"frase\"]) : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.luogoDestinazione = _data[\"luogoDestinazione\"] !== undefined ? _data[\"luogoDestinazione\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.sezione = _data[\"sezione\"] !== undefined ? _data[\"sezione\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n if (Array.isArray(_data[\"tagsIds\"])) {\r\n this.tagsIds = [] as any;\r\n for (let item of _data[\"tagsIds\"])\r\n this.tagsIds!.push(item);\r\n }\r\n else {\r\n this.tagsIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PhraseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PhraseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"frase\"] = this.frase ? this.frase.toJSON() : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"luogoDestinazione\"] = this.luogoDestinazione !== undefined ? this.luogoDestinazione : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"sezione\"] = this.sezione !== undefined ? this.sezione : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n if (Array.isArray(this.tagsIds)) {\r\n data[\"tagsIds\"] = [];\r\n for (let item of this.tagsIds)\r\n data[\"tagsIds\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhraseRow {\r\n text?: string;\r\n title?: string | null;\r\n frase?: Frase;\r\n luogo?: string | null;\r\n paese?: string | null;\r\n luogoDestinazione?: string | null;\r\n servizio?: string | null;\r\n sezione?: string | null;\r\n contatto?: string | null;\r\n deleted?: boolean;\r\n tagsIds?: number[];\r\n}\r\n\r\nexport class ListPhrasesRequest extends NrTableRequest implements IListPhrasesRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n /** Se true cerca solo frasi non associate a luogo */\r\n noLuogo?: boolean;\r\n /** Se true cerca solo frasi non associate a servizio */\r\n noServizio?: boolean;\r\n /** Se true cerca solo frasi non associate a contatto */\r\n noContatto?: boolean;\r\n /** Se presente cerca solo frasi che hanno almeno uno dei tag con l'id della lista */\r\n tagIds?: number[] | null;\r\n /** Modalità di filtraggio degli ID dei tag */\r\n tagsIdsFilter?: EListPhrasesCollectionFilter;\r\n /** Filtro sugli ID luogo. Se presente la frase deve appartenere ad uno di questi luoghi */\r\n luoghiIds?: number[] | null;\r\n /** Filtroo sugli ID paese; */\r\n paesiIds?: number[] | null;\r\n /** Filtro sugli ID servizio. Se presente la frase deve appartenere ad uno di questi servizi */\r\n serviziIds?: number[] | null;\r\n /** Filtro sugli ID contatto. Se presente la frase deve appartenere ad uno di questi contatti */\r\n contattiIds?: number[] | null;\r\n /** Filtro sull'ID della sezione. Se presente la frase deve appartenere a questa sezione */\r\n sezioneID?: number | null;\r\n /** Filters by not deleted when true or only deleted items when false */\r\n showDeleted?: boolean;\r\n tipoServizioID?: string | null;\r\n\r\n constructor(data?: IListPhrasesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.noLuogo = _data[\"noLuogo\"] !== undefined ? _data[\"noLuogo\"] : null;\r\n this.noServizio = _data[\"noServizio\"] !== undefined ? _data[\"noServizio\"] : null;\r\n this.noContatto = _data[\"noContatto\"] !== undefined ? _data[\"noContatto\"] : null;\r\n if (Array.isArray(_data[\"tagIds\"])) {\r\n this.tagIds = [] as any;\r\n for (let item of _data[\"tagIds\"])\r\n this.tagIds!.push(item);\r\n }\r\n else {\r\n this.tagIds = null;\r\n }\r\n this.tagsIdsFilter = _data[\"tagsIdsFilter\"] !== undefined ? _data[\"tagsIdsFilter\"] : null;\r\n if (Array.isArray(_data[\"luoghiIds\"])) {\r\n this.luoghiIds = [] as any;\r\n for (let item of _data[\"luoghiIds\"])\r\n this.luoghiIds!.push(item);\r\n }\r\n else {\r\n this.luoghiIds = null;\r\n }\r\n if (Array.isArray(_data[\"paesiIds\"])) {\r\n this.paesiIds = [] as any;\r\n for (let item of _data[\"paesiIds\"])\r\n this.paesiIds!.push(item);\r\n }\r\n else {\r\n this.paesiIds = null;\r\n }\r\n if (Array.isArray(_data[\"serviziIds\"])) {\r\n this.serviziIds = [] as any;\r\n for (let item of _data[\"serviziIds\"])\r\n this.serviziIds!.push(item);\r\n }\r\n else {\r\n this.serviziIds = null;\r\n }\r\n if (Array.isArray(_data[\"contattiIds\"])) {\r\n this.contattiIds = [] as any;\r\n for (let item of _data[\"contattiIds\"])\r\n this.contattiIds!.push(item);\r\n }\r\n else {\r\n this.contattiIds = null;\r\n }\r\n this.sezioneID = _data[\"sezioneID\"] !== undefined ? _data[\"sezioneID\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n this.tipoServizioID = _data[\"tipoServizioID\"] !== undefined ? _data[\"tipoServizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListPhrasesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListPhrasesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"noLuogo\"] = this.noLuogo !== undefined ? this.noLuogo : null;\r\n data[\"noServizio\"] = this.noServizio !== undefined ? this.noServizio : null;\r\n data[\"noContatto\"] = this.noContatto !== undefined ? this.noContatto : null;\r\n if (Array.isArray(this.tagIds)) {\r\n data[\"tagIds\"] = [];\r\n for (let item of this.tagIds)\r\n data[\"tagIds\"].push(item);\r\n }\r\n data[\"tagsIdsFilter\"] = this.tagsIdsFilter !== undefined ? this.tagsIdsFilter : null;\r\n if (Array.isArray(this.luoghiIds)) {\r\n data[\"luoghiIds\"] = [];\r\n for (let item of this.luoghiIds)\r\n data[\"luoghiIds\"].push(item);\r\n }\r\n if (Array.isArray(this.paesiIds)) {\r\n data[\"paesiIds\"] = [];\r\n for (let item of this.paesiIds)\r\n data[\"paesiIds\"].push(item);\r\n }\r\n if (Array.isArray(this.serviziIds)) {\r\n data[\"serviziIds\"] = [];\r\n for (let item of this.serviziIds)\r\n data[\"serviziIds\"].push(item);\r\n }\r\n if (Array.isArray(this.contattiIds)) {\r\n data[\"contattiIds\"] = [];\r\n for (let item of this.contattiIds)\r\n data[\"contattiIds\"].push(item);\r\n }\r\n data[\"sezioneID\"] = this.sezioneID !== undefined ? this.sezioneID : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n data[\"tipoServizioID\"] = this.tipoServizioID !== undefined ? this.tipoServizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListPhrasesRequest extends INrTableRequest {\r\n /** Termine di ricerca: ID, titolo, parti di testo */\r\n term?: string | null;\r\n /** Se true cerca solo frasi non associate a luogo */\r\n noLuogo?: boolean;\r\n /** Se true cerca solo frasi non associate a servizio */\r\n noServizio?: boolean;\r\n /** Se true cerca solo frasi non associate a contatto */\r\n noContatto?: boolean;\r\n /** Se presente cerca solo frasi che hanno almeno uno dei tag con l'id della lista */\r\n tagIds?: number[] | null;\r\n /** Modalità di filtraggio degli ID dei tag */\r\n tagsIdsFilter?: EListPhrasesCollectionFilter;\r\n /** Filtro sugli ID luogo. Se presente la frase deve appartenere ad uno di questi luoghi */\r\n luoghiIds?: number[] | null;\r\n /** Filtroo sugli ID paese; */\r\n paesiIds?: number[] | null;\r\n /** Filtro sugli ID servizio. Se presente la frase deve appartenere ad uno di questi servizi */\r\n serviziIds?: number[] | null;\r\n /** Filtro sugli ID contatto. Se presente la frase deve appartenere ad uno di questi contatti */\r\n contattiIds?: number[] | null;\r\n /** Filtro sull'ID della sezione. Se presente la frase deve appartenere a questa sezione */\r\n sezioneID?: number | null;\r\n /** Filters by not deleted when true or only deleted items when false */\r\n showDeleted?: boolean;\r\n tipoServizioID?: string | null;\r\n}\r\n\r\nexport enum EListPhrasesCollectionFilter {\r\n All = \"All\",\r\n Any = \"Any\",\r\n}\r\n\r\nexport class TranslatePhrasesResponse extends OkApiResponse implements ITranslatePhrasesResponse {\r\n testoTradotto?: FraseTestoLingua | null;\r\n\r\n constructor(data?: ITranslatePhrasesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.testoTradotto = _data[\"testoTradotto\"] ? FraseTestoLingua.fromJS(_data[\"testoTradotto\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslatePhrasesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslatePhrasesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testoTradotto\"] = this.testoTradotto ? this.testoTradotto.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslatePhrasesResponse extends IOkApiResponse {\r\n testoTradotto?: FraseTestoLingua | null;\r\n}\r\n\r\nexport class FraseTestoLingua implements IFraseTestoLingua {\r\n fraseID?: number;\r\n lingua?: ELingua;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n confermato?: boolean;\r\n\r\n constructor(data?: IFraseTestoLingua) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.confermato = _data[\"confermato\"] !== undefined ? _data[\"confermato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FraseTestoLingua {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FraseTestoLingua();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"confermato\"] = this.confermato !== undefined ? this.confermato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFraseTestoLingua {\r\n fraseID?: number;\r\n lingua?: ELingua;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n confermato?: boolean;\r\n}\r\n\r\nexport class TranslatePhrasesRequest extends ApiRequest implements ITranslatePhrasesRequest {\r\n testo?: FraseTestoLingua | null;\r\n linguaDestinazione?: ELingua;\r\n\r\n constructor(data?: ITranslatePhrasesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.testo = _data[\"testo\"] ? FraseTestoLingua.fromJS(_data[\"testo\"]) : null;\r\n this.linguaDestinazione = _data[\"linguaDestinazione\"] !== undefined ? _data[\"linguaDestinazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslatePhrasesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslatePhrasesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"testo\"] = this.testo ? this.testo.toJSON() : null;\r\n data[\"linguaDestinazione\"] = this.linguaDestinazione !== undefined ? this.linguaDestinazione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslatePhrasesRequest extends IApiRequest {\r\n testo?: FraseTestoLingua | null;\r\n linguaDestinazione?: ELingua;\r\n}\r\n\r\nexport class PhraseRestoreRequest extends ApiRequest implements IPhraseRestoreRequest {\r\n fraseID?: number;\r\n\r\n constructor(data?: IPhraseRestoreRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PhraseRestoreRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PhraseRestoreRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhraseRestoreRequest extends IApiRequest {\r\n fraseID?: number;\r\n}\r\n\r\nexport class ConvertPdfMultiResponse extends OkApiResponse implements IConvertPdfMultiResponse {\r\n outputTempID?: number;\r\n\r\n constructor(data?: IConvertPdfMultiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.outputTempID = _data[\"outputTempID\"] !== undefined ? _data[\"outputTempID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConvertPdfMultiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConvertPdfMultiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"outputTempID\"] = this.outputTempID !== undefined ? this.outputTempID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConvertPdfMultiResponse extends IOkApiResponse {\r\n outputTempID?: number;\r\n}\r\n\r\nexport class ConvertPdfMultiRequest extends ApiRequest implements IConvertPdfMultiRequest {\r\n documentiIDs?: number[];\r\n format?: string;\r\n\r\n constructor(data?: IConvertPdfMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"documentiIDs\"])) {\r\n this.documentiIDs = [] as any;\r\n for (let item of _data[\"documentiIDs\"])\r\n this.documentiIDs!.push(item);\r\n }\r\n else {\r\n this.documentiIDs = null;\r\n }\r\n this.format = _data[\"format\"] !== undefined ? _data[\"format\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConvertPdfMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConvertPdfMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.documentiIDs)) {\r\n data[\"documentiIDs\"] = [];\r\n for (let item of this.documentiIDs)\r\n data[\"documentiIDs\"].push(item);\r\n }\r\n data[\"format\"] = this.format !== undefined ? this.format : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConvertPdfMultiRequest extends IApiRequest {\r\n documentiIDs?: number[];\r\n format?: string;\r\n}\r\n\r\nexport class TripGetResponse extends OkApiResponse implements ITripGetResponse {\r\n id?: number;\r\n header?: TripHeader;\r\n contattoAgenziaID?: number | null;\r\n agency?: TripAgency | null;\r\n status?: TripStatus | null;\r\n economics?: TripEconomics | null;\r\n cancelCosts?: TripCancelCosts;\r\n paxes?: TripPaxes;\r\n confermata?: boolean;\r\n annullata?: boolean;\r\n warningGlobali?: WarningOfferta[];\r\n confermabile?: boolean;\r\n warningVoli?: WarningOfferta[];\r\n voliPrenotabili?: boolean;\r\n noteAgenzia?: string[] | null;\r\n flights?: TripFlights;\r\n steps?: TripStep[];\r\n accontoTotale?: number;\r\n compensatoTotale?: number;\r\n dataPrimoAcconto?: string | null;\r\n agreementsCosts?: TripAgreementCost[] | null;\r\n agreementsByRoomCosts?: TripAgreementCost[] | null;\r\n note?: TripNote[] | null;\r\n abilitaCopiaAgenzia?: boolean;\r\n /** Se true consente l'inserimento di quote di apertura con impostazione \"manuale\" che non vengono eliminate in automatico se il viaggio è a tappa singola */\r\n consentiQuoteManuali?: boolean;\r\n /** Tutti i servizi accessori non volo, non booking fee e non assicurazione */\r\n accessories?: TripStep | null;\r\n /** Assicurazioni per conto loro */\r\n insurances?: TripStep | null;\r\n documenti?: TripDocument[] | null;\r\n corrispondenzaAgenzia?: TripDocument[] | null;\r\n corrispondenzaFornitori?: TripDocument[] | null;\r\n documentiViaggio?: TripDocument[] | null;\r\n vouchers?: TripVoucher[] | null;\r\n emails?: TripEmail[] | null;\r\n isNew?: boolean;\r\n newTripData?: Offerta | null;\r\n documentiAllegabili?: TripAttachedDocCategory[] | null;\r\n documentiAgenzia?: TripAgencyDocuments;\r\n assicurazioni?: EServizioAutomatico[];\r\n voucherTuristicoID?: number | null;\r\n /** Percentuale attuale dei diritti di agenzia. Null se non presenti */\r\n percentualeDirittiAgenzia?: number | null;\r\n /** True se è possibile attivare il pulsante di sblocco */\r\n sbloccabile?: boolean;\r\n /** ID univoci di tutti i luoghi (città, regione, paese) toccati */\r\n luoghiIds?: number[];\r\n /** Se true è possibile generare l'estratto conto. */\r\n consentiEstrattoConto?: boolean;\r\n\r\n constructor(data?: ITripGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.header = _data[\"header\"] ? TripHeader.fromJS(_data[\"header\"]) : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.agency = _data[\"agency\"] ? TripAgency.fromJS(_data[\"agency\"]) : null;\r\n this.status = _data[\"status\"] ? TripStatus.fromJS(_data[\"status\"]) : null;\r\n this.economics = _data[\"economics\"] ? TripEconomics.fromJS(_data[\"economics\"]) : null;\r\n this.cancelCosts = _data[\"cancelCosts\"] ? TripCancelCosts.fromJS(_data[\"cancelCosts\"]) : null;\r\n this.paxes = _data[\"paxes\"] ? TripPaxes.fromJS(_data[\"paxes\"]) : null;\r\n this.confermata = _data[\"confermata\"] !== undefined ? _data[\"confermata\"] : null;\r\n this.annullata = _data[\"annullata\"] !== undefined ? _data[\"annullata\"] : null;\r\n if (Array.isArray(_data[\"warningGlobali\"])) {\r\n this.warningGlobali = [] as any;\r\n for (let item of _data[\"warningGlobali\"])\r\n this.warningGlobali!.push(WarningOfferta.fromJS(item));\r\n }\r\n else {\r\n this.warningGlobali = null;\r\n }\r\n this.confermabile = _data[\"confermabile\"] !== undefined ? _data[\"confermabile\"] : null;\r\n if (Array.isArray(_data[\"warningVoli\"])) {\r\n this.warningVoli = [] as any;\r\n for (let item of _data[\"warningVoli\"])\r\n this.warningVoli!.push(WarningOfferta.fromJS(item));\r\n }\r\n else {\r\n this.warningVoli = null;\r\n }\r\n this.voliPrenotabili = _data[\"voliPrenotabili\"] !== undefined ? _data[\"voliPrenotabili\"] : null;\r\n if (Array.isArray(_data[\"noteAgenzia\"])) {\r\n this.noteAgenzia = [] as any;\r\n for (let item of _data[\"noteAgenzia\"])\r\n this.noteAgenzia!.push(item);\r\n }\r\n else {\r\n this.noteAgenzia = null;\r\n }\r\n this.flights = _data[\"flights\"] ? TripFlights.fromJS(_data[\"flights\"]) : null;\r\n if (Array.isArray(_data[\"steps\"])) {\r\n this.steps = [] as any;\r\n for (let item of _data[\"steps\"])\r\n this.steps!.push(TripStep.fromJS(item));\r\n }\r\n else {\r\n this.steps = null;\r\n }\r\n this.accontoTotale = _data[\"accontoTotale\"] !== undefined ? _data[\"accontoTotale\"] : null;\r\n this.compensatoTotale = _data[\"compensatoTotale\"] !== undefined ? _data[\"compensatoTotale\"] : null;\r\n this.dataPrimoAcconto = _data[\"dataPrimoAcconto\"] !== undefined ? _data[\"dataPrimoAcconto\"] : null;\r\n if (Array.isArray(_data[\"agreementsCosts\"])) {\r\n this.agreementsCosts = [] as any;\r\n for (let item of _data[\"agreementsCosts\"])\r\n this.agreementsCosts!.push(TripAgreementCost.fromJS(item));\r\n }\r\n else {\r\n this.agreementsCosts = null;\r\n }\r\n if (Array.isArray(_data[\"agreementsByRoomCosts\"])) {\r\n this.agreementsByRoomCosts = [] as any;\r\n for (let item of _data[\"agreementsByRoomCosts\"])\r\n this.agreementsByRoomCosts!.push(TripAgreementCost.fromJS(item));\r\n }\r\n else {\r\n this.agreementsByRoomCosts = null;\r\n }\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(TripNote.fromJS(item));\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n this.abilitaCopiaAgenzia = _data[\"abilitaCopiaAgenzia\"] !== undefined ? _data[\"abilitaCopiaAgenzia\"] : null;\r\n this.consentiQuoteManuali = _data[\"consentiQuoteManuali\"] !== undefined ? _data[\"consentiQuoteManuali\"] : null;\r\n this.accessories = _data[\"accessories\"] ? TripStep.fromJS(_data[\"accessories\"]) : null;\r\n this.insurances = _data[\"insurances\"] ? TripStep.fromJS(_data[\"insurances\"]) : null;\r\n if (Array.isArray(_data[\"documenti\"])) {\r\n this.documenti = [] as any;\r\n for (let item of _data[\"documenti\"])\r\n this.documenti!.push(TripDocument.fromJS(item));\r\n }\r\n else {\r\n this.documenti = null;\r\n }\r\n if (Array.isArray(_data[\"corrispondenzaAgenzia\"])) {\r\n this.corrispondenzaAgenzia = [] as any;\r\n for (let item of _data[\"corrispondenzaAgenzia\"])\r\n this.corrispondenzaAgenzia!.push(TripDocument.fromJS(item));\r\n }\r\n else {\r\n this.corrispondenzaAgenzia = null;\r\n }\r\n if (Array.isArray(_data[\"corrispondenzaFornitori\"])) {\r\n this.corrispondenzaFornitori = [] as any;\r\n for (let item of _data[\"corrispondenzaFornitori\"])\r\n this.corrispondenzaFornitori!.push(TripDocument.fromJS(item));\r\n }\r\n else {\r\n this.corrispondenzaFornitori = null;\r\n }\r\n if (Array.isArray(_data[\"documentiViaggio\"])) {\r\n this.documentiViaggio = [] as any;\r\n for (let item of _data[\"documentiViaggio\"])\r\n this.documentiViaggio!.push(TripDocument.fromJS(item));\r\n }\r\n else {\r\n this.documentiViaggio = null;\r\n }\r\n if (Array.isArray(_data[\"vouchers\"])) {\r\n this.vouchers = [] as any;\r\n for (let item of _data[\"vouchers\"])\r\n this.vouchers!.push(TripVoucher.fromJS(item));\r\n }\r\n else {\r\n this.vouchers = null;\r\n }\r\n if (Array.isArray(_data[\"emails\"])) {\r\n this.emails = [] as any;\r\n for (let item of _data[\"emails\"])\r\n this.emails!.push(TripEmail.fromJS(item));\r\n }\r\n else {\r\n this.emails = null;\r\n }\r\n this.isNew = _data[\"isNew\"] !== undefined ? _data[\"isNew\"] : null;\r\n this.newTripData = _data[\"newTripData\"] ? Offerta.fromJS(_data[\"newTripData\"]) : null;\r\n if (Array.isArray(_data[\"documentiAllegabili\"])) {\r\n this.documentiAllegabili = [] as any;\r\n for (let item of _data[\"documentiAllegabili\"])\r\n this.documentiAllegabili!.push(TripAttachedDocCategory.fromJS(item));\r\n }\r\n else {\r\n this.documentiAllegabili = null;\r\n }\r\n this.documentiAgenzia = _data[\"documentiAgenzia\"] ? TripAgencyDocuments.fromJS(_data[\"documentiAgenzia\"]) : null;\r\n if (Array.isArray(_data[\"assicurazioni\"])) {\r\n this.assicurazioni = [] as any;\r\n for (let item of _data[\"assicurazioni\"])\r\n this.assicurazioni!.push(item);\r\n }\r\n else {\r\n this.assicurazioni = null;\r\n }\r\n this.voucherTuristicoID = _data[\"voucherTuristicoID\"] !== undefined ? _data[\"voucherTuristicoID\"] : null;\r\n this.percentualeDirittiAgenzia = _data[\"percentualeDirittiAgenzia\"] !== undefined ? _data[\"percentualeDirittiAgenzia\"] : null;\r\n this.sbloccabile = _data[\"sbloccabile\"] !== undefined ? _data[\"sbloccabile\"] : null;\r\n if (Array.isArray(_data[\"luoghiIds\"])) {\r\n this.luoghiIds = [] as any;\r\n for (let item of _data[\"luoghiIds\"])\r\n this.luoghiIds!.push(item);\r\n }\r\n else {\r\n this.luoghiIds = null;\r\n }\r\n this.consentiEstrattoConto = _data[\"consentiEstrattoConto\"] !== undefined ? _data[\"consentiEstrattoConto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"header\"] = this.header ? this.header.toJSON() : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"agency\"] = this.agency ? this.agency.toJSON() : null;\r\n data[\"status\"] = this.status ? this.status.toJSON() : null;\r\n data[\"economics\"] = this.economics ? this.economics.toJSON() : null;\r\n data[\"cancelCosts\"] = this.cancelCosts ? this.cancelCosts.toJSON() : null;\r\n data[\"paxes\"] = this.paxes ? this.paxes.toJSON() : null;\r\n data[\"confermata\"] = this.confermata !== undefined ? this.confermata : null;\r\n data[\"annullata\"] = this.annullata !== undefined ? this.annullata : null;\r\n if (Array.isArray(this.warningGlobali)) {\r\n data[\"warningGlobali\"] = [];\r\n for (let item of this.warningGlobali)\r\n data[\"warningGlobali\"].push(item.toJSON());\r\n }\r\n data[\"confermabile\"] = this.confermabile !== undefined ? this.confermabile : null;\r\n if (Array.isArray(this.warningVoli)) {\r\n data[\"warningVoli\"] = [];\r\n for (let item of this.warningVoli)\r\n data[\"warningVoli\"].push(item.toJSON());\r\n }\r\n data[\"voliPrenotabili\"] = this.voliPrenotabili !== undefined ? this.voliPrenotabili : null;\r\n if (Array.isArray(this.noteAgenzia)) {\r\n data[\"noteAgenzia\"] = [];\r\n for (let item of this.noteAgenzia)\r\n data[\"noteAgenzia\"].push(item);\r\n }\r\n data[\"flights\"] = this.flights ? this.flights.toJSON() : null;\r\n if (Array.isArray(this.steps)) {\r\n data[\"steps\"] = [];\r\n for (let item of this.steps)\r\n data[\"steps\"].push(item.toJSON());\r\n }\r\n data[\"accontoTotale\"] = this.accontoTotale !== undefined ? this.accontoTotale : null;\r\n data[\"compensatoTotale\"] = this.compensatoTotale !== undefined ? this.compensatoTotale : null;\r\n data[\"dataPrimoAcconto\"] = this.dataPrimoAcconto !== undefined ? this.dataPrimoAcconto : null;\r\n if (Array.isArray(this.agreementsCosts)) {\r\n data[\"agreementsCosts\"] = [];\r\n for (let item of this.agreementsCosts)\r\n data[\"agreementsCosts\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.agreementsByRoomCosts)) {\r\n data[\"agreementsByRoomCosts\"] = [];\r\n for (let item of this.agreementsByRoomCosts)\r\n data[\"agreementsByRoomCosts\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item.toJSON());\r\n }\r\n data[\"abilitaCopiaAgenzia\"] = this.abilitaCopiaAgenzia !== undefined ? this.abilitaCopiaAgenzia : null;\r\n data[\"consentiQuoteManuali\"] = this.consentiQuoteManuali !== undefined ? this.consentiQuoteManuali : null;\r\n data[\"accessories\"] = this.accessories ? this.accessories.toJSON() : null;\r\n data[\"insurances\"] = this.insurances ? this.insurances.toJSON() : null;\r\n if (Array.isArray(this.documenti)) {\r\n data[\"documenti\"] = [];\r\n for (let item of this.documenti)\r\n data[\"documenti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.corrispondenzaAgenzia)) {\r\n data[\"corrispondenzaAgenzia\"] = [];\r\n for (let item of this.corrispondenzaAgenzia)\r\n data[\"corrispondenzaAgenzia\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.corrispondenzaFornitori)) {\r\n data[\"corrispondenzaFornitori\"] = [];\r\n for (let item of this.corrispondenzaFornitori)\r\n data[\"corrispondenzaFornitori\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.documentiViaggio)) {\r\n data[\"documentiViaggio\"] = [];\r\n for (let item of this.documentiViaggio)\r\n data[\"documentiViaggio\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.vouchers)) {\r\n data[\"vouchers\"] = [];\r\n for (let item of this.vouchers)\r\n data[\"vouchers\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.emails)) {\r\n data[\"emails\"] = [];\r\n for (let item of this.emails)\r\n data[\"emails\"].push(item.toJSON());\r\n }\r\n data[\"isNew\"] = this.isNew !== undefined ? this.isNew : null;\r\n data[\"newTripData\"] = this.newTripData ? this.newTripData.toJSON() : null;\r\n if (Array.isArray(this.documentiAllegabili)) {\r\n data[\"documentiAllegabili\"] = [];\r\n for (let item of this.documentiAllegabili)\r\n data[\"documentiAllegabili\"].push(item.toJSON());\r\n }\r\n data[\"documentiAgenzia\"] = this.documentiAgenzia ? this.documentiAgenzia.toJSON() : null;\r\n if (Array.isArray(this.assicurazioni)) {\r\n data[\"assicurazioni\"] = [];\r\n for (let item of this.assicurazioni)\r\n data[\"assicurazioni\"].push(item);\r\n }\r\n data[\"voucherTuristicoID\"] = this.voucherTuristicoID !== undefined ? this.voucherTuristicoID : null;\r\n data[\"percentualeDirittiAgenzia\"] = this.percentualeDirittiAgenzia !== undefined ? this.percentualeDirittiAgenzia : null;\r\n data[\"sbloccabile\"] = this.sbloccabile !== undefined ? this.sbloccabile : null;\r\n if (Array.isArray(this.luoghiIds)) {\r\n data[\"luoghiIds\"] = [];\r\n for (let item of this.luoghiIds)\r\n data[\"luoghiIds\"].push(item);\r\n }\r\n data[\"consentiEstrattoConto\"] = this.consentiEstrattoConto !== undefined ? this.consentiEstrattoConto : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripGetResponse extends IOkApiResponse {\r\n id?: number;\r\n header?: TripHeader;\r\n contattoAgenziaID?: number | null;\r\n agency?: TripAgency | null;\r\n status?: TripStatus | null;\r\n economics?: TripEconomics | null;\r\n cancelCosts?: TripCancelCosts;\r\n paxes?: TripPaxes;\r\n confermata?: boolean;\r\n annullata?: boolean;\r\n warningGlobali?: WarningOfferta[];\r\n confermabile?: boolean;\r\n warningVoli?: WarningOfferta[];\r\n voliPrenotabili?: boolean;\r\n noteAgenzia?: string[] | null;\r\n flights?: TripFlights;\r\n steps?: TripStep[];\r\n accontoTotale?: number;\r\n compensatoTotale?: number;\r\n dataPrimoAcconto?: string | null;\r\n agreementsCosts?: TripAgreementCost[] | null;\r\n agreementsByRoomCosts?: TripAgreementCost[] | null;\r\n note?: TripNote[] | null;\r\n abilitaCopiaAgenzia?: boolean;\r\n /** Se true consente l'inserimento di quote di apertura con impostazione \"manuale\" che non vengono eliminate in automatico se il viaggio è a tappa singola */\r\n consentiQuoteManuali?: boolean;\r\n /** Tutti i servizi accessori non volo, non booking fee e non assicurazione */\r\n accessories?: TripStep | null;\r\n /** Assicurazioni per conto loro */\r\n insurances?: TripStep | null;\r\n documenti?: TripDocument[] | null;\r\n corrispondenzaAgenzia?: TripDocument[] | null;\r\n corrispondenzaFornitori?: TripDocument[] | null;\r\n documentiViaggio?: TripDocument[] | null;\r\n vouchers?: TripVoucher[] | null;\r\n emails?: TripEmail[] | null;\r\n isNew?: boolean;\r\n newTripData?: Offerta | null;\r\n documentiAllegabili?: TripAttachedDocCategory[] | null;\r\n documentiAgenzia?: TripAgencyDocuments;\r\n assicurazioni?: EServizioAutomatico[];\r\n voucherTuristicoID?: number | null;\r\n /** Percentuale attuale dei diritti di agenzia. Null se non presenti */\r\n percentualeDirittiAgenzia?: number | null;\r\n /** True se è possibile attivare il pulsante di sblocco */\r\n sbloccabile?: boolean;\r\n /** ID univoci di tutti i luoghi (città, regione, paese) toccati */\r\n luoghiIds?: number[];\r\n /** Se true è possibile generare l'estratto conto. */\r\n consentiEstrattoConto?: boolean;\r\n}\r\n\r\nexport class TripHeader implements ITripHeader {\r\n id?: number;\r\n descrizione?: string | null;\r\n /** Titolo interno */\r\n titoloViaggio?: string | null;\r\n /** Titolo da usare nei documenti */\r\n titoloDocumenti?: string | null;\r\n note?: string | null;\r\n partenza?: string;\r\n termine?: string;\r\n giorni?: number;\r\n notti?: number;\r\n numeroPax?: number;\r\n numeroTappe?: number;\r\n nozze?: boolean;\r\n tipo?: ETipoViaggio;\r\n statoUtente?: EStatoOffertaUtente;\r\n modalitaQuote?: EModalitaQuote;\r\n dataCancellazioneTO?: string | null;\r\n offerta?: Offerta;\r\n /** Flag che indica che la stampa dell'offerta non richiede verifica prezzi */\r\n prezziAggiornati?: boolean;\r\n totale?: number | null;\r\n destinazione?: string | null;\r\n totaleCommissioni?: number | null;\r\n totaleNetto?: number | null;\r\n /** Solo intranet */\r\n utenteCreatore?: string | null;\r\n anticipiFornitoreAggiornati?: boolean;\r\n /** Lingua del viaggio */\r\n lingua?: ELingua;\r\n\r\n constructor(data?: ITripHeader) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.titoloViaggio = _data[\"titoloViaggio\"] !== undefined ? _data[\"titoloViaggio\"] : null;\r\n this.titoloDocumenti = _data[\"titoloDocumenti\"] !== undefined ? _data[\"titoloDocumenti\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.termine = _data[\"termine\"] !== undefined ? _data[\"termine\"] : null;\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.numeroPax = _data[\"numeroPax\"] !== undefined ? _data[\"numeroPax\"] : null;\r\n this.numeroTappe = _data[\"numeroTappe\"] !== undefined ? _data[\"numeroTappe\"] : null;\r\n this.nozze = _data[\"nozze\"] !== undefined ? _data[\"nozze\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.statoUtente = _data[\"statoUtente\"] !== undefined ? _data[\"statoUtente\"] : null;\r\n this.modalitaQuote = _data[\"modalitaQuote\"] !== undefined ? _data[\"modalitaQuote\"] : null;\r\n this.dataCancellazioneTO = _data[\"dataCancellazioneTO\"] !== undefined ? _data[\"dataCancellazioneTO\"] : null;\r\n this.offerta = _data[\"offerta\"] ? Offerta.fromJS(_data[\"offerta\"]) : null;\r\n this.prezziAggiornati = _data[\"prezziAggiornati\"] !== undefined ? _data[\"prezziAggiornati\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.totaleCommissioni = _data[\"totaleCommissioni\"] !== undefined ? _data[\"totaleCommissioni\"] : null;\r\n this.totaleNetto = _data[\"totaleNetto\"] !== undefined ? _data[\"totaleNetto\"] : null;\r\n this.utenteCreatore = _data[\"utenteCreatore\"] !== undefined ? _data[\"utenteCreatore\"] : null;\r\n this.anticipiFornitoreAggiornati = _data[\"anticipiFornitoreAggiornati\"] !== undefined ? _data[\"anticipiFornitoreAggiornati\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripHeader {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripHeader();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"titoloViaggio\"] = this.titoloViaggio !== undefined ? this.titoloViaggio : null;\r\n data[\"titoloDocumenti\"] = this.titoloDocumenti !== undefined ? this.titoloDocumenti : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"termine\"] = this.termine !== undefined ? this.termine : null;\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"numeroPax\"] = this.numeroPax !== undefined ? this.numeroPax : null;\r\n data[\"numeroTappe\"] = this.numeroTappe !== undefined ? this.numeroTappe : null;\r\n data[\"nozze\"] = this.nozze !== undefined ? this.nozze : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"statoUtente\"] = this.statoUtente !== undefined ? this.statoUtente : null;\r\n data[\"modalitaQuote\"] = this.modalitaQuote !== undefined ? this.modalitaQuote : null;\r\n data[\"dataCancellazioneTO\"] = this.dataCancellazioneTO !== undefined ? this.dataCancellazioneTO : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"prezziAggiornati\"] = this.prezziAggiornati !== undefined ? this.prezziAggiornati : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"totaleCommissioni\"] = this.totaleCommissioni !== undefined ? this.totaleCommissioni : null;\r\n data[\"totaleNetto\"] = this.totaleNetto !== undefined ? this.totaleNetto : null;\r\n data[\"utenteCreatore\"] = this.utenteCreatore !== undefined ? this.utenteCreatore : null;\r\n data[\"anticipiFornitoreAggiornati\"] = this.anticipiFornitoreAggiornati !== undefined ? this.anticipiFornitoreAggiornati : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripHeader {\r\n id?: number;\r\n descrizione?: string | null;\r\n /** Titolo interno */\r\n titoloViaggio?: string | null;\r\n /** Titolo da usare nei documenti */\r\n titoloDocumenti?: string | null;\r\n note?: string | null;\r\n partenza?: string;\r\n termine?: string;\r\n giorni?: number;\r\n notti?: number;\r\n numeroPax?: number;\r\n numeroTappe?: number;\r\n nozze?: boolean;\r\n tipo?: ETipoViaggio;\r\n statoUtente?: EStatoOffertaUtente;\r\n modalitaQuote?: EModalitaQuote;\r\n dataCancellazioneTO?: string | null;\r\n offerta?: Offerta;\r\n /** Flag che indica che la stampa dell'offerta non richiede verifica prezzi */\r\n prezziAggiornati?: boolean;\r\n totale?: number | null;\r\n destinazione?: string | null;\r\n totaleCommissioni?: number | null;\r\n totaleNetto?: number | null;\r\n /** Solo intranet */\r\n utenteCreatore?: string | null;\r\n anticipiFornitoreAggiornati?: boolean;\r\n /** Lingua del viaggio */\r\n lingua?: ELingua;\r\n}\r\n\r\nexport enum ETipoViaggio {\r\n Indefinito = \"Indefinito\",\r\n Vip = \"Vip\",\r\n Gruppo = \"Gruppo\",\r\n Tci = \"Tci\",\r\n Adv = \"Adv\",\r\n EasyTop = \"EasyTop\",\r\n Pacchetto = \"Pacchetto\",\r\n}\r\n\r\nexport enum EStatoOffertaUtente {\r\n Preventivo = \"Preventivo\",\r\n PrenotazioneInCorso = \"PrenotazioneInCorso\",\r\n Confermata = \"Confermata\",\r\n Annullata = \"Annullata\",\r\n}\r\n\r\nexport enum EModalitaQuote {\r\n Naar = \"Naar\",\r\n Online = \"Online\",\r\n OnlineUpgrade = \"OnlineUpgrade\",\r\n}\r\n\r\nexport class Offerta implements IOfferta {\r\n offertaID?: number;\r\n riferimento?: number;\r\n descrizione?: string | null;\r\n destinazioneID?: number | null;\r\n creazione?: string;\r\n partenza?: string;\r\n tipo?: ETipoViaggio | null;\r\n impiegatoUtenteID?: number;\r\n totale?: number | null;\r\n totaleCommissione?: number | null;\r\n totaleCommissioneCee?: number | null;\r\n totaleCosto?: number | null;\r\n operatore?: EOperatore;\r\n codiceAeroportoPartenza?: string | null;\r\n note?: string | null;\r\n numeroPax?: number | null;\r\n versione?: number;\r\n cookie?: string | null;\r\n nozze?: boolean;\r\n templateID?: number | null;\r\n tipologiaID?: number | null;\r\n offertaOrigineID?: number | null;\r\n totaleAssicurato?: number | null;\r\n anticipiAggiornati?: boolean;\r\n titoloViaggio?: string | null;\r\n penaleMassima?: number | null;\r\n ultimoAggiornamentoPenaleMassima?: string | null;\r\n\r\n constructor(data?: IOfferta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.riferimento = _data[\"riferimento\"] !== undefined ? _data[\"riferimento\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.destinazioneID = _data[\"destinazioneID\"] !== undefined ? _data[\"destinazioneID\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.impiegatoUtenteID = _data[\"impiegatoUtenteID\"] !== undefined ? _data[\"impiegatoUtenteID\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.totaleCommissione = _data[\"totaleCommissione\"] !== undefined ? _data[\"totaleCommissione\"] : null;\r\n this.totaleCommissioneCee = _data[\"totaleCommissioneCee\"] !== undefined ? _data[\"totaleCommissioneCee\"] : null;\r\n this.totaleCosto = _data[\"totaleCosto\"] !== undefined ? _data[\"totaleCosto\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.codiceAeroportoPartenza = _data[\"codiceAeroportoPartenza\"] !== undefined ? _data[\"codiceAeroportoPartenza\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.numeroPax = _data[\"numeroPax\"] !== undefined ? _data[\"numeroPax\"] : null;\r\n this.versione = _data[\"versione\"] !== undefined ? _data[\"versione\"] : null;\r\n this.cookie = _data[\"cookie\"] !== undefined ? _data[\"cookie\"] : null;\r\n this.nozze = _data[\"nozze\"] !== undefined ? _data[\"nozze\"] : null;\r\n this.templateID = _data[\"templateID\"] !== undefined ? _data[\"templateID\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.offertaOrigineID = _data[\"offertaOrigineID\"] !== undefined ? _data[\"offertaOrigineID\"] : null;\r\n this.totaleAssicurato = _data[\"totaleAssicurato\"] !== undefined ? _data[\"totaleAssicurato\"] : null;\r\n this.anticipiAggiornati = _data[\"anticipiAggiornati\"] !== undefined ? _data[\"anticipiAggiornati\"] : null;\r\n this.titoloViaggio = _data[\"titoloViaggio\"] !== undefined ? _data[\"titoloViaggio\"] : null;\r\n this.penaleMassima = _data[\"penaleMassima\"] !== undefined ? _data[\"penaleMassima\"] : null;\r\n this.ultimoAggiornamentoPenaleMassima = _data[\"ultimoAggiornamentoPenaleMassima\"] !== undefined ? _data[\"ultimoAggiornamentoPenaleMassima\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Offerta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Offerta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"riferimento\"] = this.riferimento !== undefined ? this.riferimento : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"destinazioneID\"] = this.destinazioneID !== undefined ? this.destinazioneID : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"impiegatoUtenteID\"] = this.impiegatoUtenteID !== undefined ? this.impiegatoUtenteID : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"totaleCommissione\"] = this.totaleCommissione !== undefined ? this.totaleCommissione : null;\r\n data[\"totaleCommissioneCee\"] = this.totaleCommissioneCee !== undefined ? this.totaleCommissioneCee : null;\r\n data[\"totaleCosto\"] = this.totaleCosto !== undefined ? this.totaleCosto : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"codiceAeroportoPartenza\"] = this.codiceAeroportoPartenza !== undefined ? this.codiceAeroportoPartenza : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"numeroPax\"] = this.numeroPax !== undefined ? this.numeroPax : null;\r\n data[\"versione\"] = this.versione !== undefined ? this.versione : null;\r\n data[\"cookie\"] = this.cookie !== undefined ? this.cookie : null;\r\n data[\"nozze\"] = this.nozze !== undefined ? this.nozze : null;\r\n data[\"templateID\"] = this.templateID !== undefined ? this.templateID : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"offertaOrigineID\"] = this.offertaOrigineID !== undefined ? this.offertaOrigineID : null;\r\n data[\"totaleAssicurato\"] = this.totaleAssicurato !== undefined ? this.totaleAssicurato : null;\r\n data[\"anticipiAggiornati\"] = this.anticipiAggiornati !== undefined ? this.anticipiAggiornati : null;\r\n data[\"titoloViaggio\"] = this.titoloViaggio !== undefined ? this.titoloViaggio : null;\r\n data[\"penaleMassima\"] = this.penaleMassima !== undefined ? this.penaleMassima : null;\r\n data[\"ultimoAggiornamentoPenaleMassima\"] = this.ultimoAggiornamentoPenaleMassima !== undefined ? this.ultimoAggiornamentoPenaleMassima : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOfferta {\r\n offertaID?: number;\r\n riferimento?: number;\r\n descrizione?: string | null;\r\n destinazioneID?: number | null;\r\n creazione?: string;\r\n partenza?: string;\r\n tipo?: ETipoViaggio | null;\r\n impiegatoUtenteID?: number;\r\n totale?: number | null;\r\n totaleCommissione?: number | null;\r\n totaleCommissioneCee?: number | null;\r\n totaleCosto?: number | null;\r\n operatore?: EOperatore;\r\n codiceAeroportoPartenza?: string | null;\r\n note?: string | null;\r\n numeroPax?: number | null;\r\n versione?: number;\r\n cookie?: string | null;\r\n nozze?: boolean;\r\n templateID?: number | null;\r\n tipologiaID?: number | null;\r\n offertaOrigineID?: number | null;\r\n totaleAssicurato?: number | null;\r\n anticipiAggiornati?: boolean;\r\n titoloViaggio?: string | null;\r\n penaleMassima?: number | null;\r\n ultimoAggiornamentoPenaleMassima?: string | null;\r\n}\r\n\r\nexport class TripAgency implements ITripAgency {\r\n offertaAgenzia?: OffertaAgenzia;\r\n id?: number;\r\n contattoID?: number;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n indirizzo?: string | null;\r\n civico?: string | null;\r\n cap?: string | null;\r\n luogo?: string | null;\r\n provincia?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n partitaIva?: string | null;\r\n email?: string | null;\r\n categoria?: string | null;\r\n pagamentoHtml?: string | null;\r\n contattoNetworkID?: number | null;\r\n network?: string | null;\r\n contattoPromoterID?: number | null;\r\n promoter?: string | null;\r\n telefonoPromoter?: string | null;\r\n acconto?: number | null;\r\n noAnticipoQuote?: boolean;\r\n accontoNozze?: number | null;\r\n noAnticipoBiglietti?: boolean;\r\n nomeAddetto?: string | null;\r\n emailAddetto?: string | null;\r\n addettoID?: number | null;\r\n username?: string | null;\r\n riferimentoCliente?: string | null;\r\n utentePreventivoID?: number | null;\r\n utentePreventivo?: string | null;\r\n utenteConfermaID?: number | null;\r\n utenteConferma?: string | null;\r\n utenteDocumentiID?: number | null;\r\n utenteDocumenti?: string | null;\r\n dataEvasionePrevista?: string | null;\r\n dataAppuntamentoAgenzia?: string | null;\r\n dataConferma?: string | null;\r\n dataConfermaTO?: string | null;\r\n dataCancellazioneADV?: string | null;\r\n dataCancellazioneTO?: string | null;\r\n commissione?: number | null;\r\n utenteTariffaID?: number | null;\r\n utenteTariffa?: string | null;\r\n utenteBiglietteriaID?: number | null;\r\n utenteBiglietteria?: string | null;\r\n richiedeAggiornamentoValute?: boolean;\r\n commissioneAccordo?: number | null;\r\n logoUrl?: string | null;\r\n statusPreventivo?: EStatusPreventivo | null;\r\n tagIDs?: number[];\r\n\r\n constructor(data?: ITripAgency) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaAgenzia = _data[\"offertaAgenzia\"] ? OffertaAgenzia.fromJS(_data[\"offertaAgenzia\"]) : null;\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.civico = _data[\"civico\"] !== undefined ? _data[\"civico\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.partitaIva = _data[\"partitaIva\"] !== undefined ? _data[\"partitaIva\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.pagamentoHtml = _data[\"pagamentoHtml\"] !== undefined ? _data[\"pagamentoHtml\"] : null;\r\n this.contattoNetworkID = _data[\"contattoNetworkID\"] !== undefined ? _data[\"contattoNetworkID\"] : null;\r\n this.network = _data[\"network\"] !== undefined ? _data[\"network\"] : null;\r\n this.contattoPromoterID = _data[\"contattoPromoterID\"] !== undefined ? _data[\"contattoPromoterID\"] : null;\r\n this.promoter = _data[\"promoter\"] !== undefined ? _data[\"promoter\"] : null;\r\n this.telefonoPromoter = _data[\"telefonoPromoter\"] !== undefined ? _data[\"telefonoPromoter\"] : null;\r\n this.acconto = _data[\"acconto\"] !== undefined ? _data[\"acconto\"] : null;\r\n this.noAnticipoQuote = _data[\"noAnticipoQuote\"] !== undefined ? _data[\"noAnticipoQuote\"] : null;\r\n this.accontoNozze = _data[\"accontoNozze\"] !== undefined ? _data[\"accontoNozze\"] : null;\r\n this.noAnticipoBiglietti = _data[\"noAnticipoBiglietti\"] !== undefined ? _data[\"noAnticipoBiglietti\"] : null;\r\n this.nomeAddetto = _data[\"nomeAddetto\"] !== undefined ? _data[\"nomeAddetto\"] : null;\r\n this.emailAddetto = _data[\"emailAddetto\"] !== undefined ? _data[\"emailAddetto\"] : null;\r\n this.addettoID = _data[\"addettoID\"] !== undefined ? _data[\"addettoID\"] : null;\r\n this.username = _data[\"username\"] !== undefined ? _data[\"username\"] : null;\r\n this.riferimentoCliente = _data[\"riferimentoCliente\"] !== undefined ? _data[\"riferimentoCliente\"] : null;\r\n this.utentePreventivoID = _data[\"utentePreventivoID\"] !== undefined ? _data[\"utentePreventivoID\"] : null;\r\n this.utentePreventivo = _data[\"utentePreventivo\"] !== undefined ? _data[\"utentePreventivo\"] : null;\r\n this.utenteConfermaID = _data[\"utenteConfermaID\"] !== undefined ? _data[\"utenteConfermaID\"] : null;\r\n this.utenteConferma = _data[\"utenteConferma\"] !== undefined ? _data[\"utenteConferma\"] : null;\r\n this.utenteDocumentiID = _data[\"utenteDocumentiID\"] !== undefined ? _data[\"utenteDocumentiID\"] : null;\r\n this.utenteDocumenti = _data[\"utenteDocumenti\"] !== undefined ? _data[\"utenteDocumenti\"] : null;\r\n this.dataEvasionePrevista = _data[\"dataEvasionePrevista\"] !== undefined ? _data[\"dataEvasionePrevista\"] : null;\r\n this.dataAppuntamentoAgenzia = _data[\"dataAppuntamentoAgenzia\"] !== undefined ? _data[\"dataAppuntamentoAgenzia\"] : null;\r\n this.dataConferma = _data[\"dataConferma\"] !== undefined ? _data[\"dataConferma\"] : null;\r\n this.dataConfermaTO = _data[\"dataConfermaTO\"] !== undefined ? _data[\"dataConfermaTO\"] : null;\r\n this.dataCancellazioneADV = _data[\"dataCancellazioneADV\"] !== undefined ? _data[\"dataCancellazioneADV\"] : null;\r\n this.dataCancellazioneTO = _data[\"dataCancellazioneTO\"] !== undefined ? _data[\"dataCancellazioneTO\"] : null;\r\n this.commissione = _data[\"commissione\"] !== undefined ? _data[\"commissione\"] : null;\r\n this.utenteTariffaID = _data[\"utenteTariffaID\"] !== undefined ? _data[\"utenteTariffaID\"] : null;\r\n this.utenteTariffa = _data[\"utenteTariffa\"] !== undefined ? _data[\"utenteTariffa\"] : null;\r\n this.utenteBiglietteriaID = _data[\"utenteBiglietteriaID\"] !== undefined ? _data[\"utenteBiglietteriaID\"] : null;\r\n this.utenteBiglietteria = _data[\"utenteBiglietteria\"] !== undefined ? _data[\"utenteBiglietteria\"] : null;\r\n this.richiedeAggiornamentoValute = _data[\"richiedeAggiornamentoValute\"] !== undefined ? _data[\"richiedeAggiornamentoValute\"] : null;\r\n this.commissioneAccordo = _data[\"commissioneAccordo\"] !== undefined ? _data[\"commissioneAccordo\"] : null;\r\n this.logoUrl = _data[\"logoUrl\"] !== undefined ? _data[\"logoUrl\"] : null;\r\n this.statusPreventivo = _data[\"statusPreventivo\"] !== undefined ? _data[\"statusPreventivo\"] : null;\r\n if (Array.isArray(_data[\"tagIDs\"])) {\r\n this.tagIDs = [] as any;\r\n for (let item of _data[\"tagIDs\"])\r\n this.tagIDs!.push(item);\r\n }\r\n else {\r\n this.tagIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripAgency {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripAgency();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaAgenzia\"] = this.offertaAgenzia ? this.offertaAgenzia.toJSON() : null;\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"civico\"] = this.civico !== undefined ? this.civico : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"partitaIva\"] = this.partitaIva !== undefined ? this.partitaIva : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"pagamentoHtml\"] = this.pagamentoHtml !== undefined ? this.pagamentoHtml : null;\r\n data[\"contattoNetworkID\"] = this.contattoNetworkID !== undefined ? this.contattoNetworkID : null;\r\n data[\"network\"] = this.network !== undefined ? this.network : null;\r\n data[\"contattoPromoterID\"] = this.contattoPromoterID !== undefined ? this.contattoPromoterID : null;\r\n data[\"promoter\"] = this.promoter !== undefined ? this.promoter : null;\r\n data[\"telefonoPromoter\"] = this.telefonoPromoter !== undefined ? this.telefonoPromoter : null;\r\n data[\"acconto\"] = this.acconto !== undefined ? this.acconto : null;\r\n data[\"noAnticipoQuote\"] = this.noAnticipoQuote !== undefined ? this.noAnticipoQuote : null;\r\n data[\"accontoNozze\"] = this.accontoNozze !== undefined ? this.accontoNozze : null;\r\n data[\"noAnticipoBiglietti\"] = this.noAnticipoBiglietti !== undefined ? this.noAnticipoBiglietti : null;\r\n data[\"nomeAddetto\"] = this.nomeAddetto !== undefined ? this.nomeAddetto : null;\r\n data[\"emailAddetto\"] = this.emailAddetto !== undefined ? this.emailAddetto : null;\r\n data[\"addettoID\"] = this.addettoID !== undefined ? this.addettoID : null;\r\n data[\"username\"] = this.username !== undefined ? this.username : null;\r\n data[\"riferimentoCliente\"] = this.riferimentoCliente !== undefined ? this.riferimentoCliente : null;\r\n data[\"utentePreventivoID\"] = this.utentePreventivoID !== undefined ? this.utentePreventivoID : null;\r\n data[\"utentePreventivo\"] = this.utentePreventivo !== undefined ? this.utentePreventivo : null;\r\n data[\"utenteConfermaID\"] = this.utenteConfermaID !== undefined ? this.utenteConfermaID : null;\r\n data[\"utenteConferma\"] = this.utenteConferma !== undefined ? this.utenteConferma : null;\r\n data[\"utenteDocumentiID\"] = this.utenteDocumentiID !== undefined ? this.utenteDocumentiID : null;\r\n data[\"utenteDocumenti\"] = this.utenteDocumenti !== undefined ? this.utenteDocumenti : null;\r\n data[\"dataEvasionePrevista\"] = this.dataEvasionePrevista !== undefined ? this.dataEvasionePrevista : null;\r\n data[\"dataAppuntamentoAgenzia\"] = this.dataAppuntamentoAgenzia !== undefined ? this.dataAppuntamentoAgenzia : null;\r\n data[\"dataConferma\"] = this.dataConferma !== undefined ? this.dataConferma : null;\r\n data[\"dataConfermaTO\"] = this.dataConfermaTO !== undefined ? this.dataConfermaTO : null;\r\n data[\"dataCancellazioneADV\"] = this.dataCancellazioneADV !== undefined ? this.dataCancellazioneADV : null;\r\n data[\"dataCancellazioneTO\"] = this.dataCancellazioneTO !== undefined ? this.dataCancellazioneTO : null;\r\n data[\"commissione\"] = this.commissione !== undefined ? this.commissione : null;\r\n data[\"utenteTariffaID\"] = this.utenteTariffaID !== undefined ? this.utenteTariffaID : null;\r\n data[\"utenteTariffa\"] = this.utenteTariffa !== undefined ? this.utenteTariffa : null;\r\n data[\"utenteBiglietteriaID\"] = this.utenteBiglietteriaID !== undefined ? this.utenteBiglietteriaID : null;\r\n data[\"utenteBiglietteria\"] = this.utenteBiglietteria !== undefined ? this.utenteBiglietteria : null;\r\n data[\"richiedeAggiornamentoValute\"] = this.richiedeAggiornamentoValute !== undefined ? this.richiedeAggiornamentoValute : null;\r\n data[\"commissioneAccordo\"] = this.commissioneAccordo !== undefined ? this.commissioneAccordo : null;\r\n data[\"logoUrl\"] = this.logoUrl !== undefined ? this.logoUrl : null;\r\n data[\"statusPreventivo\"] = this.statusPreventivo !== undefined ? this.statusPreventivo : null;\r\n if (Array.isArray(this.tagIDs)) {\r\n data[\"tagIDs\"] = [];\r\n for (let item of this.tagIDs)\r\n data[\"tagIDs\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripAgency {\r\n offertaAgenzia?: OffertaAgenzia;\r\n id?: number;\r\n contattoID?: number;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n indirizzo?: string | null;\r\n civico?: string | null;\r\n cap?: string | null;\r\n luogo?: string | null;\r\n provincia?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n partitaIva?: string | null;\r\n email?: string | null;\r\n categoria?: string | null;\r\n pagamentoHtml?: string | null;\r\n contattoNetworkID?: number | null;\r\n network?: string | null;\r\n contattoPromoterID?: number | null;\r\n promoter?: string | null;\r\n telefonoPromoter?: string | null;\r\n acconto?: number | null;\r\n noAnticipoQuote?: boolean;\r\n accontoNozze?: number | null;\r\n noAnticipoBiglietti?: boolean;\r\n nomeAddetto?: string | null;\r\n emailAddetto?: string | null;\r\n addettoID?: number | null;\r\n username?: string | null;\r\n riferimentoCliente?: string | null;\r\n utentePreventivoID?: number | null;\r\n utentePreventivo?: string | null;\r\n utenteConfermaID?: number | null;\r\n utenteConferma?: string | null;\r\n utenteDocumentiID?: number | null;\r\n utenteDocumenti?: string | null;\r\n dataEvasionePrevista?: string | null;\r\n dataAppuntamentoAgenzia?: string | null;\r\n dataConferma?: string | null;\r\n dataConfermaTO?: string | null;\r\n dataCancellazioneADV?: string | null;\r\n dataCancellazioneTO?: string | null;\r\n commissione?: number | null;\r\n utenteTariffaID?: number | null;\r\n utenteTariffa?: string | null;\r\n utenteBiglietteriaID?: number | null;\r\n utenteBiglietteria?: string | null;\r\n richiedeAggiornamentoValute?: boolean;\r\n commissioneAccordo?: number | null;\r\n logoUrl?: string | null;\r\n statusPreventivo?: EStatusPreventivo | null;\r\n tagIDs?: number[];\r\n}\r\n\r\nexport class OffertaAgenzia implements IOffertaAgenzia {\r\n offertaAgenziaID?: number;\r\n offertaID?: number;\r\n utenteID?: number | null;\r\n contattoAgenziaID?: number | null;\r\n utentePreventivoID?: number | null;\r\n utenteConfermaID?: number | null;\r\n utenteDocumentiID?: number | null;\r\n utenteTariffaID?: number | null;\r\n utenteBigliettiAereiID?: number | null;\r\n contattoClienteDirettoID?: number | null;\r\n addetto?: string | null;\r\n emailAddetto?: string | null;\r\n riferimentoCliente?: string | null;\r\n commissione?: number | null;\r\n dataCreazione?: string;\r\n dataConferma?: string | null;\r\n dataConfermaTO?: string | null;\r\n dataCancellazioneTourOperator?: string | null;\r\n dataCancellazioneConferma?: string | null;\r\n fatturazioneAlNetto?: boolean;\r\n aggiornamentoValute?: EModalitaAggiornamentoValute;\r\n priorita?: string | null;\r\n cancellata?: number | null;\r\n teamID?: number | null;\r\n statusPreventivo?: EStatusPreventivo | null;\r\n dataAppuntamentoAgenzia?: string | null;\r\n contattoNetworkID?: number | null;\r\n contattoPromoterID?: number | null;\r\n dataInvioPreventivo?: string | null;\r\n lingua?: ELingua | null;\r\n\r\n constructor(data?: IOffertaAgenzia) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaAgenziaID = _data[\"offertaAgenziaID\"] !== undefined ? _data[\"offertaAgenziaID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.utenteID = _data[\"utenteID\"] !== undefined ? _data[\"utenteID\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.utentePreventivoID = _data[\"utentePreventivoID\"] !== undefined ? _data[\"utentePreventivoID\"] : null;\r\n this.utenteConfermaID = _data[\"utenteConfermaID\"] !== undefined ? _data[\"utenteConfermaID\"] : null;\r\n this.utenteDocumentiID = _data[\"utenteDocumentiID\"] !== undefined ? _data[\"utenteDocumentiID\"] : null;\r\n this.utenteTariffaID = _data[\"utenteTariffaID\"] !== undefined ? _data[\"utenteTariffaID\"] : null;\r\n this.utenteBigliettiAereiID = _data[\"utenteBigliettiAereiID\"] !== undefined ? _data[\"utenteBigliettiAereiID\"] : null;\r\n this.contattoClienteDirettoID = _data[\"contattoClienteDirettoID\"] !== undefined ? _data[\"contattoClienteDirettoID\"] : null;\r\n this.addetto = _data[\"addetto\"] !== undefined ? _data[\"addetto\"] : null;\r\n this.emailAddetto = _data[\"emailAddetto\"] !== undefined ? _data[\"emailAddetto\"] : null;\r\n this.riferimentoCliente = _data[\"riferimentoCliente\"] !== undefined ? _data[\"riferimentoCliente\"] : null;\r\n this.commissione = _data[\"commissione\"] !== undefined ? _data[\"commissione\"] : null;\r\n this.dataCreazione = _data[\"dataCreazione\"] !== undefined ? _data[\"dataCreazione\"] : null;\r\n this.dataConferma = _data[\"dataConferma\"] !== undefined ? _data[\"dataConferma\"] : null;\r\n this.dataConfermaTO = _data[\"dataConfermaTO\"] !== undefined ? _data[\"dataConfermaTO\"] : null;\r\n this.dataCancellazioneTourOperator = _data[\"dataCancellazioneTourOperator\"] !== undefined ? _data[\"dataCancellazioneTourOperator\"] : null;\r\n this.dataCancellazioneConferma = _data[\"dataCancellazioneConferma\"] !== undefined ? _data[\"dataCancellazioneConferma\"] : null;\r\n this.fatturazioneAlNetto = _data[\"fatturazioneAlNetto\"] !== undefined ? _data[\"fatturazioneAlNetto\"] : null;\r\n this.aggiornamentoValute = _data[\"aggiornamentoValute\"] !== undefined ? _data[\"aggiornamentoValute\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.cancellata = _data[\"cancellata\"] !== undefined ? _data[\"cancellata\"] : null;\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.statusPreventivo = _data[\"statusPreventivo\"] !== undefined ? _data[\"statusPreventivo\"] : null;\r\n this.dataAppuntamentoAgenzia = _data[\"dataAppuntamentoAgenzia\"] !== undefined ? _data[\"dataAppuntamentoAgenzia\"] : null;\r\n this.contattoNetworkID = _data[\"contattoNetworkID\"] !== undefined ? _data[\"contattoNetworkID\"] : null;\r\n this.contattoPromoterID = _data[\"contattoPromoterID\"] !== undefined ? _data[\"contattoPromoterID\"] : null;\r\n this.dataInvioPreventivo = _data[\"dataInvioPreventivo\"] !== undefined ? _data[\"dataInvioPreventivo\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaAgenzia {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaAgenzia();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaAgenziaID\"] = this.offertaAgenziaID !== undefined ? this.offertaAgenziaID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"utenteID\"] = this.utenteID !== undefined ? this.utenteID : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"utentePreventivoID\"] = this.utentePreventivoID !== undefined ? this.utentePreventivoID : null;\r\n data[\"utenteConfermaID\"] = this.utenteConfermaID !== undefined ? this.utenteConfermaID : null;\r\n data[\"utenteDocumentiID\"] = this.utenteDocumentiID !== undefined ? this.utenteDocumentiID : null;\r\n data[\"utenteTariffaID\"] = this.utenteTariffaID !== undefined ? this.utenteTariffaID : null;\r\n data[\"utenteBigliettiAereiID\"] = this.utenteBigliettiAereiID !== undefined ? this.utenteBigliettiAereiID : null;\r\n data[\"contattoClienteDirettoID\"] = this.contattoClienteDirettoID !== undefined ? this.contattoClienteDirettoID : null;\r\n data[\"addetto\"] = this.addetto !== undefined ? this.addetto : null;\r\n data[\"emailAddetto\"] = this.emailAddetto !== undefined ? this.emailAddetto : null;\r\n data[\"riferimentoCliente\"] = this.riferimentoCliente !== undefined ? this.riferimentoCliente : null;\r\n data[\"commissione\"] = this.commissione !== undefined ? this.commissione : null;\r\n data[\"dataCreazione\"] = this.dataCreazione !== undefined ? this.dataCreazione : null;\r\n data[\"dataConferma\"] = this.dataConferma !== undefined ? this.dataConferma : null;\r\n data[\"dataConfermaTO\"] = this.dataConfermaTO !== undefined ? this.dataConfermaTO : null;\r\n data[\"dataCancellazioneTourOperator\"] = this.dataCancellazioneTourOperator !== undefined ? this.dataCancellazioneTourOperator : null;\r\n data[\"dataCancellazioneConferma\"] = this.dataCancellazioneConferma !== undefined ? this.dataCancellazioneConferma : null;\r\n data[\"fatturazioneAlNetto\"] = this.fatturazioneAlNetto !== undefined ? this.fatturazioneAlNetto : null;\r\n data[\"aggiornamentoValute\"] = this.aggiornamentoValute !== undefined ? this.aggiornamentoValute : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"cancellata\"] = this.cancellata !== undefined ? this.cancellata : null;\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"statusPreventivo\"] = this.statusPreventivo !== undefined ? this.statusPreventivo : null;\r\n data[\"dataAppuntamentoAgenzia\"] = this.dataAppuntamentoAgenzia !== undefined ? this.dataAppuntamentoAgenzia : null;\r\n data[\"contattoNetworkID\"] = this.contattoNetworkID !== undefined ? this.contattoNetworkID : null;\r\n data[\"contattoPromoterID\"] = this.contattoPromoterID !== undefined ? this.contattoPromoterID : null;\r\n data[\"dataInvioPreventivo\"] = this.dataInvioPreventivo !== undefined ? this.dataInvioPreventivo : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaAgenzia {\r\n offertaAgenziaID?: number;\r\n offertaID?: number;\r\n utenteID?: number | null;\r\n contattoAgenziaID?: number | null;\r\n utentePreventivoID?: number | null;\r\n utenteConfermaID?: number | null;\r\n utenteDocumentiID?: number | null;\r\n utenteTariffaID?: number | null;\r\n utenteBigliettiAereiID?: number | null;\r\n contattoClienteDirettoID?: number | null;\r\n addetto?: string | null;\r\n emailAddetto?: string | null;\r\n riferimentoCliente?: string | null;\r\n commissione?: number | null;\r\n dataCreazione?: string;\r\n dataConferma?: string | null;\r\n dataConfermaTO?: string | null;\r\n dataCancellazioneTourOperator?: string | null;\r\n dataCancellazioneConferma?: string | null;\r\n fatturazioneAlNetto?: boolean;\r\n aggiornamentoValute?: EModalitaAggiornamentoValute;\r\n priorita?: string | null;\r\n cancellata?: number | null;\r\n teamID?: number | null;\r\n statusPreventivo?: EStatusPreventivo | null;\r\n dataAppuntamentoAgenzia?: string | null;\r\n contattoNetworkID?: number | null;\r\n contattoPromoterID?: number | null;\r\n dataInvioPreventivo?: string | null;\r\n lingua?: ELingua | null;\r\n}\r\n\r\nexport enum EModalitaAggiornamentoValute {\r\n NessunAdeguamento = \"NessunAdeguamento\",\r\n AggiornaCambi = \"AggiornaCambi\",\r\n CambiAggiornati = \"CambiAggiornati\",\r\n VerificaOfferta = \"VerificaOfferta\",\r\n}\r\n\r\nexport enum EStatusPreventivo {\r\n DaVerificare = \"DaVerificare\",\r\n DaFare = \"DaFare\",\r\n DaModificare = \"DaModificare\",\r\n AttesaADV = \"AttesaADV\",\r\n Completato = \"Completato\",\r\n NonConcretizzato = \"NonConcretizzato\",\r\n NonEvaso = \"NonEvaso\",\r\n ConfermaDaModificare = \"ConfermaDaModificare\",\r\n NonParte = \"NonParte\",\r\n VendutoAltroTO = \"VendutoAltroTO\",\r\n NonRichiamare = \"NonRichiamare\",\r\n SupportPostVendita = \"SupportPostVendita\",\r\n}\r\n\r\nexport class TripStatus implements ITripStatus {\r\n stato?: OffertaAgenziaStato | null;\r\n terminePagamento?: string | null;\r\n corriere?: string | null;\r\n acconto?: number;\r\n dataAcconto?: string | null;\r\n compensato?: number;\r\n dataCompensazione?: string | null;\r\n saldo?: number;\r\n dataSaldo?: string | null;\r\n incassi?: OffertaIncasso[];\r\n utenteSblocco?: string | null;\r\n righeSbloccabiliIDs?: number[];\r\n modalitaIncassi?: EModalitaIncassi;\r\n totaleDare?: number | null;\r\n totaleAvere?: number | null;\r\n totaleSbilancio?: number | null;\r\n totaleAvereScaduto?: number | null;\r\n\r\n constructor(data?: ITripStatus) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.stato = _data[\"stato\"] ? OffertaAgenziaStato.fromJS(_data[\"stato\"]) : null;\r\n this.terminePagamento = _data[\"terminePagamento\"] !== undefined ? _data[\"terminePagamento\"] : null;\r\n this.corriere = _data[\"corriere\"] !== undefined ? _data[\"corriere\"] : null;\r\n this.acconto = _data[\"acconto\"] !== undefined ? _data[\"acconto\"] : null;\r\n this.dataAcconto = _data[\"dataAcconto\"] !== undefined ? _data[\"dataAcconto\"] : null;\r\n this.compensato = _data[\"compensato\"] !== undefined ? _data[\"compensato\"] : null;\r\n this.dataCompensazione = _data[\"dataCompensazione\"] !== undefined ? _data[\"dataCompensazione\"] : null;\r\n this.saldo = _data[\"saldo\"] !== undefined ? _data[\"saldo\"] : null;\r\n this.dataSaldo = _data[\"dataSaldo\"] !== undefined ? _data[\"dataSaldo\"] : null;\r\n if (Array.isArray(_data[\"incassi\"])) {\r\n this.incassi = [] as any;\r\n for (let item of _data[\"incassi\"])\r\n this.incassi!.push(OffertaIncasso.fromJS(item));\r\n }\r\n else {\r\n this.incassi = null;\r\n }\r\n this.utenteSblocco = _data[\"utenteSblocco\"] !== undefined ? _data[\"utenteSblocco\"] : null;\r\n if (Array.isArray(_data[\"righeSbloccabiliIDs\"])) {\r\n this.righeSbloccabiliIDs = [] as any;\r\n for (let item of _data[\"righeSbloccabiliIDs\"])\r\n this.righeSbloccabiliIDs!.push(item);\r\n }\r\n else {\r\n this.righeSbloccabiliIDs = null;\r\n }\r\n this.modalitaIncassi = _data[\"modalitaIncassi\"] !== undefined ? _data[\"modalitaIncassi\"] : null;\r\n this.totaleDare = _data[\"totaleDare\"] !== undefined ? _data[\"totaleDare\"] : null;\r\n this.totaleAvere = _data[\"totaleAvere\"] !== undefined ? _data[\"totaleAvere\"] : null;\r\n this.totaleSbilancio = _data[\"totaleSbilancio\"] !== undefined ? _data[\"totaleSbilancio\"] : null;\r\n this.totaleAvereScaduto = _data[\"totaleAvereScaduto\"] !== undefined ? _data[\"totaleAvereScaduto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripStatus {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripStatus();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"terminePagamento\"] = this.terminePagamento !== undefined ? this.terminePagamento : null;\r\n data[\"corriere\"] = this.corriere !== undefined ? this.corriere : null;\r\n data[\"acconto\"] = this.acconto !== undefined ? this.acconto : null;\r\n data[\"dataAcconto\"] = this.dataAcconto !== undefined ? this.dataAcconto : null;\r\n data[\"compensato\"] = this.compensato !== undefined ? this.compensato : null;\r\n data[\"dataCompensazione\"] = this.dataCompensazione !== undefined ? this.dataCompensazione : null;\r\n data[\"saldo\"] = this.saldo !== undefined ? this.saldo : null;\r\n data[\"dataSaldo\"] = this.dataSaldo !== undefined ? this.dataSaldo : null;\r\n if (Array.isArray(this.incassi)) {\r\n data[\"incassi\"] = [];\r\n for (let item of this.incassi)\r\n data[\"incassi\"].push(item.toJSON());\r\n }\r\n data[\"utenteSblocco\"] = this.utenteSblocco !== undefined ? this.utenteSblocco : null;\r\n if (Array.isArray(this.righeSbloccabiliIDs)) {\r\n data[\"righeSbloccabiliIDs\"] = [];\r\n for (let item of this.righeSbloccabiliIDs)\r\n data[\"righeSbloccabiliIDs\"].push(item);\r\n }\r\n data[\"modalitaIncassi\"] = this.modalitaIncassi !== undefined ? this.modalitaIncassi : null;\r\n data[\"totaleDare\"] = this.totaleDare !== undefined ? this.totaleDare : null;\r\n data[\"totaleAvere\"] = this.totaleAvere !== undefined ? this.totaleAvere : null;\r\n data[\"totaleSbilancio\"] = this.totaleSbilancio !== undefined ? this.totaleSbilancio : null;\r\n data[\"totaleAvereScaduto\"] = this.totaleAvereScaduto !== undefined ? this.totaleAvereScaduto : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripStatus {\r\n stato?: OffertaAgenziaStato | null;\r\n terminePagamento?: string | null;\r\n corriere?: string | null;\r\n acconto?: number;\r\n dataAcconto?: string | null;\r\n compensato?: number;\r\n dataCompensazione?: string | null;\r\n saldo?: number;\r\n dataSaldo?: string | null;\r\n incassi?: OffertaIncasso[];\r\n utenteSblocco?: string | null;\r\n righeSbloccabiliIDs?: number[];\r\n modalitaIncassi?: EModalitaIncassi;\r\n totaleDare?: number | null;\r\n totaleAvere?: number | null;\r\n totaleSbilancio?: number | null;\r\n totaleAvereScaduto?: number | null;\r\n}\r\n\r\nexport class OffertaAgenziaStato implements IOffertaAgenziaStato {\r\n statusID?: number;\r\n offertaAgenziaID?: number;\r\n okAgenzia?: string | null;\r\n okFornitori?: string | null;\r\n terminePagamentoID?: number | null;\r\n acconto?: number | null;\r\n dataAcconto?: string | null;\r\n saldo?: number | null;\r\n dataSaldo?: string | null;\r\n invioDocumenti?: string | null;\r\n stampaProgramma?: string | null;\r\n bigliettiPresiInCarico?: string | null;\r\n ordinaEmissioneBiglietti?: string | null;\r\n stampaVoucher?: string | null;\r\n fattura?: number;\r\n networkID?: number | null;\r\n status?: EStatoOfferta | null;\r\n corriereID?: number | null;\r\n letteraVettura?: string | null;\r\n note?: string | null;\r\n creazioneDocumentiApp?: string | null;\r\n documentiAppStep1?: string | null;\r\n documentiAppStep2?: string | null;\r\n updateDocumentiApp?: string | null;\r\n invioDocumentiApp?: string | null;\r\n invioDocumentiMail?: string | null;\r\n okDocumenti?: string | null;\r\n bigliettiEmessi?: string | null;\r\n tipoEmissioneTicket?: ETipoTicketBiglietteria | null;\r\n importoAcconto?: number | null;\r\n tipoAccontoBiglietteria?: ETipoTicketBiglietteria | null;\r\n tipoAccontoServizi?: ETipoAcconto | null;\r\n okPassaporto?: string | null;\r\n haRigheConOrdinaBiglietteria?: boolean;\r\n righeCaricoBiglietteria?: EStatoInsieme;\r\n righeEmesseBiglietteria?: EStatoInsieme;\r\n righeOkContabileBiglietteria?: EStatoInsieme;\r\n okContabileBiglietteria?: string | null;\r\n autofattura?: number;\r\n dataSbloccoConferma?: string | null;\r\n utenteSbloccoConfermaID?: number | null;\r\n titoloViaggio?: string | null;\r\n bloccoRicalcolo?: string | null;\r\n\r\n constructor(data?: IOffertaAgenziaStato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.statusID = _data[\"statusID\"] !== undefined ? _data[\"statusID\"] : null;\r\n this.offertaAgenziaID = _data[\"offertaAgenziaID\"] !== undefined ? _data[\"offertaAgenziaID\"] : null;\r\n this.okAgenzia = _data[\"okAgenzia\"] !== undefined ? _data[\"okAgenzia\"] : null;\r\n this.okFornitori = _data[\"okFornitori\"] !== undefined ? _data[\"okFornitori\"] : null;\r\n this.terminePagamentoID = _data[\"terminePagamentoID\"] !== undefined ? _data[\"terminePagamentoID\"] : null;\r\n this.acconto = _data[\"acconto\"] !== undefined ? _data[\"acconto\"] : null;\r\n this.dataAcconto = _data[\"dataAcconto\"] !== undefined ? _data[\"dataAcconto\"] : null;\r\n this.saldo = _data[\"saldo\"] !== undefined ? _data[\"saldo\"] : null;\r\n this.dataSaldo = _data[\"dataSaldo\"] !== undefined ? _data[\"dataSaldo\"] : null;\r\n this.invioDocumenti = _data[\"invioDocumenti\"] !== undefined ? _data[\"invioDocumenti\"] : null;\r\n this.stampaProgramma = _data[\"stampaProgramma\"] !== undefined ? _data[\"stampaProgramma\"] : null;\r\n this.bigliettiPresiInCarico = _data[\"bigliettiPresiInCarico\"] !== undefined ? _data[\"bigliettiPresiInCarico\"] : null;\r\n this.ordinaEmissioneBiglietti = _data[\"ordinaEmissioneBiglietti\"] !== undefined ? _data[\"ordinaEmissioneBiglietti\"] : null;\r\n this.stampaVoucher = _data[\"stampaVoucher\"] !== undefined ? _data[\"stampaVoucher\"] : null;\r\n this.fattura = _data[\"fattura\"] !== undefined ? _data[\"fattura\"] : null;\r\n this.networkID = _data[\"networkID\"] !== undefined ? _data[\"networkID\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.corriereID = _data[\"corriereID\"] !== undefined ? _data[\"corriereID\"] : null;\r\n this.letteraVettura = _data[\"letteraVettura\"] !== undefined ? _data[\"letteraVettura\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.creazioneDocumentiApp = _data[\"creazioneDocumentiApp\"] !== undefined ? _data[\"creazioneDocumentiApp\"] : null;\r\n this.documentiAppStep1 = _data[\"documentiAppStep1\"] !== undefined ? _data[\"documentiAppStep1\"] : null;\r\n this.documentiAppStep2 = _data[\"documentiAppStep2\"] !== undefined ? _data[\"documentiAppStep2\"] : null;\r\n this.updateDocumentiApp = _data[\"updateDocumentiApp\"] !== undefined ? _data[\"updateDocumentiApp\"] : null;\r\n this.invioDocumentiApp = _data[\"invioDocumentiApp\"] !== undefined ? _data[\"invioDocumentiApp\"] : null;\r\n this.invioDocumentiMail = _data[\"invioDocumentiMail\"] !== undefined ? _data[\"invioDocumentiMail\"] : null;\r\n this.okDocumenti = _data[\"okDocumenti\"] !== undefined ? _data[\"okDocumenti\"] : null;\r\n this.bigliettiEmessi = _data[\"bigliettiEmessi\"] !== undefined ? _data[\"bigliettiEmessi\"] : null;\r\n this.tipoEmissioneTicket = _data[\"tipoEmissioneTicket\"] !== undefined ? _data[\"tipoEmissioneTicket\"] : null;\r\n this.importoAcconto = _data[\"importoAcconto\"] !== undefined ? _data[\"importoAcconto\"] : null;\r\n this.tipoAccontoBiglietteria = _data[\"tipoAccontoBiglietteria\"] !== undefined ? _data[\"tipoAccontoBiglietteria\"] : null;\r\n this.tipoAccontoServizi = _data[\"tipoAccontoServizi\"] !== undefined ? _data[\"tipoAccontoServizi\"] : null;\r\n this.okPassaporto = _data[\"okPassaporto\"] !== undefined ? _data[\"okPassaporto\"] : null;\r\n this.haRigheConOrdinaBiglietteria = _data[\"haRigheConOrdinaBiglietteria\"] !== undefined ? _data[\"haRigheConOrdinaBiglietteria\"] : null;\r\n this.righeCaricoBiglietteria = _data[\"righeCaricoBiglietteria\"] !== undefined ? _data[\"righeCaricoBiglietteria\"] : null;\r\n this.righeEmesseBiglietteria = _data[\"righeEmesseBiglietteria\"] !== undefined ? _data[\"righeEmesseBiglietteria\"] : null;\r\n this.righeOkContabileBiglietteria = _data[\"righeOkContabileBiglietteria\"] !== undefined ? _data[\"righeOkContabileBiglietteria\"] : null;\r\n this.okContabileBiglietteria = _data[\"okContabileBiglietteria\"] !== undefined ? _data[\"okContabileBiglietteria\"] : null;\r\n this.autofattura = _data[\"autofattura\"] !== undefined ? _data[\"autofattura\"] : null;\r\n this.dataSbloccoConferma = _data[\"dataSbloccoConferma\"] !== undefined ? _data[\"dataSbloccoConferma\"] : null;\r\n this.utenteSbloccoConfermaID = _data[\"utenteSbloccoConfermaID\"] !== undefined ? _data[\"utenteSbloccoConfermaID\"] : null;\r\n this.titoloViaggio = _data[\"titoloViaggio\"] !== undefined ? _data[\"titoloViaggio\"] : null;\r\n this.bloccoRicalcolo = _data[\"bloccoRicalcolo\"] !== undefined ? _data[\"bloccoRicalcolo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaAgenziaStato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaAgenziaStato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statusID\"] = this.statusID !== undefined ? this.statusID : null;\r\n data[\"offertaAgenziaID\"] = this.offertaAgenziaID !== undefined ? this.offertaAgenziaID : null;\r\n data[\"okAgenzia\"] = this.okAgenzia !== undefined ? this.okAgenzia : null;\r\n data[\"okFornitori\"] = this.okFornitori !== undefined ? this.okFornitori : null;\r\n data[\"terminePagamentoID\"] = this.terminePagamentoID !== undefined ? this.terminePagamentoID : null;\r\n data[\"acconto\"] = this.acconto !== undefined ? this.acconto : null;\r\n data[\"dataAcconto\"] = this.dataAcconto !== undefined ? this.dataAcconto : null;\r\n data[\"saldo\"] = this.saldo !== undefined ? this.saldo : null;\r\n data[\"dataSaldo\"] = this.dataSaldo !== undefined ? this.dataSaldo : null;\r\n data[\"invioDocumenti\"] = this.invioDocumenti !== undefined ? this.invioDocumenti : null;\r\n data[\"stampaProgramma\"] = this.stampaProgramma !== undefined ? this.stampaProgramma : null;\r\n data[\"bigliettiPresiInCarico\"] = this.bigliettiPresiInCarico !== undefined ? this.bigliettiPresiInCarico : null;\r\n data[\"ordinaEmissioneBiglietti\"] = this.ordinaEmissioneBiglietti !== undefined ? this.ordinaEmissioneBiglietti : null;\r\n data[\"stampaVoucher\"] = this.stampaVoucher !== undefined ? this.stampaVoucher : null;\r\n data[\"fattura\"] = this.fattura !== undefined ? this.fattura : null;\r\n data[\"networkID\"] = this.networkID !== undefined ? this.networkID : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"corriereID\"] = this.corriereID !== undefined ? this.corriereID : null;\r\n data[\"letteraVettura\"] = this.letteraVettura !== undefined ? this.letteraVettura : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"creazioneDocumentiApp\"] = this.creazioneDocumentiApp !== undefined ? this.creazioneDocumentiApp : null;\r\n data[\"documentiAppStep1\"] = this.documentiAppStep1 !== undefined ? this.documentiAppStep1 : null;\r\n data[\"documentiAppStep2\"] = this.documentiAppStep2 !== undefined ? this.documentiAppStep2 : null;\r\n data[\"updateDocumentiApp\"] = this.updateDocumentiApp !== undefined ? this.updateDocumentiApp : null;\r\n data[\"invioDocumentiApp\"] = this.invioDocumentiApp !== undefined ? this.invioDocumentiApp : null;\r\n data[\"invioDocumentiMail\"] = this.invioDocumentiMail !== undefined ? this.invioDocumentiMail : null;\r\n data[\"okDocumenti\"] = this.okDocumenti !== undefined ? this.okDocumenti : null;\r\n data[\"bigliettiEmessi\"] = this.bigliettiEmessi !== undefined ? this.bigliettiEmessi : null;\r\n data[\"tipoEmissioneTicket\"] = this.tipoEmissioneTicket !== undefined ? this.tipoEmissioneTicket : null;\r\n data[\"importoAcconto\"] = this.importoAcconto !== undefined ? this.importoAcconto : null;\r\n data[\"tipoAccontoBiglietteria\"] = this.tipoAccontoBiglietteria !== undefined ? this.tipoAccontoBiglietteria : null;\r\n data[\"tipoAccontoServizi\"] = this.tipoAccontoServizi !== undefined ? this.tipoAccontoServizi : null;\r\n data[\"okPassaporto\"] = this.okPassaporto !== undefined ? this.okPassaporto : null;\r\n data[\"haRigheConOrdinaBiglietteria\"] = this.haRigheConOrdinaBiglietteria !== undefined ? this.haRigheConOrdinaBiglietteria : null;\r\n data[\"righeCaricoBiglietteria\"] = this.righeCaricoBiglietteria !== undefined ? this.righeCaricoBiglietteria : null;\r\n data[\"righeEmesseBiglietteria\"] = this.righeEmesseBiglietteria !== undefined ? this.righeEmesseBiglietteria : null;\r\n data[\"righeOkContabileBiglietteria\"] = this.righeOkContabileBiglietteria !== undefined ? this.righeOkContabileBiglietteria : null;\r\n data[\"okContabileBiglietteria\"] = this.okContabileBiglietteria !== undefined ? this.okContabileBiglietteria : null;\r\n data[\"autofattura\"] = this.autofattura !== undefined ? this.autofattura : null;\r\n data[\"dataSbloccoConferma\"] = this.dataSbloccoConferma !== undefined ? this.dataSbloccoConferma : null;\r\n data[\"utenteSbloccoConfermaID\"] = this.utenteSbloccoConfermaID !== undefined ? this.utenteSbloccoConfermaID : null;\r\n data[\"titoloViaggio\"] = this.titoloViaggio !== undefined ? this.titoloViaggio : null;\r\n data[\"bloccoRicalcolo\"] = this.bloccoRicalcolo !== undefined ? this.bloccoRicalcolo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaAgenziaStato {\r\n statusID?: number;\r\n offertaAgenziaID?: number;\r\n okAgenzia?: string | null;\r\n okFornitori?: string | null;\r\n terminePagamentoID?: number | null;\r\n acconto?: number | null;\r\n dataAcconto?: string | null;\r\n saldo?: number | null;\r\n dataSaldo?: string | null;\r\n invioDocumenti?: string | null;\r\n stampaProgramma?: string | null;\r\n bigliettiPresiInCarico?: string | null;\r\n ordinaEmissioneBiglietti?: string | null;\r\n stampaVoucher?: string | null;\r\n fattura?: number;\r\n networkID?: number | null;\r\n status?: EStatoOfferta | null;\r\n corriereID?: number | null;\r\n letteraVettura?: string | null;\r\n note?: string | null;\r\n creazioneDocumentiApp?: string | null;\r\n documentiAppStep1?: string | null;\r\n documentiAppStep2?: string | null;\r\n updateDocumentiApp?: string | null;\r\n invioDocumentiApp?: string | null;\r\n invioDocumentiMail?: string | null;\r\n okDocumenti?: string | null;\r\n bigliettiEmessi?: string | null;\r\n tipoEmissioneTicket?: ETipoTicketBiglietteria | null;\r\n importoAcconto?: number | null;\r\n tipoAccontoBiglietteria?: ETipoTicketBiglietteria | null;\r\n tipoAccontoServizi?: ETipoAcconto | null;\r\n okPassaporto?: string | null;\r\n haRigheConOrdinaBiglietteria?: boolean;\r\n righeCaricoBiglietteria?: EStatoInsieme;\r\n righeEmesseBiglietteria?: EStatoInsieme;\r\n righeOkContabileBiglietteria?: EStatoInsieme;\r\n okContabileBiglietteria?: string | null;\r\n autofattura?: number;\r\n dataSbloccoConferma?: string | null;\r\n utenteSbloccoConfermaID?: number | null;\r\n titoloViaggio?: string | null;\r\n bloccoRicalcolo?: string | null;\r\n}\r\n\r\nexport enum EStatoOfferta {\r\n Manuale = \"Manuale\",\r\n AttesaPagamento = \"AttesaPagamento\",\r\n InPrenotazione = \"InPrenotazione\",\r\n InEmissioneDoc = \"InEmissioneDoc\",\r\n ViaggioPronto = \"ViaggioPronto\",\r\n InCancellazione = \"InCancellazione\",\r\n Cancellato = \"Cancellato\",\r\n ViaggioChiuso = \"ViaggioChiuso\",\r\n ViaggioInContenzioso = \"ViaggioInContenzioso\",\r\n}\r\n\r\nexport enum EStatoInsieme {\r\n Nessuno = \"Nessuno\",\r\n Parte = \"Parte\",\r\n Tutto = \"Tutto\",\r\n}\r\n\r\nexport class TripEconomics implements ITripEconomics {\r\n dataConfermaTO?: string | null;\r\n margineLordo?: number;\r\n margineLordoPercentuale?: number;\r\n commissioniAgenzia?: number;\r\n commissioniAgenziaPercentuale?: number;\r\n margineNetto?: number;\r\n margineNettoPercentuale?: number;\r\n /** Percentuale massima delle commissioni d'agenzia sulla biglietteria. */\r\n maxPercentualeCommissioneAgenziaSuBiglietteria?: number;\r\n /** Importo massimo della commissione agenzia su biglietteria calcolata su questo viaggio */\r\n maxImportoCommissioneAgenziaSuBiglietteria?: number;\r\n /** Percentuale massima dei diritti d'agenzia */\r\n maxPercentualeDirittiAgenzia?: number;\r\n /** Importo massimo dei diritti d'agenzia calcolata su questo viaggio */\r\n maxImportoDirittiAgenzia?: number;\r\n /** Scadenze pagamenti agenzia (Avere o Previsione) */\r\n mastrino?: OffertaIncasso[];\r\n /** Per ricostruire la scaletta */\r\n tipoImportoAnticipo?: EImportoAnticipoMaggiore | null;\r\n /** Importo degli anticipi percentuali */\r\n importoAnticipoPercentuale?: number;\r\n /** Importo delle somme da anticipare comunque */\r\n importoSommeDaAnticipare?: number;\r\n /** Percentuale anticipo contrattuale */\r\n percentualeAnticipo?: number | null;\r\n /** Totale dei movimenti Dare */\r\n totaleIncassi?: number;\r\n /** Totale netto - totale incassi */\r\n residuoDaIncassare?: number;\r\n residuoDaIncassareScaduto?: number;\r\n\r\n constructor(data?: ITripEconomics) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dataConfermaTO = _data[\"dataConfermaTO\"] !== undefined ? _data[\"dataConfermaTO\"] : null;\r\n this.margineLordo = _data[\"margineLordo\"] !== undefined ? _data[\"margineLordo\"] : null;\r\n this.margineLordoPercentuale = _data[\"margineLordoPercentuale\"] !== undefined ? _data[\"margineLordoPercentuale\"] : null;\r\n this.commissioniAgenzia = _data[\"commissioniAgenzia\"] !== undefined ? _data[\"commissioniAgenzia\"] : null;\r\n this.commissioniAgenziaPercentuale = _data[\"commissioniAgenziaPercentuale\"] !== undefined ? _data[\"commissioniAgenziaPercentuale\"] : null;\r\n this.margineNetto = _data[\"margineNetto\"] !== undefined ? _data[\"margineNetto\"] : null;\r\n this.margineNettoPercentuale = _data[\"margineNettoPercentuale\"] !== undefined ? _data[\"margineNettoPercentuale\"] : null;\r\n this.maxPercentualeCommissioneAgenziaSuBiglietteria = _data[\"maxPercentualeCommissioneAgenziaSuBiglietteria\"] !== undefined ? _data[\"maxPercentualeCommissioneAgenziaSuBiglietteria\"] : null;\r\n this.maxImportoCommissioneAgenziaSuBiglietteria = _data[\"maxImportoCommissioneAgenziaSuBiglietteria\"] !== undefined ? _data[\"maxImportoCommissioneAgenziaSuBiglietteria\"] : null;\r\n this.maxPercentualeDirittiAgenzia = _data[\"maxPercentualeDirittiAgenzia\"] !== undefined ? _data[\"maxPercentualeDirittiAgenzia\"] : null;\r\n this.maxImportoDirittiAgenzia = _data[\"maxImportoDirittiAgenzia\"] !== undefined ? _data[\"maxImportoDirittiAgenzia\"] : null;\r\n if (Array.isArray(_data[\"mastrino\"])) {\r\n this.mastrino = [] as any;\r\n for (let item of _data[\"mastrino\"])\r\n this.mastrino!.push(OffertaIncasso.fromJS(item));\r\n }\r\n else {\r\n this.mastrino = null;\r\n }\r\n this.tipoImportoAnticipo = _data[\"tipoImportoAnticipo\"] !== undefined ? _data[\"tipoImportoAnticipo\"] : null;\r\n this.importoAnticipoPercentuale = _data[\"importoAnticipoPercentuale\"] !== undefined ? _data[\"importoAnticipoPercentuale\"] : null;\r\n this.importoSommeDaAnticipare = _data[\"importoSommeDaAnticipare\"] !== undefined ? _data[\"importoSommeDaAnticipare\"] : null;\r\n this.percentualeAnticipo = _data[\"percentualeAnticipo\"] !== undefined ? _data[\"percentualeAnticipo\"] : null;\r\n this.totaleIncassi = _data[\"totaleIncassi\"] !== undefined ? _data[\"totaleIncassi\"] : null;\r\n this.residuoDaIncassare = _data[\"residuoDaIncassare\"] !== undefined ? _data[\"residuoDaIncassare\"] : null;\r\n this.residuoDaIncassareScaduto = _data[\"residuoDaIncassareScaduto\"] !== undefined ? _data[\"residuoDaIncassareScaduto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripEconomics {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripEconomics();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dataConfermaTO\"] = this.dataConfermaTO !== undefined ? this.dataConfermaTO : null;\r\n data[\"margineLordo\"] = this.margineLordo !== undefined ? this.margineLordo : null;\r\n data[\"margineLordoPercentuale\"] = this.margineLordoPercentuale !== undefined ? this.margineLordoPercentuale : null;\r\n data[\"commissioniAgenzia\"] = this.commissioniAgenzia !== undefined ? this.commissioniAgenzia : null;\r\n data[\"commissioniAgenziaPercentuale\"] = this.commissioniAgenziaPercentuale !== undefined ? this.commissioniAgenziaPercentuale : null;\r\n data[\"margineNetto\"] = this.margineNetto !== undefined ? this.margineNetto : null;\r\n data[\"margineNettoPercentuale\"] = this.margineNettoPercentuale !== undefined ? this.margineNettoPercentuale : null;\r\n data[\"maxPercentualeCommissioneAgenziaSuBiglietteria\"] = this.maxPercentualeCommissioneAgenziaSuBiglietteria !== undefined ? this.maxPercentualeCommissioneAgenziaSuBiglietteria : null;\r\n data[\"maxImportoCommissioneAgenziaSuBiglietteria\"] = this.maxImportoCommissioneAgenziaSuBiglietteria !== undefined ? this.maxImportoCommissioneAgenziaSuBiglietteria : null;\r\n data[\"maxPercentualeDirittiAgenzia\"] = this.maxPercentualeDirittiAgenzia !== undefined ? this.maxPercentualeDirittiAgenzia : null;\r\n data[\"maxImportoDirittiAgenzia\"] = this.maxImportoDirittiAgenzia !== undefined ? this.maxImportoDirittiAgenzia : null;\r\n if (Array.isArray(this.mastrino)) {\r\n data[\"mastrino\"] = [];\r\n for (let item of this.mastrino)\r\n data[\"mastrino\"].push(item.toJSON());\r\n }\r\n data[\"tipoImportoAnticipo\"] = this.tipoImportoAnticipo !== undefined ? this.tipoImportoAnticipo : null;\r\n data[\"importoAnticipoPercentuale\"] = this.importoAnticipoPercentuale !== undefined ? this.importoAnticipoPercentuale : null;\r\n data[\"importoSommeDaAnticipare\"] = this.importoSommeDaAnticipare !== undefined ? this.importoSommeDaAnticipare : null;\r\n data[\"percentualeAnticipo\"] = this.percentualeAnticipo !== undefined ? this.percentualeAnticipo : null;\r\n data[\"totaleIncassi\"] = this.totaleIncassi !== undefined ? this.totaleIncassi : null;\r\n data[\"residuoDaIncassare\"] = this.residuoDaIncassare !== undefined ? this.residuoDaIncassare : null;\r\n data[\"residuoDaIncassareScaduto\"] = this.residuoDaIncassareScaduto !== undefined ? this.residuoDaIncassareScaduto : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripEconomics {\r\n dataConfermaTO?: string | null;\r\n margineLordo?: number;\r\n margineLordoPercentuale?: number;\r\n commissioniAgenzia?: number;\r\n commissioniAgenziaPercentuale?: number;\r\n margineNetto?: number;\r\n margineNettoPercentuale?: number;\r\n /** Percentuale massima delle commissioni d'agenzia sulla biglietteria. */\r\n maxPercentualeCommissioneAgenziaSuBiglietteria?: number;\r\n /** Importo massimo della commissione agenzia su biglietteria calcolata su questo viaggio */\r\n maxImportoCommissioneAgenziaSuBiglietteria?: number;\r\n /** Percentuale massima dei diritti d'agenzia */\r\n maxPercentualeDirittiAgenzia?: number;\r\n /** Importo massimo dei diritti d'agenzia calcolata su questo viaggio */\r\n maxImportoDirittiAgenzia?: number;\r\n /** Scadenze pagamenti agenzia (Avere o Previsione) */\r\n mastrino?: OffertaIncasso[];\r\n /** Per ricostruire la scaletta */\r\n tipoImportoAnticipo?: EImportoAnticipoMaggiore | null;\r\n /** Importo degli anticipi percentuali */\r\n importoAnticipoPercentuale?: number;\r\n /** Importo delle somme da anticipare comunque */\r\n importoSommeDaAnticipare?: number;\r\n /** Percentuale anticipo contrattuale */\r\n percentualeAnticipo?: number | null;\r\n /** Totale dei movimenti Dare */\r\n totaleIncassi?: number;\r\n /** Totale netto - totale incassi */\r\n residuoDaIncassare?: number;\r\n residuoDaIncassareScaduto?: number;\r\n}\r\n\r\nexport enum EImportoAnticipoMaggiore {\r\n AnticipiContrattualiPercentuali = \"AnticipiContrattualiPercentuali\",\r\n ServiziDaPagareAllaConferma = \"ServiziDaPagareAllaConferma\",\r\n}\r\n\r\nexport class TripCancelCosts implements ITripCancelCosts {\r\n cancelCosts?: TripCancelCostRow[];\r\n totalEnsuredCost?: number;\r\n\r\n constructor(data?: ITripCancelCosts) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"cancelCosts\"])) {\r\n this.cancelCosts = [] as any;\r\n for (let item of _data[\"cancelCosts\"])\r\n this.cancelCosts!.push(TripCancelCostRow.fromJS(item));\r\n }\r\n else {\r\n this.cancelCosts = null;\r\n }\r\n this.totalEnsuredCost = _data[\"totalEnsuredCost\"] !== undefined ? _data[\"totalEnsuredCost\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripCancelCosts {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripCancelCosts();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.cancelCosts)) {\r\n data[\"cancelCosts\"] = [];\r\n for (let item of this.cancelCosts)\r\n data[\"cancelCosts\"].push(item.toJSON());\r\n }\r\n data[\"totalEnsuredCost\"] = this.totalEnsuredCost !== undefined ? this.totalEnsuredCost : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripCancelCosts {\r\n cancelCosts?: TripCancelCostRow[];\r\n totalEnsuredCost?: number;\r\n}\r\n\r\nexport class TripCancelCostRow implements ITripCancelCostRow {\r\n rowID?: number;\r\n name?: string;\r\n notRefundable?: boolean;\r\n limitDate?: string | null;\r\n amount?: number | null;\r\n\r\n constructor(data?: ITripCancelCostRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.rowID = _data[\"rowID\"] !== undefined ? _data[\"rowID\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.notRefundable = _data[\"notRefundable\"] !== undefined ? _data[\"notRefundable\"] : null;\r\n this.limitDate = _data[\"limitDate\"] !== undefined ? _data[\"limitDate\"] : null;\r\n this.amount = _data[\"amount\"] !== undefined ? _data[\"amount\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripCancelCostRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripCancelCostRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rowID\"] = this.rowID !== undefined ? this.rowID : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"notRefundable\"] = this.notRefundable !== undefined ? this.notRefundable : null;\r\n data[\"limitDate\"] = this.limitDate !== undefined ? this.limitDate : null;\r\n data[\"amount\"] = this.amount !== undefined ? this.amount : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripCancelCostRow {\r\n rowID?: number;\r\n name?: string;\r\n notRefundable?: boolean;\r\n limitDate?: string | null;\r\n amount?: number | null;\r\n}\r\n\r\nexport class TripPaxes implements ITripPaxes {\r\n paxes?: TripPax[];\r\n abbinamenti?: TripRoom[];\r\n adulti?: number;\r\n bambini?: number;\r\n dataNascitaDefaultAdulto?: string;\r\n dataNascitaDefaultBambino?: string;\r\n camereSemplici?: boolean;\r\n\r\n constructor(data?: ITripPaxes) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"paxes\"])) {\r\n this.paxes = [] as any;\r\n for (let item of _data[\"paxes\"])\r\n this.paxes!.push(TripPax.fromJS(item));\r\n }\r\n else {\r\n this.paxes = null;\r\n }\r\n if (Array.isArray(_data[\"abbinamenti\"])) {\r\n this.abbinamenti = [] as any;\r\n for (let item of _data[\"abbinamenti\"])\r\n this.abbinamenti!.push(TripRoom.fromJS(item));\r\n }\r\n else {\r\n this.abbinamenti = null;\r\n }\r\n this.adulti = _data[\"adulti\"] !== undefined ? _data[\"adulti\"] : null;\r\n this.bambini = _data[\"bambini\"] !== undefined ? _data[\"bambini\"] : null;\r\n this.dataNascitaDefaultAdulto = _data[\"dataNascitaDefaultAdulto\"] !== undefined ? _data[\"dataNascitaDefaultAdulto\"] : null;\r\n this.dataNascitaDefaultBambino = _data[\"dataNascitaDefaultBambino\"] !== undefined ? _data[\"dataNascitaDefaultBambino\"] : null;\r\n this.camereSemplici = _data[\"camereSemplici\"] !== undefined ? _data[\"camereSemplici\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripPaxes {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripPaxes();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.paxes)) {\r\n data[\"paxes\"] = [];\r\n for (let item of this.paxes)\r\n data[\"paxes\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.abbinamenti)) {\r\n data[\"abbinamenti\"] = [];\r\n for (let item of this.abbinamenti)\r\n data[\"abbinamenti\"].push(item.toJSON());\r\n }\r\n data[\"adulti\"] = this.adulti !== undefined ? this.adulti : null;\r\n data[\"bambini\"] = this.bambini !== undefined ? this.bambini : null;\r\n data[\"dataNascitaDefaultAdulto\"] = this.dataNascitaDefaultAdulto !== undefined ? this.dataNascitaDefaultAdulto : null;\r\n data[\"dataNascitaDefaultBambino\"] = this.dataNascitaDefaultBambino !== undefined ? this.dataNascitaDefaultBambino : null;\r\n data[\"camereSemplici\"] = this.camereSemplici !== undefined ? this.camereSemplici : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripPaxes {\r\n paxes?: TripPax[];\r\n abbinamenti?: TripRoom[];\r\n adulti?: number;\r\n bambini?: number;\r\n dataNascitaDefaultAdulto?: string;\r\n dataNascitaDefaultBambino?: string;\r\n camereSemplici?: boolean;\r\n}\r\n\r\nexport class TripPax implements ITripPax {\r\n cliente?: Cliente;\r\n dati?: ClienteDato | null;\r\n completo?: boolean;\r\n camere?: string[];\r\n servizi?: TripService[];\r\n\r\n constructor(data?: ITripPax) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.cliente = _data[\"cliente\"] ? Cliente.fromJS(_data[\"cliente\"]) : null;\r\n this.dati = _data[\"dati\"] ? ClienteDato.fromJS(_data[\"dati\"]) : null;\r\n this.completo = _data[\"completo\"] !== undefined ? _data[\"completo\"] : null;\r\n if (Array.isArray(_data[\"camere\"])) {\r\n this.camere = [] as any;\r\n for (let item of _data[\"camere\"])\r\n this.camere!.push(item);\r\n }\r\n else {\r\n this.camere = null;\r\n }\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(TripService.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripPax {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripPax();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"cliente\"] = this.cliente ? this.cliente.toJSON() : null;\r\n data[\"dati\"] = this.dati ? this.dati.toJSON() : null;\r\n data[\"completo\"] = this.completo !== undefined ? this.completo : null;\r\n if (Array.isArray(this.camere)) {\r\n data[\"camere\"] = [];\r\n for (let item of this.camere)\r\n data[\"camere\"].push(item);\r\n }\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripPax {\r\n cliente?: Cliente;\r\n dati?: ClienteDato | null;\r\n completo?: boolean;\r\n camere?: string[];\r\n servizi?: TripService[];\r\n}\r\n\r\nexport class Cliente implements ICliente {\r\n clienteID?: number;\r\n clienteIdPrecedente?: number | null;\r\n offertaAgenziaID?: number | null;\r\n clienteLeaderID?: number | null;\r\n abbinamentoID?: number | null;\r\n titolo?: ETitolo;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n codiceFiscale?: string | null;\r\n dataNascita?: string | null;\r\n tesseraTCI?: string | null;\r\n dataNascitaCorretta?: boolean;\r\n\r\n constructor(data?: ICliente) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n this.clienteIdPrecedente = _data[\"clienteIdPrecedente\"] !== undefined ? _data[\"clienteIdPrecedente\"] : null;\r\n this.offertaAgenziaID = _data[\"offertaAgenziaID\"] !== undefined ? _data[\"offertaAgenziaID\"] : null;\r\n this.clienteLeaderID = _data[\"clienteLeaderID\"] !== undefined ? _data[\"clienteLeaderID\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.codiceFiscale = _data[\"codiceFiscale\"] !== undefined ? _data[\"codiceFiscale\"] : null;\r\n this.dataNascita = _data[\"dataNascita\"] !== undefined ? _data[\"dataNascita\"] : null;\r\n this.tesseraTCI = _data[\"tesseraTCI\"] !== undefined ? _data[\"tesseraTCI\"] : null;\r\n this.dataNascitaCorretta = _data[\"dataNascitaCorretta\"] !== undefined ? _data[\"dataNascitaCorretta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Cliente {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Cliente();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n data[\"clienteIdPrecedente\"] = this.clienteIdPrecedente !== undefined ? this.clienteIdPrecedente : null;\r\n data[\"offertaAgenziaID\"] = this.offertaAgenziaID !== undefined ? this.offertaAgenziaID : null;\r\n data[\"clienteLeaderID\"] = this.clienteLeaderID !== undefined ? this.clienteLeaderID : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"codiceFiscale\"] = this.codiceFiscale !== undefined ? this.codiceFiscale : null;\r\n data[\"dataNascita\"] = this.dataNascita !== undefined ? this.dataNascita : null;\r\n data[\"tesseraTCI\"] = this.tesseraTCI !== undefined ? this.tesseraTCI : null;\r\n data[\"dataNascitaCorretta\"] = this.dataNascitaCorretta !== undefined ? this.dataNascitaCorretta : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICliente {\r\n clienteID?: number;\r\n clienteIdPrecedente?: number | null;\r\n offertaAgenziaID?: number | null;\r\n clienteLeaderID?: number | null;\r\n abbinamentoID?: number | null;\r\n titolo?: ETitolo;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n codiceFiscale?: string | null;\r\n dataNascita?: string | null;\r\n tesseraTCI?: string | null;\r\n dataNascitaCorretta?: boolean;\r\n}\r\n\r\nexport class ClienteDato implements IClienteDato {\r\n id?: number;\r\n cellulare?: string | null;\r\n passaporto?: string | null;\r\n scadenzaPassaporto?: string | null;\r\n codiceIstatComune?: string | null;\r\n luogoNascita?: string | null;\r\n nazionalita?: string | null;\r\n paeseRilascioPass?: string | null;\r\n indirizzo?: string | null;\r\n cap?: string | null;\r\n comune?: string | null;\r\n provincia?: string | null;\r\n email?: string | null;\r\n\r\n constructor(data?: IClienteDato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.cellulare = _data[\"cellulare\"] !== undefined ? _data[\"cellulare\"] : null;\r\n this.passaporto = _data[\"passaporto\"] !== undefined ? _data[\"passaporto\"] : null;\r\n this.scadenzaPassaporto = _data[\"scadenzaPassaporto\"] !== undefined ? _data[\"scadenzaPassaporto\"] : null;\r\n this.codiceIstatComune = _data[\"codiceIstatComune\"] !== undefined ? _data[\"codiceIstatComune\"] : null;\r\n this.luogoNascita = _data[\"luogoNascita\"] !== undefined ? _data[\"luogoNascita\"] : null;\r\n this.nazionalita = _data[\"nazionalita\"] !== undefined ? _data[\"nazionalita\"] : null;\r\n this.paeseRilascioPass = _data[\"paeseRilascioPass\"] !== undefined ? _data[\"paeseRilascioPass\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.comune = _data[\"comune\"] !== undefined ? _data[\"comune\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClienteDato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClienteDato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"cellulare\"] = this.cellulare !== undefined ? this.cellulare : null;\r\n data[\"passaporto\"] = this.passaporto !== undefined ? this.passaporto : null;\r\n data[\"scadenzaPassaporto\"] = this.scadenzaPassaporto !== undefined ? this.scadenzaPassaporto : null;\r\n data[\"codiceIstatComune\"] = this.codiceIstatComune !== undefined ? this.codiceIstatComune : null;\r\n data[\"luogoNascita\"] = this.luogoNascita !== undefined ? this.luogoNascita : null;\r\n data[\"nazionalita\"] = this.nazionalita !== undefined ? this.nazionalita : null;\r\n data[\"paeseRilascioPass\"] = this.paeseRilascioPass !== undefined ? this.paeseRilascioPass : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"comune\"] = this.comune !== undefined ? this.comune : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClienteDato {\r\n id?: number;\r\n cellulare?: string | null;\r\n passaporto?: string | null;\r\n scadenzaPassaporto?: string | null;\r\n codiceIstatComune?: string | null;\r\n luogoNascita?: string | null;\r\n nazionalita?: string | null;\r\n paeseRilascioPass?: string | null;\r\n indirizzo?: string | null;\r\n cap?: string | null;\r\n comune?: string | null;\r\n provincia?: string | null;\r\n email?: string | null;\r\n}\r\n\r\nexport class TripService implements ITripService {\r\n id?: number;\r\n luogo?: string | null;\r\n luogoFine?: string | null;\r\n abbinamento?: string | null;\r\n cliente?: string | null;\r\n /** Data e ora di checkin / inizio */\r\n data?: string;\r\n /** Data e ora di checkout / fine */\r\n dataCheckout?: string | null;\r\n notti?: number;\r\n isHotel?: boolean;\r\n isVolo?: boolean;\r\n isNoleggio?: boolean;\r\n isTrasferimento?: boolean;\r\n isVisita?: boolean;\r\n haPaginaDettaglio?: boolean;\r\n descrizione?: string | null;\r\n /** Descrizione da usare nel programma di viaggio */\r\n descrizioneProgramma?: string | null;\r\n urlPart?: string | null;\r\n servizioID?: number | null;\r\n esterno?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n disponibilitaPrecedente?: EStatoDisponibilita | null;\r\n daQuotare?: boolean;\r\n prezzoIndicativo?: boolean;\r\n status?: EStatoServizioUtente;\r\n numeroConferma?: string | null;\r\n accessori?: boolean;\r\n prezzo?: number;\r\n pagamentoAnticipato?: boolean;\r\n adulti?: number;\r\n bambini?: number;\r\n prezzoPrecedente?: number | null;\r\n dati?: TripServiceData | null;\r\n penale?: PenaleServizio | null;\r\n printableAccessori?: boolean;\r\n eliminabile?: boolean;\r\n eliminabileAgenzia?: boolean;\r\n nascostoAgenzia?: boolean;\r\n /** True se il servizio ha un pagamento fornitore associato che è sbloccabile */\r\n pagamentoSbloccabile?: boolean;\r\n /** Elenco delle note associate a questa riga prelevate dagli articoli */\r\n note?: TripTextHtml[] | null;\r\n /** Elenco delle offerte speciali / azioni applicate */\r\n dettagliPrezzi?: TripServicePriceDetail[];\r\n /** Testo dell'articolo penali di cancellazione da visualizzare all'agenzia.\r\nCalcolato in base alla presenza: di una nota custom, di un articolo di penale, dei dati aggiuntivi penale default, della nota fornitore\r\nin questo ordine */\r\n testoPenali?: TripTextHtml | null;\r\n /** Indica quale degli eventuali molteplici testi di penale è destinato all'agenzia */\r\n tipoTestoPenale?: ETestoPenaleAgenzia;\r\n durata?: ServiceDuration | null;\r\n tappe?: string | null;\r\n /** Data di ultimo aggiornamento dei prezzi */\r\n dataUltimoAggiornamento?: string | null;\r\n /** Lista da usare per associare le note a piè di pagina sui documenti */\r\n elencoNotePiePagina?: number[];\r\n /** Lista da usare per associare le righe dello specchietto anticipi sui documenti. Per ora in teoria max 1 riferimento.\r\nMa conoscendo i nostri polli... */\r\n elencoRiferimentiAnticipi?: number[];\r\n\r\n constructor(data?: ITripService) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoFine = _data[\"luogoFine\"] !== undefined ? _data[\"luogoFine\"] : null;\r\n this.abbinamento = _data[\"abbinamento\"] !== undefined ? _data[\"abbinamento\"] : null;\r\n this.cliente = _data[\"cliente\"] !== undefined ? _data[\"cliente\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.dataCheckout = _data[\"dataCheckout\"] !== undefined ? _data[\"dataCheckout\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.isHotel = _data[\"isHotel\"] !== undefined ? _data[\"isHotel\"] : null;\r\n this.isVolo = _data[\"isVolo\"] !== undefined ? _data[\"isVolo\"] : null;\r\n this.isNoleggio = _data[\"isNoleggio\"] !== undefined ? _data[\"isNoleggio\"] : null;\r\n this.isTrasferimento = _data[\"isTrasferimento\"] !== undefined ? _data[\"isTrasferimento\"] : null;\r\n this.isVisita = _data[\"isVisita\"] !== undefined ? _data[\"isVisita\"] : null;\r\n this.haPaginaDettaglio = _data[\"haPaginaDettaglio\"] !== undefined ? _data[\"haPaginaDettaglio\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.descrizioneProgramma = _data[\"descrizioneProgramma\"] !== undefined ? _data[\"descrizioneProgramma\"] : null;\r\n this.urlPart = _data[\"urlPart\"] !== undefined ? _data[\"urlPart\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.esterno = _data[\"esterno\"] !== undefined ? _data[\"esterno\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.disponibilitaPrecedente = _data[\"disponibilitaPrecedente\"] !== undefined ? _data[\"disponibilitaPrecedente\"] : null;\r\n this.daQuotare = _data[\"daQuotare\"] !== undefined ? _data[\"daQuotare\"] : null;\r\n this.prezzoIndicativo = _data[\"prezzoIndicativo\"] !== undefined ? _data[\"prezzoIndicativo\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.numeroConferma = _data[\"numeroConferma\"] !== undefined ? _data[\"numeroConferma\"] : null;\r\n this.accessori = _data[\"accessori\"] !== undefined ? _data[\"accessori\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.pagamentoAnticipato = _data[\"pagamentoAnticipato\"] !== undefined ? _data[\"pagamentoAnticipato\"] : null;\r\n this.adulti = _data[\"adulti\"] !== undefined ? _data[\"adulti\"] : null;\r\n this.bambini = _data[\"bambini\"] !== undefined ? _data[\"bambini\"] : null;\r\n this.prezzoPrecedente = _data[\"prezzoPrecedente\"] !== undefined ? _data[\"prezzoPrecedente\"] : null;\r\n this.dati = _data[\"dati\"] ? TripServiceData.fromJS(_data[\"dati\"]) : null;\r\n this.penale = _data[\"penale\"] ? PenaleServizio.fromJS(_data[\"penale\"]) : null;\r\n this.printableAccessori = _data[\"printableAccessori\"] !== undefined ? _data[\"printableAccessori\"] : null;\r\n this.eliminabile = _data[\"eliminabile\"] !== undefined ? _data[\"eliminabile\"] : null;\r\n this.eliminabileAgenzia = _data[\"eliminabileAgenzia\"] !== undefined ? _data[\"eliminabileAgenzia\"] : null;\r\n this.nascostoAgenzia = _data[\"nascostoAgenzia\"] !== undefined ? _data[\"nascostoAgenzia\"] : null;\r\n this.pagamentoSbloccabile = _data[\"pagamentoSbloccabile\"] !== undefined ? _data[\"pagamentoSbloccabile\"] : null;\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(TripTextHtml.fromJS(item));\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n if (Array.isArray(_data[\"dettagliPrezzi\"])) {\r\n this.dettagliPrezzi = [] as any;\r\n for (let item of _data[\"dettagliPrezzi\"])\r\n this.dettagliPrezzi!.push(TripServicePriceDetail.fromJS(item));\r\n }\r\n else {\r\n this.dettagliPrezzi = null;\r\n }\r\n this.testoPenali = _data[\"testoPenali\"] ? TripTextHtml.fromJS(_data[\"testoPenali\"]) : null;\r\n this.tipoTestoPenale = _data[\"tipoTestoPenale\"] !== undefined ? _data[\"tipoTestoPenale\"] : null;\r\n this.durata = _data[\"durata\"] ? ServiceDuration.fromJS(_data[\"durata\"]) : null;\r\n this.tappe = _data[\"tappe\"] !== undefined ? _data[\"tappe\"] : null;\r\n this.dataUltimoAggiornamento = _data[\"dataUltimoAggiornamento\"] !== undefined ? _data[\"dataUltimoAggiornamento\"] : null;\r\n if (Array.isArray(_data[\"elencoNotePiePagina\"])) {\r\n this.elencoNotePiePagina = [] as any;\r\n for (let item of _data[\"elencoNotePiePagina\"])\r\n this.elencoNotePiePagina!.push(item);\r\n }\r\n else {\r\n this.elencoNotePiePagina = null;\r\n }\r\n if (Array.isArray(_data[\"elencoRiferimentiAnticipi\"])) {\r\n this.elencoRiferimentiAnticipi = [] as any;\r\n for (let item of _data[\"elencoRiferimentiAnticipi\"])\r\n this.elencoRiferimentiAnticipi!.push(item);\r\n }\r\n else {\r\n this.elencoRiferimentiAnticipi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripService {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripService();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoFine\"] = this.luogoFine !== undefined ? this.luogoFine : null;\r\n data[\"abbinamento\"] = this.abbinamento !== undefined ? this.abbinamento : null;\r\n data[\"cliente\"] = this.cliente !== undefined ? this.cliente : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"dataCheckout\"] = this.dataCheckout !== undefined ? this.dataCheckout : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"isHotel\"] = this.isHotel !== undefined ? this.isHotel : null;\r\n data[\"isVolo\"] = this.isVolo !== undefined ? this.isVolo : null;\r\n data[\"isNoleggio\"] = this.isNoleggio !== undefined ? this.isNoleggio : null;\r\n data[\"isTrasferimento\"] = this.isTrasferimento !== undefined ? this.isTrasferimento : null;\r\n data[\"isVisita\"] = this.isVisita !== undefined ? this.isVisita : null;\r\n data[\"haPaginaDettaglio\"] = this.haPaginaDettaglio !== undefined ? this.haPaginaDettaglio : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"descrizioneProgramma\"] = this.descrizioneProgramma !== undefined ? this.descrizioneProgramma : null;\r\n data[\"urlPart\"] = this.urlPart !== undefined ? this.urlPart : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"esterno\"] = this.esterno !== undefined ? this.esterno : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"disponibilitaPrecedente\"] = this.disponibilitaPrecedente !== undefined ? this.disponibilitaPrecedente : null;\r\n data[\"daQuotare\"] = this.daQuotare !== undefined ? this.daQuotare : null;\r\n data[\"prezzoIndicativo\"] = this.prezzoIndicativo !== undefined ? this.prezzoIndicativo : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"numeroConferma\"] = this.numeroConferma !== undefined ? this.numeroConferma : null;\r\n data[\"accessori\"] = this.accessori !== undefined ? this.accessori : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"pagamentoAnticipato\"] = this.pagamentoAnticipato !== undefined ? this.pagamentoAnticipato : null;\r\n data[\"adulti\"] = this.adulti !== undefined ? this.adulti : null;\r\n data[\"bambini\"] = this.bambini !== undefined ? this.bambini : null;\r\n data[\"prezzoPrecedente\"] = this.prezzoPrecedente !== undefined ? this.prezzoPrecedente : null;\r\n data[\"dati\"] = this.dati ? this.dati.toJSON() : null;\r\n data[\"penale\"] = this.penale ? this.penale.toJSON() : null;\r\n data[\"printableAccessori\"] = this.printableAccessori !== undefined ? this.printableAccessori : null;\r\n data[\"eliminabile\"] = this.eliminabile !== undefined ? this.eliminabile : null;\r\n data[\"eliminabileAgenzia\"] = this.eliminabileAgenzia !== undefined ? this.eliminabileAgenzia : null;\r\n data[\"nascostoAgenzia\"] = this.nascostoAgenzia !== undefined ? this.nascostoAgenzia : null;\r\n data[\"pagamentoSbloccabile\"] = this.pagamentoSbloccabile !== undefined ? this.pagamentoSbloccabile : null;\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.dettagliPrezzi)) {\r\n data[\"dettagliPrezzi\"] = [];\r\n for (let item of this.dettagliPrezzi)\r\n data[\"dettagliPrezzi\"].push(item.toJSON());\r\n }\r\n data[\"testoPenali\"] = this.testoPenali ? this.testoPenali.toJSON() : null;\r\n data[\"tipoTestoPenale\"] = this.tipoTestoPenale !== undefined ? this.tipoTestoPenale : null;\r\n data[\"durata\"] = this.durata ? this.durata.toJSON() : null;\r\n data[\"tappe\"] = this.tappe !== undefined ? this.tappe : null;\r\n data[\"dataUltimoAggiornamento\"] = this.dataUltimoAggiornamento !== undefined ? this.dataUltimoAggiornamento : null;\r\n if (Array.isArray(this.elencoNotePiePagina)) {\r\n data[\"elencoNotePiePagina\"] = [];\r\n for (let item of this.elencoNotePiePagina)\r\n data[\"elencoNotePiePagina\"].push(item);\r\n }\r\n if (Array.isArray(this.elencoRiferimentiAnticipi)) {\r\n data[\"elencoRiferimentiAnticipi\"] = [];\r\n for (let item of this.elencoRiferimentiAnticipi)\r\n data[\"elencoRiferimentiAnticipi\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripService {\r\n id?: number;\r\n luogo?: string | null;\r\n luogoFine?: string | null;\r\n abbinamento?: string | null;\r\n cliente?: string | null;\r\n /** Data e ora di checkin / inizio */\r\n data?: string;\r\n /** Data e ora di checkout / fine */\r\n dataCheckout?: string | null;\r\n notti?: number;\r\n isHotel?: boolean;\r\n isVolo?: boolean;\r\n isNoleggio?: boolean;\r\n isTrasferimento?: boolean;\r\n isVisita?: boolean;\r\n haPaginaDettaglio?: boolean;\r\n descrizione?: string | null;\r\n /** Descrizione da usare nel programma di viaggio */\r\n descrizioneProgramma?: string | null;\r\n urlPart?: string | null;\r\n servizioID?: number | null;\r\n esterno?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n disponibilitaPrecedente?: EStatoDisponibilita | null;\r\n daQuotare?: boolean;\r\n prezzoIndicativo?: boolean;\r\n status?: EStatoServizioUtente;\r\n numeroConferma?: string | null;\r\n accessori?: boolean;\r\n prezzo?: number;\r\n pagamentoAnticipato?: boolean;\r\n adulti?: number;\r\n bambini?: number;\r\n prezzoPrecedente?: number | null;\r\n dati?: TripServiceData | null;\r\n penale?: PenaleServizio | null;\r\n printableAccessori?: boolean;\r\n eliminabile?: boolean;\r\n eliminabileAgenzia?: boolean;\r\n nascostoAgenzia?: boolean;\r\n /** True se il servizio ha un pagamento fornitore associato che è sbloccabile */\r\n pagamentoSbloccabile?: boolean;\r\n /** Elenco delle note associate a questa riga prelevate dagli articoli */\r\n note?: TripTextHtml[] | null;\r\n /** Elenco delle offerte speciali / azioni applicate */\r\n dettagliPrezzi?: TripServicePriceDetail[];\r\n /** Testo dell'articolo penali di cancellazione da visualizzare all'agenzia.\r\nCalcolato in base alla presenza: di una nota custom, di un articolo di penale, dei dati aggiuntivi penale default, della nota fornitore\r\nin questo ordine */\r\n testoPenali?: TripTextHtml | null;\r\n /** Indica quale degli eventuali molteplici testi di penale è destinato all'agenzia */\r\n tipoTestoPenale?: ETestoPenaleAgenzia;\r\n durata?: ServiceDuration | null;\r\n tappe?: string | null;\r\n /** Data di ultimo aggiornamento dei prezzi */\r\n dataUltimoAggiornamento?: string | null;\r\n /** Lista da usare per associare le note a piè di pagina sui documenti */\r\n elencoNotePiePagina?: number[];\r\n /** Lista da usare per associare le righe dello specchietto anticipi sui documenti. Per ora in teoria max 1 riferimento.\r\nMa conoscendo i nostri polli... */\r\n elencoRiferimentiAnticipi?: number[];\r\n}\r\n\r\nexport enum EStatoDisponibilita {\r\n NonDisponibile = \"NonDisponibile\",\r\n SuRichiesta = \"SuRichiesta\",\r\n Disponibile = \"Disponibile\",\r\n DaVerificare = \"DaVerificare\",\r\n DisponibileFreesale = \"DisponibileFreesale\",\r\n NonDisponibileNoMatchRegola = \"NonDisponibileNoMatchRegola\",\r\n Indeterminato = \"Indeterminato\",\r\n}\r\n\r\nexport enum EStatoServizioUtente {\r\n Nessuno = \"Nessuno\",\r\n PrezziDispoVariati = \"PrezziDispoVariati\",\r\n InPrenotazione = \"InPrenotazione\",\r\n Confermato = \"Confermato\",\r\n Annullato = \"Annullato\",\r\n}\r\n\r\nexport class TripServiceData implements ITripServiceData {\r\n offertaDato?: OffertaDato | null;\r\n stato?: OffertaDatoStato | null;\r\n datiH2H?: OffertaDatoH2H | null;\r\n /** Tipologia fornitore associata.\r\nNull se non è un h2h oppure se è una tipologia basata su hashcode */\r\n tipologiaFornitore?: HHCodice | null;\r\n /** Nome per esteso ed in lingua della tipologia mappata (nei pochi casi in cui c'è) */\r\n tipologiaNaarMappata?: string | null;\r\n /** Servizio del fornitore associato\r\nNull se non è un servizio H2H oppure se è una tipologia basata su hashcode */\r\n servizioFornitore?: HHServizio | null;\r\n /** Luogo del fornitore associato.\r\nNull se non è un servizio H2H oppure se è una tipologia basata su hashcode */\r\n luogoFornitore?: HHLuogo | null;\r\n /** Nome per esteso del luogo Naar mappato sul LuogoFornitore se presente e mappato. */\r\n luogoNaarMappato?: string | null;\r\n /** Servizio H2H se è tale */\r\n servizioAggregato?: HHServizioAggregato | null;\r\n /** Nome per esteso del servizio Naar associato al ServizioAggregato se presente e mappato */\r\n servizioNaarMappato?: string | null;\r\n /** Descrizione dell'hashcode calcolato */\r\n hashcodeDescription?: HHAttributoHashcodeDescription | null;\r\n /** Hashcode originale associato alla tipologia fornitore */\r\n hashcodeTiplogia?: HHAttributoHashcode | null;\r\n /** Descrizione dell'hashcode sorgente della tipologia */\r\n hashcodeTipologiaDescription?: HHAttributoHashcodeDescription | null;\r\n dettagli?: OffertaDatoDettaglio[] | null;\r\n supplementi?: TripServiceData[] | null;\r\n /** Dati per i documenti */\r\n datiDocumento?: DatiDocumentoRiga | null;\r\n /** Dati di conferma */\r\n datiConferma?: DatiConfermaRiga | null;\r\n /** Note abbinate a questa riga */\r\n note?: OffertaNota[] | null;\r\n notaH2H?: string | null;\r\n data?: string;\r\n dataCheckout?: string | null;\r\n dataAcconto?: string | null;\r\n camera?: string | null;\r\n nomeServizioFornitore?: string | null;\r\n nomeServizioNaar?: string | null;\r\n eliminato?: boolean;\r\n obsoleto?: boolean;\r\n servizioH2H?: string | null;\r\n tipologiaH2H?: string | null;\r\n nomeAccordo?: string | null;\r\n costo?: number;\r\n valutaCosto?: string | null;\r\n marginePercentule?: number;\r\n accordoH2H?: boolean;\r\n totaleDaAnticipare?: number;\r\n tipoAcconto?: ETipoAcconto;\r\n statoServizioAlternativo?: EStatoServizioAlternativo;\r\n /** Eventuale nota H2H del fornitore. Tipicamente il testo è HTML */\r\n notaFornitore?: TripNote | null;\r\n /** Testo dell'articolo penali di cancellazione, se c'è. */\r\n articoloPenali?: TripTextHtml | null;\r\n /** Nota custom delle penali di cancellazione, se ce n'è una */\r\n notaPenaliCustom?: TripNote | null;\r\n /** Testo ricavato dalle penali di default dei dati aggiuntivi */\r\n testoPenaliDatiAggiuntivi?: string | null;\r\n /** Dati dell'anticipo al fornitore, se previsti */\r\n anticipoFornitore?: AnticipoFornitore | null;\r\n /** Nome della regola di anticipo al fornitore */\r\n regolaAnticipoFornitore?: string | null;\r\n /** Elenco degli invii dell'assicurazione, una riga per ogni cliente */\r\n inviiAssicurazioneFilodiretto?: InvioAssicurazioneFiloDiretto[] | null;\r\n inviiAssicurazione?: InvioAssicurazione[] | null;\r\n\r\n constructor(data?: ITripServiceData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaDato = _data[\"offertaDato\"] ? OffertaDato.fromJS(_data[\"offertaDato\"]) : null;\r\n this.stato = _data[\"stato\"] ? OffertaDatoStato.fromJS(_data[\"stato\"]) : null;\r\n this.datiH2H = _data[\"datiH2H\"] ? OffertaDatoH2H.fromJS(_data[\"datiH2H\"]) : null;\r\n this.tipologiaFornitore = _data[\"tipologiaFornitore\"] ? HHCodice.fromJS(_data[\"tipologiaFornitore\"]) : null;\r\n this.tipologiaNaarMappata = _data[\"tipologiaNaarMappata\"] !== undefined ? _data[\"tipologiaNaarMappata\"] : null;\r\n this.servizioFornitore = _data[\"servizioFornitore\"] ? HHServizio.fromJS(_data[\"servizioFornitore\"]) : null;\r\n this.luogoFornitore = _data[\"luogoFornitore\"] ? HHLuogo.fromJS(_data[\"luogoFornitore\"]) : null;\r\n this.luogoNaarMappato = _data[\"luogoNaarMappato\"] !== undefined ? _data[\"luogoNaarMappato\"] : null;\r\n this.servizioAggregato = _data[\"servizioAggregato\"] ? HHServizioAggregato.fromJS(_data[\"servizioAggregato\"]) : null;\r\n this.servizioNaarMappato = _data[\"servizioNaarMappato\"] !== undefined ? _data[\"servizioNaarMappato\"] : null;\r\n this.hashcodeDescription = _data[\"hashcodeDescription\"] ? HHAttributoHashcodeDescription.fromJS(_data[\"hashcodeDescription\"]) : null;\r\n this.hashcodeTiplogia = _data[\"hashcodeTiplogia\"] ? HHAttributoHashcode.fromJS(_data[\"hashcodeTiplogia\"]) : null;\r\n this.hashcodeTipologiaDescription = _data[\"hashcodeTipologiaDescription\"] ? HHAttributoHashcodeDescription.fromJS(_data[\"hashcodeTipologiaDescription\"]) : null;\r\n if (Array.isArray(_data[\"dettagli\"])) {\r\n this.dettagli = [] as any;\r\n for (let item of _data[\"dettagli\"])\r\n this.dettagli!.push(OffertaDatoDettaglio.fromJS(item));\r\n }\r\n else {\r\n this.dettagli = null;\r\n }\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(TripServiceData.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n this.datiDocumento = _data[\"datiDocumento\"] ? DatiDocumentoRiga.fromJS(_data[\"datiDocumento\"]) : null;\r\n this.datiConferma = _data[\"datiConferma\"] ? DatiConfermaRiga.fromJS(_data[\"datiConferma\"]) : null;\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(OffertaNota.fromJS(item));\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n this.notaH2H = _data[\"notaH2H\"] !== undefined ? _data[\"notaH2H\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.dataCheckout = _data[\"dataCheckout\"] !== undefined ? _data[\"dataCheckout\"] : null;\r\n this.dataAcconto = _data[\"dataAcconto\"] !== undefined ? _data[\"dataAcconto\"] : null;\r\n this.camera = _data[\"camera\"] !== undefined ? _data[\"camera\"] : null;\r\n this.nomeServizioFornitore = _data[\"nomeServizioFornitore\"] !== undefined ? _data[\"nomeServizioFornitore\"] : null;\r\n this.nomeServizioNaar = _data[\"nomeServizioNaar\"] !== undefined ? _data[\"nomeServizioNaar\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.obsoleto = _data[\"obsoleto\"] !== undefined ? _data[\"obsoleto\"] : null;\r\n this.servizioH2H = _data[\"servizioH2H\"] !== undefined ? _data[\"servizioH2H\"] : null;\r\n this.tipologiaH2H = _data[\"tipologiaH2H\"] !== undefined ? _data[\"tipologiaH2H\"] : null;\r\n this.nomeAccordo = _data[\"nomeAccordo\"] !== undefined ? _data[\"nomeAccordo\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.valutaCosto = _data[\"valutaCosto\"] !== undefined ? _data[\"valutaCosto\"] : null;\r\n this.marginePercentule = _data[\"marginePercentule\"] !== undefined ? _data[\"marginePercentule\"] : null;\r\n this.accordoH2H = _data[\"accordoH2H\"] !== undefined ? _data[\"accordoH2H\"] : null;\r\n this.totaleDaAnticipare = _data[\"totaleDaAnticipare\"] !== undefined ? _data[\"totaleDaAnticipare\"] : null;\r\n this.tipoAcconto = _data[\"tipoAcconto\"] !== undefined ? _data[\"tipoAcconto\"] : null;\r\n this.statoServizioAlternativo = _data[\"statoServizioAlternativo\"] !== undefined ? _data[\"statoServizioAlternativo\"] : null;\r\n this.notaFornitore = _data[\"notaFornitore\"] ? TripNote.fromJS(_data[\"notaFornitore\"]) : null;\r\n this.articoloPenali = _data[\"articoloPenali\"] ? TripTextHtml.fromJS(_data[\"articoloPenali\"]) : null;\r\n this.notaPenaliCustom = _data[\"notaPenaliCustom\"] ? TripNote.fromJS(_data[\"notaPenaliCustom\"]) : null;\r\n this.testoPenaliDatiAggiuntivi = _data[\"testoPenaliDatiAggiuntivi\"] !== undefined ? _data[\"testoPenaliDatiAggiuntivi\"] : null;\r\n this.anticipoFornitore = _data[\"anticipoFornitore\"] ? AnticipoFornitore.fromJS(_data[\"anticipoFornitore\"]) : null;\r\n this.regolaAnticipoFornitore = _data[\"regolaAnticipoFornitore\"] !== undefined ? _data[\"regolaAnticipoFornitore\"] : null;\r\n if (Array.isArray(_data[\"inviiAssicurazioneFilodiretto\"])) {\r\n this.inviiAssicurazioneFilodiretto = [] as any;\r\n for (let item of _data[\"inviiAssicurazioneFilodiretto\"])\r\n this.inviiAssicurazioneFilodiretto!.push(InvioAssicurazioneFiloDiretto.fromJS(item));\r\n }\r\n else {\r\n this.inviiAssicurazioneFilodiretto = null;\r\n }\r\n if (Array.isArray(_data[\"inviiAssicurazione\"])) {\r\n this.inviiAssicurazione = [] as any;\r\n for (let item of _data[\"inviiAssicurazione\"])\r\n this.inviiAssicurazione!.push(InvioAssicurazione.fromJS(item));\r\n }\r\n else {\r\n this.inviiAssicurazione = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripServiceData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripServiceData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaDato\"] = this.offertaDato ? this.offertaDato.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"datiH2H\"] = this.datiH2H ? this.datiH2H.toJSON() : null;\r\n data[\"tipologiaFornitore\"] = this.tipologiaFornitore ? this.tipologiaFornitore.toJSON() : null;\r\n data[\"tipologiaNaarMappata\"] = this.tipologiaNaarMappata !== undefined ? this.tipologiaNaarMappata : null;\r\n data[\"servizioFornitore\"] = this.servizioFornitore ? this.servizioFornitore.toJSON() : null;\r\n data[\"luogoFornitore\"] = this.luogoFornitore ? this.luogoFornitore.toJSON() : null;\r\n data[\"luogoNaarMappato\"] = this.luogoNaarMappato !== undefined ? this.luogoNaarMappato : null;\r\n data[\"servizioAggregato\"] = this.servizioAggregato ? this.servizioAggregato.toJSON() : null;\r\n data[\"servizioNaarMappato\"] = this.servizioNaarMappato !== undefined ? this.servizioNaarMappato : null;\r\n data[\"hashcodeDescription\"] = this.hashcodeDescription ? this.hashcodeDescription.toJSON() : null;\r\n data[\"hashcodeTiplogia\"] = this.hashcodeTiplogia ? this.hashcodeTiplogia.toJSON() : null;\r\n data[\"hashcodeTipologiaDescription\"] = this.hashcodeTipologiaDescription ? this.hashcodeTipologiaDescription.toJSON() : null;\r\n if (Array.isArray(this.dettagli)) {\r\n data[\"dettagli\"] = [];\r\n for (let item of this.dettagli)\r\n data[\"dettagli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n data[\"datiDocumento\"] = this.datiDocumento ? this.datiDocumento.toJSON() : null;\r\n data[\"datiConferma\"] = this.datiConferma ? this.datiConferma.toJSON() : null;\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item.toJSON());\r\n }\r\n data[\"notaH2H\"] = this.notaH2H !== undefined ? this.notaH2H : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"dataCheckout\"] = this.dataCheckout !== undefined ? this.dataCheckout : null;\r\n data[\"dataAcconto\"] = this.dataAcconto !== undefined ? this.dataAcconto : null;\r\n data[\"camera\"] = this.camera !== undefined ? this.camera : null;\r\n data[\"nomeServizioFornitore\"] = this.nomeServizioFornitore !== undefined ? this.nomeServizioFornitore : null;\r\n data[\"nomeServizioNaar\"] = this.nomeServizioNaar !== undefined ? this.nomeServizioNaar : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"obsoleto\"] = this.obsoleto !== undefined ? this.obsoleto : null;\r\n data[\"servizioH2H\"] = this.servizioH2H !== undefined ? this.servizioH2H : null;\r\n data[\"tipologiaH2H\"] = this.tipologiaH2H !== undefined ? this.tipologiaH2H : null;\r\n data[\"nomeAccordo\"] = this.nomeAccordo !== undefined ? this.nomeAccordo : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"valutaCosto\"] = this.valutaCosto !== undefined ? this.valutaCosto : null;\r\n data[\"marginePercentule\"] = this.marginePercentule !== undefined ? this.marginePercentule : null;\r\n data[\"accordoH2H\"] = this.accordoH2H !== undefined ? this.accordoH2H : null;\r\n data[\"totaleDaAnticipare\"] = this.totaleDaAnticipare !== undefined ? this.totaleDaAnticipare : null;\r\n data[\"tipoAcconto\"] = this.tipoAcconto !== undefined ? this.tipoAcconto : null;\r\n data[\"statoServizioAlternativo\"] = this.statoServizioAlternativo !== undefined ? this.statoServizioAlternativo : null;\r\n data[\"notaFornitore\"] = this.notaFornitore ? this.notaFornitore.toJSON() : null;\r\n data[\"articoloPenali\"] = this.articoloPenali ? this.articoloPenali.toJSON() : null;\r\n data[\"notaPenaliCustom\"] = this.notaPenaliCustom ? this.notaPenaliCustom.toJSON() : null;\r\n data[\"testoPenaliDatiAggiuntivi\"] = this.testoPenaliDatiAggiuntivi !== undefined ? this.testoPenaliDatiAggiuntivi : null;\r\n data[\"anticipoFornitore\"] = this.anticipoFornitore ? this.anticipoFornitore.toJSON() : null;\r\n data[\"regolaAnticipoFornitore\"] = this.regolaAnticipoFornitore !== undefined ? this.regolaAnticipoFornitore : null;\r\n if (Array.isArray(this.inviiAssicurazioneFilodiretto)) {\r\n data[\"inviiAssicurazioneFilodiretto\"] = [];\r\n for (let item of this.inviiAssicurazioneFilodiretto)\r\n data[\"inviiAssicurazioneFilodiretto\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.inviiAssicurazione)) {\r\n data[\"inviiAssicurazione\"] = [];\r\n for (let item of this.inviiAssicurazione)\r\n data[\"inviiAssicurazione\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripServiceData {\r\n offertaDato?: OffertaDato | null;\r\n stato?: OffertaDatoStato | null;\r\n datiH2H?: OffertaDatoH2H | null;\r\n /** Tipologia fornitore associata.\r\nNull se non è un h2h oppure se è una tipologia basata su hashcode */\r\n tipologiaFornitore?: HHCodice | null;\r\n /** Nome per esteso ed in lingua della tipologia mappata (nei pochi casi in cui c'è) */\r\n tipologiaNaarMappata?: string | null;\r\n /** Servizio del fornitore associato\r\nNull se non è un servizio H2H oppure se è una tipologia basata su hashcode */\r\n servizioFornitore?: HHServizio | null;\r\n /** Luogo del fornitore associato.\r\nNull se non è un servizio H2H oppure se è una tipologia basata su hashcode */\r\n luogoFornitore?: HHLuogo | null;\r\n /** Nome per esteso del luogo Naar mappato sul LuogoFornitore se presente e mappato. */\r\n luogoNaarMappato?: string | null;\r\n /** Servizio H2H se è tale */\r\n servizioAggregato?: HHServizioAggregato | null;\r\n /** Nome per esteso del servizio Naar associato al ServizioAggregato se presente e mappato */\r\n servizioNaarMappato?: string | null;\r\n /** Descrizione dell'hashcode calcolato */\r\n hashcodeDescription?: HHAttributoHashcodeDescription | null;\r\n /** Hashcode originale associato alla tipologia fornitore */\r\n hashcodeTiplogia?: HHAttributoHashcode | null;\r\n /** Descrizione dell'hashcode sorgente della tipologia */\r\n hashcodeTipologiaDescription?: HHAttributoHashcodeDescription | null;\r\n dettagli?: OffertaDatoDettaglio[] | null;\r\n supplementi?: TripServiceData[] | null;\r\n /** Dati per i documenti */\r\n datiDocumento?: DatiDocumentoRiga | null;\r\n /** Dati di conferma */\r\n datiConferma?: DatiConfermaRiga | null;\r\n /** Note abbinate a questa riga */\r\n note?: OffertaNota[] | null;\r\n notaH2H?: string | null;\r\n data?: string;\r\n dataCheckout?: string | null;\r\n dataAcconto?: string | null;\r\n camera?: string | null;\r\n nomeServizioFornitore?: string | null;\r\n nomeServizioNaar?: string | null;\r\n eliminato?: boolean;\r\n obsoleto?: boolean;\r\n servizioH2H?: string | null;\r\n tipologiaH2H?: string | null;\r\n nomeAccordo?: string | null;\r\n costo?: number;\r\n valutaCosto?: string | null;\r\n marginePercentule?: number;\r\n accordoH2H?: boolean;\r\n totaleDaAnticipare?: number;\r\n tipoAcconto?: ETipoAcconto;\r\n statoServizioAlternativo?: EStatoServizioAlternativo;\r\n /** Eventuale nota H2H del fornitore. Tipicamente il testo è HTML */\r\n notaFornitore?: TripNote | null;\r\n /** Testo dell'articolo penali di cancellazione, se c'è. */\r\n articoloPenali?: TripTextHtml | null;\r\n /** Nota custom delle penali di cancellazione, se ce n'è una */\r\n notaPenaliCustom?: TripNote | null;\r\n /** Testo ricavato dalle penali di default dei dati aggiuntivi */\r\n testoPenaliDatiAggiuntivi?: string | null;\r\n /** Dati dell'anticipo al fornitore, se previsti */\r\n anticipoFornitore?: AnticipoFornitore | null;\r\n /** Nome della regola di anticipo al fornitore */\r\n regolaAnticipoFornitore?: string | null;\r\n /** Elenco degli invii dell'assicurazione, una riga per ogni cliente */\r\n inviiAssicurazioneFilodiretto?: InvioAssicurazioneFiloDiretto[] | null;\r\n inviiAssicurazione?: InvioAssicurazione[] | null;\r\n}\r\n\r\nexport class OffertaDato implements IOffertaDato {\r\n offertaDatoID?: number;\r\n offertaID?: number;\r\n itinerarioID?: number;\r\n abbinamentoID?: number;\r\n servizioID?: number | null;\r\n servizioTipologiaID?: number | null;\r\n trattamentoID?: number | null;\r\n cancellato?: boolean;\r\n accordoID?: number | null;\r\n giorno?: number | null;\r\n ordine?: number | null;\r\n quantita?: number | null;\r\n descrizione?: string | null;\r\n note?: string | null;\r\n noteCliente?: string | null;\r\n prezzoAdulto?: number;\r\n prezzoAdultoOriginale?: number | null;\r\n prezzoBambino?: number;\r\n prezzoBambinoOriginale?: number | null;\r\n costoAdulto?: number;\r\n costoAdultoOriginale?: number | null;\r\n costoBambino?: number;\r\n costoBambinoOriginale?: number | null;\r\n valutaID?: number;\r\n valutaPrezzoID?: number | null;\r\n cambioValuta?: number;\r\n contabilizzazione?: EContabilizzazione | null;\r\n deregolamenta?: boolean | null;\r\n commissioniAgenzia?: number | null;\r\n commissionePercentuale?: number;\r\n costoID?: number | null;\r\n costoGlobale?: boolean | null;\r\n sistemazioneID?: number | null;\r\n numeroAdulti?: number;\r\n numeroBambini?: number;\r\n allotment?: number | null;\r\n allotmentPrecedente?: number | null;\r\n tabellaAllotmentID?: number | null;\r\n provider?: number | null;\r\n codiceTipologiaFornitore?: string | null;\r\n dataInserimento?: string | null;\r\n markup?: number | null;\r\n transactionID?: number | null;\r\n rigaManuale?: boolean | null;\r\n tipo?: ETipoRiga | null;\r\n regolaVenditaID?: number | null;\r\n codiceServizioH2H?: string | null;\r\n codiceTipologiaH2H?: string | null;\r\n supplementoRiduzione?: number | null;\r\n tabellaCostoID?: number | null;\r\n maxEta?: number | null;\r\n codicePrenotazione?: string | null;\r\n penaleID?: number | null;\r\n articoloPenaleID?: number | null;\r\n dataAcconto?: string | null;\r\n inizio?: string | null;\r\n fine?: string | null;\r\n ottimizzataIl?: string | null;\r\n costoOttimizzato?: number | null;\r\n fornitoreOttimizzato?: number | null;\r\n descrizioneOttimizzato?: string | null;\r\n clienteID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n luogoID?: number | null;\r\n tipoAutocomplete?: EAutocompleteRiga | null;\r\n prezzoManuale?: boolean;\r\n periodoManuale?: boolean;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n tipoAcconto?: ETipoImportoAcconto | null;\r\n importoAcconto?: number | null;\r\n nonRimborsabile?: boolean;\r\n anticipoFornitoreID?: number | null;\r\n ultimaVerifica?: string | null;\r\n disponibilita?: EStatoDisponibilita;\r\n disponibilitaOriginal?: EStatoDisponibilita;\r\n\r\n constructor(data?: IOffertaDato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.cancellato = _data[\"cancellato\"] !== undefined ? _data[\"cancellato\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.quantita = _data[\"quantita\"] !== undefined ? _data[\"quantita\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.noteCliente = _data[\"noteCliente\"] !== undefined ? _data[\"noteCliente\"] : null;\r\n this.prezzoAdulto = _data[\"prezzoAdulto\"] !== undefined ? _data[\"prezzoAdulto\"] : null;\r\n this.prezzoAdultoOriginale = _data[\"prezzoAdultoOriginale\"] !== undefined ? _data[\"prezzoAdultoOriginale\"] : null;\r\n this.prezzoBambino = _data[\"prezzoBambino\"] !== undefined ? _data[\"prezzoBambino\"] : null;\r\n this.prezzoBambinoOriginale = _data[\"prezzoBambinoOriginale\"] !== undefined ? _data[\"prezzoBambinoOriginale\"] : null;\r\n this.costoAdulto = _data[\"costoAdulto\"] !== undefined ? _data[\"costoAdulto\"] : null;\r\n this.costoAdultoOriginale = _data[\"costoAdultoOriginale\"] !== undefined ? _data[\"costoAdultoOriginale\"] : null;\r\n this.costoBambino = _data[\"costoBambino\"] !== undefined ? _data[\"costoBambino\"] : null;\r\n this.costoBambinoOriginale = _data[\"costoBambinoOriginale\"] !== undefined ? _data[\"costoBambinoOriginale\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.valutaPrezzoID = _data[\"valutaPrezzoID\"] !== undefined ? _data[\"valutaPrezzoID\"] : null;\r\n this.cambioValuta = _data[\"cambioValuta\"] !== undefined ? _data[\"cambioValuta\"] : null;\r\n this.contabilizzazione = _data[\"contabilizzazione\"] !== undefined ? _data[\"contabilizzazione\"] : null;\r\n this.deregolamenta = _data[\"deregolamenta\"] !== undefined ? _data[\"deregolamenta\"] : null;\r\n this.commissioniAgenzia = _data[\"commissioniAgenzia\"] !== undefined ? _data[\"commissioniAgenzia\"] : null;\r\n this.commissionePercentuale = _data[\"commissionePercentuale\"] !== undefined ? _data[\"commissionePercentuale\"] : null;\r\n this.costoID = _data[\"costoID\"] !== undefined ? _data[\"costoID\"] : null;\r\n this.costoGlobale = _data[\"costoGlobale\"] !== undefined ? _data[\"costoGlobale\"] : null;\r\n this.sistemazioneID = _data[\"sistemazioneID\"] !== undefined ? _data[\"sistemazioneID\"] : null;\r\n this.numeroAdulti = _data[\"numeroAdulti\"] !== undefined ? _data[\"numeroAdulti\"] : null;\r\n this.numeroBambini = _data[\"numeroBambini\"] !== undefined ? _data[\"numeroBambini\"] : null;\r\n this.allotment = _data[\"allotment\"] !== undefined ? _data[\"allotment\"] : null;\r\n this.allotmentPrecedente = _data[\"allotmentPrecedente\"] !== undefined ? _data[\"allotmentPrecedente\"] : null;\r\n this.tabellaAllotmentID = _data[\"tabellaAllotmentID\"] !== undefined ? _data[\"tabellaAllotmentID\"] : null;\r\n this.provider = _data[\"provider\"] !== undefined ? _data[\"provider\"] : null;\r\n this.codiceTipologiaFornitore = _data[\"codiceTipologiaFornitore\"] !== undefined ? _data[\"codiceTipologiaFornitore\"] : null;\r\n this.dataInserimento = _data[\"dataInserimento\"] !== undefined ? _data[\"dataInserimento\"] : null;\r\n this.markup = _data[\"markup\"] !== undefined ? _data[\"markup\"] : null;\r\n this.transactionID = _data[\"transactionID\"] !== undefined ? _data[\"transactionID\"] : null;\r\n this.rigaManuale = _data[\"rigaManuale\"] !== undefined ? _data[\"rigaManuale\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n this.codiceServizioH2H = _data[\"codiceServizioH2H\"] !== undefined ? _data[\"codiceServizioH2H\"] : null;\r\n this.codiceTipologiaH2H = _data[\"codiceTipologiaH2H\"] !== undefined ? _data[\"codiceTipologiaH2H\"] : null;\r\n this.supplementoRiduzione = _data[\"supplementoRiduzione\"] !== undefined ? _data[\"supplementoRiduzione\"] : null;\r\n this.tabellaCostoID = _data[\"tabellaCostoID\"] !== undefined ? _data[\"tabellaCostoID\"] : null;\r\n this.maxEta = _data[\"maxEta\"] !== undefined ? _data[\"maxEta\"] : null;\r\n this.codicePrenotazione = _data[\"codicePrenotazione\"] !== undefined ? _data[\"codicePrenotazione\"] : null;\r\n this.penaleID = _data[\"penaleID\"] !== undefined ? _data[\"penaleID\"] : null;\r\n this.articoloPenaleID = _data[\"articoloPenaleID\"] !== undefined ? _data[\"articoloPenaleID\"] : null;\r\n this.dataAcconto = _data[\"dataAcconto\"] !== undefined ? _data[\"dataAcconto\"] : null;\r\n this.inizio = _data[\"inizio\"] !== undefined ? _data[\"inizio\"] : null;\r\n this.fine = _data[\"fine\"] !== undefined ? _data[\"fine\"] : null;\r\n this.ottimizzataIl = _data[\"ottimizzataIl\"] !== undefined ? _data[\"ottimizzataIl\"] : null;\r\n this.costoOttimizzato = _data[\"costoOttimizzato\"] !== undefined ? _data[\"costoOttimizzato\"] : null;\r\n this.fornitoreOttimizzato = _data[\"fornitoreOttimizzato\"] !== undefined ? _data[\"fornitoreOttimizzato\"] : null;\r\n this.descrizioneOttimizzato = _data[\"descrizioneOttimizzato\"] !== undefined ? _data[\"descrizioneOttimizzato\"] : null;\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.tipoAutocomplete = _data[\"tipoAutocomplete\"] !== undefined ? _data[\"tipoAutocomplete\"] : null;\r\n this.prezzoManuale = _data[\"prezzoManuale\"] !== undefined ? _data[\"prezzoManuale\"] : null;\r\n this.periodoManuale = _data[\"periodoManuale\"] !== undefined ? _data[\"periodoManuale\"] : null;\r\n this.dataPenale = _data[\"dataPenale\"] !== undefined ? _data[\"dataPenale\"] : null;\r\n this.importoPenale = _data[\"importoPenale\"] !== undefined ? _data[\"importoPenale\"] : null;\r\n this.tipoAcconto = _data[\"tipoAcconto\"] !== undefined ? _data[\"tipoAcconto\"] : null;\r\n this.importoAcconto = _data[\"importoAcconto\"] !== undefined ? _data[\"importoAcconto\"] : null;\r\n this.nonRimborsabile = _data[\"nonRimborsabile\"] !== undefined ? _data[\"nonRimborsabile\"] : null;\r\n this.anticipoFornitoreID = _data[\"anticipoFornitoreID\"] !== undefined ? _data[\"anticipoFornitoreID\"] : null;\r\n this.ultimaVerifica = _data[\"ultimaVerifica\"] !== undefined ? _data[\"ultimaVerifica\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.disponibilitaOriginal = _data[\"disponibilitaOriginal\"] !== undefined ? _data[\"disponibilitaOriginal\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaDato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaDato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"cancellato\"] = this.cancellato !== undefined ? this.cancellato : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"quantita\"] = this.quantita !== undefined ? this.quantita : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"noteCliente\"] = this.noteCliente !== undefined ? this.noteCliente : null;\r\n data[\"prezzoAdulto\"] = this.prezzoAdulto !== undefined ? this.prezzoAdulto : null;\r\n data[\"prezzoAdultoOriginale\"] = this.prezzoAdultoOriginale !== undefined ? this.prezzoAdultoOriginale : null;\r\n data[\"prezzoBambino\"] = this.prezzoBambino !== undefined ? this.prezzoBambino : null;\r\n data[\"prezzoBambinoOriginale\"] = this.prezzoBambinoOriginale !== undefined ? this.prezzoBambinoOriginale : null;\r\n data[\"costoAdulto\"] = this.costoAdulto !== undefined ? this.costoAdulto : null;\r\n data[\"costoAdultoOriginale\"] = this.costoAdultoOriginale !== undefined ? this.costoAdultoOriginale : null;\r\n data[\"costoBambino\"] = this.costoBambino !== undefined ? this.costoBambino : null;\r\n data[\"costoBambinoOriginale\"] = this.costoBambinoOriginale !== undefined ? this.costoBambinoOriginale : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"valutaPrezzoID\"] = this.valutaPrezzoID !== undefined ? this.valutaPrezzoID : null;\r\n data[\"cambioValuta\"] = this.cambioValuta !== undefined ? this.cambioValuta : null;\r\n data[\"contabilizzazione\"] = this.contabilizzazione !== undefined ? this.contabilizzazione : null;\r\n data[\"deregolamenta\"] = this.deregolamenta !== undefined ? this.deregolamenta : null;\r\n data[\"commissioniAgenzia\"] = this.commissioniAgenzia !== undefined ? this.commissioniAgenzia : null;\r\n data[\"commissionePercentuale\"] = this.commissionePercentuale !== undefined ? this.commissionePercentuale : null;\r\n data[\"costoID\"] = this.costoID !== undefined ? this.costoID : null;\r\n data[\"costoGlobale\"] = this.costoGlobale !== undefined ? this.costoGlobale : null;\r\n data[\"sistemazioneID\"] = this.sistemazioneID !== undefined ? this.sistemazioneID : null;\r\n data[\"numeroAdulti\"] = this.numeroAdulti !== undefined ? this.numeroAdulti : null;\r\n data[\"numeroBambini\"] = this.numeroBambini !== undefined ? this.numeroBambini : null;\r\n data[\"allotment\"] = this.allotment !== undefined ? this.allotment : null;\r\n data[\"allotmentPrecedente\"] = this.allotmentPrecedente !== undefined ? this.allotmentPrecedente : null;\r\n data[\"tabellaAllotmentID\"] = this.tabellaAllotmentID !== undefined ? this.tabellaAllotmentID : null;\r\n data[\"provider\"] = this.provider !== undefined ? this.provider : null;\r\n data[\"codiceTipologiaFornitore\"] = this.codiceTipologiaFornitore !== undefined ? this.codiceTipologiaFornitore : null;\r\n data[\"dataInserimento\"] = this.dataInserimento !== undefined ? this.dataInserimento : null;\r\n data[\"markup\"] = this.markup !== undefined ? this.markup : null;\r\n data[\"transactionID\"] = this.transactionID !== undefined ? this.transactionID : null;\r\n data[\"rigaManuale\"] = this.rigaManuale !== undefined ? this.rigaManuale : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n data[\"codiceServizioH2H\"] = this.codiceServizioH2H !== undefined ? this.codiceServizioH2H : null;\r\n data[\"codiceTipologiaH2H\"] = this.codiceTipologiaH2H !== undefined ? this.codiceTipologiaH2H : null;\r\n data[\"supplementoRiduzione\"] = this.supplementoRiduzione !== undefined ? this.supplementoRiduzione : null;\r\n data[\"tabellaCostoID\"] = this.tabellaCostoID !== undefined ? this.tabellaCostoID : null;\r\n data[\"maxEta\"] = this.maxEta !== undefined ? this.maxEta : null;\r\n data[\"codicePrenotazione\"] = this.codicePrenotazione !== undefined ? this.codicePrenotazione : null;\r\n data[\"penaleID\"] = this.penaleID !== undefined ? this.penaleID : null;\r\n data[\"articoloPenaleID\"] = this.articoloPenaleID !== undefined ? this.articoloPenaleID : null;\r\n data[\"dataAcconto\"] = this.dataAcconto !== undefined ? this.dataAcconto : null;\r\n data[\"inizio\"] = this.inizio !== undefined ? this.inizio : null;\r\n data[\"fine\"] = this.fine !== undefined ? this.fine : null;\r\n data[\"ottimizzataIl\"] = this.ottimizzataIl !== undefined ? this.ottimizzataIl : null;\r\n data[\"costoOttimizzato\"] = this.costoOttimizzato !== undefined ? this.costoOttimizzato : null;\r\n data[\"fornitoreOttimizzato\"] = this.fornitoreOttimizzato !== undefined ? this.fornitoreOttimizzato : null;\r\n data[\"descrizioneOttimizzato\"] = this.descrizioneOttimizzato !== undefined ? this.descrizioneOttimizzato : null;\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"tipoAutocomplete\"] = this.tipoAutocomplete !== undefined ? this.tipoAutocomplete : null;\r\n data[\"prezzoManuale\"] = this.prezzoManuale !== undefined ? this.prezzoManuale : null;\r\n data[\"periodoManuale\"] = this.periodoManuale !== undefined ? this.periodoManuale : null;\r\n data[\"dataPenale\"] = this.dataPenale !== undefined ? this.dataPenale : null;\r\n data[\"importoPenale\"] = this.importoPenale !== undefined ? this.importoPenale : null;\r\n data[\"tipoAcconto\"] = this.tipoAcconto !== undefined ? this.tipoAcconto : null;\r\n data[\"importoAcconto\"] = this.importoAcconto !== undefined ? this.importoAcconto : null;\r\n data[\"nonRimborsabile\"] = this.nonRimborsabile !== undefined ? this.nonRimborsabile : null;\r\n data[\"anticipoFornitoreID\"] = this.anticipoFornitoreID !== undefined ? this.anticipoFornitoreID : null;\r\n data[\"ultimaVerifica\"] = this.ultimaVerifica !== undefined ? this.ultimaVerifica : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"disponibilitaOriginal\"] = this.disponibilitaOriginal !== undefined ? this.disponibilitaOriginal : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaDato {\r\n offertaDatoID?: number;\r\n offertaID?: number;\r\n itinerarioID?: number;\r\n abbinamentoID?: number;\r\n servizioID?: number | null;\r\n servizioTipologiaID?: number | null;\r\n trattamentoID?: number | null;\r\n cancellato?: boolean;\r\n accordoID?: number | null;\r\n giorno?: number | null;\r\n ordine?: number | null;\r\n quantita?: number | null;\r\n descrizione?: string | null;\r\n note?: string | null;\r\n noteCliente?: string | null;\r\n prezzoAdulto?: number;\r\n prezzoAdultoOriginale?: number | null;\r\n prezzoBambino?: number;\r\n prezzoBambinoOriginale?: number | null;\r\n costoAdulto?: number;\r\n costoAdultoOriginale?: number | null;\r\n costoBambino?: number;\r\n costoBambinoOriginale?: number | null;\r\n valutaID?: number;\r\n valutaPrezzoID?: number | null;\r\n cambioValuta?: number;\r\n contabilizzazione?: EContabilizzazione | null;\r\n deregolamenta?: boolean | null;\r\n commissioniAgenzia?: number | null;\r\n commissionePercentuale?: number;\r\n costoID?: number | null;\r\n costoGlobale?: boolean | null;\r\n sistemazioneID?: number | null;\r\n numeroAdulti?: number;\r\n numeroBambini?: number;\r\n allotment?: number | null;\r\n allotmentPrecedente?: number | null;\r\n tabellaAllotmentID?: number | null;\r\n provider?: number | null;\r\n codiceTipologiaFornitore?: string | null;\r\n dataInserimento?: string | null;\r\n markup?: number | null;\r\n transactionID?: number | null;\r\n rigaManuale?: boolean | null;\r\n tipo?: ETipoRiga | null;\r\n regolaVenditaID?: number | null;\r\n codiceServizioH2H?: string | null;\r\n codiceTipologiaH2H?: string | null;\r\n supplementoRiduzione?: number | null;\r\n tabellaCostoID?: number | null;\r\n maxEta?: number | null;\r\n codicePrenotazione?: string | null;\r\n penaleID?: number | null;\r\n articoloPenaleID?: number | null;\r\n dataAcconto?: string | null;\r\n inizio?: string | null;\r\n fine?: string | null;\r\n ottimizzataIl?: string | null;\r\n costoOttimizzato?: number | null;\r\n fornitoreOttimizzato?: number | null;\r\n descrizioneOttimizzato?: string | null;\r\n clienteID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n luogoID?: number | null;\r\n tipoAutocomplete?: EAutocompleteRiga | null;\r\n prezzoManuale?: boolean;\r\n periodoManuale?: boolean;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n tipoAcconto?: ETipoImportoAcconto | null;\r\n importoAcconto?: number | null;\r\n nonRimborsabile?: boolean;\r\n anticipoFornitoreID?: number | null;\r\n ultimaVerifica?: string | null;\r\n disponibilita?: EStatoDisponibilita;\r\n disponibilitaOriginal?: EStatoDisponibilita;\r\n}\r\n\r\nexport enum ETipoRiga {\r\n Default = \"Default\",\r\n Volo = \"Volo\",\r\n TasseVolo = \"TasseVolo\",\r\n UsoInterno = \"UsoInterno\",\r\n}\r\n\r\nexport enum EAutocompleteRiga {\r\n NonCompletare = \"NonCompletare\",\r\n ServizioSpecifico = \"ServizioSpecifico\",\r\n ServizioTipologiaSpecifici = \"ServizioTipologiaSpecifici\",\r\n ServizioStessoTipo = \"ServizioStessoTipo\",\r\n}\r\n\r\nexport enum ETipoImportoAcconto {\r\n Percentuale = \"Percentuale\",\r\n ValoreAssolutoCosto = \"ValoreAssolutoCosto\",\r\n ValoreCostoConMarkup = \"ValoreCostoConMarkup\",\r\n ValoreAssolutoPrezzo = \"ValoreAssolutoPrezzo\",\r\n}\r\n\r\nexport class OffertaDatoStato implements IOffertaDatoStato {\r\n offertaDatoID?: number;\r\n numeroPrenotazione?: string | null;\r\n riferimentoFornitore?: string | null;\r\n dataPrenotazione?: string | null;\r\n dataConferma?: string | null;\r\n dataAnnullamento?: string | null;\r\n dataCancellazione?: string | null;\r\n prenotaDal?: string | null;\r\n stato?: EStatusServizio | null;\r\n documentoID?: number | null;\r\n host2Host?: boolean | null;\r\n pagato?: number | null;\r\n pagamentoID?: number | null;\r\n verificato?: boolean | null;\r\n ordinaBiglietteria?: string | null;\r\n presaInCaricoBiglietteria?: string | null;\r\n emessoBiglietteria?: string | null;\r\n okContabileBiglietteria?: string | null;\r\n dataEmissioneCustom?: string | null;\r\n richiestoRimborso?: boolean;\r\n importoAnticipoFornitore?: number | null;\r\n valutaAnticipoFornitoreID?: number | null;\r\n dataAnticipoFornitore?: string | null;\r\n statoServizioAlternativo?: EStatoServizioAlternativo;\r\n offertaDatoAlternativaID?: number | null;\r\n\r\n constructor(data?: IOffertaDatoStato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.numeroPrenotazione = _data[\"numeroPrenotazione\"] !== undefined ? _data[\"numeroPrenotazione\"] : null;\r\n this.riferimentoFornitore = _data[\"riferimentoFornitore\"] !== undefined ? _data[\"riferimentoFornitore\"] : null;\r\n this.dataPrenotazione = _data[\"dataPrenotazione\"] !== undefined ? _data[\"dataPrenotazione\"] : null;\r\n this.dataConferma = _data[\"dataConferma\"] !== undefined ? _data[\"dataConferma\"] : null;\r\n this.dataAnnullamento = _data[\"dataAnnullamento\"] !== undefined ? _data[\"dataAnnullamento\"] : null;\r\n this.dataCancellazione = _data[\"dataCancellazione\"] !== undefined ? _data[\"dataCancellazione\"] : null;\r\n this.prenotaDal = _data[\"prenotaDal\"] !== undefined ? _data[\"prenotaDal\"] : null;\r\n this.stato = _data[\"stato\"] !== undefined ? _data[\"stato\"] : null;\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.host2Host = _data[\"host2Host\"] !== undefined ? _data[\"host2Host\"] : null;\r\n this.pagato = _data[\"pagato\"] !== undefined ? _data[\"pagato\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.verificato = _data[\"verificato\"] !== undefined ? _data[\"verificato\"] : null;\r\n this.ordinaBiglietteria = _data[\"ordinaBiglietteria\"] !== undefined ? _data[\"ordinaBiglietteria\"] : null;\r\n this.presaInCaricoBiglietteria = _data[\"presaInCaricoBiglietteria\"] !== undefined ? _data[\"presaInCaricoBiglietteria\"] : null;\r\n this.emessoBiglietteria = _data[\"emessoBiglietteria\"] !== undefined ? _data[\"emessoBiglietteria\"] : null;\r\n this.okContabileBiglietteria = _data[\"okContabileBiglietteria\"] !== undefined ? _data[\"okContabileBiglietteria\"] : null;\r\n this.dataEmissioneCustom = _data[\"dataEmissioneCustom\"] !== undefined ? _data[\"dataEmissioneCustom\"] : null;\r\n this.richiestoRimborso = _data[\"richiestoRimborso\"] !== undefined ? _data[\"richiestoRimborso\"] : null;\r\n this.importoAnticipoFornitore = _data[\"importoAnticipoFornitore\"] !== undefined ? _data[\"importoAnticipoFornitore\"] : null;\r\n this.valutaAnticipoFornitoreID = _data[\"valutaAnticipoFornitoreID\"] !== undefined ? _data[\"valutaAnticipoFornitoreID\"] : null;\r\n this.dataAnticipoFornitore = _data[\"dataAnticipoFornitore\"] !== undefined ? _data[\"dataAnticipoFornitore\"] : null;\r\n this.statoServizioAlternativo = _data[\"statoServizioAlternativo\"] !== undefined ? _data[\"statoServizioAlternativo\"] : null;\r\n this.offertaDatoAlternativaID = _data[\"offertaDatoAlternativaID\"] !== undefined ? _data[\"offertaDatoAlternativaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaDatoStato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaDatoStato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"numeroPrenotazione\"] = this.numeroPrenotazione !== undefined ? this.numeroPrenotazione : null;\r\n data[\"riferimentoFornitore\"] = this.riferimentoFornitore !== undefined ? this.riferimentoFornitore : null;\r\n data[\"dataPrenotazione\"] = this.dataPrenotazione !== undefined ? this.dataPrenotazione : null;\r\n data[\"dataConferma\"] = this.dataConferma !== undefined ? this.dataConferma : null;\r\n data[\"dataAnnullamento\"] = this.dataAnnullamento !== undefined ? this.dataAnnullamento : null;\r\n data[\"dataCancellazione\"] = this.dataCancellazione !== undefined ? this.dataCancellazione : null;\r\n data[\"prenotaDal\"] = this.prenotaDal !== undefined ? this.prenotaDal : null;\r\n data[\"stato\"] = this.stato !== undefined ? this.stato : null;\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"host2Host\"] = this.host2Host !== undefined ? this.host2Host : null;\r\n data[\"pagato\"] = this.pagato !== undefined ? this.pagato : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"verificato\"] = this.verificato !== undefined ? this.verificato : null;\r\n data[\"ordinaBiglietteria\"] = this.ordinaBiglietteria !== undefined ? this.ordinaBiglietteria : null;\r\n data[\"presaInCaricoBiglietteria\"] = this.presaInCaricoBiglietteria !== undefined ? this.presaInCaricoBiglietteria : null;\r\n data[\"emessoBiglietteria\"] = this.emessoBiglietteria !== undefined ? this.emessoBiglietteria : null;\r\n data[\"okContabileBiglietteria\"] = this.okContabileBiglietteria !== undefined ? this.okContabileBiglietteria : null;\r\n data[\"dataEmissioneCustom\"] = this.dataEmissioneCustom !== undefined ? this.dataEmissioneCustom : null;\r\n data[\"richiestoRimborso\"] = this.richiestoRimborso !== undefined ? this.richiestoRimborso : null;\r\n data[\"importoAnticipoFornitore\"] = this.importoAnticipoFornitore !== undefined ? this.importoAnticipoFornitore : null;\r\n data[\"valutaAnticipoFornitoreID\"] = this.valutaAnticipoFornitoreID !== undefined ? this.valutaAnticipoFornitoreID : null;\r\n data[\"dataAnticipoFornitore\"] = this.dataAnticipoFornitore !== undefined ? this.dataAnticipoFornitore : null;\r\n data[\"statoServizioAlternativo\"] = this.statoServizioAlternativo !== undefined ? this.statoServizioAlternativo : null;\r\n data[\"offertaDatoAlternativaID\"] = this.offertaDatoAlternativaID !== undefined ? this.offertaDatoAlternativaID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaDatoStato {\r\n offertaDatoID?: number;\r\n numeroPrenotazione?: string | null;\r\n riferimentoFornitore?: string | null;\r\n dataPrenotazione?: string | null;\r\n dataConferma?: string | null;\r\n dataAnnullamento?: string | null;\r\n dataCancellazione?: string | null;\r\n prenotaDal?: string | null;\r\n stato?: EStatusServizio | null;\r\n documentoID?: number | null;\r\n host2Host?: boolean | null;\r\n pagato?: number | null;\r\n pagamentoID?: number | null;\r\n verificato?: boolean | null;\r\n ordinaBiglietteria?: string | null;\r\n presaInCaricoBiglietteria?: string | null;\r\n emessoBiglietteria?: string | null;\r\n okContabileBiglietteria?: string | null;\r\n dataEmissioneCustom?: string | null;\r\n richiestoRimborso?: boolean;\r\n importoAnticipoFornitore?: number | null;\r\n valutaAnticipoFornitoreID?: number | null;\r\n dataAnticipoFornitore?: string | null;\r\n statoServizioAlternativo?: EStatoServizioAlternativo;\r\n offertaDatoAlternativaID?: number | null;\r\n}\r\n\r\nexport enum EStatusServizio {\r\n Manuale = \"Manuale\",\r\n DaPrenotare = \"DaPrenotare\",\r\n InPrenotazione = \"InPrenotazione\",\r\n PrezziVariati = \"PrezziVariati\",\r\n Confermato = \"Confermato\",\r\n ParzialmenteConfermato = \"ParzialmenteConfermato\",\r\n NonConfermato = \"NonConfermato\",\r\n DaCancellare = \"DaCancellare\",\r\n InCancellazione = \"InCancellazione\",\r\n Cancellato = \"Cancellato\",\r\n}\r\n\r\nexport enum EStatoServizioAlternativo {\r\n Nessuno = \"Nessuno\",\r\n AlternativaProposta = \"AlternativaProposta\",\r\n AlternativaAccettata = \"AlternativaAccettata\",\r\n}\r\n\r\nexport class OffertaDatoH2H implements IOffertaDatoH2H {\r\n offertaDatoID?: number;\r\n hhCodiceID?: number | null;\r\n codicePrenotazione?: string | null;\r\n codiceServizio?: string | null;\r\n codiceTipologia?: string | null;\r\n customData?: string | null;\r\n bookCustomData?: string | null;\r\n contattoPickupID?: number | null;\r\n contattoDropoffID?: number | null;\r\n puntoIniziale?: string | null;\r\n puntoFinale?: string | null;\r\n hashCode?: string | null;\r\n servizioH2hID?: number | null;\r\n\r\n constructor(data?: IOffertaDatoH2H) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.hhCodiceID = _data[\"hhCodiceID\"] !== undefined ? _data[\"hhCodiceID\"] : null;\r\n this.codicePrenotazione = _data[\"codicePrenotazione\"] !== undefined ? _data[\"codicePrenotazione\"] : null;\r\n this.codiceServizio = _data[\"codiceServizio\"] !== undefined ? _data[\"codiceServizio\"] : null;\r\n this.codiceTipologia = _data[\"codiceTipologia\"] !== undefined ? _data[\"codiceTipologia\"] : null;\r\n this.customData = _data[\"customData\"] !== undefined ? _data[\"customData\"] : null;\r\n this.bookCustomData = _data[\"bookCustomData\"] !== undefined ? _data[\"bookCustomData\"] : null;\r\n this.contattoPickupID = _data[\"contattoPickupID\"] !== undefined ? _data[\"contattoPickupID\"] : null;\r\n this.contattoDropoffID = _data[\"contattoDropoffID\"] !== undefined ? _data[\"contattoDropoffID\"] : null;\r\n this.puntoIniziale = _data[\"puntoIniziale\"] !== undefined ? _data[\"puntoIniziale\"] : null;\r\n this.puntoFinale = _data[\"puntoFinale\"] !== undefined ? _data[\"puntoFinale\"] : null;\r\n this.hashCode = _data[\"hashCode\"] !== undefined ? _data[\"hashCode\"] : null;\r\n this.servizioH2hID = _data[\"servizioH2hID\"] !== undefined ? _data[\"servizioH2hID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaDatoH2H {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaDatoH2H();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"hhCodiceID\"] = this.hhCodiceID !== undefined ? this.hhCodiceID : null;\r\n data[\"codicePrenotazione\"] = this.codicePrenotazione !== undefined ? this.codicePrenotazione : null;\r\n data[\"codiceServizio\"] = this.codiceServizio !== undefined ? this.codiceServizio : null;\r\n data[\"codiceTipologia\"] = this.codiceTipologia !== undefined ? this.codiceTipologia : null;\r\n data[\"customData\"] = this.customData !== undefined ? this.customData : null;\r\n data[\"bookCustomData\"] = this.bookCustomData !== undefined ? this.bookCustomData : null;\r\n data[\"contattoPickupID\"] = this.contattoPickupID !== undefined ? this.contattoPickupID : null;\r\n data[\"contattoDropoffID\"] = this.contattoDropoffID !== undefined ? this.contattoDropoffID : null;\r\n data[\"puntoIniziale\"] = this.puntoIniziale !== undefined ? this.puntoIniziale : null;\r\n data[\"puntoFinale\"] = this.puntoFinale !== undefined ? this.puntoFinale : null;\r\n data[\"hashCode\"] = this.hashCode !== undefined ? this.hashCode : null;\r\n data[\"servizioH2hID\"] = this.servizioH2hID !== undefined ? this.servizioH2hID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaDatoH2H {\r\n offertaDatoID?: number;\r\n hhCodiceID?: number | null;\r\n codicePrenotazione?: string | null;\r\n codiceServizio?: string | null;\r\n codiceTipologia?: string | null;\r\n customData?: string | null;\r\n bookCustomData?: string | null;\r\n contattoPickupID?: number | null;\r\n contattoDropoffID?: number | null;\r\n puntoIniziale?: string | null;\r\n puntoFinale?: string | null;\r\n hashCode?: string | null;\r\n servizioH2hID?: number | null;\r\n}\r\n\r\nexport class HHCodice implements IHHCodice {\r\n id?: number;\r\n hhServizioID?: number | null;\r\n nomeTipologia?: string | null;\r\n codiceTipologia?: string | null;\r\n servizioTipologiaNaarID?: number | null;\r\n tipoTipologia?: ETipoTipologiaHH;\r\n ultimoAggiornamento?: string | null;\r\n codiceTrattamentoFornitore?: string | null;\r\n trattamentoID?: number | null;\r\n nonRimborsabile?: boolean | null;\r\n pagaSubito?: boolean;\r\n customData?: string | null;\r\n servizioRegolaVenditaID?: number | null;\r\n descrizioneID?: number | null;\r\n hashCodeID?: number | null;\r\n servizio?: HHServizio | null;\r\n bedsID?: number | null;\r\n mealID?: number | null;\r\n hashCode?: string | null;\r\n\r\n constructor(data?: IHHCodice) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.hhServizioID = _data[\"hhServizioID\"] !== undefined ? _data[\"hhServizioID\"] : null;\r\n this.nomeTipologia = _data[\"nomeTipologia\"] !== undefined ? _data[\"nomeTipologia\"] : null;\r\n this.codiceTipologia = _data[\"codiceTipologia\"] !== undefined ? _data[\"codiceTipologia\"] : null;\r\n this.servizioTipologiaNaarID = _data[\"servizioTipologiaNaarID\"] !== undefined ? _data[\"servizioTipologiaNaarID\"] : null;\r\n this.tipoTipologia = _data[\"tipoTipologia\"] !== undefined ? _data[\"tipoTipologia\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.codiceTrattamentoFornitore = _data[\"codiceTrattamentoFornitore\"] !== undefined ? _data[\"codiceTrattamentoFornitore\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.nonRimborsabile = _data[\"nonRimborsabile\"] !== undefined ? _data[\"nonRimborsabile\"] : null;\r\n this.pagaSubito = _data[\"pagaSubito\"] !== undefined ? _data[\"pagaSubito\"] : null;\r\n this.customData = _data[\"customData\"] !== undefined ? _data[\"customData\"] : null;\r\n this.servizioRegolaVenditaID = _data[\"servizioRegolaVenditaID\"] !== undefined ? _data[\"servizioRegolaVenditaID\"] : null;\r\n this.descrizioneID = _data[\"descrizioneID\"] !== undefined ? _data[\"descrizioneID\"] : null;\r\n this.hashCodeID = _data[\"hashCodeID\"] !== undefined ? _data[\"hashCodeID\"] : null;\r\n this.servizio = _data[\"servizio\"] ? HHServizio.fromJS(_data[\"servizio\"]) : null;\r\n this.bedsID = _data[\"bedsID\"] !== undefined ? _data[\"bedsID\"] : null;\r\n this.mealID = _data[\"mealID\"] !== undefined ? _data[\"mealID\"] : null;\r\n this.hashCode = _data[\"hashCode\"] !== undefined ? _data[\"hashCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHCodice {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHCodice();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"hhServizioID\"] = this.hhServizioID !== undefined ? this.hhServizioID : null;\r\n data[\"nomeTipologia\"] = this.nomeTipologia !== undefined ? this.nomeTipologia : null;\r\n data[\"codiceTipologia\"] = this.codiceTipologia !== undefined ? this.codiceTipologia : null;\r\n data[\"servizioTipologiaNaarID\"] = this.servizioTipologiaNaarID !== undefined ? this.servizioTipologiaNaarID : null;\r\n data[\"tipoTipologia\"] = this.tipoTipologia !== undefined ? this.tipoTipologia : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"codiceTrattamentoFornitore\"] = this.codiceTrattamentoFornitore !== undefined ? this.codiceTrattamentoFornitore : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"nonRimborsabile\"] = this.nonRimborsabile !== undefined ? this.nonRimborsabile : null;\r\n data[\"pagaSubito\"] = this.pagaSubito !== undefined ? this.pagaSubito : null;\r\n data[\"customData\"] = this.customData !== undefined ? this.customData : null;\r\n data[\"servizioRegolaVenditaID\"] = this.servizioRegolaVenditaID !== undefined ? this.servizioRegolaVenditaID : null;\r\n data[\"descrizioneID\"] = this.descrizioneID !== undefined ? this.descrizioneID : null;\r\n data[\"hashCodeID\"] = this.hashCodeID !== undefined ? this.hashCodeID : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"bedsID\"] = this.bedsID !== undefined ? this.bedsID : null;\r\n data[\"mealID\"] = this.mealID !== undefined ? this.mealID : null;\r\n data[\"hashCode\"] = this.hashCode !== undefined ? this.hashCode : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHCodice {\r\n id?: number;\r\n hhServizioID?: number | null;\r\n nomeTipologia?: string | null;\r\n codiceTipologia?: string | null;\r\n servizioTipologiaNaarID?: number | null;\r\n tipoTipologia?: ETipoTipologiaHH;\r\n ultimoAggiornamento?: string | null;\r\n codiceTrattamentoFornitore?: string | null;\r\n trattamentoID?: number | null;\r\n nonRimborsabile?: boolean | null;\r\n pagaSubito?: boolean;\r\n customData?: string | null;\r\n servizioRegolaVenditaID?: number | null;\r\n descrizioneID?: number | null;\r\n hashCodeID?: number | null;\r\n servizio?: HHServizio | null;\r\n bedsID?: number | null;\r\n mealID?: number | null;\r\n hashCode?: string | null;\r\n}\r\n\r\nexport enum ETipoTipologiaHH {\r\n Camera = \"Camera\",\r\n Supplemento = \"Supplemento\",\r\n Pasto = \"Pasto\",\r\n}\r\n\r\nexport class HHServizio implements IHHServizio {\r\n id?: number;\r\n fornitore?: EFornitore;\r\n servizioNaarID?: number | null;\r\n luogoFornitoreID?: number;\r\n nomeServizio?: string | null;\r\n codiceServizio!: string;\r\n ultimoAggiornamento?: string | null;\r\n customData?: string | null;\r\n tipo?: ETipoServizio;\r\n daConfermare?: boolean;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n giataID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n rating?: number | null;\r\n numeroRecensioni?: number | null;\r\n punteggioRecensioni?: string | null;\r\n accordoID?: number | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IHHServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n this.luogoFornitoreID = _data[\"luogoFornitoreID\"] !== undefined ? _data[\"luogoFornitoreID\"] : null;\r\n this.nomeServizio = _data[\"nomeServizio\"] !== undefined ? _data[\"nomeServizio\"] : null;\r\n this.codiceServizio = _data[\"codiceServizio\"] !== undefined ? _data[\"codiceServizio\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.customData = _data[\"customData\"] !== undefined ? _data[\"customData\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.daConfermare = _data[\"daConfermare\"] !== undefined ? _data[\"daConfermare\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n this.rating = _data[\"rating\"] !== undefined ? _data[\"rating\"] : null;\r\n this.numeroRecensioni = _data[\"numeroRecensioni\"] !== undefined ? _data[\"numeroRecensioni\"] : null;\r\n this.punteggioRecensioni = _data[\"punteggioRecensioni\"] !== undefined ? _data[\"punteggioRecensioni\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n data[\"luogoFornitoreID\"] = this.luogoFornitoreID !== undefined ? this.luogoFornitoreID : null;\r\n data[\"nomeServizio\"] = this.nomeServizio !== undefined ? this.nomeServizio : null;\r\n data[\"codiceServizio\"] = this.codiceServizio !== undefined ? this.codiceServizio : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"customData\"] = this.customData !== undefined ? this.customData : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"daConfermare\"] = this.daConfermare !== undefined ? this.daConfermare : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n data[\"rating\"] = this.rating !== undefined ? this.rating : null;\r\n data[\"numeroRecensioni\"] = this.numeroRecensioni !== undefined ? this.numeroRecensioni : null;\r\n data[\"punteggioRecensioni\"] = this.punteggioRecensioni !== undefined ? this.punteggioRecensioni : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHServizio {\r\n id?: number;\r\n fornitore?: EFornitore;\r\n servizioNaarID?: number | null;\r\n luogoFornitoreID?: number;\r\n nomeServizio?: string | null;\r\n codiceServizio: string;\r\n ultimoAggiornamento?: string | null;\r\n customData?: string | null;\r\n tipo?: ETipoServizio;\r\n daConfermare?: boolean;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n giataID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n rating?: number | null;\r\n numeroRecensioni?: number | null;\r\n punteggioRecensioni?: string | null;\r\n accordoID?: number | null;\r\n deleted?: string | null;\r\n}\r\n\r\nexport class HHLuogo implements IHHLuogo {\r\n id?: number;\r\n codiceLuogo!: string;\r\n fornitoreID?: number;\r\n luogoNaarID?: number | null;\r\n accordoID?: number | null;\r\n nome!: string;\r\n codicePaese?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n prioritaImmagini?: number | null;\r\n prioritaArticoli?: number | null;\r\n prioritaInfo?: number | null;\r\n disabilitato?: boolean;\r\n tipoLocation?: EH2HTipoLocation;\r\n tipoLuogo?: EHHTipoLuogo;\r\n priorita?: number;\r\n parentID?: number | null;\r\n rating?: number | null;\r\n customData?: string | null;\r\n deleted?: string | null;\r\n\r\n constructor(data?: IHHLuogo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codiceLuogo = _data[\"codiceLuogo\"] !== undefined ? _data[\"codiceLuogo\"] : null;\r\n this.fornitoreID = _data[\"fornitoreID\"] !== undefined ? _data[\"fornitoreID\"] : null;\r\n this.luogoNaarID = _data[\"luogoNaarID\"] !== undefined ? _data[\"luogoNaarID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codicePaese = _data[\"codicePaese\"] !== undefined ? _data[\"codicePaese\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.prioritaImmagini = _data[\"prioritaImmagini\"] !== undefined ? _data[\"prioritaImmagini\"] : null;\r\n this.prioritaArticoli = _data[\"prioritaArticoli\"] !== undefined ? _data[\"prioritaArticoli\"] : null;\r\n this.prioritaInfo = _data[\"prioritaInfo\"] !== undefined ? _data[\"prioritaInfo\"] : null;\r\n this.disabilitato = _data[\"disabilitato\"] !== undefined ? _data[\"disabilitato\"] : null;\r\n this.tipoLocation = _data[\"tipoLocation\"] !== undefined ? _data[\"tipoLocation\"] : null;\r\n this.tipoLuogo = _data[\"tipoLuogo\"] !== undefined ? _data[\"tipoLuogo\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.parentID = _data[\"parentID\"] !== undefined ? _data[\"parentID\"] : null;\r\n this.rating = _data[\"rating\"] !== undefined ? _data[\"rating\"] : null;\r\n this.customData = _data[\"customData\"] !== undefined ? _data[\"customData\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHLuogo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHLuogo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codiceLuogo\"] = this.codiceLuogo !== undefined ? this.codiceLuogo : null;\r\n data[\"fornitoreID\"] = this.fornitoreID !== undefined ? this.fornitoreID : null;\r\n data[\"luogoNaarID\"] = this.luogoNaarID !== undefined ? this.luogoNaarID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codicePaese\"] = this.codicePaese !== undefined ? this.codicePaese : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"prioritaImmagini\"] = this.prioritaImmagini !== undefined ? this.prioritaImmagini : null;\r\n data[\"prioritaArticoli\"] = this.prioritaArticoli !== undefined ? this.prioritaArticoli : null;\r\n data[\"prioritaInfo\"] = this.prioritaInfo !== undefined ? this.prioritaInfo : null;\r\n data[\"disabilitato\"] = this.disabilitato !== undefined ? this.disabilitato : null;\r\n data[\"tipoLocation\"] = this.tipoLocation !== undefined ? this.tipoLocation : null;\r\n data[\"tipoLuogo\"] = this.tipoLuogo !== undefined ? this.tipoLuogo : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"parentID\"] = this.parentID !== undefined ? this.parentID : null;\r\n data[\"rating\"] = this.rating !== undefined ? this.rating : null;\r\n data[\"customData\"] = this.customData !== undefined ? this.customData : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHLuogo {\r\n id?: number;\r\n codiceLuogo: string;\r\n fornitoreID?: number;\r\n luogoNaarID?: number | null;\r\n accordoID?: number | null;\r\n nome: string;\r\n codicePaese?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n prioritaImmagini?: number | null;\r\n prioritaArticoli?: number | null;\r\n prioritaInfo?: number | null;\r\n disabilitato?: boolean;\r\n tipoLocation?: EH2HTipoLocation;\r\n tipoLuogo?: EHHTipoLuogo;\r\n priorita?: number;\r\n parentID?: number | null;\r\n rating?: number | null;\r\n customData?: string | null;\r\n deleted?: string | null;\r\n}\r\n\r\nexport enum EH2HTipoLocation {\r\n Indefinita = \"Indefinita\",\r\n Aeroporto = \"Aeroporto\",\r\n}\r\n\r\nexport enum EHHTipoLuogo {\r\n Continente = \"Continente\",\r\n Zona = \"Zona\",\r\n Paese = \"Paese\",\r\n Citta = \"Citta\",\r\n Quartiere = \"Quartiere\",\r\n Regione = \"Regione\",\r\n Stato = \"Stato\",\r\n PuntoDiInteresse = \"PuntoDiInteresse\",\r\n}\r\n\r\nexport class HHServizioAggregato implements IHHServizioAggregato {\r\n id?: number;\r\n luogoID?: number;\r\n nome!: string;\r\n indirizzo?: string | null;\r\n cap?: string | null;\r\n telefono?: string | null;\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n zoom?: number | null;\r\n tipo?: ETipoServizio;\r\n ultimoAggiornamento?: string;\r\n servizioID?: number | null;\r\n disabilitato?: boolean;\r\n giataID?: number | null;\r\n thumbUrl?: string | null;\r\n email?: string | null;\r\n website?: string | null;\r\n stelle?: number | null;\r\n giataUpdate?: string | null;\r\n codice?: string | null;\r\n\r\n constructor(data?: IHHServizioAggregato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.latitude = _data[\"latitude\"] !== undefined ? _data[\"latitude\"] : null;\r\n this.longitude = _data[\"longitude\"] !== undefined ? _data[\"longitude\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.disabilitato = _data[\"disabilitato\"] !== undefined ? _data[\"disabilitato\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.thumbUrl = _data[\"thumbUrl\"] !== undefined ? _data[\"thumbUrl\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.website = _data[\"website\"] !== undefined ? _data[\"website\"] : null;\r\n this.stelle = _data[\"stelle\"] !== undefined ? _data[\"stelle\"] : null;\r\n this.giataUpdate = _data[\"giataUpdate\"] !== undefined ? _data[\"giataUpdate\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHServizioAggregato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHServizioAggregato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"latitude\"] = this.latitude !== undefined ? this.latitude : null;\r\n data[\"longitude\"] = this.longitude !== undefined ? this.longitude : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"disabilitato\"] = this.disabilitato !== undefined ? this.disabilitato : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"thumbUrl\"] = this.thumbUrl !== undefined ? this.thumbUrl : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"website\"] = this.website !== undefined ? this.website : null;\r\n data[\"stelle\"] = this.stelle !== undefined ? this.stelle : null;\r\n data[\"giataUpdate\"] = this.giataUpdate !== undefined ? this.giataUpdate : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHServizioAggregato {\r\n id?: number;\r\n luogoID?: number;\r\n nome: string;\r\n indirizzo?: string | null;\r\n cap?: string | null;\r\n telefono?: string | null;\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n zoom?: number | null;\r\n tipo?: ETipoServizio;\r\n ultimoAggiornamento?: string;\r\n servizioID?: number | null;\r\n disabilitato?: boolean;\r\n giataID?: number | null;\r\n thumbUrl?: string | null;\r\n email?: string | null;\r\n website?: string | null;\r\n stelle?: number | null;\r\n giataUpdate?: string | null;\r\n codice?: string | null;\r\n}\r\n\r\nexport class HHAttributoHashcodeDescription implements IHHAttributoHashcodeDescription {\r\n lingua?: ELingua;\r\n room?: string | null;\r\n class?: string | null;\r\n view?: string | null;\r\n feature?: string | null;\r\n meals?: string | null;\r\n beds?: string | null;\r\n fullDescription?: string | null;\r\n\r\n constructor(data?: IHHAttributoHashcodeDescription) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.room = _data[\"room\"] !== undefined ? _data[\"room\"] : null;\r\n this.class = _data[\"class\"] !== undefined ? _data[\"class\"] : null;\r\n this.view = _data[\"view\"] !== undefined ? _data[\"view\"] : null;\r\n this.feature = _data[\"feature\"] !== undefined ? _data[\"feature\"] : null;\r\n this.meals = _data[\"meals\"] !== undefined ? _data[\"meals\"] : null;\r\n this.beds = _data[\"beds\"] !== undefined ? _data[\"beds\"] : null;\r\n this.fullDescription = _data[\"fullDescription\"] !== undefined ? _data[\"fullDescription\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHAttributoHashcodeDescription {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHAttributoHashcodeDescription();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"room\"] = this.room !== undefined ? this.room : null;\r\n data[\"class\"] = this.class !== undefined ? this.class : null;\r\n data[\"view\"] = this.view !== undefined ? this.view : null;\r\n data[\"feature\"] = this.feature !== undefined ? this.feature : null;\r\n data[\"meals\"] = this.meals !== undefined ? this.meals : null;\r\n data[\"beds\"] = this.beds !== undefined ? this.beds : null;\r\n data[\"fullDescription\"] = this.fullDescription !== undefined ? this.fullDescription : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHAttributoHashcodeDescription {\r\n lingua?: ELingua;\r\n room?: string | null;\r\n class?: string | null;\r\n view?: string | null;\r\n feature?: string | null;\r\n meals?: string | null;\r\n beds?: string | null;\r\n fullDescription?: string | null;\r\n}\r\n\r\nexport class HHAttributoHashcode implements IHHAttributoHashcode {\r\n id?: number;\r\n hashcode!: string;\r\n roomID?: number | null;\r\n classID?: number | null;\r\n viewID?: number | null;\r\n bedsID?: number | null;\r\n featuresID?: number | null;\r\n mealsID?: number | null;\r\n\r\n constructor(data?: IHHAttributoHashcode) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.hashcode = _data[\"hashcode\"] !== undefined ? _data[\"hashcode\"] : null;\r\n this.roomID = _data[\"roomID\"] !== undefined ? _data[\"roomID\"] : null;\r\n this.classID = _data[\"classID\"] !== undefined ? _data[\"classID\"] : null;\r\n this.viewID = _data[\"viewID\"] !== undefined ? _data[\"viewID\"] : null;\r\n this.bedsID = _data[\"bedsID\"] !== undefined ? _data[\"bedsID\"] : null;\r\n this.featuresID = _data[\"featuresID\"] !== undefined ? _data[\"featuresID\"] : null;\r\n this.mealsID = _data[\"mealsID\"] !== undefined ? _data[\"mealsID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHAttributoHashcode {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHAttributoHashcode();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"hashcode\"] = this.hashcode !== undefined ? this.hashcode : null;\r\n data[\"roomID\"] = this.roomID !== undefined ? this.roomID : null;\r\n data[\"classID\"] = this.classID !== undefined ? this.classID : null;\r\n data[\"viewID\"] = this.viewID !== undefined ? this.viewID : null;\r\n data[\"bedsID\"] = this.bedsID !== undefined ? this.bedsID : null;\r\n data[\"featuresID\"] = this.featuresID !== undefined ? this.featuresID : null;\r\n data[\"mealsID\"] = this.mealsID !== undefined ? this.mealsID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHAttributoHashcode {\r\n id?: number;\r\n hashcode: string;\r\n roomID?: number | null;\r\n classID?: number | null;\r\n viewID?: number | null;\r\n bedsID?: number | null;\r\n featuresID?: number | null;\r\n mealsID?: number | null;\r\n}\r\n\r\nexport class OffertaDatoDettaglio implements IOffertaDatoDettaglio {\r\n datoDettaglioID?: number;\r\n offertaDatoID?: number;\r\n associazioneID?: number;\r\n prezzo?: number;\r\n costo?: number;\r\n descrizione?: string | null;\r\n tipoAzione?: ETipoAzioneDettaglio;\r\n\r\n constructor(data?: IOffertaDatoDettaglio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.datoDettaglioID = _data[\"datoDettaglioID\"] !== undefined ? _data[\"datoDettaglioID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.associazioneID = _data[\"associazioneID\"] !== undefined ? _data[\"associazioneID\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.tipoAzione = _data[\"tipoAzione\"] !== undefined ? _data[\"tipoAzione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaDatoDettaglio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaDatoDettaglio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"datoDettaglioID\"] = this.datoDettaglioID !== undefined ? this.datoDettaglioID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"associazioneID\"] = this.associazioneID !== undefined ? this.associazioneID : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"tipoAzione\"] = this.tipoAzione !== undefined ? this.tipoAzione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaDatoDettaglio {\r\n datoDettaglioID?: number;\r\n offertaDatoID?: number;\r\n associazioneID?: number;\r\n prezzo?: number;\r\n costo?: number;\r\n descrizione?: string | null;\r\n tipoAzione?: ETipoAzioneDettaglio;\r\n}\r\n\r\nexport enum ETipoAzioneDettaglio {\r\n NessunCambiamento = \"NessunCambiamento\",\r\n Allerta = \"Allerta\",\r\n BloccoVendita = \"BloccoVendita\",\r\n RiduzioneApplicata = \"RiduzioneApplicata\",\r\n OffertaApplicata = \"OffertaApplicata\",\r\n Nascosto = \"Nascosto\",\r\n SupplementoApplicato = \"SupplementoApplicato\",\r\n VisualizzaInformazione = \"VisualizzaInformazione\",\r\n}\r\n\r\nexport abstract class DatiRiga implements IDatiRiga {\r\n offertaDatoID?: number;\r\n\r\n constructor(data?: IDatiRiga) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatiRiga {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'DatiRiga' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatiRiga {\r\n offertaDatoID?: number;\r\n}\r\n\r\nexport class DatiDocumentoRiga extends DatiRiga implements IDatiDocumentoRiga {\r\n descrizioneProgrammaDiViaggio?: string | null;\r\n inizio?: string | null;\r\n fine?: string | null;\r\n luogoInizioID?: number | null;\r\n puntoIniziale?: string | null;\r\n contattoPickupID?: number | null;\r\n luogoFineID?: number | null;\r\n puntoFinale?: string | null;\r\n contattoDropoffID?: number | null;\r\n\r\n constructor(data?: IDatiDocumentoRiga) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.descrizioneProgrammaDiViaggio = _data[\"descrizioneProgrammaDiViaggio\"] !== undefined ? _data[\"descrizioneProgrammaDiViaggio\"] : null;\r\n this.inizio = _data[\"inizio\"] !== undefined ? _data[\"inizio\"] : null;\r\n this.fine = _data[\"fine\"] !== undefined ? _data[\"fine\"] : null;\r\n this.luogoInizioID = _data[\"luogoInizioID\"] !== undefined ? _data[\"luogoInizioID\"] : null;\r\n this.puntoIniziale = _data[\"puntoIniziale\"] !== undefined ? _data[\"puntoIniziale\"] : null;\r\n this.contattoPickupID = _data[\"contattoPickupID\"] !== undefined ? _data[\"contattoPickupID\"] : null;\r\n this.luogoFineID = _data[\"luogoFineID\"] !== undefined ? _data[\"luogoFineID\"] : null;\r\n this.puntoFinale = _data[\"puntoFinale\"] !== undefined ? _data[\"puntoFinale\"] : null;\r\n this.contattoDropoffID = _data[\"contattoDropoffID\"] !== undefined ? _data[\"contattoDropoffID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatiDocumentoRiga {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatiDocumentoRiga();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"descrizioneProgrammaDiViaggio\"] = this.descrizioneProgrammaDiViaggio !== undefined ? this.descrizioneProgrammaDiViaggio : null;\r\n data[\"inizio\"] = this.inizio !== undefined ? this.inizio : null;\r\n data[\"fine\"] = this.fine !== undefined ? this.fine : null;\r\n data[\"luogoInizioID\"] = this.luogoInizioID !== undefined ? this.luogoInizioID : null;\r\n data[\"puntoIniziale\"] = this.puntoIniziale !== undefined ? this.puntoIniziale : null;\r\n data[\"contattoPickupID\"] = this.contattoPickupID !== undefined ? this.contattoPickupID : null;\r\n data[\"luogoFineID\"] = this.luogoFineID !== undefined ? this.luogoFineID : null;\r\n data[\"puntoFinale\"] = this.puntoFinale !== undefined ? this.puntoFinale : null;\r\n data[\"contattoDropoffID\"] = this.contattoDropoffID !== undefined ? this.contattoDropoffID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatiDocumentoRiga extends IDatiRiga {\r\n descrizioneProgrammaDiViaggio?: string | null;\r\n inizio?: string | null;\r\n fine?: string | null;\r\n luogoInizioID?: number | null;\r\n puntoIniziale?: string | null;\r\n contattoPickupID?: number | null;\r\n luogoFineID?: number | null;\r\n puntoFinale?: string | null;\r\n contattoDropoffID?: number | null;\r\n}\r\n\r\nexport class DatiConfermaRiga extends DatiRiga implements IDatiConfermaRiga {\r\n status?: EStatusServizio | null;\r\n bookingReference?: string | null;\r\n\r\n constructor(data?: IDatiConfermaRiga) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.bookingReference = _data[\"bookingReference\"] !== undefined ? _data[\"bookingReference\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatiConfermaRiga {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatiConfermaRiga();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"bookingReference\"] = this.bookingReference !== undefined ? this.bookingReference : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatiConfermaRiga extends IDatiRiga {\r\n status?: EStatusServizio | null;\r\n bookingReference?: string | null;\r\n}\r\n\r\nexport class OffertaNota implements IOffertaNota {\r\n offertaNotaID?: number;\r\n offertaID?: number;\r\n offertaDatoID?: number | null;\r\n accordoID?: number | null;\r\n testo!: string;\r\n data?: string;\r\n utenteImpiegatoID?: number | null;\r\n utentePresaInCaricoID?: number | null;\r\n fatto?: boolean;\r\n pubblica?: boolean;\r\n voucher?: boolean;\r\n kanban?: boolean;\r\n sistema?: boolean;\r\n tipo?: ETipoNota | null;\r\n\r\n constructor(data?: IOffertaNota) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaNotaID = _data[\"offertaNotaID\"] !== undefined ? _data[\"offertaNotaID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.utenteImpiegatoID = _data[\"utenteImpiegatoID\"] !== undefined ? _data[\"utenteImpiegatoID\"] : null;\r\n this.utentePresaInCaricoID = _data[\"utentePresaInCaricoID\"] !== undefined ? _data[\"utentePresaInCaricoID\"] : null;\r\n this.fatto = _data[\"fatto\"] !== undefined ? _data[\"fatto\"] : null;\r\n this.pubblica = _data[\"pubblica\"] !== undefined ? _data[\"pubblica\"] : null;\r\n this.voucher = _data[\"voucher\"] !== undefined ? _data[\"voucher\"] : null;\r\n this.kanban = _data[\"kanban\"] !== undefined ? _data[\"kanban\"] : null;\r\n this.sistema = _data[\"sistema\"] !== undefined ? _data[\"sistema\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaNota {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaNota();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaNotaID\"] = this.offertaNotaID !== undefined ? this.offertaNotaID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"utenteImpiegatoID\"] = this.utenteImpiegatoID !== undefined ? this.utenteImpiegatoID : null;\r\n data[\"utentePresaInCaricoID\"] = this.utentePresaInCaricoID !== undefined ? this.utentePresaInCaricoID : null;\r\n data[\"fatto\"] = this.fatto !== undefined ? this.fatto : null;\r\n data[\"pubblica\"] = this.pubblica !== undefined ? this.pubblica : null;\r\n data[\"voucher\"] = this.voucher !== undefined ? this.voucher : null;\r\n data[\"kanban\"] = this.kanban !== undefined ? this.kanban : null;\r\n data[\"sistema\"] = this.sistema !== undefined ? this.sistema : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaNota {\r\n offertaNotaID?: number;\r\n offertaID?: number;\r\n offertaDatoID?: number | null;\r\n accordoID?: number | null;\r\n testo: string;\r\n data?: string;\r\n utenteImpiegatoID?: number | null;\r\n utentePresaInCaricoID?: number | null;\r\n fatto?: boolean;\r\n pubblica?: boolean;\r\n voucher?: boolean;\r\n kanban?: boolean;\r\n sistema?: boolean;\r\n tipo?: ETipoNota | null;\r\n}\r\n\r\nexport enum ETipoNota {\r\n Interna = \"Interna\",\r\n PreventivoSingola = \"PreventivoSingola\",\r\n PreventivoMultipla = \"PreventivoMultipla\",\r\n Agenzia = \"Agenzia\",\r\n RispostaAgenzia = \"RispostaAgenzia\",\r\n Assistenza = \"Assistenza\",\r\n Passeggero = \"Passeggero\",\r\n Operatore = \"Operatore\",\r\n}\r\n\r\nexport class TripNote implements ITripNote {\r\n nota?: OffertaNota;\r\n utente?: string | null;\r\n utentePresaInCarico?: string | null;\r\n\r\n constructor(data?: ITripNote) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nota = _data[\"nota\"] ? OffertaNota.fromJS(_data[\"nota\"]) : null;\r\n this.utente = _data[\"utente\"] !== undefined ? _data[\"utente\"] : null;\r\n this.utentePresaInCarico = _data[\"utentePresaInCarico\"] !== undefined ? _data[\"utentePresaInCarico\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripNote {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripNote();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nota\"] = this.nota ? this.nota.toJSON() : null;\r\n data[\"utente\"] = this.utente !== undefined ? this.utente : null;\r\n data[\"utentePresaInCarico\"] = this.utentePresaInCarico !== undefined ? this.utentePresaInCarico : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripNote {\r\n nota?: OffertaNota;\r\n utente?: string | null;\r\n utentePresaInCarico?: string | null;\r\n}\r\n\r\nexport class AnticipoFornitore implements IAnticipoFornitore {\r\n accordoID?: number;\r\n importo?: number;\r\n valutaID?: number;\r\n codiceValuta?: string;\r\n data?: string | null;\r\n\r\n constructor(data?: IAnticipoFornitore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AnticipoFornitore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AnticipoFornitore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAnticipoFornitore {\r\n accordoID?: number;\r\n importo?: number;\r\n valutaID?: number;\r\n codiceValuta?: string;\r\n data?: string | null;\r\n}\r\n\r\nexport class InvioAssicurazioneFiloDiretto implements IInvioAssicurazioneFiloDiretto {\r\n id?: number;\r\n clienteID?: number;\r\n offertaDatoID?: number;\r\n dataInvio?: string;\r\n nome_Polizza?: string | null;\r\n cognome?: string | null;\r\n nome?: string | null;\r\n data_Prenotazione?: string | null;\r\n data_Partenza?: string | null;\r\n data_Rientro?: string | null;\r\n importo_Viaggio?: string | null;\r\n destinazione?: string | null;\r\n codice_Area?: string | null;\r\n bookingID?: string | null;\r\n tipo_Operazione?: string | null;\r\n login?: string | null;\r\n polizza?: string | null;\r\n capo_Nucleo?: string | null;\r\n tipo_Assicurato?: string | null;\r\n impremioAss?: string | null;\r\n codice_Fiscale?: string | null;\r\n\r\n constructor(data?: IInvioAssicurazioneFiloDiretto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.dataInvio = _data[\"dataInvio\"] !== undefined ? _data[\"dataInvio\"] : null;\r\n this.nome_Polizza = _data[\"nome_Polizza\"] !== undefined ? _data[\"nome_Polizza\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.data_Prenotazione = _data[\"data_Prenotazione\"] !== undefined ? _data[\"data_Prenotazione\"] : null;\r\n this.data_Partenza = _data[\"data_Partenza\"] !== undefined ? _data[\"data_Partenza\"] : null;\r\n this.data_Rientro = _data[\"data_Rientro\"] !== undefined ? _data[\"data_Rientro\"] : null;\r\n this.importo_Viaggio = _data[\"importo_Viaggio\"] !== undefined ? _data[\"importo_Viaggio\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.codice_Area = _data[\"codice_Area\"] !== undefined ? _data[\"codice_Area\"] : null;\r\n this.bookingID = _data[\"bookingID\"] !== undefined ? _data[\"bookingID\"] : null;\r\n this.tipo_Operazione = _data[\"tipo_Operazione\"] !== undefined ? _data[\"tipo_Operazione\"] : null;\r\n this.login = _data[\"login\"] !== undefined ? _data[\"login\"] : null;\r\n this.polizza = _data[\"polizza\"] !== undefined ? _data[\"polizza\"] : null;\r\n this.capo_Nucleo = _data[\"capo_Nucleo\"] !== undefined ? _data[\"capo_Nucleo\"] : null;\r\n this.tipo_Assicurato = _data[\"tipo_Assicurato\"] !== undefined ? _data[\"tipo_Assicurato\"] : null;\r\n this.impremioAss = _data[\"impremioAss\"] !== undefined ? _data[\"impremioAss\"] : null;\r\n this.codice_Fiscale = _data[\"codice_Fiscale\"] !== undefined ? _data[\"codice_Fiscale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvioAssicurazioneFiloDiretto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvioAssicurazioneFiloDiretto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"dataInvio\"] = this.dataInvio !== undefined ? this.dataInvio : null;\r\n data[\"nome_Polizza\"] = this.nome_Polizza !== undefined ? this.nome_Polizza : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"data_Prenotazione\"] = this.data_Prenotazione !== undefined ? this.data_Prenotazione : null;\r\n data[\"data_Partenza\"] = this.data_Partenza !== undefined ? this.data_Partenza : null;\r\n data[\"data_Rientro\"] = this.data_Rientro !== undefined ? this.data_Rientro : null;\r\n data[\"importo_Viaggio\"] = this.importo_Viaggio !== undefined ? this.importo_Viaggio : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"codice_Area\"] = this.codice_Area !== undefined ? this.codice_Area : null;\r\n data[\"bookingID\"] = this.bookingID !== undefined ? this.bookingID : null;\r\n data[\"tipo_Operazione\"] = this.tipo_Operazione !== undefined ? this.tipo_Operazione : null;\r\n data[\"login\"] = this.login !== undefined ? this.login : null;\r\n data[\"polizza\"] = this.polizza !== undefined ? this.polizza : null;\r\n data[\"capo_Nucleo\"] = this.capo_Nucleo !== undefined ? this.capo_Nucleo : null;\r\n data[\"tipo_Assicurato\"] = this.tipo_Assicurato !== undefined ? this.tipo_Assicurato : null;\r\n data[\"impremioAss\"] = this.impremioAss !== undefined ? this.impremioAss : null;\r\n data[\"codice_Fiscale\"] = this.codice_Fiscale !== undefined ? this.codice_Fiscale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvioAssicurazioneFiloDiretto {\r\n id?: number;\r\n clienteID?: number;\r\n offertaDatoID?: number;\r\n dataInvio?: string;\r\n nome_Polizza?: string | null;\r\n cognome?: string | null;\r\n nome?: string | null;\r\n data_Prenotazione?: string | null;\r\n data_Partenza?: string | null;\r\n data_Rientro?: string | null;\r\n importo_Viaggio?: string | null;\r\n destinazione?: string | null;\r\n codice_Area?: string | null;\r\n bookingID?: string | null;\r\n tipo_Operazione?: string | null;\r\n login?: string | null;\r\n polizza?: string | null;\r\n capo_Nucleo?: string | null;\r\n tipo_Assicurato?: string | null;\r\n impremioAss?: string | null;\r\n codice_Fiscale?: string | null;\r\n}\r\n\r\nexport class InvioAssicurazione implements IInvioAssicurazione {\r\n id?: number;\r\n offertaID!: number;\r\n clienteID!: number;\r\n offertaDatoID!: number;\r\n servizioID!: number;\r\n dataInvio!: string;\r\n idProdottoEA!: number;\r\n nomeProdottoEA?: string | null;\r\n cognome?: string | null;\r\n nome?: string | null;\r\n tipoAssicurato?: string | null;\r\n dataPrenotazione?: string | null;\r\n dataPartenza?: string | null;\r\n dataRientro?: string | null;\r\n importoViaggio?: string | null;\r\n destinazione?: string | null;\r\n codiceArea?: string | null;\r\n couponID?: string | null;\r\n tipoOperazione?: string | null;\r\n importoPremioAss?: string | null;\r\n codiceFiscale?: string | null;\r\n\r\n constructor(data?: IInvioAssicurazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.dataInvio = _data[\"dataInvio\"] !== undefined ? _data[\"dataInvio\"] : null;\r\n this.idProdottoEA = _data[\"idProdottoEA\"] !== undefined ? _data[\"idProdottoEA\"] : null;\r\n this.nomeProdottoEA = _data[\"nomeProdottoEA\"] !== undefined ? _data[\"nomeProdottoEA\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipoAssicurato = _data[\"tipoAssicurato\"] !== undefined ? _data[\"tipoAssicurato\"] : null;\r\n this.dataPrenotazione = _data[\"dataPrenotazione\"] !== undefined ? _data[\"dataPrenotazione\"] : null;\r\n this.dataPartenza = _data[\"dataPartenza\"] !== undefined ? _data[\"dataPartenza\"] : null;\r\n this.dataRientro = _data[\"dataRientro\"] !== undefined ? _data[\"dataRientro\"] : null;\r\n this.importoViaggio = _data[\"importoViaggio\"] !== undefined ? _data[\"importoViaggio\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.codiceArea = _data[\"codiceArea\"] !== undefined ? _data[\"codiceArea\"] : null;\r\n this.couponID = _data[\"couponID\"] !== undefined ? _data[\"couponID\"] : null;\r\n this.tipoOperazione = _data[\"tipoOperazione\"] !== undefined ? _data[\"tipoOperazione\"] : null;\r\n this.importoPremioAss = _data[\"importoPremioAss\"] !== undefined ? _data[\"importoPremioAss\"] : null;\r\n this.codiceFiscale = _data[\"codiceFiscale\"] !== undefined ? _data[\"codiceFiscale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvioAssicurazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvioAssicurazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"dataInvio\"] = this.dataInvio !== undefined ? this.dataInvio : null;\r\n data[\"idProdottoEA\"] = this.idProdottoEA !== undefined ? this.idProdottoEA : null;\r\n data[\"nomeProdottoEA\"] = this.nomeProdottoEA !== undefined ? this.nomeProdottoEA : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipoAssicurato\"] = this.tipoAssicurato !== undefined ? this.tipoAssicurato : null;\r\n data[\"dataPrenotazione\"] = this.dataPrenotazione !== undefined ? this.dataPrenotazione : null;\r\n data[\"dataPartenza\"] = this.dataPartenza !== undefined ? this.dataPartenza : null;\r\n data[\"dataRientro\"] = this.dataRientro !== undefined ? this.dataRientro : null;\r\n data[\"importoViaggio\"] = this.importoViaggio !== undefined ? this.importoViaggio : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"codiceArea\"] = this.codiceArea !== undefined ? this.codiceArea : null;\r\n data[\"couponID\"] = this.couponID !== undefined ? this.couponID : null;\r\n data[\"tipoOperazione\"] = this.tipoOperazione !== undefined ? this.tipoOperazione : null;\r\n data[\"importoPremioAss\"] = this.importoPremioAss !== undefined ? this.importoPremioAss : null;\r\n data[\"codiceFiscale\"] = this.codiceFiscale !== undefined ? this.codiceFiscale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvioAssicurazione {\r\n id?: number;\r\n offertaID: number;\r\n clienteID: number;\r\n offertaDatoID: number;\r\n servizioID: number;\r\n dataInvio: string;\r\n idProdottoEA: number;\r\n nomeProdottoEA?: string | null;\r\n cognome?: string | null;\r\n nome?: string | null;\r\n tipoAssicurato?: string | null;\r\n dataPrenotazione?: string | null;\r\n dataPartenza?: string | null;\r\n dataRientro?: string | null;\r\n importoViaggio?: string | null;\r\n destinazione?: string | null;\r\n codiceArea?: string | null;\r\n couponID?: string | null;\r\n tipoOperazione?: string | null;\r\n importoPremioAss?: string | null;\r\n codiceFiscale?: string | null;\r\n}\r\n\r\nexport class PenaleServizio implements IPenaleServizio {\r\n nonRimborsabile?: boolean;\r\n dataLimite?: string | null;\r\n importo?: number | null;\r\n\r\n constructor(data?: IPenaleServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nonRimborsabile = _data[\"nonRimborsabile\"] !== undefined ? _data[\"nonRimborsabile\"] : null;\r\n this.dataLimite = _data[\"dataLimite\"] !== undefined ? _data[\"dataLimite\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PenaleServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PenaleServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nonRimborsabile\"] = this.nonRimborsabile !== undefined ? this.nonRimborsabile : null;\r\n data[\"dataLimite\"] = this.dataLimite !== undefined ? this.dataLimite : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPenaleServizio {\r\n nonRimborsabile?: boolean;\r\n dataLimite?: string | null;\r\n importo?: number | null;\r\n}\r\n\r\nexport class TripServicePriceDetail implements ITripServicePriceDetail {\r\n descrizione?: string | null;\r\n costo?: number;\r\n prezzo?: number;\r\n tipo?: ETipoAzioneDettaglio;\r\n\r\n constructor(data?: ITripServicePriceDetail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripServicePriceDetail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripServicePriceDetail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripServicePriceDetail {\r\n descrizione?: string | null;\r\n costo?: number;\r\n prezzo?: number;\r\n tipo?: ETipoAzioneDettaglio;\r\n}\r\n\r\nexport enum ETestoPenaleAgenzia {\r\n Nessuno = \"Nessuno\",\r\n NotaFornitore = \"NotaFornitore\",\r\n Articolo = \"Articolo\",\r\n NotaCustom = \"NotaCustom\",\r\n DatiAggiuntivi = \"DatiAggiuntivi\",\r\n PenaleH2H = \"PenaleH2H\",\r\n}\r\n\r\nexport class TripRoom implements ITripRoom {\r\n abbinamento?: Abbinamento;\r\n clienti?: Cliente[];\r\n servizi?: TripService[];\r\n isTutti?: boolean;\r\n\r\n constructor(data?: ITripRoom) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.abbinamento = _data[\"abbinamento\"] ? Abbinamento.fromJS(_data[\"abbinamento\"]) : null;\r\n if (Array.isArray(_data[\"clienti\"])) {\r\n this.clienti = [] as any;\r\n for (let item of _data[\"clienti\"])\r\n this.clienti!.push(Cliente.fromJS(item));\r\n }\r\n else {\r\n this.clienti = null;\r\n }\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(TripService.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n this.isTutti = _data[\"isTutti\"] !== undefined ? _data[\"isTutti\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripRoom {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripRoom();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"abbinamento\"] = this.abbinamento ? this.abbinamento.toJSON() : null;\r\n if (Array.isArray(this.clienti)) {\r\n data[\"clienti\"] = [];\r\n for (let item of this.clienti)\r\n data[\"clienti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n data[\"isTutti\"] = this.isTutti !== undefined ? this.isTutti : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripRoom {\r\n abbinamento?: Abbinamento;\r\n clienti?: Cliente[];\r\n servizi?: TripService[];\r\n isTutti?: boolean;\r\n}\r\n\r\nexport class Abbinamento implements IAbbinamento {\r\n abbinamentoID?: number;\r\n abbinamentoIdPrecedente?: number | null;\r\n offertaID?: number | null;\r\n sistemazioneID?: number | null;\r\n nome?: string | null;\r\n nomiClienti?: string | null;\r\n tutti?: boolean | null;\r\n cameraDoppia?: boolean;\r\n voloID?: number | null;\r\n\r\n constructor(data?: IAbbinamento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.abbinamentoIdPrecedente = _data[\"abbinamentoIdPrecedente\"] !== undefined ? _data[\"abbinamentoIdPrecedente\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.sistemazioneID = _data[\"sistemazioneID\"] !== undefined ? _data[\"sistemazioneID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomiClienti = _data[\"nomiClienti\"] !== undefined ? _data[\"nomiClienti\"] : null;\r\n this.tutti = _data[\"tutti\"] !== undefined ? _data[\"tutti\"] : null;\r\n this.cameraDoppia = _data[\"cameraDoppia\"] !== undefined ? _data[\"cameraDoppia\"] : null;\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Abbinamento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Abbinamento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"abbinamentoIdPrecedente\"] = this.abbinamentoIdPrecedente !== undefined ? this.abbinamentoIdPrecedente : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"sistemazioneID\"] = this.sistemazioneID !== undefined ? this.sistemazioneID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomiClienti\"] = this.nomiClienti !== undefined ? this.nomiClienti : null;\r\n data[\"tutti\"] = this.tutti !== undefined ? this.tutti : null;\r\n data[\"cameraDoppia\"] = this.cameraDoppia !== undefined ? this.cameraDoppia : null;\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamento {\r\n abbinamentoID?: number;\r\n abbinamentoIdPrecedente?: number | null;\r\n offertaID?: number | null;\r\n sistemazioneID?: number | null;\r\n nome?: string | null;\r\n nomiClienti?: string | null;\r\n tutti?: boolean | null;\r\n cameraDoppia?: boolean;\r\n voloID?: number | null;\r\n}\r\n\r\nexport class WarningOfferta implements IWarningOfferta {\r\n tipo?: ETipoWarningOfferta;\r\n impedisceConferma?: boolean;\r\n oggetto?: string | null;\r\n oggettoID?: number;\r\n daData?: string | null;\r\n aData?: string | null;\r\n\r\n constructor(data?: IWarningOfferta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.impedisceConferma = _data[\"impedisceConferma\"] !== undefined ? _data[\"impedisceConferma\"] : null;\r\n this.oggetto = _data[\"oggetto\"] !== undefined ? _data[\"oggetto\"] : null;\r\n this.oggettoID = _data[\"oggettoID\"] !== undefined ? _data[\"oggettoID\"] : null;\r\n this.daData = _data[\"daData\"] !== undefined ? _data[\"daData\"] : null;\r\n this.aData = _data[\"aData\"] !== undefined ? _data[\"aData\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WarningOfferta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WarningOfferta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"impedisceConferma\"] = this.impedisceConferma !== undefined ? this.impedisceConferma : null;\r\n data[\"oggetto\"] = this.oggetto !== undefined ? this.oggetto : null;\r\n data[\"oggettoID\"] = this.oggettoID !== undefined ? this.oggettoID : null;\r\n data[\"daData\"] = this.daData !== undefined ? this.daData : null;\r\n data[\"aData\"] = this.aData !== undefined ? this.aData : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWarningOfferta {\r\n tipo?: ETipoWarningOfferta;\r\n impedisceConferma?: boolean;\r\n oggetto?: string | null;\r\n oggettoID?: number;\r\n daData?: string | null;\r\n aData?: string | null;\r\n}\r\n\r\nexport enum ETipoWarningOfferta {\r\n NessunCliente = \"NessunCliente\",\r\n NessunAbbinamento = \"NessunAbbinamento\",\r\n NessunItinerario = \"NessunItinerario\",\r\n NessunServizio = \"NessunServizio\",\r\n ItinerariSovrapposti = \"ItinerariSovrapposti\",\r\n ItinerariNonConsecutivi = \"ItinerariNonConsecutivi\",\r\n DatiClienteIncompleti = \"DatiClienteIncompleti\",\r\n CodiceFiscaleNonValido = \"CodiceFiscaleNonValido\",\r\n DataNascitaNonCoerente = \"DataNascitaNonCoerente\",\r\n CodiceFiscaleMancante = \"CodiceFiscaleMancante\",\r\n DataNascitaNonConfermata = \"DataNascitaNonConfermata\",\r\n VoloSenzaPNR = \"VoloSenzaPNR\",\r\n}\r\n\r\nexport class TripFlights implements ITripFlights {\r\n flightPlan?: TripFlightSegment[];\r\n serviziVolo?: TripFlightService[];\r\n voli?: TripFlight[] | null;\r\n\r\n constructor(data?: ITripFlights) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"flightPlan\"])) {\r\n this.flightPlan = [] as any;\r\n for (let item of _data[\"flightPlan\"])\r\n this.flightPlan!.push(TripFlightSegment.fromJS(item));\r\n }\r\n else {\r\n this.flightPlan = null;\r\n }\r\n if (Array.isArray(_data[\"serviziVolo\"])) {\r\n this.serviziVolo = [] as any;\r\n for (let item of _data[\"serviziVolo\"])\r\n this.serviziVolo!.push(TripFlightService.fromJS(item));\r\n }\r\n else {\r\n this.serviziVolo = null;\r\n }\r\n if (Array.isArray(_data[\"voli\"])) {\r\n this.voli = [] as any;\r\n for (let item of _data[\"voli\"])\r\n this.voli!.push(TripFlight.fromJS(item));\r\n }\r\n else {\r\n this.voli = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripFlights {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripFlights();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.flightPlan)) {\r\n data[\"flightPlan\"] = [];\r\n for (let item of this.flightPlan)\r\n data[\"flightPlan\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.serviziVolo)) {\r\n data[\"serviziVolo\"] = [];\r\n for (let item of this.serviziVolo)\r\n data[\"serviziVolo\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.voli)) {\r\n data[\"voli\"] = [];\r\n for (let item of this.voli)\r\n data[\"voli\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripFlights {\r\n flightPlan?: TripFlightSegment[];\r\n serviziVolo?: TripFlightService[];\r\n voli?: TripFlight[] | null;\r\n}\r\n\r\nexport class TripFlightSegment implements ITripFlightSegment {\r\n pnr?: string | null;\r\n tratta?: VoloTratta;\r\n soluzione?: string | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n compagnia?: string | null;\r\n aeroportoPartenza?: string | null;\r\n aeroportoArrivo?: string | null;\r\n codiceArea?: string | null;\r\n stato?: StatoVolo | null;\r\n isPnr?: boolean;\r\n tariffeTratteRel?: VoloRel[];\r\n tariffe?: VoloTariffa[];\r\n codiceOperatedBy?: string | null;\r\n nomeOperatedBy?: string | null;\r\n isNdc?: boolean;\r\n\r\n constructor(data?: ITripFlightSegment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pnr = _data[\"pnr\"] !== undefined ? _data[\"pnr\"] : null;\r\n this.tratta = _data[\"tratta\"] ? VoloTratta.fromJS(_data[\"tratta\"]) : null;\r\n this.soluzione = _data[\"soluzione\"] !== undefined ? _data[\"soluzione\"] : null;\r\n this.arrivoIlGiornoDopo = _data[\"arrivoIlGiornoDopo\"] !== undefined ? _data[\"arrivoIlGiornoDopo\"] : null;\r\n this.compagnia = _data[\"compagnia\"] !== undefined ? _data[\"compagnia\"] : null;\r\n this.aeroportoPartenza = _data[\"aeroportoPartenza\"] !== undefined ? _data[\"aeroportoPartenza\"] : null;\r\n this.aeroportoArrivo = _data[\"aeroportoArrivo\"] !== undefined ? _data[\"aeroportoArrivo\"] : null;\r\n this.codiceArea = _data[\"codiceArea\"] !== undefined ? _data[\"codiceArea\"] : null;\r\n this.stato = _data[\"stato\"] ? StatoVolo.fromJS(_data[\"stato\"]) : null;\r\n this.isPnr = _data[\"isPnr\"] !== undefined ? _data[\"isPnr\"] : null;\r\n if (Array.isArray(_data[\"tariffeTratteRel\"])) {\r\n this.tariffeTratteRel = [] as any;\r\n for (let item of _data[\"tariffeTratteRel\"])\r\n this.tariffeTratteRel!.push(VoloRel.fromJS(item));\r\n }\r\n else {\r\n this.tariffeTratteRel = null;\r\n }\r\n if (Array.isArray(_data[\"tariffe\"])) {\r\n this.tariffe = [] as any;\r\n for (let item of _data[\"tariffe\"])\r\n this.tariffe!.push(VoloTariffa.fromJS(item));\r\n }\r\n else {\r\n this.tariffe = null;\r\n }\r\n this.codiceOperatedBy = _data[\"codiceOperatedBy\"] !== undefined ? _data[\"codiceOperatedBy\"] : null;\r\n this.nomeOperatedBy = _data[\"nomeOperatedBy\"] !== undefined ? _data[\"nomeOperatedBy\"] : null;\r\n this.isNdc = _data[\"isNdc\"] !== undefined ? _data[\"isNdc\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripFlightSegment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripFlightSegment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pnr\"] = this.pnr !== undefined ? this.pnr : null;\r\n data[\"tratta\"] = this.tratta ? this.tratta.toJSON() : null;\r\n data[\"soluzione\"] = this.soluzione !== undefined ? this.soluzione : null;\r\n data[\"arrivoIlGiornoDopo\"] = this.arrivoIlGiornoDopo !== undefined ? this.arrivoIlGiornoDopo : null;\r\n data[\"compagnia\"] = this.compagnia !== undefined ? this.compagnia : null;\r\n data[\"aeroportoPartenza\"] = this.aeroportoPartenza !== undefined ? this.aeroportoPartenza : null;\r\n data[\"aeroportoArrivo\"] = this.aeroportoArrivo !== undefined ? this.aeroportoArrivo : null;\r\n data[\"codiceArea\"] = this.codiceArea !== undefined ? this.codiceArea : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"isPnr\"] = this.isPnr !== undefined ? this.isPnr : null;\r\n if (Array.isArray(this.tariffeTratteRel)) {\r\n data[\"tariffeTratteRel\"] = [];\r\n for (let item of this.tariffeTratteRel)\r\n data[\"tariffeTratteRel\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.tariffe)) {\r\n data[\"tariffe\"] = [];\r\n for (let item of this.tariffe)\r\n data[\"tariffe\"].push(item.toJSON());\r\n }\r\n data[\"codiceOperatedBy\"] = this.codiceOperatedBy !== undefined ? this.codiceOperatedBy : null;\r\n data[\"nomeOperatedBy\"] = this.nomeOperatedBy !== undefined ? this.nomeOperatedBy : null;\r\n data[\"isNdc\"] = this.isNdc !== undefined ? this.isNdc : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripFlightSegment {\r\n pnr?: string | null;\r\n tratta?: VoloTratta;\r\n soluzione?: string | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n compagnia?: string | null;\r\n aeroportoPartenza?: string | null;\r\n aeroportoArrivo?: string | null;\r\n codiceArea?: string | null;\r\n stato?: StatoVolo | null;\r\n isPnr?: boolean;\r\n tariffeTratteRel?: VoloRel[];\r\n tariffe?: VoloTariffa[];\r\n codiceOperatedBy?: string | null;\r\n nomeOperatedBy?: string | null;\r\n isNdc?: boolean;\r\n}\r\n\r\nexport class VoloTratta implements IVoloTratta {\r\n voloTrattaID?: number;\r\n voloID?: number;\r\n numeroVolo?: number | null;\r\n partenza?: string | null;\r\n arrivo?: string | null;\r\n daAeroportoCodice?: string | null;\r\n adAeroportoCodice?: string | null;\r\n codiceCompagnia?: string | null;\r\n codiceCompagniaOperating?: string | null;\r\n codiceStato?: string | null;\r\n posti?: number | null;\r\n classe?: string | null;\r\n\r\n constructor(data?: IVoloTratta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.voloTrattaID = _data[\"voloTrattaID\"] !== undefined ? _data[\"voloTrattaID\"] : null;\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n this.numeroVolo = _data[\"numeroVolo\"] !== undefined ? _data[\"numeroVolo\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.arrivo = _data[\"arrivo\"] !== undefined ? _data[\"arrivo\"] : null;\r\n this.daAeroportoCodice = _data[\"daAeroportoCodice\"] !== undefined ? _data[\"daAeroportoCodice\"] : null;\r\n this.adAeroportoCodice = _data[\"adAeroportoCodice\"] !== undefined ? _data[\"adAeroportoCodice\"] : null;\r\n this.codiceCompagnia = _data[\"codiceCompagnia\"] !== undefined ? _data[\"codiceCompagnia\"] : null;\r\n this.codiceCompagniaOperating = _data[\"codiceCompagniaOperating\"] !== undefined ? _data[\"codiceCompagniaOperating\"] : null;\r\n this.codiceStato = _data[\"codiceStato\"] !== undefined ? _data[\"codiceStato\"] : null;\r\n this.posti = _data[\"posti\"] !== undefined ? _data[\"posti\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloTratta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloTratta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voloTrattaID\"] = this.voloTrattaID !== undefined ? this.voloTrattaID : null;\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n data[\"numeroVolo\"] = this.numeroVolo !== undefined ? this.numeroVolo : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"arrivo\"] = this.arrivo !== undefined ? this.arrivo : null;\r\n data[\"daAeroportoCodice\"] = this.daAeroportoCodice !== undefined ? this.daAeroportoCodice : null;\r\n data[\"adAeroportoCodice\"] = this.adAeroportoCodice !== undefined ? this.adAeroportoCodice : null;\r\n data[\"codiceCompagnia\"] = this.codiceCompagnia !== undefined ? this.codiceCompagnia : null;\r\n data[\"codiceCompagniaOperating\"] = this.codiceCompagniaOperating !== undefined ? this.codiceCompagniaOperating : null;\r\n data[\"codiceStato\"] = this.codiceStato !== undefined ? this.codiceStato : null;\r\n data[\"posti\"] = this.posti !== undefined ? this.posti : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloTratta {\r\n voloTrattaID?: number;\r\n voloID?: number;\r\n numeroVolo?: number | null;\r\n partenza?: string | null;\r\n arrivo?: string | null;\r\n daAeroportoCodice?: string | null;\r\n adAeroportoCodice?: string | null;\r\n codiceCompagnia?: string | null;\r\n codiceCompagniaOperating?: string | null;\r\n codiceStato?: string | null;\r\n posti?: number | null;\r\n classe?: string | null;\r\n}\r\n\r\nexport class VoloRel implements IVoloRel {\r\n voloRelID?: number;\r\n voloID?: number;\r\n voloTrattaID?: number;\r\n voloTariffaID?: number;\r\n fareBasis?: string | null;\r\n baggageIncluded?: number | null;\r\n cabin?: ETipoCabin | null;\r\n\r\n constructor(data?: IVoloRel) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.voloRelID = _data[\"voloRelID\"] !== undefined ? _data[\"voloRelID\"] : null;\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n this.voloTrattaID = _data[\"voloTrattaID\"] !== undefined ? _data[\"voloTrattaID\"] : null;\r\n this.voloTariffaID = _data[\"voloTariffaID\"] !== undefined ? _data[\"voloTariffaID\"] : null;\r\n this.fareBasis = _data[\"fareBasis\"] !== undefined ? _data[\"fareBasis\"] : null;\r\n this.baggageIncluded = _data[\"baggageIncluded\"] !== undefined ? _data[\"baggageIncluded\"] : null;\r\n this.cabin = _data[\"cabin\"] !== undefined ? _data[\"cabin\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloRel {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloRel();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voloRelID\"] = this.voloRelID !== undefined ? this.voloRelID : null;\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n data[\"voloTrattaID\"] = this.voloTrattaID !== undefined ? this.voloTrattaID : null;\r\n data[\"voloTariffaID\"] = this.voloTariffaID !== undefined ? this.voloTariffaID : null;\r\n data[\"fareBasis\"] = this.fareBasis !== undefined ? this.fareBasis : null;\r\n data[\"baggageIncluded\"] = this.baggageIncluded !== undefined ? this.baggageIncluded : null;\r\n data[\"cabin\"] = this.cabin !== undefined ? this.cabin : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloRel {\r\n voloRelID?: number;\r\n voloID?: number;\r\n voloTrattaID?: number;\r\n voloTariffaID?: number;\r\n fareBasis?: string | null;\r\n baggageIncluded?: number | null;\r\n cabin?: ETipoCabin | null;\r\n}\r\n\r\nexport enum ETipoCabin {\r\n Economy = \"Economy\",\r\n PremiumEconomy = \"PremiumEconomy\",\r\n Business = \"Business\",\r\n First = \"First\",\r\n}\r\n\r\nexport class VoloTariffa implements IVoloTariffa {\r\n voloTariffaID?: number;\r\n voloID?: number | null;\r\n fareBasis?: string | null;\r\n idTariffaC?: number;\r\n tipoPaxID?: ETipoPax | null;\r\n tariffa?: number | null;\r\n tasse?: number | null;\r\n numeroPax?: number | null;\r\n costo?: number | null;\r\n costoTasse?: number | null;\r\n tariffaTO?: boolean;\r\n lastTicketDate?: string | null;\r\n baggageIncluded?: number | null;\r\n\r\n constructor(data?: IVoloTariffa) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.voloTariffaID = _data[\"voloTariffaID\"] !== undefined ? _data[\"voloTariffaID\"] : null;\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n this.fareBasis = _data[\"fareBasis\"] !== undefined ? _data[\"fareBasis\"] : null;\r\n this.idTariffaC = _data[\"idTariffaC\"] !== undefined ? _data[\"idTariffaC\"] : null;\r\n this.tipoPaxID = _data[\"tipoPaxID\"] !== undefined ? _data[\"tipoPaxID\"] : null;\r\n this.tariffa = _data[\"tariffa\"] !== undefined ? _data[\"tariffa\"] : null;\r\n this.tasse = _data[\"tasse\"] !== undefined ? _data[\"tasse\"] : null;\r\n this.numeroPax = _data[\"numeroPax\"] !== undefined ? _data[\"numeroPax\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.costoTasse = _data[\"costoTasse\"] !== undefined ? _data[\"costoTasse\"] : null;\r\n this.tariffaTO = _data[\"tariffaTO\"] !== undefined ? _data[\"tariffaTO\"] : null;\r\n this.lastTicketDate = _data[\"lastTicketDate\"] !== undefined ? _data[\"lastTicketDate\"] : null;\r\n this.baggageIncluded = _data[\"baggageIncluded\"] !== undefined ? _data[\"baggageIncluded\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloTariffa {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloTariffa();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voloTariffaID\"] = this.voloTariffaID !== undefined ? this.voloTariffaID : null;\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n data[\"fareBasis\"] = this.fareBasis !== undefined ? this.fareBasis : null;\r\n data[\"idTariffaC\"] = this.idTariffaC !== undefined ? this.idTariffaC : null;\r\n data[\"tipoPaxID\"] = this.tipoPaxID !== undefined ? this.tipoPaxID : null;\r\n data[\"tariffa\"] = this.tariffa !== undefined ? this.tariffa : null;\r\n data[\"tasse\"] = this.tasse !== undefined ? this.tasse : null;\r\n data[\"numeroPax\"] = this.numeroPax !== undefined ? this.numeroPax : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"costoTasse\"] = this.costoTasse !== undefined ? this.costoTasse : null;\r\n data[\"tariffaTO\"] = this.tariffaTO !== undefined ? this.tariffaTO : null;\r\n data[\"lastTicketDate\"] = this.lastTicketDate !== undefined ? this.lastTicketDate : null;\r\n data[\"baggageIncluded\"] = this.baggageIncluded !== undefined ? this.baggageIncluded : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloTariffa {\r\n voloTariffaID?: number;\r\n voloID?: number | null;\r\n fareBasis?: string | null;\r\n idTariffaC?: number;\r\n tipoPaxID?: ETipoPax | null;\r\n tariffa?: number | null;\r\n tasse?: number | null;\r\n numeroPax?: number | null;\r\n costo?: number | null;\r\n costoTasse?: number | null;\r\n tariffaTO?: boolean;\r\n lastTicketDate?: string | null;\r\n baggageIncluded?: number | null;\r\n}\r\n\r\nexport enum ETipoPax {\r\n Sconosciuto = \"Sconosciuto\",\r\n Adulto = \"Adulto\",\r\n Child = \"Child\",\r\n Infant = \"Infant\",\r\n}\r\n\r\nexport class TripFlightService extends TripService implements ITripFlightService {\r\n nome?: string | null;\r\n isTasseVolo?: boolean;\r\n daPrendereInCaricoTkt?: boolean;\r\n okContabTkt?: boolean;\r\n inCaricoTkt?: boolean;\r\n emessoTkt?: boolean;\r\n\r\n constructor(data?: ITripFlightService) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.isTasseVolo = _data[\"isTasseVolo\"] !== undefined ? _data[\"isTasseVolo\"] : null;\r\n this.daPrendereInCaricoTkt = _data[\"daPrendereInCaricoTkt\"] !== undefined ? _data[\"daPrendereInCaricoTkt\"] : null;\r\n this.okContabTkt = _data[\"okContabTkt\"] !== undefined ? _data[\"okContabTkt\"] : null;\r\n this.inCaricoTkt = _data[\"inCaricoTkt\"] !== undefined ? _data[\"inCaricoTkt\"] : null;\r\n this.emessoTkt = _data[\"emessoTkt\"] !== undefined ? _data[\"emessoTkt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripFlightService {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripFlightService();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"isTasseVolo\"] = this.isTasseVolo !== undefined ? this.isTasseVolo : null;\r\n data[\"daPrendereInCaricoTkt\"] = this.daPrendereInCaricoTkt !== undefined ? this.daPrendereInCaricoTkt : null;\r\n data[\"okContabTkt\"] = this.okContabTkt !== undefined ? this.okContabTkt : null;\r\n data[\"inCaricoTkt\"] = this.inCaricoTkt !== undefined ? this.inCaricoTkt : null;\r\n data[\"emessoTkt\"] = this.emessoTkt !== undefined ? this.emessoTkt : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripFlightService extends ITripService {\r\n nome?: string | null;\r\n isTasseVolo?: boolean;\r\n daPrendereInCaricoTkt?: boolean;\r\n okContabTkt?: boolean;\r\n inCaricoTkt?: boolean;\r\n emessoTkt?: boolean;\r\n}\r\n\r\nexport class TripFlight implements ITripFlight {\r\n volo?: Volo;\r\n fornitore?: string | null;\r\n tratte?: VoloTratta[];\r\n tariffe?: TripFlightFare[];\r\n note?: VoloNota[];\r\n relazioni?: VoloRel[];\r\n camera?: string | null;\r\n isPnr?: boolean;\r\n /** Se true vanno aggiornati i dati dei pax sul PNR */\r\n verificaPax?: boolean;\r\n\r\n constructor(data?: ITripFlight) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.volo = _data[\"volo\"] ? Volo.fromJS(_data[\"volo\"]) : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n if (Array.isArray(_data[\"tratte\"])) {\r\n this.tratte = [] as any;\r\n for (let item of _data[\"tratte\"])\r\n this.tratte!.push(VoloTratta.fromJS(item));\r\n }\r\n else {\r\n this.tratte = null;\r\n }\r\n if (Array.isArray(_data[\"tariffe\"])) {\r\n this.tariffe = [] as any;\r\n for (let item of _data[\"tariffe\"])\r\n this.tariffe!.push(TripFlightFare.fromJS(item));\r\n }\r\n else {\r\n this.tariffe = null;\r\n }\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(VoloNota.fromJS(item));\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n if (Array.isArray(_data[\"relazioni\"])) {\r\n this.relazioni = [] as any;\r\n for (let item of _data[\"relazioni\"])\r\n this.relazioni!.push(VoloRel.fromJS(item));\r\n }\r\n else {\r\n this.relazioni = null;\r\n }\r\n this.camera = _data[\"camera\"] !== undefined ? _data[\"camera\"] : null;\r\n this.isPnr = _data[\"isPnr\"] !== undefined ? _data[\"isPnr\"] : null;\r\n this.verificaPax = _data[\"verificaPax\"] !== undefined ? _data[\"verificaPax\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripFlight {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripFlight();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"volo\"] = this.volo ? this.volo.toJSON() : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n if (Array.isArray(this.tratte)) {\r\n data[\"tratte\"] = [];\r\n for (let item of this.tratte)\r\n data[\"tratte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.tariffe)) {\r\n data[\"tariffe\"] = [];\r\n for (let item of this.tariffe)\r\n data[\"tariffe\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.relazioni)) {\r\n data[\"relazioni\"] = [];\r\n for (let item of this.relazioni)\r\n data[\"relazioni\"].push(item.toJSON());\r\n }\r\n data[\"camera\"] = this.camera !== undefined ? this.camera : null;\r\n data[\"isPnr\"] = this.isPnr !== undefined ? this.isPnr : null;\r\n data[\"verificaPax\"] = this.verificaPax !== undefined ? this.verificaPax : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripFlight {\r\n volo?: Volo;\r\n fornitore?: string | null;\r\n tratte?: VoloTratta[];\r\n tariffe?: TripFlightFare[];\r\n note?: VoloNota[];\r\n relazioni?: VoloRel[];\r\n camera?: string | null;\r\n isPnr?: boolean;\r\n /** Se true vanno aggiornati i dati dei pax sul PNR */\r\n verificaPax?: boolean;\r\n}\r\n\r\nexport class Volo implements IVolo {\r\n voloID?: number;\r\n offertaID?: number | null;\r\n utenteID?: number | null;\r\n abbinamentoID?: number | null;\r\n offertaDatoID?: number | null;\r\n riga?: OffertaDato | null;\r\n pnr?: string | null;\r\n paxRef?: string | null;\r\n status?: EStatoVolo | null;\r\n dataSalvataggio?: string | null;\r\n dataPartenza?: string | null;\r\n dataCancellazioneAuto?: string | null;\r\n supplierID?: number | null;\r\n verificare?: boolean;\r\n\r\n constructor(data?: IVolo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.utenteID = _data[\"utenteID\"] !== undefined ? _data[\"utenteID\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n this.pnr = _data[\"pnr\"] !== undefined ? _data[\"pnr\"] : null;\r\n this.paxRef = _data[\"paxRef\"] !== undefined ? _data[\"paxRef\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.dataSalvataggio = _data[\"dataSalvataggio\"] !== undefined ? _data[\"dataSalvataggio\"] : null;\r\n this.dataPartenza = _data[\"dataPartenza\"] !== undefined ? _data[\"dataPartenza\"] : null;\r\n this.dataCancellazioneAuto = _data[\"dataCancellazioneAuto\"] !== undefined ? _data[\"dataCancellazioneAuto\"] : null;\r\n this.supplierID = _data[\"supplierID\"] !== undefined ? _data[\"supplierID\"] : null;\r\n this.verificare = _data[\"verificare\"] !== undefined ? _data[\"verificare\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Volo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Volo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"utenteID\"] = this.utenteID !== undefined ? this.utenteID : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"pnr\"] = this.pnr !== undefined ? this.pnr : null;\r\n data[\"paxRef\"] = this.paxRef !== undefined ? this.paxRef : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"dataSalvataggio\"] = this.dataSalvataggio !== undefined ? this.dataSalvataggio : null;\r\n data[\"dataPartenza\"] = this.dataPartenza !== undefined ? this.dataPartenza : null;\r\n data[\"dataCancellazioneAuto\"] = this.dataCancellazioneAuto !== undefined ? this.dataCancellazioneAuto : null;\r\n data[\"supplierID\"] = this.supplierID !== undefined ? this.supplierID : null;\r\n data[\"verificare\"] = this.verificare !== undefined ? this.verificare : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVolo {\r\n voloID?: number;\r\n offertaID?: number | null;\r\n utenteID?: number | null;\r\n abbinamentoID?: number | null;\r\n offertaDatoID?: number | null;\r\n riga?: OffertaDato | null;\r\n pnr?: string | null;\r\n paxRef?: string | null;\r\n status?: EStatoVolo | null;\r\n dataSalvataggio?: string | null;\r\n dataPartenza?: string | null;\r\n dataCancellazioneAuto?: string | null;\r\n supplierID?: number | null;\r\n verificare?: boolean;\r\n}\r\n\r\nexport enum EStatoVolo {\r\n Attivo = \"Attivo\",\r\n Cancellato = \"Cancellato\",\r\n InEmissione = \"InEmissione\",\r\n Emesso = \"Emesso\",\r\n Monitorato = \"Monitorato\",\r\n}\r\n\r\nexport class TripFlightFare implements ITripFlightFare {\r\n tariffa?: VoloTariffa;\r\n tratte?: VoloTratta[];\r\n relazioni?: VoloRel[];\r\n\r\n constructor(data?: ITripFlightFare) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tariffa = _data[\"tariffa\"] ? VoloTariffa.fromJS(_data[\"tariffa\"]) : null;\r\n if (Array.isArray(_data[\"tratte\"])) {\r\n this.tratte = [] as any;\r\n for (let item of _data[\"tratte\"])\r\n this.tratte!.push(VoloTratta.fromJS(item));\r\n }\r\n else {\r\n this.tratte = null;\r\n }\r\n if (Array.isArray(_data[\"relazioni\"])) {\r\n this.relazioni = [] as any;\r\n for (let item of _data[\"relazioni\"])\r\n this.relazioni!.push(VoloRel.fromJS(item));\r\n }\r\n else {\r\n this.relazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripFlightFare {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripFlightFare();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tariffa\"] = this.tariffa ? this.tariffa.toJSON() : null;\r\n if (Array.isArray(this.tratte)) {\r\n data[\"tratte\"] = [];\r\n for (let item of this.tratte)\r\n data[\"tratte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.relazioni)) {\r\n data[\"relazioni\"] = [];\r\n for (let item of this.relazioni)\r\n data[\"relazioni\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripFlightFare {\r\n tariffa?: VoloTariffa;\r\n tratte?: VoloTratta[];\r\n relazioni?: VoloRel[];\r\n}\r\n\r\nexport class VoloNota implements IVoloNota {\r\n voloNotaID?: number;\r\n voloID?: number;\r\n tipoID?: number | null;\r\n tipoMemo?: string | null;\r\n testo?: string | null;\r\n data?: string | null;\r\n\r\n constructor(data?: IVoloNota) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.voloNotaID = _data[\"voloNotaID\"] !== undefined ? _data[\"voloNotaID\"] : null;\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n this.tipoID = _data[\"tipoID\"] !== undefined ? _data[\"tipoID\"] : null;\r\n this.tipoMemo = _data[\"tipoMemo\"] !== undefined ? _data[\"tipoMemo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloNota {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloNota();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voloNotaID\"] = this.voloNotaID !== undefined ? this.voloNotaID : null;\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n data[\"tipoID\"] = this.tipoID !== undefined ? this.tipoID : null;\r\n data[\"tipoMemo\"] = this.tipoMemo !== undefined ? this.tipoMemo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloNota {\r\n voloNotaID?: number;\r\n voloID?: number;\r\n tipoID?: number | null;\r\n tipoMemo?: string | null;\r\n testo?: string | null;\r\n data?: string | null;\r\n}\r\n\r\nexport class TripStep implements ITripStep {\r\n itinerario?: OffertaItinerario;\r\n luogo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioCollegato?: string | null;\r\n tipologiaCollegata?: string | null;\r\n sovrapposto?: boolean;\r\n giorniMancantiAlPrecedente?: number;\r\n hotelStatus?: ETripStepHotelStatus;\r\n servizi?: TripService[];\r\n consentiRicercaHotel?: boolean;\r\n consentiRicercaTour?: boolean;\r\n consentiRicercaSelfdrive?: boolean;\r\n consentiRicercaTrasferimenti?: boolean;\r\n consentiRicercaVisite?: boolean;\r\n consentiRicercaVoli?: boolean;\r\n consentiRicercaNoleggi?: boolean;\r\n\r\n constructor(data?: ITripStep) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.itinerario = _data[\"itinerario\"] ? OffertaItinerario.fromJS(_data[\"itinerario\"]) : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.servizioCollegato = _data[\"servizioCollegato\"] !== undefined ? _data[\"servizioCollegato\"] : null;\r\n this.tipologiaCollegata = _data[\"tipologiaCollegata\"] !== undefined ? _data[\"tipologiaCollegata\"] : null;\r\n this.sovrapposto = _data[\"sovrapposto\"] !== undefined ? _data[\"sovrapposto\"] : null;\r\n this.giorniMancantiAlPrecedente = _data[\"giorniMancantiAlPrecedente\"] !== undefined ? _data[\"giorniMancantiAlPrecedente\"] : null;\r\n this.hotelStatus = _data[\"hotelStatus\"] !== undefined ? _data[\"hotelStatus\"] : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(TripService.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n this.consentiRicercaHotel = _data[\"consentiRicercaHotel\"] !== undefined ? _data[\"consentiRicercaHotel\"] : null;\r\n this.consentiRicercaTour = _data[\"consentiRicercaTour\"] !== undefined ? _data[\"consentiRicercaTour\"] : null;\r\n this.consentiRicercaSelfdrive = _data[\"consentiRicercaSelfdrive\"] !== undefined ? _data[\"consentiRicercaSelfdrive\"] : null;\r\n this.consentiRicercaTrasferimenti = _data[\"consentiRicercaTrasferimenti\"] !== undefined ? _data[\"consentiRicercaTrasferimenti\"] : null;\r\n this.consentiRicercaVisite = _data[\"consentiRicercaVisite\"] !== undefined ? _data[\"consentiRicercaVisite\"] : null;\r\n this.consentiRicercaVoli = _data[\"consentiRicercaVoli\"] !== undefined ? _data[\"consentiRicercaVoli\"] : null;\r\n this.consentiRicercaNoleggi = _data[\"consentiRicercaNoleggi\"] !== undefined ? _data[\"consentiRicercaNoleggi\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripStep {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripStep();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"servizioCollegato\"] = this.servizioCollegato !== undefined ? this.servizioCollegato : null;\r\n data[\"tipologiaCollegata\"] = this.tipologiaCollegata !== undefined ? this.tipologiaCollegata : null;\r\n data[\"sovrapposto\"] = this.sovrapposto !== undefined ? this.sovrapposto : null;\r\n data[\"giorniMancantiAlPrecedente\"] = this.giorniMancantiAlPrecedente !== undefined ? this.giorniMancantiAlPrecedente : null;\r\n data[\"hotelStatus\"] = this.hotelStatus !== undefined ? this.hotelStatus : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n data[\"consentiRicercaHotel\"] = this.consentiRicercaHotel !== undefined ? this.consentiRicercaHotel : null;\r\n data[\"consentiRicercaTour\"] = this.consentiRicercaTour !== undefined ? this.consentiRicercaTour : null;\r\n data[\"consentiRicercaSelfdrive\"] = this.consentiRicercaSelfdrive !== undefined ? this.consentiRicercaSelfdrive : null;\r\n data[\"consentiRicercaTrasferimenti\"] = this.consentiRicercaTrasferimenti !== undefined ? this.consentiRicercaTrasferimenti : null;\r\n data[\"consentiRicercaVisite\"] = this.consentiRicercaVisite !== undefined ? this.consentiRicercaVisite : null;\r\n data[\"consentiRicercaVoli\"] = this.consentiRicercaVoli !== undefined ? this.consentiRicercaVoli : null;\r\n data[\"consentiRicercaNoleggi\"] = this.consentiRicercaNoleggi !== undefined ? this.consentiRicercaNoleggi : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripStep {\r\n itinerario?: OffertaItinerario;\r\n luogo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioCollegato?: string | null;\r\n tipologiaCollegata?: string | null;\r\n sovrapposto?: boolean;\r\n giorniMancantiAlPrecedente?: number;\r\n hotelStatus?: ETripStepHotelStatus;\r\n servizi?: TripService[];\r\n consentiRicercaHotel?: boolean;\r\n consentiRicercaTour?: boolean;\r\n consentiRicercaSelfdrive?: boolean;\r\n consentiRicercaTrasferimenti?: boolean;\r\n consentiRicercaVisite?: boolean;\r\n consentiRicercaVoli?: boolean;\r\n consentiRicercaNoleggi?: boolean;\r\n}\r\n\r\nexport class OffertaItinerario implements IOffertaItinerario {\r\n itinerarioID?: number;\r\n offertaID?: number;\r\n luogoID?: number;\r\n giorno?: number | null;\r\n notti?: number | null;\r\n ordine?: number | null;\r\n tipo?: ETipoTappa | null;\r\n servizioTipologiaTourID?: number | null;\r\n tipoTrasporto?: ETipoTrasporto | null;\r\n autofillOperation?: EAutofillOperation;\r\n autofillStrategy?: EAutofillStrategy;\r\n autofillMinStars?: EAutofillMinStars;\r\n autofillFlags?: EAutofillFlags;\r\n airport?: string | null;\r\n offset?: number;\r\n servizioHotelID?: number | null;\r\n\r\n constructor(data?: IOffertaItinerario) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.servizioTipologiaTourID = _data[\"servizioTipologiaTourID\"] !== undefined ? _data[\"servizioTipologiaTourID\"] : null;\r\n this.tipoTrasporto = _data[\"tipoTrasporto\"] !== undefined ? _data[\"tipoTrasporto\"] : null;\r\n this.autofillOperation = _data[\"autofillOperation\"] !== undefined ? _data[\"autofillOperation\"] : null;\r\n this.autofillStrategy = _data[\"autofillStrategy\"] !== undefined ? _data[\"autofillStrategy\"] : null;\r\n this.autofillMinStars = _data[\"autofillMinStars\"] !== undefined ? _data[\"autofillMinStars\"] : null;\r\n this.autofillFlags = _data[\"autofillFlags\"] !== undefined ? _data[\"autofillFlags\"] : null;\r\n this.airport = _data[\"airport\"] !== undefined ? _data[\"airport\"] : null;\r\n this.offset = _data[\"offset\"] !== undefined ? _data[\"offset\"] : null;\r\n this.servizioHotelID = _data[\"servizioHotelID\"] !== undefined ? _data[\"servizioHotelID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaItinerario {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaItinerario();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"servizioTipologiaTourID\"] = this.servizioTipologiaTourID !== undefined ? this.servizioTipologiaTourID : null;\r\n data[\"tipoTrasporto\"] = this.tipoTrasporto !== undefined ? this.tipoTrasporto : null;\r\n data[\"autofillOperation\"] = this.autofillOperation !== undefined ? this.autofillOperation : null;\r\n data[\"autofillStrategy\"] = this.autofillStrategy !== undefined ? this.autofillStrategy : null;\r\n data[\"autofillMinStars\"] = this.autofillMinStars !== undefined ? this.autofillMinStars : null;\r\n data[\"autofillFlags\"] = this.autofillFlags !== undefined ? this.autofillFlags : null;\r\n data[\"airport\"] = this.airport !== undefined ? this.airport : null;\r\n data[\"offset\"] = this.offset !== undefined ? this.offset : null;\r\n data[\"servizioHotelID\"] = this.servizioHotelID !== undefined ? this.servizioHotelID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaItinerario {\r\n itinerarioID?: number;\r\n offertaID?: number;\r\n luogoID?: number;\r\n giorno?: number | null;\r\n notti?: number | null;\r\n ordine?: number | null;\r\n tipo?: ETipoTappa | null;\r\n servizioTipologiaTourID?: number | null;\r\n tipoTrasporto?: ETipoTrasporto | null;\r\n autofillOperation?: EAutofillOperation;\r\n autofillStrategy?: EAutofillStrategy;\r\n autofillMinStars?: EAutofillMinStars;\r\n autofillFlags?: EAutofillFlags;\r\n airport?: string | null;\r\n offset?: number;\r\n servizioHotelID?: number | null;\r\n}\r\n\r\nexport enum ETipoTappa {\r\n Normale = \"Normale\",\r\n Accessori = \"Accessori\",\r\n SoggiornoLibero = \"SoggiornoLibero\",\r\n InVolo = \"InVolo\",\r\n InizioViaggio = \"InizioViaggio\",\r\n TermineViaggio = \"TermineViaggio\",\r\n ItinerarioTour = \"ItinerarioTour\",\r\n ItinerarioSelfdrive = \"ItinerarioSelfdrive\",\r\n ItinerarioPacchetto = \"ItinerarioPacchetto\",\r\n}\r\n\r\nexport enum EAutofillOperation {\r\n None = \"None\",\r\n Hotel = \"Hotel\",\r\n HotelAndPrivateTransfert = \"HotelAndPrivateTransfert\",\r\n HotelAndGroupTransfert = \"HotelAndGroupTransfert\",\r\n HotelAndPrivateCityViewTransfert = \"HotelAndPrivateCityViewTransfert\",\r\n HotelAndGroupCityViewTransfert = \"HotelAndGroupCityViewTransfert\",\r\n}\r\n\r\nexport enum EAutofillStrategy {\r\n MostEconomic = \"MostEconomic\",\r\n HightestRating = \"HightestRating\",\r\n}\r\n\r\nexport enum EAutofillMinStars {\r\n None = \"None\",\r\n Stars3 = \"Stars3\",\r\n Stars4 = \"Stars4\",\r\n Stars5 = \"Stars5\",\r\n Stars2 = \"Stars2\",\r\n}\r\n\r\nexport enum EAutofillFlags {\r\n None = \"None\",\r\n IncludeOnRequestHotels = \"IncludeOnRequestHotels\",\r\n IncludeInstantPayHotels = \"IncludeInstantPayHotels\",\r\n IncludeNotRefundableHotels = \"IncludeNotRefundableHotels\",\r\n IncludeAirportHotels = \"IncludeAirportHotels\",\r\n IncludeOnRequestHotelsOrIncludeAirportHotels = \"IncludeOnRequestHotelsOrIncludeAirportHotels\",\r\n ExcludeFlightSearch = \"ExcludeFlightSearch\",\r\n}\r\n\r\nexport enum ETripStepHotelStatus {\r\n Mancante = \"Mancante\",\r\n Parziale = \"Parziale\",\r\n Ok = \"Ok\",\r\n}\r\n\r\nexport class TripAgreementCost implements ITripAgreementCost {\r\n accordoID?: number;\r\n accordo?: string | null;\r\n abbinamentoID?: number | null;\r\n abbinamento?: string | null;\r\n valuta?: string | null;\r\n costo?: number;\r\n prezzo?: number;\r\n\r\n constructor(data?: ITripAgreementCost) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.abbinamento = _data[\"abbinamento\"] !== undefined ? _data[\"abbinamento\"] : null;\r\n this.valuta = _data[\"valuta\"] !== undefined ? _data[\"valuta\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripAgreementCost {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripAgreementCost();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"abbinamento\"] = this.abbinamento !== undefined ? this.abbinamento : null;\r\n data[\"valuta\"] = this.valuta !== undefined ? this.valuta : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripAgreementCost {\r\n accordoID?: number;\r\n accordo?: string | null;\r\n abbinamentoID?: number | null;\r\n abbinamento?: string | null;\r\n valuta?: string | null;\r\n costo?: number;\r\n prezzo?: number;\r\n}\r\n\r\nexport class TripDocument implements ITripDocument {\r\n /** ID del documento */\r\n id?: number;\r\n /** Entità del documento */\r\n documento?: Documento;\r\n /** Per i documenti condivisi è la url PRIVATA del documento.\r\nPer i link Email è la url su Outlook.com */\r\n urlPrivato?: string | null;\r\n /** Url per la visualizzazione pubblica */\r\n urlPubblico?: string | null;\r\n /** Nome del documento */\r\n nome?: string | null;\r\n /** Nome del file collegato */\r\n nomeAllegato?: string | null;\r\n /** Nome del contatto */\r\n nomeContatto?: string | null;\r\n /** Content type dell'allegato */\r\n contentType?: string | null;\r\n /** Dimensione del file allegato */\r\n dimensioneAllegato?: number | null;\r\n /** Se true il documento è un link Email */\r\n isEmailLink?: boolean;\r\n /** Se true è possiible visualizzare l'anteprima */\r\n anteprimaVisibile?: boolean;\r\n /** Se true la stampa è visualizzabile */\r\n stampaVisibile?: boolean;\r\n /** Se true il documento può essere cancellato */\r\n eliminabile?: boolean;\r\n /** Se true esiste un editor per il documento */\r\n editabile?: boolean;\r\n /** Se true può usare l'editor a frasi */\r\n editabileFrasi?: boolean;\r\n /** Se true è possibioe duplicare la riga */\r\n duplicabile?: boolean;\r\n /** Se true il documento accetta la stampa multipla */\r\n stampaMulti?: boolean;\r\n /** Se true il documento può essere usato per la conversione multipla in PDF */\r\n pdfMulti?: boolean;\r\n /** True se il documento è convertibile in PDF */\r\n convertibilePdf?: boolean;\r\n /** True se il documento è inviabile per mail */\r\n inviabile?: boolean;\r\n /** Lista degli ID dei documenti extra (Post) */\r\n extraDocIDs?: number[];\r\n\r\n constructor(data?: ITripDocument) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.documento = _data[\"documento\"] ? Documento.fromJS(_data[\"documento\"]) : null;\r\n this.urlPrivato = _data[\"urlPrivato\"] !== undefined ? _data[\"urlPrivato\"] : null;\r\n this.urlPubblico = _data[\"urlPubblico\"] !== undefined ? _data[\"urlPubblico\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeAllegato = _data[\"nomeAllegato\"] !== undefined ? _data[\"nomeAllegato\"] : null;\r\n this.nomeContatto = _data[\"nomeContatto\"] !== undefined ? _data[\"nomeContatto\"] : null;\r\n this.contentType = _data[\"contentType\"] !== undefined ? _data[\"contentType\"] : null;\r\n this.dimensioneAllegato = _data[\"dimensioneAllegato\"] !== undefined ? _data[\"dimensioneAllegato\"] : null;\r\n this.isEmailLink = _data[\"isEmailLink\"] !== undefined ? _data[\"isEmailLink\"] : null;\r\n this.anteprimaVisibile = _data[\"anteprimaVisibile\"] !== undefined ? _data[\"anteprimaVisibile\"] : null;\r\n this.stampaVisibile = _data[\"stampaVisibile\"] !== undefined ? _data[\"stampaVisibile\"] : null;\r\n this.eliminabile = _data[\"eliminabile\"] !== undefined ? _data[\"eliminabile\"] : null;\r\n this.editabile = _data[\"editabile\"] !== undefined ? _data[\"editabile\"] : null;\r\n this.editabileFrasi = _data[\"editabileFrasi\"] !== undefined ? _data[\"editabileFrasi\"] : null;\r\n this.duplicabile = _data[\"duplicabile\"] !== undefined ? _data[\"duplicabile\"] : null;\r\n this.stampaMulti = _data[\"stampaMulti\"] !== undefined ? _data[\"stampaMulti\"] : null;\r\n this.pdfMulti = _data[\"pdfMulti\"] !== undefined ? _data[\"pdfMulti\"] : null;\r\n this.convertibilePdf = _data[\"convertibilePdf\"] !== undefined ? _data[\"convertibilePdf\"] : null;\r\n this.inviabile = _data[\"inviabile\"] !== undefined ? _data[\"inviabile\"] : null;\r\n if (Array.isArray(_data[\"extraDocIDs\"])) {\r\n this.extraDocIDs = [] as any;\r\n for (let item of _data[\"extraDocIDs\"])\r\n this.extraDocIDs!.push(item);\r\n }\r\n else {\r\n this.extraDocIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripDocument {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripDocument();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"documento\"] = this.documento ? this.documento.toJSON() : null;\r\n data[\"urlPrivato\"] = this.urlPrivato !== undefined ? this.urlPrivato : null;\r\n data[\"urlPubblico\"] = this.urlPubblico !== undefined ? this.urlPubblico : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeAllegato\"] = this.nomeAllegato !== undefined ? this.nomeAllegato : null;\r\n data[\"nomeContatto\"] = this.nomeContatto !== undefined ? this.nomeContatto : null;\r\n data[\"contentType\"] = this.contentType !== undefined ? this.contentType : null;\r\n data[\"dimensioneAllegato\"] = this.dimensioneAllegato !== undefined ? this.dimensioneAllegato : null;\r\n data[\"isEmailLink\"] = this.isEmailLink !== undefined ? this.isEmailLink : null;\r\n data[\"anteprimaVisibile\"] = this.anteprimaVisibile !== undefined ? this.anteprimaVisibile : null;\r\n data[\"stampaVisibile\"] = this.stampaVisibile !== undefined ? this.stampaVisibile : null;\r\n data[\"eliminabile\"] = this.eliminabile !== undefined ? this.eliminabile : null;\r\n data[\"editabile\"] = this.editabile !== undefined ? this.editabile : null;\r\n data[\"editabileFrasi\"] = this.editabileFrasi !== undefined ? this.editabileFrasi : null;\r\n data[\"duplicabile\"] = this.duplicabile !== undefined ? this.duplicabile : null;\r\n data[\"stampaMulti\"] = this.stampaMulti !== undefined ? this.stampaMulti : null;\r\n data[\"pdfMulti\"] = this.pdfMulti !== undefined ? this.pdfMulti : null;\r\n data[\"convertibilePdf\"] = this.convertibilePdf !== undefined ? this.convertibilePdf : null;\r\n data[\"inviabile\"] = this.inviabile !== undefined ? this.inviabile : null;\r\n if (Array.isArray(this.extraDocIDs)) {\r\n data[\"extraDocIDs\"] = [];\r\n for (let item of this.extraDocIDs)\r\n data[\"extraDocIDs\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripDocument {\r\n /** ID del documento */\r\n id?: number;\r\n /** Entità del documento */\r\n documento?: Documento;\r\n /** Per i documenti condivisi è la url PRIVATA del documento.\r\nPer i link Email è la url su Outlook.com */\r\n urlPrivato?: string | null;\r\n /** Url per la visualizzazione pubblica */\r\n urlPubblico?: string | null;\r\n /** Nome del documento */\r\n nome?: string | null;\r\n /** Nome del file collegato */\r\n nomeAllegato?: string | null;\r\n /** Nome del contatto */\r\n nomeContatto?: string | null;\r\n /** Content type dell'allegato */\r\n contentType?: string | null;\r\n /** Dimensione del file allegato */\r\n dimensioneAllegato?: number | null;\r\n /** Se true il documento è un link Email */\r\n isEmailLink?: boolean;\r\n /** Se true è possiible visualizzare l'anteprima */\r\n anteprimaVisibile?: boolean;\r\n /** Se true la stampa è visualizzabile */\r\n stampaVisibile?: boolean;\r\n /** Se true il documento può essere cancellato */\r\n eliminabile?: boolean;\r\n /** Se true esiste un editor per il documento */\r\n editabile?: boolean;\r\n /** Se true può usare l'editor a frasi */\r\n editabileFrasi?: boolean;\r\n /** Se true è possibioe duplicare la riga */\r\n duplicabile?: boolean;\r\n /** Se true il documento accetta la stampa multipla */\r\n stampaMulti?: boolean;\r\n /** Se true il documento può essere usato per la conversione multipla in PDF */\r\n pdfMulti?: boolean;\r\n /** True se il documento è convertibile in PDF */\r\n convertibilePdf?: boolean;\r\n /** True se il documento è inviabile per mail */\r\n inviabile?: boolean;\r\n /** Lista degli ID dei documenti extra (Post) */\r\n extraDocIDs?: number[];\r\n}\r\n\r\nexport class Documento implements IDocumento {\r\n documentoID?: number;\r\n offertaID?: number;\r\n contattoID?: number | null;\r\n tipoDocumento?: ETipoDocumento;\r\n testata?: string | null;\r\n corpo?: string | null;\r\n corpo2?: string | null;\r\n data?: string | null;\r\n userID?: number | null;\r\n spedito?: string | null;\r\n contatoreSpedizioni?: number | null;\r\n rootID?: number;\r\n opzioni?: string | null;\r\n storage?: EStorage;\r\n\r\n constructor(data?: IDocumento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.testata = _data[\"testata\"] !== undefined ? _data[\"testata\"] : null;\r\n this.corpo = _data[\"corpo\"] !== undefined ? _data[\"corpo\"] : null;\r\n this.corpo2 = _data[\"corpo2\"] !== undefined ? _data[\"corpo2\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.spedito = _data[\"spedito\"] !== undefined ? _data[\"spedito\"] : null;\r\n this.contatoreSpedizioni = _data[\"contatoreSpedizioni\"] !== undefined ? _data[\"contatoreSpedizioni\"] : null;\r\n this.rootID = _data[\"rootID\"] !== undefined ? _data[\"rootID\"] : null;\r\n this.opzioni = _data[\"opzioni\"] !== undefined ? _data[\"opzioni\"] : null;\r\n this.storage = _data[\"storage\"] !== undefined ? _data[\"storage\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Documento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Documento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"testata\"] = this.testata !== undefined ? this.testata : null;\r\n data[\"corpo\"] = this.corpo !== undefined ? this.corpo : null;\r\n data[\"corpo2\"] = this.corpo2 !== undefined ? this.corpo2 : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"spedito\"] = this.spedito !== undefined ? this.spedito : null;\r\n data[\"contatoreSpedizioni\"] = this.contatoreSpedizioni !== undefined ? this.contatoreSpedizioni : null;\r\n data[\"rootID\"] = this.rootID !== undefined ? this.rootID : null;\r\n data[\"opzioni\"] = this.opzioni !== undefined ? this.opzioni : null;\r\n data[\"storage\"] = this.storage !== undefined ? this.storage : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumento {\r\n documentoID?: number;\r\n offertaID?: number;\r\n contattoID?: number | null;\r\n tipoDocumento?: ETipoDocumento;\r\n testata?: string | null;\r\n corpo?: string | null;\r\n corpo2?: string | null;\r\n data?: string | null;\r\n userID?: number | null;\r\n spedito?: string | null;\r\n contatoreSpedizioni?: number | null;\r\n rootID?: number;\r\n opzioni?: string | null;\r\n storage?: EStorage;\r\n}\r\n\r\nexport enum EStorage {\r\n Unknown = \"Unknown\",\r\n SharedFilesystem = \"SharedFilesystem\",\r\n AzureMedia = \"AzureMedia\",\r\n Database = \"Database\",\r\n}\r\n\r\nexport class TripVoucher implements ITripVoucher {\r\n nr?: string;\r\n voucher?: Voucher;\r\n servizio?: string;\r\n isNozze?: boolean;\r\n\r\n constructor(data?: ITripVoucher) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nr = _data[\"nr\"] !== undefined ? _data[\"nr\"] : null;\r\n this.voucher = _data[\"voucher\"] ? Voucher.fromJS(_data[\"voucher\"]) : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.isNozze = _data[\"isNozze\"] !== undefined ? _data[\"isNozze\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripVoucher {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripVoucher();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nr\"] = this.nr !== undefined ? this.nr : null;\r\n data[\"voucher\"] = this.voucher ? this.voucher.toJSON() : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"isNozze\"] = this.isNozze !== undefined ? this.isNozze : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripVoucher {\r\n nr?: string;\r\n voucher?: Voucher;\r\n servizio?: string;\r\n isNozze?: boolean;\r\n}\r\n\r\nexport class Voucher implements IVoucher {\r\n voucherID?: number;\r\n offertaID?: number | null;\r\n ordine?: number | null;\r\n testata?: string | null;\r\n bookingRef?: string | null;\r\n clienti?: string | null;\r\n descrizioneServizio?: string | null;\r\n periodo?: string | null;\r\n dettaglio?: string | null;\r\n istruzioni?: string | null;\r\n servizioID?: number | null;\r\n lingua?: ELingua | null;\r\n versione?: number;\r\n\r\n constructor(data?: IVoucher) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.voucherID = _data[\"voucherID\"] !== undefined ? _data[\"voucherID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.testata = _data[\"testata\"] !== undefined ? _data[\"testata\"] : null;\r\n this.bookingRef = _data[\"bookingRef\"] !== undefined ? _data[\"bookingRef\"] : null;\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n this.descrizioneServizio = _data[\"descrizioneServizio\"] !== undefined ? _data[\"descrizioneServizio\"] : null;\r\n this.periodo = _data[\"periodo\"] !== undefined ? _data[\"periodo\"] : null;\r\n this.dettaglio = _data[\"dettaglio\"] !== undefined ? _data[\"dettaglio\"] : null;\r\n this.istruzioni = _data[\"istruzioni\"] !== undefined ? _data[\"istruzioni\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.versione = _data[\"versione\"] !== undefined ? _data[\"versione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Voucher {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Voucher();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voucherID\"] = this.voucherID !== undefined ? this.voucherID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"testata\"] = this.testata !== undefined ? this.testata : null;\r\n data[\"bookingRef\"] = this.bookingRef !== undefined ? this.bookingRef : null;\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n data[\"descrizioneServizio\"] = this.descrizioneServizio !== undefined ? this.descrizioneServizio : null;\r\n data[\"periodo\"] = this.periodo !== undefined ? this.periodo : null;\r\n data[\"dettaglio\"] = this.dettaglio !== undefined ? this.dettaglio : null;\r\n data[\"istruzioni\"] = this.istruzioni !== undefined ? this.istruzioni : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"versione\"] = this.versione !== undefined ? this.versione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoucher {\r\n voucherID?: number;\r\n offertaID?: number | null;\r\n ordine?: number | null;\r\n testata?: string | null;\r\n bookingRef?: string | null;\r\n clienti?: string | null;\r\n descrizioneServizio?: string | null;\r\n periodo?: string | null;\r\n dettaglio?: string | null;\r\n istruzioni?: string | null;\r\n servizioID?: number | null;\r\n lingua?: ELingua | null;\r\n versione?: number;\r\n}\r\n\r\nexport class TripEmail implements ITripEmail {\r\n id?: number;\r\n from?: string;\r\n to?: string;\r\n cc?: string;\r\n bcc?: string;\r\n attachments?: TripEmailAttachment[];\r\n email?: EmailQueue;\r\n\r\n constructor(data?: ITripEmail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n this.cc = _data[\"cc\"] !== undefined ? _data[\"cc\"] : null;\r\n this.bcc = _data[\"bcc\"] !== undefined ? _data[\"bcc\"] : null;\r\n if (Array.isArray(_data[\"attachments\"])) {\r\n this.attachments = [] as any;\r\n for (let item of _data[\"attachments\"])\r\n this.attachments!.push(TripEmailAttachment.fromJS(item));\r\n }\r\n else {\r\n this.attachments = null;\r\n }\r\n this.email = _data[\"email\"] ? EmailQueue.fromJS(_data[\"email\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripEmail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripEmail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n data[\"cc\"] = this.cc !== undefined ? this.cc : null;\r\n data[\"bcc\"] = this.bcc !== undefined ? this.bcc : null;\r\n if (Array.isArray(this.attachments)) {\r\n data[\"attachments\"] = [];\r\n for (let item of this.attachments)\r\n data[\"attachments\"].push(item.toJSON());\r\n }\r\n data[\"email\"] = this.email ? this.email.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripEmail {\r\n id?: number;\r\n from?: string;\r\n to?: string;\r\n cc?: string;\r\n bcc?: string;\r\n attachments?: TripEmailAttachment[];\r\n email?: EmailQueue;\r\n}\r\n\r\nexport class TripEmailAttachment implements ITripEmailAttachment {\r\n id?: number;\r\n name?: string;\r\n\r\n constructor(data?: ITripEmailAttachment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripEmailAttachment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripEmailAttachment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripEmailAttachment {\r\n id?: number;\r\n name?: string;\r\n}\r\n\r\nexport class EmailQueue implements IEmailQueue {\r\n id?: number;\r\n category?: EEmailCategory;\r\n senderUserID?: number | null;\r\n offertaID?: number | null;\r\n offertaDatoID?: number | null;\r\n fromAddress!: string;\r\n fromName?: string | null;\r\n subject!: string;\r\n bodyText!: string;\r\n isHtmlBoby?: boolean;\r\n requestNotify?: boolean;\r\n highPriority?: boolean;\r\n status?: EEmailStatus;\r\n statusText?: string | null;\r\n creationDate?: string;\r\n requestedSendDate?: string;\r\n processedDate?: string | null;\r\n headers?: string | null;\r\n\r\n constructor(data?: IEmailQueue) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.category = _data[\"category\"] !== undefined ? _data[\"category\"] : null;\r\n this.senderUserID = _data[\"senderUserID\"] !== undefined ? _data[\"senderUserID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.fromAddress = _data[\"fromAddress\"] !== undefined ? _data[\"fromAddress\"] : null;\r\n this.fromName = _data[\"fromName\"] !== undefined ? _data[\"fromName\"] : null;\r\n this.subject = _data[\"subject\"] !== undefined ? _data[\"subject\"] : null;\r\n this.bodyText = _data[\"bodyText\"] !== undefined ? _data[\"bodyText\"] : null;\r\n this.isHtmlBoby = _data[\"isHtmlBoby\"] !== undefined ? _data[\"isHtmlBoby\"] : null;\r\n this.requestNotify = _data[\"requestNotify\"] !== undefined ? _data[\"requestNotify\"] : null;\r\n this.highPriority = _data[\"highPriority\"] !== undefined ? _data[\"highPriority\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.statusText = _data[\"statusText\"] !== undefined ? _data[\"statusText\"] : null;\r\n this.creationDate = _data[\"creationDate\"] !== undefined ? _data[\"creationDate\"] : null;\r\n this.requestedSendDate = _data[\"requestedSendDate\"] !== undefined ? _data[\"requestedSendDate\"] : null;\r\n this.processedDate = _data[\"processedDate\"] !== undefined ? _data[\"processedDate\"] : null;\r\n this.headers = _data[\"headers\"] !== undefined ? _data[\"headers\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EmailQueue {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EmailQueue();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"category\"] = this.category !== undefined ? this.category : null;\r\n data[\"senderUserID\"] = this.senderUserID !== undefined ? this.senderUserID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"fromAddress\"] = this.fromAddress !== undefined ? this.fromAddress : null;\r\n data[\"fromName\"] = this.fromName !== undefined ? this.fromName : null;\r\n data[\"subject\"] = this.subject !== undefined ? this.subject : null;\r\n data[\"bodyText\"] = this.bodyText !== undefined ? this.bodyText : null;\r\n data[\"isHtmlBoby\"] = this.isHtmlBoby !== undefined ? this.isHtmlBoby : null;\r\n data[\"requestNotify\"] = this.requestNotify !== undefined ? this.requestNotify : null;\r\n data[\"highPriority\"] = this.highPriority !== undefined ? this.highPriority : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"statusText\"] = this.statusText !== undefined ? this.statusText : null;\r\n data[\"creationDate\"] = this.creationDate !== undefined ? this.creationDate : null;\r\n data[\"requestedSendDate\"] = this.requestedSendDate !== undefined ? this.requestedSendDate : null;\r\n data[\"processedDate\"] = this.processedDate !== undefined ? this.processedDate : null;\r\n data[\"headers\"] = this.headers !== undefined ? this.headers : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmailQueue {\r\n id?: number;\r\n category?: EEmailCategory;\r\n senderUserID?: number | null;\r\n offertaID?: number | null;\r\n offertaDatoID?: number | null;\r\n fromAddress: string;\r\n fromName?: string | null;\r\n subject: string;\r\n bodyText: string;\r\n isHtmlBoby?: boolean;\r\n requestNotify?: boolean;\r\n highPriority?: boolean;\r\n status?: EEmailStatus;\r\n statusText?: string | null;\r\n creationDate?: string;\r\n requestedSendDate?: string;\r\n processedDate?: string | null;\r\n headers?: string | null;\r\n}\r\n\r\nexport enum EEmailCategory {\r\n Accounting = \"Accounting\",\r\n Booking = \"Booking\",\r\n Documenti = \"Documenti\",\r\n DocumentiContabili = \"DocumentiContabili\",\r\n AreaAgenzie = \"AreaAgenzie\",\r\n InvioCliente = \"InvioCliente\",\r\n Assicurazioni = \"Assicurazioni\",\r\n Report = \"Report\",\r\n}\r\n\r\nexport enum EEmailStatus {\r\n Queued = \"Queued\",\r\n Sent = \"Sent\",\r\n Error = \"Error\",\r\n Canceled = \"Canceled\",\r\n}\r\n\r\nexport class TripAttachedDocCategory implements ITripAttachedDocCategory {\r\n nome?: string | null;\r\n documenti?: TripAttachedDoc[];\r\n\r\n constructor(data?: ITripAttachedDocCategory) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (Array.isArray(_data[\"documenti\"])) {\r\n this.documenti = [] as any;\r\n for (let item of _data[\"documenti\"])\r\n this.documenti!.push(TripAttachedDoc.fromJS(item));\r\n }\r\n else {\r\n this.documenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripAttachedDocCategory {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripAttachedDocCategory();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (Array.isArray(this.documenti)) {\r\n data[\"documenti\"] = [];\r\n for (let item of this.documenti)\r\n data[\"documenti\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripAttachedDocCategory {\r\n nome?: string | null;\r\n documenti?: TripAttachedDoc[];\r\n}\r\n\r\nexport class TripAttachedDoc implements ITripAttachedDoc {\r\n id?: number;\r\n nome?: string | null;\r\n selezionato?: boolean;\r\n allegato?: string | null;\r\n dimensioni?: number | null;\r\n url?: string | null;\r\n ordine?: number;\r\n\r\n constructor(data?: ITripAttachedDoc) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.selezionato = _data[\"selezionato\"] !== undefined ? _data[\"selezionato\"] : null;\r\n this.allegato = _data[\"allegato\"] !== undefined ? _data[\"allegato\"] : null;\r\n this.dimensioni = _data[\"dimensioni\"] !== undefined ? _data[\"dimensioni\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripAttachedDoc {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripAttachedDoc();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"selezionato\"] = this.selezionato !== undefined ? this.selezionato : null;\r\n data[\"allegato\"] = this.allegato !== undefined ? this.allegato : null;\r\n data[\"dimensioni\"] = this.dimensioni !== undefined ? this.dimensioni : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripAttachedDoc {\r\n id?: number;\r\n nome?: string | null;\r\n selezionato?: boolean;\r\n allegato?: string | null;\r\n dimensioni?: number | null;\r\n url?: string | null;\r\n ordine?: number;\r\n}\r\n\r\nexport class TripAgencyDocuments implements ITripAgencyDocuments {\r\n offerta?: TripDocument | null;\r\n preventivoCliente?: TripDocument | null;\r\n preventivoClientePlus?: TripDocument | null;\r\n conferma?: TripDocument | null;\r\n estrattoConto?: TripDocument | null;\r\n programma?: TripDocument | null;\r\n documentiOnline?: TripDocument[] | null;\r\n documentiAllegati?: TripDocument[] | null;\r\n consentiStampaVoucher?: boolean;\r\n confermaProvvisoria?: TripDocument | null;\r\n confermaCliente?: TripDocument | null;\r\n\r\n constructor(data?: ITripAgencyDocuments) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offerta = _data[\"offerta\"] ? TripDocument.fromJS(_data[\"offerta\"]) : null;\r\n this.preventivoCliente = _data[\"preventivoCliente\"] ? TripDocument.fromJS(_data[\"preventivoCliente\"]) : null;\r\n this.preventivoClientePlus = _data[\"preventivoClientePlus\"] ? TripDocument.fromJS(_data[\"preventivoClientePlus\"]) : null;\r\n this.conferma = _data[\"conferma\"] ? TripDocument.fromJS(_data[\"conferma\"]) : null;\r\n this.estrattoConto = _data[\"estrattoConto\"] ? TripDocument.fromJS(_data[\"estrattoConto\"]) : null;\r\n this.programma = _data[\"programma\"] ? TripDocument.fromJS(_data[\"programma\"]) : null;\r\n if (Array.isArray(_data[\"documentiOnline\"])) {\r\n this.documentiOnline = [] as any;\r\n for (let item of _data[\"documentiOnline\"])\r\n this.documentiOnline!.push(TripDocument.fromJS(item));\r\n }\r\n else {\r\n this.documentiOnline = null;\r\n }\r\n if (Array.isArray(_data[\"documentiAllegati\"])) {\r\n this.documentiAllegati = [] as any;\r\n for (let item of _data[\"documentiAllegati\"])\r\n this.documentiAllegati!.push(TripDocument.fromJS(item));\r\n }\r\n else {\r\n this.documentiAllegati = null;\r\n }\r\n this.consentiStampaVoucher = _data[\"consentiStampaVoucher\"] !== undefined ? _data[\"consentiStampaVoucher\"] : null;\r\n this.confermaProvvisoria = _data[\"confermaProvvisoria\"] ? TripDocument.fromJS(_data[\"confermaProvvisoria\"]) : null;\r\n this.confermaCliente = _data[\"confermaCliente\"] ? TripDocument.fromJS(_data[\"confermaCliente\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripAgencyDocuments {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripAgencyDocuments();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"preventivoCliente\"] = this.preventivoCliente ? this.preventivoCliente.toJSON() : null;\r\n data[\"preventivoClientePlus\"] = this.preventivoClientePlus ? this.preventivoClientePlus.toJSON() : null;\r\n data[\"conferma\"] = this.conferma ? this.conferma.toJSON() : null;\r\n data[\"estrattoConto\"] = this.estrattoConto ? this.estrattoConto.toJSON() : null;\r\n data[\"programma\"] = this.programma ? this.programma.toJSON() : null;\r\n if (Array.isArray(this.documentiOnline)) {\r\n data[\"documentiOnline\"] = [];\r\n for (let item of this.documentiOnline)\r\n data[\"documentiOnline\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.documentiAllegati)) {\r\n data[\"documentiAllegati\"] = [];\r\n for (let item of this.documentiAllegati)\r\n data[\"documentiAllegati\"].push(item.toJSON());\r\n }\r\n data[\"consentiStampaVoucher\"] = this.consentiStampaVoucher !== undefined ? this.consentiStampaVoucher : null;\r\n data[\"confermaProvvisoria\"] = this.confermaProvvisoria ? this.confermaProvvisoria.toJSON() : null;\r\n data[\"confermaCliente\"] = this.confermaCliente ? this.confermaCliente.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripAgencyDocuments {\r\n offerta?: TripDocument | null;\r\n preventivoCliente?: TripDocument | null;\r\n preventivoClientePlus?: TripDocument | null;\r\n conferma?: TripDocument | null;\r\n estrattoConto?: TripDocument | null;\r\n programma?: TripDocument | null;\r\n documentiOnline?: TripDocument[] | null;\r\n documentiAllegati?: TripDocument[] | null;\r\n consentiStampaVoucher?: boolean;\r\n confermaProvvisoria?: TripDocument | null;\r\n confermaCliente?: TripDocument | null;\r\n}\r\n\r\nexport enum EServizioAutomatico {\r\n Nessuno = \"Nessuno\",\r\n RinunciaWeCareYouSmile = \"RinunciaWeCareYouSmile\",\r\n SpeseMediche100K = \"SpeseMediche100K\",\r\n SpeseMediche300K = \"SpeseMediche300K\",\r\n SpeseMediche500K = \"SpeseMediche500K\",\r\n SpeseMediche1M = \"SpeseMediche1M\",\r\n WeCareYouSmilePlus = \"WeCareYouSmilePlus\",\r\n MedicoBagaglioBase = \"MedicoBagaglioBase\",\r\n QuoteNaar = \"QuoteNaar\",\r\n QuoteOnline = \"QuoteOnline\",\r\n UpgradeQuoteOnline = \"UpgradeQuoteOnline\",\r\n RinunciaBloccaPrezzo = \"RinunciaBloccaPrezzo\",\r\n DirittiAgenzia = \"DirittiAgenzia\",\r\n DirittiAgenziaSuBiglietteria = \"DirittiAgenziaSuBiglietteria\",\r\n QuoteOnlineFrance = \"QuoteOnlineFrance\",\r\n QuoteNaarFrance = \"QuoteNaarFrance\",\r\n PolizzaFr1 = \"PolizzaFr1\",\r\n PolizzaFr2 = \"PolizzaFr2\",\r\n PolizzaFr3 = \"PolizzaFr3\",\r\n CostiCancellazione = \"CostiCancellazione\",\r\n QuoteOnlineBenelux = \"QuoteOnlineBenelux\",\r\n QuoteNaarBenelux = \"QuoteNaarBenelux\",\r\n QuoteOnlineGermany = \"QuoteOnlineGermany\",\r\n QuoteNaarGermany = \"QuoteNaarGermany\",\r\n PeaceOfMind = \"PeaceOfMind\",\r\n EuropAssistanceOpzionale = \"EuropAssistanceOpzionale\",\r\n EuropAssistance300K = \"EuropAssistance300K\",\r\n EuropAssistance500K = \"EuropAssistance500K\",\r\n EuropAssistanceIllimitato = \"EuropAssistanceIllimitato\",\r\n RinunciaPeaceOfMind = \"RinunciaPeaceOfMind\",\r\n}\r\n\r\nexport class TripGetRequest extends SiteRequest implements ITripGetRequest {\r\n /** ID dell'offerta di riferimento */\r\n offertaID!: number;\r\n resetPriceDispo?: boolean;\r\n\r\n constructor(data?: ITripGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.resetPriceDispo = _data[\"resetPriceDispo\"] !== undefined ? _data[\"resetPriceDispo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"resetPriceDispo\"] = this.resetPriceDispo !== undefined ? this.resetPriceDispo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripGetRequest extends ISiteRequest {\r\n /** ID dell'offerta di riferimento */\r\n offertaID: number;\r\n resetPriceDispo?: boolean;\r\n}\r\n\r\nexport class ConvertTraducibileRequest extends TripGetRequest implements IConvertTraducibileRequest {\r\n documentoID?: number;\r\n\r\n constructor(data?: IConvertTraducibileRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConvertTraducibileRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConvertTraducibileRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConvertTraducibileRequest extends ITripGetRequest {\r\n documentoID?: number;\r\n}\r\n\r\n/** Riposta alla stampa: tutta l'offerta + l'id del documento creato */\r\nexport class DocumentPrintResponse extends TripGetResponse implements IDocumentPrintResponse {\r\n /** ID del documento che è stato creato */\r\n documentoID?: number;\r\n\r\n constructor(data?: IDocumentPrintResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentPrintResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentPrintResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Riposta alla stampa: tutta l'offerta + l'id del documento creato */\r\nexport interface IDocumentPrintResponse extends ITripGetResponse {\r\n /** ID del documento che è stato creato */\r\n documentoID?: number;\r\n}\r\n\r\n/** Richiesta di stampa di un documento per un'offerta */\r\nexport class DocumentPrintRequest extends TripGetRequest implements IDocumentPrintRequest {\r\n /** Tipo di documento da stampare */\r\n tipoDocumento!: ETipoDocumento;\r\n /** ID del documento che verrà convertito */\r\n documentoID?: number | null;\r\n /** Stringa con le tuple [id_ordine] separate da virgola delle miniguide da usare nel documento */\r\n extraDocs?: string;\r\n\r\n constructor(data?: IDocumentPrintRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.extraDocs = _data[\"extraDocs\"] !== undefined ? _data[\"extraDocs\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentPrintRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentPrintRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"extraDocs\"] = this.extraDocs !== undefined ? this.extraDocs : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Richiesta di stampa di un documento per un'offerta */\r\nexport interface IDocumentPrintRequest extends ITripGetRequest {\r\n /** Tipo di documento da stampare */\r\n tipoDocumento: ETipoDocumento;\r\n /** ID del documento che verrà convertito */\r\n documentoID?: number | null;\r\n /** Stringa con le tuple [id_ordine] separate da virgola delle miniguide da usare nel documento */\r\n extraDocs?: string;\r\n}\r\n\r\nexport class CreateReservationDocumentResponse extends TripGetResponse implements ICreateReservationDocumentResponse {\r\n\r\n constructor(data?: ICreateReservationDocumentResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): CreateReservationDocumentResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateReservationDocumentResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateReservationDocumentResponse extends ITripGetResponse {\r\n}\r\n\r\nexport class CreateReservationDocumentRequest extends TripGetRequest implements ICreateReservationDocumentRequest {\r\n /** Underscore separated string: \"contactID_currencyID\" */\r\n contactAndCurrency!: string[];\r\n\r\n constructor(data?: ICreateReservationDocumentRequest) {\r\n super(data);\r\n if (!data) {\r\n this.contactAndCurrency = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"contactAndCurrency\"])) {\r\n this.contactAndCurrency = [] as any;\r\n for (let item of _data[\"contactAndCurrency\"])\r\n this.contactAndCurrency!.push(item);\r\n }\r\n else {\r\n this.contactAndCurrency = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateReservationDocumentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateReservationDocumentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.contactAndCurrency)) {\r\n data[\"contactAndCurrency\"] = [];\r\n for (let item of this.contactAndCurrency)\r\n data[\"contactAndCurrency\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateReservationDocumentRequest extends ITripGetRequest {\r\n /** Underscore separated string: \"contactID_currencyID\" */\r\n contactAndCurrency: string[];\r\n}\r\n\r\nexport class EditDocumentResponse extends OkApiResponse implements IEditDocumentResponse {\r\n /** Contenuto HTML del documento */\r\n content?: string;\r\n /** Link completo del CSS del documento */\r\n cssUrl?: string | null;\r\n /** Titolo del documento */\r\n title?: string | null;\r\n /** Link alla favicon */\r\n favIconUrl?: string | null;\r\n /** Lista dei css \"extra\" */\r\n extraCssUrls?: string[] | null;\r\n\r\n constructor(data?: IEditDocumentResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.content = _data[\"content\"] !== undefined ? _data[\"content\"] : null;\r\n this.cssUrl = _data[\"cssUrl\"] !== undefined ? _data[\"cssUrl\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.favIconUrl = _data[\"favIconUrl\"] !== undefined ? _data[\"favIconUrl\"] : null;\r\n if (Array.isArray(_data[\"extraCssUrls\"])) {\r\n this.extraCssUrls = [] as any;\r\n for (let item of _data[\"extraCssUrls\"])\r\n this.extraCssUrls!.push(item);\r\n }\r\n else {\r\n this.extraCssUrls = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): EditDocumentResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EditDocumentResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"content\"] = this.content !== undefined ? this.content : null;\r\n data[\"cssUrl\"] = this.cssUrl !== undefined ? this.cssUrl : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"favIconUrl\"] = this.favIconUrl !== undefined ? this.favIconUrl : null;\r\n if (Array.isArray(this.extraCssUrls)) {\r\n data[\"extraCssUrls\"] = [];\r\n for (let item of this.extraCssUrls)\r\n data[\"extraCssUrls\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEditDocumentResponse extends IOkApiResponse {\r\n /** Contenuto HTML del documento */\r\n content?: string;\r\n /** Link completo del CSS del documento */\r\n cssUrl?: string | null;\r\n /** Titolo del documento */\r\n title?: string | null;\r\n /** Link alla favicon */\r\n favIconUrl?: string | null;\r\n /** Lista dei css \"extra\" */\r\n extraCssUrls?: string[] | null;\r\n}\r\n\r\nexport class EditDocumentRequest extends LocalizedRequest implements IEditDocumentRequest {\r\n /** ID del documento da editare */\r\n documentoID?: number;\r\n\r\n constructor(data?: IEditDocumentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EditDocumentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EditDocumentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEditDocumentRequest extends ILocalizedRequest {\r\n /** ID del documento da editare */\r\n documentoID?: number;\r\n}\r\n\r\nexport class GetDocumentoFrasiResponse extends OkApiResponse implements IGetDocumentoFrasiResponse {\r\n contatti?: IdValore[];\r\n accordi?: IdValore[];\r\n servizi?: IdValore[];\r\n luoghi?: IdValore[];\r\n sezioni?: SezioneView[];\r\n\r\n constructor(data?: IGetDocumentoFrasiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"contatti\"])) {\r\n this.contatti = [] as any;\r\n for (let item of _data[\"contatti\"])\r\n this.contatti!.push(IdValore.fromJS(item));\r\n }\r\n else {\r\n this.contatti = null;\r\n }\r\n if (Array.isArray(_data[\"accordi\"])) {\r\n this.accordi = [] as any;\r\n for (let item of _data[\"accordi\"])\r\n this.accordi!.push(IdValore.fromJS(item));\r\n }\r\n else {\r\n this.accordi = null;\r\n }\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(IdValore.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n if (Array.isArray(_data[\"luoghi\"])) {\r\n this.luoghi = [] as any;\r\n for (let item of _data[\"luoghi\"])\r\n this.luoghi!.push(IdValore.fromJS(item));\r\n }\r\n else {\r\n this.luoghi = null;\r\n }\r\n if (Array.isArray(_data[\"sezioni\"])) {\r\n this.sezioni = [] as any;\r\n for (let item of _data[\"sezioni\"])\r\n this.sezioni!.push(SezioneView.fromJS(item));\r\n }\r\n else {\r\n this.sezioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDocumentoFrasiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDocumentoFrasiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.contatti)) {\r\n data[\"contatti\"] = [];\r\n for (let item of this.contatti)\r\n data[\"contatti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.accordi)) {\r\n data[\"accordi\"] = [];\r\n for (let item of this.accordi)\r\n data[\"accordi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.luoghi)) {\r\n data[\"luoghi\"] = [];\r\n for (let item of this.luoghi)\r\n data[\"luoghi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.sezioni)) {\r\n data[\"sezioni\"] = [];\r\n for (let item of this.sezioni)\r\n data[\"sezioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDocumentoFrasiResponse extends IOkApiResponse {\r\n contatti?: IdValore[];\r\n accordi?: IdValore[];\r\n servizi?: IdValore[];\r\n luoghi?: IdValore[];\r\n sezioni?: SezioneView[];\r\n}\r\n\r\nexport class SezioneView implements ISezioneView {\r\n id?: number;\r\n nome?: string;\r\n editabile?: boolean;\r\n giorni?: GiornoSezioneView[];\r\n\r\n constructor(data?: ISezioneView) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.editabile = _data[\"editabile\"] !== undefined ? _data[\"editabile\"] : null;\r\n if (Array.isArray(_data[\"giorni\"])) {\r\n this.giorni = [] as any;\r\n for (let item of _data[\"giorni\"])\r\n this.giorni!.push(GiornoSezioneView.fromJS(item));\r\n }\r\n else {\r\n this.giorni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SezioneView {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SezioneView();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"editabile\"] = this.editabile !== undefined ? this.editabile : null;\r\n if (Array.isArray(this.giorni)) {\r\n data[\"giorni\"] = [];\r\n for (let item of this.giorni)\r\n data[\"giorni\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISezioneView {\r\n id?: number;\r\n nome?: string;\r\n editabile?: boolean;\r\n giorni?: GiornoSezioneView[];\r\n}\r\n\r\nexport class GiornoSezioneView implements IGiornoSezioneView {\r\n giorno?: number | null;\r\n data?: string | null;\r\n luoghi?: string | null;\r\n luoghiIds?: number[] | null;\r\n serviziIds?: number[] | null;\r\n contattiIds?: number[] | null;\r\n sottosezioni?: SottozioneGiornoView[];\r\n\r\n constructor(data?: IGiornoSezioneView) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.luoghi = _data[\"luoghi\"] !== undefined ? _data[\"luoghi\"] : null;\r\n if (Array.isArray(_data[\"luoghiIds\"])) {\r\n this.luoghiIds = [] as any;\r\n for (let item of _data[\"luoghiIds\"])\r\n this.luoghiIds!.push(item);\r\n }\r\n else {\r\n this.luoghiIds = null;\r\n }\r\n if (Array.isArray(_data[\"serviziIds\"])) {\r\n this.serviziIds = [] as any;\r\n for (let item of _data[\"serviziIds\"])\r\n this.serviziIds!.push(item);\r\n }\r\n else {\r\n this.serviziIds = null;\r\n }\r\n if (Array.isArray(_data[\"contattiIds\"])) {\r\n this.contattiIds = [] as any;\r\n for (let item of _data[\"contattiIds\"])\r\n this.contattiIds!.push(item);\r\n }\r\n else {\r\n this.contattiIds = null;\r\n }\r\n if (Array.isArray(_data[\"sottosezioni\"])) {\r\n this.sottosezioni = [] as any;\r\n for (let item of _data[\"sottosezioni\"])\r\n this.sottosezioni!.push(SottozioneGiornoView.fromJS(item));\r\n }\r\n else {\r\n this.sottosezioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GiornoSezioneView {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GiornoSezioneView();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"luoghi\"] = this.luoghi !== undefined ? this.luoghi : null;\r\n if (Array.isArray(this.luoghiIds)) {\r\n data[\"luoghiIds\"] = [];\r\n for (let item of this.luoghiIds)\r\n data[\"luoghiIds\"].push(item);\r\n }\r\n if (Array.isArray(this.serviziIds)) {\r\n data[\"serviziIds\"] = [];\r\n for (let item of this.serviziIds)\r\n data[\"serviziIds\"].push(item);\r\n }\r\n if (Array.isArray(this.contattiIds)) {\r\n data[\"contattiIds\"] = [];\r\n for (let item of this.contattiIds)\r\n data[\"contattiIds\"].push(item);\r\n }\r\n if (Array.isArray(this.sottosezioni)) {\r\n data[\"sottosezioni\"] = [];\r\n for (let item of this.sottosezioni)\r\n data[\"sottosezioni\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGiornoSezioneView {\r\n giorno?: number | null;\r\n data?: string | null;\r\n luoghi?: string | null;\r\n luoghiIds?: number[] | null;\r\n serviziIds?: number[] | null;\r\n contattiIds?: number[] | null;\r\n sottosezioni?: SottozioneGiornoView[];\r\n}\r\n\r\nexport class SottozioneGiornoView implements ISottozioneGiornoView {\r\n id?: number | null;\r\n nome?: string | null;\r\n frasi?: FraseSottosezione[];\r\n\r\n constructor(data?: ISottozioneGiornoView) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (Array.isArray(_data[\"frasi\"])) {\r\n this.frasi = [] as any;\r\n for (let item of _data[\"frasi\"])\r\n this.frasi!.push(FraseSottosezione.fromJS(item));\r\n }\r\n else {\r\n this.frasi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SottozioneGiornoView {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SottozioneGiornoView();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (Array.isArray(this.frasi)) {\r\n data[\"frasi\"] = [];\r\n for (let item of this.frasi)\r\n data[\"frasi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISottozioneGiornoView {\r\n id?: number | null;\r\n nome?: string | null;\r\n frasi?: FraseSottosezione[];\r\n}\r\n\r\nexport class FraseSottosezione implements IFraseSottosezione {\r\n id?: number;\r\n /** ID dell'articolo associato. Se presente il testo deriva da un articolo */\r\n articoloID?: number | null;\r\n /** ID della frase. Se presente il testo deriva da una frase */\r\n fraseID?: number | null;\r\n /** ID del contatto associato, opzionale */\r\n contattoID?: number | null;\r\n /** ID dell'accordo associato, opzionale */\r\n accordoID?: number | null;\r\n /** ID del servizio associato, opzionale */\r\n servizioID?: number | null;\r\n /** ID della riga di offerta associata, opzionale */\r\n rigaID?: number | null;\r\n /** ID del luogo associato, opzionale */\r\n luogoID?: number | null;\r\n /** Terminatore da utilizzare */\r\n terminatore?: EFraseTerminatore;\r\n /** Testo non formattato */\r\n testo?: string;\r\n /** Dizionario delle variabili e rispettivi valori */\r\n variabili?: { [key: string]: VariabileValore; } | null;\r\n frase?: Frase | null;\r\n\r\n constructor(data?: IFraseSottosezione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.terminatore = _data[\"terminatore\"] !== undefined ? _data[\"terminatore\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n if (_data[\"variabili\"]) {\r\n this.variabili = {} as any;\r\n for (let key in _data[\"variabili\"]) {\r\n if (_data[\"variabili\"].hasOwnProperty(key))\r\n (this.variabili)![key] = _data[\"variabili\"][key] ? VariabileValore.fromJS(_data[\"variabili\"][key]) : new VariabileValore();\r\n }\r\n }\r\n else {\r\n this.variabili = null;\r\n }\r\n this.frase = _data[\"frase\"] ? Frase.fromJS(_data[\"frase\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FraseSottosezione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FraseSottosezione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"terminatore\"] = this.terminatore !== undefined ? this.terminatore : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n if (this.variabili) {\r\n data[\"variabili\"] = {};\r\n for (let key in this.variabili) {\r\n if (this.variabili.hasOwnProperty(key))\r\n (data[\"variabili\"])[key] = this.variabili[key] ? this.variabili[key].toJSON() : null;\r\n }\r\n }\r\n data[\"frase\"] = this.frase ? this.frase.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFraseSottosezione {\r\n id?: number;\r\n /** ID dell'articolo associato. Se presente il testo deriva da un articolo */\r\n articoloID?: number | null;\r\n /** ID della frase. Se presente il testo deriva da una frase */\r\n fraseID?: number | null;\r\n /** ID del contatto associato, opzionale */\r\n contattoID?: number | null;\r\n /** ID dell'accordo associato, opzionale */\r\n accordoID?: number | null;\r\n /** ID del servizio associato, opzionale */\r\n servizioID?: number | null;\r\n /** ID della riga di offerta associata, opzionale */\r\n rigaID?: number | null;\r\n /** ID del luogo associato, opzionale */\r\n luogoID?: number | null;\r\n /** Terminatore da utilizzare */\r\n terminatore?: EFraseTerminatore;\r\n /** Testo non formattato */\r\n testo?: string;\r\n /** Dizionario delle variabili e rispettivi valori */\r\n variabili?: { [key: string]: VariabileValore; } | null;\r\n frase?: Frase | null;\r\n}\r\n\r\nexport class GetDocumentoFrasiRequest extends LocalizedRequest implements IGetDocumentoFrasiRequest {\r\n documentoID?: number;\r\n\r\n constructor(data?: IGetDocumentoFrasiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDocumentoFrasiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDocumentoFrasiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDocumentoFrasiRequest extends ILocalizedRequest {\r\n documentoID?: number;\r\n}\r\n\r\nexport class UpdateDocumentRequest extends LocalizedRequest implements IUpdateDocumentRequest {\r\n /** ID del documento */\r\n documentoID?: number;\r\n /** Contenuto HTML del documento */\r\n content!: string;\r\n /** Link completo del CSS del documento */\r\n cssUrl?: string | null;\r\n /** Titolo del documento */\r\n title?: string | null;\r\n /** Link alla favicon */\r\n favIconUrl?: string | null;\r\n /** Lista dei css \"extra\" */\r\n extraCssUrls?: string[] | null;\r\n\r\n constructor(data?: IUpdateDocumentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.content = _data[\"content\"] !== undefined ? _data[\"content\"] : null;\r\n this.cssUrl = _data[\"cssUrl\"] !== undefined ? _data[\"cssUrl\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.favIconUrl = _data[\"favIconUrl\"] !== undefined ? _data[\"favIconUrl\"] : null;\r\n if (Array.isArray(_data[\"extraCssUrls\"])) {\r\n this.extraCssUrls = [] as any;\r\n for (let item of _data[\"extraCssUrls\"])\r\n this.extraCssUrls!.push(item);\r\n }\r\n else {\r\n this.extraCssUrls = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateDocumentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDocumentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"content\"] = this.content !== undefined ? this.content : null;\r\n data[\"cssUrl\"] = this.cssUrl !== undefined ? this.cssUrl : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"favIconUrl\"] = this.favIconUrl !== undefined ? this.favIconUrl : null;\r\n if (Array.isArray(this.extraCssUrls)) {\r\n data[\"extraCssUrls\"] = [];\r\n for (let item of this.extraCssUrls)\r\n data[\"extraCssUrls\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDocumentRequest extends ILocalizedRequest {\r\n /** ID del documento */\r\n documentoID?: number;\r\n /** Contenuto HTML del documento */\r\n content: string;\r\n /** Link completo del CSS del documento */\r\n cssUrl?: string | null;\r\n /** Titolo del documento */\r\n title?: string | null;\r\n /** Link alla favicon */\r\n favIconUrl?: string | null;\r\n /** Lista dei css \"extra\" */\r\n extraCssUrls?: string[] | null;\r\n}\r\n\r\nexport class UpdateDocumentPhrasesResponse extends GetDocumentoFrasiResponse implements IUpdateDocumentPhrasesResponse {\r\n\r\n constructor(data?: IUpdateDocumentPhrasesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UpdateDocumentPhrasesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDocumentPhrasesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDocumentPhrasesResponse extends IGetDocumentoFrasiResponse {\r\n}\r\n\r\nexport class UpdateDocumentPhrasesRequest extends GetDocumentoFrasiRequest implements IUpdateDocumentPhrasesRequest {\r\n sezioni!: SezioneView[];\r\n\r\n constructor(data?: IUpdateDocumentPhrasesRequest) {\r\n super(data);\r\n if (!data) {\r\n this.sezioni = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"sezioni\"])) {\r\n this.sezioni = [] as any;\r\n for (let item of _data[\"sezioni\"])\r\n this.sezioni!.push(SezioneView.fromJS(item));\r\n }\r\n else {\r\n this.sezioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateDocumentPhrasesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDocumentPhrasesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.sezioni)) {\r\n data[\"sezioni\"] = [];\r\n for (let item of this.sezioni)\r\n data[\"sezioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDocumentPhrasesRequest extends IGetDocumentoFrasiRequest {\r\n sezioni: SezioneView[];\r\n}\r\n\r\nexport class UpdateExtraDocsRequest extends TripGetRequest implements IUpdateExtraDocsRequest {\r\n /** ID del documento */\r\n documentoID?: number;\r\n /** Stringa degli extra docs formato ID_Ordine,... */\r\n extraDocsString!: string;\r\n\r\n constructor(data?: IUpdateExtraDocsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.extraDocsString = _data[\"extraDocsString\"] !== undefined ? _data[\"extraDocsString\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateExtraDocsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateExtraDocsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"extraDocsString\"] = this.extraDocsString !== undefined ? this.extraDocsString : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateExtraDocsRequest extends ITripGetRequest {\r\n /** ID del documento */\r\n documentoID?: number;\r\n /** Stringa degli extra docs formato ID_Ordine,... */\r\n extraDocsString: string;\r\n}\r\n\r\nexport class GetEmailResponse extends OkApiResponse implements IGetEmailResponse {\r\n email?: EmailQueue | null;\r\n toRecipients?: string | null;\r\n ccRecipients?: string | null;\r\n bccRecipients?: string | null;\r\n attachments?: EmailAttachmentInfo[] | null;\r\n\r\n constructor(data?: IGetEmailResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.email = _data[\"email\"] ? EmailQueue.fromJS(_data[\"email\"]) : null;\r\n this.toRecipients = _data[\"toRecipients\"] !== undefined ? _data[\"toRecipients\"] : null;\r\n this.ccRecipients = _data[\"ccRecipients\"] !== undefined ? _data[\"ccRecipients\"] : null;\r\n this.bccRecipients = _data[\"bccRecipients\"] !== undefined ? _data[\"bccRecipients\"] : null;\r\n if (Array.isArray(_data[\"attachments\"])) {\r\n this.attachments = [] as any;\r\n for (let item of _data[\"attachments\"])\r\n this.attachments!.push(EmailAttachmentInfo.fromJS(item));\r\n }\r\n else {\r\n this.attachments = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetEmailResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetEmailResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"email\"] = this.email ? this.email.toJSON() : null;\r\n data[\"toRecipients\"] = this.toRecipients !== undefined ? this.toRecipients : null;\r\n data[\"ccRecipients\"] = this.ccRecipients !== undefined ? this.ccRecipients : null;\r\n data[\"bccRecipients\"] = this.bccRecipients !== undefined ? this.bccRecipients : null;\r\n if (Array.isArray(this.attachments)) {\r\n data[\"attachments\"] = [];\r\n for (let item of this.attachments)\r\n data[\"attachments\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetEmailResponse extends IOkApiResponse {\r\n email?: EmailQueue | null;\r\n toRecipients?: string | null;\r\n ccRecipients?: string | null;\r\n bccRecipients?: string | null;\r\n attachments?: EmailAttachmentInfo[] | null;\r\n}\r\n\r\nexport class EmailAttachmentInfo implements IEmailAttachmentInfo {\r\n id?: number;\r\n attachment?: EmailQueueAttachment | null;\r\n\r\n constructor(data?: IEmailAttachmentInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.attachment = _data[\"attachment\"] ? EmailQueueAttachment.fromJS(_data[\"attachment\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EmailAttachmentInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EmailAttachmentInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"attachment\"] = this.attachment ? this.attachment.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmailAttachmentInfo {\r\n id?: number;\r\n attachment?: EmailQueueAttachment | null;\r\n}\r\n\r\nexport class EmailQueueAttachment implements IEmailQueueAttachment {\r\n id?: number;\r\n emailID?: number;\r\n attachmentType?: EEmailAttachmentType;\r\n entityID?: number | null;\r\n mimeType!: string;\r\n convertToPdf?: boolean;\r\n attachmentFileName!: string;\r\n\r\n constructor(data?: IEmailQueueAttachment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.emailID = _data[\"emailID\"] !== undefined ? _data[\"emailID\"] : null;\r\n this.attachmentType = _data[\"attachmentType\"] !== undefined ? _data[\"attachmentType\"] : null;\r\n this.entityID = _data[\"entityID\"] !== undefined ? _data[\"entityID\"] : null;\r\n this.mimeType = _data[\"mimeType\"] !== undefined ? _data[\"mimeType\"] : null;\r\n this.convertToPdf = _data[\"convertToPdf\"] !== undefined ? _data[\"convertToPdf\"] : null;\r\n this.attachmentFileName = _data[\"attachmentFileName\"] !== undefined ? _data[\"attachmentFileName\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EmailQueueAttachment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EmailQueueAttachment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"emailID\"] = this.emailID !== undefined ? this.emailID : null;\r\n data[\"attachmentType\"] = this.attachmentType !== undefined ? this.attachmentType : null;\r\n data[\"entityID\"] = this.entityID !== undefined ? this.entityID : null;\r\n data[\"mimeType\"] = this.mimeType !== undefined ? this.mimeType : null;\r\n data[\"convertToPdf\"] = this.convertToPdf !== undefined ? this.convertToPdf : null;\r\n data[\"attachmentFileName\"] = this.attachmentFileName !== undefined ? this.attachmentFileName : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmailQueueAttachment {\r\n id?: number;\r\n emailID?: number;\r\n attachmentType?: EEmailAttachmentType;\r\n entityID?: number | null;\r\n mimeType: string;\r\n convertToPdf?: boolean;\r\n attachmentFileName: string;\r\n}\r\n\r\nexport enum EEmailAttachmentType {\r\n Custom = \"Custom\",\r\n DocumentoOfferta = \"DocumentoOfferta\",\r\n DocumentoContabile = \"DocumentoContabile\",\r\n Voucher = \"Voucher\",\r\n}\r\n\r\nexport class GetEmailRequest extends LocalizedRequest implements IGetEmailRequest {\r\n emailID?: number;\r\n\r\n constructor(data?: IGetEmailRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.emailID = _data[\"emailID\"] !== undefined ? _data[\"emailID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetEmailRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetEmailRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"emailID\"] = this.emailID !== undefined ? this.emailID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetEmailRequest extends ILocalizedRequest {\r\n emailID?: number;\r\n}\r\n\r\nexport class CreateErrorRequest extends ApiRequest implements ICreateErrorRequest {\r\n /** In che controller */\r\n controller?: string | null;\r\n /** Dove è avvenuto l'errore */\r\n action?: string | null;\r\n /** Con quali parametri */\r\n request?: string | null;\r\n /** Che messaggio è stato visualizzato */\r\n message?: string | null;\r\n /** Informazioni aggiuntive sintetiche */\r\n info?: string | null;\r\n /** Se l'errore è stato gestito dall'applicazione */\r\n isApplicationHandled?: boolean;\r\n\r\n constructor(data?: ICreateErrorRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.controller = _data[\"controller\"] !== undefined ? _data[\"controller\"] : null;\r\n this.action = _data[\"action\"] !== undefined ? _data[\"action\"] : null;\r\n this.request = _data[\"request\"] !== undefined ? _data[\"request\"] : null;\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n this.info = _data[\"info\"] !== undefined ? _data[\"info\"] : null;\r\n this.isApplicationHandled = _data[\"isApplicationHandled\"] !== undefined ? _data[\"isApplicationHandled\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateErrorRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateErrorRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"controller\"] = this.controller !== undefined ? this.controller : null;\r\n data[\"action\"] = this.action !== undefined ? this.action : null;\r\n data[\"request\"] = this.request !== undefined ? this.request : null;\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n data[\"info\"] = this.info !== undefined ? this.info : null;\r\n data[\"isApplicationHandled\"] = this.isApplicationHandled !== undefined ? this.isApplicationHandled : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateErrorRequest extends IApiRequest {\r\n /** In che controller */\r\n controller?: string | null;\r\n /** Dove è avvenuto l'errore */\r\n action?: string | null;\r\n /** Con quali parametri */\r\n request?: string | null;\r\n /** Che messaggio è stato visualizzato */\r\n message?: string | null;\r\n /** Informazioni aggiuntive sintetiche */\r\n info?: string | null;\r\n /** Se l'errore è stato gestito dall'applicazione */\r\n isApplicationHandled?: boolean;\r\n}\r\n\r\nexport class DeleteErrorRequest extends ApiRequest implements IDeleteErrorRequest {\r\n errorID!: number;\r\n\r\n constructor(data?: IDeleteErrorRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.errorID = _data[\"errorID\"] !== undefined ? _data[\"errorID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteErrorRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteErrorRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"errorID\"] = this.errorID !== undefined ? this.errorID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteErrorRequest extends IApiRequest {\r\n errorID: number;\r\n}\r\n\r\nexport class DeleteErrorMultiRequest extends ApiRequest implements IDeleteErrorMultiRequest {\r\n errorIDs!: number[];\r\n\r\n constructor(data?: IDeleteErrorMultiRequest) {\r\n super(data);\r\n if (!data) {\r\n this.errorIDs = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"errorIDs\"])) {\r\n this.errorIDs = [] as any;\r\n for (let item of _data[\"errorIDs\"])\r\n this.errorIDs!.push(item);\r\n }\r\n else {\r\n this.errorIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteErrorMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteErrorMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.errorIDs)) {\r\n data[\"errorIDs\"] = [];\r\n for (let item of this.errorIDs)\r\n data[\"errorIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteErrorMultiRequest extends IApiRequest {\r\n errorIDs: number[];\r\n}\r\n\r\nexport class NrTableResponseOfErrorRow extends OkApiResponse implements INrTableResponseOfErrorRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ErrorRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfErrorRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ErrorRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfErrorRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfErrorRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfErrorRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ErrorRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ErrorRow implements IErrorRow {\r\n errore?: Errore | null;\r\n utente?: string | null;\r\n\r\n constructor(data?: IErrorRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.errore = _data[\"errore\"] ? Errore.fromJS(_data[\"errore\"]) : null;\r\n this.utente = _data[\"utente\"] !== undefined ? _data[\"utente\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ErrorRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ErrorRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"errore\"] = this.errore ? this.errore.toJSON() : null;\r\n data[\"utente\"] = this.utente !== undefined ? this.utente : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IErrorRow {\r\n errore?: Errore | null;\r\n utente?: string | null;\r\n}\r\n\r\nexport class Errore implements IErrore {\r\n id?: number;\r\n date?: string;\r\n userID?: number | null;\r\n ip?: string | null;\r\n controller?: string;\r\n action?: string;\r\n routeData?: string | null;\r\n request?: string | null;\r\n referrer?: string | null;\r\n message?: string;\r\n info?: string | null;\r\n stackTrace?: string | null;\r\n isDebug?: boolean;\r\n isApplicationHandled?: boolean;\r\n\r\n constructor(data?: IErrore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.ip = _data[\"ip\"] !== undefined ? _data[\"ip\"] : null;\r\n this.controller = _data[\"controller\"] !== undefined ? _data[\"controller\"] : null;\r\n this.action = _data[\"action\"] !== undefined ? _data[\"action\"] : null;\r\n this.routeData = _data[\"routeData\"] !== undefined ? _data[\"routeData\"] : null;\r\n this.request = _data[\"request\"] !== undefined ? _data[\"request\"] : null;\r\n this.referrer = _data[\"referrer\"] !== undefined ? _data[\"referrer\"] : null;\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n this.info = _data[\"info\"] !== undefined ? _data[\"info\"] : null;\r\n this.stackTrace = _data[\"stackTrace\"] !== undefined ? _data[\"stackTrace\"] : null;\r\n this.isDebug = _data[\"isDebug\"] !== undefined ? _data[\"isDebug\"] : null;\r\n this.isApplicationHandled = _data[\"isApplicationHandled\"] !== undefined ? _data[\"isApplicationHandled\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Errore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Errore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"ip\"] = this.ip !== undefined ? this.ip : null;\r\n data[\"controller\"] = this.controller !== undefined ? this.controller : null;\r\n data[\"action\"] = this.action !== undefined ? this.action : null;\r\n data[\"routeData\"] = this.routeData !== undefined ? this.routeData : null;\r\n data[\"request\"] = this.request !== undefined ? this.request : null;\r\n data[\"referrer\"] = this.referrer !== undefined ? this.referrer : null;\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n data[\"info\"] = this.info !== undefined ? this.info : null;\r\n data[\"stackTrace\"] = this.stackTrace !== undefined ? this.stackTrace : null;\r\n data[\"isDebug\"] = this.isDebug !== undefined ? this.isDebug : null;\r\n data[\"isApplicationHandled\"] = this.isApplicationHandled !== undefined ? this.isApplicationHandled : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IErrore {\r\n id?: number;\r\n date?: string;\r\n userID?: number | null;\r\n ip?: string | null;\r\n controller?: string;\r\n action?: string;\r\n routeData?: string | null;\r\n request?: string | null;\r\n referrer?: string | null;\r\n message?: string;\r\n info?: string | null;\r\n stackTrace?: string | null;\r\n isDebug?: boolean;\r\n isApplicationHandled?: boolean;\r\n}\r\n\r\nexport class ErrorsListRequest extends NrTableRequest implements IErrorsListRequest {\r\n userID?: number | null;\r\n errorsFilter?: DebugErrorsFilter;\r\n handledFilter?: ApplicationHandledFilter;\r\n dateFromFilter?: string | null;\r\n dateToFilter?: string | null;\r\n controllerFilter?: string | null;\r\n actionFilter?: string | null;\r\n messageFilter?: string | null;\r\n\r\n constructor(data?: IErrorsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.errorsFilter = _data[\"errorsFilter\"] !== undefined ? _data[\"errorsFilter\"] : null;\r\n this.handledFilter = _data[\"handledFilter\"] !== undefined ? _data[\"handledFilter\"] : null;\r\n this.dateFromFilter = _data[\"dateFromFilter\"] !== undefined ? _data[\"dateFromFilter\"] : null;\r\n this.dateToFilter = _data[\"dateToFilter\"] !== undefined ? _data[\"dateToFilter\"] : null;\r\n this.controllerFilter = _data[\"controllerFilter\"] !== undefined ? _data[\"controllerFilter\"] : null;\r\n this.actionFilter = _data[\"actionFilter\"] !== undefined ? _data[\"actionFilter\"] : null;\r\n this.messageFilter = _data[\"messageFilter\"] !== undefined ? _data[\"messageFilter\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ErrorsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ErrorsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"errorsFilter\"] = this.errorsFilter !== undefined ? this.errorsFilter : null;\r\n data[\"handledFilter\"] = this.handledFilter !== undefined ? this.handledFilter : null;\r\n data[\"dateFromFilter\"] = this.dateFromFilter !== undefined ? this.dateFromFilter : null;\r\n data[\"dateToFilter\"] = this.dateToFilter !== undefined ? this.dateToFilter : null;\r\n data[\"controllerFilter\"] = this.controllerFilter !== undefined ? this.controllerFilter : null;\r\n data[\"actionFilter\"] = this.actionFilter !== undefined ? this.actionFilter : null;\r\n data[\"messageFilter\"] = this.messageFilter !== undefined ? this.messageFilter : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IErrorsListRequest extends INrTableRequest {\r\n userID?: number | null;\r\n errorsFilter?: DebugErrorsFilter;\r\n handledFilter?: ApplicationHandledFilter;\r\n dateFromFilter?: string | null;\r\n dateToFilter?: string | null;\r\n controllerFilter?: string | null;\r\n actionFilter?: string | null;\r\n messageFilter?: string | null;\r\n}\r\n\r\nexport enum DebugErrorsFilter {\r\n None = \"None\",\r\n DebugOnly = \"DebugOnly\",\r\n ProdOnly = \"ProdOnly\",\r\n}\r\n\r\nexport enum ApplicationHandledFilter {\r\n None = \"None\",\r\n Handled = \"Handled\",\r\n Unhandled = \"Unhandled\",\r\n}\r\n\r\nexport class NrTableResponseOfEstrattoContoReportRow extends OkApiResponse implements INrTableResponseOfEstrattoContoReportRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EstrattoContoReportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfEstrattoContoReportRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(EstrattoContoReportRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfEstrattoContoReportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfEstrattoContoReportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfEstrattoContoReportRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EstrattoContoReportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetEstrattoContoReportResponse extends NrTableResponseOfEstrattoContoReportRow implements IGetEstrattoContoReportResponse {\r\n totale?: number | null;\r\n totaleNetto?: number | null;\r\n totaleVersato?: number | null;\r\n totaleDaPagare?: number | null;\r\n totaleCommissione?: number | null;\r\n\r\n constructor(data?: IGetEstrattoContoReportResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.totaleNetto = _data[\"totaleNetto\"] !== undefined ? _data[\"totaleNetto\"] : null;\r\n this.totaleVersato = _data[\"totaleVersato\"] !== undefined ? _data[\"totaleVersato\"] : null;\r\n this.totaleDaPagare = _data[\"totaleDaPagare\"] !== undefined ? _data[\"totaleDaPagare\"] : null;\r\n this.totaleCommissione = _data[\"totaleCommissione\"] !== undefined ? _data[\"totaleCommissione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetEstrattoContoReportResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetEstrattoContoReportResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"totaleNetto\"] = this.totaleNetto !== undefined ? this.totaleNetto : null;\r\n data[\"totaleVersato\"] = this.totaleVersato !== undefined ? this.totaleVersato : null;\r\n data[\"totaleDaPagare\"] = this.totaleDaPagare !== undefined ? this.totaleDaPagare : null;\r\n data[\"totaleCommissione\"] = this.totaleCommissione !== undefined ? this.totaleCommissione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetEstrattoContoReportResponse extends INrTableResponseOfEstrattoContoReportRow {\r\n totale?: number | null;\r\n totaleNetto?: number | null;\r\n totaleVersato?: number | null;\r\n totaleDaPagare?: number | null;\r\n totaleCommissione?: number | null;\r\n}\r\n\r\nexport class EstrattoContoReportRow implements IEstrattoContoReportRow {\r\n offertaID?: number;\r\n agenziaID?: number | null;\r\n agenzia?: string | null;\r\n luogoAgenzia?: string | null;\r\n network?: string | null;\r\n pagamento?: string | null;\r\n pagamentoID?: number | null;\r\n descrizione?: string | null;\r\n partenza?: string;\r\n totale?: number | null;\r\n commissione?: number | null;\r\n netto?: number;\r\n versato?: number;\r\n daPagare?: number;\r\n\r\n constructor(data?: IEstrattoContoReportRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.agenziaID = _data[\"agenziaID\"] !== undefined ? _data[\"agenziaID\"] : null;\r\n this.agenzia = _data[\"agenzia\"] !== undefined ? _data[\"agenzia\"] : null;\r\n this.luogoAgenzia = _data[\"luogoAgenzia\"] !== undefined ? _data[\"luogoAgenzia\"] : null;\r\n this.network = _data[\"network\"] !== undefined ? _data[\"network\"] : null;\r\n this.pagamento = _data[\"pagamento\"] !== undefined ? _data[\"pagamento\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.commissione = _data[\"commissione\"] !== undefined ? _data[\"commissione\"] : null;\r\n this.netto = _data[\"netto\"] !== undefined ? _data[\"netto\"] : null;\r\n this.versato = _data[\"versato\"] !== undefined ? _data[\"versato\"] : null;\r\n this.daPagare = _data[\"daPagare\"] !== undefined ? _data[\"daPagare\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoContoReportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoContoReportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"agenziaID\"] = this.agenziaID !== undefined ? this.agenziaID : null;\r\n data[\"agenzia\"] = this.agenzia !== undefined ? this.agenzia : null;\r\n data[\"luogoAgenzia\"] = this.luogoAgenzia !== undefined ? this.luogoAgenzia : null;\r\n data[\"network\"] = this.network !== undefined ? this.network : null;\r\n data[\"pagamento\"] = this.pagamento !== undefined ? this.pagamento : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"commissione\"] = this.commissione !== undefined ? this.commissione : null;\r\n data[\"netto\"] = this.netto !== undefined ? this.netto : null;\r\n data[\"versato\"] = this.versato !== undefined ? this.versato : null;\r\n data[\"daPagare\"] = this.daPagare !== undefined ? this.daPagare : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoContoReportRow {\r\n offertaID?: number;\r\n agenziaID?: number | null;\r\n agenzia?: string | null;\r\n luogoAgenzia?: string | null;\r\n network?: string | null;\r\n pagamento?: string | null;\r\n pagamentoID?: number | null;\r\n descrizione?: string | null;\r\n partenza?: string;\r\n totale?: number | null;\r\n commissione?: number | null;\r\n netto?: number;\r\n versato?: number;\r\n daPagare?: number;\r\n}\r\n\r\nexport class GetEstrattoContoReportRequest extends NrTableRequest implements IGetEstrattoContoReportRequest {\r\n contattoID?: number | null;\r\n partitaIVA?: string | null;\r\n partenzaDa?: string | null;\r\n partenzaA?: string | null;\r\n pagamentoID?: number | null;\r\n opening?: boolean;\r\n\r\n constructor(data?: IGetEstrattoContoReportRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.partenzaDa = _data[\"partenzaDa\"] !== undefined ? _data[\"partenzaDa\"] : null;\r\n this.partenzaA = _data[\"partenzaA\"] !== undefined ? _data[\"partenzaA\"] : null;\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.opening = _data[\"opening\"] !== undefined ? _data[\"opening\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetEstrattoContoReportRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetEstrattoContoReportRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"partenzaDa\"] = this.partenzaDa !== undefined ? this.partenzaDa : null;\r\n data[\"partenzaA\"] = this.partenzaA !== undefined ? this.partenzaA : null;\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"opening\"] = this.opening !== undefined ? this.opening : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetEstrattoContoReportRequest extends INrTableRequest {\r\n contattoID?: number | null;\r\n partitaIVA?: string | null;\r\n partenzaDa?: string | null;\r\n partenzaA?: string | null;\r\n pagamentoID?: number | null;\r\n opening?: boolean;\r\n}\r\n\r\nexport class NrTableResponseOfEstrattoContoRow extends OkApiResponse implements INrTableResponseOfEstrattoContoRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EstrattoContoRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfEstrattoContoRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(EstrattoContoRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfEstrattoContoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfEstrattoContoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfEstrattoContoRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: EstrattoContoRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class EstrattoContoRow implements IEstrattoContoRow {\r\n id?: number;\r\n contattoID?: number;\r\n nome?: string | null;\r\n data?: string;\r\n tipo?: ETipoEstrattoConto;\r\n invio?: string | null;\r\n\r\n constructor(data?: IEstrattoContoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.invio = _data[\"invio\"] !== undefined ? _data[\"invio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoContoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoContoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"invio\"] = this.invio !== undefined ? this.invio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoContoRow {\r\n id?: number;\r\n contattoID?: number;\r\n nome?: string | null;\r\n data?: string;\r\n tipo?: ETipoEstrattoConto;\r\n invio?: string | null;\r\n}\r\n\r\nexport enum ETipoEstrattoConto {\r\n FineMese = \"FineMese\",\r\n Travelfactoring = \"Travelfactoring\",\r\n}\r\n\r\nexport class EstrattiContoSearchRequest extends NrTableRequest implements IEstrattiContoSearchRequest {\r\n operatore?: EOperatore;\r\n contattoID?: number | null;\r\n partitaIVA?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n\r\n constructor(data?: IEstrattiContoSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattiContoSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattiContoSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattiContoSearchRequest extends INrTableRequest {\r\n operatore?: EOperatore;\r\n contattoID?: number | null;\r\n partitaIVA?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n}\r\n\r\nexport class EstrattoContoReadResponse extends OkApiResponse implements IEstrattoContoReadResponse {\r\n estrattoConto?: EstrattoConto | null;\r\n incassi?: IncassoRow[] | null;\r\n contatto?: string | null;\r\n email?: string | null;\r\n pagamento?: string | null;\r\n scadenza?: string;\r\n\r\n constructor(data?: IEstrattoContoReadResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.estrattoConto = _data[\"estrattoConto\"] ? EstrattoConto.fromJS(_data[\"estrattoConto\"]) : null;\r\n if (Array.isArray(_data[\"incassi\"])) {\r\n this.incassi = [] as any;\r\n for (let item of _data[\"incassi\"])\r\n this.incassi!.push(IncassoRow.fromJS(item));\r\n }\r\n else {\r\n this.incassi = null;\r\n }\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.pagamento = _data[\"pagamento\"] !== undefined ? _data[\"pagamento\"] : null;\r\n this.scadenza = _data[\"scadenza\"] !== undefined ? _data[\"scadenza\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoContoReadResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoContoReadResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"estrattoConto\"] = this.estrattoConto ? this.estrattoConto.toJSON() : null;\r\n if (Array.isArray(this.incassi)) {\r\n data[\"incassi\"] = [];\r\n for (let item of this.incassi)\r\n data[\"incassi\"].push(item.toJSON());\r\n }\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"pagamento\"] = this.pagamento !== undefined ? this.pagamento : null;\r\n data[\"scadenza\"] = this.scadenza !== undefined ? this.scadenza : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoContoReadResponse extends IOkApiResponse {\r\n estrattoConto?: EstrattoConto | null;\r\n incassi?: IncassoRow[] | null;\r\n contatto?: string | null;\r\n email?: string | null;\r\n pagamento?: string | null;\r\n scadenza?: string;\r\n}\r\n\r\nexport class EstrattoConto implements IEstrattoConto {\r\n id?: number;\r\n operatore?: EOperatore;\r\n tipo?: ETipoEstrattoConto;\r\n contattoID?: number;\r\n data?: string;\r\n invio?: string | null;\r\n note?: string | null;\r\n bancaID?: number | null;\r\n\r\n constructor(data?: IEstrattoConto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.invio = _data[\"invio\"] !== undefined ? _data[\"invio\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.bancaID = _data[\"bancaID\"] !== undefined ? _data[\"bancaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoConto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoConto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"invio\"] = this.invio !== undefined ? this.invio : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"bancaID\"] = this.bancaID !== undefined ? this.bancaID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoConto {\r\n id?: number;\r\n operatore?: EOperatore;\r\n tipo?: ETipoEstrattoConto;\r\n contattoID?: number;\r\n data?: string;\r\n invio?: string | null;\r\n note?: string | null;\r\n bancaID?: number | null;\r\n}\r\n\r\nexport class IncassoRow implements IIncassoRow {\r\n incassoID?: number;\r\n offertaID?: number;\r\n offerta?: string | null;\r\n dataScadenza?: string | null;\r\n dataCessione?: string | null;\r\n dataPagamento?: string | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n banca?: string | null;\r\n tipoOperazione?: string | null;\r\n tipoBiglietteria?: string | null;\r\n tipoPrepagamento?: string | null;\r\n\r\n constructor(data?: IIncassoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.incassoID = _data[\"incassoID\"] !== undefined ? _data[\"incassoID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offerta = _data[\"offerta\"] !== undefined ? _data[\"offerta\"] : null;\r\n this.dataScadenza = _data[\"dataScadenza\"] !== undefined ? _data[\"dataScadenza\"] : null;\r\n this.dataCessione = _data[\"dataCessione\"] !== undefined ? _data[\"dataCessione\"] : null;\r\n this.dataPagamento = _data[\"dataPagamento\"] !== undefined ? _data[\"dataPagamento\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.banca = _data[\"banca\"] !== undefined ? _data[\"banca\"] : null;\r\n this.tipoOperazione = _data[\"tipoOperazione\"] !== undefined ? _data[\"tipoOperazione\"] : null;\r\n this.tipoBiglietteria = _data[\"tipoBiglietteria\"] !== undefined ? _data[\"tipoBiglietteria\"] : null;\r\n this.tipoPrepagamento = _data[\"tipoPrepagamento\"] !== undefined ? _data[\"tipoPrepagamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncassoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncassoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"incassoID\"] = this.incassoID !== undefined ? this.incassoID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offerta\"] = this.offerta !== undefined ? this.offerta : null;\r\n data[\"dataScadenza\"] = this.dataScadenza !== undefined ? this.dataScadenza : null;\r\n data[\"dataCessione\"] = this.dataCessione !== undefined ? this.dataCessione : null;\r\n data[\"dataPagamento\"] = this.dataPagamento !== undefined ? this.dataPagamento : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"banca\"] = this.banca !== undefined ? this.banca : null;\r\n data[\"tipoOperazione\"] = this.tipoOperazione !== undefined ? this.tipoOperazione : null;\r\n data[\"tipoBiglietteria\"] = this.tipoBiglietteria !== undefined ? this.tipoBiglietteria : null;\r\n data[\"tipoPrepagamento\"] = this.tipoPrepagamento !== undefined ? this.tipoPrepagamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncassoRow {\r\n incassoID?: number;\r\n offertaID?: number;\r\n offerta?: string | null;\r\n dataScadenza?: string | null;\r\n dataCessione?: string | null;\r\n dataPagamento?: string | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n banca?: string | null;\r\n tipoOperazione?: string | null;\r\n tipoBiglietteria?: string | null;\r\n tipoPrepagamento?: string | null;\r\n}\r\n\r\nexport class EstrattoContoReadRequest extends ApiRequest implements IEstrattoContoReadRequest {\r\n estrattoContoID?: number;\r\n\r\n constructor(data?: IEstrattoContoReadRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.estrattoContoID = _data[\"estrattoContoID\"] !== undefined ? _data[\"estrattoContoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoContoReadRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoContoReadRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"estrattoContoID\"] = this.estrattoContoID !== undefined ? this.estrattoContoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoContoReadRequest extends IApiRequest {\r\n estrattoContoID?: number;\r\n}\r\n\r\nexport class EstrattoContoCreateResponse extends OkApiResponse implements IEstrattoContoCreateResponse {\r\n estrattoConto?: EstrattoConto | null;\r\n contatto?: string | null;\r\n\r\n constructor(data?: IEstrattoContoCreateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.estrattoConto = _data[\"estrattoConto\"] ? EstrattoConto.fromJS(_data[\"estrattoConto\"]) : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoContoCreateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoContoCreateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"estrattoConto\"] = this.estrattoConto ? this.estrattoConto.toJSON() : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoContoCreateResponse extends IOkApiResponse {\r\n estrattoConto?: EstrattoConto | null;\r\n contatto?: string | null;\r\n}\r\n\r\nexport class EstrattoContoCreateRequest extends ApiRequest implements IEstrattoContoCreateRequest {\r\n estrattoConto?: EstrattoConto | null;\r\n dal?: string;\r\n al?: string;\r\n\r\n constructor(data?: IEstrattoContoCreateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.estrattoConto = _data[\"estrattoConto\"] ? EstrattoConto.fromJS(_data[\"estrattoConto\"]) : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoContoCreateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoContoCreateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"estrattoConto\"] = this.estrattoConto ? this.estrattoConto.toJSON() : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoContoCreateRequest extends IApiRequest {\r\n estrattoConto?: EstrattoConto | null;\r\n dal?: string;\r\n al?: string;\r\n}\r\n\r\nexport class EstrattoContoDeleteRequest extends ApiRequest implements IEstrattoContoDeleteRequest {\r\n estrattoContoID?: number;\r\n\r\n constructor(data?: IEstrattoContoDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.estrattoContoID = _data[\"estrattoContoID\"] !== undefined ? _data[\"estrattoContoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstrattoContoDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstrattoContoDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"estrattoContoID\"] = this.estrattoContoID !== undefined ? this.estrattoContoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstrattoContoDeleteRequest extends IApiRequest {\r\n estrattoContoID?: number;\r\n}\r\n\r\nexport class PreviewEstrattoContoResponse extends OkApiResponse implements IPreviewEstrattoContoResponse {\r\n incassi?: PreviewEstrattoContoRow[] | null;\r\n\r\n constructor(data?: IPreviewEstrattoContoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"incassi\"])) {\r\n this.incassi = [] as any;\r\n for (let item of _data[\"incassi\"])\r\n this.incassi!.push(PreviewEstrattoContoRow.fromJS(item));\r\n }\r\n else {\r\n this.incassi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PreviewEstrattoContoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PreviewEstrattoContoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.incassi)) {\r\n data[\"incassi\"] = [];\r\n for (let item of this.incassi)\r\n data[\"incassi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPreviewEstrattoContoResponse extends IOkApiResponse {\r\n incassi?: PreviewEstrattoContoRow[] | null;\r\n}\r\n\r\nexport class PreviewEstrattoContoRow implements IPreviewEstrattoContoRow {\r\n offertaID?: number;\r\n offerta?: string | null;\r\n dataScadenza?: string | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n tipoOperazione?: string | null;\r\n tipoBiglietteria?: string | null;\r\n tipoPrepagamento?: string | null;\r\n\r\n constructor(data?: IPreviewEstrattoContoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offerta = _data[\"offerta\"] !== undefined ? _data[\"offerta\"] : null;\r\n this.dataScadenza = _data[\"dataScadenza\"] !== undefined ? _data[\"dataScadenza\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.tipoOperazione = _data[\"tipoOperazione\"] !== undefined ? _data[\"tipoOperazione\"] : null;\r\n this.tipoBiglietteria = _data[\"tipoBiglietteria\"] !== undefined ? _data[\"tipoBiglietteria\"] : null;\r\n this.tipoPrepagamento = _data[\"tipoPrepagamento\"] !== undefined ? _data[\"tipoPrepagamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PreviewEstrattoContoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PreviewEstrattoContoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offerta\"] = this.offerta !== undefined ? this.offerta : null;\r\n data[\"dataScadenza\"] = this.dataScadenza !== undefined ? this.dataScadenza : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"tipoOperazione\"] = this.tipoOperazione !== undefined ? this.tipoOperazione : null;\r\n data[\"tipoBiglietteria\"] = this.tipoBiglietteria !== undefined ? this.tipoBiglietteria : null;\r\n data[\"tipoPrepagamento\"] = this.tipoPrepagamento !== undefined ? this.tipoPrepagamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPreviewEstrattoContoRow {\r\n offertaID?: number;\r\n offerta?: string | null;\r\n dataScadenza?: string | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n tipoOperazione?: string | null;\r\n tipoBiglietteria?: string | null;\r\n tipoPrepagamento?: string | null;\r\n}\r\n\r\nexport class PreviewEstrattoContoRequest extends ApiRequest implements IPreviewEstrattoContoRequest {\r\n estrattoConto?: EstrattoConto | null;\r\n dal?: string;\r\n al?: string;\r\n\r\n constructor(data?: IPreviewEstrattoContoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.estrattoConto = _data[\"estrattoConto\"] ? EstrattoConto.fromJS(_data[\"estrattoConto\"]) : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PreviewEstrattoContoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PreviewEstrattoContoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"estrattoConto\"] = this.estrattoConto ? this.estrattoConto.toJSON() : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPreviewEstrattoContoRequest extends IApiRequest {\r\n estrattoConto?: EstrattoConto | null;\r\n dal?: string;\r\n al?: string;\r\n}\r\n\r\nexport class PreviewExcelRequest extends ApiRequest implements IPreviewExcelRequest {\r\n rows?: IncassoSendRow[] | null;\r\n\r\n constructor(data?: IPreviewExcelRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(IncassoSendRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PreviewExcelRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PreviewExcelRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPreviewExcelRequest extends IApiRequest {\r\n rows?: IncassoSendRow[] | null;\r\n}\r\n\r\nexport class IncassoSendRow implements IIncassoSendRow {\r\n offertaID?: number | null;\r\n offerta?: string | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n tipoOperazione?: string | null;\r\n tipoPrepagamento?: string | null;\r\n tipoBiglietteria?: string | null;\r\n subtotale?: number | null;\r\n\r\n constructor(data?: IIncassoSendRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offerta = _data[\"offerta\"] !== undefined ? _data[\"offerta\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.tipoOperazione = _data[\"tipoOperazione\"] !== undefined ? _data[\"tipoOperazione\"] : null;\r\n this.tipoPrepagamento = _data[\"tipoPrepagamento\"] !== undefined ? _data[\"tipoPrepagamento\"] : null;\r\n this.tipoBiglietteria = _data[\"tipoBiglietteria\"] !== undefined ? _data[\"tipoBiglietteria\"] : null;\r\n this.subtotale = _data[\"subtotale\"] !== undefined ? _data[\"subtotale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IncassoSendRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IncassoSendRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offerta\"] = this.offerta !== undefined ? this.offerta : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"tipoOperazione\"] = this.tipoOperazione !== undefined ? this.tipoOperazione : null;\r\n data[\"tipoPrepagamento\"] = this.tipoPrepagamento !== undefined ? this.tipoPrepagamento : null;\r\n data[\"tipoBiglietteria\"] = this.tipoBiglietteria !== undefined ? this.tipoBiglietteria : null;\r\n data[\"subtotale\"] = this.subtotale !== undefined ? this.subtotale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIncassoSendRow {\r\n offertaID?: number | null;\r\n offerta?: string | null;\r\n descrizione?: string | null;\r\n importo?: number | null;\r\n tipoOperazione?: string | null;\r\n tipoPrepagamento?: string | null;\r\n tipoBiglietteria?: string | null;\r\n subtotale?: number | null;\r\n}\r\n\r\nexport abstract class BaseRQ implements IBaseRQ {\r\n pid?: string | null;\r\n connectorsEnvironment?: ConnectorEnvironment[] | null;\r\n\r\n constructor(data?: IBaseRQ) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pid = _data[\"Pid\"] !== undefined ? _data[\"Pid\"] : null;\r\n if (Array.isArray(_data[\"ConnectorsEnvironment\"])) {\r\n this.connectorsEnvironment = [] as any;\r\n for (let item of _data[\"ConnectorsEnvironment\"])\r\n this.connectorsEnvironment!.push(ConnectorEnvironment.fromJS(item));\r\n }\r\n else {\r\n this.connectorsEnvironment = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseRQ {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseRQ' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Pid\"] = this.pid !== undefined ? this.pid : null;\r\n if (Array.isArray(this.connectorsEnvironment)) {\r\n data[\"ConnectorsEnvironment\"] = [];\r\n for (let item of this.connectorsEnvironment)\r\n data[\"ConnectorsEnvironment\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseRQ {\r\n pid?: string | null;\r\n connectorsEnvironment?: ConnectorEnvironment[] | null;\r\n}\r\n\r\nexport abstract class BaseCacheableRQ extends BaseRQ implements IBaseCacheableRQ {\r\n forceNotCachedResponse?: boolean | null;\r\n\r\n constructor(data?: IBaseCacheableRQ) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.forceNotCachedResponse = _data[\"ForceNotCachedResponse\"] !== undefined ? _data[\"ForceNotCachedResponse\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseCacheableRQ {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseCacheableRQ' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ForceNotCachedResponse\"] = this.forceNotCachedResponse !== undefined ? this.forceNotCachedResponse : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseCacheableRQ extends IBaseRQ {\r\n forceNotCachedResponse?: boolean | null;\r\n}\r\n\r\nexport class JupiterFlightAvailabilityRQ extends BaseCacheableRQ implements IJupiterFlightAvailabilityRQ {\r\n request?: JupiterFlightAvailabilityInput | null;\r\n\r\n constructor(data?: IJupiterFlightAvailabilityRQ) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.request = _data[\"Request\"] ? JupiterFlightAvailabilityInput.fromJS(_data[\"Request\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightAvailabilityRQ {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightAvailabilityRQ();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Request\"] = this.request ? this.request.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightAvailabilityRQ extends IBaseCacheableRQ {\r\n request?: JupiterFlightAvailabilityInput | null;\r\n}\r\n\r\nexport abstract class BaseInput implements IBaseInput {\r\n connectorsDebug?: EH2HConnectorCode[] | null;\r\n\r\n constructor(data?: IBaseInput) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"ConnectorsDebug\"])) {\r\n this.connectorsDebug = [] as any;\r\n for (let item of _data[\"ConnectorsDebug\"])\r\n this.connectorsDebug!.push(item);\r\n }\r\n else {\r\n this.connectorsDebug = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseInput {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseInput' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.connectorsDebug)) {\r\n data[\"ConnectorsDebug\"] = [];\r\n for (let item of this.connectorsDebug)\r\n data[\"ConnectorsDebug\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseInput {\r\n connectorsDebug?: EH2HConnectorCode[] | null;\r\n}\r\n\r\nexport class JupiterFlightAvailabilityInput extends BaseInput implements IJupiterFlightAvailabilityInput {\r\n connectorsSearch!: EH2HConnectorCode[];\r\n flightSteps!: FlightStepRequest[];\r\n adultCount!: number;\r\n childCount!: number;\r\n infantCount!: number;\r\n preferredCurrency?: string | null;\r\n mergeConnectorResults?: boolean | null;\r\n connectorCustomData?: FlightAvailabilityInputCustomData[] | null;\r\n customerCustomData?: CustomerCustomDataOfJupiterFlightAvailabilityInput | null;\r\n\r\n constructor(data?: IJupiterFlightAvailabilityInput) {\r\n super(data);\r\n if (!data) {\r\n this.connectorsSearch = [];\r\n this.flightSteps = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"ConnectorsSearch\"])) {\r\n this.connectorsSearch = [] as any;\r\n for (let item of _data[\"ConnectorsSearch\"])\r\n this.connectorsSearch!.push(item);\r\n }\r\n else {\r\n this.connectorsSearch = null;\r\n }\r\n if (Array.isArray(_data[\"FlightSteps\"])) {\r\n this.flightSteps = [] as any;\r\n for (let item of _data[\"FlightSteps\"])\r\n this.flightSteps!.push(FlightStepRequest.fromJS(item));\r\n }\r\n else {\r\n this.flightSteps = null;\r\n }\r\n this.adultCount = _data[\"AdultCount\"] !== undefined ? _data[\"AdultCount\"] : null;\r\n this.childCount = _data[\"ChildCount\"] !== undefined ? _data[\"ChildCount\"] : null;\r\n this.infantCount = _data[\"InfantCount\"] !== undefined ? _data[\"InfantCount\"] : null;\r\n this.preferredCurrency = _data[\"PreferredCurrency\"] !== undefined ? _data[\"PreferredCurrency\"] : null;\r\n this.mergeConnectorResults = _data[\"MergeConnectorResults\"] !== undefined ? _data[\"MergeConnectorResults\"] : null;\r\n if (Array.isArray(_data[\"ConnectorCustomData\"])) {\r\n this.connectorCustomData = [] as any;\r\n for (let item of _data[\"ConnectorCustomData\"])\r\n this.connectorCustomData!.push(FlightAvailabilityInputCustomData.fromJS(item));\r\n }\r\n else {\r\n this.connectorCustomData = null;\r\n }\r\n this.customerCustomData = _data[\"CustomerCustomData\"] ? CustomerCustomDataOfJupiterFlightAvailabilityInput.fromJS(_data[\"CustomerCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightAvailabilityInput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightAvailabilityInput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.connectorsSearch)) {\r\n data[\"ConnectorsSearch\"] = [];\r\n for (let item of this.connectorsSearch)\r\n data[\"ConnectorsSearch\"].push(item);\r\n }\r\n if (Array.isArray(this.flightSteps)) {\r\n data[\"FlightSteps\"] = [];\r\n for (let item of this.flightSteps)\r\n data[\"FlightSteps\"].push(item.toJSON());\r\n }\r\n data[\"AdultCount\"] = this.adultCount !== undefined ? this.adultCount : null;\r\n data[\"ChildCount\"] = this.childCount !== undefined ? this.childCount : null;\r\n data[\"InfantCount\"] = this.infantCount !== undefined ? this.infantCount : null;\r\n data[\"PreferredCurrency\"] = this.preferredCurrency !== undefined ? this.preferredCurrency : null;\r\n data[\"MergeConnectorResults\"] = this.mergeConnectorResults !== undefined ? this.mergeConnectorResults : null;\r\n if (Array.isArray(this.connectorCustomData)) {\r\n data[\"ConnectorCustomData\"] = [];\r\n for (let item of this.connectorCustomData)\r\n data[\"ConnectorCustomData\"].push(item.toJSON());\r\n }\r\n data[\"CustomerCustomData\"] = this.customerCustomData ? this.customerCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightAvailabilityInput extends IBaseInput {\r\n connectorsSearch: EH2HConnectorCode[];\r\n flightSteps: FlightStepRequest[];\r\n adultCount: number;\r\n childCount: number;\r\n infantCount: number;\r\n preferredCurrency?: string | null;\r\n mergeConnectorResults?: boolean | null;\r\n connectorCustomData?: FlightAvailabilityInputCustomData[] | null;\r\n customerCustomData?: CustomerCustomDataOfJupiterFlightAvailabilityInput | null;\r\n}\r\n\r\nexport enum EH2HConnectorCode {\r\n UNKNOWN = \"UNKNOWN\",\r\n BOOKING_DOT_COM = \"BOOKING_DOT_COM\",\r\n SABRE_SYNXIS = \"SABRE_SYNXIS\",\r\n AMADEUS = \"AMADEUS\",\r\n SABRE = \"SABRE\",\r\n SABRE_CSL = \"SABRE_CSL\",\r\n CREOLE = \"CREOLE\",\r\n SANDALS = \"SANDALS\",\r\n TRAVELFUSION = \"TRAVELFUSION\",\r\n IHG_GRS = \"IHG_GRS\",\r\n OKKAMI = \"OKKAMI\",\r\n HOTELBEDS = \"HOTELBEDS\",\r\n EMINDS = \"EMINDS\",\r\n EXPEDIA = \"EXPEDIA\",\r\n TEKURA = \"TEKURA\",\r\n AIC = \"AIC\",\r\n ALLIED = \"ALLIED\",\r\n JTB = \"JTB\",\r\n HERTZ = \"HERTZ\",\r\n AMERICA_4_YOU = \"AMERICA_4_YOU\",\r\n TEAM_AMERICA = \"TEAM_AMERICA\",\r\n ARABIAN = \"ARABIAN\",\r\n JONVIEW = \"JONVIEW\",\r\n MECA = \"MECA\",\r\n ATI = \"ATI\",\r\n OLYMPIA = \"OLYMPIA\",\r\n PACIFIC_DESTINATIONS = \"PACIFIC_DESTINATIONS\",\r\n ROSIE = \"ROSIE\",\r\n RMH_TOURS = \"RMH_TOURS\",\r\n GO_WEST = \"GO_WEST\",\r\n AOT = \"AOT\",\r\n RESTEL = \"RESTEL\",\r\n TOURMAPPERS = \"TOURMAPPERS\",\r\n TRAVALCO = \"TRAVALCO\",\r\n WTS = \"WTS\",\r\n BONOTEL = \"BONOTEL\",\r\n ALAMO = \"ALAMO\",\r\n MSC = \"MSC\",\r\n BOOK_ME = \"BOOK_ME\",\r\n MAGIC_TRAVELS = \"MAGIC_TRAVELS\",\r\n CLUBMED = \"CLUBMED\",\r\n RIU = \"RIU\",\r\n KOEDIA = \"KOEDIA\",\r\n NTA = \"NTA\",\r\n RATE_HAWK = \"RATE_HAWK\",\r\n TRAVELGATE = \"TRAVELGATE\",\r\n PAN_PACIFIC = \"PAN_PACIFIC\",\r\n NET_STORMING = \"NET_STORMING\",\r\n HOTEL_TRADER = \"HOTEL_TRADER\",\r\n WONDERMILES = \"WONDERMILES\",\r\n TRAVELPORT = \"TRAVELPORT\",\r\n EXPEDIA_RAPID = \"EXPEDIA_RAPID\",\r\n WEBBEDS = \"WEBBEDS\",\r\n GO_WAY = \"GO_WAY\",\r\n GO_GLOBAL = \"GO_GLOBAL\",\r\n HDR = \"HDR\",\r\n HYPER_GUEST = \"HYPER_GUEST\",\r\n A_SAMPLE = \"A_SAMPLE\",\r\n}\r\n\r\nexport class FlightStepRequest implements IFlightStepRequest {\r\n departureDate!: string;\r\n departureTime?: string | null;\r\n departureTimeWindow?: number | null;\r\n cabin?: EFlightCabin | null;\r\n enableJumpCabin?: boolean | null;\r\n departureAirport!: string;\r\n arrivalAirport!: string;\r\n excludedCarriers?: string[] | null;\r\n includedCarriers?: string[] | null;\r\n onlyDirectFlights?: boolean | null;\r\n baggageIncluded?: boolean | null;\r\n connectorCustomData?: FlightStepRequestCustomData[] | null;\r\n\r\n constructor(data?: IFlightStepRequest) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.departureDate = _data[\"DepartureDate\"] !== undefined ? _data[\"DepartureDate\"] : null;\r\n this.departureTime = _data[\"DepartureTime\"] !== undefined ? _data[\"DepartureTime\"] : null;\r\n this.departureTimeWindow = _data[\"DepartureTimeWindow\"] !== undefined ? _data[\"DepartureTimeWindow\"] : null;\r\n this.cabin = _data[\"Cabin\"] !== undefined ? _data[\"Cabin\"] : null;\r\n this.enableJumpCabin = _data[\"EnableJumpCabin\"] !== undefined ? _data[\"EnableJumpCabin\"] : null;\r\n this.departureAirport = _data[\"DepartureAirport\"] !== undefined ? _data[\"DepartureAirport\"] : null;\r\n this.arrivalAirport = _data[\"ArrivalAirport\"] !== undefined ? _data[\"ArrivalAirport\"] : null;\r\n if (Array.isArray(_data[\"ExcludedCarriers\"])) {\r\n this.excludedCarriers = [] as any;\r\n for (let item of _data[\"ExcludedCarriers\"])\r\n this.excludedCarriers!.push(item);\r\n }\r\n else {\r\n this.excludedCarriers = null;\r\n }\r\n if (Array.isArray(_data[\"IncludedCarriers\"])) {\r\n this.includedCarriers = [] as any;\r\n for (let item of _data[\"IncludedCarriers\"])\r\n this.includedCarriers!.push(item);\r\n }\r\n else {\r\n this.includedCarriers = null;\r\n }\r\n this.onlyDirectFlights = _data[\"OnlyDirectFlights\"] !== undefined ? _data[\"OnlyDirectFlights\"] : null;\r\n this.baggageIncluded = _data[\"BaggageIncluded\"] !== undefined ? _data[\"BaggageIncluded\"] : null;\r\n if (Array.isArray(_data[\"ConnectorCustomData\"])) {\r\n this.connectorCustomData = [] as any;\r\n for (let item of _data[\"ConnectorCustomData\"])\r\n this.connectorCustomData!.push(FlightStepRequestCustomData.fromJS(item));\r\n }\r\n else {\r\n this.connectorCustomData = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightStepRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightStepRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"DepartureDate\"] = this.departureDate !== undefined ? this.departureDate : null;\r\n data[\"DepartureTime\"] = this.departureTime !== undefined ? this.departureTime : null;\r\n data[\"DepartureTimeWindow\"] = this.departureTimeWindow !== undefined ? this.departureTimeWindow : null;\r\n data[\"Cabin\"] = this.cabin !== undefined ? this.cabin : null;\r\n data[\"EnableJumpCabin\"] = this.enableJumpCabin !== undefined ? this.enableJumpCabin : null;\r\n data[\"DepartureAirport\"] = this.departureAirport !== undefined ? this.departureAirport : null;\r\n data[\"ArrivalAirport\"] = this.arrivalAirport !== undefined ? this.arrivalAirport : null;\r\n if (Array.isArray(this.excludedCarriers)) {\r\n data[\"ExcludedCarriers\"] = [];\r\n for (let item of this.excludedCarriers)\r\n data[\"ExcludedCarriers\"].push(item);\r\n }\r\n if (Array.isArray(this.includedCarriers)) {\r\n data[\"IncludedCarriers\"] = [];\r\n for (let item of this.includedCarriers)\r\n data[\"IncludedCarriers\"].push(item);\r\n }\r\n data[\"OnlyDirectFlights\"] = this.onlyDirectFlights !== undefined ? this.onlyDirectFlights : null;\r\n data[\"BaggageIncluded\"] = this.baggageIncluded !== undefined ? this.baggageIncluded : null;\r\n if (Array.isArray(this.connectorCustomData)) {\r\n data[\"ConnectorCustomData\"] = [];\r\n for (let item of this.connectorCustomData)\r\n data[\"ConnectorCustomData\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightStepRequest {\r\n departureDate: string;\r\n departureTime?: string | null;\r\n departureTimeWindow?: number | null;\r\n cabin?: EFlightCabin | null;\r\n enableJumpCabin?: boolean | null;\r\n departureAirport: string;\r\n arrivalAirport: string;\r\n excludedCarriers?: string[] | null;\r\n includedCarriers?: string[] | null;\r\n onlyDirectFlights?: boolean | null;\r\n baggageIncluded?: boolean | null;\r\n connectorCustomData?: FlightStepRequestCustomData[] | null;\r\n}\r\n\r\nexport enum EFlightCabin {\r\n ECONOMY = \"ECONOMY\",\r\n PREMIUM_ECONOMY = \"PREMIUM_ECONOMY\",\r\n BUSINESS = \"BUSINESS\",\r\n PREMIUM_BUSINESS = \"PREMIUM_BUSINESS\",\r\n FIRST = \"FIRST\",\r\n PREMIUM_FIRST = \"PREMIUM_FIRST\",\r\n}\r\n\r\nexport abstract class FlightStepRequestCustomData implements IFlightStepRequestCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IFlightStepRequestCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"FlightStepRequestCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): FlightStepRequestCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusFlightStepRequestCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'FlightStepRequestCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightStepRequestCustomData {\r\n}\r\n\r\nexport class AmadeusFlightStepRequestCustomData extends FlightStepRequestCustomData implements IAmadeusFlightStepRequestCustomData {\r\n maxStopsQuantity?: number | null;\r\n\r\n constructor(data?: IAmadeusFlightStepRequestCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.maxStopsQuantity = _data[\"MaxStopsQuantity\"] !== undefined ? _data[\"MaxStopsQuantity\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusFlightStepRequestCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusFlightStepRequestCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"MaxStopsQuantity\"] = this.maxStopsQuantity !== undefined ? this.maxStopsQuantity : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusFlightStepRequestCustomData extends IFlightStepRequestCustomData {\r\n maxStopsQuantity?: number | null;\r\n}\r\n\r\nexport abstract class FlightAvailabilityInputCustomData implements IFlightAvailabilityInputCustomData {\r\n accountCodes?: string[] | null;\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IFlightAvailabilityInputCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"FlightAvailabilityInputCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"AccountCodes\"])) {\r\n this.accountCodes = [] as any;\r\n for (let item of _data[\"AccountCodes\"])\r\n this.accountCodes!.push(item);\r\n }\r\n else {\r\n this.accountCodes = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightAvailabilityInputCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusFlightAvailabilityInputCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'FlightAvailabilityInputCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n if (Array.isArray(this.accountCodes)) {\r\n data[\"AccountCodes\"] = [];\r\n for (let item of this.accountCodes)\r\n data[\"AccountCodes\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightAvailabilityInputCustomData {\r\n accountCodes?: string[] | null;\r\n}\r\n\r\nexport class AmadeusFlightAvailabilityInputCustomData extends FlightAvailabilityInputCustomData implements IAmadeusFlightAvailabilityInputCustomData {\r\n amadeusSession?: AmadeusGdsSessionCustomData | null;\r\n isExpertSearch?: boolean | null;\r\n enableFareFamilies?: boolean | null;\r\n enableMiniRule?: boolean | null;\r\n onlyNdc?: boolean | null;\r\n includeNdc?: boolean | null;\r\n refundableFares?: boolean | null;\r\n exchangeableFares?: boolean | null;\r\n noAdvancedPurchaseFares?: boolean | null;\r\n noRestrictionFares?: boolean | null;\r\n includedAlliances?: string[] | null;\r\n excludedAlliances?: string[] | null;\r\n maxConnectionMinutes?: number | null;\r\n minimumConnectionMinutes?: number | null;\r\n getPureSolutions?: boolean | null;\r\n priceTypeList?: string[] | null;\r\n recommendationNumberOfUnits?: number | null;\r\n\r\n constructor(data?: IAmadeusFlightAvailabilityInputCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.amadeusSession = _data[\"AmadeusSession\"] ? AmadeusGdsSessionCustomData.fromJS(_data[\"AmadeusSession\"]) : null;\r\n this.isExpertSearch = _data[\"IsExpertSearch\"] !== undefined ? _data[\"IsExpertSearch\"] : null;\r\n this.enableFareFamilies = _data[\"EnableFareFamilies\"] !== undefined ? _data[\"EnableFareFamilies\"] : null;\r\n this.enableMiniRule = _data[\"EnableMiniRule\"] !== undefined ? _data[\"EnableMiniRule\"] : null;\r\n this.onlyNdc = _data[\"OnlyNdc\"] !== undefined ? _data[\"OnlyNdc\"] : null;\r\n this.includeNdc = _data[\"IncludeNdc\"] !== undefined ? _data[\"IncludeNdc\"] : null;\r\n this.refundableFares = _data[\"RefundableFares\"] !== undefined ? _data[\"RefundableFares\"] : null;\r\n this.exchangeableFares = _data[\"ExchangeableFares\"] !== undefined ? _data[\"ExchangeableFares\"] : null;\r\n this.noAdvancedPurchaseFares = _data[\"NoAdvancedPurchaseFares\"] !== undefined ? _data[\"NoAdvancedPurchaseFares\"] : null;\r\n this.noRestrictionFares = _data[\"NoRestrictionFares\"] !== undefined ? _data[\"NoRestrictionFares\"] : null;\r\n if (Array.isArray(_data[\"IncludedAlliances\"])) {\r\n this.includedAlliances = [] as any;\r\n for (let item of _data[\"IncludedAlliances\"])\r\n this.includedAlliances!.push(item);\r\n }\r\n else {\r\n this.includedAlliances = null;\r\n }\r\n if (Array.isArray(_data[\"ExcludedAlliances\"])) {\r\n this.excludedAlliances = [] as any;\r\n for (let item of _data[\"ExcludedAlliances\"])\r\n this.excludedAlliances!.push(item);\r\n }\r\n else {\r\n this.excludedAlliances = null;\r\n }\r\n this.maxConnectionMinutes = _data[\"MaxConnectionMinutes\"] !== undefined ? _data[\"MaxConnectionMinutes\"] : null;\r\n this.minimumConnectionMinutes = _data[\"MinimumConnectionMinutes\"] !== undefined ? _data[\"MinimumConnectionMinutes\"] : null;\r\n this.getPureSolutions = _data[\"GetPureSolutions\"] !== undefined ? _data[\"GetPureSolutions\"] : null;\r\n if (Array.isArray(_data[\"PriceTypeList\"])) {\r\n this.priceTypeList = [] as any;\r\n for (let item of _data[\"PriceTypeList\"])\r\n this.priceTypeList!.push(item);\r\n }\r\n else {\r\n this.priceTypeList = null;\r\n }\r\n this.recommendationNumberOfUnits = _data[\"RecommendationNumberOfUnits\"] !== undefined ? _data[\"RecommendationNumberOfUnits\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusFlightAvailabilityInputCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusFlightAvailabilityInputCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"AmadeusSession\"] = this.amadeusSession ? this.amadeusSession.toJSON() : null;\r\n data[\"IsExpertSearch\"] = this.isExpertSearch !== undefined ? this.isExpertSearch : null;\r\n data[\"EnableFareFamilies\"] = this.enableFareFamilies !== undefined ? this.enableFareFamilies : null;\r\n data[\"EnableMiniRule\"] = this.enableMiniRule !== undefined ? this.enableMiniRule : null;\r\n data[\"OnlyNdc\"] = this.onlyNdc !== undefined ? this.onlyNdc : null;\r\n data[\"IncludeNdc\"] = this.includeNdc !== undefined ? this.includeNdc : null;\r\n data[\"RefundableFares\"] = this.refundableFares !== undefined ? this.refundableFares : null;\r\n data[\"ExchangeableFares\"] = this.exchangeableFares !== undefined ? this.exchangeableFares : null;\r\n data[\"NoAdvancedPurchaseFares\"] = this.noAdvancedPurchaseFares !== undefined ? this.noAdvancedPurchaseFares : null;\r\n data[\"NoRestrictionFares\"] = this.noRestrictionFares !== undefined ? this.noRestrictionFares : null;\r\n if (Array.isArray(this.includedAlliances)) {\r\n data[\"IncludedAlliances\"] = [];\r\n for (let item of this.includedAlliances)\r\n data[\"IncludedAlliances\"].push(item);\r\n }\r\n if (Array.isArray(this.excludedAlliances)) {\r\n data[\"ExcludedAlliances\"] = [];\r\n for (let item of this.excludedAlliances)\r\n data[\"ExcludedAlliances\"].push(item);\r\n }\r\n data[\"MaxConnectionMinutes\"] = this.maxConnectionMinutes !== undefined ? this.maxConnectionMinutes : null;\r\n data[\"MinimumConnectionMinutes\"] = this.minimumConnectionMinutes !== undefined ? this.minimumConnectionMinutes : null;\r\n data[\"GetPureSolutions\"] = this.getPureSolutions !== undefined ? this.getPureSolutions : null;\r\n if (Array.isArray(this.priceTypeList)) {\r\n data[\"PriceTypeList\"] = [];\r\n for (let item of this.priceTypeList)\r\n data[\"PriceTypeList\"].push(item);\r\n }\r\n data[\"RecommendationNumberOfUnits\"] = this.recommendationNumberOfUnits !== undefined ? this.recommendationNumberOfUnits : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusFlightAvailabilityInputCustomData extends IFlightAvailabilityInputCustomData {\r\n amadeusSession?: AmadeusGdsSessionCustomData | null;\r\n isExpertSearch?: boolean | null;\r\n enableFareFamilies?: boolean | null;\r\n enableMiniRule?: boolean | null;\r\n onlyNdc?: boolean | null;\r\n includeNdc?: boolean | null;\r\n refundableFares?: boolean | null;\r\n exchangeableFares?: boolean | null;\r\n noAdvancedPurchaseFares?: boolean | null;\r\n noRestrictionFares?: boolean | null;\r\n includedAlliances?: string[] | null;\r\n excludedAlliances?: string[] | null;\r\n maxConnectionMinutes?: number | null;\r\n minimumConnectionMinutes?: number | null;\r\n getPureSolutions?: boolean | null;\r\n priceTypeList?: string[] | null;\r\n recommendationNumberOfUnits?: number | null;\r\n}\r\n\r\nexport abstract class GdsSessionCustomData implements IGdsSessionCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IGdsSessionCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"GdsSessionCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): GdsSessionCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusGdsSessionCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"CustomDataConnectorCode\"] === \"SABRE\") {\r\n let result = new SabreGdsSessionCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'GdsSessionCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGdsSessionCustomData {\r\n}\r\n\r\nexport class AmadeusGdsSessionCustomData extends GdsSessionCustomData implements IAmadeusGdsSessionCustomData {\r\n sessionId?: string | null;\r\n sessionStatus?: EAmadeusSessionStatus | null;\r\n sequenceNumber?: number | null;\r\n securityToken?: string | null;\r\n\r\n constructor(data?: IAmadeusGdsSessionCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.sessionId = _data[\"SessionId\"] !== undefined ? _data[\"SessionId\"] : null;\r\n this.sessionStatus = _data[\"SessionStatus\"] !== undefined ? _data[\"SessionStatus\"] : null;\r\n this.sequenceNumber = _data[\"SequenceNumber\"] !== undefined ? _data[\"SequenceNumber\"] : null;\r\n this.securityToken = _data[\"SecurityToken\"] !== undefined ? _data[\"SecurityToken\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusGdsSessionCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusGdsSessionCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"SessionId\"] = this.sessionId !== undefined ? this.sessionId : null;\r\n data[\"SessionStatus\"] = this.sessionStatus !== undefined ? this.sessionStatus : null;\r\n data[\"SequenceNumber\"] = this.sequenceNumber !== undefined ? this.sequenceNumber : null;\r\n data[\"SecurityToken\"] = this.securityToken !== undefined ? this.securityToken : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusGdsSessionCustomData extends IGdsSessionCustomData {\r\n sessionId?: string | null;\r\n sessionStatus?: EAmadeusSessionStatus | null;\r\n sequenceNumber?: number | null;\r\n securityToken?: string | null;\r\n}\r\n\r\nexport enum EAmadeusSessionStatus {\r\n START = \"START\",\r\n END = \"END\",\r\n IN_SERIES = \"IN_SERIES\",\r\n}\r\n\r\nexport class SabreGdsSessionCustomData extends GdsSessionCustomData implements ISabreGdsSessionCustomData {\r\n id?: string | null;\r\n type?: ESabreSessionType | null;\r\n environment?: string | null;\r\n status?: ESabreSessionStatus | null;\r\n lastCallUtc?: string | null;\r\n binarySecurityToken?: string | null;\r\n conversationId?: string | null;\r\n processId?: string | null;\r\n\r\n constructor(data?: ISabreGdsSessionCustomData) {\r\n super(data);\r\n this._discriminator = \"SABRE\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.environment = _data[\"Environment\"] !== undefined ? _data[\"Environment\"] : null;\r\n this.status = _data[\"Status\"] !== undefined ? _data[\"Status\"] : null;\r\n this.lastCallUtc = _data[\"LastCallUtc\"] !== undefined ? _data[\"LastCallUtc\"] : null;\r\n this.binarySecurityToken = _data[\"BinarySecurityToken\"] !== undefined ? _data[\"BinarySecurityToken\"] : null;\r\n this.conversationId = _data[\"ConversationId\"] !== undefined ? _data[\"ConversationId\"] : null;\r\n this.processId = _data[\"ProcessId\"] !== undefined ? _data[\"ProcessId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SabreGdsSessionCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SabreGdsSessionCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"Environment\"] = this.environment !== undefined ? this.environment : null;\r\n data[\"Status\"] = this.status !== undefined ? this.status : null;\r\n data[\"LastCallUtc\"] = this.lastCallUtc !== undefined ? this.lastCallUtc : null;\r\n data[\"BinarySecurityToken\"] = this.binarySecurityToken !== undefined ? this.binarySecurityToken : null;\r\n data[\"ConversationId\"] = this.conversationId !== undefined ? this.conversationId : null;\r\n data[\"ProcessId\"] = this.processId !== undefined ? this.processId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISabreGdsSessionCustomData extends IGdsSessionCustomData {\r\n id?: string | null;\r\n type?: ESabreSessionType | null;\r\n environment?: string | null;\r\n status?: ESabreSessionStatus | null;\r\n lastCallUtc?: string | null;\r\n binarySecurityToken?: string | null;\r\n conversationId?: string | null;\r\n processId?: string | null;\r\n}\r\n\r\nexport enum ESabreSessionType {\r\n SESSION = \"SESSION\",\r\n TOKEN = \"TOKEN\",\r\n}\r\n\r\nexport enum ESabreSessionStatus {\r\n AVAILABLE = \"AVAILABLE\",\r\n BUSY = \"BUSY\",\r\n CLOSED = \"CLOSED\",\r\n}\r\n\r\nexport abstract class CustomerCustomDataOfJupiterFlightAvailabilityInput implements ICustomerCustomDataOfJupiterFlightAvailabilityInput {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: ICustomerCustomDataOfJupiterFlightAvailabilityInput) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"CustomerCustomDataOfJupiterFlightAvailabilityInput\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): CustomerCustomDataOfJupiterFlightAvailabilityInput {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataCode\"] === \"FlightAvailNaarData\") {\r\n let result = new FlightAvailNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'CustomerCustomDataOfJupiterFlightAvailabilityInput' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICustomerCustomDataOfJupiterFlightAvailabilityInput {\r\n}\r\n\r\nexport class FlightAvailNaarData extends CustomerCustomDataOfJupiterFlightAvailabilityInput implements IFlightAvailNaarData {\r\n markupData?: MarkupData | null;\r\n\r\n constructor(data?: IFlightAvailNaarData) {\r\n super(data);\r\n this._discriminator = \"FlightAvailNaarData\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.markupData = _data[\"MarkupData\"] ? MarkupData.fromJS(_data[\"MarkupData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightAvailNaarData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightAvailNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"MarkupData\"] = this.markupData ? this.markupData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightAvailNaarData extends ICustomerCustomDataOfJupiterFlightAvailabilityInput {\r\n markupData?: MarkupData | null;\r\n}\r\n\r\nexport class MarkupData implements IMarkupData {\r\n markupFlightFareIT?: number | null;\r\n markupFlightFareIP?: number | null;\r\n markupFlightTax?: number | null;\r\n\r\n constructor(data?: IMarkupData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.markupFlightFareIT = _data[\"MarkupFlightFareIT\"] !== undefined ? _data[\"MarkupFlightFareIT\"] : null;\r\n this.markupFlightFareIP = _data[\"MarkupFlightFareIP\"] !== undefined ? _data[\"MarkupFlightFareIP\"] : null;\r\n this.markupFlightTax = _data[\"MarkupFlightTax\"] !== undefined ? _data[\"MarkupFlightTax\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MarkupData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MarkupData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"MarkupFlightFareIT\"] = this.markupFlightFareIT !== undefined ? this.markupFlightFareIT : null;\r\n data[\"MarkupFlightFareIP\"] = this.markupFlightFareIP !== undefined ? this.markupFlightFareIP : null;\r\n data[\"MarkupFlightTax\"] = this.markupFlightTax !== undefined ? this.markupFlightTax : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarkupData {\r\n markupFlightFareIT?: number | null;\r\n markupFlightFareIP?: number | null;\r\n markupFlightTax?: number | null;\r\n}\r\n\r\nexport class ConnectorEnvironment implements IConnectorEnvironment {\r\n connectorCode?: EH2HConnectorCode | null;\r\n environment?: string | null;\r\n\r\n constructor(data?: IConnectorEnvironment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.environment = _data[\"Environment\"] !== undefined ? _data[\"Environment\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConnectorEnvironment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConnectorEnvironment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"Environment\"] = this.environment !== undefined ? this.environment : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConnectorEnvironment {\r\n connectorCode?: EH2HConnectorCode | null;\r\n environment?: string | null;\r\n}\r\n\r\nexport abstract class BaseRS implements IBaseRS {\r\n pid?: string | null;\r\n status?: EOperationStatus | null;\r\n messages?: Message[] | null;\r\n connectorsResponseDetails?: ConnectorResponseDetails[] | null;\r\n\r\n constructor(data?: IBaseRS) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pid = _data[\"Pid\"] !== undefined ? _data[\"Pid\"] : null;\r\n this.status = _data[\"Status\"] !== undefined ? _data[\"Status\"] : null;\r\n if (Array.isArray(_data[\"Messages\"])) {\r\n this.messages = [] as any;\r\n for (let item of _data[\"Messages\"])\r\n this.messages!.push(Message.fromJS(item));\r\n }\r\n else {\r\n this.messages = null;\r\n }\r\n if (Array.isArray(_data[\"ConnectorsResponseDetails\"])) {\r\n this.connectorsResponseDetails = [] as any;\r\n for (let item of _data[\"ConnectorsResponseDetails\"])\r\n this.connectorsResponseDetails!.push(ConnectorResponseDetails.fromJS(item));\r\n }\r\n else {\r\n this.connectorsResponseDetails = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseRS {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseRS' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Pid\"] = this.pid !== undefined ? this.pid : null;\r\n data[\"Status\"] = this.status !== undefined ? this.status : null;\r\n if (Array.isArray(this.messages)) {\r\n data[\"Messages\"] = [];\r\n for (let item of this.messages)\r\n data[\"Messages\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.connectorsResponseDetails)) {\r\n data[\"ConnectorsResponseDetails\"] = [];\r\n for (let item of this.connectorsResponseDetails)\r\n data[\"ConnectorsResponseDetails\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseRS {\r\n pid?: string | null;\r\n status?: EOperationStatus | null;\r\n messages?: Message[] | null;\r\n connectorsResponseDetails?: ConnectorResponseDetails[] | null;\r\n}\r\n\r\nexport abstract class BaseCacheableRS extends BaseRS implements IBaseCacheableRS {\r\n cacheResponseInfo?: CacheResponseInfo | null;\r\n\r\n constructor(data?: IBaseCacheableRS) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.cacheResponseInfo = _data[\"CacheResponseInfo\"] ? CacheResponseInfo.fromJS(_data[\"CacheResponseInfo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseCacheableRS {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseCacheableRS' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CacheResponseInfo\"] = this.cacheResponseInfo ? this.cacheResponseInfo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseCacheableRS extends IBaseRS {\r\n cacheResponseInfo?: CacheResponseInfo | null;\r\n}\r\n\r\nexport class JupiterFlightAvailabilityRS extends BaseCacheableRS implements IJupiterFlightAvailabilityRS {\r\n response?: JupiterFlightAvailabilityOutput | null;\r\n\r\n constructor(data?: IJupiterFlightAvailabilityRS) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.response = _data[\"Response\"] ? JupiterFlightAvailabilityOutput.fromJS(_data[\"Response\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightAvailabilityRS {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightAvailabilityRS();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Response\"] = this.response ? this.response.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightAvailabilityRS extends IBaseCacheableRS {\r\n response?: JupiterFlightAvailabilityOutput | null;\r\n}\r\n\r\nexport abstract class BaseOutput implements IBaseOutput {\r\n\r\n constructor(data?: IBaseOutput) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): BaseOutput {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseOutput' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseOutput {\r\n}\r\n\r\nexport class JupiterFlightAvailabilityOutput extends BaseOutput implements IJupiterFlightAvailabilityOutput {\r\n flightResults?: SingleFlightAvailResult[] | null;\r\n connectorCustomData?: FlightAvailabilityOutputCustomData[] | null;\r\n\r\n constructor(data?: IJupiterFlightAvailabilityOutput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"FlightResults\"])) {\r\n this.flightResults = [] as any;\r\n for (let item of _data[\"FlightResults\"])\r\n this.flightResults!.push(SingleFlightAvailResult.fromJS(item));\r\n }\r\n else {\r\n this.flightResults = null;\r\n }\r\n if (Array.isArray(_data[\"ConnectorCustomData\"])) {\r\n this.connectorCustomData = [] as any;\r\n for (let item of _data[\"ConnectorCustomData\"])\r\n this.connectorCustomData!.push(FlightAvailabilityOutputCustomData.fromJS(item));\r\n }\r\n else {\r\n this.connectorCustomData = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightAvailabilityOutput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightAvailabilityOutput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.flightResults)) {\r\n data[\"FlightResults\"] = [];\r\n for (let item of this.flightResults)\r\n data[\"FlightResults\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.connectorCustomData)) {\r\n data[\"ConnectorCustomData\"] = [];\r\n for (let item of this.connectorCustomData)\r\n data[\"ConnectorCustomData\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightAvailabilityOutput extends IBaseOutput {\r\n flightResults?: SingleFlightAvailResult[] | null;\r\n connectorCustomData?: FlightAvailabilityOutputCustomData[] | null;\r\n}\r\n\r\nexport class SingleFlightAvailResult implements ISingleFlightAvailResult {\r\n id?: string | null;\r\n resultKey?: string | null;\r\n routingKey?: string | null;\r\n isPure?: boolean | null;\r\n codeShareKey?: string | null;\r\n flightSegments?: FlightSegmentResult[] | null;\r\n totalDuration?: string | null;\r\n fareList?: FlightFareGroupResult[] | null;\r\n\r\n constructor(data?: ISingleFlightAvailResult) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.resultKey = _data[\"ResultKey\"] !== undefined ? _data[\"ResultKey\"] : null;\r\n this.routingKey = _data[\"RoutingKey\"] !== undefined ? _data[\"RoutingKey\"] : null;\r\n this.isPure = _data[\"IsPure\"] !== undefined ? _data[\"IsPure\"] : null;\r\n this.codeShareKey = _data[\"CodeShareKey\"] !== undefined ? _data[\"CodeShareKey\"] : null;\r\n if (Array.isArray(_data[\"FlightSegments\"])) {\r\n this.flightSegments = [] as any;\r\n for (let item of _data[\"FlightSegments\"])\r\n this.flightSegments!.push(FlightSegmentResult.fromJS(item));\r\n }\r\n else {\r\n this.flightSegments = null;\r\n }\r\n this.totalDuration = _data[\"TotalDuration\"] !== undefined ? _data[\"TotalDuration\"] : null;\r\n if (Array.isArray(_data[\"FareList\"])) {\r\n this.fareList = [] as any;\r\n for (let item of _data[\"FareList\"])\r\n this.fareList!.push(FlightFareGroupResult.fromJS(item));\r\n }\r\n else {\r\n this.fareList = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SingleFlightAvailResult {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SingleFlightAvailResult();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"ResultKey\"] = this.resultKey !== undefined ? this.resultKey : null;\r\n data[\"RoutingKey\"] = this.routingKey !== undefined ? this.routingKey : null;\r\n data[\"IsPure\"] = this.isPure !== undefined ? this.isPure : null;\r\n data[\"CodeShareKey\"] = this.codeShareKey !== undefined ? this.codeShareKey : null;\r\n if (Array.isArray(this.flightSegments)) {\r\n data[\"FlightSegments\"] = [];\r\n for (let item of this.flightSegments)\r\n data[\"FlightSegments\"].push(item.toJSON());\r\n }\r\n data[\"TotalDuration\"] = this.totalDuration !== undefined ? this.totalDuration : null;\r\n if (Array.isArray(this.fareList)) {\r\n data[\"FareList\"] = [];\r\n for (let item of this.fareList)\r\n data[\"FareList\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISingleFlightAvailResult {\r\n id?: string | null;\r\n resultKey?: string | null;\r\n routingKey?: string | null;\r\n isPure?: boolean | null;\r\n codeShareKey?: string | null;\r\n flightSegments?: FlightSegmentResult[] | null;\r\n totalDuration?: string | null;\r\n fareList?: FlightFareGroupResult[] | null;\r\n}\r\n\r\nexport class FlightSegment implements IFlightSegment {\r\n id?: string | null;\r\n segmentKey?: string | null;\r\n segmentRoutingKey?: string | null;\r\n isPure?: boolean | null;\r\n stepGroupId?: string | null;\r\n connectionTime?: string | null;\r\n departureDate?: string | null;\r\n departureAirport?: AirportTerminal | null;\r\n arrivalDate?: string | null;\r\n arrivalAirport?: AirportTerminal | null;\r\n duration?: string | null;\r\n marketingCarrier?: FlightCarrier | null;\r\n operatingCarrier?: FlightCarrier | null;\r\n aircraft?: Aircraft | null;\r\n technicalStops?: FlightStop[] | null;\r\n\r\n constructor(data?: IFlightSegment) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.segmentKey = _data[\"SegmentKey\"] !== undefined ? _data[\"SegmentKey\"] : null;\r\n this.segmentRoutingKey = _data[\"SegmentRoutingKey\"] !== undefined ? _data[\"SegmentRoutingKey\"] : null;\r\n this.isPure = _data[\"IsPure\"] !== undefined ? _data[\"IsPure\"] : null;\r\n this.stepGroupId = _data[\"StepGroupId\"] !== undefined ? _data[\"StepGroupId\"] : null;\r\n this.connectionTime = _data[\"ConnectionTime\"] !== undefined ? _data[\"ConnectionTime\"] : null;\r\n this.departureDate = _data[\"DepartureDate\"] !== undefined ? _data[\"DepartureDate\"] : null;\r\n this.departureAirport = _data[\"DepartureAirport\"] ? AirportTerminal.fromJS(_data[\"DepartureAirport\"]) : null;\r\n this.arrivalDate = _data[\"ArrivalDate\"] !== undefined ? _data[\"ArrivalDate\"] : null;\r\n this.arrivalAirport = _data[\"ArrivalAirport\"] ? AirportTerminal.fromJS(_data[\"ArrivalAirport\"]) : null;\r\n this.duration = _data[\"Duration\"] !== undefined ? _data[\"Duration\"] : null;\r\n this.marketingCarrier = _data[\"MarketingCarrier\"] ? FlightCarrier.fromJS(_data[\"MarketingCarrier\"]) : null;\r\n this.operatingCarrier = _data[\"OperatingCarrier\"] ? FlightCarrier.fromJS(_data[\"OperatingCarrier\"]) : null;\r\n this.aircraft = _data[\"Aircraft\"] ? Aircraft.fromJS(_data[\"Aircraft\"]) : null;\r\n if (Array.isArray(_data[\"TechnicalStops\"])) {\r\n this.technicalStops = [] as any;\r\n for (let item of _data[\"TechnicalStops\"])\r\n this.technicalStops!.push(FlightStop.fromJS(item));\r\n }\r\n else {\r\n this.technicalStops = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightSegment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightSegment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"SegmentKey\"] = this.segmentKey !== undefined ? this.segmentKey : null;\r\n data[\"SegmentRoutingKey\"] = this.segmentRoutingKey !== undefined ? this.segmentRoutingKey : null;\r\n data[\"IsPure\"] = this.isPure !== undefined ? this.isPure : null;\r\n data[\"StepGroupId\"] = this.stepGroupId !== undefined ? this.stepGroupId : null;\r\n data[\"ConnectionTime\"] = this.connectionTime !== undefined ? this.connectionTime : null;\r\n data[\"DepartureDate\"] = this.departureDate !== undefined ? this.departureDate : null;\r\n data[\"DepartureAirport\"] = this.departureAirport ? this.departureAirport.toJSON() : null;\r\n data[\"ArrivalDate\"] = this.arrivalDate !== undefined ? this.arrivalDate : null;\r\n data[\"ArrivalAirport\"] = this.arrivalAirport ? this.arrivalAirport.toJSON() : null;\r\n data[\"Duration\"] = this.duration !== undefined ? this.duration : null;\r\n data[\"MarketingCarrier\"] = this.marketingCarrier ? this.marketingCarrier.toJSON() : null;\r\n data[\"OperatingCarrier\"] = this.operatingCarrier ? this.operatingCarrier.toJSON() : null;\r\n data[\"Aircraft\"] = this.aircraft ? this.aircraft.toJSON() : null;\r\n if (Array.isArray(this.technicalStops)) {\r\n data[\"TechnicalStops\"] = [];\r\n for (let item of this.technicalStops)\r\n data[\"TechnicalStops\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightSegment {\r\n id?: string | null;\r\n segmentKey?: string | null;\r\n segmentRoutingKey?: string | null;\r\n isPure?: boolean | null;\r\n stepGroupId?: string | null;\r\n connectionTime?: string | null;\r\n departureDate?: string | null;\r\n departureAirport?: AirportTerminal | null;\r\n arrivalDate?: string | null;\r\n arrivalAirport?: AirportTerminal | null;\r\n duration?: string | null;\r\n marketingCarrier?: FlightCarrier | null;\r\n operatingCarrier?: FlightCarrier | null;\r\n aircraft?: Aircraft | null;\r\n technicalStops?: FlightStop[] | null;\r\n}\r\n\r\nexport class FlightSegmentResult extends FlightSegment implements IFlightSegmentResult {\r\n connectorCustomData?: FlightSegmentResultCustomData[] | null;\r\n\r\n constructor(data?: IFlightSegmentResult) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"ConnectorCustomData\"])) {\r\n this.connectorCustomData = [] as any;\r\n for (let item of _data[\"ConnectorCustomData\"])\r\n this.connectorCustomData!.push(FlightSegmentResultCustomData.fromJS(item));\r\n }\r\n else {\r\n this.connectorCustomData = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightSegmentResult {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightSegmentResult();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.connectorCustomData)) {\r\n data[\"ConnectorCustomData\"] = [];\r\n for (let item of this.connectorCustomData)\r\n data[\"ConnectorCustomData\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightSegmentResult extends IFlightSegment {\r\n connectorCustomData?: FlightSegmentResultCustomData[] | null;\r\n}\r\n\r\nexport abstract class FlightSegmentResultCustomData implements IFlightSegmentResultCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IFlightSegmentResultCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"FlightSegmentResultCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): FlightSegmentResultCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"SABRE\") {\r\n let result = new SabreFlightSegmentResultCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusFlightSegmentResultCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'FlightSegmentResultCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightSegmentResultCustomData {\r\n}\r\n\r\nexport class SabreFlightSegmentResultCustomData extends FlightSegmentResultCustomData implements ISabreFlightSegmentResultCustomData {\r\n marriageGrp?: string | null;\r\n\r\n constructor(data?: ISabreFlightSegmentResultCustomData) {\r\n super(data);\r\n this._discriminator = \"SABRE\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.marriageGrp = _data[\"MarriageGrp\"] !== undefined ? _data[\"MarriageGrp\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SabreFlightSegmentResultCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SabreFlightSegmentResultCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"MarriageGrp\"] = this.marriageGrp !== undefined ? this.marriageGrp : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISabreFlightSegmentResultCustomData extends IFlightSegmentResultCustomData {\r\n marriageGrp?: string | null;\r\n}\r\n\r\nexport class AmadeusFlightSegmentResultCustomData extends FlightSegmentResultCustomData implements IAmadeusFlightSegmentResultCustomData {\r\n flightProposalRef?: string | null;\r\n flightIndex?: string | null;\r\n\r\n constructor(data?: IAmadeusFlightSegmentResultCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.flightProposalRef = _data[\"FlightProposalRef\"] !== undefined ? _data[\"FlightProposalRef\"] : null;\r\n this.flightIndex = _data[\"FlightIndex\"] !== undefined ? _data[\"FlightIndex\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusFlightSegmentResultCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusFlightSegmentResultCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"FlightProposalRef\"] = this.flightProposalRef !== undefined ? this.flightProposalRef : null;\r\n data[\"FlightIndex\"] = this.flightIndex !== undefined ? this.flightIndex : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusFlightSegmentResultCustomData extends IFlightSegmentResultCustomData {\r\n flightProposalRef?: string | null;\r\n flightIndex?: string | null;\r\n}\r\n\r\nexport class Airport implements IAirport {\r\n iataCode?: string | null;\r\n name?: string | null;\r\n cityName?: string | null;\r\n countryCode?: string | null;\r\n countryName?: string | null;\r\n location?: LatLng | null;\r\n\r\n constructor(data?: IAirport) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.iataCode = _data[\"IataCode\"] !== undefined ? _data[\"IataCode\"] : null;\r\n this.name = _data[\"Name\"] !== undefined ? _data[\"Name\"] : null;\r\n this.cityName = _data[\"CityName\"] !== undefined ? _data[\"CityName\"] : null;\r\n this.countryCode = _data[\"CountryCode\"] !== undefined ? _data[\"CountryCode\"] : null;\r\n this.countryName = _data[\"CountryName\"] !== undefined ? _data[\"CountryName\"] : null;\r\n this.location = _data[\"Location\"] ? LatLng.fromJS(_data[\"Location\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Airport {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Airport();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"IataCode\"] = this.iataCode !== undefined ? this.iataCode : null;\r\n data[\"Name\"] = this.name !== undefined ? this.name : null;\r\n data[\"CityName\"] = this.cityName !== undefined ? this.cityName : null;\r\n data[\"CountryCode\"] = this.countryCode !== undefined ? this.countryCode : null;\r\n data[\"CountryName\"] = this.countryName !== undefined ? this.countryName : null;\r\n data[\"Location\"] = this.location ? this.location.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirport {\r\n iataCode?: string | null;\r\n name?: string | null;\r\n cityName?: string | null;\r\n countryCode?: string | null;\r\n countryName?: string | null;\r\n location?: LatLng | null;\r\n}\r\n\r\nexport class AirportTerminal extends Airport implements IAirportTerminal {\r\n terminalCode?: string | null;\r\n terminalText?: string | null;\r\n\r\n constructor(data?: IAirportTerminal) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.terminalCode = _data[\"TerminalCode\"] !== undefined ? _data[\"TerminalCode\"] : null;\r\n this.terminalText = _data[\"TerminalText\"] !== undefined ? _data[\"TerminalText\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AirportTerminal {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AirportTerminal();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"TerminalCode\"] = this.terminalCode !== undefined ? this.terminalCode : null;\r\n data[\"TerminalText\"] = this.terminalText !== undefined ? this.terminalText : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAirportTerminal extends IAirport {\r\n terminalCode?: string | null;\r\n terminalText?: string | null;\r\n}\r\n\r\nexport class LatLng implements ILatLng {\r\n lat?: number | null;\r\n lng?: number | null;\r\n\r\n constructor(data?: ILatLng) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lat = _data[\"Lat\"] !== undefined ? _data[\"Lat\"] : null;\r\n this.lng = _data[\"Lng\"] !== undefined ? _data[\"Lng\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LatLng {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LatLng();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"Lng\"] = this.lng !== undefined ? this.lng : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILatLng {\r\n lat?: number | null;\r\n lng?: number | null;\r\n}\r\n\r\nexport class Carrier implements ICarrier {\r\n iataCode?: string | null;\r\n name?: string | null;\r\n\r\n constructor(data?: ICarrier) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.iataCode = _data[\"IataCode\"] !== undefined ? _data[\"IataCode\"] : null;\r\n this.name = _data[\"Name\"] !== undefined ? _data[\"Name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Carrier {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Carrier();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"IataCode\"] = this.iataCode !== undefined ? this.iataCode : null;\r\n data[\"Name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICarrier {\r\n iataCode?: string | null;\r\n name?: string | null;\r\n}\r\n\r\nexport class FlightCarrier extends Carrier implements IFlightCarrier {\r\n flightNumber?: string | null;\r\n flightCarrierDescription?: string | null;\r\n\r\n constructor(data?: IFlightCarrier) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.flightNumber = _data[\"FlightNumber\"] !== undefined ? _data[\"FlightNumber\"] : null;\r\n this.flightCarrierDescription = _data[\"FlightCarrierDescription\"] !== undefined ? _data[\"FlightCarrierDescription\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightCarrier {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightCarrier();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"FlightNumber\"] = this.flightNumber !== undefined ? this.flightNumber : null;\r\n data[\"FlightCarrierDescription\"] = this.flightCarrierDescription !== undefined ? this.flightCarrierDescription : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightCarrier extends ICarrier {\r\n flightNumber?: string | null;\r\n flightCarrierDescription?: string | null;\r\n}\r\n\r\nexport class Aircraft implements IAircraft {\r\n code?: string | null;\r\n text?: string | null;\r\n\r\n constructor(data?: IAircraft) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.text = _data[\"Text\"] !== undefined ? _data[\"Text\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Aircraft {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Aircraft();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Text\"] = this.text !== undefined ? this.text : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAircraft {\r\n code?: string | null;\r\n text?: string | null;\r\n}\r\n\r\nexport class FlightStop implements IFlightStop {\r\n airport?: Airport | null;\r\n arrivalDate?: string | null;\r\n departureDate?: string | null;\r\n duration?: string | null;\r\n\r\n constructor(data?: IFlightStop) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.airport = _data[\"Airport\"] ? Airport.fromJS(_data[\"Airport\"]) : null;\r\n this.arrivalDate = _data[\"ArrivalDate\"] !== undefined ? _data[\"ArrivalDate\"] : null;\r\n this.departureDate = _data[\"DepartureDate\"] !== undefined ? _data[\"DepartureDate\"] : null;\r\n this.duration = _data[\"Duration\"] !== undefined ? _data[\"Duration\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightStop {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightStop();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Airport\"] = this.airport ? this.airport.toJSON() : null;\r\n data[\"ArrivalDate\"] = this.arrivalDate !== undefined ? this.arrivalDate : null;\r\n data[\"DepartureDate\"] = this.departureDate !== undefined ? this.departureDate : null;\r\n data[\"Duration\"] = this.duration !== undefined ? this.duration : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightStop {\r\n airport?: Airport | null;\r\n arrivalDate?: string | null;\r\n departureDate?: string | null;\r\n duration?: string | null;\r\n}\r\n\r\nexport class FlightFare implements IFlightFare {\r\n fareRules?: FareRule[] | null;\r\n id?: string | null;\r\n connectorCode?: EH2HConnectorCode | null;\r\n description?: string | null;\r\n paxFareList?: FlightPaxFare[] | null;\r\n feeList?: Tax[] | null;\r\n amount?: Total | null;\r\n isNdc?: boolean | null;\r\n isFullRefundable?: boolean | null;\r\n isPartialRefundable?: boolean | null;\r\n isFullExchangeable?: boolean | null;\r\n isPartialExchangeable?: boolean | null;\r\n fareKey?: string | null;\r\n fareGroupingKey?: string | null;\r\n\r\n constructor(data?: IFlightFare) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"FareRules\"])) {\r\n this.fareRules = [] as any;\r\n for (let item of _data[\"FareRules\"])\r\n this.fareRules!.push(FareRule.fromJS(item));\r\n }\r\n else {\r\n this.fareRules = null;\r\n }\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.description = _data[\"Description\"] !== undefined ? _data[\"Description\"] : null;\r\n if (Array.isArray(_data[\"PaxFareList\"])) {\r\n this.paxFareList = [] as any;\r\n for (let item of _data[\"PaxFareList\"])\r\n this.paxFareList!.push(FlightPaxFare.fromJS(item));\r\n }\r\n else {\r\n this.paxFareList = null;\r\n }\r\n if (Array.isArray(_data[\"FeeList\"])) {\r\n this.feeList = [] as any;\r\n for (let item of _data[\"FeeList\"])\r\n this.feeList!.push(Tax.fromJS(item));\r\n }\r\n else {\r\n this.feeList = null;\r\n }\r\n this.amount = _data[\"Amount\"] ? Total.fromJS(_data[\"Amount\"]) : null;\r\n this.isNdc = _data[\"IsNdc\"] !== undefined ? _data[\"IsNdc\"] : null;\r\n this.isFullRefundable = _data[\"IsFullRefundable\"] !== undefined ? _data[\"IsFullRefundable\"] : null;\r\n this.isPartialRefundable = _data[\"IsPartialRefundable\"] !== undefined ? _data[\"IsPartialRefundable\"] : null;\r\n this.isFullExchangeable = _data[\"IsFullExchangeable\"] !== undefined ? _data[\"IsFullExchangeable\"] : null;\r\n this.isPartialExchangeable = _data[\"IsPartialExchangeable\"] !== undefined ? _data[\"IsPartialExchangeable\"] : null;\r\n this.fareKey = _data[\"FareKey\"] !== undefined ? _data[\"FareKey\"] : null;\r\n this.fareGroupingKey = _data[\"FareGroupingKey\"] !== undefined ? _data[\"FareGroupingKey\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightFare {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightFare();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.fareRules)) {\r\n data[\"FareRules\"] = [];\r\n for (let item of this.fareRules)\r\n data[\"FareRules\"].push(item.toJSON());\r\n }\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"Description\"] = this.description !== undefined ? this.description : null;\r\n if (Array.isArray(this.paxFareList)) {\r\n data[\"PaxFareList\"] = [];\r\n for (let item of this.paxFareList)\r\n data[\"PaxFareList\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.feeList)) {\r\n data[\"FeeList\"] = [];\r\n for (let item of this.feeList)\r\n data[\"FeeList\"].push(item.toJSON());\r\n }\r\n data[\"Amount\"] = this.amount ? this.amount.toJSON() : null;\r\n data[\"IsNdc\"] = this.isNdc !== undefined ? this.isNdc : null;\r\n data[\"IsFullRefundable\"] = this.isFullRefundable !== undefined ? this.isFullRefundable : null;\r\n data[\"IsPartialRefundable\"] = this.isPartialRefundable !== undefined ? this.isPartialRefundable : null;\r\n data[\"IsFullExchangeable\"] = this.isFullExchangeable !== undefined ? this.isFullExchangeable : null;\r\n data[\"IsPartialExchangeable\"] = this.isPartialExchangeable !== undefined ? this.isPartialExchangeable : null;\r\n data[\"FareKey\"] = this.fareKey !== undefined ? this.fareKey : null;\r\n data[\"FareGroupingKey\"] = this.fareGroupingKey !== undefined ? this.fareGroupingKey : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightFare {\r\n fareRules?: FareRule[] | null;\r\n id?: string | null;\r\n connectorCode?: EH2HConnectorCode | null;\r\n description?: string | null;\r\n paxFareList?: FlightPaxFare[] | null;\r\n feeList?: Tax[] | null;\r\n amount?: Total | null;\r\n isNdc?: boolean | null;\r\n isFullRefundable?: boolean | null;\r\n isPartialRefundable?: boolean | null;\r\n isFullExchangeable?: boolean | null;\r\n isPartialExchangeable?: boolean | null;\r\n fareKey?: string | null;\r\n fareGroupingKey?: string | null;\r\n}\r\n\r\nexport class FlightFareGroupResult extends FlightFare implements IFlightFareGroupResult {\r\n fullReferenceId?: string | null;\r\n customerCustomData?: CustomerCustomDataOfFlightFareGroupResult | null;\r\n\r\n constructor(data?: IFlightFareGroupResult) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.fullReferenceId = _data[\"FullReferenceId\"] !== undefined ? _data[\"FullReferenceId\"] : null;\r\n this.customerCustomData = _data[\"CustomerCustomData\"] ? CustomerCustomDataOfFlightFareGroupResult.fromJS(_data[\"CustomerCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightFareGroupResult {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightFareGroupResult();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"FullReferenceId\"] = this.fullReferenceId !== undefined ? this.fullReferenceId : null;\r\n data[\"CustomerCustomData\"] = this.customerCustomData ? this.customerCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightFareGroupResult extends IFlightFare {\r\n fullReferenceId?: string | null;\r\n customerCustomData?: CustomerCustomDataOfFlightFareGroupResult | null;\r\n}\r\n\r\nexport abstract class CustomerCustomDataOfFlightFareGroupResult implements ICustomerCustomDataOfFlightFareGroupResult {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: ICustomerCustomDataOfFlightFareGroupResult) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"CustomerCustomDataOfFlightFareGroupResult\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): CustomerCustomDataOfFlightFareGroupResult {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataCode\"] === \"FlightFareNaarData\") {\r\n let result = new FlightFareNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'CustomerCustomDataOfFlightFareGroupResult' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICustomerCustomDataOfFlightFareGroupResult {\r\n}\r\n\r\nexport class FlightFareNaarData extends CustomerCustomDataOfFlightFareGroupResult implements IFlightFareNaarData {\r\n isToFare?: boolean | null;\r\n totalAmountWithoutTaxWithMarkup?: CurrencyAmount | null;\r\n totalAmountWithMarkup?: CurrencyAmount | null;\r\n totalTaxWithMarkup?: CurrencyAmount | null;\r\n perPaxAmountWithMarkup?: CurrencyAmount | null;\r\n\r\n constructor(data?: IFlightFareNaarData) {\r\n super(data);\r\n this._discriminator = \"FlightFareNaarData\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.isToFare = _data[\"isToFare\"] !== undefined ? _data[\"isToFare\"] : null;\r\n this.totalAmountWithoutTaxWithMarkup = _data[\"TotalAmountWithoutTaxWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalAmountWithoutTaxWithMarkup\"]) : null;\r\n this.totalAmountWithMarkup = _data[\"TotalAmountWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalAmountWithMarkup\"]) : null;\r\n this.totalTaxWithMarkup = _data[\"TotalTaxWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalTaxWithMarkup\"]) : null;\r\n this.perPaxAmountWithMarkup = _data[\"PerPaxAmountWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"PerPaxAmountWithMarkup\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightFareNaarData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightFareNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"isToFare\"] = this.isToFare !== undefined ? this.isToFare : null;\r\n data[\"TotalAmountWithoutTaxWithMarkup\"] = this.totalAmountWithoutTaxWithMarkup ? this.totalAmountWithoutTaxWithMarkup.toJSON() : null;\r\n data[\"TotalAmountWithMarkup\"] = this.totalAmountWithMarkup ? this.totalAmountWithMarkup.toJSON() : null;\r\n data[\"TotalTaxWithMarkup\"] = this.totalTaxWithMarkup ? this.totalTaxWithMarkup.toJSON() : null;\r\n data[\"PerPaxAmountWithMarkup\"] = this.perPaxAmountWithMarkup ? this.perPaxAmountWithMarkup.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightFareNaarData extends ICustomerCustomDataOfFlightFareGroupResult {\r\n isToFare?: boolean | null;\r\n totalAmountWithoutTaxWithMarkup?: CurrencyAmount | null;\r\n totalAmountWithMarkup?: CurrencyAmount | null;\r\n totalTaxWithMarkup?: CurrencyAmount | null;\r\n perPaxAmountWithMarkup?: CurrencyAmount | null;\r\n}\r\n\r\nexport class CurrencyAmount implements ICurrencyAmount {\r\n currency?: string | null;\r\n amount?: number | null;\r\n\r\n constructor(data?: ICurrencyAmount) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.currency = _data[\"Currency\"] !== undefined ? _data[\"Currency\"] : null;\r\n this.amount = _data[\"Amount\"] !== undefined ? _data[\"Amount\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CurrencyAmount {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CurrencyAmount();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Currency\"] = this.currency !== undefined ? this.currency : null;\r\n data[\"Amount\"] = this.amount !== undefined ? this.amount : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICurrencyAmount {\r\n currency?: string | null;\r\n amount?: number | null;\r\n}\r\n\r\nexport class FareRule implements IFareRule {\r\n title?: string | null;\r\n application?: string | null;\r\n description?: string | null;\r\n\r\n constructor(data?: IFareRule) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.title = _data[\"Title\"] !== undefined ? _data[\"Title\"] : null;\r\n this.application = _data[\"Application\"] !== undefined ? _data[\"Application\"] : null;\r\n this.description = _data[\"Description\"] !== undefined ? _data[\"Description\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FareRule {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FareRule();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Title\"] = this.title !== undefined ? this.title : null;\r\n data[\"Application\"] = this.application !== undefined ? this.application : null;\r\n data[\"Description\"] = this.description !== undefined ? this.description : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFareRule {\r\n title?: string | null;\r\n application?: string | null;\r\n description?: string | null;\r\n}\r\n\r\nexport class FlightPaxFare implements IFlightPaxFare {\r\n id?: string | null;\r\n paxType?: EPaxType | null;\r\n paxTypeCode?: string | null;\r\n paxCount?: number | null;\r\n flightSegmentDetails?: FareSegmentDetail[] | null;\r\n farePenalties?: FarePenalties | null;\r\n refundable?: boolean | null;\r\n lastTicketDate?: string | null;\r\n amount?: Total | null;\r\n connectorCustomData?: FlightPaxFareCustomData | null;\r\n customerCustomData?: CustomerCustomDataOfFlightPaxFare | null;\r\n\r\n constructor(data?: IFlightPaxFare) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.paxType = _data[\"PaxType\"] !== undefined ? _data[\"PaxType\"] : null;\r\n this.paxTypeCode = _data[\"PaxTypeCode\"] !== undefined ? _data[\"PaxTypeCode\"] : null;\r\n this.paxCount = _data[\"PaxCount\"] !== undefined ? _data[\"PaxCount\"] : null;\r\n if (Array.isArray(_data[\"FlightSegmentDetails\"])) {\r\n this.flightSegmentDetails = [] as any;\r\n for (let item of _data[\"FlightSegmentDetails\"])\r\n this.flightSegmentDetails!.push(FareSegmentDetail.fromJS(item));\r\n }\r\n else {\r\n this.flightSegmentDetails = null;\r\n }\r\n this.farePenalties = _data[\"FarePenalties\"] ? FarePenalties.fromJS(_data[\"FarePenalties\"]) : null;\r\n this.refundable = _data[\"Refundable\"] !== undefined ? _data[\"Refundable\"] : null;\r\n this.lastTicketDate = _data[\"LastTicketDate\"] !== undefined ? _data[\"LastTicketDate\"] : null;\r\n this.amount = _data[\"Amount\"] ? Total.fromJS(_data[\"Amount\"]) : null;\r\n this.connectorCustomData = _data[\"ConnectorCustomData\"] ? FlightPaxFareCustomData.fromJS(_data[\"ConnectorCustomData\"]) : null;\r\n this.customerCustomData = _data[\"CustomerCustomData\"] ? CustomerCustomDataOfFlightPaxFare.fromJS(_data[\"CustomerCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightPaxFare {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightPaxFare();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"PaxType\"] = this.paxType !== undefined ? this.paxType : null;\r\n data[\"PaxTypeCode\"] = this.paxTypeCode !== undefined ? this.paxTypeCode : null;\r\n data[\"PaxCount\"] = this.paxCount !== undefined ? this.paxCount : null;\r\n if (Array.isArray(this.flightSegmentDetails)) {\r\n data[\"FlightSegmentDetails\"] = [];\r\n for (let item of this.flightSegmentDetails)\r\n data[\"FlightSegmentDetails\"].push(item.toJSON());\r\n }\r\n data[\"FarePenalties\"] = this.farePenalties ? this.farePenalties.toJSON() : null;\r\n data[\"Refundable\"] = this.refundable !== undefined ? this.refundable : null;\r\n data[\"LastTicketDate\"] = this.lastTicketDate !== undefined ? this.lastTicketDate : null;\r\n data[\"Amount\"] = this.amount ? this.amount.toJSON() : null;\r\n data[\"ConnectorCustomData\"] = this.connectorCustomData ? this.connectorCustomData.toJSON() : null;\r\n data[\"CustomerCustomData\"] = this.customerCustomData ? this.customerCustomData.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightPaxFare {\r\n id?: string | null;\r\n paxType?: EPaxType | null;\r\n paxTypeCode?: string | null;\r\n paxCount?: number | null;\r\n flightSegmentDetails?: FareSegmentDetail[] | null;\r\n farePenalties?: FarePenalties | null;\r\n refundable?: boolean | null;\r\n lastTicketDate?: string | null;\r\n amount?: Total | null;\r\n connectorCustomData?: FlightPaxFareCustomData | null;\r\n customerCustomData?: CustomerCustomDataOfFlightPaxFare | null;\r\n}\r\n\r\nexport enum EPaxType {\r\n INFANT = \"INFANT\",\r\n CHILD = \"CHILD\",\r\n ADULT = \"ADULT\",\r\n}\r\n\r\nexport class FareSegmentDetail implements IFareSegmentDetail {\r\n flightSegmentRefId?: string | null;\r\n fareType?: EFareType | null;\r\n fareTypeCode?: string | null;\r\n cabin?: EFlightCabin | null;\r\n cabinCode?: string | null;\r\n class?: string | null;\r\n classAvail?: string | null;\r\n fareBasis?: string | null;\r\n matchedAccountCode?: string | null;\r\n meal?: FlightMeal | null;\r\n baggageDetails?: FlightBaggageDetails | null;\r\n brandedFare?: string | null;\r\n brandedFareCode?: string | null;\r\n fareDescription?: string | null;\r\n hostToken?: string | null;\r\n providerCode?: string | null;\r\n\r\n constructor(data?: IFareSegmentDetail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.flightSegmentRefId = _data[\"FlightSegmentRefId\"] !== undefined ? _data[\"FlightSegmentRefId\"] : null;\r\n this.fareType = _data[\"FareType\"] !== undefined ? _data[\"FareType\"] : null;\r\n this.fareTypeCode = _data[\"FareTypeCode\"] !== undefined ? _data[\"FareTypeCode\"] : null;\r\n this.cabin = _data[\"Cabin\"] !== undefined ? _data[\"Cabin\"] : null;\r\n this.cabinCode = _data[\"CabinCode\"] !== undefined ? _data[\"CabinCode\"] : null;\r\n this.class = _data[\"Class\"] !== undefined ? _data[\"Class\"] : null;\r\n this.classAvail = _data[\"ClassAvail\"] !== undefined ? _data[\"ClassAvail\"] : null;\r\n this.fareBasis = _data[\"FareBasis\"] !== undefined ? _data[\"FareBasis\"] : null;\r\n this.matchedAccountCode = _data[\"MatchedAccountCode\"] !== undefined ? _data[\"MatchedAccountCode\"] : null;\r\n this.meal = _data[\"Meal\"] ? FlightMeal.fromJS(_data[\"Meal\"]) : null;\r\n this.baggageDetails = _data[\"BaggageDetails\"] ? FlightBaggageDetails.fromJS(_data[\"BaggageDetails\"]) : null;\r\n this.brandedFare = _data[\"BrandedFare\"] !== undefined ? _data[\"BrandedFare\"] : null;\r\n this.brandedFareCode = _data[\"BrandedFareCode\"] !== undefined ? _data[\"BrandedFareCode\"] : null;\r\n this.fareDescription = _data[\"FareDescription\"] !== undefined ? _data[\"FareDescription\"] : null;\r\n this.hostToken = _data[\"HostToken\"] !== undefined ? _data[\"HostToken\"] : null;\r\n this.providerCode = _data[\"ProviderCode\"] !== undefined ? _data[\"ProviderCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FareSegmentDetail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FareSegmentDetail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"FlightSegmentRefId\"] = this.flightSegmentRefId !== undefined ? this.flightSegmentRefId : null;\r\n data[\"FareType\"] = this.fareType !== undefined ? this.fareType : null;\r\n data[\"FareTypeCode\"] = this.fareTypeCode !== undefined ? this.fareTypeCode : null;\r\n data[\"Cabin\"] = this.cabin !== undefined ? this.cabin : null;\r\n data[\"CabinCode\"] = this.cabinCode !== undefined ? this.cabinCode : null;\r\n data[\"Class\"] = this.class !== undefined ? this.class : null;\r\n data[\"ClassAvail\"] = this.classAvail !== undefined ? this.classAvail : null;\r\n data[\"FareBasis\"] = this.fareBasis !== undefined ? this.fareBasis : null;\r\n data[\"MatchedAccountCode\"] = this.matchedAccountCode !== undefined ? this.matchedAccountCode : null;\r\n data[\"Meal\"] = this.meal ? this.meal.toJSON() : null;\r\n data[\"BaggageDetails\"] = this.baggageDetails ? this.baggageDetails.toJSON() : null;\r\n data[\"BrandedFare\"] = this.brandedFare !== undefined ? this.brandedFare : null;\r\n data[\"BrandedFareCode\"] = this.brandedFareCode !== undefined ? this.brandedFareCode : null;\r\n data[\"FareDescription\"] = this.fareDescription !== undefined ? this.fareDescription : null;\r\n data[\"HostToken\"] = this.hostToken !== undefined ? this.hostToken : null;\r\n data[\"ProviderCode\"] = this.providerCode !== undefined ? this.providerCode : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFareSegmentDetail {\r\n flightSegmentRefId?: string | null;\r\n fareType?: EFareType | null;\r\n fareTypeCode?: string | null;\r\n cabin?: EFlightCabin | null;\r\n cabinCode?: string | null;\r\n class?: string | null;\r\n classAvail?: string | null;\r\n fareBasis?: string | null;\r\n matchedAccountCode?: string | null;\r\n meal?: FlightMeal | null;\r\n baggageDetails?: FlightBaggageDetails | null;\r\n brandedFare?: string | null;\r\n brandedFareCode?: string | null;\r\n fareDescription?: string | null;\r\n hostToken?: string | null;\r\n providerCode?: string | null;\r\n}\r\n\r\nexport enum EFareType {\r\n PUBLIC = \"PUBLIC\",\r\n PRIVATE = \"PRIVATE\",\r\n TO = \"TO\",\r\n}\r\n\r\nexport class FlightMeal implements IFlightMeal {\r\n code?: string | null;\r\n text?: string | null;\r\n\r\n constructor(data?: IFlightMeal) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.text = _data[\"Text\"] !== undefined ? _data[\"Text\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightMeal {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightMeal();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Text\"] = this.text !== undefined ? this.text : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightMeal {\r\n code?: string | null;\r\n text?: string | null;\r\n}\r\n\r\nexport class FlightBaggageDetails implements IFlightBaggageDetails {\r\n baggageCount?: number | null;\r\n code?: string | null;\r\n text?: string | null;\r\n baggageTypeDetails?: BaggageTypeDetail[] | null;\r\n\r\n constructor(data?: IFlightBaggageDetails) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.baggageCount = _data[\"BaggageCount\"] !== undefined ? _data[\"BaggageCount\"] : null;\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.text = _data[\"Text\"] !== undefined ? _data[\"Text\"] : null;\r\n if (Array.isArray(_data[\"BaggageTypeDetails\"])) {\r\n this.baggageTypeDetails = [] as any;\r\n for (let item of _data[\"BaggageTypeDetails\"])\r\n this.baggageTypeDetails!.push(BaggageTypeDetail.fromJS(item));\r\n }\r\n else {\r\n this.baggageTypeDetails = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightBaggageDetails {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightBaggageDetails();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"BaggageCount\"] = this.baggageCount !== undefined ? this.baggageCount : null;\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Text\"] = this.text !== undefined ? this.text : null;\r\n if (Array.isArray(this.baggageTypeDetails)) {\r\n data[\"BaggageTypeDetails\"] = [];\r\n for (let item of this.baggageTypeDetails)\r\n data[\"BaggageTypeDetails\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightBaggageDetails {\r\n baggageCount?: number | null;\r\n code?: string | null;\r\n text?: string | null;\r\n baggageTypeDetails?: BaggageTypeDetail[] | null;\r\n}\r\n\r\nexport class BaggageTypeDetail implements IBaggageTypeDetail {\r\n count?: number | null;\r\n type?: EBaggageType | null;\r\n code?: string | null;\r\n text?: string | null;\r\n descriptions?: string[] | null;\r\n\r\n constructor(data?: IBaggageTypeDetail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.count = _data[\"Count\"] !== undefined ? _data[\"Count\"] : null;\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.text = _data[\"Text\"] !== undefined ? _data[\"Text\"] : null;\r\n if (Array.isArray(_data[\"Descriptions\"])) {\r\n this.descriptions = [] as any;\r\n for (let item of _data[\"Descriptions\"])\r\n this.descriptions!.push(item);\r\n }\r\n else {\r\n this.descriptions = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaggageTypeDetail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BaggageTypeDetail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Count\"] = this.count !== undefined ? this.count : null;\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Text\"] = this.text !== undefined ? this.text : null;\r\n if (Array.isArray(this.descriptions)) {\r\n data[\"Descriptions\"] = [];\r\n for (let item of this.descriptions)\r\n data[\"Descriptions\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaggageTypeDetail {\r\n count?: number | null;\r\n type?: EBaggageType | null;\r\n code?: string | null;\r\n text?: string | null;\r\n descriptions?: string[] | null;\r\n}\r\n\r\nexport enum EBaggageType {\r\n CARRY_ON = \"CARRY_ON\",\r\n CHECKED = \"CHECKED\",\r\n SPECIAL = \"SPECIAL\",\r\n}\r\n\r\nexport class FarePenalties implements IFarePenalties {\r\n exchangeBefore?: FarePenalty | null;\r\n exchangeAfter?: FarePenalty | null;\r\n refundBefore?: FarePenalty | null;\r\n refundAfter?: FarePenalty | null;\r\n\r\n constructor(data?: IFarePenalties) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.exchangeBefore = _data[\"ExchangeBefore\"] ? FarePenalty.fromJS(_data[\"ExchangeBefore\"]) : null;\r\n this.exchangeAfter = _data[\"ExchangeAfter\"] ? FarePenalty.fromJS(_data[\"ExchangeAfter\"]) : null;\r\n this.refundBefore = _data[\"RefundBefore\"] ? FarePenalty.fromJS(_data[\"RefundBefore\"]) : null;\r\n this.refundAfter = _data[\"RefundAfter\"] ? FarePenalty.fromJS(_data[\"RefundAfter\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FarePenalties {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FarePenalties();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ExchangeBefore\"] = this.exchangeBefore ? this.exchangeBefore.toJSON() : null;\r\n data[\"ExchangeAfter\"] = this.exchangeAfter ? this.exchangeAfter.toJSON() : null;\r\n data[\"RefundBefore\"] = this.refundBefore ? this.refundBefore.toJSON() : null;\r\n data[\"RefundAfter\"] = this.refundAfter ? this.refundAfter.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFarePenalties {\r\n exchangeBefore?: FarePenalty | null;\r\n exchangeAfter?: FarePenalty | null;\r\n refundBefore?: FarePenalty | null;\r\n refundAfter?: FarePenalty | null;\r\n}\r\n\r\nexport class FarePenalty implements IFarePenalty {\r\n isApplicable?: boolean | null;\r\n penaltyConditions?: string[] | null;\r\n penaltyAmount?: CurrencyAmount | null;\r\n penaltyAmountNoShow?: CurrencyAmount | null;\r\n\r\n constructor(data?: IFarePenalty) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.isApplicable = _data[\"IsApplicable\"] !== undefined ? _data[\"IsApplicable\"] : null;\r\n if (Array.isArray(_data[\"PenaltyConditions\"])) {\r\n this.penaltyConditions = [] as any;\r\n for (let item of _data[\"PenaltyConditions\"])\r\n this.penaltyConditions!.push(item);\r\n }\r\n else {\r\n this.penaltyConditions = null;\r\n }\r\n this.penaltyAmount = _data[\"PenaltyAmount\"] ? CurrencyAmount.fromJS(_data[\"PenaltyAmount\"]) : null;\r\n this.penaltyAmountNoShow = _data[\"PenaltyAmountNoShow\"] ? CurrencyAmount.fromJS(_data[\"PenaltyAmountNoShow\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FarePenalty {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FarePenalty();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"IsApplicable\"] = this.isApplicable !== undefined ? this.isApplicable : null;\r\n if (Array.isArray(this.penaltyConditions)) {\r\n data[\"PenaltyConditions\"] = [];\r\n for (let item of this.penaltyConditions)\r\n data[\"PenaltyConditions\"].push(item);\r\n }\r\n data[\"PenaltyAmount\"] = this.penaltyAmount ? this.penaltyAmount.toJSON() : null;\r\n data[\"PenaltyAmountNoShow\"] = this.penaltyAmountNoShow ? this.penaltyAmountNoShow.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFarePenalty {\r\n isApplicable?: boolean | null;\r\n penaltyConditions?: string[] | null;\r\n penaltyAmount?: CurrencyAmount | null;\r\n penaltyAmountNoShow?: CurrencyAmount | null;\r\n}\r\n\r\nexport class Total extends CurrencyAmount implements ITotal {\r\n amountWithoutTax?: number | null;\r\n taxes?: Taxes | null;\r\n\r\n constructor(data?: ITotal) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.amountWithoutTax = _data[\"AmountWithoutTax\"] !== undefined ? _data[\"AmountWithoutTax\"] : null;\r\n this.taxes = _data[\"Taxes\"] ? Taxes.fromJS(_data[\"Taxes\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Total {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Total();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"AmountWithoutTax\"] = this.amountWithoutTax !== undefined ? this.amountWithoutTax : null;\r\n data[\"Taxes\"] = this.taxes ? this.taxes.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITotal extends ICurrencyAmount {\r\n amountWithoutTax?: number | null;\r\n taxes?: Taxes | null;\r\n}\r\n\r\nexport class Taxes extends CurrencyAmount implements ITaxes {\r\n taxList?: Tax[] | null;\r\n\r\n constructor(data?: ITaxes) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"TaxList\"])) {\r\n this.taxList = [] as any;\r\n for (let item of _data[\"TaxList\"])\r\n this.taxList!.push(Tax.fromJS(item));\r\n }\r\n else {\r\n this.taxList = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): Taxes {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Taxes();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.taxList)) {\r\n data[\"TaxList\"] = [];\r\n for (let item of this.taxList)\r\n data[\"TaxList\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITaxes extends ICurrencyAmount {\r\n taxList?: Tax[] | null;\r\n}\r\n\r\nexport class Tax extends CurrencyAmount implements ITax {\r\n code?: string | null;\r\n name?: string | null;\r\n description?: string | null;\r\n\r\n constructor(data?: ITax) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.name = _data[\"Name\"] !== undefined ? _data[\"Name\"] : null;\r\n this.description = _data[\"Description\"] !== undefined ? _data[\"Description\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Tax {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Tax();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Name\"] = this.name !== undefined ? this.name : null;\r\n data[\"Description\"] = this.description !== undefined ? this.description : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITax extends ICurrencyAmount {\r\n code?: string | null;\r\n name?: string | null;\r\n description?: string | null;\r\n}\r\n\r\nexport abstract class FlightPaxFareCustomData implements IFlightPaxFareCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IFlightPaxFareCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"FlightPaxFareCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): FlightPaxFareCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusFlightPaxFareCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'FlightPaxFareCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightPaxFareCustomData {\r\n}\r\n\r\nexport class AmadeusFlightPaxFareCustomData extends FlightPaxFareCustomData implements IAmadeusFlightPaxFareCustomData {\r\n pnrFlightPaxFareId?: string | null;\r\n paxType?: EPaxType | null;\r\n shoppingResponseId?: string | null;\r\n offerId?: string | null;\r\n offerItemId?: string | null;\r\n dateAndTimeNdcLimits?: DateTimeNdcLimit[] | null;\r\n creationDate?: string | null;\r\n lastModificationDate?: string | null;\r\n tstIndicator?: string | null;\r\n orderId?: string | null;\r\n orderItemId?: string | null;\r\n ownerCode?: string | null;\r\n ownerItemCode?: string | null;\r\n\r\n constructor(data?: IAmadeusFlightPaxFareCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pnrFlightPaxFareId = _data[\"PnrFlightPaxFareId\"] !== undefined ? _data[\"PnrFlightPaxFareId\"] : null;\r\n this.paxType = _data[\"PaxType\"] !== undefined ? _data[\"PaxType\"] : null;\r\n this.shoppingResponseId = _data[\"ShoppingResponseId\"] !== undefined ? _data[\"ShoppingResponseId\"] : null;\r\n this.offerId = _data[\"OfferId\"] !== undefined ? _data[\"OfferId\"] : null;\r\n this.offerItemId = _data[\"OfferItemId\"] !== undefined ? _data[\"OfferItemId\"] : null;\r\n if (Array.isArray(_data[\"DateAndTimeNdcLimits\"])) {\r\n this.dateAndTimeNdcLimits = [] as any;\r\n for (let item of _data[\"DateAndTimeNdcLimits\"])\r\n this.dateAndTimeNdcLimits!.push(DateTimeNdcLimit.fromJS(item));\r\n }\r\n else {\r\n this.dateAndTimeNdcLimits = null;\r\n }\r\n this.creationDate = _data[\"CreationDate\"] !== undefined ? _data[\"CreationDate\"] : null;\r\n this.lastModificationDate = _data[\"LastModificationDate\"] !== undefined ? _data[\"LastModificationDate\"] : null;\r\n this.tstIndicator = _data[\"TstIndicator\"] !== undefined ? _data[\"TstIndicator\"] : null;\r\n this.orderId = _data[\"OrderId\"] !== undefined ? _data[\"OrderId\"] : null;\r\n this.orderItemId = _data[\"OrderItemId\"] !== undefined ? _data[\"OrderItemId\"] : null;\r\n this.ownerCode = _data[\"OwnerCode\"] !== undefined ? _data[\"OwnerCode\"] : null;\r\n this.ownerItemCode = _data[\"OwnerItemCode\"] !== undefined ? _data[\"OwnerItemCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusFlightPaxFareCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusFlightPaxFareCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"PnrFlightPaxFareId\"] = this.pnrFlightPaxFareId !== undefined ? this.pnrFlightPaxFareId : null;\r\n data[\"PaxType\"] = this.paxType !== undefined ? this.paxType : null;\r\n data[\"ShoppingResponseId\"] = this.shoppingResponseId !== undefined ? this.shoppingResponseId : null;\r\n data[\"OfferId\"] = this.offerId !== undefined ? this.offerId : null;\r\n data[\"OfferItemId\"] = this.offerItemId !== undefined ? this.offerItemId : null;\r\n if (Array.isArray(this.dateAndTimeNdcLimits)) {\r\n data[\"DateAndTimeNdcLimits\"] = [];\r\n for (let item of this.dateAndTimeNdcLimits)\r\n data[\"DateAndTimeNdcLimits\"].push(item.toJSON());\r\n }\r\n data[\"CreationDate\"] = this.creationDate !== undefined ? this.creationDate : null;\r\n data[\"LastModificationDate\"] = this.lastModificationDate !== undefined ? this.lastModificationDate : null;\r\n data[\"TstIndicator\"] = this.tstIndicator !== undefined ? this.tstIndicator : null;\r\n data[\"OrderId\"] = this.orderId !== undefined ? this.orderId : null;\r\n data[\"OrderItemId\"] = this.orderItemId !== undefined ? this.orderItemId : null;\r\n data[\"OwnerCode\"] = this.ownerCode !== undefined ? this.ownerCode : null;\r\n data[\"OwnerItemCode\"] = this.ownerItemCode !== undefined ? this.ownerItemCode : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusFlightPaxFareCustomData extends IFlightPaxFareCustomData {\r\n pnrFlightPaxFareId?: string | null;\r\n paxType?: EPaxType | null;\r\n shoppingResponseId?: string | null;\r\n offerId?: string | null;\r\n offerItemId?: string | null;\r\n dateAndTimeNdcLimits?: DateTimeNdcLimit[] | null;\r\n creationDate?: string | null;\r\n lastModificationDate?: string | null;\r\n tstIndicator?: string | null;\r\n orderId?: string | null;\r\n orderItemId?: string | null;\r\n ownerCode?: string | null;\r\n ownerItemCode?: string | null;\r\n}\r\n\r\nexport class DateTimeNdcLimit implements IDateTimeNdcLimit {\r\n code?: string | null;\r\n expirationDateTimeUtc?: string | null;\r\n\r\n constructor(data?: IDateTimeNdcLimit) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.expirationDateTimeUtc = _data[\"ExpirationDateTimeUtc\"] !== undefined ? _data[\"ExpirationDateTimeUtc\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DateTimeNdcLimit {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DateTimeNdcLimit();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"ExpirationDateTimeUtc\"] = this.expirationDateTimeUtc !== undefined ? this.expirationDateTimeUtc : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDateTimeNdcLimit {\r\n code?: string | null;\r\n expirationDateTimeUtc?: string | null;\r\n}\r\n\r\nexport abstract class CustomerCustomDataOfFlightPaxFare implements ICustomerCustomDataOfFlightPaxFare {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: ICustomerCustomDataOfFlightPaxFare) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"CustomerCustomDataOfFlightPaxFare\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): CustomerCustomDataOfFlightPaxFare {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataCode\"] === \"FlightPnrFlightPaxFareNaarData\") {\r\n let result = new FlightPnrFlightPaxFareNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'CustomerCustomDataOfFlightPaxFare' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICustomerCustomDataOfFlightPaxFare {\r\n}\r\n\r\nexport class FlightPnrFlightPaxFareNaarData extends CustomerCustomDataOfFlightPaxFare implements IFlightPnrFlightPaxFareNaarData {\r\n isToFare?: boolean | null;\r\n totalAmountWithoutTaxWithMarkup?: CurrencyAmount | null;\r\n totalAmountWithMarkup?: CurrencyAmount | null;\r\n totalTaxWithMarkup?: CurrencyAmount | null;\r\n perPaxAmountWithMarkup?: CurrencyAmount | null;\r\n\r\n constructor(data?: IFlightPnrFlightPaxFareNaarData) {\r\n super(data);\r\n this._discriminator = \"FlightPnrFlightPaxFareNaarData\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.isToFare = _data[\"isToFare\"] !== undefined ? _data[\"isToFare\"] : null;\r\n this.totalAmountWithoutTaxWithMarkup = _data[\"TotalAmountWithoutTaxWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalAmountWithoutTaxWithMarkup\"]) : null;\r\n this.totalAmountWithMarkup = _data[\"TotalAmountWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalAmountWithMarkup\"]) : null;\r\n this.totalTaxWithMarkup = _data[\"TotalTaxWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalTaxWithMarkup\"]) : null;\r\n this.perPaxAmountWithMarkup = _data[\"PerPaxAmountWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"PerPaxAmountWithMarkup\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightPnrFlightPaxFareNaarData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightPnrFlightPaxFareNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"isToFare\"] = this.isToFare !== undefined ? this.isToFare : null;\r\n data[\"TotalAmountWithoutTaxWithMarkup\"] = this.totalAmountWithoutTaxWithMarkup ? this.totalAmountWithoutTaxWithMarkup.toJSON() : null;\r\n data[\"TotalAmountWithMarkup\"] = this.totalAmountWithMarkup ? this.totalAmountWithMarkup.toJSON() : null;\r\n data[\"TotalTaxWithMarkup\"] = this.totalTaxWithMarkup ? this.totalTaxWithMarkup.toJSON() : null;\r\n data[\"PerPaxAmountWithMarkup\"] = this.perPaxAmountWithMarkup ? this.perPaxAmountWithMarkup.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightPnrFlightPaxFareNaarData extends ICustomerCustomDataOfFlightPaxFare {\r\n isToFare?: boolean | null;\r\n totalAmountWithoutTaxWithMarkup?: CurrencyAmount | null;\r\n totalAmountWithMarkup?: CurrencyAmount | null;\r\n totalTaxWithMarkup?: CurrencyAmount | null;\r\n perPaxAmountWithMarkup?: CurrencyAmount | null;\r\n}\r\n\r\nexport abstract class FlightAvailabilityOutputCustomData implements IFlightAvailabilityOutputCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IFlightAvailabilityOutputCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"FlightAvailabilityOutputCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): FlightAvailabilityOutputCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusFlightAvailabilityOutputCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'FlightAvailabilityOutputCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightAvailabilityOutputCustomData {\r\n}\r\n\r\nexport class AmadeusFlightAvailabilityOutputCustomData extends FlightAvailabilityOutputCustomData implements IAmadeusFlightAvailabilityOutputCustomData {\r\n amadeusSession?: AmadeusGdsSessionCustomData | null;\r\n\r\n constructor(data?: IAmadeusFlightAvailabilityOutputCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.amadeusSession = _data[\"AmadeusSession\"] ? AmadeusGdsSessionCustomData.fromJS(_data[\"AmadeusSession\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusFlightAvailabilityOutputCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusFlightAvailabilityOutputCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"AmadeusSession\"] = this.amadeusSession ? this.amadeusSession.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusFlightAvailabilityOutputCustomData extends IFlightAvailabilityOutputCustomData {\r\n amadeusSession?: AmadeusGdsSessionCustomData | null;\r\n}\r\n\r\nexport class CacheResponseInfo implements ICacheResponseInfo {\r\n isCachedResponse?: boolean | null;\r\n cachedItemKey?: string | null;\r\n cachedDateTimeUtc?: string | null;\r\n expirationTimeSpan?: string | null;\r\n\r\n constructor(data?: ICacheResponseInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.isCachedResponse = _data[\"IsCachedResponse\"] !== undefined ? _data[\"IsCachedResponse\"] : null;\r\n this.cachedItemKey = _data[\"CachedItemKey\"] !== undefined ? _data[\"CachedItemKey\"] : null;\r\n this.cachedDateTimeUtc = _data[\"CachedDateTimeUtc\"] !== undefined ? _data[\"CachedDateTimeUtc\"] : null;\r\n this.expirationTimeSpan = _data[\"ExpirationTimeSpan\"] !== undefined ? _data[\"ExpirationTimeSpan\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CacheResponseInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CacheResponseInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"IsCachedResponse\"] = this.isCachedResponse !== undefined ? this.isCachedResponse : null;\r\n data[\"CachedItemKey\"] = this.cachedItemKey !== undefined ? this.cachedItemKey : null;\r\n data[\"CachedDateTimeUtc\"] = this.cachedDateTimeUtc !== undefined ? this.cachedDateTimeUtc : null;\r\n data[\"ExpirationTimeSpan\"] = this.expirationTimeSpan !== undefined ? this.expirationTimeSpan : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICacheResponseInfo {\r\n isCachedResponse?: boolean | null;\r\n cachedItemKey?: string | null;\r\n cachedDateTimeUtc?: string | null;\r\n expirationTimeSpan?: string | null;\r\n}\r\n\r\nexport enum EOperationStatus {\r\n SUCCESS = \"SUCCESS\",\r\n WARNING = \"WARNING\",\r\n ERROR = \"ERROR\",\r\n}\r\n\r\nexport class Message implements IMessage {\r\n connectorCode?: EH2HConnectorCode | null;\r\n type?: EMessageType | null;\r\n code?: EMessageCode | null;\r\n text?: string | null;\r\n\r\n constructor(data?: IMessage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.text = _data[\"Text\"] !== undefined ? _data[\"Text\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Message {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Message();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Text\"] = this.text !== undefined ? this.text : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMessage {\r\n connectorCode?: EH2HConnectorCode | null;\r\n type?: EMessageType | null;\r\n code?: EMessageCode | null;\r\n text?: string | null;\r\n}\r\n\r\nexport enum EMessageType {\r\n INFO = \"INFO\",\r\n WARNING = \"WARNING\",\r\n ERROR = \"ERROR\",\r\n}\r\n\r\nexport enum EMessageCode {\r\n UNKNOWN = \"UNKNOWN\",\r\n INTERNAL_ERROR = \"INTERNAL_ERROR\",\r\n NOT_ENABLED_CONNECTOR = \"NOT_ENABLED_CONNECTOR\",\r\n NOT_ENABLED_OPERATION = \"NOT_ENABLED_OPERATION\",\r\n CONNECTOR_ERROR = \"CONNECTOR_ERROR\",\r\n NO_AVAIL = \"NO_AVAIL\",\r\n NO_FARE_OR_RATE = \"NO_FARE_OR_RATE\",\r\n WRONG_CC = \"WRONG_CC\",\r\n IMPOSSIBLE_TO_CANCEL = \"IMPOSSIBLE_TO_CANCEL\",\r\n BOOK_NOT_FOUND = \"BOOK_NOT_FOUND\",\r\n WRONG_INPUTS = \"WRONG_INPUTS\",\r\n PRICE_CHANGED = \"PRICE_CHANGED\",\r\n NO_RESULTS = \"NO_RESULTS\",\r\n FULL_RESPONSE = \"FULL_RESPONSE\",\r\n CACHE_EXPIRED = \"CACHE_EXPIRED\",\r\n}\r\n\r\nexport class ConnectorResponseDetails implements IConnectorResponseDetails {\r\n connectorCode?: EH2HConnectorCode | null;\r\n environment?: string | null;\r\n status?: EH2HOperationStatus | null;\r\n executionTime?: number | null;\r\n messages?: Message[] | null;\r\n messageCodes?: EMessageCode[] | null;\r\n connectorDebugData?: ConnectorDebugData | null;\r\n\r\n constructor(data?: IConnectorResponseDetails) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.environment = _data[\"Environment\"] !== undefined ? _data[\"Environment\"] : null;\r\n this.status = _data[\"Status\"] !== undefined ? _data[\"Status\"] : null;\r\n this.executionTime = _data[\"ExecutionTime\"] !== undefined ? _data[\"ExecutionTime\"] : null;\r\n if (Array.isArray(_data[\"Messages\"])) {\r\n this.messages = [] as any;\r\n for (let item of _data[\"Messages\"])\r\n this.messages!.push(Message.fromJS(item));\r\n }\r\n else {\r\n this.messages = null;\r\n }\r\n if (Array.isArray(_data[\"MessageCodes\"])) {\r\n this.messageCodes = [] as any;\r\n for (let item of _data[\"MessageCodes\"])\r\n this.messageCodes!.push(item);\r\n }\r\n else {\r\n this.messageCodes = null;\r\n }\r\n this.connectorDebugData = _data[\"ConnectorDebugData\"] ? ConnectorDebugData.fromJS(_data[\"ConnectorDebugData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConnectorResponseDetails {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConnectorResponseDetails();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"Environment\"] = this.environment !== undefined ? this.environment : null;\r\n data[\"Status\"] = this.status !== undefined ? this.status : null;\r\n data[\"ExecutionTime\"] = this.executionTime !== undefined ? this.executionTime : null;\r\n if (Array.isArray(this.messages)) {\r\n data[\"Messages\"] = [];\r\n for (let item of this.messages)\r\n data[\"Messages\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.messageCodes)) {\r\n data[\"MessageCodes\"] = [];\r\n for (let item of this.messageCodes)\r\n data[\"MessageCodes\"].push(item);\r\n }\r\n data[\"ConnectorDebugData\"] = this.connectorDebugData ? this.connectorDebugData.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConnectorResponseDetails {\r\n connectorCode?: EH2HConnectorCode | null;\r\n environment?: string | null;\r\n status?: EH2HOperationStatus | null;\r\n executionTime?: number | null;\r\n messages?: Message[] | null;\r\n messageCodes?: EMessageCode[] | null;\r\n connectorDebugData?: ConnectorDebugData | null;\r\n}\r\n\r\nexport enum EH2HOperationStatus {\r\n START = \"START\",\r\n PENDING = \"PENDING\",\r\n SUCCESS = \"SUCCESS\",\r\n WARNING = \"WARNING\",\r\n ERROR = \"ERROR\",\r\n}\r\n\r\nexport class ConnectorDebugData implements IConnectorDebugData {\r\n request?: string | null;\r\n response?: string | null;\r\n\r\n constructor(data?: IConnectorDebugData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.request = _data[\"Request\"] !== undefined ? _data[\"Request\"] : null;\r\n this.response = _data[\"Response\"] !== undefined ? _data[\"Response\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConnectorDebugData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConnectorDebugData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Request\"] = this.request !== undefined ? this.request : null;\r\n data[\"Response\"] = this.response !== undefined ? this.response : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConnectorDebugData {\r\n request?: string | null;\r\n response?: string | null;\r\n}\r\n\r\nexport class JupiterCrypticRS extends BaseRS implements IJupiterCrypticRS {\r\n response?: JupiterCrypticOutput | null;\r\n\r\n constructor(data?: IJupiterCrypticRS) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.response = _data[\"Response\"] ? JupiterCrypticOutput.fromJS(_data[\"Response\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterCrypticRS {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterCrypticRS();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Response\"] = this.response ? this.response.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterCrypticRS extends IBaseRS {\r\n response?: JupiterCrypticOutput | null;\r\n}\r\n\r\nexport abstract class BaseJupiterSessionOutput extends BaseOutput implements IBaseJupiterSessionOutput {\r\n connectorCode?: EH2HConnectorCode | null;\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n\r\n constructor(data?: IBaseJupiterSessionOutput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.sessionConnectorCustomData = _data[\"SessionConnectorCustomData\"] ? GdsSessionCustomData.fromJS(_data[\"SessionConnectorCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseJupiterSessionOutput {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseJupiterSessionOutput' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"SessionConnectorCustomData\"] = this.sessionConnectorCustomData ? this.sessionConnectorCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseJupiterSessionOutput extends IBaseOutput {\r\n connectorCode?: EH2HConnectorCode | null;\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n}\r\n\r\nexport class JupiterCrypticOutput extends BaseJupiterSessionOutput implements IJupiterCrypticOutput {\r\n crypticResponse?: string | null;\r\n\r\n constructor(data?: IJupiterCrypticOutput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.crypticResponse = _data[\"CrypticResponse\"] !== undefined ? _data[\"CrypticResponse\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterCrypticOutput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterCrypticOutput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CrypticResponse\"] = this.crypticResponse !== undefined ? this.crypticResponse : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterCrypticOutput extends IBaseJupiterSessionOutput {\r\n crypticResponse?: string | null;\r\n}\r\n\r\nexport class JupiterCrypticRQ extends BaseRQ implements IJupiterCrypticRQ {\r\n request?: JupiterCrypticInput | null;\r\n\r\n constructor(data?: IJupiterCrypticRQ) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.request = _data[\"Request\"] ? JupiterCrypticInput.fromJS(_data[\"Request\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterCrypticRQ {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterCrypticRQ();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Request\"] = this.request ? this.request.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterCrypticRQ extends IBaseRQ {\r\n request?: JupiterCrypticInput | null;\r\n}\r\n\r\nexport abstract class BaseJupiterSessionInput extends BaseInput implements IBaseJupiterSessionInput {\r\n connectorCode?: EH2HConnectorCode | null;\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n\r\n constructor(data?: IBaseJupiterSessionInput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.sessionConnectorCustomData = _data[\"SessionConnectorCustomData\"] ? GdsSessionCustomData.fromJS(_data[\"SessionConnectorCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseJupiterSessionInput {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseJupiterSessionInput' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"SessionConnectorCustomData\"] = this.sessionConnectorCustomData ? this.sessionConnectorCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseJupiterSessionInput extends IBaseInput {\r\n connectorCode?: EH2HConnectorCode | null;\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n}\r\n\r\nexport class JupiterCrypticInput extends BaseJupiterSessionInput implements IJupiterCrypticInput {\r\n crypticRequest?: string | null;\r\n\r\n constructor(data?: IJupiterCrypticInput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.crypticRequest = _data[\"CrypticRequest\"] !== undefined ? _data[\"CrypticRequest\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterCrypticInput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterCrypticInput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CrypticRequest\"] = this.crypticRequest !== undefined ? this.crypticRequest : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterCrypticInput extends IBaseJupiterSessionInput {\r\n crypticRequest?: string | null;\r\n}\r\n\r\nexport class JupiterFlightPnrRetrieveRS extends BaseRS implements IJupiterFlightPnrRetrieveRS {\r\n response?: JupiterFlightPnrRetrieveOutput | null;\r\n\r\n constructor(data?: IJupiterFlightPnrRetrieveRS) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.response = _data[\"Response\"] ? JupiterFlightPnrRetrieveOutput.fromJS(_data[\"Response\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightPnrRetrieveRS {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightPnrRetrieveRS();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Response\"] = this.response ? this.response.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightPnrRetrieveRS extends IBaseRS {\r\n response?: JupiterFlightPnrRetrieveOutput | null;\r\n}\r\n\r\nexport class JupiterFlightPnrRetrieveOutput extends BaseOutput implements IJupiterFlightPnrRetrieveOutput {\r\n pnr?: BaseOperationPnr | null;\r\n\r\n constructor(data?: IJupiterFlightPnrRetrieveOutput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pnr = _data[\"Pnr\"] ? BaseOperationPnr.fromJS(_data[\"Pnr\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightPnrRetrieveOutput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightPnrRetrieveOutput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Pnr\"] = this.pnr ? this.pnr.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightPnrRetrieveOutput extends IBaseOutput {\r\n pnr?: BaseOperationPnr | null;\r\n}\r\n\r\nexport class BaseOperationPnr implements IBaseOperationPnr {\r\n fullReferenceId?: string | null;\r\n resultKey?: string | null;\r\n routingKey?: string | null;\r\n isPure?: boolean | null;\r\n codeShareKey?: string | null;\r\n connectorCode!: EH2HConnectorCode;\r\n closePnr?: boolean | null;\r\n bookingStatus?: EBookingStatus | null;\r\n pnrNumber?: string | null;\r\n pseudoCityCode?: string | null;\r\n pnrDate?: string | null;\r\n cancelDate?: string | null;\r\n lastTicketDate?: string | null;\r\n flightSegments?: PnrFlightSegment[] | null;\r\n fare?: PnrFlightFare | null;\r\n alternativeFares?: PnrFlightFare[] | null;\r\n ancillaries?: PnrBookedFlightAncillary[] | null;\r\n additionalAncillaries?: PnrFlightAdditionalAncillary[] | null;\r\n paxes?: PnrPaxDetails[] | null;\r\n creditCardPayment?: CreditCardInfo | null;\r\n travelCompany?: PnrTravelCompany | null;\r\n remarks?: PnrRemarks[] | null;\r\n osiSsr?: PnrOsiSsr[] | null;\r\n cO2Emissions?: CO2Emissions | null;\r\n connectorCustomData?: PnrCustomData | null;\r\n\r\n constructor(data?: IBaseOperationPnr) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.fullReferenceId = _data[\"FullReferenceId\"] !== undefined ? _data[\"FullReferenceId\"] : null;\r\n this.resultKey = _data[\"ResultKey\"] !== undefined ? _data[\"ResultKey\"] : null;\r\n this.routingKey = _data[\"RoutingKey\"] !== undefined ? _data[\"RoutingKey\"] : null;\r\n this.isPure = _data[\"IsPure\"] !== undefined ? _data[\"IsPure\"] : null;\r\n this.codeShareKey = _data[\"CodeShareKey\"] !== undefined ? _data[\"CodeShareKey\"] : null;\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.closePnr = _data[\"ClosePnr\"] !== undefined ? _data[\"ClosePnr\"] : null;\r\n this.bookingStatus = _data[\"BookingStatus\"] !== undefined ? _data[\"BookingStatus\"] : null;\r\n this.pnrNumber = _data[\"PnrNumber\"] !== undefined ? _data[\"PnrNumber\"] : null;\r\n this.pseudoCityCode = _data[\"PseudoCityCode\"] !== undefined ? _data[\"PseudoCityCode\"] : null;\r\n this.pnrDate = _data[\"PnrDate\"] !== undefined ? _data[\"PnrDate\"] : null;\r\n this.cancelDate = _data[\"CancelDate\"] !== undefined ? _data[\"CancelDate\"] : null;\r\n this.lastTicketDate = _data[\"LastTicketDate\"] !== undefined ? _data[\"LastTicketDate\"] : null;\r\n if (Array.isArray(_data[\"FlightSegments\"])) {\r\n this.flightSegments = [] as any;\r\n for (let item of _data[\"FlightSegments\"])\r\n this.flightSegments!.push(PnrFlightSegment.fromJS(item));\r\n }\r\n else {\r\n this.flightSegments = null;\r\n }\r\n this.fare = _data[\"Fare\"] ? PnrFlightFare.fromJS(_data[\"Fare\"]) : null;\r\n if (Array.isArray(_data[\"AlternativeFares\"])) {\r\n this.alternativeFares = [] as any;\r\n for (let item of _data[\"AlternativeFares\"])\r\n this.alternativeFares!.push(PnrFlightFare.fromJS(item));\r\n }\r\n else {\r\n this.alternativeFares = null;\r\n }\r\n if (Array.isArray(_data[\"Ancillaries\"])) {\r\n this.ancillaries = [] as any;\r\n for (let item of _data[\"Ancillaries\"])\r\n this.ancillaries!.push(PnrBookedFlightAncillary.fromJS(item));\r\n }\r\n else {\r\n this.ancillaries = null;\r\n }\r\n if (Array.isArray(_data[\"AdditionalAncillaries\"])) {\r\n this.additionalAncillaries = [] as any;\r\n for (let item of _data[\"AdditionalAncillaries\"])\r\n this.additionalAncillaries!.push(PnrFlightAdditionalAncillary.fromJS(item));\r\n }\r\n else {\r\n this.additionalAncillaries = null;\r\n }\r\n if (Array.isArray(_data[\"Paxes\"])) {\r\n this.paxes = [] as any;\r\n for (let item of _data[\"Paxes\"])\r\n this.paxes!.push(PnrPaxDetails.fromJS(item));\r\n }\r\n else {\r\n this.paxes = null;\r\n }\r\n this.creditCardPayment = _data[\"CreditCardPayment\"] ? CreditCardInfo.fromJS(_data[\"CreditCardPayment\"]) : null;\r\n this.travelCompany = _data[\"TravelCompany\"] ? PnrTravelCompany.fromJS(_data[\"TravelCompany\"]) : null;\r\n if (Array.isArray(_data[\"Remarks\"])) {\r\n this.remarks = [] as any;\r\n for (let item of _data[\"Remarks\"])\r\n this.remarks!.push(PnrRemarks.fromJS(item));\r\n }\r\n else {\r\n this.remarks = null;\r\n }\r\n if (Array.isArray(_data[\"OsiSsr\"])) {\r\n this.osiSsr = [] as any;\r\n for (let item of _data[\"OsiSsr\"])\r\n this.osiSsr!.push(PnrOsiSsr.fromJS(item));\r\n }\r\n else {\r\n this.osiSsr = null;\r\n }\r\n this.cO2Emissions = _data[\"CO2Emissions\"] ? CO2Emissions.fromJS(_data[\"CO2Emissions\"]) : null;\r\n this.connectorCustomData = _data[\"ConnectorCustomData\"] ? PnrCustomData.fromJS(_data[\"ConnectorCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseOperationPnr {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BaseOperationPnr();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"FullReferenceId\"] = this.fullReferenceId !== undefined ? this.fullReferenceId : null;\r\n data[\"ResultKey\"] = this.resultKey !== undefined ? this.resultKey : null;\r\n data[\"RoutingKey\"] = this.routingKey !== undefined ? this.routingKey : null;\r\n data[\"IsPure\"] = this.isPure !== undefined ? this.isPure : null;\r\n data[\"CodeShareKey\"] = this.codeShareKey !== undefined ? this.codeShareKey : null;\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"ClosePnr\"] = this.closePnr !== undefined ? this.closePnr : null;\r\n data[\"BookingStatus\"] = this.bookingStatus !== undefined ? this.bookingStatus : null;\r\n data[\"PnrNumber\"] = this.pnrNumber !== undefined ? this.pnrNumber : null;\r\n data[\"PseudoCityCode\"] = this.pseudoCityCode !== undefined ? this.pseudoCityCode : null;\r\n data[\"PnrDate\"] = this.pnrDate !== undefined ? this.pnrDate : null;\r\n data[\"CancelDate\"] = this.cancelDate !== undefined ? this.cancelDate : null;\r\n data[\"LastTicketDate\"] = this.lastTicketDate !== undefined ? this.lastTicketDate : null;\r\n if (Array.isArray(this.flightSegments)) {\r\n data[\"FlightSegments\"] = [];\r\n for (let item of this.flightSegments)\r\n data[\"FlightSegments\"].push(item.toJSON());\r\n }\r\n data[\"Fare\"] = this.fare ? this.fare.toJSON() : null;\r\n if (Array.isArray(this.alternativeFares)) {\r\n data[\"AlternativeFares\"] = [];\r\n for (let item of this.alternativeFares)\r\n data[\"AlternativeFares\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.ancillaries)) {\r\n data[\"Ancillaries\"] = [];\r\n for (let item of this.ancillaries)\r\n data[\"Ancillaries\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.additionalAncillaries)) {\r\n data[\"AdditionalAncillaries\"] = [];\r\n for (let item of this.additionalAncillaries)\r\n data[\"AdditionalAncillaries\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.paxes)) {\r\n data[\"Paxes\"] = [];\r\n for (let item of this.paxes)\r\n data[\"Paxes\"].push(item.toJSON());\r\n }\r\n data[\"CreditCardPayment\"] = this.creditCardPayment ? this.creditCardPayment.toJSON() : null;\r\n data[\"TravelCompany\"] = this.travelCompany ? this.travelCompany.toJSON() : null;\r\n if (Array.isArray(this.remarks)) {\r\n data[\"Remarks\"] = [];\r\n for (let item of this.remarks)\r\n data[\"Remarks\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.osiSsr)) {\r\n data[\"OsiSsr\"] = [];\r\n for (let item of this.osiSsr)\r\n data[\"OsiSsr\"].push(item.toJSON());\r\n }\r\n data[\"CO2Emissions\"] = this.cO2Emissions ? this.cO2Emissions.toJSON() : null;\r\n data[\"ConnectorCustomData\"] = this.connectorCustomData ? this.connectorCustomData.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseOperationPnr {\r\n fullReferenceId?: string | null;\r\n resultKey?: string | null;\r\n routingKey?: string | null;\r\n isPure?: boolean | null;\r\n codeShareKey?: string | null;\r\n connectorCode: EH2HConnectorCode;\r\n closePnr?: boolean | null;\r\n bookingStatus?: EBookingStatus | null;\r\n pnrNumber?: string | null;\r\n pseudoCityCode?: string | null;\r\n pnrDate?: string | null;\r\n cancelDate?: string | null;\r\n lastTicketDate?: string | null;\r\n flightSegments?: PnrFlightSegment[] | null;\r\n fare?: PnrFlightFare | null;\r\n alternativeFares?: PnrFlightFare[] | null;\r\n ancillaries?: PnrBookedFlightAncillary[] | null;\r\n additionalAncillaries?: PnrFlightAdditionalAncillary[] | null;\r\n paxes?: PnrPaxDetails[] | null;\r\n creditCardPayment?: CreditCardInfo | null;\r\n travelCompany?: PnrTravelCompany | null;\r\n remarks?: PnrRemarks[] | null;\r\n osiSsr?: PnrOsiSsr[] | null;\r\n cO2Emissions?: CO2Emissions | null;\r\n connectorCustomData?: PnrCustomData | null;\r\n}\r\n\r\nexport enum EBookingStatus {\r\n PENDING = \"PENDING\",\r\n BOOKED = \"BOOKED\",\r\n DELETED = \"DELETED\",\r\n ERROR = \"ERROR\",\r\n MODIFIED = \"MODIFIED\",\r\n}\r\n\r\nexport class PnrFlightSegment extends FlightSegment implements IPnrFlightSegment {\r\n flightStatus?: EFlightStatus | null;\r\n connectorCustomData?: PnrFlightSegmentCustomData | null;\r\n\r\n constructor(data?: IPnrFlightSegment) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.flightStatus = _data[\"FlightStatus\"] !== undefined ? _data[\"FlightStatus\"] : null;\r\n this.connectorCustomData = _data[\"ConnectorCustomData\"] ? PnrFlightSegmentCustomData.fromJS(_data[\"ConnectorCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PnrFlightSegment {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrFlightSegment();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"FlightStatus\"] = this.flightStatus !== undefined ? this.flightStatus : null;\r\n data[\"ConnectorCustomData\"] = this.connectorCustomData ? this.connectorCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrFlightSegment extends IFlightSegment {\r\n flightStatus?: EFlightStatus | null;\r\n connectorCustomData?: PnrFlightSegmentCustomData | null;\r\n}\r\n\r\nexport enum EFlightStatus {\r\n HK_CONFIRMED = \"HK_CONFIRMED\",\r\n WL_WAITLISTED = \"WL_WAITLISTED\",\r\n RQ_ON_REQUEST = \"RQ_ON_REQUEST\",\r\n X_CANCELLED = \"X_CANCELLED\",\r\n UC_IMPOSSIBLE = \"UC_IMPOSSIBLE\",\r\n SC_SCHEDULE_CHANGE = \"SC_SCHEDULE_CHANGE\",\r\n UNKNOWN = \"UNKNOWN\",\r\n}\r\n\r\nexport abstract class PnrFlightSegmentCustomData implements IPnrFlightSegmentCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IPnrFlightSegmentCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"PnrFlightSegmentCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): PnrFlightSegmentCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"SABRE\") {\r\n let result = new SabrePnrFlightSegmentCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusPnrFlightSegmentCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'PnrFlightSegmentCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrFlightSegmentCustomData {\r\n}\r\n\r\nexport class SabrePnrFlightSegmentCustomData extends PnrFlightSegmentCustomData implements ISabrePnrFlightSegmentCustomData {\r\n marriageGrp?: string | null;\r\n statusCode?: string | null;\r\n\r\n constructor(data?: ISabrePnrFlightSegmentCustomData) {\r\n super(data);\r\n this._discriminator = \"SABRE\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.marriageGrp = _data[\"MarriageGrp\"] !== undefined ? _data[\"MarriageGrp\"] : null;\r\n this.statusCode = _data[\"StatusCode\"] !== undefined ? _data[\"StatusCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SabrePnrFlightSegmentCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SabrePnrFlightSegmentCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"MarriageGrp\"] = this.marriageGrp !== undefined ? this.marriageGrp : null;\r\n data[\"StatusCode\"] = this.statusCode !== undefined ? this.statusCode : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISabrePnrFlightSegmentCustomData extends IPnrFlightSegmentCustomData {\r\n marriageGrp?: string | null;\r\n statusCode?: string | null;\r\n}\r\n\r\nexport class AmadeusPnrFlightSegmentCustomData extends PnrFlightSegmentCustomData implements IAmadeusPnrFlightSegmentCustomData {\r\n referenceNumber?: string | null;\r\n lineNumber?: string | null;\r\n classCode?: string | null;\r\n status?: string | null;\r\n eTicket?: boolean | null;\r\n quantity?: number | null;\r\n numOfStops?: string | null;\r\n operatedByText?: string | null;\r\n cabinDetails?: string | null;\r\n\r\n constructor(data?: IAmadeusPnrFlightSegmentCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.referenceNumber = _data[\"ReferenceNumber\"] !== undefined ? _data[\"ReferenceNumber\"] : null;\r\n this.lineNumber = _data[\"LineNumber\"] !== undefined ? _data[\"LineNumber\"] : null;\r\n this.classCode = _data[\"ClassCode\"] !== undefined ? _data[\"ClassCode\"] : null;\r\n this.status = _data[\"Status\"] !== undefined ? _data[\"Status\"] : null;\r\n this.eTicket = _data[\"ETicket\"] !== undefined ? _data[\"ETicket\"] : null;\r\n this.quantity = _data[\"Quantity\"] !== undefined ? _data[\"Quantity\"] : null;\r\n this.numOfStops = _data[\"NumOfStops\"] !== undefined ? _data[\"NumOfStops\"] : null;\r\n this.operatedByText = _data[\"OperatedByText\"] !== undefined ? _data[\"OperatedByText\"] : null;\r\n this.cabinDetails = _data[\"CabinDetails\"] !== undefined ? _data[\"CabinDetails\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusPnrFlightSegmentCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusPnrFlightSegmentCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ReferenceNumber\"] = this.referenceNumber !== undefined ? this.referenceNumber : null;\r\n data[\"LineNumber\"] = this.lineNumber !== undefined ? this.lineNumber : null;\r\n data[\"ClassCode\"] = this.classCode !== undefined ? this.classCode : null;\r\n data[\"Status\"] = this.status !== undefined ? this.status : null;\r\n data[\"ETicket\"] = this.eTicket !== undefined ? this.eTicket : null;\r\n data[\"Quantity\"] = this.quantity !== undefined ? this.quantity : null;\r\n data[\"NumOfStops\"] = this.numOfStops !== undefined ? this.numOfStops : null;\r\n data[\"OperatedByText\"] = this.operatedByText !== undefined ? this.operatedByText : null;\r\n data[\"CabinDetails\"] = this.cabinDetails !== undefined ? this.cabinDetails : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusPnrFlightSegmentCustomData extends IPnrFlightSegmentCustomData {\r\n referenceNumber?: string | null;\r\n lineNumber?: string | null;\r\n classCode?: string | null;\r\n status?: string | null;\r\n eTicket?: boolean | null;\r\n quantity?: number | null;\r\n numOfStops?: string | null;\r\n operatedByText?: string | null;\r\n cabinDetails?: string | null;\r\n}\r\n\r\nexport class PnrFlightFare extends FlightFare implements IPnrFlightFare {\r\n customerCustomData?: CustomerCustomDataOfPnrFlightFare | null;\r\n\r\n constructor(data?: IPnrFlightFare) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.customerCustomData = _data[\"CustomerCustomData\"] ? CustomerCustomDataOfPnrFlightFare.fromJS(_data[\"CustomerCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PnrFlightFare {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrFlightFare();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomerCustomData\"] = this.customerCustomData ? this.customerCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrFlightFare extends IFlightFare {\r\n customerCustomData?: CustomerCustomDataOfPnrFlightFare | null;\r\n}\r\n\r\nexport abstract class CustomerCustomDataOfPnrFlightFare implements ICustomerCustomDataOfPnrFlightFare {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: ICustomerCustomDataOfPnrFlightFare) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"CustomerCustomDataOfPnrFlightFare\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): CustomerCustomDataOfPnrFlightFare {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataCode\"] === \"FlightPnrFareNaarData\") {\r\n let result = new FlightPnrFareNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'CustomerCustomDataOfPnrFlightFare' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICustomerCustomDataOfPnrFlightFare {\r\n}\r\n\r\nexport class FlightPnrFareNaarData extends CustomerCustomDataOfPnrFlightFare implements IFlightPnrFareNaarData {\r\n isToFare?: boolean | null;\r\n totalAmountWithoutTaxWithMarkup?: CurrencyAmount | null;\r\n totalAmountWithMarkup?: CurrencyAmount | null;\r\n totalTaxWithMarkup?: CurrencyAmount | null;\r\n perPaxAmountWithMarkup?: CurrencyAmount | null;\r\n\r\n constructor(data?: IFlightPnrFareNaarData) {\r\n super(data);\r\n this._discriminator = \"FlightPnrFareNaarData\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.isToFare = _data[\"isToFare\"] !== undefined ? _data[\"isToFare\"] : null;\r\n this.totalAmountWithoutTaxWithMarkup = _data[\"TotalAmountWithoutTaxWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalAmountWithoutTaxWithMarkup\"]) : null;\r\n this.totalAmountWithMarkup = _data[\"TotalAmountWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalAmountWithMarkup\"]) : null;\r\n this.totalTaxWithMarkup = _data[\"TotalTaxWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"TotalTaxWithMarkup\"]) : null;\r\n this.perPaxAmountWithMarkup = _data[\"PerPaxAmountWithMarkup\"] ? CurrencyAmount.fromJS(_data[\"PerPaxAmountWithMarkup\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightPnrFareNaarData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightPnrFareNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"isToFare\"] = this.isToFare !== undefined ? this.isToFare : null;\r\n data[\"TotalAmountWithoutTaxWithMarkup\"] = this.totalAmountWithoutTaxWithMarkup ? this.totalAmountWithoutTaxWithMarkup.toJSON() : null;\r\n data[\"TotalAmountWithMarkup\"] = this.totalAmountWithMarkup ? this.totalAmountWithMarkup.toJSON() : null;\r\n data[\"TotalTaxWithMarkup\"] = this.totalTaxWithMarkup ? this.totalTaxWithMarkup.toJSON() : null;\r\n data[\"PerPaxAmountWithMarkup\"] = this.perPaxAmountWithMarkup ? this.perPaxAmountWithMarkup.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightPnrFareNaarData extends ICustomerCustomDataOfPnrFlightFare {\r\n isToFare?: boolean | null;\r\n totalAmountWithoutTaxWithMarkup?: CurrencyAmount | null;\r\n totalAmountWithMarkup?: CurrencyAmount | null;\r\n totalTaxWithMarkup?: CurrencyAmount | null;\r\n perPaxAmountWithMarkup?: CurrencyAmount | null;\r\n}\r\n\r\nexport abstract class BaseFlightAncillary implements IBaseFlightAncillary {\r\n id?: string | null;\r\n type?: EAncillaryType | null;\r\n code?: string | null;\r\n description?: string | null;\r\n\r\n constructor(data?: IBaseFlightAncillary) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.description = _data[\"Description\"] !== undefined ? _data[\"Description\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseFlightAncillary {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'BaseFlightAncillary' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Description\"] = this.description !== undefined ? this.description : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseFlightAncillary {\r\n id?: string | null;\r\n type?: EAncillaryType | null;\r\n code?: string | null;\r\n description?: string | null;\r\n}\r\n\r\nexport class BookedFlightAncillary extends BaseFlightAncillary implements IBookedFlightAncillary {\r\n paxRefId?: string | null;\r\n flightSegmentRefIds?: string[] | null;\r\n chargeMode?: EAncillaryChargeMode | null;\r\n baseAmount?: CurrencyAmount | null;\r\n selectedOptionIdOrValue?: string | null;\r\n selectedOptionDescription?: string | null;\r\n totalAmount?: CurrencyAmount | null;\r\n\r\n constructor(data?: IBookedFlightAncillary) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.paxRefId = _data[\"PaxRefId\"] !== undefined ? _data[\"PaxRefId\"] : null;\r\n if (Array.isArray(_data[\"FlightSegmentRefIds\"])) {\r\n this.flightSegmentRefIds = [] as any;\r\n for (let item of _data[\"FlightSegmentRefIds\"])\r\n this.flightSegmentRefIds!.push(item);\r\n }\r\n else {\r\n this.flightSegmentRefIds = null;\r\n }\r\n this.chargeMode = _data[\"ChargeMode\"] !== undefined ? _data[\"ChargeMode\"] : null;\r\n this.baseAmount = _data[\"BaseAmount\"] ? CurrencyAmount.fromJS(_data[\"BaseAmount\"]) : null;\r\n this.selectedOptionIdOrValue = _data[\"SelectedOptionIdOrValue\"] !== undefined ? _data[\"SelectedOptionIdOrValue\"] : null;\r\n this.selectedOptionDescription = _data[\"SelectedOptionDescription\"] !== undefined ? _data[\"SelectedOptionDescription\"] : null;\r\n this.totalAmount = _data[\"TotalAmount\"] ? CurrencyAmount.fromJS(_data[\"TotalAmount\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): BookedFlightAncillary {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BookedFlightAncillary();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"PaxRefId\"] = this.paxRefId !== undefined ? this.paxRefId : null;\r\n if (Array.isArray(this.flightSegmentRefIds)) {\r\n data[\"FlightSegmentRefIds\"] = [];\r\n for (let item of this.flightSegmentRefIds)\r\n data[\"FlightSegmentRefIds\"].push(item);\r\n }\r\n data[\"ChargeMode\"] = this.chargeMode !== undefined ? this.chargeMode : null;\r\n data[\"BaseAmount\"] = this.baseAmount ? this.baseAmount.toJSON() : null;\r\n data[\"SelectedOptionIdOrValue\"] = this.selectedOptionIdOrValue !== undefined ? this.selectedOptionIdOrValue : null;\r\n data[\"SelectedOptionDescription\"] = this.selectedOptionDescription !== undefined ? this.selectedOptionDescription : null;\r\n data[\"TotalAmount\"] = this.totalAmount ? this.totalAmount.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBookedFlightAncillary extends IBaseFlightAncillary {\r\n paxRefId?: string | null;\r\n flightSegmentRefIds?: string[] | null;\r\n chargeMode?: EAncillaryChargeMode | null;\r\n baseAmount?: CurrencyAmount | null;\r\n selectedOptionIdOrValue?: string | null;\r\n selectedOptionDescription?: string | null;\r\n totalAmount?: CurrencyAmount | null;\r\n}\r\n\r\nexport class PnrBookedFlightAncillary extends BookedFlightAncillary implements IPnrBookedFlightAncillary {\r\n\r\n constructor(data?: IPnrBookedFlightAncillary) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PnrBookedFlightAncillary {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrBookedFlightAncillary();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrBookedFlightAncillary extends IBookedFlightAncillary {\r\n}\r\n\r\nexport enum EAncillaryChargeMode {\r\n PER_PERSON = \"PER_PERSON\",\r\n PER_SEGMENT = \"PER_SEGMENT\",\r\n PER_PERSON_PER_SEGMENT = \"PER_PERSON_PER_SEGMENT\",\r\n TOTAL = \"TOTAL\",\r\n}\r\n\r\nexport enum EAncillaryType {\r\n BAGGAGE = \"BAGGAGE\",\r\n OUTWARD_BAGGAGE = \"OUTWARD_BAGGAGE\",\r\n RETURN_BAGGAGE = \"RETURN_BAGGAGE\",\r\n HAND_BAGGAGE = \"HAND_BAGGAGE\",\r\n HAND_OUTWARD_BAGGAGE = \"HAND_OUTWARD_BAGGAGE\",\r\n HAND_RETURN_BAGGAGE = \"HAND_RETURN_BAGGAGE\",\r\n MEAL = \"MEAL\",\r\n INSURANCE = \"INSURANCE\",\r\n SPEEDY_BOARDING = \"SPEEDY_BOARDING\",\r\n ONLINE_CHECKIN = \"ONLINE_CHECKIN\",\r\n AIRPORT_CHECKIN = \"AIRPORT_CHECKIN\",\r\n SEAT_ASSIGNMENT = \"SEAT_ASSIGNMENT\",\r\n CARD_CHARGE = \"CARD_CHARGE\",\r\n EQUIPMENT = \"EQUIPMENT\",\r\n OTHER = \"OTHER\",\r\n}\r\n\r\nexport class FlightAdditionalAncillary extends BaseFlightAncillary implements IFlightAdditionalAncillary {\r\n options?: FlightAncillaryOption[] | null;\r\n selectedPaxRefId?: string | null;\r\n selectedFlightSegmentRefIds?: string[] | null;\r\n selectedOptionIdOrValue?: string | null;\r\n\r\n constructor(data?: IFlightAdditionalAncillary) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"Options\"])) {\r\n this.options = [] as any;\r\n for (let item of _data[\"Options\"])\r\n this.options!.push(FlightAncillaryOption.fromJS(item));\r\n }\r\n else {\r\n this.options = null;\r\n }\r\n this.selectedPaxRefId = _data[\"SelectedPaxRefId\"] !== undefined ? _data[\"SelectedPaxRefId\"] : null;\r\n if (Array.isArray(_data[\"SelectedFlightSegmentRefIds\"])) {\r\n this.selectedFlightSegmentRefIds = [] as any;\r\n for (let item of _data[\"SelectedFlightSegmentRefIds\"])\r\n this.selectedFlightSegmentRefIds!.push(item);\r\n }\r\n else {\r\n this.selectedFlightSegmentRefIds = null;\r\n }\r\n this.selectedOptionIdOrValue = _data[\"SelectedOptionIdOrValue\"] !== undefined ? _data[\"SelectedOptionIdOrValue\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightAdditionalAncillary {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightAdditionalAncillary();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.options)) {\r\n data[\"Options\"] = [];\r\n for (let item of this.options)\r\n data[\"Options\"].push(item.toJSON());\r\n }\r\n data[\"SelectedPaxRefId\"] = this.selectedPaxRefId !== undefined ? this.selectedPaxRefId : null;\r\n if (Array.isArray(this.selectedFlightSegmentRefIds)) {\r\n data[\"SelectedFlightSegmentRefIds\"] = [];\r\n for (let item of this.selectedFlightSegmentRefIds)\r\n data[\"SelectedFlightSegmentRefIds\"].push(item);\r\n }\r\n data[\"SelectedOptionIdOrValue\"] = this.selectedOptionIdOrValue !== undefined ? this.selectedOptionIdOrValue : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightAdditionalAncillary extends IBaseFlightAncillary {\r\n options?: FlightAncillaryOption[] | null;\r\n selectedPaxRefId?: string | null;\r\n selectedFlightSegmentRefIds?: string[] | null;\r\n selectedOptionIdOrValue?: string | null;\r\n}\r\n\r\nexport class PnrFlightAdditionalAncillary extends FlightAdditionalAncillary implements IPnrFlightAdditionalAncillary {\r\n\r\n constructor(data?: IPnrFlightAdditionalAncillary) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PnrFlightAdditionalAncillary {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrFlightAdditionalAncillary();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrFlightAdditionalAncillary extends IFlightAdditionalAncillary {\r\n}\r\n\r\nexport class FlightAncillaryOption implements IFlightAncillaryOption {\r\n id!: string;\r\n description?: string | null;\r\n paxType?: EPaxType | null;\r\n chargeMode?: EAncillaryChargeMode | null;\r\n baseAmount!: CurrencyAmount;\r\n seatMapInfo?: SeatMap | null;\r\n baggageInfo?: BaggageInfo | null;\r\n\r\n constructor(data?: IFlightAncillaryOption) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.baseAmount = new CurrencyAmount();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.description = _data[\"Description\"] !== undefined ? _data[\"Description\"] : null;\r\n this.paxType = _data[\"PaxType\"] !== undefined ? _data[\"PaxType\"] : null;\r\n this.chargeMode = _data[\"ChargeMode\"] !== undefined ? _data[\"ChargeMode\"] : null;\r\n this.baseAmount = _data[\"BaseAmount\"] ? CurrencyAmount.fromJS(_data[\"BaseAmount\"]) : new CurrencyAmount();\r\n this.seatMapInfo = _data[\"SeatMapInfo\"] ? SeatMap.fromJS(_data[\"SeatMapInfo\"]) : null;\r\n this.baggageInfo = _data[\"BaggageInfo\"] ? BaggageInfo.fromJS(_data[\"BaggageInfo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightAncillaryOption {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightAncillaryOption();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"Description\"] = this.description !== undefined ? this.description : null;\r\n data[\"PaxType\"] = this.paxType !== undefined ? this.paxType : null;\r\n data[\"ChargeMode\"] = this.chargeMode !== undefined ? this.chargeMode : null;\r\n data[\"BaseAmount\"] = this.baseAmount ? this.baseAmount.toJSON() : null;\r\n data[\"SeatMapInfo\"] = this.seatMapInfo ? this.seatMapInfo.toJSON() : null;\r\n data[\"BaggageInfo\"] = this.baggageInfo ? this.baggageInfo.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightAncillaryOption {\r\n id: string;\r\n description?: string | null;\r\n paxType?: EPaxType | null;\r\n chargeMode?: EAncillaryChargeMode | null;\r\n baseAmount: CurrencyAmount;\r\n seatMapInfo?: SeatMap | null;\r\n baggageInfo?: BaggageInfo | null;\r\n}\r\n\r\nexport class SeatMap implements ISeatMap {\r\n rowNumber?: number | null;\r\n rowPosition?: ESeatMapRowPosition | null;\r\n column?: string | null;\r\n columnPosition?: ESeatMapColumnPosition | null;\r\n seatAvailability?: ESeatMapAvailability | null;\r\n rowLevel?: ESeatMapRowLevel | null;\r\n seatCharacteristics?: string[] | null;\r\n extraLeg?: boolean | null;\r\n exitRow?: boolean | null;\r\n hasPaxTypeRestriction?: boolean | null;\r\n hasRestriction?: boolean | null;\r\n isFacility?: boolean | null;\r\n\r\n constructor(data?: ISeatMap) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.rowNumber = _data[\"RowNumber\"] !== undefined ? _data[\"RowNumber\"] : null;\r\n this.rowPosition = _data[\"RowPosition\"] !== undefined ? _data[\"RowPosition\"] : null;\r\n this.column = _data[\"Column\"] !== undefined ? _data[\"Column\"] : null;\r\n this.columnPosition = _data[\"ColumnPosition\"] !== undefined ? _data[\"ColumnPosition\"] : null;\r\n this.seatAvailability = _data[\"SeatAvailability\"] !== undefined ? _data[\"SeatAvailability\"] : null;\r\n this.rowLevel = _data[\"RowLevel\"] !== undefined ? _data[\"RowLevel\"] : null;\r\n if (Array.isArray(_data[\"SeatCharacteristics\"])) {\r\n this.seatCharacteristics = [] as any;\r\n for (let item of _data[\"SeatCharacteristics\"])\r\n this.seatCharacteristics!.push(item);\r\n }\r\n else {\r\n this.seatCharacteristics = null;\r\n }\r\n this.extraLeg = _data[\"ExtraLeg\"] !== undefined ? _data[\"ExtraLeg\"] : null;\r\n this.exitRow = _data[\"ExitRow\"] !== undefined ? _data[\"ExitRow\"] : null;\r\n this.hasPaxTypeRestriction = _data[\"HasPaxTypeRestriction\"] !== undefined ? _data[\"HasPaxTypeRestriction\"] : null;\r\n this.hasRestriction = _data[\"HasRestriction\"] !== undefined ? _data[\"HasRestriction\"] : null;\r\n this.isFacility = _data[\"IsFacility\"] !== undefined ? _data[\"IsFacility\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SeatMap {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SeatMap();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"RowNumber\"] = this.rowNumber !== undefined ? this.rowNumber : null;\r\n data[\"RowPosition\"] = this.rowPosition !== undefined ? this.rowPosition : null;\r\n data[\"Column\"] = this.column !== undefined ? this.column : null;\r\n data[\"ColumnPosition\"] = this.columnPosition !== undefined ? this.columnPosition : null;\r\n data[\"SeatAvailability\"] = this.seatAvailability !== undefined ? this.seatAvailability : null;\r\n data[\"RowLevel\"] = this.rowLevel !== undefined ? this.rowLevel : null;\r\n if (Array.isArray(this.seatCharacteristics)) {\r\n data[\"SeatCharacteristics\"] = [];\r\n for (let item of this.seatCharacteristics)\r\n data[\"SeatCharacteristics\"].push(item);\r\n }\r\n data[\"ExtraLeg\"] = this.extraLeg !== undefined ? this.extraLeg : null;\r\n data[\"ExitRow\"] = this.exitRow !== undefined ? this.exitRow : null;\r\n data[\"HasPaxTypeRestriction\"] = this.hasPaxTypeRestriction !== undefined ? this.hasPaxTypeRestriction : null;\r\n data[\"HasRestriction\"] = this.hasRestriction !== undefined ? this.hasRestriction : null;\r\n data[\"IsFacility\"] = this.isFacility !== undefined ? this.isFacility : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISeatMap {\r\n rowNumber?: number | null;\r\n rowPosition?: ESeatMapRowPosition | null;\r\n column?: string | null;\r\n columnPosition?: ESeatMapColumnPosition | null;\r\n seatAvailability?: ESeatMapAvailability | null;\r\n rowLevel?: ESeatMapRowLevel | null;\r\n seatCharacteristics?: string[] | null;\r\n extraLeg?: boolean | null;\r\n exitRow?: boolean | null;\r\n hasPaxTypeRestriction?: boolean | null;\r\n hasRestriction?: boolean | null;\r\n isFacility?: boolean | null;\r\n}\r\n\r\nexport enum ESeatMapRowPosition {\r\n BEFORE_WINGS = \"BEFORE_WINGS\",\r\n AFTER_WINGS = \"AFTER_WINGS\",\r\n ON_WINGS = \"ON_WINGS\",\r\n}\r\n\r\nexport enum ESeatMapColumnPosition {\r\n CENTER_SEAT = \"CENTER_SEAT\",\r\n AISLE_SEAT = \"AISLE_SEAT\",\r\n WINDOW_SEAT = \"WINDOW_SEAT\",\r\n}\r\n\r\nexport enum ESeatMapAvailability {\r\n UNKOWN = \"UNKOWN\",\r\n AVAILABLE = \"AVAILABLE\",\r\n OCCUPIED = \"OCCUPIED\",\r\n UNAVAILABLE = \"UNAVAILABLE\",\r\n}\r\n\r\nexport enum ESeatMapRowLevel {\r\n LOWER_DECK = \"LOWER_DECK\",\r\n MAIN_DECK = \"MAIN_DECK\",\r\n UPPER_DECK = \"UPPER_DECK\",\r\n}\r\n\r\nexport class BaggageInfo implements IBaggageInfo {\r\n parentId?: string | null;\r\n baggageInfoCode?: string | null;\r\n baggageCostType?: EBaggageCostType | null;\r\n baggageBookingCode?: string | null;\r\n freeBaggageData?: FreeBaggageData[] | null;\r\n\r\n constructor(data?: IBaggageInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.parentId = _data[\"ParentId\"] !== undefined ? _data[\"ParentId\"] : null;\r\n this.baggageInfoCode = _data[\"BaggageInfoCode\"] !== undefined ? _data[\"BaggageInfoCode\"] : null;\r\n this.baggageCostType = _data[\"BaggageCostType\"] !== undefined ? _data[\"BaggageCostType\"] : null;\r\n this.baggageBookingCode = _data[\"BaggageBookingCode\"] !== undefined ? _data[\"BaggageBookingCode\"] : null;\r\n if (Array.isArray(_data[\"FreeBaggageData\"])) {\r\n this.freeBaggageData = [] as any;\r\n for (let item of _data[\"FreeBaggageData\"])\r\n this.freeBaggageData!.push(FreeBaggageData.fromJS(item));\r\n }\r\n else {\r\n this.freeBaggageData = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaggageInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BaggageInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ParentId\"] = this.parentId !== undefined ? this.parentId : null;\r\n data[\"BaggageInfoCode\"] = this.baggageInfoCode !== undefined ? this.baggageInfoCode : null;\r\n data[\"BaggageCostType\"] = this.baggageCostType !== undefined ? this.baggageCostType : null;\r\n data[\"BaggageBookingCode\"] = this.baggageBookingCode !== undefined ? this.baggageBookingCode : null;\r\n if (Array.isArray(this.freeBaggageData)) {\r\n data[\"FreeBaggageData\"] = [];\r\n for (let item of this.freeBaggageData)\r\n data[\"FreeBaggageData\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaggageInfo {\r\n parentId?: string | null;\r\n baggageInfoCode?: string | null;\r\n baggageCostType?: EBaggageCostType | null;\r\n baggageBookingCode?: string | null;\r\n freeBaggageData?: FreeBaggageData[] | null;\r\n}\r\n\r\nexport enum EBaggageCostType {\r\n PRICE_PER_PIECE = \"PRICE_PER_PIECE\",\r\n PRICE_PER_WEIGHT = \"PRICE_PER_WEIGHT\",\r\n PRICE_PER_RANGE_OF_WEIGHT = \"PRICE_PER_RANGE_OF_WEIGHT\",\r\n}\r\n\r\nexport class FreeBaggageData implements IFreeBaggageData {\r\n fbaMinWeight?: number | null;\r\n fbaMaxWeight?: number | null;\r\n weightUnitValue?: string | null;\r\n fbaQuantity?: number | null;\r\n isWeightBased?: boolean | null;\r\n flightSegmentRefIds?: string[] | null;\r\n\r\n constructor(data?: IFreeBaggageData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.fbaMinWeight = _data[\"FbaMinWeight\"] !== undefined ? _data[\"FbaMinWeight\"] : null;\r\n this.fbaMaxWeight = _data[\"FbaMaxWeight\"] !== undefined ? _data[\"FbaMaxWeight\"] : null;\r\n this.weightUnitValue = _data[\"WeightUnitValue\"] !== undefined ? _data[\"WeightUnitValue\"] : null;\r\n this.fbaQuantity = _data[\"FbaQuantity\"] !== undefined ? _data[\"FbaQuantity\"] : null;\r\n this.isWeightBased = _data[\"IsWeightBased\"] !== undefined ? _data[\"IsWeightBased\"] : null;\r\n if (Array.isArray(_data[\"FlightSegmentRefIds\"])) {\r\n this.flightSegmentRefIds = [] as any;\r\n for (let item of _data[\"FlightSegmentRefIds\"])\r\n this.flightSegmentRefIds!.push(item);\r\n }\r\n else {\r\n this.flightSegmentRefIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FreeBaggageData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FreeBaggageData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"FbaMinWeight\"] = this.fbaMinWeight !== undefined ? this.fbaMinWeight : null;\r\n data[\"FbaMaxWeight\"] = this.fbaMaxWeight !== undefined ? this.fbaMaxWeight : null;\r\n data[\"WeightUnitValue\"] = this.weightUnitValue !== undefined ? this.weightUnitValue : null;\r\n data[\"FbaQuantity\"] = this.fbaQuantity !== undefined ? this.fbaQuantity : null;\r\n data[\"IsWeightBased\"] = this.isWeightBased !== undefined ? this.isWeightBased : null;\r\n if (Array.isArray(this.flightSegmentRefIds)) {\r\n data[\"FlightSegmentRefIds\"] = [];\r\n for (let item of this.flightSegmentRefIds)\r\n data[\"FlightSegmentRefIds\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFreeBaggageData {\r\n fbaMinWeight?: number | null;\r\n fbaMaxWeight?: number | null;\r\n weightUnitValue?: string | null;\r\n fbaQuantity?: number | null;\r\n isWeightBased?: boolean | null;\r\n flightSegmentRefIds?: string[] | null;\r\n}\r\n\r\nexport class PaxDetails implements IPaxDetails {\r\n paxTitle?: string | null;\r\n gender?: EPaxGender | null;\r\n firstName?: string | null;\r\n middleName?: string | null;\r\n lastName?: string | null;\r\n emails?: Email[] | null;\r\n phoneNumbers?: Phone[] | null;\r\n documents?: PaxDocument[] | null;\r\n loyaltyCards?: PaxLoyaltyCard[] | null;\r\n company?: BusinessCompany | null;\r\n address?: Address | null;\r\n birthDate!: string;\r\n\r\n constructor(data?: IPaxDetails) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.paxTitle = _data[\"PaxTitle\"] !== undefined ? _data[\"PaxTitle\"] : null;\r\n this.gender = _data[\"Gender\"] !== undefined ? _data[\"Gender\"] : null;\r\n this.firstName = _data[\"FirstName\"] !== undefined ? _data[\"FirstName\"] : null;\r\n this.middleName = _data[\"MiddleName\"] !== undefined ? _data[\"MiddleName\"] : null;\r\n this.lastName = _data[\"LastName\"] !== undefined ? _data[\"LastName\"] : null;\r\n if (Array.isArray(_data[\"Emails\"])) {\r\n this.emails = [] as any;\r\n for (let item of _data[\"Emails\"])\r\n this.emails!.push(Email.fromJS(item));\r\n }\r\n else {\r\n this.emails = null;\r\n }\r\n if (Array.isArray(_data[\"PhoneNumbers\"])) {\r\n this.phoneNumbers = [] as any;\r\n for (let item of _data[\"PhoneNumbers\"])\r\n this.phoneNumbers!.push(Phone.fromJS(item));\r\n }\r\n else {\r\n this.phoneNumbers = null;\r\n }\r\n if (Array.isArray(_data[\"Documents\"])) {\r\n this.documents = [] as any;\r\n for (let item of _data[\"Documents\"])\r\n this.documents!.push(PaxDocument.fromJS(item));\r\n }\r\n else {\r\n this.documents = null;\r\n }\r\n if (Array.isArray(_data[\"LoyaltyCards\"])) {\r\n this.loyaltyCards = [] as any;\r\n for (let item of _data[\"LoyaltyCards\"])\r\n this.loyaltyCards!.push(PaxLoyaltyCard.fromJS(item));\r\n }\r\n else {\r\n this.loyaltyCards = null;\r\n }\r\n this.company = _data[\"Company\"] ? BusinessCompany.fromJS(_data[\"Company\"]) : null;\r\n this.address = _data[\"Address\"] ? Address.fromJS(_data[\"Address\"]) : null;\r\n this.birthDate = _data[\"BirthDate\"] !== undefined ? _data[\"BirthDate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaxDetails {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaxDetails();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"PaxTitle\"] = this.paxTitle !== undefined ? this.paxTitle : null;\r\n data[\"Gender\"] = this.gender !== undefined ? this.gender : null;\r\n data[\"FirstName\"] = this.firstName !== undefined ? this.firstName : null;\r\n data[\"MiddleName\"] = this.middleName !== undefined ? this.middleName : null;\r\n data[\"LastName\"] = this.lastName !== undefined ? this.lastName : null;\r\n if (Array.isArray(this.emails)) {\r\n data[\"Emails\"] = [];\r\n for (let item of this.emails)\r\n data[\"Emails\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.phoneNumbers)) {\r\n data[\"PhoneNumbers\"] = [];\r\n for (let item of this.phoneNumbers)\r\n data[\"PhoneNumbers\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.documents)) {\r\n data[\"Documents\"] = [];\r\n for (let item of this.documents)\r\n data[\"Documents\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.loyaltyCards)) {\r\n data[\"LoyaltyCards\"] = [];\r\n for (let item of this.loyaltyCards)\r\n data[\"LoyaltyCards\"].push(item.toJSON());\r\n }\r\n data[\"Company\"] = this.company ? this.company.toJSON() : null;\r\n data[\"Address\"] = this.address ? this.address.toJSON() : null;\r\n data[\"BirthDate\"] = this.birthDate !== undefined ? this.birthDate : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaxDetails {\r\n paxTitle?: string | null;\r\n gender?: EPaxGender | null;\r\n firstName?: string | null;\r\n middleName?: string | null;\r\n lastName?: string | null;\r\n emails?: Email[] | null;\r\n phoneNumbers?: Phone[] | null;\r\n documents?: PaxDocument[] | null;\r\n loyaltyCards?: PaxLoyaltyCard[] | null;\r\n company?: BusinessCompany | null;\r\n address?: Address | null;\r\n birthDate: string;\r\n}\r\n\r\nexport class PnrPaxDetails extends PaxDetails implements IPnrPaxDetails {\r\n id?: string | null;\r\n connectorCustomData?: PnrPaxDetailsCustomData | null;\r\n\r\n constructor(data?: IPnrPaxDetails) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.connectorCustomData = _data[\"ConnectorCustomData\"] ? PnrPaxDetailsCustomData.fromJS(_data[\"ConnectorCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PnrPaxDetails {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrPaxDetails();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"ConnectorCustomData\"] = this.connectorCustomData ? this.connectorCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrPaxDetails extends IPaxDetails {\r\n id?: string | null;\r\n connectorCustomData?: PnrPaxDetailsCustomData | null;\r\n}\r\n\r\nexport abstract class PnrPaxDetailsCustomData implements IPnrPaxDetailsCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IPnrPaxDetailsCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"PnrPaxDetailsCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): PnrPaxDetailsCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusPnrPaxDetailsCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'PnrPaxDetailsCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrPaxDetailsCustomData {\r\n}\r\n\r\nexport class AmadeusPnrPaxDetailsCustomData extends PnrPaxDetailsCustomData implements IAmadeusPnrPaxDetailsCustomData {\r\n lineNumber?: string | null;\r\n paxType?: string | null;\r\n quantity?: string | null;\r\n infantIndicator?: string | null;\r\n\r\n constructor(data?: IAmadeusPnrPaxDetailsCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.lineNumber = _data[\"LineNumber\"] !== undefined ? _data[\"LineNumber\"] : null;\r\n this.paxType = _data[\"PaxType\"] !== undefined ? _data[\"PaxType\"] : null;\r\n this.quantity = _data[\"Quantity\"] !== undefined ? _data[\"Quantity\"] : null;\r\n this.infantIndicator = _data[\"InfantIndicator\"] !== undefined ? _data[\"InfantIndicator\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusPnrPaxDetailsCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusPnrPaxDetailsCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"LineNumber\"] = this.lineNumber !== undefined ? this.lineNumber : null;\r\n data[\"PaxType\"] = this.paxType !== undefined ? this.paxType : null;\r\n data[\"Quantity\"] = this.quantity !== undefined ? this.quantity : null;\r\n data[\"InfantIndicator\"] = this.infantIndicator !== undefined ? this.infantIndicator : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusPnrPaxDetailsCustomData extends IPnrPaxDetailsCustomData {\r\n lineNumber?: string | null;\r\n paxType?: string | null;\r\n quantity?: string | null;\r\n infantIndicator?: string | null;\r\n}\r\n\r\nexport enum EPaxGender {\r\n UNKNOWN = \"UNKNOWN\",\r\n MALE = \"MALE\",\r\n FEMALE = \"FEMALE\",\r\n}\r\n\r\nexport class Email implements IEmail {\r\n title?: string | null;\r\n value?: string | null;\r\n\r\n constructor(data?: IEmail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.title = _data[\"Title\"] !== undefined ? _data[\"Title\"] : null;\r\n this.value = _data[\"Value\"] !== undefined ? _data[\"Value\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Email {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Email();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Title\"] = this.title !== undefined ? this.title : null;\r\n data[\"Value\"] = this.value !== undefined ? this.value : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmail {\r\n title?: string | null;\r\n value?: string | null;\r\n}\r\n\r\nexport class Phone implements IPhone {\r\n title?: string | null;\r\n value?: string | null;\r\n\r\n constructor(data?: IPhone) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.title = _data[\"Title\"] !== undefined ? _data[\"Title\"] : null;\r\n this.value = _data[\"Value\"] !== undefined ? _data[\"Value\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Phone {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Phone();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Title\"] = this.title !== undefined ? this.title : null;\r\n data[\"Value\"] = this.value !== undefined ? this.value : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhone {\r\n title?: string | null;\r\n value?: string | null;\r\n}\r\n\r\nexport class PaxDocument implements IPaxDocument {\r\n type?: EDocumentType | null;\r\n firstName?: string | null;\r\n lastName?: string | null;\r\n number?: string | null;\r\n issueIsoCode?: string | null;\r\n nationalityIsoCode?: string | null;\r\n expirationDate?: string | null;\r\n\r\n constructor(data?: IPaxDocument) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.firstName = _data[\"FirstName\"] !== undefined ? _data[\"FirstName\"] : null;\r\n this.lastName = _data[\"LastName\"] !== undefined ? _data[\"LastName\"] : null;\r\n this.number = _data[\"Number\"] !== undefined ? _data[\"Number\"] : null;\r\n this.issueIsoCode = _data[\"IssueIsoCode\"] !== undefined ? _data[\"IssueIsoCode\"] : null;\r\n this.nationalityIsoCode = _data[\"NationalityIsoCode\"] !== undefined ? _data[\"NationalityIsoCode\"] : null;\r\n this.expirationDate = _data[\"ExpirationDate\"] !== undefined ? _data[\"ExpirationDate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaxDocument {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaxDocument();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"FirstName\"] = this.firstName !== undefined ? this.firstName : null;\r\n data[\"LastName\"] = this.lastName !== undefined ? this.lastName : null;\r\n data[\"Number\"] = this.number !== undefined ? this.number : null;\r\n data[\"IssueIsoCode\"] = this.issueIsoCode !== undefined ? this.issueIsoCode : null;\r\n data[\"NationalityIsoCode\"] = this.nationalityIsoCode !== undefined ? this.nationalityIsoCode : null;\r\n data[\"ExpirationDate\"] = this.expirationDate !== undefined ? this.expirationDate : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaxDocument {\r\n type?: EDocumentType | null;\r\n firstName?: string | null;\r\n lastName?: string | null;\r\n number?: string | null;\r\n issueIsoCode?: string | null;\r\n nationalityIsoCode?: string | null;\r\n expirationDate?: string | null;\r\n}\r\n\r\nexport enum EDocumentType {\r\n ID = \"ID\",\r\n PASSPORT = \"PASSPORT\",\r\n FISCAL_CODE = \"FISCAL_CODE\",\r\n}\r\n\r\nexport class PaxLoyaltyCard implements IPaxLoyaltyCard {\r\n membershipId?: string | null;\r\n programId?: string | null;\r\n iataCode?: string | null;\r\n cardExpirationDate?: string | null;\r\n\r\n constructor(data?: IPaxLoyaltyCard) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.membershipId = _data[\"MembershipId\"] !== undefined ? _data[\"MembershipId\"] : null;\r\n this.programId = _data[\"ProgramId\"] !== undefined ? _data[\"ProgramId\"] : null;\r\n this.iataCode = _data[\"IataCode\"] !== undefined ? _data[\"IataCode\"] : null;\r\n this.cardExpirationDate = _data[\"CardExpirationDate\"] !== undefined ? _data[\"CardExpirationDate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaxLoyaltyCard {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaxLoyaltyCard();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"MembershipId\"] = this.membershipId !== undefined ? this.membershipId : null;\r\n data[\"ProgramId\"] = this.programId !== undefined ? this.programId : null;\r\n data[\"IataCode\"] = this.iataCode !== undefined ? this.iataCode : null;\r\n data[\"CardExpirationDate\"] = this.cardExpirationDate !== undefined ? this.cardExpirationDate : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaxLoyaltyCard {\r\n membershipId?: string | null;\r\n programId?: string | null;\r\n iataCode?: string | null;\r\n cardExpirationDate?: string | null;\r\n}\r\n\r\nexport class BaseCompany implements IBaseCompany {\r\n name?: string | null;\r\n addresses?: Address[] | null;\r\n vatNumber?: string | null;\r\n phoneNumbers?: Phone[] | null;\r\n emails?: Email[] | null;\r\n\r\n constructor(data?: IBaseCompany) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.name = _data[\"Name\"] !== undefined ? _data[\"Name\"] : null;\r\n if (Array.isArray(_data[\"Addresses\"])) {\r\n this.addresses = [] as any;\r\n for (let item of _data[\"Addresses\"])\r\n this.addresses!.push(Address.fromJS(item));\r\n }\r\n else {\r\n this.addresses = null;\r\n }\r\n this.vatNumber = _data[\"VatNumber\"] !== undefined ? _data[\"VatNumber\"] : null;\r\n if (Array.isArray(_data[\"PhoneNumbers\"])) {\r\n this.phoneNumbers = [] as any;\r\n for (let item of _data[\"PhoneNumbers\"])\r\n this.phoneNumbers!.push(Phone.fromJS(item));\r\n }\r\n else {\r\n this.phoneNumbers = null;\r\n }\r\n if (Array.isArray(_data[\"Emails\"])) {\r\n this.emails = [] as any;\r\n for (let item of _data[\"Emails\"])\r\n this.emails!.push(Email.fromJS(item));\r\n }\r\n else {\r\n this.emails = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): BaseCompany {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BaseCompany();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Name\"] = this.name !== undefined ? this.name : null;\r\n if (Array.isArray(this.addresses)) {\r\n data[\"Addresses\"] = [];\r\n for (let item of this.addresses)\r\n data[\"Addresses\"].push(item.toJSON());\r\n }\r\n data[\"VatNumber\"] = this.vatNumber !== undefined ? this.vatNumber : null;\r\n if (Array.isArray(this.phoneNumbers)) {\r\n data[\"PhoneNumbers\"] = [];\r\n for (let item of this.phoneNumbers)\r\n data[\"PhoneNumbers\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.emails)) {\r\n data[\"Emails\"] = [];\r\n for (let item of this.emails)\r\n data[\"Emails\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBaseCompany {\r\n name?: string | null;\r\n addresses?: Address[] | null;\r\n vatNumber?: string | null;\r\n phoneNumbers?: Phone[] | null;\r\n emails?: Email[] | null;\r\n}\r\n\r\nexport class BusinessCompany extends BaseCompany implements IBusinessCompany {\r\n\r\n constructor(data?: IBusinessCompany) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): BusinessCompany {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new BusinessCompany();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBusinessCompany extends IBaseCompany {\r\n}\r\n\r\nexport class Address implements IAddress {\r\n type?: string | null;\r\n street?: string | null;\r\n zip?: string | null;\r\n city?: string | null;\r\n country?: string | null;\r\n countryCode?: string | null;\r\n state?: string | null;\r\n\r\n constructor(data?: IAddress) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.street = _data[\"Street\"] !== undefined ? _data[\"Street\"] : null;\r\n this.zip = _data[\"Zip\"] !== undefined ? _data[\"Zip\"] : null;\r\n this.city = _data[\"City\"] !== undefined ? _data[\"City\"] : null;\r\n this.country = _data[\"Country\"] !== undefined ? _data[\"Country\"] : null;\r\n this.countryCode = _data[\"CountryCode\"] !== undefined ? _data[\"CountryCode\"] : null;\r\n this.state = _data[\"State\"] !== undefined ? _data[\"State\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Address {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Address();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"Street\"] = this.street !== undefined ? this.street : null;\r\n data[\"Zip\"] = this.zip !== undefined ? this.zip : null;\r\n data[\"City\"] = this.city !== undefined ? this.city : null;\r\n data[\"Country\"] = this.country !== undefined ? this.country : null;\r\n data[\"CountryCode\"] = this.countryCode !== undefined ? this.countryCode : null;\r\n data[\"State\"] = this.state !== undefined ? this.state : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddress {\r\n type?: string | null;\r\n street?: string | null;\r\n zip?: string | null;\r\n city?: string | null;\r\n country?: string | null;\r\n countryCode?: string | null;\r\n state?: string | null;\r\n}\r\n\r\nexport class CreditCardInfo implements ICreditCardInfo {\r\n cardHolderName?: string | null;\r\n cardHolderFirstName?: string | null;\r\n cardHolderLastName?: string | null;\r\n creditCardType?: ECreditCardType | null;\r\n creditCardNumber?: string | null;\r\n creditCardCvv?: string | null;\r\n expireDate?: string | null;\r\n startDate?: string | null;\r\n issueNumber?: string | null;\r\n\r\n constructor(data?: ICreditCardInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.cardHolderName = _data[\"CardHolderName\"] !== undefined ? _data[\"CardHolderName\"] : null;\r\n this.cardHolderFirstName = _data[\"CardHolderFirstName\"] !== undefined ? _data[\"CardHolderFirstName\"] : null;\r\n this.cardHolderLastName = _data[\"CardHolderLastName\"] !== undefined ? _data[\"CardHolderLastName\"] : null;\r\n this.creditCardType = _data[\"CreditCardType\"] !== undefined ? _data[\"CreditCardType\"] : null;\r\n this.creditCardNumber = _data[\"CreditCardNumber\"] !== undefined ? _data[\"CreditCardNumber\"] : null;\r\n this.creditCardCvv = _data[\"CreditCardCvv\"] !== undefined ? _data[\"CreditCardCvv\"] : null;\r\n this.expireDate = _data[\"ExpireDate\"] !== undefined ? _data[\"ExpireDate\"] : null;\r\n this.startDate = _data[\"StartDate\"] !== undefined ? _data[\"StartDate\"] : null;\r\n this.issueNumber = _data[\"IssueNumber\"] !== undefined ? _data[\"IssueNumber\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreditCardInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreditCardInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CardHolderName\"] = this.cardHolderName !== undefined ? this.cardHolderName : null;\r\n data[\"CardHolderFirstName\"] = this.cardHolderFirstName !== undefined ? this.cardHolderFirstName : null;\r\n data[\"CardHolderLastName\"] = this.cardHolderLastName !== undefined ? this.cardHolderLastName : null;\r\n data[\"CreditCardType\"] = this.creditCardType !== undefined ? this.creditCardType : null;\r\n data[\"CreditCardNumber\"] = this.creditCardNumber !== undefined ? this.creditCardNumber : null;\r\n data[\"CreditCardCvv\"] = this.creditCardCvv !== undefined ? this.creditCardCvv : null;\r\n data[\"ExpireDate\"] = this.expireDate !== undefined ? this.expireDate : null;\r\n data[\"StartDate\"] = this.startDate !== undefined ? this.startDate : null;\r\n data[\"IssueNumber\"] = this.issueNumber !== undefined ? this.issueNumber : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreditCardInfo {\r\n cardHolderName?: string | null;\r\n cardHolderFirstName?: string | null;\r\n cardHolderLastName?: string | null;\r\n creditCardType?: ECreditCardType | null;\r\n creditCardNumber?: string | null;\r\n creditCardCvv?: string | null;\r\n expireDate?: string | null;\r\n startDate?: string | null;\r\n issueNumber?: string | null;\r\n}\r\n\r\nexport enum ECreditCardType {\r\n MASTERCARD = \"MASTERCARD\",\r\n VISA = \"VISA\",\r\n AMERICAN_EXPRESS = \"AMERICAN_EXPRESS\",\r\n JCB_INTERNATIONAL = \"JCB_INTERNATIONAL\",\r\n CARTE_BLANCHE = \"CARTE_BLANCHE\",\r\n CHINA_UNION_PAY_EXPEDIA = \"CHINA_UNION_PAY_EXPEDIA\",\r\n CHINA_UNION_PAY = \"CHINA_UNION_PAY\",\r\n DINERS_CLUB = \"DINERS_CLUB\",\r\n DISCOVER_CARD = \"DISCOVER_CARD\",\r\n EURO_CARD = \"EURO_CARD\",\r\n FORBRUGSFORENINGSKORT = \"FORBRUGSFORENINGSKORT\",\r\n MAESTRO = \"MAESTRO\",\r\n AIR_PLUS = \"AIR_PLUS\",\r\n UATP = \"UATP\",\r\n BUSINESS_CARD = \"BUSINESS_CARD\",\r\n NEXI_MASTERCARD = \"NEXI_MASTERCARD\",\r\n NEXI_VISA = \"NEXI_VISA\",\r\n}\r\n\r\nexport class TravelCompany extends BaseCompany implements ITravelCompany {\r\n\r\n constructor(data?: ITravelCompany) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): TravelCompany {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TravelCompany();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITravelCompany extends IBaseCompany {\r\n}\r\n\r\nexport class PnrTravelCompany extends TravelCompany implements IPnrTravelCompany {\r\n\r\n constructor(data?: IPnrTravelCompany) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PnrTravelCompany {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrTravelCompany();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrTravelCompany extends ITravelCompany {\r\n}\r\n\r\nexport class PnrRemarks implements IPnrRemarks {\r\n lineNumber?: string | null;\r\n id?: string | null;\r\n code?: string | null;\r\n type?: string | null;\r\n text?: string | null;\r\n flightSegmentRefId?: string | null;\r\n paxRefId?: string | null;\r\n\r\n constructor(data?: IPnrRemarks) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lineNumber = _data[\"LineNumber\"] !== undefined ? _data[\"LineNumber\"] : null;\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.text = _data[\"Text\"] !== undefined ? _data[\"Text\"] : null;\r\n this.flightSegmentRefId = _data[\"FlightSegmentRefId\"] !== undefined ? _data[\"FlightSegmentRefId\"] : null;\r\n this.paxRefId = _data[\"PaxRefId\"] !== undefined ? _data[\"PaxRefId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PnrRemarks {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrRemarks();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"LineNumber\"] = this.lineNumber !== undefined ? this.lineNumber : null;\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"Text\"] = this.text !== undefined ? this.text : null;\r\n data[\"FlightSegmentRefId\"] = this.flightSegmentRefId !== undefined ? this.flightSegmentRefId : null;\r\n data[\"PaxRefId\"] = this.paxRefId !== undefined ? this.paxRefId : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrRemarks {\r\n lineNumber?: string | null;\r\n id?: string | null;\r\n code?: string | null;\r\n type?: string | null;\r\n text?: string | null;\r\n flightSegmentRefId?: string | null;\r\n paxRefId?: string | null;\r\n}\r\n\r\nexport class PnrOsiSsr implements IPnrOsiSsr {\r\n lineNumber?: string | null;\r\n id?: string | null;\r\n code?: string | null;\r\n type?: string | null;\r\n date?: string | null;\r\n text?: string | null;\r\n flightSegmentRefId?: string | null;\r\n airlineIataCode?: string | null;\r\n paxRefId?: string | null;\r\n\r\n constructor(data?: IPnrOsiSsr) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lineNumber = _data[\"LineNumber\"] !== undefined ? _data[\"LineNumber\"] : null;\r\n this.id = _data[\"Id\"] !== undefined ? _data[\"Id\"] : null;\r\n this.code = _data[\"Code\"] !== undefined ? _data[\"Code\"] : null;\r\n this.type = _data[\"Type\"] !== undefined ? _data[\"Type\"] : null;\r\n this.date = _data[\"Date\"] !== undefined ? _data[\"Date\"] : null;\r\n this.text = _data[\"Text\"] !== undefined ? _data[\"Text\"] : null;\r\n this.flightSegmentRefId = _data[\"FlightSegmentRefId\"] !== undefined ? _data[\"FlightSegmentRefId\"] : null;\r\n this.airlineIataCode = _data[\"AirlineIataCode\"] !== undefined ? _data[\"AirlineIataCode\"] : null;\r\n this.paxRefId = _data[\"PaxRefId\"] !== undefined ? _data[\"PaxRefId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PnrOsiSsr {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PnrOsiSsr();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"LineNumber\"] = this.lineNumber !== undefined ? this.lineNumber : null;\r\n data[\"Id\"] = this.id !== undefined ? this.id : null;\r\n data[\"Code\"] = this.code !== undefined ? this.code : null;\r\n data[\"Type\"] = this.type !== undefined ? this.type : null;\r\n data[\"Date\"] = this.date !== undefined ? this.date : null;\r\n data[\"Text\"] = this.text !== undefined ? this.text : null;\r\n data[\"FlightSegmentRefId\"] = this.flightSegmentRefId !== undefined ? this.flightSegmentRefId : null;\r\n data[\"AirlineIataCode\"] = this.airlineIataCode !== undefined ? this.airlineIataCode : null;\r\n data[\"PaxRefId\"] = this.paxRefId !== undefined ? this.paxRefId : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrOsiSsr {\r\n lineNumber?: string | null;\r\n id?: string | null;\r\n code?: string | null;\r\n type?: string | null;\r\n date?: string | null;\r\n text?: string | null;\r\n flightSegmentRefId?: string | null;\r\n airlineIataCode?: string | null;\r\n paxRefId?: string | null;\r\n}\r\n\r\nexport class CO2Emissions implements ICO2Emissions {\r\n perSegment?: number | null;\r\n perPassenger?: number | null;\r\n perMile?: number | null;\r\n perKm?: number | null;\r\n distanceInMiles?: number | null;\r\n distanceInKm?: number | null;\r\n unit?: string | null;\r\n\r\n constructor(data?: ICO2Emissions) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.perSegment = _data[\"PerSegment\"] !== undefined ? _data[\"PerSegment\"] : null;\r\n this.perPassenger = _data[\"PerPassenger\"] !== undefined ? _data[\"PerPassenger\"] : null;\r\n this.perMile = _data[\"PerMile\"] !== undefined ? _data[\"PerMile\"] : null;\r\n this.perKm = _data[\"PerKm\"] !== undefined ? _data[\"PerKm\"] : null;\r\n this.distanceInMiles = _data[\"DistanceInMiles\"] !== undefined ? _data[\"DistanceInMiles\"] : null;\r\n this.distanceInKm = _data[\"DistanceInKm\"] !== undefined ? _data[\"DistanceInKm\"] : null;\r\n this.unit = _data[\"Unit\"] !== undefined ? _data[\"Unit\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CO2Emissions {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CO2Emissions();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"PerSegment\"] = this.perSegment !== undefined ? this.perSegment : null;\r\n data[\"PerPassenger\"] = this.perPassenger !== undefined ? this.perPassenger : null;\r\n data[\"PerMile\"] = this.perMile !== undefined ? this.perMile : null;\r\n data[\"PerKm\"] = this.perKm !== undefined ? this.perKm : null;\r\n data[\"DistanceInMiles\"] = this.distanceInMiles !== undefined ? this.distanceInMiles : null;\r\n data[\"DistanceInKm\"] = this.distanceInKm !== undefined ? this.distanceInKm : null;\r\n data[\"Unit\"] = this.unit !== undefined ? this.unit : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICO2Emissions {\r\n perSegment?: number | null;\r\n perPassenger?: number | null;\r\n perMile?: number | null;\r\n perKm?: number | null;\r\n distanceInMiles?: number | null;\r\n distanceInKm?: number | null;\r\n unit?: string | null;\r\n}\r\n\r\nexport abstract class PnrCustomData implements IPnrCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IPnrCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"PnrCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): PnrCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusPnrCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'PnrCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPnrCustomData {\r\n}\r\n\r\nexport class AmadeusPnrCustomData extends PnrCustomData implements IAmadeusPnrCustomData {\r\n pnrCustomData?: AmadeusFlightPnrCustomData | null;\r\n\r\n constructor(data?: IAmadeusPnrCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pnrCustomData = _data[\"PnrCustomData\"] ? AmadeusFlightPnrCustomData.fromJS(_data[\"PnrCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusPnrCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusPnrCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"PnrCustomData\"] = this.pnrCustomData ? this.pnrCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusPnrCustomData extends IPnrCustomData {\r\n pnrCustomData?: AmadeusFlightPnrCustomData | null;\r\n}\r\n\r\nexport class AmadeusFlightPnrCustomData implements IAmadeusFlightPnrCustomData {\r\n receivedFrom?: string | null;\r\n tkXlAutoDeleteDate?: string | null;\r\n tkTlTimeLimitDate?: string | null;\r\n amadeusPnrRetrieveXmlRs?: string | null;\r\n ndcOrderId?: string | null;\r\n ndcOwnerCode?: string | null;\r\n ndcTicketNumbers?: string[] | null;\r\n\r\n constructor(data?: IAmadeusFlightPnrCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.receivedFrom = _data[\"ReceivedFrom\"] !== undefined ? _data[\"ReceivedFrom\"] : null;\r\n this.tkXlAutoDeleteDate = _data[\"TkXlAutoDeleteDate\"] !== undefined ? _data[\"TkXlAutoDeleteDate\"] : null;\r\n this.tkTlTimeLimitDate = _data[\"TkTlTimeLimitDate\"] !== undefined ? _data[\"TkTlTimeLimitDate\"] : null;\r\n this.amadeusPnrRetrieveXmlRs = _data[\"AmadeusPnrRetrieveXmlRs\"] !== undefined ? _data[\"AmadeusPnrRetrieveXmlRs\"] : null;\r\n this.ndcOrderId = _data[\"NdcOrderId\"] !== undefined ? _data[\"NdcOrderId\"] : null;\r\n this.ndcOwnerCode = _data[\"NdcOwnerCode\"] !== undefined ? _data[\"NdcOwnerCode\"] : null;\r\n if (Array.isArray(_data[\"NdcTicketNumbers\"])) {\r\n this.ndcTicketNumbers = [] as any;\r\n for (let item of _data[\"NdcTicketNumbers\"])\r\n this.ndcTicketNumbers!.push(item);\r\n }\r\n else {\r\n this.ndcTicketNumbers = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusFlightPnrCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusFlightPnrCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ReceivedFrom\"] = this.receivedFrom !== undefined ? this.receivedFrom : null;\r\n data[\"TkXlAutoDeleteDate\"] = this.tkXlAutoDeleteDate !== undefined ? this.tkXlAutoDeleteDate : null;\r\n data[\"TkTlTimeLimitDate\"] = this.tkTlTimeLimitDate !== undefined ? this.tkTlTimeLimitDate : null;\r\n data[\"AmadeusPnrRetrieveXmlRs\"] = this.amadeusPnrRetrieveXmlRs !== undefined ? this.amadeusPnrRetrieveXmlRs : null;\r\n data[\"NdcOrderId\"] = this.ndcOrderId !== undefined ? this.ndcOrderId : null;\r\n data[\"NdcOwnerCode\"] = this.ndcOwnerCode !== undefined ? this.ndcOwnerCode : null;\r\n if (Array.isArray(this.ndcTicketNumbers)) {\r\n data[\"NdcTicketNumbers\"] = [];\r\n for (let item of this.ndcTicketNumbers)\r\n data[\"NdcTicketNumbers\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusFlightPnrCustomData {\r\n receivedFrom?: string | null;\r\n tkXlAutoDeleteDate?: string | null;\r\n tkTlTimeLimitDate?: string | null;\r\n amadeusPnrRetrieveXmlRs?: string | null;\r\n ndcOrderId?: string | null;\r\n ndcOwnerCode?: string | null;\r\n ndcTicketNumbers?: string[] | null;\r\n}\r\n\r\nexport class JupiterFlightPnrRetrieveRQ extends BaseRQ implements IJupiterFlightPnrRetrieveRQ {\r\n request?: JupiterFlightPnrRetrieveInput | null;\r\n\r\n constructor(data?: IJupiterFlightPnrRetrieveRQ) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.request = _data[\"Request\"] ? JupiterFlightPnrRetrieveInput.fromJS(_data[\"Request\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightPnrRetrieveRQ {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightPnrRetrieveRQ();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"Request\"] = this.request ? this.request.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightPnrRetrieveRQ extends IBaseRQ {\r\n request?: JupiterFlightPnrRetrieveInput | null;\r\n}\r\n\r\nexport class JupiterFlightPnrRetrieveInput extends BaseInput implements IJupiterFlightPnrRetrieveInput {\r\n connectorCode!: EH2HConnectorCode;\r\n pnrNumber?: string | null;\r\n connectorCustomData?: FlightPnrRetrieveInputCustomData | null;\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n customerCustomData?: CustomerCustomDataOfJupiterFlightPnrRetrieveInput | null;\r\n\r\n constructor(data?: IJupiterFlightPnrRetrieveInput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.connectorCode = _data[\"ConnectorCode\"] !== undefined ? _data[\"ConnectorCode\"] : null;\r\n this.pnrNumber = _data[\"PnrNumber\"] !== undefined ? _data[\"PnrNumber\"] : null;\r\n this.connectorCustomData = _data[\"ConnectorCustomData\"] ? FlightPnrRetrieveInputCustomData.fromJS(_data[\"ConnectorCustomData\"]) : null;\r\n this.sessionConnectorCustomData = _data[\"SessionConnectorCustomData\"] ? GdsSessionCustomData.fromJS(_data[\"SessionConnectorCustomData\"]) : null;\r\n this.customerCustomData = _data[\"CustomerCustomData\"] ? CustomerCustomDataOfJupiterFlightPnrRetrieveInput.fromJS(_data[\"CustomerCustomData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JupiterFlightPnrRetrieveInput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JupiterFlightPnrRetrieveInput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ConnectorCode\"] = this.connectorCode !== undefined ? this.connectorCode : null;\r\n data[\"PnrNumber\"] = this.pnrNumber !== undefined ? this.pnrNumber : null;\r\n data[\"ConnectorCustomData\"] = this.connectorCustomData ? this.connectorCustomData.toJSON() : null;\r\n data[\"SessionConnectorCustomData\"] = this.sessionConnectorCustomData ? this.sessionConnectorCustomData.toJSON() : null;\r\n data[\"CustomerCustomData\"] = this.customerCustomData ? this.customerCustomData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJupiterFlightPnrRetrieveInput extends IBaseInput {\r\n connectorCode: EH2HConnectorCode;\r\n pnrNumber?: string | null;\r\n connectorCustomData?: FlightPnrRetrieveInputCustomData | null;\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n customerCustomData?: CustomerCustomDataOfJupiterFlightPnrRetrieveInput | null;\r\n}\r\n\r\nexport abstract class FlightPnrRetrieveInputCustomData implements IFlightPnrRetrieveInputCustomData {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: IFlightPnrRetrieveInputCustomData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"FlightPnrRetrieveInputCustomData\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): FlightPnrRetrieveInputCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataConnectorCode\"] === \"AMADEUS\") {\r\n let result = new AmadeusFlightPnrRetrieveInputCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'FlightPnrRetrieveInputCustomData' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataConnectorCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightPnrRetrieveInputCustomData {\r\n}\r\n\r\nexport class AmadeusFlightPnrRetrieveInputCustomData extends FlightPnrRetrieveInputCustomData implements IAmadeusFlightPnrRetrieveInputCustomData {\r\n ndcOrderId?: string | null;\r\n ndcOwnerCode?: string | null;\r\n\r\n constructor(data?: IAmadeusFlightPnrRetrieveInputCustomData) {\r\n super(data);\r\n this._discriminator = \"AMADEUS\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ndcOrderId = _data[\"NdcOrderId\"] !== undefined ? _data[\"NdcOrderId\"] : null;\r\n this.ndcOwnerCode = _data[\"NdcOwnerCode\"] !== undefined ? _data[\"NdcOwnerCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AmadeusFlightPnrRetrieveInputCustomData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AmadeusFlightPnrRetrieveInputCustomData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"NdcOrderId\"] = this.ndcOrderId !== undefined ? this.ndcOrderId : null;\r\n data[\"NdcOwnerCode\"] = this.ndcOwnerCode !== undefined ? this.ndcOwnerCode : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAmadeusFlightPnrRetrieveInputCustomData extends IFlightPnrRetrieveInputCustomData {\r\n ndcOrderId?: string | null;\r\n ndcOwnerCode?: string | null;\r\n}\r\n\r\nexport abstract class CustomerCustomDataOfJupiterFlightPnrRetrieveInput implements ICustomerCustomDataOfJupiterFlightPnrRetrieveInput {\r\n\r\n protected _discriminator: string;\r\n\r\n constructor(data?: ICustomerCustomDataOfJupiterFlightPnrRetrieveInput) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n this._discriminator = \"CustomerCustomDataOfJupiterFlightPnrRetrieveInput\";\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): CustomerCustomDataOfJupiterFlightPnrRetrieveInput {\r\n data = typeof data === 'object' ? data : {};\r\n if (data[\"CustomDataCode\"] === \"FlightPnrRetrieveNaarData\") {\r\n let result = new FlightPnrRetrieveNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n throw new Error(\"The abstract class 'CustomerCustomDataOfJupiterFlightPnrRetrieveInput' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"CustomDataCode\"] = this._discriminator;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICustomerCustomDataOfJupiterFlightPnrRetrieveInput {\r\n}\r\n\r\nexport class FlightPnrRetrieveNaarData extends CustomerCustomDataOfJupiterFlightPnrRetrieveInput implements IFlightPnrRetrieveNaarData {\r\n markupData?: MarkupData | null;\r\n\r\n constructor(data?: IFlightPnrRetrieveNaarData) {\r\n super(data);\r\n this._discriminator = \"FlightPnrRetrieveNaarData\";\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.markupData = _data[\"MarkupData\"] ? MarkupData.fromJS(_data[\"MarkupData\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightPnrRetrieveNaarData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightPnrRetrieveNaarData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"MarkupData\"] = this.markupData ? this.markupData.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightPnrRetrieveNaarData extends ICustomerCustomDataOfJupiterFlightPnrRetrieveInput {\r\n markupData?: MarkupData | null;\r\n}\r\n\r\nexport class ImportPnrApiRequest extends ApiRequest implements IImportPnrApiRequest {\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Pnr Number */\r\n pnr?: string | null;\r\n /** Supplier ID -> 14 Amadeus */\r\n supplierID?: number;\r\n /** Abbinamento ID -> Camera */\r\n abbinamentoID?: number;\r\n /** Boolean indicating import services rows */\r\n importServiceRows?: boolean;\r\n /** Boolean indicating import fares */\r\n importFares?: boolean;\r\n\r\n constructor(data?: IImportPnrApiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.pnr = _data[\"pnr\"] !== undefined ? _data[\"pnr\"] : null;\r\n this.supplierID = _data[\"supplierID\"] !== undefined ? _data[\"supplierID\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.importServiceRows = _data[\"importServiceRows\"] !== undefined ? _data[\"importServiceRows\"] : null;\r\n this.importFares = _data[\"importFares\"] !== undefined ? _data[\"importFares\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportPnrApiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportPnrApiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"pnr\"] = this.pnr !== undefined ? this.pnr : null;\r\n data[\"supplierID\"] = this.supplierID !== undefined ? this.supplierID : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"importServiceRows\"] = this.importServiceRows !== undefined ? this.importServiceRows : null;\r\n data[\"importFares\"] = this.importFares !== undefined ? this.importFares : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportPnrApiRequest extends IApiRequest {\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Pnr Number */\r\n pnr?: string | null;\r\n /** Supplier ID -> 14 Amadeus */\r\n supplierID?: number;\r\n /** Abbinamento ID -> Camera */\r\n abbinamentoID?: number;\r\n /** Boolean indicating import services rows */\r\n importServiceRows?: boolean;\r\n /** Boolean indicating import fares */\r\n importFares?: boolean;\r\n}\r\n\r\nexport class ImportCrypticPnrApiRequest extends ApiRequest implements IImportCrypticPnrApiRequest {\r\n /** Session Custom Data */\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Supplier ID -> 14 Amadeus */\r\n supplierID?: number | null;\r\n /** Abbinamento ID -> Camera */\r\n abbinamentoID?: number | null;\r\n /** Boolean indicating import services rows */\r\n importServiceRows?: boolean;\r\n /** Boolean indicating import fares */\r\n importFares?: boolean;\r\n /** Boolean indicating if replace existing Rows and PNRs\r\nIt work only if the PNR associated to the rows is the same PNR */\r\n replaceRows?: boolean;\r\n\r\n constructor(data?: IImportCrypticPnrApiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.sessionConnectorCustomData = _data[\"sessionConnectorCustomData\"] ? GdsSessionCustomData.fromJS(_data[\"sessionConnectorCustomData\"]) : null;\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.supplierID = _data[\"supplierID\"] !== undefined ? _data[\"supplierID\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.importServiceRows = _data[\"importServiceRows\"] !== undefined ? _data[\"importServiceRows\"] : null;\r\n this.importFares = _data[\"importFares\"] !== undefined ? _data[\"importFares\"] : null;\r\n this.replaceRows = _data[\"replaceRows\"] !== undefined ? _data[\"replaceRows\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImportCrypticPnrApiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImportCrypticPnrApiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sessionConnectorCustomData\"] = this.sessionConnectorCustomData ? this.sessionConnectorCustomData.toJSON() : null;\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"supplierID\"] = this.supplierID !== undefined ? this.supplierID : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"importServiceRows\"] = this.importServiceRows !== undefined ? this.importServiceRows : null;\r\n data[\"importFares\"] = this.importFares !== undefined ? this.importFares : null;\r\n data[\"replaceRows\"] = this.replaceRows !== undefined ? this.replaceRows : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImportCrypticPnrApiRequest extends IApiRequest {\r\n /** Session Custom Data */\r\n sessionConnectorCustomData?: GdsSessionCustomData | null;\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Supplier ID -> 14 Amadeus */\r\n supplierID?: number | null;\r\n /** Abbinamento ID -> Camera */\r\n abbinamentoID?: number | null;\r\n /** Boolean indicating import services rows */\r\n importServiceRows?: boolean;\r\n /** Boolean indicating import fares */\r\n importFares?: boolean;\r\n /** Boolean indicating if replace existing Rows and PNRs\r\nIt work only if the PNR associated to the rows is the same PNR */\r\n replaceRows?: boolean;\r\n}\r\n\r\nexport class ClosePnrApiRequest extends ApiRequest implements IClosePnrApiRequest {\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Abbinamento ID -> Camera */\r\n abbinamentoID?: number;\r\n\r\n constructor(data?: IClosePnrApiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClosePnrApiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClosePnrApiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClosePnrApiRequest extends IApiRequest {\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Abbinamento ID -> Camera */\r\n abbinamentoID?: number;\r\n}\r\n\r\nexport class AddFlightFromSearchRequest extends ApiRequest implements IAddFlightFromSearchRequest {\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Availability Request */\r\n availabilityInput?: JupiterFlightAvailabilityInput | null;\r\n /** Selected Result */\r\n selectedResult?: SingleFlightAvailResult | null;\r\n\r\n constructor(data?: IAddFlightFromSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.availabilityInput = _data[\"availabilityInput\"] ? JupiterFlightAvailabilityInput.fromJS(_data[\"availabilityInput\"]) : null;\r\n this.selectedResult = _data[\"selectedResult\"] ? SingleFlightAvailResult.fromJS(_data[\"selectedResult\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddFlightFromSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddFlightFromSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"availabilityInput\"] = this.availabilityInput ? this.availabilityInput.toJSON() : null;\r\n data[\"selectedResult\"] = this.selectedResult ? this.selectedResult.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddFlightFromSearchRequest extends IApiRequest {\r\n /** Offerta ID */\r\n tripID?: number;\r\n /** Availability Request */\r\n availabilityInput?: JupiterFlightAvailabilityInput | null;\r\n /** Selected Result */\r\n selectedResult?: SingleFlightAvailResult | null;\r\n}\r\n\r\nexport class CreateTripFromSearchRequest extends ApiRequest implements ICreateTripFromSearchRequest {\r\n /** Availability Request */\r\n availabilityInput?: JupiterFlightAvailabilityInput | null;\r\n /** Selected Result */\r\n selectedResult?: SingleFlightAvailResult | null;\r\n /** Trip Paxes */\r\n tripPaxes?: ClienteDatoUpdate[] | null;\r\n\r\n constructor(data?: ICreateTripFromSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.availabilityInput = _data[\"availabilityInput\"] ? JupiterFlightAvailabilityInput.fromJS(_data[\"availabilityInput\"]) : null;\r\n this.selectedResult = _data[\"selectedResult\"] ? SingleFlightAvailResult.fromJS(_data[\"selectedResult\"]) : null;\r\n if (Array.isArray(_data[\"tripPaxes\"])) {\r\n this.tripPaxes = [] as any;\r\n for (let item of _data[\"tripPaxes\"])\r\n this.tripPaxes!.push(ClienteDatoUpdate.fromJS(item));\r\n }\r\n else {\r\n this.tripPaxes = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateTripFromSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateTripFromSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"availabilityInput\"] = this.availabilityInput ? this.availabilityInput.toJSON() : null;\r\n data[\"selectedResult\"] = this.selectedResult ? this.selectedResult.toJSON() : null;\r\n if (Array.isArray(this.tripPaxes)) {\r\n data[\"tripPaxes\"] = [];\r\n for (let item of this.tripPaxes)\r\n data[\"tripPaxes\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateTripFromSearchRequest extends IApiRequest {\r\n /** Availability Request */\r\n availabilityInput?: JupiterFlightAvailabilityInput | null;\r\n /** Selected Result */\r\n selectedResult?: SingleFlightAvailResult | null;\r\n /** Trip Paxes */\r\n tripPaxes?: ClienteDatoUpdate[] | null;\r\n}\r\n\r\nexport class ClienteDatoUpdate implements IClienteDatoUpdate {\r\n cliente?: Cliente | null;\r\n clienteDato?: ClienteDato | null;\r\n abbinamentoID?: number | null;\r\n nomeNuovoAbbinamento?: string | null;\r\n\r\n constructor(data?: IClienteDatoUpdate) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.cliente = _data[\"cliente\"] ? Cliente.fromJS(_data[\"cliente\"]) : null;\r\n this.clienteDato = _data[\"clienteDato\"] ? ClienteDato.fromJS(_data[\"clienteDato\"]) : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.nomeNuovoAbbinamento = _data[\"nomeNuovoAbbinamento\"] !== undefined ? _data[\"nomeNuovoAbbinamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClienteDatoUpdate {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClienteDatoUpdate();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"cliente\"] = this.cliente ? this.cliente.toJSON() : null;\r\n data[\"clienteDato\"] = this.clienteDato ? this.clienteDato.toJSON() : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"nomeNuovoAbbinamento\"] = this.nomeNuovoAbbinamento !== undefined ? this.nomeNuovoAbbinamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClienteDatoUpdate {\r\n cliente?: Cliente | null;\r\n clienteDato?: ClienteDato | null;\r\n abbinamentoID?: number | null;\r\n nomeNuovoAbbinamento?: string | null;\r\n}\r\n\r\nexport class GetAllSuppliersResponse extends OkApiResponse implements IGetAllSuppliersResponse {\r\n rows?: SupplierRow[] | null;\r\n\r\n constructor(data?: IGetAllSuppliersResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SupplierRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAllSuppliersResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAllSuppliersResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAllSuppliersResponse extends IOkApiResponse {\r\n rows?: SupplierRow[] | null;\r\n}\r\n\r\nexport class SupplierRow implements ISupplierRow {\r\n id?: number;\r\n code?: string | null;\r\n name?: string | null;\r\n attivo?: boolean;\r\n ricercaHotel?: boolean;\r\n bookingHotel?: boolean;\r\n ricercaVoli?: boolean;\r\n bookingVoli?: boolean;\r\n ricercaVisite?: boolean;\r\n bookingVisite?: boolean;\r\n ricercaNoleggi?: boolean;\r\n bookingNoleggi?: boolean;\r\n ricercaCrociere?: boolean;\r\n bookingCrociere?: boolean;\r\n ultimaRicerca?: string | null;\r\n ultimaRicercaFault?: string | null;\r\n durataRicerche?: number | null;\r\n durataRicercheFault?: number | null;\r\n ricercheAttive?: number;\r\n ricercheAttiveFault?: number;\r\n accordoObbligatorio?: boolean;\r\n dirty?: boolean;\r\n\r\n constructor(data?: ISupplierRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.attivo = _data[\"attivo\"] !== undefined ? _data[\"attivo\"] : null;\r\n this.ricercaHotel = _data[\"ricercaHotel\"] !== undefined ? _data[\"ricercaHotel\"] : null;\r\n this.bookingHotel = _data[\"bookingHotel\"] !== undefined ? _data[\"bookingHotel\"] : null;\r\n this.ricercaVoli = _data[\"ricercaVoli\"] !== undefined ? _data[\"ricercaVoli\"] : null;\r\n this.bookingVoli = _data[\"bookingVoli\"] !== undefined ? _data[\"bookingVoli\"] : null;\r\n this.ricercaVisite = _data[\"ricercaVisite\"] !== undefined ? _data[\"ricercaVisite\"] : null;\r\n this.bookingVisite = _data[\"bookingVisite\"] !== undefined ? _data[\"bookingVisite\"] : null;\r\n this.ricercaNoleggi = _data[\"ricercaNoleggi\"] !== undefined ? _data[\"ricercaNoleggi\"] : null;\r\n this.bookingNoleggi = _data[\"bookingNoleggi\"] !== undefined ? _data[\"bookingNoleggi\"] : null;\r\n this.ricercaCrociere = _data[\"ricercaCrociere\"] !== undefined ? _data[\"ricercaCrociere\"] : null;\r\n this.bookingCrociere = _data[\"bookingCrociere\"] !== undefined ? _data[\"bookingCrociere\"] : null;\r\n this.ultimaRicerca = _data[\"ultimaRicerca\"] !== undefined ? _data[\"ultimaRicerca\"] : null;\r\n this.ultimaRicercaFault = _data[\"ultimaRicercaFault\"] !== undefined ? _data[\"ultimaRicercaFault\"] : null;\r\n this.durataRicerche = _data[\"durataRicerche\"] !== undefined ? _data[\"durataRicerche\"] : null;\r\n this.durataRicercheFault = _data[\"durataRicercheFault\"] !== undefined ? _data[\"durataRicercheFault\"] : null;\r\n this.ricercheAttive = _data[\"ricercheAttive\"] !== undefined ? _data[\"ricercheAttive\"] : null;\r\n this.ricercheAttiveFault = _data[\"ricercheAttiveFault\"] !== undefined ? _data[\"ricercheAttiveFault\"] : null;\r\n this.accordoObbligatorio = _data[\"accordoObbligatorio\"] !== undefined ? _data[\"accordoObbligatorio\"] : null;\r\n this.dirty = _data[\"dirty\"] !== undefined ? _data[\"dirty\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplierRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplierRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"attivo\"] = this.attivo !== undefined ? this.attivo : null;\r\n data[\"ricercaHotel\"] = this.ricercaHotel !== undefined ? this.ricercaHotel : null;\r\n data[\"bookingHotel\"] = this.bookingHotel !== undefined ? this.bookingHotel : null;\r\n data[\"ricercaVoli\"] = this.ricercaVoli !== undefined ? this.ricercaVoli : null;\r\n data[\"bookingVoli\"] = this.bookingVoli !== undefined ? this.bookingVoli : null;\r\n data[\"ricercaVisite\"] = this.ricercaVisite !== undefined ? this.ricercaVisite : null;\r\n data[\"bookingVisite\"] = this.bookingVisite !== undefined ? this.bookingVisite : null;\r\n data[\"ricercaNoleggi\"] = this.ricercaNoleggi !== undefined ? this.ricercaNoleggi : null;\r\n data[\"bookingNoleggi\"] = this.bookingNoleggi !== undefined ? this.bookingNoleggi : null;\r\n data[\"ricercaCrociere\"] = this.ricercaCrociere !== undefined ? this.ricercaCrociere : null;\r\n data[\"bookingCrociere\"] = this.bookingCrociere !== undefined ? this.bookingCrociere : null;\r\n data[\"ultimaRicerca\"] = this.ultimaRicerca !== undefined ? this.ultimaRicerca : null;\r\n data[\"ultimaRicercaFault\"] = this.ultimaRicercaFault !== undefined ? this.ultimaRicercaFault : null;\r\n data[\"durataRicerche\"] = this.durataRicerche !== undefined ? this.durataRicerche : null;\r\n data[\"durataRicercheFault\"] = this.durataRicercheFault !== undefined ? this.durataRicercheFault : null;\r\n data[\"ricercheAttive\"] = this.ricercheAttive !== undefined ? this.ricercheAttive : null;\r\n data[\"ricercheAttiveFault\"] = this.ricercheAttiveFault !== undefined ? this.ricercheAttiveFault : null;\r\n data[\"accordoObbligatorio\"] = this.accordoObbligatorio !== undefined ? this.accordoObbligatorio : null;\r\n data[\"dirty\"] = this.dirty !== undefined ? this.dirty : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplierRow {\r\n id?: number;\r\n code?: string | null;\r\n name?: string | null;\r\n attivo?: boolean;\r\n ricercaHotel?: boolean;\r\n bookingHotel?: boolean;\r\n ricercaVoli?: boolean;\r\n bookingVoli?: boolean;\r\n ricercaVisite?: boolean;\r\n bookingVisite?: boolean;\r\n ricercaNoleggi?: boolean;\r\n bookingNoleggi?: boolean;\r\n ricercaCrociere?: boolean;\r\n bookingCrociere?: boolean;\r\n ultimaRicerca?: string | null;\r\n ultimaRicercaFault?: string | null;\r\n durataRicerche?: number | null;\r\n durataRicercheFault?: number | null;\r\n ricercheAttive?: number;\r\n ricercheAttiveFault?: number;\r\n accordoObbligatorio?: boolean;\r\n dirty?: boolean;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetAllSuppliersRequest extends ApiRequest implements IGetAllSuppliersRequest {\r\n\r\n constructor(data?: IGetAllSuppliersRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetAllSuppliersRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAllSuppliersRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetAllSuppliersRequest extends IApiRequest {\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class SaveSuppliersRequest extends ApiRequest implements ISaveSuppliersRequest {\r\n suppliers?: SupplierItem[] | null;\r\n\r\n constructor(data?: ISaveSuppliersRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"suppliers\"])) {\r\n this.suppliers = [] as any;\r\n for (let item of _data[\"suppliers\"])\r\n this.suppliers!.push(SupplierItem.fromJS(item));\r\n }\r\n else {\r\n this.suppliers = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SaveSuppliersRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SaveSuppliersRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.suppliers)) {\r\n data[\"suppliers\"] = [];\r\n for (let item of this.suppliers)\r\n data[\"suppliers\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface ISaveSuppliersRequest extends IApiRequest {\r\n suppliers?: SupplierItem[] | null;\r\n}\r\n\r\nexport class SupplierItem implements ISupplierItem {\r\n id?: number;\r\n attivo?: boolean;\r\n ricercaHotel?: boolean;\r\n bookingHotel?: boolean;\r\n ricercaVoli?: boolean;\r\n bookingVoli?: boolean;\r\n ricercaVisite?: boolean;\r\n bookingVisite?: boolean;\r\n ricercaNoleggi?: boolean;\r\n bookingNoleggi?: boolean;\r\n dirty?: boolean;\r\n\r\n constructor(data?: ISupplierItem) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.attivo = _data[\"attivo\"] !== undefined ? _data[\"attivo\"] : null;\r\n this.ricercaHotel = _data[\"ricercaHotel\"] !== undefined ? _data[\"ricercaHotel\"] : null;\r\n this.bookingHotel = _data[\"bookingHotel\"] !== undefined ? _data[\"bookingHotel\"] : null;\r\n this.ricercaVoli = _data[\"ricercaVoli\"] !== undefined ? _data[\"ricercaVoli\"] : null;\r\n this.bookingVoli = _data[\"bookingVoli\"] !== undefined ? _data[\"bookingVoli\"] : null;\r\n this.ricercaVisite = _data[\"ricercaVisite\"] !== undefined ? _data[\"ricercaVisite\"] : null;\r\n this.bookingVisite = _data[\"bookingVisite\"] !== undefined ? _data[\"bookingVisite\"] : null;\r\n this.ricercaNoleggi = _data[\"ricercaNoleggi\"] !== undefined ? _data[\"ricercaNoleggi\"] : null;\r\n this.bookingNoleggi = _data[\"bookingNoleggi\"] !== undefined ? _data[\"bookingNoleggi\"] : null;\r\n this.dirty = _data[\"dirty\"] !== undefined ? _data[\"dirty\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplierItem {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplierItem();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"attivo\"] = this.attivo !== undefined ? this.attivo : null;\r\n data[\"ricercaHotel\"] = this.ricercaHotel !== undefined ? this.ricercaHotel : null;\r\n data[\"bookingHotel\"] = this.bookingHotel !== undefined ? this.bookingHotel : null;\r\n data[\"ricercaVoli\"] = this.ricercaVoli !== undefined ? this.ricercaVoli : null;\r\n data[\"bookingVoli\"] = this.bookingVoli !== undefined ? this.bookingVoli : null;\r\n data[\"ricercaVisite\"] = this.ricercaVisite !== undefined ? this.ricercaVisite : null;\r\n data[\"bookingVisite\"] = this.bookingVisite !== undefined ? this.bookingVisite : null;\r\n data[\"ricercaNoleggi\"] = this.ricercaNoleggi !== undefined ? this.ricercaNoleggi : null;\r\n data[\"bookingNoleggi\"] = this.bookingNoleggi !== undefined ? this.bookingNoleggi : null;\r\n data[\"dirty\"] = this.dirty !== undefined ? this.dirty : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplierItem {\r\n id?: number;\r\n attivo?: boolean;\r\n ricercaHotel?: boolean;\r\n bookingHotel?: boolean;\r\n ricercaVoli?: boolean;\r\n bookingVoli?: boolean;\r\n ricercaVisite?: boolean;\r\n bookingVisite?: boolean;\r\n ricercaNoleggi?: boolean;\r\n bookingNoleggi?: boolean;\r\n dirty?: boolean;\r\n}\r\n\r\nexport class CloneImageResponse extends OkApiResponse implements ICloneImageResponse {\r\n immagine?: ImageResponse | null;\r\n\r\n constructor(data?: ICloneImageResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagine = _data[\"immagine\"] ? ImageResponse.fromJS(_data[\"immagine\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CloneImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CloneImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagine\"] = this.immagine ? this.immagine.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICloneImageResponse extends IOkApiResponse {\r\n immagine?: ImageResponse | null;\r\n}\r\n\r\n/** Elemento della lista immagini */\r\nexport class ImageResponse implements IImageResponse {\r\n /** ID dell'immagine */\r\n id?: number;\r\n /** Url assoluta della miniatura */\r\n webUrl?: string;\r\n didascalia?: string | null;\r\n ordine?: number | null;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n servizioObsoleto?: boolean;\r\n servizioEliminato?: boolean;\r\n articoloID?: number | null;\r\n articolo?: string | null;\r\n nome_it?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n data?: string;\r\n /** Dati dell'immagine originale */\r\n originalImageData?: ImageData | null;\r\n programma?: boolean | null;\r\n sitoWeb?: boolean | null;\r\n preventivo?: boolean | null;\r\n miniGuida?: boolean | null;\r\n deleted?: boolean;\r\n\r\n constructor(data?: IImageResponse) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.webUrl = _data[\"webUrl\"] !== undefined ? _data[\"webUrl\"] : null;\r\n this.didascalia = _data[\"didascalia\"] !== undefined ? _data[\"didascalia\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoEliminato = _data[\"luogoEliminato\"] !== undefined ? _data[\"luogoEliminato\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.servizioObsoleto = _data[\"servizioObsoleto\"] !== undefined ? _data[\"servizioObsoleto\"] : null;\r\n this.servizioEliminato = _data[\"servizioEliminato\"] !== undefined ? _data[\"servizioEliminato\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.articolo = _data[\"articolo\"] !== undefined ? _data[\"articolo\"] : null;\r\n this.nome_it = _data[\"nome_it\"] !== undefined ? _data[\"nome_it\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.originalImageData = _data[\"originalImageData\"] ? ImageData.fromJS(_data[\"originalImageData\"]) : null;\r\n this.programma = _data[\"programma\"] !== undefined ? _data[\"programma\"] : null;\r\n this.sitoWeb = _data[\"sitoWeb\"] !== undefined ? _data[\"sitoWeb\"] : null;\r\n this.preventivo = _data[\"preventivo\"] !== undefined ? _data[\"preventivo\"] : null;\r\n this.miniGuida = _data[\"miniGuida\"] !== undefined ? _data[\"miniGuida\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"webUrl\"] = this.webUrl !== undefined ? this.webUrl : null;\r\n data[\"didascalia\"] = this.didascalia !== undefined ? this.didascalia : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoEliminato\"] = this.luogoEliminato !== undefined ? this.luogoEliminato : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"servizioObsoleto\"] = this.servizioObsoleto !== undefined ? this.servizioObsoleto : null;\r\n data[\"servizioEliminato\"] = this.servizioEliminato !== undefined ? this.servizioEliminato : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"articolo\"] = this.articolo !== undefined ? this.articolo : null;\r\n data[\"nome_it\"] = this.nome_it !== undefined ? this.nome_it : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"originalImageData\"] = this.originalImageData ? this.originalImageData.toJSON() : null;\r\n data[\"programma\"] = this.programma !== undefined ? this.programma : null;\r\n data[\"sitoWeb\"] = this.sitoWeb !== undefined ? this.sitoWeb : null;\r\n data[\"preventivo\"] = this.preventivo !== undefined ? this.preventivo : null;\r\n data[\"miniGuida\"] = this.miniGuida !== undefined ? this.miniGuida : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Elemento della lista immagini */\r\nexport interface IImageResponse {\r\n /** ID dell'immagine */\r\n id?: number;\r\n /** Url assoluta della miniatura */\r\n webUrl?: string;\r\n didascalia?: string | null;\r\n ordine?: number | null;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n servizioObsoleto?: boolean;\r\n servizioEliminato?: boolean;\r\n articoloID?: number | null;\r\n articolo?: string | null;\r\n nome_it?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n data?: string;\r\n /** Dati dell'immagine originale */\r\n originalImageData?: ImageData | null;\r\n programma?: boolean | null;\r\n sitoWeb?: boolean | null;\r\n preventivo?: boolean | null;\r\n miniGuida?: boolean | null;\r\n deleted?: boolean;\r\n}\r\n\r\nexport class ImageData implements IImageData {\r\n width?: number;\r\n height?: number;\r\n size?: number;\r\n\r\n constructor(data?: IImageData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.width = _data[\"width\"] !== undefined ? _data[\"width\"] : null;\r\n this.height = _data[\"height\"] !== undefined ? _data[\"height\"] : null;\r\n this.size = _data[\"size\"] !== undefined ? _data[\"size\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImageData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImageData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"width\"] = this.width !== undefined ? this.width : null;\r\n data[\"height\"] = this.height !== undefined ? this.height : null;\r\n data[\"size\"] = this.size !== undefined ? this.size : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImageData {\r\n width?: number;\r\n height?: number;\r\n size?: number;\r\n}\r\n\r\nexport class CloneImageRequest extends LocalizedRequest implements ICloneImageRequest {\r\n immagineID?: number;\r\n\r\n constructor(data?: ICloneImageRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagineID = _data[\"immagineID\"] !== undefined ? _data[\"immagineID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CloneImageRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CloneImageRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagineID\"] = this.immagineID !== undefined ? this.immagineID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICloneImageRequest extends ILocalizedRequest {\r\n immagineID?: number;\r\n}\r\n\r\nexport class DeleteImageResponse extends OkApiResponse implements IDeleteImageResponse {\r\n\r\n constructor(data?: IDeleteImageResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): DeleteImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteImageResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class DeleteImageRequest extends LocalizedRequest implements IDeleteImageRequest {\r\n immagineID?: number;\r\n\r\n constructor(data?: IDeleteImageRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagineID = _data[\"immagineID\"] !== undefined ? _data[\"immagineID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteImageRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteImageRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagineID\"] = this.immagineID !== undefined ? this.immagineID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteImageRequest extends ILocalizedRequest {\r\n immagineID?: number;\r\n}\r\n\r\nexport class DeleteMultiImageResponse extends OkApiResponse implements IDeleteMultiImageResponse {\r\n\r\n constructor(data?: IDeleteMultiImageResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): DeleteMultiImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteMultiImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteMultiImageResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class DeleteMultiImageRequest extends LocalizedRequest implements IDeleteMultiImageRequest {\r\n immaginiID?: number[] | null;\r\n\r\n constructor(data?: IDeleteMultiImageRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"immaginiID\"])) {\r\n this.immaginiID = [] as any;\r\n for (let item of _data[\"immaginiID\"])\r\n this.immaginiID!.push(item);\r\n }\r\n else {\r\n this.immaginiID = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteMultiImageRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteMultiImageRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.immaginiID)) {\r\n data[\"immaginiID\"] = [];\r\n for (let item of this.immaginiID)\r\n data[\"immaginiID\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteMultiImageRequest extends ILocalizedRequest {\r\n immaginiID?: number[] | null;\r\n}\r\n\r\nexport class ImageGetResponse extends OkApiResponse implements IImageGetResponse {\r\n image?: ImageResponse;\r\n\r\n constructor(data?: IImageGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.image = _data[\"image\"] ? ImageResponse.fromJS(_data[\"image\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImageGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImageGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"image\"] = this.image ? this.image.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImageGetResponse extends IOkApiResponse {\r\n image?: ImageResponse;\r\n}\r\n\r\nexport class ImageGetRequest extends LocalizedRequest implements IImageGetRequest {\r\n immagineId?: number;\r\n\r\n constructor(data?: IImageGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagineId = _data[\"immagineId\"] !== undefined ? _data[\"immagineId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImageGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImageGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagineId\"] = this.immagineId !== undefined ? this.immagineId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImageGetRequest extends ILocalizedRequest {\r\n immagineId?: number;\r\n}\r\n\r\n/** Enumeratore dei tipi di marker */\r\nexport enum EPriceMarkerType {\r\n Available = \"Available\",\r\n OnRequest = \"OnRequest\",\r\n Current = \"Current\",\r\n}\r\n\r\nexport class NrTableResponseOfImageResponse extends OkApiResponse implements INrTableResponseOfImageResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ImageResponse[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfImageResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ImageResponse.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfImageResponse extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ImageResponse[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ImagesListResponse extends NrTableResponseOfImageResponse implements IImagesListResponse {\r\n\r\n constructor(data?: IImagesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ImagesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImagesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImagesListResponse extends INrTableResponseOfImageResponse {\r\n}\r\n\r\n/** Filtri specifici per la lista immagini */\r\nexport class ImagesListRequest extends NrTableRequest implements IImagesListRequest {\r\n imageID?: number | null;\r\n luogoID?: number | null;\r\n paeseID?: number | null;\r\n regioneID?: number | null;\r\n servizioID?: number | null;\r\n didascalia?: string | null;\r\n soloLegateALuogo?: boolean | null;\r\n filters?: ImagesListFilters | null;\r\n showDeleted?: boolean;\r\n\r\n constructor(data?: IImagesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.imageID = _data[\"imageID\"] !== undefined ? _data[\"imageID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.paeseID = _data[\"paeseID\"] !== undefined ? _data[\"paeseID\"] : null;\r\n this.regioneID = _data[\"regioneID\"] !== undefined ? _data[\"regioneID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.didascalia = _data[\"didascalia\"] !== undefined ? _data[\"didascalia\"] : null;\r\n this.soloLegateALuogo = _data[\"soloLegateALuogo\"] !== undefined ? _data[\"soloLegateALuogo\"] : null;\r\n this.filters = _data[\"filters\"] ? ImagesListFilters.fromJS(_data[\"filters\"]) : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImagesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImagesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"imageID\"] = this.imageID !== undefined ? this.imageID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"paeseID\"] = this.paeseID !== undefined ? this.paeseID : null;\r\n data[\"regioneID\"] = this.regioneID !== undefined ? this.regioneID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"didascalia\"] = this.didascalia !== undefined ? this.didascalia : null;\r\n data[\"soloLegateALuogo\"] = this.soloLegateALuogo !== undefined ? this.soloLegateALuogo : null;\r\n data[\"filters\"] = this.filters ? this.filters.toJSON() : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Filtri specifici per la lista immagini */\r\nexport interface IImagesListRequest extends INrTableRequest {\r\n imageID?: number | null;\r\n luogoID?: number | null;\r\n paeseID?: number | null;\r\n regioneID?: number | null;\r\n servizioID?: number | null;\r\n didascalia?: string | null;\r\n soloLegateALuogo?: boolean | null;\r\n filters?: ImagesListFilters | null;\r\n showDeleted?: boolean;\r\n}\r\n\r\nexport class ImagesListFilters implements IImagesListFilters {\r\n sitoWeb?: boolean;\r\n preventivo?: boolean;\r\n programma?: boolean;\r\n miniGuida?: boolean;\r\n hasValue?: boolean;\r\n\r\n constructor(data?: IImagesListFilters) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sitoWeb = _data[\"sitoWeb\"] !== undefined ? _data[\"sitoWeb\"] : null;\r\n this.preventivo = _data[\"preventivo\"] !== undefined ? _data[\"preventivo\"] : null;\r\n this.programma = _data[\"programma\"] !== undefined ? _data[\"programma\"] : null;\r\n this.miniGuida = _data[\"miniGuida\"] !== undefined ? _data[\"miniGuida\"] : null;\r\n this.hasValue = _data[\"hasValue\"] !== undefined ? _data[\"hasValue\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImagesListFilters {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImagesListFilters();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sitoWeb\"] = this.sitoWeb !== undefined ? this.sitoWeb : null;\r\n data[\"preventivo\"] = this.preventivo !== undefined ? this.preventivo : null;\r\n data[\"programma\"] = this.programma !== undefined ? this.programma : null;\r\n data[\"miniGuida\"] = this.miniGuida !== undefined ? this.miniGuida : null;\r\n data[\"hasValue\"] = this.hasValue !== undefined ? this.hasValue : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImagesListFilters {\r\n sitoWeb?: boolean;\r\n preventivo?: boolean;\r\n programma?: boolean;\r\n miniGuida?: boolean;\r\n hasValue?: boolean;\r\n}\r\n\r\nexport class GetImagesListByLuogoResponse extends OkApiResponse implements IGetImagesListByLuogoResponse {\r\n imageList?: ImagesListByLuogo[] | null;\r\n\r\n constructor(data?: IGetImagesListByLuogoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"imageList\"])) {\r\n this.imageList = [] as any;\r\n for (let item of _data[\"imageList\"])\r\n this.imageList!.push(ImagesListByLuogo.fromJS(item));\r\n }\r\n else {\r\n this.imageList = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetImagesListByLuogoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetImagesListByLuogoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.imageList)) {\r\n data[\"imageList\"] = [];\r\n for (let item of this.imageList)\r\n data[\"imageList\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetImagesListByLuogoResponse extends IOkApiResponse {\r\n imageList?: ImagesListByLuogo[] | null;\r\n}\r\n\r\n/** Classe usata per richiedere una lista di immagini per idLuogo */\r\nexport class ImagesListByLuogo implements IImagesListByLuogo {\r\n imageID?: number | null;\r\n luogoID?: number | null;\r\n didascalia?: string | null;\r\n url?: string | null;\r\n\r\n constructor(data?: IImagesListByLuogo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.imageID = _data[\"imageID\"] !== undefined ? _data[\"imageID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.didascalia = _data[\"didascalia\"] !== undefined ? _data[\"didascalia\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImagesListByLuogo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImagesListByLuogo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"imageID\"] = this.imageID !== undefined ? this.imageID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"didascalia\"] = this.didascalia !== undefined ? this.didascalia : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe usata per richiedere una lista di immagini per idLuogo */\r\nexport interface IImagesListByLuogo {\r\n imageID?: number | null;\r\n luogoID?: number | null;\r\n didascalia?: string | null;\r\n url?: string | null;\r\n}\r\n\r\n/** Filtri specifici per la lista immagini */\r\nexport class ImagesListByLuogoRequest extends LocalizedRequest implements IImagesListByLuogoRequest {\r\n luogoID?: number;\r\n\r\n constructor(data?: IImagesListByLuogoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImagesListByLuogoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImagesListByLuogoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Filtri specifici per la lista immagini */\r\nexport interface IImagesListByLuogoRequest extends ILocalizedRequest {\r\n luogoID?: number;\r\n}\r\n\r\nexport class GetImageListByImageIdsListResponse extends OkApiResponse implements IGetImageListByImageIdsListResponse {\r\n imageList?: ImagesListByLuogo[] | null;\r\n\r\n constructor(data?: IGetImageListByImageIdsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"imageList\"])) {\r\n this.imageList = [] as any;\r\n for (let item of _data[\"imageList\"])\r\n this.imageList!.push(ImagesListByLuogo.fromJS(item));\r\n }\r\n else {\r\n this.imageList = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetImageListByImageIdsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetImageListByImageIdsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.imageList)) {\r\n data[\"imageList\"] = [];\r\n for (let item of this.imageList)\r\n data[\"imageList\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetImageListByImageIdsListResponse extends IOkApiResponse {\r\n imageList?: ImagesListByLuogo[] | null;\r\n}\r\n\r\n/** Filtri specifici per la lista immagini */\r\nexport class ImageListByImageIdsRequest extends LocalizedRequest implements IImageListByImageIdsRequest {\r\n imageIds?: number[] | null;\r\n\r\n constructor(data?: IImageListByImageIdsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"imageIds\"])) {\r\n this.imageIds = [] as any;\r\n for (let item of _data[\"imageIds\"])\r\n this.imageIds!.push(item);\r\n }\r\n else {\r\n this.imageIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImageListByImageIdsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImageListByImageIdsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.imageIds)) {\r\n data[\"imageIds\"] = [];\r\n for (let item of this.imageIds)\r\n data[\"imageIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Filtri specifici per la lista immagini */\r\nexport interface IImageListByImageIdsRequest extends ILocalizedRequest {\r\n imageIds?: number[] | null;\r\n}\r\n\r\nexport class PixabayImportImagesResponse extends OkApiResponse implements IPixabayImportImagesResponse {\r\n /** Immagini importate */\r\n images?: ImageResponse[];\r\n\r\n constructor(data?: IPixabayImportImagesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"images\"])) {\r\n this.images = [] as any;\r\n for (let item of _data[\"images\"])\r\n this.images!.push(ImageResponse.fromJS(item));\r\n }\r\n else {\r\n this.images = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PixabayImportImagesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PixabayImportImagesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.images)) {\r\n data[\"images\"] = [];\r\n for (let item of this.images)\r\n data[\"images\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPixabayImportImagesResponse extends IOkApiResponse {\r\n /** Immagini importate */\r\n images?: ImageResponse[];\r\n}\r\n\r\nexport class PixabayImportImagesRequest extends LocalizedRequest implements IPixabayImportImagesRequest {\r\n /** Lista degli ID da importare */\r\n iDs?: string[];\r\n /** ID del luogo da assegnare */\r\n luogoID?: number | null;\r\n /** ID del servizio da assegnare */\r\n servizioID?: number | null;\r\n /** Se true è utilizzabile sul programma */\r\n programma?: boolean;\r\n /** Se true è utilizzabile sul sito */\r\n sitoWeb?: boolean;\r\n /** Se true è utilizzabile nel preventivo */\r\n preventivo?: boolean;\r\n /** Se true è utilizzabile nella miniguida */\r\n miniGuida?: boolean;\r\n /** Lingua per i metadati */\r\n linguaImport?: ELingua;\r\n\r\n constructor(data?: IPixabayImportImagesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"iDs\"])) {\r\n this.iDs = [] as any;\r\n for (let item of _data[\"iDs\"])\r\n this.iDs!.push(item);\r\n }\r\n else {\r\n this.iDs = null;\r\n }\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.programma = _data[\"programma\"] !== undefined ? _data[\"programma\"] : null;\r\n this.sitoWeb = _data[\"sitoWeb\"] !== undefined ? _data[\"sitoWeb\"] : null;\r\n this.preventivo = _data[\"preventivo\"] !== undefined ? _data[\"preventivo\"] : null;\r\n this.miniGuida = _data[\"miniGuida\"] !== undefined ? _data[\"miniGuida\"] : null;\r\n this.linguaImport = _data[\"linguaImport\"] !== undefined ? _data[\"linguaImport\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PixabayImportImagesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PixabayImportImagesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.iDs)) {\r\n data[\"iDs\"] = [];\r\n for (let item of this.iDs)\r\n data[\"iDs\"].push(item);\r\n }\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"programma\"] = this.programma !== undefined ? this.programma : null;\r\n data[\"sitoWeb\"] = this.sitoWeb !== undefined ? this.sitoWeb : null;\r\n data[\"preventivo\"] = this.preventivo !== undefined ? this.preventivo : null;\r\n data[\"miniGuida\"] = this.miniGuida !== undefined ? this.miniGuida : null;\r\n data[\"linguaImport\"] = this.linguaImport !== undefined ? this.linguaImport : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPixabayImportImagesRequest extends ILocalizedRequest {\r\n /** Lista degli ID da importare */\r\n iDs?: string[];\r\n /** ID del luogo da assegnare */\r\n luogoID?: number | null;\r\n /** ID del servizio da assegnare */\r\n servizioID?: number | null;\r\n /** Se true è utilizzabile sul programma */\r\n programma?: boolean;\r\n /** Se true è utilizzabile sul sito */\r\n sitoWeb?: boolean;\r\n /** Se true è utilizzabile nel preventivo */\r\n preventivo?: boolean;\r\n /** Se true è utilizzabile nella miniguida */\r\n miniGuida?: boolean;\r\n /** Lingua per i metadati */\r\n linguaImport?: ELingua;\r\n}\r\n\r\nexport class NrTableResponseOfPixabayImageData extends OkApiResponse implements INrTableResponseOfPixabayImageData {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PixabayImageData[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfPixabayImageData) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(PixabayImageData.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfPixabayImageData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfPixabayImageData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfPixabayImageData extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PixabayImageData[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class PixabaySearchResponse extends NrTableResponseOfPixabayImageData implements IPixabaySearchResponse {\r\n\r\n constructor(data?: IPixabaySearchResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PixabaySearchResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PixabaySearchResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPixabaySearchResponse extends INrTableResponseOfPixabayImageData {\r\n}\r\n\r\nexport class PixabayImageData implements IPixabayImageData {\r\n id?: string | null;\r\n type?: EImageType;\r\n pageURL?: string | null;\r\n tags?: string | null;\r\n previewURL?: string | null;\r\n previewWidth?: number;\r\n previewHeight?: number;\r\n imageWidth?: number;\r\n imageHeight?: number;\r\n imageSize?: number;\r\n largeImageURL?: string | null;\r\n\r\n constructor(data?: IPixabayImageData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.pageURL = _data[\"pageURL\"] !== undefined ? _data[\"pageURL\"] : null;\r\n this.tags = _data[\"tags\"] !== undefined ? _data[\"tags\"] : null;\r\n this.previewURL = _data[\"previewURL\"] !== undefined ? _data[\"previewURL\"] : null;\r\n this.previewWidth = _data[\"previewWidth\"] !== undefined ? _data[\"previewWidth\"] : null;\r\n this.previewHeight = _data[\"previewHeight\"] !== undefined ? _data[\"previewHeight\"] : null;\r\n this.imageWidth = _data[\"imageWidth\"] !== undefined ? _data[\"imageWidth\"] : null;\r\n this.imageHeight = _data[\"imageHeight\"] !== undefined ? _data[\"imageHeight\"] : null;\r\n this.imageSize = _data[\"imageSize\"] !== undefined ? _data[\"imageSize\"] : null;\r\n this.largeImageURL = _data[\"largeImageURL\"] !== undefined ? _data[\"largeImageURL\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PixabayImageData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PixabayImageData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"pageURL\"] = this.pageURL !== undefined ? this.pageURL : null;\r\n data[\"tags\"] = this.tags !== undefined ? this.tags : null;\r\n data[\"previewURL\"] = this.previewURL !== undefined ? this.previewURL : null;\r\n data[\"previewWidth\"] = this.previewWidth !== undefined ? this.previewWidth : null;\r\n data[\"previewHeight\"] = this.previewHeight !== undefined ? this.previewHeight : null;\r\n data[\"imageWidth\"] = this.imageWidth !== undefined ? this.imageWidth : null;\r\n data[\"imageHeight\"] = this.imageHeight !== undefined ? this.imageHeight : null;\r\n data[\"imageSize\"] = this.imageSize !== undefined ? this.imageSize : null;\r\n data[\"largeImageURL\"] = this.largeImageURL !== undefined ? this.largeImageURL : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPixabayImageData {\r\n id?: string | null;\r\n type?: EImageType;\r\n pageURL?: string | null;\r\n tags?: string | null;\r\n previewURL?: string | null;\r\n previewWidth?: number;\r\n previewHeight?: number;\r\n imageWidth?: number;\r\n imageHeight?: number;\r\n imageSize?: number;\r\n largeImageURL?: string | null;\r\n}\r\n\r\nexport enum EImageType {\r\n All = \"all\",\r\n Photo = \"photo\",\r\n Illustration = \"illustration\",\r\n Vector = \"vector\",\r\n}\r\n\r\nexport class PixabaySearchRequest extends NrTableRequest implements IPixabaySearchRequest {\r\n query?: PixabayQuery | null;\r\n\r\n constructor(data?: IPixabaySearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.query = _data[\"query\"] ? PixabayQuery.fromJS(_data[\"query\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PixabaySearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PixabaySearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"query\"] = this.query ? this.query.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPixabaySearchRequest extends INrTableRequest {\r\n query?: PixabayQuery | null;\r\n}\r\n\r\nexport class PixabayQuery implements IPixabayQuery {\r\n query!: string;\r\n id?: string | null;\r\n lingua?: ELingua;\r\n imageType?: EImageType;\r\n orientation?: EImageOrientation;\r\n category?: EImageCategory | null;\r\n minWidth?: number;\r\n minHeight?: number;\r\n editorsChoiche?: boolean;\r\n safeSearch?: boolean;\r\n sortOrder?: ESortOrder;\r\n pageNr?: number;\r\n perPage?: number;\r\n\r\n constructor(data?: IPixabayQuery) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.query = _data[\"query\"] !== undefined ? _data[\"query\"] : null;\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.imageType = _data[\"imageType\"] !== undefined ? _data[\"imageType\"] : null;\r\n this.orientation = _data[\"orientation\"] !== undefined ? _data[\"orientation\"] : null;\r\n this.category = _data[\"category\"] !== undefined ? _data[\"category\"] : null;\r\n this.minWidth = _data[\"minWidth\"] !== undefined ? _data[\"minWidth\"] : null;\r\n this.minHeight = _data[\"minHeight\"] !== undefined ? _data[\"minHeight\"] : null;\r\n this.editorsChoiche = _data[\"editorsChoiche\"] !== undefined ? _data[\"editorsChoiche\"] : null;\r\n this.safeSearch = _data[\"safeSearch\"] !== undefined ? _data[\"safeSearch\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n this.pageNr = _data[\"pageNr\"] !== undefined ? _data[\"pageNr\"] : null;\r\n this.perPage = _data[\"perPage\"] !== undefined ? _data[\"perPage\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PixabayQuery {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PixabayQuery();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"query\"] = this.query !== undefined ? this.query : null;\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"imageType\"] = this.imageType !== undefined ? this.imageType : null;\r\n data[\"orientation\"] = this.orientation !== undefined ? this.orientation : null;\r\n data[\"category\"] = this.category !== undefined ? this.category : null;\r\n data[\"minWidth\"] = this.minWidth !== undefined ? this.minWidth : null;\r\n data[\"minHeight\"] = this.minHeight !== undefined ? this.minHeight : null;\r\n data[\"editorsChoiche\"] = this.editorsChoiche !== undefined ? this.editorsChoiche : null;\r\n data[\"safeSearch\"] = this.safeSearch !== undefined ? this.safeSearch : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n data[\"pageNr\"] = this.pageNr !== undefined ? this.pageNr : null;\r\n data[\"perPage\"] = this.perPage !== undefined ? this.perPage : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPixabayQuery {\r\n query: string;\r\n id?: string | null;\r\n lingua?: ELingua;\r\n imageType?: EImageType;\r\n orientation?: EImageOrientation;\r\n category?: EImageCategory | null;\r\n minWidth?: number;\r\n minHeight?: number;\r\n editorsChoiche?: boolean;\r\n safeSearch?: boolean;\r\n sortOrder?: ESortOrder;\r\n pageNr?: number;\r\n perPage?: number;\r\n}\r\n\r\nexport enum EImageOrientation {\r\n All = \"all\",\r\n Horizontal = \"horizontal\",\r\n Vertical = \"vertical\",\r\n}\r\n\r\nexport enum EImageCategory {\r\n Backgrounds = \"backgrounds\",\r\n Fashion = \"fashion\",\r\n Nature = \"nature\",\r\n Science = \"science\",\r\n Education = \"education\",\r\n Feelings = \"feelings\",\r\n Health = \"health\",\r\n People = \"people\",\r\n Religion = \"religion\",\r\n Places = \"places\",\r\n Animals = \"animals\",\r\n Industry = \"industry\",\r\n Computer = \"computer\",\r\n Food = \"food\",\r\n Sports = \"sports\",\r\n Transportation = \"transportation\",\r\n Travel = \"travel\",\r\n Buildings = \"buildings\",\r\n Business = \"business\",\r\n Music = \"music\",\r\n}\r\n\r\nexport enum ESortOrder {\r\n Popular = \"popular\",\r\n Latest = \"latest\",\r\n}\r\n\r\nexport class RestoreImageResponse extends OkApiResponse implements IRestoreImageResponse {\r\n\r\n constructor(data?: IRestoreImageResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): RestoreImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRestoreImageResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class RestoreImageRequest extends LocalizedRequest implements IRestoreImageRequest {\r\n immagineID?: number;\r\n\r\n constructor(data?: IRestoreImageRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagineID = _data[\"immagineID\"] !== undefined ? _data[\"immagineID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RestoreImageRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreImageRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagineID\"] = this.immagineID !== undefined ? this.immagineID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRestoreImageRequest extends ILocalizedRequest {\r\n immagineID?: number;\r\n}\r\n\r\nexport class UpdateImageResponse extends OkApiResponse implements IUpdateImageResponse {\r\n immagine?: ImageResponse | null;\r\n\r\n constructor(data?: IUpdateImageResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagine = _data[\"immagine\"] ? ImageResponse.fromJS(_data[\"immagine\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagine\"] = this.immagine ? this.immagine.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateImageResponse extends IOkApiResponse {\r\n immagine?: ImageResponse | null;\r\n}\r\n\r\nexport class UpdateImageRequest extends LocalizedRequest implements IUpdateImageRequest {\r\n immagineID?: number;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n articoloID?: number | null;\r\n ordine?: number;\r\n nome_it?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n programma?: boolean;\r\n sitoWeb?: boolean;\r\n preventivo?: boolean;\r\n miniGuida?: boolean;\r\n hash?: string | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n\r\n constructor(data?: IUpdateImageRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagineID = _data[\"immagineID\"] !== undefined ? _data[\"immagineID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.nome_it = _data[\"nome_it\"] !== undefined ? _data[\"nome_it\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.programma = _data[\"programma\"] !== undefined ? _data[\"programma\"] : null;\r\n this.sitoWeb = _data[\"sitoWeb\"] !== undefined ? _data[\"sitoWeb\"] : null;\r\n this.preventivo = _data[\"preventivo\"] !== undefined ? _data[\"preventivo\"] : null;\r\n this.miniGuida = _data[\"miniGuida\"] !== undefined ? _data[\"miniGuida\"] : null;\r\n this.hash = _data[\"hash\"] !== undefined ? _data[\"hash\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.deletedAt = _data[\"deletedAt\"] !== undefined ? _data[\"deletedAt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateImageRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateImageRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagineID\"] = this.immagineID !== undefined ? this.immagineID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"nome_it\"] = this.nome_it !== undefined ? this.nome_it : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"programma\"] = this.programma !== undefined ? this.programma : null;\r\n data[\"sitoWeb\"] = this.sitoWeb !== undefined ? this.sitoWeb : null;\r\n data[\"preventivo\"] = this.preventivo !== undefined ? this.preventivo : null;\r\n data[\"miniGuida\"] = this.miniGuida !== undefined ? this.miniGuida : null;\r\n data[\"hash\"] = this.hash !== undefined ? this.hash : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"deletedAt\"] = this.deletedAt !== undefined ? this.deletedAt : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateImageRequest extends ILocalizedRequest {\r\n immagineID?: number;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n articoloID?: number | null;\r\n ordine?: number;\r\n nome_it?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n programma?: boolean;\r\n sitoWeb?: boolean;\r\n preventivo?: boolean;\r\n miniGuida?: boolean;\r\n hash?: string | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n}\r\n\r\nexport class UploadImageResponse extends OkApiResponse implements IUploadImageResponse {\r\n immagine?: ImageResponse;\r\n\r\n constructor(data?: IUploadImageResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.immagine = _data[\"immagine\"] ? ImageResponse.fromJS(_data[\"immagine\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UploadImageResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UploadImageResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagine\"] = this.immagine ? this.immagine.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUploadImageResponse extends IOkApiResponse {\r\n immagine?: ImageResponse;\r\n}\r\n\r\nexport class InsuranceGetResponse extends OkApiResponse implements IInsuranceGetResponse {\r\n insurance?: Assicurazione | null;\r\n\r\n constructor(data?: IInsuranceGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.insurance = _data[\"insurance\"] ? Assicurazione.fromJS(_data[\"insurance\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InsuranceGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsuranceGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"insurance\"] = this.insurance ? this.insurance.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsuranceGetResponse extends IOkApiResponse {\r\n insurance?: Assicurazione | null;\r\n}\r\n\r\nexport class Assicurazione implements IAssicurazione {\r\n id?: number;\r\n codice!: string;\r\n codiceTemplateEmail?: string | null;\r\n nome!: string;\r\n query?: string | null;\r\n abilitata?: boolean;\r\n orarioInvio!: string;\r\n modalitaCalendario?: EModalitaCalendarioAssicurazione;\r\n tipoOperazioneDB?: ETipoOperazioneDbAssicurazione | null;\r\n oraInvio?: number;\r\n minutoInvio?: number;\r\n servizioID?: number | null;\r\n\r\n constructor(data?: IAssicurazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.codiceTemplateEmail = _data[\"codiceTemplateEmail\"] !== undefined ? _data[\"codiceTemplateEmail\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.query = _data[\"query\"] !== undefined ? _data[\"query\"] : null;\r\n this.abilitata = _data[\"abilitata\"] !== undefined ? _data[\"abilitata\"] : null;\r\n this.orarioInvio = _data[\"orarioInvio\"] !== undefined ? _data[\"orarioInvio\"] : null;\r\n this.modalitaCalendario = _data[\"modalitaCalendario\"] !== undefined ? _data[\"modalitaCalendario\"] : null;\r\n this.tipoOperazioneDB = _data[\"tipoOperazioneDB\"] !== undefined ? _data[\"tipoOperazioneDB\"] : null;\r\n this.oraInvio = _data[\"oraInvio\"] !== undefined ? _data[\"oraInvio\"] : null;\r\n this.minutoInvio = _data[\"minutoInvio\"] !== undefined ? _data[\"minutoInvio\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Assicurazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Assicurazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"codiceTemplateEmail\"] = this.codiceTemplateEmail !== undefined ? this.codiceTemplateEmail : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"query\"] = this.query !== undefined ? this.query : null;\r\n data[\"abilitata\"] = this.abilitata !== undefined ? this.abilitata : null;\r\n data[\"orarioInvio\"] = this.orarioInvio !== undefined ? this.orarioInvio : null;\r\n data[\"modalitaCalendario\"] = this.modalitaCalendario !== undefined ? this.modalitaCalendario : null;\r\n data[\"tipoOperazioneDB\"] = this.tipoOperazioneDB !== undefined ? this.tipoOperazioneDB : null;\r\n data[\"oraInvio\"] = this.oraInvio !== undefined ? this.oraInvio : null;\r\n data[\"minutoInvio\"] = this.minutoInvio !== undefined ? this.minutoInvio : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAssicurazione {\r\n id?: number;\r\n codice: string;\r\n codiceTemplateEmail?: string | null;\r\n nome: string;\r\n query?: string | null;\r\n abilitata?: boolean;\r\n orarioInvio: string;\r\n modalitaCalendario?: EModalitaCalendarioAssicurazione;\r\n tipoOperazioneDB?: ETipoOperazioneDbAssicurazione | null;\r\n oraInvio?: number;\r\n minutoInvio?: number;\r\n servizioID?: number | null;\r\n}\r\n\r\nexport enum EModalitaCalendarioAssicurazione {\r\n Quotidiano = \"Quotidiano\",\r\n Feriali = \"Feriali\",\r\n Mensile = \"Mensile\",\r\n Filodiretto = \"Filodiretto\",\r\n}\r\n\r\nexport enum ETipoOperazioneDbAssicurazione {\r\n Nessuna = \"Nessuna\",\r\n RischioZeroInsert = \"RischioZeroInsert\",\r\n FiloDirettoInsert = \"FiloDirettoInsert\",\r\n FiloDirettoUpdate = \"FiloDirettoUpdate\",\r\n}\r\n\r\nexport class InsuranceGetRequest extends LocalizedRequest implements IInsuranceGetRequest {\r\n insuranceID?: number;\r\n\r\n constructor(data?: IInsuranceGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.insuranceID = _data[\"insuranceID\"] !== undefined ? _data[\"insuranceID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InsuranceGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsuranceGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"insuranceID\"] = this.insuranceID !== undefined ? this.insuranceID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsuranceGetRequest extends ILocalizedRequest {\r\n insuranceID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfInsuranceRow extends OkApiResponse implements INrTableResponseOfInsuranceRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: InsuranceRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfInsuranceRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(InsuranceRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfInsuranceRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfInsuranceRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfInsuranceRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: InsuranceRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class InsuranceListResponse extends NrTableResponseOfInsuranceRow implements IInsuranceListResponse {\r\n\r\n constructor(data?: IInsuranceListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): InsuranceListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsuranceListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsuranceListResponse extends INrTableResponseOfInsuranceRow {\r\n}\r\n\r\nexport class InsuranceRow implements IInsuranceRow {\r\n id?: number;\r\n insurance?: Assicurazione | null;\r\n lastSend?: AssicurazioneInvio | null;\r\n\r\n constructor(data?: IInsuranceRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.insurance = _data[\"insurance\"] ? Assicurazione.fromJS(_data[\"insurance\"]) : null;\r\n this.lastSend = _data[\"lastSend\"] ? AssicurazioneInvio.fromJS(_data[\"lastSend\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InsuranceRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsuranceRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"insurance\"] = this.insurance ? this.insurance.toJSON() : null;\r\n data[\"lastSend\"] = this.lastSend ? this.lastSend.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsuranceRow {\r\n id?: number;\r\n insurance?: Assicurazione | null;\r\n lastSend?: AssicurazioneInvio | null;\r\n}\r\n\r\nexport class AssicurazioneInvio implements IAssicurazioneInvio {\r\n id?: number;\r\n assicurazioneID?: number;\r\n data?: string;\r\n rowCount?: number;\r\n esito?: EEsitoInvioAssicurazione;\r\n jsonData?: string | null;\r\n messaggio?: string | null;\r\n\r\n constructor(data?: IAssicurazioneInvio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.assicurazioneID = _data[\"assicurazioneID\"] !== undefined ? _data[\"assicurazioneID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.rowCount = _data[\"rowCount\"] !== undefined ? _data[\"rowCount\"] : null;\r\n this.esito = _data[\"esito\"] !== undefined ? _data[\"esito\"] : null;\r\n this.jsonData = _data[\"jsonData\"] !== undefined ? _data[\"jsonData\"] : null;\r\n this.messaggio = _data[\"messaggio\"] !== undefined ? _data[\"messaggio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AssicurazioneInvio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AssicurazioneInvio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"assicurazioneID\"] = this.assicurazioneID !== undefined ? this.assicurazioneID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"rowCount\"] = this.rowCount !== undefined ? this.rowCount : null;\r\n data[\"esito\"] = this.esito !== undefined ? this.esito : null;\r\n data[\"jsonData\"] = this.jsonData !== undefined ? this.jsonData : null;\r\n data[\"messaggio\"] = this.messaggio !== undefined ? this.messaggio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAssicurazioneInvio {\r\n id?: number;\r\n assicurazioneID?: number;\r\n data?: string;\r\n rowCount?: number;\r\n esito?: EEsitoInvioAssicurazione;\r\n jsonData?: string | null;\r\n messaggio?: string | null;\r\n}\r\n\r\nexport enum EEsitoInvioAssicurazione {\r\n Ok = \"Ok\",\r\n Errore = \"Errore\",\r\n}\r\n\r\nexport class InsuranceListRequest extends NrTableRequest implements IInsuranceListRequest {\r\n\r\n constructor(data?: IInsuranceListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): InsuranceListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsuranceListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsuranceListRequest extends INrTableRequest {\r\n}\r\n\r\nexport class NrTableResponseOfAssicurazioneInvio extends OkApiResponse implements INrTableResponseOfAssicurazioneInvio {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AssicurazioneInvio[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAssicurazioneInvio) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AssicurazioneInvio.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAssicurazioneInvio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAssicurazioneInvio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAssicurazioneInvio extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AssicurazioneInvio[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class InsuranceSendsListResponse extends NrTableResponseOfAssicurazioneInvio implements IInsuranceSendsListResponse {\r\n\r\n constructor(data?: IInsuranceSendsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): InsuranceSendsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsuranceSendsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsuranceSendsListResponse extends INrTableResponseOfAssicurazioneInvio {\r\n}\r\n\r\nexport class InsuranceSendsListRequest extends NrTableRequest implements IInsuranceSendsListRequest {\r\n insuranceID?: number;\r\n\r\n constructor(data?: IInsuranceSendsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.insuranceID = _data[\"insuranceID\"] !== undefined ? _data[\"insuranceID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InsuranceSendsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsuranceSendsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"insuranceID\"] = this.insuranceID !== undefined ? this.insuranceID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsuranceSendsListRequest extends INrTableRequest {\r\n insuranceID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfLinkRow extends OkApiResponse implements INrTableResponseOfLinkRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: LinkRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfLinkRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(LinkRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfLinkRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfLinkRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfLinkRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: LinkRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class LinkRow implements ILinkRow {\r\n id?: number;\r\n nome?: string | null;\r\n ordine?: number;\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n tipo?: ETipoLink;\r\n posizione?: EPosizioneLink;\r\n\r\n constructor(data?: ILinkRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.posizione = _data[\"posizione\"] !== undefined ? _data[\"posizione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LinkRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LinkRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"posizione\"] = this.posizione !== undefined ? this.posizione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILinkRow {\r\n id?: number;\r\n nome?: string | null;\r\n ordine?: number;\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n tipo?: ETipoLink;\r\n posizione?: EPosizioneLink;\r\n}\r\n\r\nexport class GetLinksListRequest extends NrTableRequest implements IGetLinksListRequest {\r\n nome?: string | null;\r\n tipoLink?: ETipoLink | null;\r\n tipoLuogo?: ETipoLuogo | null;\r\n luogoID?: number | null;\r\n\r\n constructor(data?: IGetLinksListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipoLink = _data[\"tipoLink\"] !== undefined ? _data[\"tipoLink\"] : null;\r\n this.tipoLuogo = _data[\"tipoLuogo\"] !== undefined ? _data[\"tipoLuogo\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLinksListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLinksListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipoLink\"] = this.tipoLink !== undefined ? this.tipoLink : null;\r\n data[\"tipoLuogo\"] = this.tipoLuogo !== undefined ? this.tipoLuogo : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLinksListRequest extends INrTableRequest {\r\n nome?: string | null;\r\n tipoLink?: ETipoLink | null;\r\n tipoLuogo?: ETipoLuogo | null;\r\n luogoID?: number | null;\r\n}\r\n\r\nexport enum ETipoLuogo {\r\n Aeroporto = \"Aeroporto\",\r\n SubzonaAerea = \"SubzonaAerea\",\r\n Paese = \"Paese\",\r\n Regione = \"Regione\",\r\n Citta = \"Citta\",\r\n Area = \"Area\",\r\n GruppiDiCitta = \"GruppiDiCitta\",\r\n PuntoNoleggio = \"PuntoNoleggio\",\r\n PaginaWeb = \"PaginaWeb\",\r\n PaginaTci = \"PaginaTci\",\r\n Destinazione = \"Destinazione\",\r\n IdeeDiViaggio = \"IdeeDiViaggio\",\r\n}\r\n\r\nexport class CheckServiziResponse extends OkApiResponse implements ICheckServiziResponse {\r\n rows?: CheckServiziRow[] | null;\r\n\r\n constructor(data?: ICheckServiziResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(CheckServiziRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckServiziResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckServiziResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckServiziResponse extends IOkApiResponse {\r\n rows?: CheckServiziRow[] | null;\r\n}\r\n\r\nexport class CheckServiziRow implements ICheckServiziRow {\r\n luogo?: string | null;\r\n tipo?: string | null;\r\n servizio?: string | null;\r\n idServizio?: number | null;\r\n web?: number | null;\r\n preferito?: boolean | null;\r\n contatto?: string | null;\r\n idContatto?: number | null;\r\n articleDate?: string | null;\r\n totDati?: number | null;\r\n images?: number | null;\r\n part?: string | null;\r\n lastPrice?: string | null;\r\n h2HSuppliers?: number | null;\r\n allot?: string | null;\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n\r\n constructor(data?: ICheckServiziRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.idServizio = _data[\"idServizio\"] !== undefined ? _data[\"idServizio\"] : null;\r\n this.web = _data[\"web\"] !== undefined ? _data[\"web\"] : null;\r\n this.preferito = _data[\"preferito\"] !== undefined ? _data[\"preferito\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.idContatto = _data[\"idContatto\"] !== undefined ? _data[\"idContatto\"] : null;\r\n this.articleDate = _data[\"articleDate\"] !== undefined ? _data[\"articleDate\"] : null;\r\n this.totDati = _data[\"totDati\"] !== undefined ? _data[\"totDati\"] : null;\r\n this.images = _data[\"images\"] !== undefined ? _data[\"images\"] : null;\r\n this.part = _data[\"part\"] !== undefined ? _data[\"part\"] : null;\r\n this.lastPrice = _data[\"lastPrice\"] !== undefined ? _data[\"lastPrice\"] : null;\r\n this.h2HSuppliers = _data[\"h2HSuppliers\"] !== undefined ? _data[\"h2HSuppliers\"] : null;\r\n this.allot = _data[\"allot\"] !== undefined ? _data[\"allot\"] : null;\r\n this.latitude = _data[\"latitude\"] !== undefined ? _data[\"latitude\"] : null;\r\n this.longitude = _data[\"longitude\"] !== undefined ? _data[\"longitude\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckServiziRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckServiziRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"idServizio\"] = this.idServizio !== undefined ? this.idServizio : null;\r\n data[\"web\"] = this.web !== undefined ? this.web : null;\r\n data[\"preferito\"] = this.preferito !== undefined ? this.preferito : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"idContatto\"] = this.idContatto !== undefined ? this.idContatto : null;\r\n data[\"articleDate\"] = this.articleDate !== undefined ? this.articleDate : null;\r\n data[\"totDati\"] = this.totDati !== undefined ? this.totDati : null;\r\n data[\"images\"] = this.images !== undefined ? this.images : null;\r\n data[\"part\"] = this.part !== undefined ? this.part : null;\r\n data[\"lastPrice\"] = this.lastPrice !== undefined ? this.lastPrice : null;\r\n data[\"h2HSuppliers\"] = this.h2HSuppliers !== undefined ? this.h2HSuppliers : null;\r\n data[\"allot\"] = this.allot !== undefined ? this.allot : null;\r\n data[\"latitude\"] = this.latitude !== undefined ? this.latitude : null;\r\n data[\"longitude\"] = this.longitude !== undefined ? this.longitude : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckServiziRow {\r\n luogo?: string | null;\r\n tipo?: string | null;\r\n servizio?: string | null;\r\n idServizio?: number | null;\r\n web?: number | null;\r\n preferito?: boolean | null;\r\n contatto?: string | null;\r\n idContatto?: number | null;\r\n articleDate?: string | null;\r\n totDati?: number | null;\r\n images?: number | null;\r\n part?: string | null;\r\n lastPrice?: string | null;\r\n h2HSuppliers?: number | null;\r\n allot?: string | null;\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n}\r\n\r\nexport class CheckServiziRequest extends LocalizedRequest implements ICheckServiziRequest {\r\n luogoId?: number;\r\n export?: boolean;\r\n\r\n constructor(data?: ICheckServiziRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckServiziRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckServiziRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckServiziRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n export?: boolean;\r\n}\r\n\r\nexport class LocationDetail extends OkApiResponse implements ILocationDetail {\r\n luogo?: Luogo | null;\r\n mappa?: Mappa | null;\r\n\r\n constructor(data?: ILocationDetail) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] ? Luogo.fromJS(_data[\"luogo\"]) : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LocationDetail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LocationDetail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILocationDetail extends IOkApiResponse {\r\n luogo?: Luogo | null;\r\n mappa?: Mappa | null;\r\n}\r\n\r\nexport class Luogo implements ILuogo {\r\n luogoID?: number;\r\n nome!: string;\r\n pubblicazione1?: EStatoPubblicazioneLuogo | null;\r\n pubblicazione2?: EStatoPubblicazioneLuogo | null;\r\n pubblicazione3?: EStatoPubblicazioneLuogo | null;\r\n ordine?: number | null;\r\n tipo?: ETipoLuogo;\r\n cee?: boolean | null;\r\n iata?: string | null;\r\n tipoRicerca?: ETipoRicercaLuogo | null;\r\n autoFillFlags?: EAutofillFlags;\r\n provincia?: string | null;\r\n capoluogoProvincia?: boolean;\r\n giataCodeType?: ETipoLuogoGiata | null;\r\n giataCode?: string | null;\r\n modoNonMappati?: EModalitaNonMappati;\r\n popolarita?: number | null;\r\n nome_en?: string | null;\r\n traduzioni?: LocationTranslation[] | null;\r\n pubblicazioni?: LocationPublish[] | null;\r\n nascondiNrf?: boolean;\r\n eliminato?: string | null;\r\n cacheBypass?: boolean;\r\n codice?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n astoiID?: number | null;\r\n\r\n constructor(data?: ILuogo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.pubblicazione1 = _data[\"pubblicazione1\"] !== undefined ? _data[\"pubblicazione1\"] : null;\r\n this.pubblicazione2 = _data[\"pubblicazione2\"] !== undefined ? _data[\"pubblicazione2\"] : null;\r\n this.pubblicazione3 = _data[\"pubblicazione3\"] !== undefined ? _data[\"pubblicazione3\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.cee = _data[\"cee\"] !== undefined ? _data[\"cee\"] : null;\r\n this.iata = _data[\"iata\"] !== undefined ? _data[\"iata\"] : null;\r\n this.tipoRicerca = _data[\"tipoRicerca\"] !== undefined ? _data[\"tipoRicerca\"] : null;\r\n this.autoFillFlags = _data[\"autoFillFlags\"] !== undefined ? _data[\"autoFillFlags\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.capoluogoProvincia = _data[\"capoluogoProvincia\"] !== undefined ? _data[\"capoluogoProvincia\"] : null;\r\n this.giataCodeType = _data[\"giataCodeType\"] !== undefined ? _data[\"giataCodeType\"] : null;\r\n this.giataCode = _data[\"giataCode\"] !== undefined ? _data[\"giataCode\"] : null;\r\n this.modoNonMappati = _data[\"modoNonMappati\"] !== undefined ? _data[\"modoNonMappati\"] : null;\r\n this.popolarita = _data[\"popolarita\"] !== undefined ? _data[\"popolarita\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(LocationTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n if (Array.isArray(_data[\"pubblicazioni\"])) {\r\n this.pubblicazioni = [] as any;\r\n for (let item of _data[\"pubblicazioni\"])\r\n this.pubblicazioni!.push(LocationPublish.fromJS(item));\r\n }\r\n else {\r\n this.pubblicazioni = null;\r\n }\r\n this.nascondiNrf = _data[\"nascondiNrf\"] !== undefined ? _data[\"nascondiNrf\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.cacheBypass = _data[\"cacheBypass\"] !== undefined ? _data[\"cacheBypass\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n this.astoiID = _data[\"astoiID\"] !== undefined ? _data[\"astoiID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Luogo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Luogo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"pubblicazione1\"] = this.pubblicazione1 !== undefined ? this.pubblicazione1 : null;\r\n data[\"pubblicazione2\"] = this.pubblicazione2 !== undefined ? this.pubblicazione2 : null;\r\n data[\"pubblicazione3\"] = this.pubblicazione3 !== undefined ? this.pubblicazione3 : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"cee\"] = this.cee !== undefined ? this.cee : null;\r\n data[\"iata\"] = this.iata !== undefined ? this.iata : null;\r\n data[\"tipoRicerca\"] = this.tipoRicerca !== undefined ? this.tipoRicerca : null;\r\n data[\"autoFillFlags\"] = this.autoFillFlags !== undefined ? this.autoFillFlags : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"capoluogoProvincia\"] = this.capoluogoProvincia !== undefined ? this.capoluogoProvincia : null;\r\n data[\"giataCodeType\"] = this.giataCodeType !== undefined ? this.giataCodeType : null;\r\n data[\"giataCode\"] = this.giataCode !== undefined ? this.giataCode : null;\r\n data[\"modoNonMappati\"] = this.modoNonMappati !== undefined ? this.modoNonMappati : null;\r\n data[\"popolarita\"] = this.popolarita !== undefined ? this.popolarita : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.pubblicazioni)) {\r\n data[\"pubblicazioni\"] = [];\r\n for (let item of this.pubblicazioni)\r\n data[\"pubblicazioni\"].push(item.toJSON());\r\n }\r\n data[\"nascondiNrf\"] = this.nascondiNrf !== undefined ? this.nascondiNrf : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"cacheBypass\"] = this.cacheBypass !== undefined ? this.cacheBypass : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n data[\"astoiID\"] = this.astoiID !== undefined ? this.astoiID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogo {\r\n luogoID?: number;\r\n nome: string;\r\n pubblicazione1?: EStatoPubblicazioneLuogo | null;\r\n pubblicazione2?: EStatoPubblicazioneLuogo | null;\r\n pubblicazione3?: EStatoPubblicazioneLuogo | null;\r\n ordine?: number | null;\r\n tipo?: ETipoLuogo;\r\n cee?: boolean | null;\r\n iata?: string | null;\r\n tipoRicerca?: ETipoRicercaLuogo | null;\r\n autoFillFlags?: EAutofillFlags;\r\n provincia?: string | null;\r\n capoluogoProvincia?: boolean;\r\n giataCodeType?: ETipoLuogoGiata | null;\r\n giataCode?: string | null;\r\n modoNonMappati?: EModalitaNonMappati;\r\n popolarita?: number | null;\r\n nome_en?: string | null;\r\n traduzioni?: LocationTranslation[] | null;\r\n pubblicazioni?: LocationPublish[] | null;\r\n nascondiNrf?: boolean;\r\n eliminato?: string | null;\r\n cacheBypass?: boolean;\r\n codice?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n astoiID?: number | null;\r\n}\r\n\r\nexport enum EStatoPubblicazioneLuogo {\r\n NonPubblicato = \"NonPubblicato\",\r\n Principale = \"Principale\",\r\n Secondario = \"Secondario\",\r\n}\r\n\r\nexport enum ETipoRicercaLuogo {\r\n NoRicerca = \"NoRicerca\",\r\n Tutto = \"Tutto\",\r\n TuttoSalvoHotel = \"TuttoSalvoHotel\",\r\n SoloTour = \"SoloTour\",\r\n}\r\n\r\nexport enum ETipoLuogoGiata {\r\n Paese = \"Paese\",\r\n Destinazione = \"Destinazione\",\r\n Citta = \"Citta\",\r\n}\r\n\r\nexport enum EModalitaNonMappati {\r\n NonAttivi = \"NonAttivi\",\r\n SuRichiesta = \"SuRichiesta\",\r\n Sempre = \"Sempre\",\r\n}\r\n\r\nexport class LocationTranslation extends WebTranslation implements ILocationTranslation {\r\n\r\n constructor(data?: ILocationTranslation) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): LocationTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LocationTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILocationTranslation extends IWebTranslation {\r\n}\r\n\r\nexport class LocationPublish extends WebsitePublish implements ILocationPublish {\r\n statoPubblicazione?: EStatoPubblicazioneLuogo;\r\n\r\n constructor(data?: ILocationPublish) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statoPubblicazione = _data[\"statoPubblicazione\"] !== undefined ? _data[\"statoPubblicazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LocationPublish {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LocationPublish();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statoPubblicazione\"] = this.statoPubblicazione !== undefined ? this.statoPubblicazione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILocationPublish extends IWebsitePublish {\r\n statoPubblicazione?: EStatoPubblicazioneLuogo;\r\n}\r\n\r\nexport class CreateLocationRequest extends LocalizedRequest implements ICreateLocationRequest {\r\n luogo?: Luogo | null;\r\n\r\n constructor(data?: ICreateLocationRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] ? Luogo.fromJS(_data[\"luogo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateLocationRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateLocationRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateLocationRequest extends ILocalizedRequest {\r\n luogo?: Luogo | null;\r\n}\r\n\r\nexport class DeleteLocationRequest extends LocalizedRequest implements IDeleteLocationRequest {\r\n luogoId?: number;\r\n\r\n constructor(data?: IDeleteLocationRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteLocationRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteLocationRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteLocationRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n}\r\n\r\nexport class DeleteMappaRequest extends LocalizedRequest implements IDeleteMappaRequest {\r\n luogoId?: number;\r\n\r\n constructor(data?: IDeleteMappaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteMappaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteMappaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteMappaRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n}\r\n\r\nexport class GetLocationRequest extends LocalizedRequest implements IGetLocationRequest {\r\n luogoId?: number;\r\n\r\n constructor(data?: IGetLocationRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLocationRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLocationRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLocationRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n}\r\n\r\nexport class LuogoRelazioneResponse extends OkApiResponse implements ILuogoRelazioneResponse {\r\n rows?: LuogoRelazioneRow[] | null;\r\n\r\n constructor(data?: ILuogoRelazioneResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(LuogoRelazioneRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoRelazioneResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoRelazioneResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoRelazioneResponse extends IOkApiResponse {\r\n rows?: LuogoRelazioneRow[] | null;\r\n}\r\n\r\nexport class LuogoRelazioneRow implements ILuogoRelazioneRow {\r\n luogoID?: number;\r\n luogoPadreId?: number;\r\n relazioneId?: number;\r\n\r\n constructor(data?: ILuogoRelazioneRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoPadreId = _data[\"luogoPadreId\"] !== undefined ? _data[\"luogoPadreId\"] : null;\r\n this.relazioneId = _data[\"relazioneId\"] !== undefined ? _data[\"relazioneId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoRelazioneRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoRelazioneRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoPadreId\"] = this.luogoPadreId !== undefined ? this.luogoPadreId : null;\r\n data[\"relazioneId\"] = this.relazioneId !== undefined ? this.relazioneId : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoRelazioneRow {\r\n luogoID?: number;\r\n luogoPadreId?: number;\r\n relazioneId?: number;\r\n}\r\n\r\nexport class GetLuogoDistanzeRequest extends LocalizedRequest implements IGetLuogoDistanzeRequest {\r\n luogoId?: number;\r\n\r\n constructor(data?: IGetLuogoDistanzeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLuogoDistanzeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLuogoDistanzeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLuogoDistanzeRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n}\r\n\r\nexport class GetLuoghiRelazioniRequest extends LocalizedRequest implements IGetLuoghiRelazioniRequest {\r\n luogoId?: number;\r\n\r\n constructor(data?: IGetLuoghiRelazioniRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLuoghiRelazioniRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLuoghiRelazioniRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLuoghiRelazioniRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n}\r\n\r\nexport class LuoghiViciniResponse extends OkApiResponse implements ILuoghiViciniResponse {\r\n luoghiViciniIDs?: number[] | null;\r\n\r\n constructor(data?: ILuoghiViciniResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"luoghiViciniIDs\"])) {\r\n this.luoghiViciniIDs = [] as any;\r\n for (let item of _data[\"luoghiViciniIDs\"])\r\n this.luoghiViciniIDs!.push(item);\r\n }\r\n else {\r\n this.luoghiViciniIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuoghiViciniResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuoghiViciniResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.luoghiViciniIDs)) {\r\n data[\"luoghiViciniIDs\"] = [];\r\n for (let item of this.luoghiViciniIDs)\r\n data[\"luoghiViciniIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuoghiViciniResponse extends IOkApiResponse {\r\n luoghiViciniIDs?: number[] | null;\r\n}\r\n\r\nexport class GetLuoghiViciniRequest extends LocalizedRequest implements IGetLuoghiViciniRequest {\r\n luogoId?: number;\r\n\r\n constructor(data?: IGetLuoghiViciniRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLuoghiViciniRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLuoghiViciniRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLuoghiViciniRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n}\r\n\r\nexport class NrTableResponseOfLocationListRow extends OkApiResponse implements INrTableResponseOfLocationListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: LocationListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfLocationListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(LocationListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfLocationListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfLocationListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfLocationListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: LocationListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\n/** Classe che rappresenta la risposta ad una richiesta di elenco contatti */\r\nexport class LocationsListResponse extends NrTableResponseOfLocationListRow implements ILocationsListResponse {\r\n\r\n constructor(data?: ILocationsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): LocationsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LocationsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta la risposta ad una richiesta di elenco contatti */\r\nexport interface ILocationsListResponse extends INrTableResponseOfLocationListRow {\r\n}\r\n\r\nexport class LocationListRow implements ILocationListRow {\r\n id?: number;\r\n codice?: string | null;\r\n nome?: string | null;\r\n tipo?: ETipoLuogo;\r\n regione?: string | null;\r\n paese?: string | null;\r\n pubblicazioneSito1?: EStatoPubblicazioneLuogo;\r\n pubblicazioneSito2?: EStatoPubblicazioneLuogo;\r\n pubblicazioneSito3?: EStatoPubblicazioneLuogo;\r\n\r\n constructor(data?: ILocationListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.pubblicazioneSito1 = _data[\"pubblicazioneSito1\"] !== undefined ? _data[\"pubblicazioneSito1\"] : null;\r\n this.pubblicazioneSito2 = _data[\"pubblicazioneSito2\"] !== undefined ? _data[\"pubblicazioneSito2\"] : null;\r\n this.pubblicazioneSito3 = _data[\"pubblicazioneSito3\"] !== undefined ? _data[\"pubblicazioneSito3\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LocationListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LocationListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"pubblicazioneSito1\"] = this.pubblicazioneSito1 !== undefined ? this.pubblicazioneSito1 : null;\r\n data[\"pubblicazioneSito2\"] = this.pubblicazioneSito2 !== undefined ? this.pubblicazioneSito2 : null;\r\n data[\"pubblicazioneSito3\"] = this.pubblicazioneSito3 !== undefined ? this.pubblicazioneSito3 : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILocationListRow {\r\n id?: number;\r\n codice?: string | null;\r\n nome?: string | null;\r\n tipo?: ETipoLuogo;\r\n regione?: string | null;\r\n paese?: string | null;\r\n pubblicazioneSito1?: EStatoPubblicazioneLuogo;\r\n pubblicazioneSito2?: EStatoPubblicazioneLuogo;\r\n pubblicazioneSito3?: EStatoPubblicazioneLuogo;\r\n}\r\n\r\nexport class ListLocationsRequest extends NrTableRequest implements IListLocationsRequest {\r\n term?: string | null;\r\n tipo?: ETipoLuogo | null;\r\n codice?: string | null;\r\n luogoPaeseID?: number | null;\r\n luogoRegioneID?: number | null;\r\n statoPubblicatione?: EStatoPubblicazioneLuogo | null;\r\n sitoPubblicazione?: number | null;\r\n\r\n constructor(data?: IListLocationsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.luogoPaeseID = _data[\"luogoPaeseID\"] !== undefined ? _data[\"luogoPaeseID\"] : null;\r\n this.luogoRegioneID = _data[\"luogoRegioneID\"] !== undefined ? _data[\"luogoRegioneID\"] : null;\r\n this.statoPubblicatione = _data[\"statoPubblicatione\"] !== undefined ? _data[\"statoPubblicatione\"] : null;\r\n this.sitoPubblicazione = _data[\"sitoPubblicazione\"] !== undefined ? _data[\"sitoPubblicazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListLocationsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListLocationsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"luogoPaeseID\"] = this.luogoPaeseID !== undefined ? this.luogoPaeseID : null;\r\n data[\"luogoRegioneID\"] = this.luogoRegioneID !== undefined ? this.luogoRegioneID : null;\r\n data[\"statoPubblicatione\"] = this.statoPubblicatione !== undefined ? this.statoPubblicatione : null;\r\n data[\"sitoPubblicazione\"] = this.sitoPubblicazione !== undefined ? this.sitoPubblicazione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListLocationsRequest extends INrTableRequest {\r\n term?: string | null;\r\n tipo?: ETipoLuogo | null;\r\n codice?: string | null;\r\n luogoPaeseID?: number | null;\r\n luogoRegioneID?: number | null;\r\n statoPubblicatione?: EStatoPubblicazioneLuogo | null;\r\n sitoPubblicazione?: number | null;\r\n}\r\n\r\nexport class SetDistanzeRequest extends LocalizedRequest implements ISetDistanzeRequest {\r\n luogoId?: number;\r\n luoghiDistanze?: LuogoDistanza[] | null;\r\n\r\n constructor(data?: ISetDistanzeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n if (Array.isArray(_data[\"luoghiDistanze\"])) {\r\n this.luoghiDistanze = [] as any;\r\n for (let item of _data[\"luoghiDistanze\"])\r\n this.luoghiDistanze!.push(LuogoDistanza.fromJS(item));\r\n }\r\n else {\r\n this.luoghiDistanze = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetDistanzeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetDistanzeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n if (Array.isArray(this.luoghiDistanze)) {\r\n data[\"luoghiDistanze\"] = [];\r\n for (let item of this.luoghiDistanze)\r\n data[\"luoghiDistanze\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetDistanzeRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n luoghiDistanze?: LuogoDistanza[] | null;\r\n}\r\n\r\nexport class LuogoDistanza implements ILuogoDistanza {\r\n luogoDistanzaID?: number;\r\n luogoID?: number;\r\n luogoID2?: number;\r\n distanzaAuto?: number | null;\r\n durataAuto?: number | null;\r\n\r\n constructor(data?: ILuogoDistanza) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogoDistanzaID = _data[\"luogoDistanzaID\"] !== undefined ? _data[\"luogoDistanzaID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoID2 = _data[\"luogoID2\"] !== undefined ? _data[\"luogoID2\"] : null;\r\n this.distanzaAuto = _data[\"distanzaAuto\"] !== undefined ? _data[\"distanzaAuto\"] : null;\r\n this.durataAuto = _data[\"durataAuto\"] !== undefined ? _data[\"durataAuto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoDistanza {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoDistanza();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoDistanzaID\"] = this.luogoDistanzaID !== undefined ? this.luogoDistanzaID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoID2\"] = this.luogoID2 !== undefined ? this.luogoID2 : null;\r\n data[\"distanzaAuto\"] = this.distanzaAuto !== undefined ? this.distanzaAuto : null;\r\n data[\"durataAuto\"] = this.durataAuto !== undefined ? this.durataAuto : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoDistanza {\r\n luogoDistanzaID?: number;\r\n luogoID?: number;\r\n luogoID2?: number;\r\n distanzaAuto?: number | null;\r\n durataAuto?: number | null;\r\n}\r\n\r\nexport class SetMappaResponse extends OkApiResponse implements ISetMappaResponse {\r\n mappa?: Mappa | null;\r\n\r\n constructor(data?: ISetMappaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappaResponse extends IOkApiResponse {\r\n mappa?: Mappa | null;\r\n}\r\n\r\nexport class SetMappaRequest extends LocalizedRequest implements ISetMappaRequest {\r\n luogoId?: number;\r\n mappa?: Mappa | null;\r\n\r\n constructor(data?: ISetMappaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappaRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n mappa?: Mappa | null;\r\n}\r\n\r\nexport class SetRelazioniRequest extends LocalizedRequest implements ISetRelazioniRequest {\r\n luogoId?: number;\r\n luoghiRelazioni?: LuogoRelazione[] | null;\r\n\r\n constructor(data?: ISetRelazioniRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n if (Array.isArray(_data[\"luoghiRelazioni\"])) {\r\n this.luoghiRelazioni = [] as any;\r\n for (let item of _data[\"luoghiRelazioni\"])\r\n this.luoghiRelazioni!.push(LuogoRelazione.fromJS(item));\r\n }\r\n else {\r\n this.luoghiRelazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetRelazioniRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetRelazioniRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n if (Array.isArray(this.luoghiRelazioni)) {\r\n data[\"luoghiRelazioni\"] = [];\r\n for (let item of this.luoghiRelazioni)\r\n data[\"luoghiRelazioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetRelazioniRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n luoghiRelazioni?: LuogoRelazione[] | null;\r\n}\r\n\r\nexport class LuogoRelazione implements ILuogoRelazione {\r\n relazioneID?: number;\r\n luogoID?: number;\r\n luogoPadreID?: number;\r\n\r\n constructor(data?: ILuogoRelazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.relazioneID = _data[\"relazioneID\"] !== undefined ? _data[\"relazioneID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoPadreID = _data[\"luogoPadreID\"] !== undefined ? _data[\"luogoPadreID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoRelazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoRelazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"relazioneID\"] = this.relazioneID !== undefined ? this.relazioneID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoPadreID\"] = this.luogoPadreID !== undefined ? this.luogoPadreID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoRelazione {\r\n relazioneID?: number;\r\n luogoID?: number;\r\n luogoPadreID?: number;\r\n}\r\n\r\nexport class SetViciniRequest extends LocalizedRequest implements ISetViciniRequest {\r\n luogoId?: number;\r\n luoghiViciniIds?: number[] | null;\r\n\r\n constructor(data?: ISetViciniRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoId = _data[\"luogoId\"] !== undefined ? _data[\"luogoId\"] : null;\r\n if (Array.isArray(_data[\"luoghiViciniIds\"])) {\r\n this.luoghiViciniIds = [] as any;\r\n for (let item of _data[\"luoghiViciniIds\"])\r\n this.luoghiViciniIds!.push(item);\r\n }\r\n else {\r\n this.luoghiViciniIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetViciniRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetViciniRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoId\"] = this.luogoId !== undefined ? this.luogoId : null;\r\n if (Array.isArray(this.luoghiViciniIds)) {\r\n data[\"luoghiViciniIds\"] = [];\r\n for (let item of this.luoghiViciniIds)\r\n data[\"luoghiViciniIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetViciniRequest extends ILocalizedRequest {\r\n luogoId?: number;\r\n luoghiViciniIds?: number[] | null;\r\n}\r\n\r\nexport class UpdateLocationRequest extends LocalizedRequest implements IUpdateLocationRequest {\r\n luogo?: Luogo | null;\r\n\r\n constructor(data?: IUpdateLocationRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] ? Luogo.fromJS(_data[\"luogo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateLocationRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateLocationRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateLocationRequest extends ILocalizedRequest {\r\n luogo?: Luogo | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class ConfirmLuogoH2HRequest extends ApiRequest implements IConfirmLuogoH2HRequest {\r\n id?: number;\r\n\r\n constructor(data?: IConfirmLuogoH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfirmLuogoH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfirmLuogoH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IConfirmLuogoH2HRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class DeleteLuogoH2HRequest extends ApiRequest implements IDeleteLuogoH2HRequest {\r\n id?: number;\r\n\r\n constructor(data?: IDeleteLuogoH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteLuogoH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteLuogoH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IDeleteLuogoH2HRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class DiscardLuogoH2HRequest extends ApiRequest implements IDiscardLuogoH2HRequest {\r\n id?: number;\r\n\r\n constructor(data?: IDiscardLuogoH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DiscardLuogoH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DiscardLuogoH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IDiscardLuogoH2HRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class LuogoH2HGetResponse extends OkApiResponse implements ILuogoH2HGetResponse {\r\n luogo?: LuogoH2HRow;\r\n\r\n constructor(data?: ILuogoH2HGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] ? LuogoH2HRow.fromJS(_data[\"luogo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoH2HGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoH2HGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoH2HGetResponse extends IOkApiResponse {\r\n luogo?: LuogoH2HRow;\r\n}\r\n\r\nexport class LuogoH2HRow implements ILuogoH2HRow {\r\n id?: number;\r\n paese?: string | null;\r\n tipo?: EHHTipoLuogo;\r\n hhLuogo?: HHLuogo | null;\r\n nome?: string | null;\r\n codice?: string | null;\r\n fornitore?: string | null;\r\n fornitoreID?: number;\r\n luogoNaar?: string | null;\r\n disabilitato?: boolean;\r\n ultimoAggiornamento?: string | null;\r\n accordo?: string | null;\r\n accordoMancante?: boolean;\r\n deleted?: string | null;\r\n\r\n constructor(data?: ILuogoH2HRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.hhLuogo = _data[\"hhLuogo\"] ? HHLuogo.fromJS(_data[\"hhLuogo\"]) : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.fornitoreID = _data[\"fornitoreID\"] !== undefined ? _data[\"fornitoreID\"] : null;\r\n this.luogoNaar = _data[\"luogoNaar\"] !== undefined ? _data[\"luogoNaar\"] : null;\r\n this.disabilitato = _data[\"disabilitato\"] !== undefined ? _data[\"disabilitato\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.accordoMancante = _data[\"accordoMancante\"] !== undefined ? _data[\"accordoMancante\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoH2HRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoH2HRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"hhLuogo\"] = this.hhLuogo ? this.hhLuogo.toJSON() : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"fornitoreID\"] = this.fornitoreID !== undefined ? this.fornitoreID : null;\r\n data[\"luogoNaar\"] = this.luogoNaar !== undefined ? this.luogoNaar : null;\r\n data[\"disabilitato\"] = this.disabilitato !== undefined ? this.disabilitato : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"accordoMancante\"] = this.accordoMancante !== undefined ? this.accordoMancante : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoH2HRow {\r\n id?: number;\r\n paese?: string | null;\r\n tipo?: EHHTipoLuogo;\r\n hhLuogo?: HHLuogo | null;\r\n nome?: string | null;\r\n codice?: string | null;\r\n fornitore?: string | null;\r\n fornitoreID?: number;\r\n luogoNaar?: string | null;\r\n disabilitato?: boolean;\r\n ultimoAggiornamento?: string | null;\r\n accordo?: string | null;\r\n accordoMancante?: boolean;\r\n deleted?: string | null;\r\n}\r\n\r\nexport class LuogoH2HGetRequest extends LocalizedRequest implements ILuogoH2HGetRequest {\r\n luogoH2HID!: number;\r\n\r\n constructor(data?: ILuogoH2HGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoH2HID = _data[\"luogoH2HID\"] !== undefined ? _data[\"luogoH2HID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoH2HGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoH2HGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoH2HID\"] = this.luogoH2HID !== undefined ? this.luogoH2HID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoH2HGetRequest extends ILocalizedRequest {\r\n luogoH2HID: number;\r\n}\r\n\r\nexport class NrTableResponseOfLuogoH2HRow extends OkApiResponse implements INrTableResponseOfLuogoH2HRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: LuogoH2HRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfLuogoH2HRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(LuogoH2HRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfLuogoH2HRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfLuogoH2HRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfLuogoH2HRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: LuogoH2HRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetLuoghiH2HResponse extends NrTableResponseOfLuogoH2HRow implements IGetLuoghiH2HResponse {\r\n\r\n constructor(data?: IGetLuoghiH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetLuoghiH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLuoghiH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLuoghiH2HResponse extends INrTableResponseOfLuogoH2HRow {\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetLuoghiH2HRequest extends NrTableRequest implements IGetLuoghiH2HRequest {\r\n supplier?: number | null;\r\n luogoNaarID?: number | null;\r\n mapped?: boolean | null;\r\n disabled?: boolean | null;\r\n confirmed?: boolean | null;\r\n nomeLuogoFornitore?: string | null;\r\n codicePaese?: string | null;\r\n missingAc?: boolean;\r\n showDeleted?: boolean;\r\n\r\n constructor(data?: IGetLuoghiH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.luogoNaarID = _data[\"luogoNaarID\"] !== undefined ? _data[\"luogoNaarID\"] : null;\r\n this.mapped = _data[\"mapped\"] !== undefined ? _data[\"mapped\"] : null;\r\n this.disabled = _data[\"disabled\"] !== undefined ? _data[\"disabled\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.nomeLuogoFornitore = _data[\"nomeLuogoFornitore\"] !== undefined ? _data[\"nomeLuogoFornitore\"] : null;\r\n this.codicePaese = _data[\"codicePaese\"] !== undefined ? _data[\"codicePaese\"] : null;\r\n this.missingAc = _data[\"missingAc\"] !== undefined ? _data[\"missingAc\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLuoghiH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLuoghiH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"luogoNaarID\"] = this.luogoNaarID !== undefined ? this.luogoNaarID : null;\r\n data[\"mapped\"] = this.mapped !== undefined ? this.mapped : null;\r\n data[\"disabled\"] = this.disabled !== undefined ? this.disabled : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"nomeLuogoFornitore\"] = this.nomeLuogoFornitore !== undefined ? this.nomeLuogoFornitore : null;\r\n data[\"codicePaese\"] = this.codicePaese !== undefined ? this.codicePaese : null;\r\n data[\"missingAc\"] = this.missingAc !== undefined ? this.missingAc : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetLuoghiH2HRequest extends INrTableRequest {\r\n supplier?: number | null;\r\n luogoNaarID?: number | null;\r\n mapped?: boolean | null;\r\n disabled?: boolean | null;\r\n confirmed?: boolean | null;\r\n nomeLuogoFornitore?: string | null;\r\n codicePaese?: string | null;\r\n missingAc?: boolean;\r\n showDeleted?: boolean;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class RestoreLuogoH2HRequest extends ApiRequest implements IRestoreLuogoH2HRequest {\r\n id?: number;\r\n\r\n constructor(data?: IRestoreLuogoH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RestoreLuogoH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreLuogoH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IRestoreLuogoH2HRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class UpdateLuogoH2HResponse extends OkApiResponse implements IUpdateLuogoH2HResponse {\r\n luogo?: HHLuogo | null;\r\n\r\n constructor(data?: IUpdateLuogoH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] ? HHLuogo.fromJS(_data[\"luogo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateLuogoH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateLuogoH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateLuogoH2HResponse extends IOkApiResponse {\r\n luogo?: HHLuogo | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class UpdateLuogoH2HRequest extends ApiRequest implements IUpdateLuogoH2HRequest {\r\n luogo?: HHLuogo | null;\r\n\r\n constructor(data?: IUpdateLuogoH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] ? HHLuogo.fromJS(_data[\"luogo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateLuogoH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateLuogoH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IUpdateLuogoH2HRequest extends IApiRequest {\r\n luogo?: HHLuogo | null;\r\n}\r\n\r\nexport class GetAgencyDataResponse extends OkApiResponse implements IGetAgencyDataResponse {\r\n /** ID del contatto agenzia */\r\n contattoID!: number;\r\n /** Nome del contatto / Ragione sociale semplice */\r\n nome!: string;\r\n /** Cognome del contatto / Ragione sociale estesa (incluso tipo società) */\r\n cognome?: string | null;\r\n /** Indirizzo del contatto. Dovrebbe essere solo la parte col nome della via */\r\n indirizzo?: string | null;\r\n /** Numero civico, qualora non incluso in Indirizzo */\r\n civico?: string | null;\r\n /** CAP dell'indirizzo del contatto */\r\n cap?: string | null;\r\n /** Città della sede del contatto */\r\n luogo?: string | null;\r\n /** Sigla della provincia della sede del contatto (solo contatti italiani) */\r\n provincia?: string | null;\r\n /** Numero di telefono. Campo libero, potrebbe contenenre più numeri e/o brevi note */\r\n telefono?: string | null;\r\n /** Numero di fax */\r\n fax?: string | null;\r\n /** Indirizzo email principale del contatto */\r\n email?: string | null;\r\n /** Nome della categoria dell'agenzia */\r\n categoria?: string | null;\r\n /** Codice della categoria dell'agenzia */\r\n codiceCategoria?: string | null;\r\n /** Descrizione della modalità di pagamento associata all'accordo corrente per l'operatore dell'offerta. Può contenere tag html */\r\n pagamentoHtml?: string | null;\r\n /** ID del contatto di tipo network agenzie (se appartenente a network) */\r\n contattoNetworkID?: number | null;\r\n /** Nome del network di agenzie (se appartenente a network) */\r\n network?: string | null;\r\n /** ID del contatto di tipo produttore/promoter se associato */\r\n contattoPromoterID?: number | null;\r\n /** Nome del produttore/promoter se associato */\r\n promoter?: string | null;\r\n /** Numero di telefono del produttore/promoter se associato. Campo libero, potrebbe contenenre più numeri e/o brevi note */\r\n telefonoPromoter?: string | null;\r\n /** Percentuale di acconto richiesta per viaggi standard */\r\n acconto?: number | null;\r\n /** Se true l'agenzia non paga anticipi sulle quote di apertura pratica */\r\n noAnticipoQuote?: boolean;\r\n /** Percentuale di acconto richiesta per viaggi di tipo nozze */\r\n accontoNozze?: number | null;\r\n /** Se true l'agenzia non paga anticipi sulla biglietteria aerea */\r\n noAnticipoBiglietti?: boolean;\r\n /** Nome dell'addetto in agenzia responsabile per questa pratica */\r\n nomeAddetto?: string | null;\r\n /** Email dell'addetto in agenzia responsabile per questa pratica */\r\n emailAddetto?: string | null;\r\n /** Nome esteso dell'utente dell'agenzia proprietario della pratica */\r\n username?: string | null;\r\n /** Elenco delle note commerciali per l'agenzia */\r\n noteAgenzia?: string[] | null;\r\n\r\n constructor(data?: IGetAgencyDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.civico = _data[\"civico\"] !== undefined ? _data[\"civico\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.codiceCategoria = _data[\"codiceCategoria\"] !== undefined ? _data[\"codiceCategoria\"] : null;\r\n this.pagamentoHtml = _data[\"pagamentoHtml\"] !== undefined ? _data[\"pagamentoHtml\"] : null;\r\n this.contattoNetworkID = _data[\"contattoNetworkID\"] !== undefined ? _data[\"contattoNetworkID\"] : null;\r\n this.network = _data[\"network\"] !== undefined ? _data[\"network\"] : null;\r\n this.contattoPromoterID = _data[\"contattoPromoterID\"] !== undefined ? _data[\"contattoPromoterID\"] : null;\r\n this.promoter = _data[\"promoter\"] !== undefined ? _data[\"promoter\"] : null;\r\n this.telefonoPromoter = _data[\"telefonoPromoter\"] !== undefined ? _data[\"telefonoPromoter\"] : null;\r\n this.acconto = _data[\"acconto\"] !== undefined ? _data[\"acconto\"] : null;\r\n this.noAnticipoQuote = _data[\"noAnticipoQuote\"] !== undefined ? _data[\"noAnticipoQuote\"] : null;\r\n this.accontoNozze = _data[\"accontoNozze\"] !== undefined ? _data[\"accontoNozze\"] : null;\r\n this.noAnticipoBiglietti = _data[\"noAnticipoBiglietti\"] !== undefined ? _data[\"noAnticipoBiglietti\"] : null;\r\n this.nomeAddetto = _data[\"nomeAddetto\"] !== undefined ? _data[\"nomeAddetto\"] : null;\r\n this.emailAddetto = _data[\"emailAddetto\"] !== undefined ? _data[\"emailAddetto\"] : null;\r\n this.username = _data[\"username\"] !== undefined ? _data[\"username\"] : null;\r\n if (Array.isArray(_data[\"noteAgenzia\"])) {\r\n this.noteAgenzia = [] as any;\r\n for (let item of _data[\"noteAgenzia\"])\r\n this.noteAgenzia!.push(item);\r\n }\r\n else {\r\n this.noteAgenzia = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAgencyDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAgencyDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"civico\"] = this.civico !== undefined ? this.civico : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"codiceCategoria\"] = this.codiceCategoria !== undefined ? this.codiceCategoria : null;\r\n data[\"pagamentoHtml\"] = this.pagamentoHtml !== undefined ? this.pagamentoHtml : null;\r\n data[\"contattoNetworkID\"] = this.contattoNetworkID !== undefined ? this.contattoNetworkID : null;\r\n data[\"network\"] = this.network !== undefined ? this.network : null;\r\n data[\"contattoPromoterID\"] = this.contattoPromoterID !== undefined ? this.contattoPromoterID : null;\r\n data[\"promoter\"] = this.promoter !== undefined ? this.promoter : null;\r\n data[\"telefonoPromoter\"] = this.telefonoPromoter !== undefined ? this.telefonoPromoter : null;\r\n data[\"acconto\"] = this.acconto !== undefined ? this.acconto : null;\r\n data[\"noAnticipoQuote\"] = this.noAnticipoQuote !== undefined ? this.noAnticipoQuote : null;\r\n data[\"accontoNozze\"] = this.accontoNozze !== undefined ? this.accontoNozze : null;\r\n data[\"noAnticipoBiglietti\"] = this.noAnticipoBiglietti !== undefined ? this.noAnticipoBiglietti : null;\r\n data[\"nomeAddetto\"] = this.nomeAddetto !== undefined ? this.nomeAddetto : null;\r\n data[\"emailAddetto\"] = this.emailAddetto !== undefined ? this.emailAddetto : null;\r\n data[\"username\"] = this.username !== undefined ? this.username : null;\r\n if (Array.isArray(this.noteAgenzia)) {\r\n data[\"noteAgenzia\"] = [];\r\n for (let item of this.noteAgenzia)\r\n data[\"noteAgenzia\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAgencyDataResponse extends IOkApiResponse {\r\n /** ID del contatto agenzia */\r\n contattoID: number;\r\n /** Nome del contatto / Ragione sociale semplice */\r\n nome: string;\r\n /** Cognome del contatto / Ragione sociale estesa (incluso tipo società) */\r\n cognome?: string | null;\r\n /** Indirizzo del contatto. Dovrebbe essere solo la parte col nome della via */\r\n indirizzo?: string | null;\r\n /** Numero civico, qualora non incluso in Indirizzo */\r\n civico?: string | null;\r\n /** CAP dell'indirizzo del contatto */\r\n cap?: string | null;\r\n /** Città della sede del contatto */\r\n luogo?: string | null;\r\n /** Sigla della provincia della sede del contatto (solo contatti italiani) */\r\n provincia?: string | null;\r\n /** Numero di telefono. Campo libero, potrebbe contenenre più numeri e/o brevi note */\r\n telefono?: string | null;\r\n /** Numero di fax */\r\n fax?: string | null;\r\n /** Indirizzo email principale del contatto */\r\n email?: string | null;\r\n /** Nome della categoria dell'agenzia */\r\n categoria?: string | null;\r\n /** Codice della categoria dell'agenzia */\r\n codiceCategoria?: string | null;\r\n /** Descrizione della modalità di pagamento associata all'accordo corrente per l'operatore dell'offerta. Può contenere tag html */\r\n pagamentoHtml?: string | null;\r\n /** ID del contatto di tipo network agenzie (se appartenente a network) */\r\n contattoNetworkID?: number | null;\r\n /** Nome del network di agenzie (se appartenente a network) */\r\n network?: string | null;\r\n /** ID del contatto di tipo produttore/promoter se associato */\r\n contattoPromoterID?: number | null;\r\n /** Nome del produttore/promoter se associato */\r\n promoter?: string | null;\r\n /** Numero di telefono del produttore/promoter se associato. Campo libero, potrebbe contenenre più numeri e/o brevi note */\r\n telefonoPromoter?: string | null;\r\n /** Percentuale di acconto richiesta per viaggi standard */\r\n acconto?: number | null;\r\n /** Se true l'agenzia non paga anticipi sulle quote di apertura pratica */\r\n noAnticipoQuote?: boolean;\r\n /** Percentuale di acconto richiesta per viaggi di tipo nozze */\r\n accontoNozze?: number | null;\r\n /** Se true l'agenzia non paga anticipi sulla biglietteria aerea */\r\n noAnticipoBiglietti?: boolean;\r\n /** Nome dell'addetto in agenzia responsabile per questa pratica */\r\n nomeAddetto?: string | null;\r\n /** Email dell'addetto in agenzia responsabile per questa pratica */\r\n emailAddetto?: string | null;\r\n /** Nome esteso dell'utente dell'agenzia proprietario della pratica */\r\n username?: string | null;\r\n /** Elenco delle note commerciali per l'agenzia */\r\n noteAgenzia?: string[] | null;\r\n}\r\n\r\nexport class M2MRequest extends ApiRequest implements IM2MRequest {\r\n /** Token di autorizzazione */\r\n authToken!: string;\r\n\r\n constructor(data?: IM2MRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.authToken = _data[\"authToken\"] !== undefined ? _data[\"authToken\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): M2MRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new M2MRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"authToken\"] = this.authToken !== undefined ? this.authToken : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IM2MRequest extends IApiRequest {\r\n /** Token di autorizzazione */\r\n authToken: string;\r\n}\r\n\r\nexport class GetAgencyDataRequest extends M2MRequest implements IGetAgencyDataRequest {\r\n /** ID dell'offerta da cui estrarre i dati agenzia */\r\n offertaID!: number;\r\n\r\n constructor(data?: IGetAgencyDataRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAgencyDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAgencyDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAgencyDataRequest extends IM2MRequest {\r\n /** ID dell'offerta da cui estrarre i dati agenzia */\r\n offertaID: number;\r\n}\r\n\r\nexport class GetContabilityDocumentDataResponse extends OkApiResponse implements IGetContabilityDocumentDataResponse {\r\n listRow?: InvoicePrint;\r\n\r\n constructor(data?: IGetContabilityDocumentDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.listRow = _data[\"listRow\"] ? InvoicePrint.fromJS(_data[\"listRow\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetContabilityDocumentDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetContabilityDocumentDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"listRow\"] = this.listRow ? this.listRow.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetContabilityDocumentDataResponse extends IOkApiResponse {\r\n listRow?: InvoicePrint;\r\n}\r\n\r\nexport class InvoicePrint implements IInvoicePrint {\r\n invoiceDocument?: InvoiceDocument;\r\n fatturaEmitter?: InvoiceEmitter;\r\n numOfPages?: number;\r\n /** Righe raggruppate per maxNumOfPages */\r\n groupedRighe?: InvoicesListRowDetail[][];\r\n\r\n constructor(data?: IInvoicePrint) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.invoiceDocument = _data[\"invoiceDocument\"] ? InvoiceDocument.fromJS(_data[\"invoiceDocument\"]) : null;\r\n this.fatturaEmitter = _data[\"fatturaEmitter\"] ? InvoiceEmitter.fromJS(_data[\"fatturaEmitter\"]) : null;\r\n this.numOfPages = _data[\"numOfPages\"] !== undefined ? _data[\"numOfPages\"] : null;\r\n if (Array.isArray(_data[\"groupedRighe\"])) {\r\n this.groupedRighe = [] as any;\r\n for (let item of _data[\"groupedRighe\"])\r\n this.groupedRighe!.push(item);\r\n }\r\n else {\r\n this.groupedRighe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoicePrint {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoicePrint();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"invoiceDocument\"] = this.invoiceDocument ? this.invoiceDocument.toJSON() : null;\r\n data[\"fatturaEmitter\"] = this.fatturaEmitter ? this.fatturaEmitter.toJSON() : null;\r\n data[\"numOfPages\"] = this.numOfPages !== undefined ? this.numOfPages : null;\r\n if (Array.isArray(this.groupedRighe)) {\r\n data[\"groupedRighe\"] = [];\r\n for (let item of this.groupedRighe)\r\n data[\"groupedRighe\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoicePrint {\r\n invoiceDocument?: InvoiceDocument;\r\n fatturaEmitter?: InvoiceEmitter;\r\n numOfPages?: number;\r\n /** Righe raggruppate per maxNumOfPages */\r\n groupedRighe?: InvoicesListRowDetail[][];\r\n}\r\n\r\nexport class InvoiceDocument implements IInvoiceDocument {\r\n id?: number;\r\n tipo?: ETipoDocumento;\r\n numero?: number;\r\n data?: string;\r\n contattoID?: number | null;\r\n contatto?: string | null;\r\n ragioneSociale?: string | null;\r\n indirizzoFatt?: string | null;\r\n numeroCivico?: string | null;\r\n cap?: string | null;\r\n comune?: string | null;\r\n cliente?: string | null;\r\n indirizzo?: string | null;\r\n importo?: number;\r\n totaleIva?: number;\r\n luogo?: string;\r\n partitaIva?: string | null;\r\n note?: string | null;\r\n\r\n constructor(data?: IInvoiceDocument) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.numero = _data[\"numero\"] !== undefined ? _data[\"numero\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.ragioneSociale = _data[\"ragioneSociale\"] !== undefined ? _data[\"ragioneSociale\"] : null;\r\n this.indirizzoFatt = _data[\"indirizzoFatt\"] !== undefined ? _data[\"indirizzoFatt\"] : null;\r\n this.numeroCivico = _data[\"numeroCivico\"] !== undefined ? _data[\"numeroCivico\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.comune = _data[\"comune\"] !== undefined ? _data[\"comune\"] : null;\r\n this.cliente = _data[\"cliente\"] !== undefined ? _data[\"cliente\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.totaleIva = _data[\"totaleIva\"] !== undefined ? _data[\"totaleIva\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.partitaIva = _data[\"partitaIva\"] !== undefined ? _data[\"partitaIva\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoiceDocument {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoiceDocument();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"numero\"] = this.numero !== undefined ? this.numero : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"ragioneSociale\"] = this.ragioneSociale !== undefined ? this.ragioneSociale : null;\r\n data[\"indirizzoFatt\"] = this.indirizzoFatt !== undefined ? this.indirizzoFatt : null;\r\n data[\"numeroCivico\"] = this.numeroCivico !== undefined ? this.numeroCivico : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"comune\"] = this.comune !== undefined ? this.comune : null;\r\n data[\"cliente\"] = this.cliente !== undefined ? this.cliente : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"totaleIva\"] = this.totaleIva !== undefined ? this.totaleIva : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"partitaIva\"] = this.partitaIva !== undefined ? this.partitaIva : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoiceDocument {\r\n id?: number;\r\n tipo?: ETipoDocumento;\r\n numero?: number;\r\n data?: string;\r\n contattoID?: number | null;\r\n contatto?: string | null;\r\n ragioneSociale?: string | null;\r\n indirizzoFatt?: string | null;\r\n numeroCivico?: string | null;\r\n cap?: string | null;\r\n comune?: string | null;\r\n cliente?: string | null;\r\n indirizzo?: string | null;\r\n importo?: number;\r\n totaleIva?: number;\r\n luogo?: string;\r\n partitaIva?: string | null;\r\n note?: string | null;\r\n}\r\n\r\nexport class InvoiceEmitter implements IInvoiceEmitter {\r\n id?: number;\r\n ragioneSociale?: string;\r\n indirizzo?: string;\r\n cap?: string;\r\n citta?: string;\r\n pIva?: string;\r\n fax?: string;\r\n tel?: string;\r\n lang?: ELingua;\r\n\r\n constructor(data?: IInvoiceEmitter) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.ragioneSociale = _data[\"ragioneSociale\"] !== undefined ? _data[\"ragioneSociale\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.citta = _data[\"citta\"] !== undefined ? _data[\"citta\"] : null;\r\n this.pIva = _data[\"pIva\"] !== undefined ? _data[\"pIva\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.tel = _data[\"tel\"] !== undefined ? _data[\"tel\"] : null;\r\n this.lang = _data[\"lang\"] !== undefined ? _data[\"lang\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InvoiceEmitter {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InvoiceEmitter();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"ragioneSociale\"] = this.ragioneSociale !== undefined ? this.ragioneSociale : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"citta\"] = this.citta !== undefined ? this.citta : null;\r\n data[\"pIva\"] = this.pIva !== undefined ? this.pIva : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"tel\"] = this.tel !== undefined ? this.tel : null;\r\n data[\"lang\"] = this.lang !== undefined ? this.lang : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInvoiceEmitter {\r\n id?: number;\r\n ragioneSociale?: string;\r\n indirizzo?: string;\r\n cap?: string;\r\n citta?: string;\r\n pIva?: string;\r\n fax?: string;\r\n tel?: string;\r\n lang?: ELingua;\r\n}\r\n\r\nexport class GetContabilityDocumentDataRequest extends SiteRequest implements IGetContabilityDocumentDataRequest {\r\n documentoID!: number;\r\n maxNumOfRowsPerPage?: number;\r\n\r\n constructor(data?: IGetContabilityDocumentDataRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.maxNumOfRowsPerPage = _data[\"maxNumOfRowsPerPage\"] !== undefined ? _data[\"maxNumOfRowsPerPage\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetContabilityDocumentDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetContabilityDocumentDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"maxNumOfRowsPerPage\"] = this.maxNumOfRowsPerPage !== undefined ? this.maxNumOfRowsPerPage : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetContabilityDocumentDataRequest extends ISiteRequest {\r\n documentoID: number;\r\n maxNumOfRowsPerPage?: number;\r\n}\r\n\r\nexport class GetKanbanDocumentDataResponse extends OkApiResponse implements IGetKanbanDocumentDataResponse {\r\n kanban?: KanbanRaw | null;\r\n\r\n constructor(data?: IGetKanbanDocumentDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.kanban = _data[\"kanban\"] ? KanbanRaw.fromJS(_data[\"kanban\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetKanbanDocumentDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetKanbanDocumentDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"kanban\"] = this.kanban ? this.kanban.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetKanbanDocumentDataResponse extends IOkApiResponse {\r\n kanban?: KanbanRaw | null;\r\n}\r\n\r\nexport class KanbanRaw implements IKanbanRaw {\r\n id?: number;\r\n confermata?: boolean | null;\r\n descrizione?: string | null;\r\n creazione?: string | null;\r\n dataConferma?: string | null;\r\n partenza?: string | null;\r\n priorita?: string | null;\r\n destinazione?: string | null;\r\n nomeVisualizzato?: string | null;\r\n tipoViaggio?: ETipoViaggio;\r\n clienti?: string[] | null;\r\n riferimentoCliente?: string | null;\r\n addetto?: string | null;\r\n contattoAgenzia?: KanbanContattoRaw | null;\r\n categoria?: string | null;\r\n contattoNetwork?: KanbanContattoRaw | null;\r\n contattoPromoter?: KanbanContattoRaw | null;\r\n terminePagamentoAgenzia?: string | null;\r\n datiAgenzia?: KanbanDatiagenzia | null;\r\n statistiche?: KanbanStatisticsRaw | null;\r\n elencoNote?: KanbanNota[] | null;\r\n\r\n constructor(data?: IKanbanRaw) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.confermata = _data[\"confermata\"] !== undefined ? _data[\"confermata\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.dataConferma = _data[\"dataConferma\"] !== undefined ? _data[\"dataConferma\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.tipoViaggio = _data[\"tipoViaggio\"] !== undefined ? _data[\"tipoViaggio\"] : null;\r\n if (Array.isArray(_data[\"clienti\"])) {\r\n this.clienti = [] as any;\r\n for (let item of _data[\"clienti\"])\r\n this.clienti!.push(item);\r\n }\r\n else {\r\n this.clienti = null;\r\n }\r\n this.riferimentoCliente = _data[\"riferimentoCliente\"] !== undefined ? _data[\"riferimentoCliente\"] : null;\r\n this.addetto = _data[\"addetto\"] !== undefined ? _data[\"addetto\"] : null;\r\n this.contattoAgenzia = _data[\"contattoAgenzia\"] ? KanbanContattoRaw.fromJS(_data[\"contattoAgenzia\"]) : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.contattoNetwork = _data[\"contattoNetwork\"] ? KanbanContattoRaw.fromJS(_data[\"contattoNetwork\"]) : null;\r\n this.contattoPromoter = _data[\"contattoPromoter\"] ? KanbanContattoRaw.fromJS(_data[\"contattoPromoter\"]) : null;\r\n this.terminePagamentoAgenzia = _data[\"terminePagamentoAgenzia\"] !== undefined ? _data[\"terminePagamentoAgenzia\"] : null;\r\n this.datiAgenzia = _data[\"datiAgenzia\"] ? KanbanDatiagenzia.fromJS(_data[\"datiAgenzia\"]) : null;\r\n this.statistiche = _data[\"statistiche\"] ? KanbanStatisticsRaw.fromJS(_data[\"statistiche\"]) : null;\r\n if (Array.isArray(_data[\"elencoNote\"])) {\r\n this.elencoNote = [] as any;\r\n for (let item of _data[\"elencoNote\"])\r\n this.elencoNote!.push(KanbanNota.fromJS(item));\r\n }\r\n else {\r\n this.elencoNote = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): KanbanRaw {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new KanbanRaw();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"confermata\"] = this.confermata !== undefined ? this.confermata : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"dataConferma\"] = this.dataConferma !== undefined ? this.dataConferma : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"tipoViaggio\"] = this.tipoViaggio !== undefined ? this.tipoViaggio : null;\r\n if (Array.isArray(this.clienti)) {\r\n data[\"clienti\"] = [];\r\n for (let item of this.clienti)\r\n data[\"clienti\"].push(item);\r\n }\r\n data[\"riferimentoCliente\"] = this.riferimentoCliente !== undefined ? this.riferimentoCliente : null;\r\n data[\"addetto\"] = this.addetto !== undefined ? this.addetto : null;\r\n data[\"contattoAgenzia\"] = this.contattoAgenzia ? this.contattoAgenzia.toJSON() : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"contattoNetwork\"] = this.contattoNetwork ? this.contattoNetwork.toJSON() : null;\r\n data[\"contattoPromoter\"] = this.contattoPromoter ? this.contattoPromoter.toJSON() : null;\r\n data[\"terminePagamentoAgenzia\"] = this.terminePagamentoAgenzia !== undefined ? this.terminePagamentoAgenzia : null;\r\n data[\"datiAgenzia\"] = this.datiAgenzia ? this.datiAgenzia.toJSON() : null;\r\n data[\"statistiche\"] = this.statistiche ? this.statistiche.toJSON() : null;\r\n if (Array.isArray(this.elencoNote)) {\r\n data[\"elencoNote\"] = [];\r\n for (let item of this.elencoNote)\r\n data[\"elencoNote\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IKanbanRaw {\r\n id?: number;\r\n confermata?: boolean | null;\r\n descrizione?: string | null;\r\n creazione?: string | null;\r\n dataConferma?: string | null;\r\n partenza?: string | null;\r\n priorita?: string | null;\r\n destinazione?: string | null;\r\n nomeVisualizzato?: string | null;\r\n tipoViaggio?: ETipoViaggio;\r\n clienti?: string[] | null;\r\n riferimentoCliente?: string | null;\r\n addetto?: string | null;\r\n contattoAgenzia?: KanbanContattoRaw | null;\r\n categoria?: string | null;\r\n contattoNetwork?: KanbanContattoRaw | null;\r\n contattoPromoter?: KanbanContattoRaw | null;\r\n terminePagamentoAgenzia?: string | null;\r\n datiAgenzia?: KanbanDatiagenzia | null;\r\n statistiche?: KanbanStatisticsRaw | null;\r\n elencoNote?: KanbanNota[] | null;\r\n}\r\n\r\nexport class KanbanContattoRaw implements IKanbanContattoRaw {\r\n nome?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n\r\n constructor(data?: IKanbanContattoRaw) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): KanbanContattoRaw {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new KanbanContattoRaw();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IKanbanContattoRaw {\r\n nome?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n}\r\n\r\nexport class KanbanDatiagenzia implements IKanbanDatiagenzia {\r\n telefono?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n categoria?: string | null;\r\n pagamento?: string | null;\r\n network?: string | null;\r\n promoter?: string | null;\r\n promoterTelefono?: string | null;\r\n\r\n constructor(data?: IKanbanDatiagenzia) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.pagamento = _data[\"pagamento\"] !== undefined ? _data[\"pagamento\"] : null;\r\n this.network = _data[\"network\"] !== undefined ? _data[\"network\"] : null;\r\n this.promoter = _data[\"promoter\"] !== undefined ? _data[\"promoter\"] : null;\r\n this.promoterTelefono = _data[\"promoterTelefono\"] !== undefined ? _data[\"promoterTelefono\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): KanbanDatiagenzia {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new KanbanDatiagenzia();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"pagamento\"] = this.pagamento !== undefined ? this.pagamento : null;\r\n data[\"network\"] = this.network !== undefined ? this.network : null;\r\n data[\"promoter\"] = this.promoter !== undefined ? this.promoter : null;\r\n data[\"promoterTelefono\"] = this.promoterTelefono !== undefined ? this.promoterTelefono : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IKanbanDatiagenzia {\r\n telefono?: string | null;\r\n fax?: string | null;\r\n email?: string | null;\r\n categoria?: string | null;\r\n pagamento?: string | null;\r\n network?: string | null;\r\n promoter?: string | null;\r\n promoterTelefono?: string | null;\r\n}\r\n\r\nexport class KanbanStatisticsRaw implements IKanbanStatisticsRaw {\r\n priorita?: string | null;\r\n fatturato?: number;\r\n percentualeConferme?: number | null;\r\n confermePassate?: number | null;\r\n preventiviBkgPassati?: number | null;\r\n preventiviPassati?: number | null;\r\n confermeFuture?: number | null;\r\n preventiviBkgFuturi?: number | null;\r\n\r\n constructor(data?: IKanbanStatisticsRaw) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.fatturato = _data[\"fatturato\"] !== undefined ? _data[\"fatturato\"] : null;\r\n this.percentualeConferme = _data[\"percentualeConferme\"] !== undefined ? _data[\"percentualeConferme\"] : null;\r\n this.confermePassate = _data[\"confermePassate\"] !== undefined ? _data[\"confermePassate\"] : null;\r\n this.preventiviBkgPassati = _data[\"preventiviBkgPassati\"] !== undefined ? _data[\"preventiviBkgPassati\"] : null;\r\n this.preventiviPassati = _data[\"preventiviPassati\"] !== undefined ? _data[\"preventiviPassati\"] : null;\r\n this.confermeFuture = _data[\"confermeFuture\"] !== undefined ? _data[\"confermeFuture\"] : null;\r\n this.preventiviBkgFuturi = _data[\"preventiviBkgFuturi\"] !== undefined ? _data[\"preventiviBkgFuturi\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): KanbanStatisticsRaw {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new KanbanStatisticsRaw();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"fatturato\"] = this.fatturato !== undefined ? this.fatturato : null;\r\n data[\"percentualeConferme\"] = this.percentualeConferme !== undefined ? this.percentualeConferme : null;\r\n data[\"confermePassate\"] = this.confermePassate !== undefined ? this.confermePassate : null;\r\n data[\"preventiviBkgPassati\"] = this.preventiviBkgPassati !== undefined ? this.preventiviBkgPassati : null;\r\n data[\"preventiviPassati\"] = this.preventiviPassati !== undefined ? this.preventiviPassati : null;\r\n data[\"confermeFuture\"] = this.confermeFuture !== undefined ? this.confermeFuture : null;\r\n data[\"preventiviBkgFuturi\"] = this.preventiviBkgFuturi !== undefined ? this.preventiviBkgFuturi : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IKanbanStatisticsRaw {\r\n priorita?: string | null;\r\n fatturato?: number;\r\n percentualeConferme?: number | null;\r\n confermePassate?: number | null;\r\n preventiviBkgPassati?: number | null;\r\n preventiviPassati?: number | null;\r\n confermeFuture?: number | null;\r\n preventiviBkgFuturi?: number | null;\r\n}\r\n\r\nexport class KanbanNota implements IKanbanNota {\r\n data?: string;\r\n testo?: string | null;\r\n isAdv?: boolean | null;\r\n noAcc?: boolean | null;\r\n\r\n constructor(data?: IKanbanNota) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.isAdv = _data[\"isAdv\"] !== undefined ? _data[\"isAdv\"] : null;\r\n this.noAcc = _data[\"noAcc\"] !== undefined ? _data[\"noAcc\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): KanbanNota {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new KanbanNota();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"isAdv\"] = this.isAdv !== undefined ? this.isAdv : null;\r\n data[\"noAcc\"] = this.noAcc !== undefined ? this.noAcc : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IKanbanNota {\r\n data?: string;\r\n testo?: string | null;\r\n isAdv?: boolean | null;\r\n noAcc?: boolean | null;\r\n}\r\n\r\nexport class GetKanbanDocumentDataRequest extends SiteRequest implements IGetKanbanDocumentDataRequest {\r\n userID?: string;\r\n offertaID?: number;\r\n\r\n constructor(data?: IGetKanbanDocumentDataRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetKanbanDocumentDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetKanbanDocumentDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetKanbanDocumentDataRequest extends ISiteRequest {\r\n userID?: string;\r\n offertaID?: number;\r\n}\r\n\r\nexport class GetTripDocumentDataResponse extends OkApiResponse implements IGetTripDocumentDataResponse {\r\n tipoDocumento?: ETipoDocumento;\r\n /** Data e ora della stampa */\r\n printDate?: string;\r\n /** Dati del tour operator associato all'offerta */\r\n tourOperator?: TourOperator;\r\n /** Intestazione dell'offerta */\r\n header?: TripHeader;\r\n /** Dati finanziari dell'offerta */\r\n economics?: TripEconomics;\r\n paymentNameHtml?: string;\r\n totaleCommissionabile?: number;\r\n totaleCommissioni?: number;\r\n importoNettoDovutoDaAdv?: number;\r\n totaleDare?: number | null;\r\n totaleAvere?: number | null;\r\n totaleSbilancio?: number | null;\r\n /** Specchietto delle commissioni agenzia */\r\n agencyFees?: AgencyFee[];\r\n /** Dati dell'agenzia */\r\n agency?: TripAgency;\r\n /** Prezzi per pax */\r\n paxPrices?: PaxPrice[];\r\n /** Elenco tappe e servizi */\r\n steps?: TripStep[];\r\n /** Elenco servizi accessori, senza i voli */\r\n accessories?: TripService[];\r\n /** Elenco servizi accessori, senza i voli */\r\n insurances?: TripService[];\r\n /** Elenco servizi volo, separato dagli accessori */\r\n flights?: TripService[];\r\n /** Valori dei cambi */\r\n currencies?: CurrencyValue[];\r\n /** Elenco dei PNR dell'offerta */\r\n pnrs?: FlightPnr[];\r\n /** Note a fine documento */\r\n footerNotes?: TripTextHtml[];\r\n /** Descrive l'itinerario completo giorno per giorno */\r\n daybyday?: DayByDay;\r\n /** Note a piè pagina dei servizi con ters organizzati con la legenda */\r\n servicesFooterNotes?: { [key: string]: TripTextHtml; };\r\n /** Sperimentale, il vecchio blocco testi */\r\n testi?: SezioneTesti[] | null;\r\n sections?: DocSections | null;\r\n estremiBancari?: EstremiBancari | null;\r\n elencoNote?: NoteDocumento[] | null;\r\n elencoMiniguide?: Miniguida[] | null;\r\n\r\n constructor(data?: IGetTripDocumentDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.printDate = _data[\"printDate\"] !== undefined ? _data[\"printDate\"] : null;\r\n this.tourOperator = _data[\"tourOperator\"] ? TourOperator.fromJS(_data[\"tourOperator\"]) : null;\r\n this.header = _data[\"header\"] ? TripHeader.fromJS(_data[\"header\"]) : null;\r\n this.economics = _data[\"economics\"] ? TripEconomics.fromJS(_data[\"economics\"]) : null;\r\n this.paymentNameHtml = _data[\"paymentNameHtml\"] !== undefined ? _data[\"paymentNameHtml\"] : null;\r\n this.totaleCommissionabile = _data[\"totaleCommissionabile\"] !== undefined ? _data[\"totaleCommissionabile\"] : null;\r\n this.totaleCommissioni = _data[\"totaleCommissioni\"] !== undefined ? _data[\"totaleCommissioni\"] : null;\r\n this.importoNettoDovutoDaAdv = _data[\"importoNettoDovutoDaAdv\"] !== undefined ? _data[\"importoNettoDovutoDaAdv\"] : null;\r\n this.totaleDare = _data[\"totaleDare\"] !== undefined ? _data[\"totaleDare\"] : null;\r\n this.totaleAvere = _data[\"totaleAvere\"] !== undefined ? _data[\"totaleAvere\"] : null;\r\n this.totaleSbilancio = _data[\"totaleSbilancio\"] !== undefined ? _data[\"totaleSbilancio\"] : null;\r\n if (Array.isArray(_data[\"agencyFees\"])) {\r\n this.agencyFees = [] as any;\r\n for (let item of _data[\"agencyFees\"])\r\n this.agencyFees!.push(AgencyFee.fromJS(item));\r\n }\r\n else {\r\n this.agencyFees = null;\r\n }\r\n this.agency = _data[\"agency\"] ? TripAgency.fromJS(_data[\"agency\"]) : null;\r\n if (Array.isArray(_data[\"paxPrices\"])) {\r\n this.paxPrices = [] as any;\r\n for (let item of _data[\"paxPrices\"])\r\n this.paxPrices!.push(PaxPrice.fromJS(item));\r\n }\r\n else {\r\n this.paxPrices = null;\r\n }\r\n if (Array.isArray(_data[\"steps\"])) {\r\n this.steps = [] as any;\r\n for (let item of _data[\"steps\"])\r\n this.steps!.push(TripStep.fromJS(item));\r\n }\r\n else {\r\n this.steps = null;\r\n }\r\n if (Array.isArray(_data[\"accessories\"])) {\r\n this.accessories = [] as any;\r\n for (let item of _data[\"accessories\"])\r\n this.accessories!.push(TripService.fromJS(item));\r\n }\r\n else {\r\n this.accessories = null;\r\n }\r\n if (Array.isArray(_data[\"insurances\"])) {\r\n this.insurances = [] as any;\r\n for (let item of _data[\"insurances\"])\r\n this.insurances!.push(TripService.fromJS(item));\r\n }\r\n else {\r\n this.insurances = null;\r\n }\r\n if (Array.isArray(_data[\"flights\"])) {\r\n this.flights = [] as any;\r\n for (let item of _data[\"flights\"])\r\n this.flights!.push(TripService.fromJS(item));\r\n }\r\n else {\r\n this.flights = null;\r\n }\r\n if (Array.isArray(_data[\"currencies\"])) {\r\n this.currencies = [] as any;\r\n for (let item of _data[\"currencies\"])\r\n this.currencies!.push(CurrencyValue.fromJS(item));\r\n }\r\n else {\r\n this.currencies = null;\r\n }\r\n if (Array.isArray(_data[\"pnrs\"])) {\r\n this.pnrs = [] as any;\r\n for (let item of _data[\"pnrs\"])\r\n this.pnrs!.push(FlightPnr.fromJS(item));\r\n }\r\n else {\r\n this.pnrs = null;\r\n }\r\n if (Array.isArray(_data[\"footerNotes\"])) {\r\n this.footerNotes = [] as any;\r\n for (let item of _data[\"footerNotes\"])\r\n this.footerNotes!.push(TripTextHtml.fromJS(item));\r\n }\r\n else {\r\n this.footerNotes = null;\r\n }\r\n this.daybyday = _data[\"daybyday\"] ? DayByDay.fromJS(_data[\"daybyday\"]) : null;\r\n if (_data[\"servicesFooterNotes\"]) {\r\n this.servicesFooterNotes = {} as any;\r\n for (let key in _data[\"servicesFooterNotes\"]) {\r\n if (_data[\"servicesFooterNotes\"].hasOwnProperty(key))\r\n (this.servicesFooterNotes)![key] = _data[\"servicesFooterNotes\"][key] ? TripTextHtml.fromJS(_data[\"servicesFooterNotes\"][key]) : new TripTextHtml();\r\n }\r\n }\r\n else {\r\n this.servicesFooterNotes = null;\r\n }\r\n if (Array.isArray(_data[\"testi\"])) {\r\n this.testi = [] as any;\r\n for (let item of _data[\"testi\"])\r\n this.testi!.push(SezioneTesti.fromJS(item));\r\n }\r\n else {\r\n this.testi = null;\r\n }\r\n this.sections = _data[\"sections\"] ? DocSections.fromJS(_data[\"sections\"]) : null;\r\n this.estremiBancari = _data[\"estremiBancari\"] ? EstremiBancari.fromJS(_data[\"estremiBancari\"]) : null;\r\n if (Array.isArray(_data[\"elencoNote\"])) {\r\n this.elencoNote = [] as any;\r\n for (let item of _data[\"elencoNote\"])\r\n this.elencoNote!.push(NoteDocumento.fromJS(item));\r\n }\r\n else {\r\n this.elencoNote = null;\r\n }\r\n if (Array.isArray(_data[\"elencoMiniguide\"])) {\r\n this.elencoMiniguide = [] as any;\r\n for (let item of _data[\"elencoMiniguide\"])\r\n this.elencoMiniguide!.push(Miniguida.fromJS(item));\r\n }\r\n else {\r\n this.elencoMiniguide = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripDocumentDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripDocumentDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"printDate\"] = this.printDate !== undefined ? this.printDate : null;\r\n data[\"tourOperator\"] = this.tourOperator ? this.tourOperator.toJSON() : null;\r\n data[\"header\"] = this.header ? this.header.toJSON() : null;\r\n data[\"economics\"] = this.economics ? this.economics.toJSON() : null;\r\n data[\"paymentNameHtml\"] = this.paymentNameHtml !== undefined ? this.paymentNameHtml : null;\r\n data[\"totaleCommissionabile\"] = this.totaleCommissionabile !== undefined ? this.totaleCommissionabile : null;\r\n data[\"totaleCommissioni\"] = this.totaleCommissioni !== undefined ? this.totaleCommissioni : null;\r\n data[\"importoNettoDovutoDaAdv\"] = this.importoNettoDovutoDaAdv !== undefined ? this.importoNettoDovutoDaAdv : null;\r\n data[\"totaleDare\"] = this.totaleDare !== undefined ? this.totaleDare : null;\r\n data[\"totaleAvere\"] = this.totaleAvere !== undefined ? this.totaleAvere : null;\r\n data[\"totaleSbilancio\"] = this.totaleSbilancio !== undefined ? this.totaleSbilancio : null;\r\n if (Array.isArray(this.agencyFees)) {\r\n data[\"agencyFees\"] = [];\r\n for (let item of this.agencyFees)\r\n data[\"agencyFees\"].push(item.toJSON());\r\n }\r\n data[\"agency\"] = this.agency ? this.agency.toJSON() : null;\r\n if (Array.isArray(this.paxPrices)) {\r\n data[\"paxPrices\"] = [];\r\n for (let item of this.paxPrices)\r\n data[\"paxPrices\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.steps)) {\r\n data[\"steps\"] = [];\r\n for (let item of this.steps)\r\n data[\"steps\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.accessories)) {\r\n data[\"accessories\"] = [];\r\n for (let item of this.accessories)\r\n data[\"accessories\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.insurances)) {\r\n data[\"insurances\"] = [];\r\n for (let item of this.insurances)\r\n data[\"insurances\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.flights)) {\r\n data[\"flights\"] = [];\r\n for (let item of this.flights)\r\n data[\"flights\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.currencies)) {\r\n data[\"currencies\"] = [];\r\n for (let item of this.currencies)\r\n data[\"currencies\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.pnrs)) {\r\n data[\"pnrs\"] = [];\r\n for (let item of this.pnrs)\r\n data[\"pnrs\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.footerNotes)) {\r\n data[\"footerNotes\"] = [];\r\n for (let item of this.footerNotes)\r\n data[\"footerNotes\"].push(item.toJSON());\r\n }\r\n data[\"daybyday\"] = this.daybyday ? this.daybyday.toJSON() : null;\r\n if (this.servicesFooterNotes) {\r\n data[\"servicesFooterNotes\"] = {};\r\n for (let key in this.servicesFooterNotes) {\r\n if (this.servicesFooterNotes.hasOwnProperty(key))\r\n (data[\"servicesFooterNotes\"])[key] = this.servicesFooterNotes[key] ? this.servicesFooterNotes[key].toJSON() : null;\r\n }\r\n }\r\n if (Array.isArray(this.testi)) {\r\n data[\"testi\"] = [];\r\n for (let item of this.testi)\r\n data[\"testi\"].push(item.toJSON());\r\n }\r\n data[\"sections\"] = this.sections ? this.sections.toJSON() : null;\r\n data[\"estremiBancari\"] = this.estremiBancari ? this.estremiBancari.toJSON() : null;\r\n if (Array.isArray(this.elencoNote)) {\r\n data[\"elencoNote\"] = [];\r\n for (let item of this.elencoNote)\r\n data[\"elencoNote\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.elencoMiniguide)) {\r\n data[\"elencoMiniguide\"] = [];\r\n for (let item of this.elencoMiniguide)\r\n data[\"elencoMiniguide\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripDocumentDataResponse extends IOkApiResponse {\r\n tipoDocumento?: ETipoDocumento;\r\n /** Data e ora della stampa */\r\n printDate?: string;\r\n /** Dati del tour operator associato all'offerta */\r\n tourOperator?: TourOperator;\r\n /** Intestazione dell'offerta */\r\n header?: TripHeader;\r\n /** Dati finanziari dell'offerta */\r\n economics?: TripEconomics;\r\n paymentNameHtml?: string;\r\n totaleCommissionabile?: number;\r\n totaleCommissioni?: number;\r\n importoNettoDovutoDaAdv?: number;\r\n totaleDare?: number | null;\r\n totaleAvere?: number | null;\r\n totaleSbilancio?: number | null;\r\n /** Specchietto delle commissioni agenzia */\r\n agencyFees?: AgencyFee[];\r\n /** Dati dell'agenzia */\r\n agency?: TripAgency;\r\n /** Prezzi per pax */\r\n paxPrices?: PaxPrice[];\r\n /** Elenco tappe e servizi */\r\n steps?: TripStep[];\r\n /** Elenco servizi accessori, senza i voli */\r\n accessories?: TripService[];\r\n /** Elenco servizi accessori, senza i voli */\r\n insurances?: TripService[];\r\n /** Elenco servizi volo, separato dagli accessori */\r\n flights?: TripService[];\r\n /** Valori dei cambi */\r\n currencies?: CurrencyValue[];\r\n /** Elenco dei PNR dell'offerta */\r\n pnrs?: FlightPnr[];\r\n /** Note a fine documento */\r\n footerNotes?: TripTextHtml[];\r\n /** Descrive l'itinerario completo giorno per giorno */\r\n daybyday?: DayByDay;\r\n /** Note a piè pagina dei servizi con ters organizzati con la legenda */\r\n servicesFooterNotes?: { [key: string]: TripTextHtml; };\r\n /** Sperimentale, il vecchio blocco testi */\r\n testi?: SezioneTesti[] | null;\r\n sections?: DocSections | null;\r\n estremiBancari?: EstremiBancari | null;\r\n elencoNote?: NoteDocumento[] | null;\r\n elencoMiniguide?: Miniguida[] | null;\r\n}\r\n\r\n/** Dati del tour operator ricavati dal contatto associato */\r\nexport class TourOperator implements ITourOperator {\r\n ragioneSociale?: string;\r\n indirizzo?: string;\r\n civico?: string;\r\n cap?: string;\r\n luogo?: string;\r\n telefono?: string;\r\n fax?: string;\r\n email?: string;\r\n partitaIVA?: string;\r\n codiceSDI?: string;\r\n websiteUrl?: string;\r\n logoUrl?: string;\r\n\r\n constructor(data?: ITourOperator) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.ragioneSociale = _data[\"ragioneSociale\"] !== undefined ? _data[\"ragioneSociale\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.civico = _data[\"civico\"] !== undefined ? _data[\"civico\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.partitaIVA = _data[\"partitaIVA\"] !== undefined ? _data[\"partitaIVA\"] : null;\r\n this.codiceSDI = _data[\"codiceSDI\"] !== undefined ? _data[\"codiceSDI\"] : null;\r\n this.websiteUrl = _data[\"websiteUrl\"] !== undefined ? _data[\"websiteUrl\"] : null;\r\n this.logoUrl = _data[\"logoUrl\"] !== undefined ? _data[\"logoUrl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TourOperator {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TourOperator();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ragioneSociale\"] = this.ragioneSociale !== undefined ? this.ragioneSociale : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"civico\"] = this.civico !== undefined ? this.civico : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"partitaIVA\"] = this.partitaIVA !== undefined ? this.partitaIVA : null;\r\n data[\"codiceSDI\"] = this.codiceSDI !== undefined ? this.codiceSDI : null;\r\n data[\"websiteUrl\"] = this.websiteUrl !== undefined ? this.websiteUrl : null;\r\n data[\"logoUrl\"] = this.logoUrl !== undefined ? this.logoUrl : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati del tour operator ricavati dal contatto associato */\r\nexport interface ITourOperator {\r\n ragioneSociale?: string;\r\n indirizzo?: string;\r\n civico?: string;\r\n cap?: string;\r\n luogo?: string;\r\n telefono?: string;\r\n fax?: string;\r\n email?: string;\r\n partitaIVA?: string;\r\n codiceSDI?: string;\r\n websiteUrl?: string;\r\n logoUrl?: string;\r\n}\r\n\r\n/** Riga di commissione agenzia */\r\nexport class AgencyFee implements IAgencyFee {\r\n nettoIva?: boolean;\r\n percentuale?: number;\r\n totalePrezzo?: number;\r\n totaleCommissione?: number;\r\n\r\n constructor(data?: IAgencyFee) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nettoIva = _data[\"nettoIva\"] !== undefined ? _data[\"nettoIva\"] : null;\r\n this.percentuale = _data[\"percentuale\"] !== undefined ? _data[\"percentuale\"] : null;\r\n this.totalePrezzo = _data[\"totalePrezzo\"] !== undefined ? _data[\"totalePrezzo\"] : null;\r\n this.totaleCommissione = _data[\"totaleCommissione\"] !== undefined ? _data[\"totaleCommissione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AgencyFee {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AgencyFee();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nettoIva\"] = this.nettoIva !== undefined ? this.nettoIva : null;\r\n data[\"percentuale\"] = this.percentuale !== undefined ? this.percentuale : null;\r\n data[\"totalePrezzo\"] = this.totalePrezzo !== undefined ? this.totalePrezzo : null;\r\n data[\"totaleCommissione\"] = this.totaleCommissione !== undefined ? this.totaleCommissione : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Riga di commissione agenzia */\r\nexport interface IAgencyFee {\r\n nettoIva?: boolean;\r\n percentuale?: number;\r\n totalePrezzo?: number;\r\n totaleCommissione?: number;\r\n}\r\n\r\n/** Prezzi per passeggero */\r\nexport class PaxPrice implements IPaxPrice {\r\n titolo?: ETitolo;\r\n nomeVisualizzato?: string;\r\n codiceFiscale?: string;\r\n prezzo?: number;\r\n\r\n constructor(data?: IPaxPrice) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.codiceFiscale = _data[\"codiceFiscale\"] !== undefined ? _data[\"codiceFiscale\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaxPrice {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaxPrice();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"codiceFiscale\"] = this.codiceFiscale !== undefined ? this.codiceFiscale : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Prezzi per passeggero */\r\nexport interface IPaxPrice {\r\n titolo?: ETitolo;\r\n nomeVisualizzato?: string;\r\n codiceFiscale?: string;\r\n prezzo?: number;\r\n}\r\n\r\n/** Valore applicato nei cambi delle monete */\r\nexport class CurrencyValue implements ICurrencyValue {\r\n nome?: string;\r\n valore?: number;\r\n\r\n constructor(data?: ICurrencyValue) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CurrencyValue {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CurrencyValue();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Valore applicato nei cambi delle monete */\r\nexport interface ICurrencyValue {\r\n nome?: string;\r\n valore?: number;\r\n}\r\n\r\n/** Dati di un singolo PNR */\r\nexport class FlightPnr implements IFlightPnr {\r\n pnr?: string;\r\n abbinamento?: string | null;\r\n segmenti?: FlightSegment2[];\r\n compagnie?: FlightAirline[];\r\n noteCompagnie?: TripTextHtml[];\r\n\r\n constructor(data?: IFlightPnr) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pnr = _data[\"pnr\"] !== undefined ? _data[\"pnr\"] : null;\r\n this.abbinamento = _data[\"abbinamento\"] !== undefined ? _data[\"abbinamento\"] : null;\r\n if (Array.isArray(_data[\"segmenti\"])) {\r\n this.segmenti = [] as any;\r\n for (let item of _data[\"segmenti\"])\r\n this.segmenti!.push(FlightSegment2.fromJS(item));\r\n }\r\n else {\r\n this.segmenti = null;\r\n }\r\n if (Array.isArray(_data[\"compagnie\"])) {\r\n this.compagnie = [] as any;\r\n for (let item of _data[\"compagnie\"])\r\n this.compagnie!.push(FlightAirline.fromJS(item));\r\n }\r\n else {\r\n this.compagnie = null;\r\n }\r\n if (Array.isArray(_data[\"noteCompagnie\"])) {\r\n this.noteCompagnie = [] as any;\r\n for (let item of _data[\"noteCompagnie\"])\r\n this.noteCompagnie!.push(TripTextHtml.fromJS(item));\r\n }\r\n else {\r\n this.noteCompagnie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightPnr {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightPnr();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pnr\"] = this.pnr !== undefined ? this.pnr : null;\r\n data[\"abbinamento\"] = this.abbinamento !== undefined ? this.abbinamento : null;\r\n if (Array.isArray(this.segmenti)) {\r\n data[\"segmenti\"] = [];\r\n for (let item of this.segmenti)\r\n data[\"segmenti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.compagnie)) {\r\n data[\"compagnie\"] = [];\r\n for (let item of this.compagnie)\r\n data[\"compagnie\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.noteCompagnie)) {\r\n data[\"noteCompagnie\"] = [];\r\n for (let item of this.noteCompagnie)\r\n data[\"noteCompagnie\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati di un singolo PNR */\r\nexport interface IFlightPnr {\r\n pnr?: string;\r\n abbinamento?: string | null;\r\n segmenti?: FlightSegment2[];\r\n compagnie?: FlightAirline[];\r\n noteCompagnie?: TripTextHtml[];\r\n}\r\n\r\n/** Dati di un singolo segmento volo */\r\nexport class FlightSegment2 implements IFlightSegment2 {\r\n partenza?: string;\r\n arrivo?: string;\r\n arrivoGiornoDopo?: boolean;\r\n codiceCompagnia?: string | null;\r\n nomeCompagnia?: string | null;\r\n volo?: number;\r\n da?: string;\r\n daCodice?: string | null;\r\n a?: string;\r\n aCodice?: string | null;\r\n status?: string | null;\r\n codiceOperatedBy?: string | null;\r\n nomeOperatedBy?: string | null;\r\n details?: FlightSegmentDetail[];\r\n\r\n constructor(data?: IFlightSegment2) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.arrivo = _data[\"arrivo\"] !== undefined ? _data[\"arrivo\"] : null;\r\n this.arrivoGiornoDopo = _data[\"arrivoGiornoDopo\"] !== undefined ? _data[\"arrivoGiornoDopo\"] : null;\r\n this.codiceCompagnia = _data[\"codiceCompagnia\"] !== undefined ? _data[\"codiceCompagnia\"] : null;\r\n this.nomeCompagnia = _data[\"nomeCompagnia\"] !== undefined ? _data[\"nomeCompagnia\"] : null;\r\n this.volo = _data[\"volo\"] !== undefined ? _data[\"volo\"] : null;\r\n this.da = _data[\"da\"] !== undefined ? _data[\"da\"] : null;\r\n this.daCodice = _data[\"daCodice\"] !== undefined ? _data[\"daCodice\"] : null;\r\n this.a = _data[\"a\"] !== undefined ? _data[\"a\"] : null;\r\n this.aCodice = _data[\"aCodice\"] !== undefined ? _data[\"aCodice\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.codiceOperatedBy = _data[\"codiceOperatedBy\"] !== undefined ? _data[\"codiceOperatedBy\"] : null;\r\n this.nomeOperatedBy = _data[\"nomeOperatedBy\"] !== undefined ? _data[\"nomeOperatedBy\"] : null;\r\n if (Array.isArray(_data[\"details\"])) {\r\n this.details = [] as any;\r\n for (let item of _data[\"details\"])\r\n this.details!.push(FlightSegmentDetail.fromJS(item));\r\n }\r\n else {\r\n this.details = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightSegment2 {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightSegment2();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"arrivo\"] = this.arrivo !== undefined ? this.arrivo : null;\r\n data[\"arrivoGiornoDopo\"] = this.arrivoGiornoDopo !== undefined ? this.arrivoGiornoDopo : null;\r\n data[\"codiceCompagnia\"] = this.codiceCompagnia !== undefined ? this.codiceCompagnia : null;\r\n data[\"nomeCompagnia\"] = this.nomeCompagnia !== undefined ? this.nomeCompagnia : null;\r\n data[\"volo\"] = this.volo !== undefined ? this.volo : null;\r\n data[\"da\"] = this.da !== undefined ? this.da : null;\r\n data[\"daCodice\"] = this.daCodice !== undefined ? this.daCodice : null;\r\n data[\"a\"] = this.a !== undefined ? this.a : null;\r\n data[\"aCodice\"] = this.aCodice !== undefined ? this.aCodice : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"codiceOperatedBy\"] = this.codiceOperatedBy !== undefined ? this.codiceOperatedBy : null;\r\n data[\"nomeOperatedBy\"] = this.nomeOperatedBy !== undefined ? this.nomeOperatedBy : null;\r\n if (Array.isArray(this.details)) {\r\n data[\"details\"] = [];\r\n for (let item of this.details)\r\n data[\"details\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\n/** Dati di un singolo segmento volo */\r\nexport interface IFlightSegment2 {\r\n partenza?: string;\r\n arrivo?: string;\r\n arrivoGiornoDopo?: boolean;\r\n codiceCompagnia?: string | null;\r\n nomeCompagnia?: string | null;\r\n volo?: number;\r\n da?: string;\r\n daCodice?: string | null;\r\n a?: string;\r\n aCodice?: string | null;\r\n status?: string | null;\r\n codiceOperatedBy?: string | null;\r\n nomeOperatedBy?: string | null;\r\n details?: FlightSegmentDetail[];\r\n}\r\n\r\nexport class FlightSegmentDetail implements IFlightSegmentDetail {\r\n tipoPaxID?: ETipoPax | null;\r\n numeroPax?: number | null;\r\n baggageIncluded?: number | null;\r\n\r\n constructor(data?: IFlightSegmentDetail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoPaxID = _data[\"tipoPaxID\"] !== undefined ? _data[\"tipoPaxID\"] : null;\r\n this.numeroPax = _data[\"numeroPax\"] !== undefined ? _data[\"numeroPax\"] : null;\r\n this.baggageIncluded = _data[\"baggageIncluded\"] !== undefined ? _data[\"baggageIncluded\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightSegmentDetail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightSegmentDetail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoPaxID\"] = this.tipoPaxID !== undefined ? this.tipoPaxID : null;\r\n data[\"numeroPax\"] = this.numeroPax !== undefined ? this.numeroPax : null;\r\n data[\"baggageIncluded\"] = this.baggageIncluded !== undefined ? this.baggageIncluded : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFlightSegmentDetail {\r\n tipoPaxID?: ETipoPax | null;\r\n numeroPax?: number | null;\r\n baggageIncluded?: number | null;\r\n}\r\n\r\n/** Descrittore compagia aerea */\r\nexport class FlightAirline implements IFlightAirline {\r\n codice?: string;\r\n nome?: string;\r\n\r\n constructor(data?: IFlightAirline) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FlightAirline {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FlightAirline();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Descrittore compagia aerea */\r\nexport interface IFlightAirline {\r\n codice?: string;\r\n nome?: string;\r\n}\r\n\r\n/** Elenco dei giorni del Viaggio */\r\nexport class DayByDay implements IDayByDay {\r\n days?: Day[];\r\n notes?: TextSeed[];\r\n\r\n constructor(data?: IDayByDay) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"days\"])) {\r\n this.days = [] as any;\r\n for (let item of _data[\"days\"])\r\n this.days!.push(Day.fromJS(item));\r\n }\r\n else {\r\n this.days = null;\r\n }\r\n if (Array.isArray(_data[\"notes\"])) {\r\n this.notes = [] as any;\r\n for (let item of _data[\"notes\"])\r\n this.notes!.push(TextSeed.fromJS(item));\r\n }\r\n else {\r\n this.notes = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DayByDay {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DayByDay();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.days)) {\r\n data[\"days\"] = [];\r\n for (let item of this.days)\r\n data[\"days\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.notes)) {\r\n data[\"notes\"] = [];\r\n for (let item of this.notes)\r\n data[\"notes\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\n/** Elenco dei giorni del Viaggio */\r\nexport interface IDayByDay {\r\n days?: Day[];\r\n notes?: TextSeed[];\r\n}\r\n\r\nexport class Day implements IDay {\r\n date?: string | null;\r\n locations?: string;\r\n steps?: Step[];\r\n\r\n constructor(data?: IDay) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.locations = _data[\"locations\"] !== undefined ? _data[\"locations\"] : null;\r\n if (Array.isArray(_data[\"steps\"])) {\r\n this.steps = [] as any;\r\n for (let item of _data[\"steps\"])\r\n this.steps!.push(Step.fromJS(item));\r\n }\r\n else {\r\n this.steps = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): Day {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Day();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"locations\"] = this.locations !== undefined ? this.locations : null;\r\n if (Array.isArray(this.steps)) {\r\n data[\"steps\"] = [];\r\n for (let item of this.steps)\r\n data[\"steps\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDay {\r\n date?: string | null;\r\n locations?: string;\r\n steps?: Step[];\r\n}\r\n\r\n/** Indica ogni passo della giornata di un viaggio completo di testi, immagini, dettagli servizi, dettagli voli */\r\nexport class Step implements IStep {\r\n idx?: number;\r\n luogo?: string | null;\r\n description?: TextSeed | null;\r\n imgUrl?: string | null;\r\n dateFrom?: string;\r\n dateTo?: string;\r\n servizi?: SvcDetail[] | null;\r\n voli?: FlightSegment2[] | null;\r\n images?: ImageSeed[] | null;\r\n\r\n constructor(data?: IStep) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.idx = _data[\"idx\"] !== undefined ? _data[\"idx\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.description = _data[\"description\"] ? TextSeed.fromJS(_data[\"description\"]) : null;\r\n this.imgUrl = _data[\"imgUrl\"] !== undefined ? _data[\"imgUrl\"] : null;\r\n this.dateFrom = _data[\"dateFrom\"] !== undefined ? _data[\"dateFrom\"] : null;\r\n this.dateTo = _data[\"dateTo\"] !== undefined ? _data[\"dateTo\"] : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(SvcDetail.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n if (Array.isArray(_data[\"voli\"])) {\r\n this.voli = [] as any;\r\n for (let item of _data[\"voli\"])\r\n this.voli!.push(FlightSegment2.fromJS(item));\r\n }\r\n else {\r\n this.voli = null;\r\n }\r\n if (Array.isArray(_data[\"images\"])) {\r\n this.images = [] as any;\r\n for (let item of _data[\"images\"])\r\n this.images!.push(ImageSeed.fromJS(item));\r\n }\r\n else {\r\n this.images = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): Step {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Step();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"idx\"] = this.idx !== undefined ? this.idx : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"description\"] = this.description ? this.description.toJSON() : null;\r\n data[\"imgUrl\"] = this.imgUrl !== undefined ? this.imgUrl : null;\r\n data[\"dateFrom\"] = this.dateFrom !== undefined ? this.dateFrom : null;\r\n data[\"dateTo\"] = this.dateTo !== undefined ? this.dateTo : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.voli)) {\r\n data[\"voli\"] = [];\r\n for (let item of this.voli)\r\n data[\"voli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.images)) {\r\n data[\"images\"] = [];\r\n for (let item of this.images)\r\n data[\"images\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\n/** Indica ogni passo della giornata di un viaggio completo di testi, immagini, dettagli servizi, dettagli voli */\r\nexport interface IStep {\r\n idx?: number;\r\n luogo?: string | null;\r\n description?: TextSeed | null;\r\n imgUrl?: string | null;\r\n dateFrom?: string;\r\n dateTo?: string;\r\n servizi?: SvcDetail[] | null;\r\n voli?: FlightSegment2[] | null;\r\n images?: ImageSeed[] | null;\r\n}\r\n\r\nexport class TextSeed implements ITextSeed {\r\n title?: string;\r\n text?: string;\r\n\r\n constructor(data?: ITextSeed) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TextSeed {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TextSeed();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITextSeed {\r\n title?: string;\r\n text?: string;\r\n}\r\n\r\nexport class SvcDetail implements ISvcDetail {\r\n id?: number;\r\n name?: string | null;\r\n imgUrl?: string | null;\r\n texts?: TextSeed[] | null;\r\n\r\n constructor(data?: ISvcDetail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.imgUrl = _data[\"imgUrl\"] !== undefined ? _data[\"imgUrl\"] : null;\r\n if (Array.isArray(_data[\"texts\"])) {\r\n this.texts = [] as any;\r\n for (let item of _data[\"texts\"])\r\n this.texts!.push(TextSeed.fromJS(item));\r\n }\r\n else {\r\n this.texts = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SvcDetail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SvcDetail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"imgUrl\"] = this.imgUrl !== undefined ? this.imgUrl : null;\r\n if (Array.isArray(this.texts)) {\r\n data[\"texts\"] = [];\r\n for (let item of this.texts)\r\n data[\"texts\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISvcDetail {\r\n id?: number;\r\n name?: string | null;\r\n imgUrl?: string | null;\r\n texts?: TextSeed[] | null;\r\n}\r\n\r\nexport class SezioneTesti implements ISezioneTesti {\r\n sezione?: ArticoloSezione | null;\r\n testo?: string | null;\r\n servizioID?: number | null;\r\n testiLuoghiGiorni?: SezioneLuoghiTesti[] | null;\r\n testiDescrittiviServizi?: SezioneTestoDescrizioneServizio[] | null;\r\n override?: OverrideServizi[] | null;\r\n ufficiLocali?: SezioneUfficioLocale[] | null;\r\n testiSintesi?: SezioneSintesiTesti[] | null;\r\n\r\n constructor(data?: ISezioneTesti) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sezione = _data[\"sezione\"] ? ArticoloSezione.fromJS(_data[\"sezione\"]) : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n if (Array.isArray(_data[\"testiLuoghiGiorni\"])) {\r\n this.testiLuoghiGiorni = [] as any;\r\n for (let item of _data[\"testiLuoghiGiorni\"])\r\n this.testiLuoghiGiorni!.push(SezioneLuoghiTesti.fromJS(item));\r\n }\r\n else {\r\n this.testiLuoghiGiorni = null;\r\n }\r\n if (Array.isArray(_data[\"testiDescrittiviServizi\"])) {\r\n this.testiDescrittiviServizi = [] as any;\r\n for (let item of _data[\"testiDescrittiviServizi\"])\r\n this.testiDescrittiviServizi!.push(SezioneTestoDescrizioneServizio.fromJS(item));\r\n }\r\n else {\r\n this.testiDescrittiviServizi = null;\r\n }\r\n if (Array.isArray(_data[\"override\"])) {\r\n this.override = [] as any;\r\n for (let item of _data[\"override\"])\r\n this.override!.push(OverrideServizi.fromJS(item));\r\n }\r\n else {\r\n this.override = null;\r\n }\r\n if (Array.isArray(_data[\"ufficiLocali\"])) {\r\n this.ufficiLocali = [] as any;\r\n for (let item of _data[\"ufficiLocali\"])\r\n this.ufficiLocali!.push(SezioneUfficioLocale.fromJS(item));\r\n }\r\n else {\r\n this.ufficiLocali = null;\r\n }\r\n if (Array.isArray(_data[\"testiSintesi\"])) {\r\n this.testiSintesi = [] as any;\r\n for (let item of _data[\"testiSintesi\"])\r\n this.testiSintesi!.push(SezioneSintesiTesti.fromJS(item));\r\n }\r\n else {\r\n this.testiSintesi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SezioneTesti {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SezioneTesti();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sezione\"] = this.sezione ? this.sezione.toJSON() : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n if (Array.isArray(this.testiLuoghiGiorni)) {\r\n data[\"testiLuoghiGiorni\"] = [];\r\n for (let item of this.testiLuoghiGiorni)\r\n data[\"testiLuoghiGiorni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.testiDescrittiviServizi)) {\r\n data[\"testiDescrittiviServizi\"] = [];\r\n for (let item of this.testiDescrittiviServizi)\r\n data[\"testiDescrittiviServizi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.override)) {\r\n data[\"override\"] = [];\r\n for (let item of this.override)\r\n data[\"override\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.ufficiLocali)) {\r\n data[\"ufficiLocali\"] = [];\r\n for (let item of this.ufficiLocali)\r\n data[\"ufficiLocali\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.testiSintesi)) {\r\n data[\"testiSintesi\"] = [];\r\n for (let item of this.testiSintesi)\r\n data[\"testiSintesi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISezioneTesti {\r\n sezione?: ArticoloSezione | null;\r\n testo?: string | null;\r\n servizioID?: number | null;\r\n testiLuoghiGiorni?: SezioneLuoghiTesti[] | null;\r\n testiDescrittiviServizi?: SezioneTestoDescrizioneServizio[] | null;\r\n override?: OverrideServizi[] | null;\r\n ufficiLocali?: SezioneUfficioLocale[] | null;\r\n testiSintesi?: SezioneSintesiTesti[] | null;\r\n}\r\n\r\nexport class ArticoloSezione implements IArticoloSezione {\r\n id?: number;\r\n nomeITA!: string;\r\n nomeENG?: string | null;\r\n nomeFRA?: string | null;\r\n nomeDEU?: string | null;\r\n nomeDUT?: string | null;\r\n ordine?: number;\r\n visibilita?: EVisibilitaSezione;\r\n codice?: string | null;\r\n tipoServizio?: ETipoServizioFlags;\r\n isItinerary?: boolean;\r\n\r\n constructor(data?: IArticoloSezione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nomeITA = _data[\"nomeITA\"] !== undefined ? _data[\"nomeITA\"] : null;\r\n this.nomeENG = _data[\"nomeENG\"] !== undefined ? _data[\"nomeENG\"] : null;\r\n this.nomeFRA = _data[\"nomeFRA\"] !== undefined ? _data[\"nomeFRA\"] : null;\r\n this.nomeDEU = _data[\"nomeDEU\"] !== undefined ? _data[\"nomeDEU\"] : null;\r\n this.nomeDUT = _data[\"nomeDUT\"] !== undefined ? _data[\"nomeDUT\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.isItinerary = _data[\"isItinerary\"] !== undefined ? _data[\"isItinerary\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloSezione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloSezione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nomeITA\"] = this.nomeITA !== undefined ? this.nomeITA : null;\r\n data[\"nomeENG\"] = this.nomeENG !== undefined ? this.nomeENG : null;\r\n data[\"nomeFRA\"] = this.nomeFRA !== undefined ? this.nomeFRA : null;\r\n data[\"nomeDEU\"] = this.nomeDEU !== undefined ? this.nomeDEU : null;\r\n data[\"nomeDUT\"] = this.nomeDUT !== undefined ? this.nomeDUT : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"isItinerary\"] = this.isItinerary !== undefined ? this.isItinerary : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloSezione {\r\n id?: number;\r\n nomeITA: string;\r\n nomeENG?: string | null;\r\n nomeFRA?: string | null;\r\n nomeDEU?: string | null;\r\n nomeDUT?: string | null;\r\n ordine?: number;\r\n visibilita?: EVisibilitaSezione;\r\n codice?: string | null;\r\n tipoServizio?: ETipoServizioFlags;\r\n isItinerary?: boolean;\r\n}\r\n\r\nexport class SezioneLuoghiTesti implements ISezioneLuoghiTesti {\r\n giorno?: number;\r\n data?: string;\r\n dataFine?: string | null;\r\n nomiLuoghi?: string[] | null;\r\n testo?: string | null;\r\n hashLuoghi?: string | null;\r\n\r\n constructor(data?: ISezioneLuoghiTesti) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.dataFine = _data[\"dataFine\"] !== undefined ? _data[\"dataFine\"] : null;\r\n if (Array.isArray(_data[\"nomiLuoghi\"])) {\r\n this.nomiLuoghi = [] as any;\r\n for (let item of _data[\"nomiLuoghi\"])\r\n this.nomiLuoghi!.push(item);\r\n }\r\n else {\r\n this.nomiLuoghi = null;\r\n }\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.hashLuoghi = _data[\"hashLuoghi\"] !== undefined ? _data[\"hashLuoghi\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SezioneLuoghiTesti {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SezioneLuoghiTesti();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"dataFine\"] = this.dataFine !== undefined ? this.dataFine : null;\r\n if (Array.isArray(this.nomiLuoghi)) {\r\n data[\"nomiLuoghi\"] = [];\r\n for (let item of this.nomiLuoghi)\r\n data[\"nomiLuoghi\"].push(item);\r\n }\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"hashLuoghi\"] = this.hashLuoghi !== undefined ? this.hashLuoghi : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISezioneLuoghiTesti {\r\n giorno?: number;\r\n data?: string;\r\n dataFine?: string | null;\r\n nomiLuoghi?: string[] | null;\r\n testo?: string | null;\r\n hashLuoghi?: string | null;\r\n}\r\n\r\nexport class SezioneTestoDescrizioneServizio implements ISezioneTestoDescrizioneServizio {\r\n servizioID?: number;\r\n testo?: string | null;\r\n\r\n constructor(data?: ISezioneTestoDescrizioneServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SezioneTestoDescrizioneServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SezioneTestoDescrizioneServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISezioneTestoDescrizioneServizio {\r\n servizioID?: number;\r\n testo?: string | null;\r\n}\r\n\r\nexport class OverrideServizi implements IOverrideServizi {\r\n rigaID?: number;\r\n servizioID?: number;\r\n giorno?: number;\r\n servizioOverrideID?: number;\r\n overrideDescrizione?: string | null;\r\n\r\n constructor(data?: IOverrideServizi) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.servizioOverrideID = _data[\"servizioOverrideID\"] !== undefined ? _data[\"servizioOverrideID\"] : null;\r\n this.overrideDescrizione = _data[\"overrideDescrizione\"] !== undefined ? _data[\"overrideDescrizione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OverrideServizi {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OverrideServizi();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"servizioOverrideID\"] = this.servizioOverrideID !== undefined ? this.servizioOverrideID : null;\r\n data[\"overrideDescrizione\"] = this.overrideDescrizione !== undefined ? this.overrideDescrizione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOverrideServizi {\r\n rigaID?: number;\r\n servizioID?: number;\r\n giorno?: number;\r\n servizioOverrideID?: number;\r\n overrideDescrizione?: string | null;\r\n}\r\n\r\nexport class SezioneUfficioLocale implements ISezioneUfficioLocale {\r\n contattoID?: number;\r\n testo?: string | null;\r\n\r\n constructor(data?: ISezioneUfficioLocale) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SezioneUfficioLocale {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SezioneUfficioLocale();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISezioneUfficioLocale {\r\n contattoID?: number;\r\n testo?: string | null;\r\n}\r\n\r\nexport class SezioneSintesiTesti implements ISezioneSintesiTesti {\r\n rigaID?: number;\r\n testo?: string | null;\r\n\r\n constructor(data?: ISezioneSintesiTesti) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SezioneSintesiTesti {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SezioneSintesiTesti();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISezioneSintesiTesti {\r\n rigaID?: number;\r\n testo?: string | null;\r\n}\r\n\r\n/** Usata per generare le sezioni del PreventivoClientePlus */\r\nexport class DocSections implements IDocSections {\r\n sectionServizi?: SectionServizi;\r\n sectionUffici?: SectionUffici;\r\n sectionInfoHotel?: SectionInfoHotel;\r\n sectionNote?: SectionNote;\r\n sectionPDV?: SectionProgrammaDiViaggio;\r\n sectionAssistenza?: SectionAssistenza;\r\n sectionAssicurazione?: SectionAssicurazione;\r\n sectionElencoVoucher?: SectionElencoVoucher;\r\n sectionMiniguide?: SectionMiniguide;\r\n sectionTicketsVoli?: SectionTicketsVoli;\r\n\r\n constructor(data?: IDocSections) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sectionServizi = _data[\"sectionServizi\"] ? SectionServizi.fromJS(_data[\"sectionServizi\"]) : null;\r\n this.sectionUffici = _data[\"sectionUffici\"] ? SectionUffici.fromJS(_data[\"sectionUffici\"]) : null;\r\n this.sectionInfoHotel = _data[\"sectionInfoHotel\"] ? SectionInfoHotel.fromJS(_data[\"sectionInfoHotel\"]) : null;\r\n this.sectionNote = _data[\"sectionNote\"] ? SectionNote.fromJS(_data[\"sectionNote\"]) : null;\r\n this.sectionPDV = _data[\"sectionPDV\"] ? SectionProgrammaDiViaggio.fromJS(_data[\"sectionPDV\"]) : null;\r\n this.sectionAssistenza = _data[\"sectionAssistenza\"] ? SectionAssistenza.fromJS(_data[\"sectionAssistenza\"]) : null;\r\n this.sectionAssicurazione = _data[\"sectionAssicurazione\"] ? SectionAssicurazione.fromJS(_data[\"sectionAssicurazione\"]) : null;\r\n this.sectionElencoVoucher = _data[\"sectionElencoVoucher\"] ? SectionElencoVoucher.fromJS(_data[\"sectionElencoVoucher\"]) : null;\r\n this.sectionMiniguide = _data[\"sectionMiniguide\"] ? SectionMiniguide.fromJS(_data[\"sectionMiniguide\"]) : null;\r\n this.sectionTicketsVoli = _data[\"sectionTicketsVoli\"] ? SectionTicketsVoli.fromJS(_data[\"sectionTicketsVoli\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocSections {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocSections();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sectionServizi\"] = this.sectionServizi ? this.sectionServizi.toJSON() : null;\r\n data[\"sectionUffici\"] = this.sectionUffici ? this.sectionUffici.toJSON() : null;\r\n data[\"sectionInfoHotel\"] = this.sectionInfoHotel ? this.sectionInfoHotel.toJSON() : null;\r\n data[\"sectionNote\"] = this.sectionNote ? this.sectionNote.toJSON() : null;\r\n data[\"sectionPDV\"] = this.sectionPDV ? this.sectionPDV.toJSON() : null;\r\n data[\"sectionAssistenza\"] = this.sectionAssistenza ? this.sectionAssistenza.toJSON() : null;\r\n data[\"sectionAssicurazione\"] = this.sectionAssicurazione ? this.sectionAssicurazione.toJSON() : null;\r\n data[\"sectionElencoVoucher\"] = this.sectionElencoVoucher ? this.sectionElencoVoucher.toJSON() : null;\r\n data[\"sectionMiniguide\"] = this.sectionMiniguide ? this.sectionMiniguide.toJSON() : null;\r\n data[\"sectionTicketsVoli\"] = this.sectionTicketsVoli ? this.sectionTicketsVoli.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Usata per generare le sezioni del PreventivoClientePlus */\r\nexport interface IDocSections {\r\n sectionServizi?: SectionServizi;\r\n sectionUffici?: SectionUffici;\r\n sectionInfoHotel?: SectionInfoHotel;\r\n sectionNote?: SectionNote;\r\n sectionPDV?: SectionProgrammaDiViaggio;\r\n sectionAssistenza?: SectionAssistenza;\r\n sectionAssicurazione?: SectionAssicurazione;\r\n sectionElencoVoucher?: SectionElencoVoucher;\r\n sectionMiniguide?: SectionMiniguide;\r\n sectionTicketsVoli?: SectionTicketsVoli;\r\n}\r\n\r\nexport class ExportableSection implements IExportableSection {\r\n\r\n constructor(data?: IExportableSection) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): ExportableSection {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExportableSection();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExportableSection {\r\n}\r\n\r\nexport class SectionServizi extends ExportableSection implements ISectionServizi {\r\n servizi?: RigaServizio[] | null;\r\n\r\n constructor(data?: ISectionServizi) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(RigaServizio.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionServizi {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionServizi();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionServizi extends IExportableSection {\r\n servizi?: RigaServizio[] | null;\r\n}\r\n\r\nexport class RigaServizio implements IRigaServizio {\r\n idServizio?: number;\r\n tipo?: string | null;\r\n nome?: string | null;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n luogo?: string | null;\r\n descrizioniRighe?: string[] | null;\r\n isHotel?: boolean;\r\n abbinamentiDate?: AbbinamentoData[] | null;\r\n\r\n constructor(data?: IRigaServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.idServizio = _data[\"idServizio\"] !== undefined ? _data[\"idServizio\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n if (Array.isArray(_data[\"descrizioniRighe\"])) {\r\n this.descrizioniRighe = [] as any;\r\n for (let item of _data[\"descrizioniRighe\"])\r\n this.descrizioniRighe!.push(item);\r\n }\r\n else {\r\n this.descrizioniRighe = null;\r\n }\r\n this.isHotel = _data[\"isHotel\"] !== undefined ? _data[\"isHotel\"] : null;\r\n if (Array.isArray(_data[\"abbinamentiDate\"])) {\r\n this.abbinamentiDate = [] as any;\r\n for (let item of _data[\"abbinamentiDate\"])\r\n this.abbinamentiDate!.push(AbbinamentoData.fromJS(item));\r\n }\r\n else {\r\n this.abbinamentiDate = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): RigaServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RigaServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"idServizio\"] = this.idServizio !== undefined ? this.idServizio : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n if (Array.isArray(this.descrizioniRighe)) {\r\n data[\"descrizioniRighe\"] = [];\r\n for (let item of this.descrizioniRighe)\r\n data[\"descrizioniRighe\"].push(item);\r\n }\r\n data[\"isHotel\"] = this.isHotel !== undefined ? this.isHotel : null;\r\n if (Array.isArray(this.abbinamentiDate)) {\r\n data[\"abbinamentiDate\"] = [];\r\n for (let item of this.abbinamentiDate)\r\n data[\"abbinamentiDate\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRigaServizio {\r\n idServizio?: number;\r\n tipo?: string | null;\r\n nome?: string | null;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n luogo?: string | null;\r\n descrizioniRighe?: string[] | null;\r\n isHotel?: boolean;\r\n abbinamentiDate?: AbbinamentoData[] | null;\r\n}\r\n\r\nexport class AbbinamentoData implements IAbbinamentoData {\r\n dal?: string;\r\n al?: string;\r\n notti?: number;\r\n abbinamenti?: AbbinamentoInfo[] | null;\r\n isTutti?: boolean;\r\n overrideDalAl?: string | null;\r\n chiaveAbbinamenti?: string | null;\r\n\r\n constructor(data?: IAbbinamentoData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n if (Array.isArray(_data[\"abbinamenti\"])) {\r\n this.abbinamenti = [] as any;\r\n for (let item of _data[\"abbinamenti\"])\r\n this.abbinamenti!.push(AbbinamentoInfo.fromJS(item));\r\n }\r\n else {\r\n this.abbinamenti = null;\r\n }\r\n this.isTutti = _data[\"isTutti\"] !== undefined ? _data[\"isTutti\"] : null;\r\n this.overrideDalAl = _data[\"overrideDalAl\"] !== undefined ? _data[\"overrideDalAl\"] : null;\r\n this.chiaveAbbinamenti = _data[\"chiaveAbbinamenti\"] !== undefined ? _data[\"chiaveAbbinamenti\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AbbinamentoData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AbbinamentoData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n if (Array.isArray(this.abbinamenti)) {\r\n data[\"abbinamenti\"] = [];\r\n for (let item of this.abbinamenti)\r\n data[\"abbinamenti\"].push(item.toJSON());\r\n }\r\n data[\"isTutti\"] = this.isTutti !== undefined ? this.isTutti : null;\r\n data[\"overrideDalAl\"] = this.overrideDalAl !== undefined ? this.overrideDalAl : null;\r\n data[\"chiaveAbbinamenti\"] = this.chiaveAbbinamenti !== undefined ? this.chiaveAbbinamenti : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamentoData {\r\n dal?: string;\r\n al?: string;\r\n notti?: number;\r\n abbinamenti?: AbbinamentoInfo[] | null;\r\n isTutti?: boolean;\r\n overrideDalAl?: string | null;\r\n chiaveAbbinamenti?: string | null;\r\n}\r\n\r\nexport class AbbinamentoInfo implements IAbbinamentoInfo {\r\n id?: number;\r\n abbinamento?: Abbinamento | null;\r\n clientiID?: AbbinamentoCliente[] | null;\r\n clienti?: ClienteInfo[] | null;\r\n righe?: OffertaDatoInfo[] | null;\r\n clientiIdHash?: string | null;\r\n isTutti?: boolean;\r\n isVolo?: boolean;\r\n\r\n constructor(data?: IAbbinamentoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.abbinamento = _data[\"abbinamento\"] ? Abbinamento.fromJS(_data[\"abbinamento\"]) : null;\r\n if (Array.isArray(_data[\"clientiID\"])) {\r\n this.clientiID = [] as any;\r\n for (let item of _data[\"clientiID\"])\r\n this.clientiID!.push(AbbinamentoCliente.fromJS(item));\r\n }\r\n else {\r\n this.clientiID = null;\r\n }\r\n if (Array.isArray(_data[\"clienti\"])) {\r\n this.clienti = [] as any;\r\n for (let item of _data[\"clienti\"])\r\n this.clienti!.push(ClienteInfo.fromJS(item));\r\n }\r\n else {\r\n this.clienti = null;\r\n }\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(OffertaDatoInfo.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n this.clientiIdHash = _data[\"clientiIdHash\"] !== undefined ? _data[\"clientiIdHash\"] : null;\r\n this.isTutti = _data[\"isTutti\"] !== undefined ? _data[\"isTutti\"] : null;\r\n this.isVolo = _data[\"isVolo\"] !== undefined ? _data[\"isVolo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AbbinamentoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AbbinamentoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"abbinamento\"] = this.abbinamento ? this.abbinamento.toJSON() : null;\r\n if (Array.isArray(this.clientiID)) {\r\n data[\"clientiID\"] = [];\r\n for (let item of this.clientiID)\r\n data[\"clientiID\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.clienti)) {\r\n data[\"clienti\"] = [];\r\n for (let item of this.clienti)\r\n data[\"clienti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n data[\"clientiIdHash\"] = this.clientiIdHash !== undefined ? this.clientiIdHash : null;\r\n data[\"isTutti\"] = this.isTutti !== undefined ? this.isTutti : null;\r\n data[\"isVolo\"] = this.isVolo !== undefined ? this.isVolo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamentoInfo {\r\n id?: number;\r\n abbinamento?: Abbinamento | null;\r\n clientiID?: AbbinamentoCliente[] | null;\r\n clienti?: ClienteInfo[] | null;\r\n righe?: OffertaDatoInfo[] | null;\r\n clientiIdHash?: string | null;\r\n isTutti?: boolean;\r\n isVolo?: boolean;\r\n}\r\n\r\nexport class AbbinamentoCliente implements IAbbinamentoCliente {\r\n abbinamentoID?: number;\r\n clienteID?: number;\r\n\r\n constructor(data?: IAbbinamentoCliente) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AbbinamentoCliente {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AbbinamentoCliente();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamentoCliente {\r\n abbinamentoID?: number;\r\n clienteID?: number;\r\n}\r\n\r\nexport class ClienteInfo implements IClienteInfo {\r\n id?: number;\r\n cliente?: Cliente | null;\r\n dati?: ClienteDato | null;\r\n offerta?: OffertaInfo | null;\r\n abbinamenti?: AbbinamentoInfo[] | null;\r\n dataNascitaDefault?: string;\r\n nomeVisualizzato?: string | null;\r\n nomeAbbreviato?: string | null;\r\n datiCompleti?: boolean;\r\n datiCompletiVolo?: boolean;\r\n isChild?: boolean;\r\n dataNascitaNormalizzata?: string;\r\n prezzo?: number;\r\n codiceFiscaleOk?: boolean;\r\n\r\n constructor(data?: IClienteInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.cliente = _data[\"cliente\"] ? Cliente.fromJS(_data[\"cliente\"]) : null;\r\n this.dati = _data[\"dati\"] ? ClienteDato.fromJS(_data[\"dati\"]) : null;\r\n this.offerta = _data[\"offerta\"] ? OffertaInfo.fromJS(_data[\"offerta\"]) : null;\r\n if (Array.isArray(_data[\"abbinamenti\"])) {\r\n this.abbinamenti = [] as any;\r\n for (let item of _data[\"abbinamenti\"])\r\n this.abbinamenti!.push(AbbinamentoInfo.fromJS(item));\r\n }\r\n else {\r\n this.abbinamenti = null;\r\n }\r\n this.dataNascitaDefault = _data[\"dataNascitaDefault\"] !== undefined ? _data[\"dataNascitaDefault\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.nomeAbbreviato = _data[\"nomeAbbreviato\"] !== undefined ? _data[\"nomeAbbreviato\"] : null;\r\n this.datiCompleti = _data[\"datiCompleti\"] !== undefined ? _data[\"datiCompleti\"] : null;\r\n this.datiCompletiVolo = _data[\"datiCompletiVolo\"] !== undefined ? _data[\"datiCompletiVolo\"] : null;\r\n this.isChild = _data[\"isChild\"] !== undefined ? _data[\"isChild\"] : null;\r\n this.dataNascitaNormalizzata = _data[\"dataNascitaNormalizzata\"] !== undefined ? _data[\"dataNascitaNormalizzata\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.codiceFiscaleOk = _data[\"codiceFiscaleOk\"] !== undefined ? _data[\"codiceFiscaleOk\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClienteInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClienteInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"cliente\"] = this.cliente ? this.cliente.toJSON() : null;\r\n data[\"dati\"] = this.dati ? this.dati.toJSON() : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n if (Array.isArray(this.abbinamenti)) {\r\n data[\"abbinamenti\"] = [];\r\n for (let item of this.abbinamenti)\r\n data[\"abbinamenti\"].push(item.toJSON());\r\n }\r\n data[\"dataNascitaDefault\"] = this.dataNascitaDefault !== undefined ? this.dataNascitaDefault : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"nomeAbbreviato\"] = this.nomeAbbreviato !== undefined ? this.nomeAbbreviato : null;\r\n data[\"datiCompleti\"] = this.datiCompleti !== undefined ? this.datiCompleti : null;\r\n data[\"datiCompletiVolo\"] = this.datiCompletiVolo !== undefined ? this.datiCompletiVolo : null;\r\n data[\"isChild\"] = this.isChild !== undefined ? this.isChild : null;\r\n data[\"dataNascitaNormalizzata\"] = this.dataNascitaNormalizzata !== undefined ? this.dataNascitaNormalizzata : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"codiceFiscaleOk\"] = this.codiceFiscaleOk !== undefined ? this.codiceFiscaleOk : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClienteInfo {\r\n id?: number;\r\n cliente?: Cliente | null;\r\n dati?: ClienteDato | null;\r\n offerta?: OffertaInfo | null;\r\n abbinamenti?: AbbinamentoInfo[] | null;\r\n dataNascitaDefault?: string;\r\n nomeVisualizzato?: string | null;\r\n nomeAbbreviato?: string | null;\r\n datiCompleti?: boolean;\r\n datiCompletiVolo?: boolean;\r\n isChild?: boolean;\r\n dataNascitaNormalizzata?: string;\r\n prezzo?: number;\r\n codiceFiscaleOk?: boolean;\r\n}\r\n\r\nexport class OffertaInfo implements IOffertaInfo {\r\n id?: number;\r\n offerta?: Offerta | null;\r\n offertaAgenzia?: OffertaAgenzia | null;\r\n stato?: OffertaAgenziaStato | null;\r\n tipoViaggio?: ETipoViaggio;\r\n modalitaQuote?: EModalitaQuote;\r\n operatore?: OperatoreInfo | null;\r\n contattoAgenzia?: ContattoInfo | null;\r\n noteOffertaAgenzia?: string[] | null;\r\n contattoNetwork?: ContattoInfo | null;\r\n accordoOperatore?: AccordoContattoInfo | null;\r\n terminePagamentoAgenzia?: TerminePagamentoInfo | null;\r\n pricingRules?: PricingRule[] | null;\r\n quotaVoliNettoTasse?: number;\r\n commissioneBiglietteriaMassima?: number;\r\n dirittiAgenziaMassimi?: number;\r\n percentualeDirittiAgenzia?: number | null;\r\n tags?: TagOffertaInfo[] | null;\r\n isNozze?: boolean;\r\n percentualeAcconto?: number | null;\r\n percentualeAccontoNozze?: number | null;\r\n percentualeAccontoAgenzia?: number | null;\r\n noAnticipoBiglietti?: boolean;\r\n noAnticipoQuote?: boolean;\r\n clienti?: ClienteInfo[] | null;\r\n leader?: ClienteInfo | null;\r\n utenteCreatore?: UtenteInfo | null;\r\n utenteAgenzia?: UtenteInfo | null;\r\n emailAddetto?: string | null;\r\n utentePreventivo?: UtenteInfo | null;\r\n utenteConferma?: UtenteInfo | null;\r\n utenteDocumenti?: UtenteInfo | null;\r\n utenteTariffa?: UtenteInfo | null;\r\n utenteBigliettiAerei?: UtenteInfo | null;\r\n contattoClienteDiretto?: ContattoInfo | null;\r\n contattoPromoter?: ContattoInfo | null;\r\n contattoCorriere?: ContattoInfo | null;\r\n statoUtente?: EStatoOffertaUtente;\r\n allServiziIds?: number[] | null;\r\n allContattiIds?: number[] | null;\r\n allLuoghiIds?: number[] | null;\r\n itinerarioAccessori?: ItinerarioOffertaInfo | null;\r\n itinerari?: ItinerarioOffertaInfo[] | null;\r\n itinerariVoli?: ItinerarioVoloInfo[] | null;\r\n documenti?: DocumentoInfo[] | null;\r\n nomeCorriere?: string | null;\r\n email?: EmailInfo[] | null;\r\n abbinamentoTutti?: AbbinamentoInfo | null;\r\n abbinamenti?: AbbinamentoInfo[] | null;\r\n dataNascitaDefaultAdulto?: string;\r\n dataNascitaDefaultBambino?: string;\r\n righeDict?: { [key: string]: OffertaDatoInfo; } | null;\r\n righe?: OffertaDatoInfo[] | null;\r\n note?: OffertaNotaInfo[] | null;\r\n haVoli?: boolean;\r\n voli?: VoloInfo[] | null;\r\n voliTickets?: VoloTicketsInfo[] | null;\r\n destinazione?: LuogoInfo | null;\r\n aeroportoPartenza?: Aeroporto | null;\r\n voucher?: VoucherInfo[] | null;\r\n dataMinimaTappa?: string | null;\r\n dataMassimaTappa?: string | null;\r\n luoghiOfferta?: LuogoInfo[] | null;\r\n incassi?: OffertaIncasso[] | null;\r\n saldata?: boolean;\r\n compensato?: number;\r\n dataCompensazione?: string | null;\r\n acconto?: number;\r\n dataAcconto?: string | null;\r\n saldo?: number;\r\n dataSaldo?: string | null;\r\n totaleLordo?: number;\r\n totaleNetto?: number;\r\n totaleCostoNetto?: number;\r\n totaleCommissioni?: number;\r\n giorni?: number;\r\n notti?: number;\r\n warnings?: WarningOfferta[] | null;\r\n confermabile?: boolean;\r\n confermabileAgenzia?: boolean;\r\n confermata?: boolean;\r\n annullata?: boolean;\r\n annullataADV?: boolean;\r\n annullataTO?: boolean;\r\n sbloccata?: boolean;\r\n utenteSblocco?: UtenteInfo | null;\r\n warningsVoli?: WarningOfferta[] | null;\r\n voliPrenotabili?: boolean;\r\n voucherTuristico?: OffertaDatoInfo | null;\r\n\r\n constructor(data?: IOffertaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.offerta = _data[\"offerta\"] ? Offerta.fromJS(_data[\"offerta\"]) : null;\r\n this.offertaAgenzia = _data[\"offertaAgenzia\"] ? OffertaAgenzia.fromJS(_data[\"offertaAgenzia\"]) : null;\r\n this.stato = _data[\"stato\"] ? OffertaAgenziaStato.fromJS(_data[\"stato\"]) : null;\r\n this.tipoViaggio = _data[\"tipoViaggio\"] !== undefined ? _data[\"tipoViaggio\"] : null;\r\n this.modalitaQuote = _data[\"modalitaQuote\"] !== undefined ? _data[\"modalitaQuote\"] : null;\r\n this.operatore = _data[\"operatore\"] ? OperatoreInfo.fromJS(_data[\"operatore\"]) : null;\r\n this.contattoAgenzia = _data[\"contattoAgenzia\"] ? ContattoInfo.fromJS(_data[\"contattoAgenzia\"]) : null;\r\n if (Array.isArray(_data[\"noteOffertaAgenzia\"])) {\r\n this.noteOffertaAgenzia = [] as any;\r\n for (let item of _data[\"noteOffertaAgenzia\"])\r\n this.noteOffertaAgenzia!.push(item);\r\n }\r\n else {\r\n this.noteOffertaAgenzia = null;\r\n }\r\n this.contattoNetwork = _data[\"contattoNetwork\"] ? ContattoInfo.fromJS(_data[\"contattoNetwork\"]) : null;\r\n this.accordoOperatore = _data[\"accordoOperatore\"] ? AccordoContattoInfo.fromJS(_data[\"accordoOperatore\"]) : null;\r\n this.terminePagamentoAgenzia = _data[\"terminePagamentoAgenzia\"] ? TerminePagamentoInfo.fromJS(_data[\"terminePagamentoAgenzia\"]) : null;\r\n if (Array.isArray(_data[\"pricingRules\"])) {\r\n this.pricingRules = [] as any;\r\n for (let item of _data[\"pricingRules\"])\r\n this.pricingRules!.push(PricingRule.fromJS(item));\r\n }\r\n else {\r\n this.pricingRules = null;\r\n }\r\n this.quotaVoliNettoTasse = _data[\"quotaVoliNettoTasse\"] !== undefined ? _data[\"quotaVoliNettoTasse\"] : null;\r\n this.commissioneBiglietteriaMassima = _data[\"commissioneBiglietteriaMassima\"] !== undefined ? _data[\"commissioneBiglietteriaMassima\"] : null;\r\n this.dirittiAgenziaMassimi = _data[\"dirittiAgenziaMassimi\"] !== undefined ? _data[\"dirittiAgenziaMassimi\"] : null;\r\n this.percentualeDirittiAgenzia = _data[\"percentualeDirittiAgenzia\"] !== undefined ? _data[\"percentualeDirittiAgenzia\"] : null;\r\n if (Array.isArray(_data[\"tags\"])) {\r\n this.tags = [] as any;\r\n for (let item of _data[\"tags\"])\r\n this.tags!.push(TagOffertaInfo.fromJS(item));\r\n }\r\n else {\r\n this.tags = null;\r\n }\r\n this.isNozze = _data[\"isNozze\"] !== undefined ? _data[\"isNozze\"] : null;\r\n this.percentualeAcconto = _data[\"percentualeAcconto\"] !== undefined ? _data[\"percentualeAcconto\"] : null;\r\n this.percentualeAccontoNozze = _data[\"percentualeAccontoNozze\"] !== undefined ? _data[\"percentualeAccontoNozze\"] : null;\r\n this.percentualeAccontoAgenzia = _data[\"percentualeAccontoAgenzia\"] !== undefined ? _data[\"percentualeAccontoAgenzia\"] : null;\r\n this.noAnticipoBiglietti = _data[\"noAnticipoBiglietti\"] !== undefined ? _data[\"noAnticipoBiglietti\"] : null;\r\n this.noAnticipoQuote = _data[\"noAnticipoQuote\"] !== undefined ? _data[\"noAnticipoQuote\"] : null;\r\n if (Array.isArray(_data[\"clienti\"])) {\r\n this.clienti = [] as any;\r\n for (let item of _data[\"clienti\"])\r\n this.clienti!.push(ClienteInfo.fromJS(item));\r\n }\r\n else {\r\n this.clienti = null;\r\n }\r\n this.leader = _data[\"leader\"] ? ClienteInfo.fromJS(_data[\"leader\"]) : null;\r\n this.utenteCreatore = _data[\"utenteCreatore\"] ? UtenteInfo.fromJS(_data[\"utenteCreatore\"]) : null;\r\n this.utenteAgenzia = _data[\"utenteAgenzia\"] ? UtenteInfo.fromJS(_data[\"utenteAgenzia\"]) : null;\r\n this.emailAddetto = _data[\"emailAddetto\"] !== undefined ? _data[\"emailAddetto\"] : null;\r\n this.utentePreventivo = _data[\"utentePreventivo\"] ? UtenteInfo.fromJS(_data[\"utentePreventivo\"]) : null;\r\n this.utenteConferma = _data[\"utenteConferma\"] ? UtenteInfo.fromJS(_data[\"utenteConferma\"]) : null;\r\n this.utenteDocumenti = _data[\"utenteDocumenti\"] ? UtenteInfo.fromJS(_data[\"utenteDocumenti\"]) : null;\r\n this.utenteTariffa = _data[\"utenteTariffa\"] ? UtenteInfo.fromJS(_data[\"utenteTariffa\"]) : null;\r\n this.utenteBigliettiAerei = _data[\"utenteBigliettiAerei\"] ? UtenteInfo.fromJS(_data[\"utenteBigliettiAerei\"]) : null;\r\n this.contattoClienteDiretto = _data[\"contattoClienteDiretto\"] ? ContattoInfo.fromJS(_data[\"contattoClienteDiretto\"]) : null;\r\n this.contattoPromoter = _data[\"contattoPromoter\"] ? ContattoInfo.fromJS(_data[\"contattoPromoter\"]) : null;\r\n this.contattoCorriere = _data[\"contattoCorriere\"] ? ContattoInfo.fromJS(_data[\"contattoCorriere\"]) : null;\r\n this.statoUtente = _data[\"statoUtente\"] !== undefined ? _data[\"statoUtente\"] : null;\r\n if (Array.isArray(_data[\"allServiziIds\"])) {\r\n this.allServiziIds = [] as any;\r\n for (let item of _data[\"allServiziIds\"])\r\n this.allServiziIds!.push(item);\r\n }\r\n else {\r\n this.allServiziIds = null;\r\n }\r\n if (Array.isArray(_data[\"allContattiIds\"])) {\r\n this.allContattiIds = [] as any;\r\n for (let item of _data[\"allContattiIds\"])\r\n this.allContattiIds!.push(item);\r\n }\r\n else {\r\n this.allContattiIds = null;\r\n }\r\n if (Array.isArray(_data[\"allLuoghiIds\"])) {\r\n this.allLuoghiIds = [] as any;\r\n for (let item of _data[\"allLuoghiIds\"])\r\n this.allLuoghiIds!.push(item);\r\n }\r\n else {\r\n this.allLuoghiIds = null;\r\n }\r\n this.itinerarioAccessori = _data[\"itinerarioAccessori\"] ? ItinerarioOffertaInfo.fromJS(_data[\"itinerarioAccessori\"]) : null;\r\n if (Array.isArray(_data[\"itinerari\"])) {\r\n this.itinerari = [] as any;\r\n for (let item of _data[\"itinerari\"])\r\n this.itinerari!.push(ItinerarioOffertaInfo.fromJS(item));\r\n }\r\n else {\r\n this.itinerari = null;\r\n }\r\n if (Array.isArray(_data[\"itinerariVoli\"])) {\r\n this.itinerariVoli = [] as any;\r\n for (let item of _data[\"itinerariVoli\"])\r\n this.itinerariVoli!.push(ItinerarioVoloInfo.fromJS(item));\r\n }\r\n else {\r\n this.itinerariVoli = null;\r\n }\r\n if (Array.isArray(_data[\"documenti\"])) {\r\n this.documenti = [] as any;\r\n for (let item of _data[\"documenti\"])\r\n this.documenti!.push(DocumentoInfo.fromJS(item));\r\n }\r\n else {\r\n this.documenti = null;\r\n }\r\n this.nomeCorriere = _data[\"nomeCorriere\"] !== undefined ? _data[\"nomeCorriere\"] : null;\r\n if (Array.isArray(_data[\"email\"])) {\r\n this.email = [] as any;\r\n for (let item of _data[\"email\"])\r\n this.email!.push(EmailInfo.fromJS(item));\r\n }\r\n else {\r\n this.email = null;\r\n }\r\n this.abbinamentoTutti = _data[\"abbinamentoTutti\"] ? AbbinamentoInfo.fromJS(_data[\"abbinamentoTutti\"]) : null;\r\n if (Array.isArray(_data[\"abbinamenti\"])) {\r\n this.abbinamenti = [] as any;\r\n for (let item of _data[\"abbinamenti\"])\r\n this.abbinamenti!.push(AbbinamentoInfo.fromJS(item));\r\n }\r\n else {\r\n this.abbinamenti = null;\r\n }\r\n this.dataNascitaDefaultAdulto = _data[\"dataNascitaDefaultAdulto\"] !== undefined ? _data[\"dataNascitaDefaultAdulto\"] : null;\r\n this.dataNascitaDefaultBambino = _data[\"dataNascitaDefaultBambino\"] !== undefined ? _data[\"dataNascitaDefaultBambino\"] : null;\r\n if (_data[\"righeDict\"]) {\r\n this.righeDict = {} as any;\r\n for (let key in _data[\"righeDict\"]) {\r\n if (_data[\"righeDict\"].hasOwnProperty(key))\r\n (this.righeDict)![key] = _data[\"righeDict\"][key] ? OffertaDatoInfo.fromJS(_data[\"righeDict\"][key]) : new OffertaDatoInfo();\r\n }\r\n }\r\n else {\r\n this.righeDict = null;\r\n }\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(OffertaDatoInfo.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(OffertaNotaInfo.fromJS(item));\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n this.haVoli = _data[\"haVoli\"] !== undefined ? _data[\"haVoli\"] : null;\r\n if (Array.isArray(_data[\"voli\"])) {\r\n this.voli = [] as any;\r\n for (let item of _data[\"voli\"])\r\n this.voli!.push(VoloInfo.fromJS(item));\r\n }\r\n else {\r\n this.voli = null;\r\n }\r\n if (Array.isArray(_data[\"voliTickets\"])) {\r\n this.voliTickets = [] as any;\r\n for (let item of _data[\"voliTickets\"])\r\n this.voliTickets!.push(VoloTicketsInfo.fromJS(item));\r\n }\r\n else {\r\n this.voliTickets = null;\r\n }\r\n this.destinazione = _data[\"destinazione\"] ? LuogoInfo.fromJS(_data[\"destinazione\"]) : null;\r\n this.aeroportoPartenza = _data[\"aeroportoPartenza\"] ? Aeroporto.fromJS(_data[\"aeroportoPartenza\"]) : null;\r\n if (Array.isArray(_data[\"voucher\"])) {\r\n this.voucher = [] as any;\r\n for (let item of _data[\"voucher\"])\r\n this.voucher!.push(VoucherInfo.fromJS(item));\r\n }\r\n else {\r\n this.voucher = null;\r\n }\r\n this.dataMinimaTappa = _data[\"dataMinimaTappa\"] !== undefined ? _data[\"dataMinimaTappa\"] : null;\r\n this.dataMassimaTappa = _data[\"dataMassimaTappa\"] !== undefined ? _data[\"dataMassimaTappa\"] : null;\r\n if (Array.isArray(_data[\"luoghiOfferta\"])) {\r\n this.luoghiOfferta = [] as any;\r\n for (let item of _data[\"luoghiOfferta\"])\r\n this.luoghiOfferta!.push(LuogoInfo.fromJS(item));\r\n }\r\n else {\r\n this.luoghiOfferta = null;\r\n }\r\n if (Array.isArray(_data[\"incassi\"])) {\r\n this.incassi = [] as any;\r\n for (let item of _data[\"incassi\"])\r\n this.incassi!.push(OffertaIncasso.fromJS(item));\r\n }\r\n else {\r\n this.incassi = null;\r\n }\r\n this.saldata = _data[\"saldata\"] !== undefined ? _data[\"saldata\"] : null;\r\n this.compensato = _data[\"compensato\"] !== undefined ? _data[\"compensato\"] : null;\r\n this.dataCompensazione = _data[\"dataCompensazione\"] !== undefined ? _data[\"dataCompensazione\"] : null;\r\n this.acconto = _data[\"acconto\"] !== undefined ? _data[\"acconto\"] : null;\r\n this.dataAcconto = _data[\"dataAcconto\"] !== undefined ? _data[\"dataAcconto\"] : null;\r\n this.saldo = _data[\"saldo\"] !== undefined ? _data[\"saldo\"] : null;\r\n this.dataSaldo = _data[\"dataSaldo\"] !== undefined ? _data[\"dataSaldo\"] : null;\r\n this.totaleLordo = _data[\"totaleLordo\"] !== undefined ? _data[\"totaleLordo\"] : null;\r\n this.totaleNetto = _data[\"totaleNetto\"] !== undefined ? _data[\"totaleNetto\"] : null;\r\n this.totaleCostoNetto = _data[\"totaleCostoNetto\"] !== undefined ? _data[\"totaleCostoNetto\"] : null;\r\n this.totaleCommissioni = _data[\"totaleCommissioni\"] !== undefined ? _data[\"totaleCommissioni\"] : null;\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n if (Array.isArray(_data[\"warnings\"])) {\r\n this.warnings = [] as any;\r\n for (let item of _data[\"warnings\"])\r\n this.warnings!.push(WarningOfferta.fromJS(item));\r\n }\r\n else {\r\n this.warnings = null;\r\n }\r\n this.confermabile = _data[\"confermabile\"] !== undefined ? _data[\"confermabile\"] : null;\r\n this.confermabileAgenzia = _data[\"confermabileAgenzia\"] !== undefined ? _data[\"confermabileAgenzia\"] : null;\r\n this.confermata = _data[\"confermata\"] !== undefined ? _data[\"confermata\"] : null;\r\n this.annullata = _data[\"annullata\"] !== undefined ? _data[\"annullata\"] : null;\r\n this.annullataADV = _data[\"annullataADV\"] !== undefined ? _data[\"annullataADV\"] : null;\r\n this.annullataTO = _data[\"annullataTO\"] !== undefined ? _data[\"annullataTO\"] : null;\r\n this.sbloccata = _data[\"sbloccata\"] !== undefined ? _data[\"sbloccata\"] : null;\r\n this.utenteSblocco = _data[\"utenteSblocco\"] ? UtenteInfo.fromJS(_data[\"utenteSblocco\"]) : null;\r\n if (Array.isArray(_data[\"warningsVoli\"])) {\r\n this.warningsVoli = [] as any;\r\n for (let item of _data[\"warningsVoli\"])\r\n this.warningsVoli!.push(WarningOfferta.fromJS(item));\r\n }\r\n else {\r\n this.warningsVoli = null;\r\n }\r\n this.voliPrenotabili = _data[\"voliPrenotabili\"] !== undefined ? _data[\"voliPrenotabili\"] : null;\r\n this.voucherTuristico = _data[\"voucherTuristico\"] ? OffertaDatoInfo.fromJS(_data[\"voucherTuristico\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"offertaAgenzia\"] = this.offertaAgenzia ? this.offertaAgenzia.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"tipoViaggio\"] = this.tipoViaggio !== undefined ? this.tipoViaggio : null;\r\n data[\"modalitaQuote\"] = this.modalitaQuote !== undefined ? this.modalitaQuote : null;\r\n data[\"operatore\"] = this.operatore ? this.operatore.toJSON() : null;\r\n data[\"contattoAgenzia\"] = this.contattoAgenzia ? this.contattoAgenzia.toJSON() : null;\r\n if (Array.isArray(this.noteOffertaAgenzia)) {\r\n data[\"noteOffertaAgenzia\"] = [];\r\n for (let item of this.noteOffertaAgenzia)\r\n data[\"noteOffertaAgenzia\"].push(item);\r\n }\r\n data[\"contattoNetwork\"] = this.contattoNetwork ? this.contattoNetwork.toJSON() : null;\r\n data[\"accordoOperatore\"] = this.accordoOperatore ? this.accordoOperatore.toJSON() : null;\r\n data[\"terminePagamentoAgenzia\"] = this.terminePagamentoAgenzia ? this.terminePagamentoAgenzia.toJSON() : null;\r\n if (Array.isArray(this.pricingRules)) {\r\n data[\"pricingRules\"] = [];\r\n for (let item of this.pricingRules)\r\n data[\"pricingRules\"].push(item.toJSON());\r\n }\r\n data[\"quotaVoliNettoTasse\"] = this.quotaVoliNettoTasse !== undefined ? this.quotaVoliNettoTasse : null;\r\n data[\"commissioneBiglietteriaMassima\"] = this.commissioneBiglietteriaMassima !== undefined ? this.commissioneBiglietteriaMassima : null;\r\n data[\"dirittiAgenziaMassimi\"] = this.dirittiAgenziaMassimi !== undefined ? this.dirittiAgenziaMassimi : null;\r\n data[\"percentualeDirittiAgenzia\"] = this.percentualeDirittiAgenzia !== undefined ? this.percentualeDirittiAgenzia : null;\r\n if (Array.isArray(this.tags)) {\r\n data[\"tags\"] = [];\r\n for (let item of this.tags)\r\n data[\"tags\"].push(item.toJSON());\r\n }\r\n data[\"isNozze\"] = this.isNozze !== undefined ? this.isNozze : null;\r\n data[\"percentualeAcconto\"] = this.percentualeAcconto !== undefined ? this.percentualeAcconto : null;\r\n data[\"percentualeAccontoNozze\"] = this.percentualeAccontoNozze !== undefined ? this.percentualeAccontoNozze : null;\r\n data[\"percentualeAccontoAgenzia\"] = this.percentualeAccontoAgenzia !== undefined ? this.percentualeAccontoAgenzia : null;\r\n data[\"noAnticipoBiglietti\"] = this.noAnticipoBiglietti !== undefined ? this.noAnticipoBiglietti : null;\r\n data[\"noAnticipoQuote\"] = this.noAnticipoQuote !== undefined ? this.noAnticipoQuote : null;\r\n if (Array.isArray(this.clienti)) {\r\n data[\"clienti\"] = [];\r\n for (let item of this.clienti)\r\n data[\"clienti\"].push(item.toJSON());\r\n }\r\n data[\"leader\"] = this.leader ? this.leader.toJSON() : null;\r\n data[\"utenteCreatore\"] = this.utenteCreatore ? this.utenteCreatore.toJSON() : null;\r\n data[\"utenteAgenzia\"] = this.utenteAgenzia ? this.utenteAgenzia.toJSON() : null;\r\n data[\"emailAddetto\"] = this.emailAddetto !== undefined ? this.emailAddetto : null;\r\n data[\"utentePreventivo\"] = this.utentePreventivo ? this.utentePreventivo.toJSON() : null;\r\n data[\"utenteConferma\"] = this.utenteConferma ? this.utenteConferma.toJSON() : null;\r\n data[\"utenteDocumenti\"] = this.utenteDocumenti ? this.utenteDocumenti.toJSON() : null;\r\n data[\"utenteTariffa\"] = this.utenteTariffa ? this.utenteTariffa.toJSON() : null;\r\n data[\"utenteBigliettiAerei\"] = this.utenteBigliettiAerei ? this.utenteBigliettiAerei.toJSON() : null;\r\n data[\"contattoClienteDiretto\"] = this.contattoClienteDiretto ? this.contattoClienteDiretto.toJSON() : null;\r\n data[\"contattoPromoter\"] = this.contattoPromoter ? this.contattoPromoter.toJSON() : null;\r\n data[\"contattoCorriere\"] = this.contattoCorriere ? this.contattoCorriere.toJSON() : null;\r\n data[\"statoUtente\"] = this.statoUtente !== undefined ? this.statoUtente : null;\r\n if (Array.isArray(this.allServiziIds)) {\r\n data[\"allServiziIds\"] = [];\r\n for (let item of this.allServiziIds)\r\n data[\"allServiziIds\"].push(item);\r\n }\r\n if (Array.isArray(this.allContattiIds)) {\r\n data[\"allContattiIds\"] = [];\r\n for (let item of this.allContattiIds)\r\n data[\"allContattiIds\"].push(item);\r\n }\r\n if (Array.isArray(this.allLuoghiIds)) {\r\n data[\"allLuoghiIds\"] = [];\r\n for (let item of this.allLuoghiIds)\r\n data[\"allLuoghiIds\"].push(item);\r\n }\r\n data[\"itinerarioAccessori\"] = this.itinerarioAccessori ? this.itinerarioAccessori.toJSON() : null;\r\n if (Array.isArray(this.itinerari)) {\r\n data[\"itinerari\"] = [];\r\n for (let item of this.itinerari)\r\n data[\"itinerari\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.itinerariVoli)) {\r\n data[\"itinerariVoli\"] = [];\r\n for (let item of this.itinerariVoli)\r\n data[\"itinerariVoli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.documenti)) {\r\n data[\"documenti\"] = [];\r\n for (let item of this.documenti)\r\n data[\"documenti\"].push(item.toJSON());\r\n }\r\n data[\"nomeCorriere\"] = this.nomeCorriere !== undefined ? this.nomeCorriere : null;\r\n if (Array.isArray(this.email)) {\r\n data[\"email\"] = [];\r\n for (let item of this.email)\r\n data[\"email\"].push(item.toJSON());\r\n }\r\n data[\"abbinamentoTutti\"] = this.abbinamentoTutti ? this.abbinamentoTutti.toJSON() : null;\r\n if (Array.isArray(this.abbinamenti)) {\r\n data[\"abbinamenti\"] = [];\r\n for (let item of this.abbinamenti)\r\n data[\"abbinamenti\"].push(item.toJSON());\r\n }\r\n data[\"dataNascitaDefaultAdulto\"] = this.dataNascitaDefaultAdulto !== undefined ? this.dataNascitaDefaultAdulto : null;\r\n data[\"dataNascitaDefaultBambino\"] = this.dataNascitaDefaultBambino !== undefined ? this.dataNascitaDefaultBambino : null;\r\n if (this.righeDict) {\r\n data[\"righeDict\"] = {};\r\n for (let key in this.righeDict) {\r\n if (this.righeDict.hasOwnProperty(key))\r\n (data[\"righeDict\"])[key] = this.righeDict[key] ? this.righeDict[key].toJSON() : null;\r\n }\r\n }\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item.toJSON());\r\n }\r\n data[\"haVoli\"] = this.haVoli !== undefined ? this.haVoli : null;\r\n if (Array.isArray(this.voli)) {\r\n data[\"voli\"] = [];\r\n for (let item of this.voli)\r\n data[\"voli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.voliTickets)) {\r\n data[\"voliTickets\"] = [];\r\n for (let item of this.voliTickets)\r\n data[\"voliTickets\"].push(item.toJSON());\r\n }\r\n data[\"destinazione\"] = this.destinazione ? this.destinazione.toJSON() : null;\r\n data[\"aeroportoPartenza\"] = this.aeroportoPartenza ? this.aeroportoPartenza.toJSON() : null;\r\n if (Array.isArray(this.voucher)) {\r\n data[\"voucher\"] = [];\r\n for (let item of this.voucher)\r\n data[\"voucher\"].push(item.toJSON());\r\n }\r\n data[\"dataMinimaTappa\"] = this.dataMinimaTappa !== undefined ? this.dataMinimaTappa : null;\r\n data[\"dataMassimaTappa\"] = this.dataMassimaTappa !== undefined ? this.dataMassimaTappa : null;\r\n if (Array.isArray(this.luoghiOfferta)) {\r\n data[\"luoghiOfferta\"] = [];\r\n for (let item of this.luoghiOfferta)\r\n data[\"luoghiOfferta\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.incassi)) {\r\n data[\"incassi\"] = [];\r\n for (let item of this.incassi)\r\n data[\"incassi\"].push(item.toJSON());\r\n }\r\n data[\"saldata\"] = this.saldata !== undefined ? this.saldata : null;\r\n data[\"compensato\"] = this.compensato !== undefined ? this.compensato : null;\r\n data[\"dataCompensazione\"] = this.dataCompensazione !== undefined ? this.dataCompensazione : null;\r\n data[\"acconto\"] = this.acconto !== undefined ? this.acconto : null;\r\n data[\"dataAcconto\"] = this.dataAcconto !== undefined ? this.dataAcconto : null;\r\n data[\"saldo\"] = this.saldo !== undefined ? this.saldo : null;\r\n data[\"dataSaldo\"] = this.dataSaldo !== undefined ? this.dataSaldo : null;\r\n data[\"totaleLordo\"] = this.totaleLordo !== undefined ? this.totaleLordo : null;\r\n data[\"totaleNetto\"] = this.totaleNetto !== undefined ? this.totaleNetto : null;\r\n data[\"totaleCostoNetto\"] = this.totaleCostoNetto !== undefined ? this.totaleCostoNetto : null;\r\n data[\"totaleCommissioni\"] = this.totaleCommissioni !== undefined ? this.totaleCommissioni : null;\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n if (Array.isArray(this.warnings)) {\r\n data[\"warnings\"] = [];\r\n for (let item of this.warnings)\r\n data[\"warnings\"].push(item.toJSON());\r\n }\r\n data[\"confermabile\"] = this.confermabile !== undefined ? this.confermabile : null;\r\n data[\"confermabileAgenzia\"] = this.confermabileAgenzia !== undefined ? this.confermabileAgenzia : null;\r\n data[\"confermata\"] = this.confermata !== undefined ? this.confermata : null;\r\n data[\"annullata\"] = this.annullata !== undefined ? this.annullata : null;\r\n data[\"annullataADV\"] = this.annullataADV !== undefined ? this.annullataADV : null;\r\n data[\"annullataTO\"] = this.annullataTO !== undefined ? this.annullataTO : null;\r\n data[\"sbloccata\"] = this.sbloccata !== undefined ? this.sbloccata : null;\r\n data[\"utenteSblocco\"] = this.utenteSblocco ? this.utenteSblocco.toJSON() : null;\r\n if (Array.isArray(this.warningsVoli)) {\r\n data[\"warningsVoli\"] = [];\r\n for (let item of this.warningsVoli)\r\n data[\"warningsVoli\"].push(item.toJSON());\r\n }\r\n data[\"voliPrenotabili\"] = this.voliPrenotabili !== undefined ? this.voliPrenotabili : null;\r\n data[\"voucherTuristico\"] = this.voucherTuristico ? this.voucherTuristico.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaInfo {\r\n id?: number;\r\n offerta?: Offerta | null;\r\n offertaAgenzia?: OffertaAgenzia | null;\r\n stato?: OffertaAgenziaStato | null;\r\n tipoViaggio?: ETipoViaggio;\r\n modalitaQuote?: EModalitaQuote;\r\n operatore?: OperatoreInfo | null;\r\n contattoAgenzia?: ContattoInfo | null;\r\n noteOffertaAgenzia?: string[] | null;\r\n contattoNetwork?: ContattoInfo | null;\r\n accordoOperatore?: AccordoContattoInfo | null;\r\n terminePagamentoAgenzia?: TerminePagamentoInfo | null;\r\n pricingRules?: PricingRule[] | null;\r\n quotaVoliNettoTasse?: number;\r\n commissioneBiglietteriaMassima?: number;\r\n dirittiAgenziaMassimi?: number;\r\n percentualeDirittiAgenzia?: number | null;\r\n tags?: TagOffertaInfo[] | null;\r\n isNozze?: boolean;\r\n percentualeAcconto?: number | null;\r\n percentualeAccontoNozze?: number | null;\r\n percentualeAccontoAgenzia?: number | null;\r\n noAnticipoBiglietti?: boolean;\r\n noAnticipoQuote?: boolean;\r\n clienti?: ClienteInfo[] | null;\r\n leader?: ClienteInfo | null;\r\n utenteCreatore?: UtenteInfo | null;\r\n utenteAgenzia?: UtenteInfo | null;\r\n emailAddetto?: string | null;\r\n utentePreventivo?: UtenteInfo | null;\r\n utenteConferma?: UtenteInfo | null;\r\n utenteDocumenti?: UtenteInfo | null;\r\n utenteTariffa?: UtenteInfo | null;\r\n utenteBigliettiAerei?: UtenteInfo | null;\r\n contattoClienteDiretto?: ContattoInfo | null;\r\n contattoPromoter?: ContattoInfo | null;\r\n contattoCorriere?: ContattoInfo | null;\r\n statoUtente?: EStatoOffertaUtente;\r\n allServiziIds?: number[] | null;\r\n allContattiIds?: number[] | null;\r\n allLuoghiIds?: number[] | null;\r\n itinerarioAccessori?: ItinerarioOffertaInfo | null;\r\n itinerari?: ItinerarioOffertaInfo[] | null;\r\n itinerariVoli?: ItinerarioVoloInfo[] | null;\r\n documenti?: DocumentoInfo[] | null;\r\n nomeCorriere?: string | null;\r\n email?: EmailInfo[] | null;\r\n abbinamentoTutti?: AbbinamentoInfo | null;\r\n abbinamenti?: AbbinamentoInfo[] | null;\r\n dataNascitaDefaultAdulto?: string;\r\n dataNascitaDefaultBambino?: string;\r\n righeDict?: { [key: string]: OffertaDatoInfo; } | null;\r\n righe?: OffertaDatoInfo[] | null;\r\n note?: OffertaNotaInfo[] | null;\r\n haVoli?: boolean;\r\n voli?: VoloInfo[] | null;\r\n voliTickets?: VoloTicketsInfo[] | null;\r\n destinazione?: LuogoInfo | null;\r\n aeroportoPartenza?: Aeroporto | null;\r\n voucher?: VoucherInfo[] | null;\r\n dataMinimaTappa?: string | null;\r\n dataMassimaTappa?: string | null;\r\n luoghiOfferta?: LuogoInfo[] | null;\r\n incassi?: OffertaIncasso[] | null;\r\n saldata?: boolean;\r\n compensato?: number;\r\n dataCompensazione?: string | null;\r\n acconto?: number;\r\n dataAcconto?: string | null;\r\n saldo?: number;\r\n dataSaldo?: string | null;\r\n totaleLordo?: number;\r\n totaleNetto?: number;\r\n totaleCostoNetto?: number;\r\n totaleCommissioni?: number;\r\n giorni?: number;\r\n notti?: number;\r\n warnings?: WarningOfferta[] | null;\r\n confermabile?: boolean;\r\n confermabileAgenzia?: boolean;\r\n confermata?: boolean;\r\n annullata?: boolean;\r\n annullataADV?: boolean;\r\n annullataTO?: boolean;\r\n sbloccata?: boolean;\r\n utenteSblocco?: UtenteInfo | null;\r\n warningsVoli?: WarningOfferta[] | null;\r\n voliPrenotabili?: boolean;\r\n voucherTuristico?: OffertaDatoInfo | null;\r\n}\r\n\r\nexport class OperatoreInfo implements IOperatoreInfo {\r\n _EOperatore?: EOperatore | null;\r\n id?: number;\r\n operatore?: OperatoreView;\r\n eOperatore?: EOperatore;\r\n searchTerms?: string;\r\n amadeusParams?: CrypticMarket | null;\r\n websites?: WebsiteInfo[];\r\n contatto?: ContattoInfo;\r\n valuta?: ValutaInfo;\r\n opzioni?: OpzioniOperatore;\r\n\r\n constructor(data?: IOperatoreInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this._EOperatore = _data[\"_EOperatore\"] !== undefined ? _data[\"_EOperatore\"] : null;\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.operatore = _data[\"operatore\"] ? OperatoreView.fromJS(_data[\"operatore\"]) : null;\r\n this.eOperatore = _data[\"eOperatore\"] !== undefined ? _data[\"eOperatore\"] : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n this.amadeusParams = _data[\"amadeusParams\"] ? CrypticMarket.fromJS(_data[\"amadeusParams\"]) : null;\r\n if (Array.isArray(_data[\"websites\"])) {\r\n this.websites = [] as any;\r\n for (let item of _data[\"websites\"])\r\n this.websites!.push(WebsiteInfo.fromJS(item));\r\n }\r\n else {\r\n this.websites = null;\r\n }\r\n this.contatto = _data[\"contatto\"] ? ContattoInfo.fromJS(_data[\"contatto\"]) : null;\r\n this.valuta = _data[\"valuta\"] ? ValutaInfo.fromJS(_data[\"valuta\"]) : null;\r\n this.opzioni = _data[\"opzioni\"] ? OpzioniOperatore.fromJS(_data[\"opzioni\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OperatoreInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OperatoreInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"_EOperatore\"] = this._EOperatore !== undefined ? this._EOperatore : null;\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"operatore\"] = this.operatore ? this.operatore.toJSON() : null;\r\n data[\"eOperatore\"] = this.eOperatore !== undefined ? this.eOperatore : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n data[\"amadeusParams\"] = this.amadeusParams ? this.amadeusParams.toJSON() : null;\r\n if (Array.isArray(this.websites)) {\r\n data[\"websites\"] = [];\r\n for (let item of this.websites)\r\n data[\"websites\"].push(item.toJSON());\r\n }\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n data[\"valuta\"] = this.valuta ? this.valuta.toJSON() : null;\r\n data[\"opzioni\"] = this.opzioni ? this.opzioni.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOperatoreInfo {\r\n _EOperatore?: EOperatore | null;\r\n id?: number;\r\n operatore?: OperatoreView;\r\n eOperatore?: EOperatore;\r\n searchTerms?: string;\r\n amadeusParams?: CrypticMarket | null;\r\n websites?: WebsiteInfo[];\r\n contatto?: ContattoInfo;\r\n valuta?: ValutaInfo;\r\n opzioni?: OpzioniOperatore;\r\n}\r\n\r\nexport abstract class OperatoreView implements IOperatoreView {\r\n operatoreID?: number;\r\n contattoID?: number;\r\n nome?: string;\r\n nomeVisualizzato?: string | null;\r\n valutaID?: number;\r\n visibile?: boolean;\r\n\r\n constructor(data?: IOperatoreView) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.operatoreID = _data[\"operatoreID\"] !== undefined ? _data[\"operatoreID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.visibile = _data[\"visibile\"] !== undefined ? _data[\"visibile\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OperatoreView {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'OperatoreView' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatoreID\"] = this.operatoreID !== undefined ? this.operatoreID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"visibile\"] = this.visibile !== undefined ? this.visibile : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOperatoreView {\r\n operatoreID?: number;\r\n contattoID?: number;\r\n nome?: string;\r\n nomeVisualizzato?: string | null;\r\n valutaID?: number;\r\n visibile?: boolean;\r\n}\r\n\r\nexport class CrypticMarket implements ICrypticMarket {\r\n name?: string;\r\n market?: string;\r\n jupiterEnv?: string;\r\n offices?: CrypticKeyValues[];\r\n selectedOffice?: string;\r\n companyCodes?: CrypticKeyValues[];\r\n selectedCompanyCode?: string;\r\n quotePrivateCodes?: CrypticKeyValues[];\r\n selectedQuotePrivateCode?: string;\r\n queueCodes?: CrypticKeyValues[];\r\n selectedQueueCode?: string;\r\n statuses?: CrypticKeyValues[];\r\n selectedStatus?: string;\r\n\r\n constructor(data?: ICrypticMarket) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.market = _data[\"market\"] !== undefined ? _data[\"market\"] : null;\r\n this.jupiterEnv = _data[\"jupiterEnv\"] !== undefined ? _data[\"jupiterEnv\"] : null;\r\n if (Array.isArray(_data[\"offices\"])) {\r\n this.offices = [] as any;\r\n for (let item of _data[\"offices\"])\r\n this.offices!.push(CrypticKeyValues.fromJS(item));\r\n }\r\n else {\r\n this.offices = null;\r\n }\r\n this.selectedOffice = _data[\"selectedOffice\"] !== undefined ? _data[\"selectedOffice\"] : null;\r\n if (Array.isArray(_data[\"companyCodes\"])) {\r\n this.companyCodes = [] as any;\r\n for (let item of _data[\"companyCodes\"])\r\n this.companyCodes!.push(CrypticKeyValues.fromJS(item));\r\n }\r\n else {\r\n this.companyCodes = null;\r\n }\r\n this.selectedCompanyCode = _data[\"selectedCompanyCode\"] !== undefined ? _data[\"selectedCompanyCode\"] : null;\r\n if (Array.isArray(_data[\"quotePrivateCodes\"])) {\r\n this.quotePrivateCodes = [] as any;\r\n for (let item of _data[\"quotePrivateCodes\"])\r\n this.quotePrivateCodes!.push(CrypticKeyValues.fromJS(item));\r\n }\r\n else {\r\n this.quotePrivateCodes = null;\r\n }\r\n this.selectedQuotePrivateCode = _data[\"selectedQuotePrivateCode\"] !== undefined ? _data[\"selectedQuotePrivateCode\"] : null;\r\n if (Array.isArray(_data[\"queueCodes\"])) {\r\n this.queueCodes = [] as any;\r\n for (let item of _data[\"queueCodes\"])\r\n this.queueCodes!.push(CrypticKeyValues.fromJS(item));\r\n }\r\n else {\r\n this.queueCodes = null;\r\n }\r\n this.selectedQueueCode = _data[\"selectedQueueCode\"] !== undefined ? _data[\"selectedQueueCode\"] : null;\r\n if (Array.isArray(_data[\"statuses\"])) {\r\n this.statuses = [] as any;\r\n for (let item of _data[\"statuses\"])\r\n this.statuses!.push(CrypticKeyValues.fromJS(item));\r\n }\r\n else {\r\n this.statuses = null;\r\n }\r\n this.selectedStatus = _data[\"selectedStatus\"] !== undefined ? _data[\"selectedStatus\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CrypticMarket {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CrypticMarket();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"market\"] = this.market !== undefined ? this.market : null;\r\n data[\"jupiterEnv\"] = this.jupiterEnv !== undefined ? this.jupiterEnv : null;\r\n if (Array.isArray(this.offices)) {\r\n data[\"offices\"] = [];\r\n for (let item of this.offices)\r\n data[\"offices\"].push(item.toJSON());\r\n }\r\n data[\"selectedOffice\"] = this.selectedOffice !== undefined ? this.selectedOffice : null;\r\n if (Array.isArray(this.companyCodes)) {\r\n data[\"companyCodes\"] = [];\r\n for (let item of this.companyCodes)\r\n data[\"companyCodes\"].push(item.toJSON());\r\n }\r\n data[\"selectedCompanyCode\"] = this.selectedCompanyCode !== undefined ? this.selectedCompanyCode : null;\r\n if (Array.isArray(this.quotePrivateCodes)) {\r\n data[\"quotePrivateCodes\"] = [];\r\n for (let item of this.quotePrivateCodes)\r\n data[\"quotePrivateCodes\"].push(item.toJSON());\r\n }\r\n data[\"selectedQuotePrivateCode\"] = this.selectedQuotePrivateCode !== undefined ? this.selectedQuotePrivateCode : null;\r\n if (Array.isArray(this.queueCodes)) {\r\n data[\"queueCodes\"] = [];\r\n for (let item of this.queueCodes)\r\n data[\"queueCodes\"].push(item.toJSON());\r\n }\r\n data[\"selectedQueueCode\"] = this.selectedQueueCode !== undefined ? this.selectedQueueCode : null;\r\n if (Array.isArray(this.statuses)) {\r\n data[\"statuses\"] = [];\r\n for (let item of this.statuses)\r\n data[\"statuses\"].push(item.toJSON());\r\n }\r\n data[\"selectedStatus\"] = this.selectedStatus !== undefined ? this.selectedStatus : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICrypticMarket {\r\n name?: string;\r\n market?: string;\r\n jupiterEnv?: string;\r\n offices?: CrypticKeyValues[];\r\n selectedOffice?: string;\r\n companyCodes?: CrypticKeyValues[];\r\n selectedCompanyCode?: string;\r\n quotePrivateCodes?: CrypticKeyValues[];\r\n selectedQuotePrivateCode?: string;\r\n queueCodes?: CrypticKeyValues[];\r\n selectedQueueCode?: string;\r\n statuses?: CrypticKeyValues[];\r\n selectedStatus?: string;\r\n}\r\n\r\nexport class CrypticKeyValues implements ICrypticKeyValues {\r\n name?: string;\r\n value?: string;\r\n\r\n constructor(data?: ICrypticKeyValues) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.value = _data[\"value\"] !== undefined ? _data[\"value\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CrypticKeyValues {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CrypticKeyValues();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"value\"] = this.value !== undefined ? this.value : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICrypticKeyValues {\r\n name?: string;\r\n value?: string;\r\n}\r\n\r\nexport class WebsiteInfo implements IWebsiteInfo {\r\n id?: number;\r\n website?: Website;\r\n hosts?: string[];\r\n linguaDefault?: Lingua;\r\n availableLanguages?: WebsiteLanguage[];\r\n operatore?: OperatoreInfo;\r\n accordo?: AccordoInfo;\r\n defaultLangCode?: string;\r\n\r\n constructor(data?: IWebsiteInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.website = _data[\"website\"] ? Website.fromJS(_data[\"website\"]) : null;\r\n if (Array.isArray(_data[\"hosts\"])) {\r\n this.hosts = [] as any;\r\n for (let item of _data[\"hosts\"])\r\n this.hosts!.push(item);\r\n }\r\n else {\r\n this.hosts = null;\r\n }\r\n this.linguaDefault = _data[\"linguaDefault\"] ? Lingua.fromJS(_data[\"linguaDefault\"]) : null;\r\n if (Array.isArray(_data[\"availableLanguages\"])) {\r\n this.availableLanguages = [] as any;\r\n for (let item of _data[\"availableLanguages\"])\r\n this.availableLanguages!.push(WebsiteLanguage.fromJS(item));\r\n }\r\n else {\r\n this.availableLanguages = null;\r\n }\r\n this.operatore = _data[\"operatore\"] ? OperatoreInfo.fromJS(_data[\"operatore\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n this.defaultLangCode = _data[\"defaultLangCode\"] !== undefined ? _data[\"defaultLangCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"website\"] = this.website ? this.website.toJSON() : null;\r\n if (Array.isArray(this.hosts)) {\r\n data[\"hosts\"] = [];\r\n for (let item of this.hosts)\r\n data[\"hosts\"].push(item);\r\n }\r\n data[\"linguaDefault\"] = this.linguaDefault ? this.linguaDefault.toJSON() : null;\r\n if (Array.isArray(this.availableLanguages)) {\r\n data[\"availableLanguages\"] = [];\r\n for (let item of this.availableLanguages)\r\n data[\"availableLanguages\"].push(item.toJSON());\r\n }\r\n data[\"operatore\"] = this.operatore ? this.operatore.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"defaultLangCode\"] = this.defaultLangCode !== undefined ? this.defaultLangCode : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteInfo {\r\n id?: number;\r\n website?: Website;\r\n hosts?: string[];\r\n linguaDefault?: Lingua;\r\n availableLanguages?: WebsiteLanguage[];\r\n operatore?: OperatoreInfo;\r\n accordo?: AccordoInfo;\r\n defaultLangCode?: string;\r\n}\r\n\r\nexport class Website implements IWebsite {\r\n id?: number;\r\n nome!: string;\r\n hosts!: string;\r\n operatore?: EOperatore;\r\n linguaDefaultID?: ELingua;\r\n accordoID?: number;\r\n lingueDisponibili?: string | null;\r\n\r\n constructor(data?: IWebsite) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.hosts = _data[\"hosts\"] !== undefined ? _data[\"hosts\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.linguaDefaultID = _data[\"linguaDefaultID\"] !== undefined ? _data[\"linguaDefaultID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.lingueDisponibili = _data[\"lingueDisponibili\"] !== undefined ? _data[\"lingueDisponibili\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Website {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Website();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"hosts\"] = this.hosts !== undefined ? this.hosts : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"linguaDefaultID\"] = this.linguaDefaultID !== undefined ? this.linguaDefaultID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"lingueDisponibili\"] = this.lingueDisponibili !== undefined ? this.lingueDisponibili : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsite {\r\n id?: number;\r\n nome: string;\r\n hosts: string;\r\n operatore?: EOperatore;\r\n linguaDefaultID?: ELingua;\r\n accordoID?: number;\r\n lingueDisponibili?: string | null;\r\n}\r\n\r\nexport class Lingua implements ILingua {\r\n linguaID?: ELingua;\r\n nome?: string | null;\r\n codice!: string;\r\n\r\n constructor(data?: ILingua) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.linguaID = _data[\"linguaID\"] !== undefined ? _data[\"linguaID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Lingua {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Lingua();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"linguaID\"] = this.linguaID !== undefined ? this.linguaID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILingua {\r\n linguaID?: ELingua;\r\n nome?: string | null;\r\n codice: string;\r\n}\r\n\r\nexport class WebsiteLanguage implements IWebsiteLanguage {\r\n linguaID?: ELingua;\r\n nome?: string | null;\r\n codice?: string | null;\r\n\r\n constructor(data?: IWebsiteLanguage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.linguaID = _data[\"linguaID\"] !== undefined ? _data[\"linguaID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLanguage {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLanguage();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"linguaID\"] = this.linguaID !== undefined ? this.linguaID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLanguage {\r\n linguaID?: ELingua;\r\n nome?: string | null;\r\n codice?: string | null;\r\n}\r\n\r\nexport class AccordoInfo implements IAccordoInfo {\r\n id?: number;\r\n accordo?: Accordo;\r\n searchTerms?: string;\r\n srtNome?: string;\r\n contatto?: ContattoInfo | null;\r\n srtContattoNome?: string | null;\r\n srtContattoLuogo_it?: string | null;\r\n srtContattoLuogo_en?: string | null;\r\n srtContattoLuogo_fr?: string | null;\r\n srtContattoLuogo_de?: string | null;\r\n articoliAccordo?: ArticoloInfo[];\r\n valuta?: ValutaInfo | null;\r\n host2Host?: boolean;\r\n tabellaCostiCommissioniDefault?: TabellaCostiCommissioniInfo | null;\r\n tabelleCostiCommissioni?: TabellaCostiCommissioniInfo[];\r\n tabelleCostiCommissioniByID?: { [key: string]: TabellaCostiCommissioniInfo; };\r\n datiAggiuntivi?: AccordoDatoAggiuntivo[];\r\n contraenti?: AccordoContatto[];\r\n fornitore?: EFornitore;\r\n isValid?: boolean;\r\n isDeleted?: boolean;\r\n reservationsFroms?: string[];\r\n\r\n constructor(data?: IAccordoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.accordo = _data[\"accordo\"] ? Accordo.fromJS(_data[\"accordo\"]) : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n this.srtNome = _data[\"srtNome\"] !== undefined ? _data[\"srtNome\"] : null;\r\n this.contatto = _data[\"contatto\"] ? ContattoInfo.fromJS(_data[\"contatto\"]) : null;\r\n this.srtContattoNome = _data[\"srtContattoNome\"] !== undefined ? _data[\"srtContattoNome\"] : null;\r\n this.srtContattoLuogo_it = _data[\"srtContattoLuogo_it\"] !== undefined ? _data[\"srtContattoLuogo_it\"] : null;\r\n this.srtContattoLuogo_en = _data[\"srtContattoLuogo_en\"] !== undefined ? _data[\"srtContattoLuogo_en\"] : null;\r\n this.srtContattoLuogo_fr = _data[\"srtContattoLuogo_fr\"] !== undefined ? _data[\"srtContattoLuogo_fr\"] : null;\r\n this.srtContattoLuogo_de = _data[\"srtContattoLuogo_de\"] !== undefined ? _data[\"srtContattoLuogo_de\"] : null;\r\n if (Array.isArray(_data[\"articoliAccordo\"])) {\r\n this.articoliAccordo = [] as any;\r\n for (let item of _data[\"articoliAccordo\"])\r\n this.articoliAccordo!.push(ArticoloInfo.fromJS(item));\r\n }\r\n else {\r\n this.articoliAccordo = null;\r\n }\r\n this.valuta = _data[\"valuta\"] ? ValutaInfo.fromJS(_data[\"valuta\"]) : null;\r\n this.host2Host = _data[\"host2Host\"] !== undefined ? _data[\"host2Host\"] : null;\r\n this.tabellaCostiCommissioniDefault = _data[\"tabellaCostiCommissioniDefault\"] ? TabellaCostiCommissioniInfo.fromJS(_data[\"tabellaCostiCommissioniDefault\"]) : null;\r\n if (Array.isArray(_data[\"tabelleCostiCommissioni\"])) {\r\n this.tabelleCostiCommissioni = [] as any;\r\n for (let item of _data[\"tabelleCostiCommissioni\"])\r\n this.tabelleCostiCommissioni!.push(TabellaCostiCommissioniInfo.fromJS(item));\r\n }\r\n else {\r\n this.tabelleCostiCommissioni = null;\r\n }\r\n if (_data[\"tabelleCostiCommissioniByID\"]) {\r\n this.tabelleCostiCommissioniByID = {} as any;\r\n for (let key in _data[\"tabelleCostiCommissioniByID\"]) {\r\n if (_data[\"tabelleCostiCommissioniByID\"].hasOwnProperty(key))\r\n (this.tabelleCostiCommissioniByID)![key] = _data[\"tabelleCostiCommissioniByID\"][key] ? TabellaCostiCommissioniInfo.fromJS(_data[\"tabelleCostiCommissioniByID\"][key]) : new TabellaCostiCommissioniInfo();\r\n }\r\n }\r\n else {\r\n this.tabelleCostiCommissioniByID = null;\r\n }\r\n if (Array.isArray(_data[\"datiAggiuntivi\"])) {\r\n this.datiAggiuntivi = [] as any;\r\n for (let item of _data[\"datiAggiuntivi\"])\r\n this.datiAggiuntivi!.push(AccordoDatoAggiuntivo.fromJS(item));\r\n }\r\n else {\r\n this.datiAggiuntivi = null;\r\n }\r\n if (Array.isArray(_data[\"contraenti\"])) {\r\n this.contraenti = [] as any;\r\n for (let item of _data[\"contraenti\"])\r\n this.contraenti!.push(AccordoContatto.fromJS(item));\r\n }\r\n else {\r\n this.contraenti = null;\r\n }\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.isValid = _data[\"isValid\"] !== undefined ? _data[\"isValid\"] : null;\r\n this.isDeleted = _data[\"isDeleted\"] !== undefined ? _data[\"isDeleted\"] : null;\r\n if (Array.isArray(_data[\"reservationsFroms\"])) {\r\n this.reservationsFroms = [] as any;\r\n for (let item of _data[\"reservationsFroms\"])\r\n this.reservationsFroms!.push(item);\r\n }\r\n else {\r\n this.reservationsFroms = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n data[\"srtNome\"] = this.srtNome !== undefined ? this.srtNome : null;\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n data[\"srtContattoNome\"] = this.srtContattoNome !== undefined ? this.srtContattoNome : null;\r\n data[\"srtContattoLuogo_it\"] = this.srtContattoLuogo_it !== undefined ? this.srtContattoLuogo_it : null;\r\n data[\"srtContattoLuogo_en\"] = this.srtContattoLuogo_en !== undefined ? this.srtContattoLuogo_en : null;\r\n data[\"srtContattoLuogo_fr\"] = this.srtContattoLuogo_fr !== undefined ? this.srtContattoLuogo_fr : null;\r\n data[\"srtContattoLuogo_de\"] = this.srtContattoLuogo_de !== undefined ? this.srtContattoLuogo_de : null;\r\n if (Array.isArray(this.articoliAccordo)) {\r\n data[\"articoliAccordo\"] = [];\r\n for (let item of this.articoliAccordo)\r\n data[\"articoliAccordo\"].push(item.toJSON());\r\n }\r\n data[\"valuta\"] = this.valuta ? this.valuta.toJSON() : null;\r\n data[\"host2Host\"] = this.host2Host !== undefined ? this.host2Host : null;\r\n data[\"tabellaCostiCommissioniDefault\"] = this.tabellaCostiCommissioniDefault ? this.tabellaCostiCommissioniDefault.toJSON() : null;\r\n if (Array.isArray(this.tabelleCostiCommissioni)) {\r\n data[\"tabelleCostiCommissioni\"] = [];\r\n for (let item of this.tabelleCostiCommissioni)\r\n data[\"tabelleCostiCommissioni\"].push(item.toJSON());\r\n }\r\n if (this.tabelleCostiCommissioniByID) {\r\n data[\"tabelleCostiCommissioniByID\"] = {};\r\n for (let key in this.tabelleCostiCommissioniByID) {\r\n if (this.tabelleCostiCommissioniByID.hasOwnProperty(key))\r\n (data[\"tabelleCostiCommissioniByID\"])[key] = this.tabelleCostiCommissioniByID[key] ? this.tabelleCostiCommissioniByID[key].toJSON() : null;\r\n }\r\n }\r\n if (Array.isArray(this.datiAggiuntivi)) {\r\n data[\"datiAggiuntivi\"] = [];\r\n for (let item of this.datiAggiuntivi)\r\n data[\"datiAggiuntivi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.contraenti)) {\r\n data[\"contraenti\"] = [];\r\n for (let item of this.contraenti)\r\n data[\"contraenti\"].push(item.toJSON());\r\n }\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"isValid\"] = this.isValid !== undefined ? this.isValid : null;\r\n data[\"isDeleted\"] = this.isDeleted !== undefined ? this.isDeleted : null;\r\n if (Array.isArray(this.reservationsFroms)) {\r\n data[\"reservationsFroms\"] = [];\r\n for (let item of this.reservationsFroms)\r\n data[\"reservationsFroms\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoInfo {\r\n id?: number;\r\n accordo?: Accordo;\r\n searchTerms?: string;\r\n srtNome?: string;\r\n contatto?: ContattoInfo | null;\r\n srtContattoNome?: string | null;\r\n srtContattoLuogo_it?: string | null;\r\n srtContattoLuogo_en?: string | null;\r\n srtContattoLuogo_fr?: string | null;\r\n srtContattoLuogo_de?: string | null;\r\n articoliAccordo?: ArticoloInfo[];\r\n valuta?: ValutaInfo | null;\r\n host2Host?: boolean;\r\n tabellaCostiCommissioniDefault?: TabellaCostiCommissioniInfo | null;\r\n tabelleCostiCommissioni?: TabellaCostiCommissioniInfo[];\r\n tabelleCostiCommissioniByID?: { [key: string]: TabellaCostiCommissioniInfo; };\r\n datiAggiuntivi?: AccordoDatoAggiuntivo[];\r\n contraenti?: AccordoContatto[];\r\n fornitore?: EFornitore;\r\n isValid?: boolean;\r\n isDeleted?: boolean;\r\n reservationsFroms?: string[];\r\n}\r\n\r\nexport class ContattoInfo implements IContattoInfo {\r\n id?: number;\r\n uniqueID?: string | null;\r\n contatto?: Contatto | null;\r\n isFake?: boolean;\r\n nomeVisualizzato?: string | null;\r\n nomeAbbreviato?: string | null;\r\n ragioneSociale?: string | null;\r\n email?: string | null;\r\n descrizione?: string | null;\r\n relazioni?: ContattoRelazione[] | null;\r\n relazioniParent?: ContattoRelazione[] | null;\r\n contattoPromoter?: ContattoInfo | null;\r\n srtPromoter?: string | null;\r\n contattoNetwork?: ContattoInfo | null;\r\n srtNetwork?: string | null;\r\n recapiti?: ContattoRecapito[] | null;\r\n luogoContatto?: LuogoInfo | null;\r\n srtNomeLuogo_it?: string | null;\r\n srtNomeLuogo_fr?: string | null;\r\n srtNomeLuogo_de?: string | null;\r\n srtNomeLuogo_en?: string | null;\r\n srtNomeRegione_it?: string | null;\r\n srtNomeRegione_fr?: string | null;\r\n srtNomeRegione_de?: string | null;\r\n srtNomeRegione_en?: string | null;\r\n luogoFatturazione?: LuogoInfo | null;\r\n categoria?: CategoriaContatto | null;\r\n srtCategoria?: string | null;\r\n accordi?: AccordoContattoInfo[] | null;\r\n accordiOperatore?: { [key in keyof typeof EOperatore]?: AccordoContattoInfo; } | null;\r\n accordoNaar?: AccordoContattoInfo | null;\r\n srtAccordoNaar?: string | null;\r\n srtPagamentoAccordoNaar_it?: string | null;\r\n srtPagamentoAccordoNaar_fr?: string | null;\r\n srtPagamentoAccordoNaar_de?: string | null;\r\n srtPagamentoAccordoNaar_en?: string | null;\r\n srtPagamentoBiglietteriaNaar_it?: string | null;\r\n srtPagamentoBiglietteriaNaar_fr?: string | null;\r\n srtPagamentoBiglietteriaNaar_de?: string | null;\r\n srtPagamentoBiglietteriaNaar_en?: string | null;\r\n mappa?: Mappa | null;\r\n loghi?: ContattoLogo[] | null;\r\n logoADV?: LogoInfo | null;\r\n datiAggiuntivi?: ContattoDato[] | null;\r\n statistiche?: ContattoStatistica[] | null;\r\n indirizzoCompleto?: string | null;\r\n luogoFattura?: LuogoInfo | null;\r\n codiceNazioneFattura?: string | null;\r\n indirizzoFattura?: string | null;\r\n numeroCivicoFattura?: string | null;\r\n capFattura?: string | null;\r\n partitaIva?: string | null;\r\n searchTerms?: string | null;\r\n srtNome?: string | null;\r\n srtCognome?: string | null;\r\n opzioni?: ContattoOpzione | null;\r\n emailDocumentiContabili?: string | null;\r\n codiceUnivocoAgenziaFE?: string | null;\r\n indirizzoPecAgenziaFE?: string | null;\r\n datiHotelCompleti?: boolean;\r\n haMappa?: boolean;\r\n haServizio?: boolean;\r\n websiteUrl?: string | null;\r\n logoUrl?: string | null;\r\n lingua?: ELingua | null;\r\n\r\n constructor(data?: IContattoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.uniqueID = _data[\"uniqueID\"] !== undefined ? _data[\"uniqueID\"] : null;\r\n this.contatto = _data[\"contatto\"] ? Contatto.fromJS(_data[\"contatto\"]) : null;\r\n this.isFake = _data[\"isFake\"] !== undefined ? _data[\"isFake\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.nomeAbbreviato = _data[\"nomeAbbreviato\"] !== undefined ? _data[\"nomeAbbreviato\"] : null;\r\n this.ragioneSociale = _data[\"ragioneSociale\"] !== undefined ? _data[\"ragioneSociale\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n if (Array.isArray(_data[\"relazioni\"])) {\r\n this.relazioni = [] as any;\r\n for (let item of _data[\"relazioni\"])\r\n this.relazioni!.push(ContattoRelazione.fromJS(item));\r\n }\r\n else {\r\n this.relazioni = null;\r\n }\r\n if (Array.isArray(_data[\"relazioniParent\"])) {\r\n this.relazioniParent = [] as any;\r\n for (let item of _data[\"relazioniParent\"])\r\n this.relazioniParent!.push(ContattoRelazione.fromJS(item));\r\n }\r\n else {\r\n this.relazioniParent = null;\r\n }\r\n this.contattoPromoter = _data[\"contattoPromoter\"] ? ContattoInfo.fromJS(_data[\"contattoPromoter\"]) : null;\r\n this.srtPromoter = _data[\"srtPromoter\"] !== undefined ? _data[\"srtPromoter\"] : null;\r\n this.contattoNetwork = _data[\"contattoNetwork\"] ? ContattoInfo.fromJS(_data[\"contattoNetwork\"]) : null;\r\n this.srtNetwork = _data[\"srtNetwork\"] !== undefined ? _data[\"srtNetwork\"] : null;\r\n if (Array.isArray(_data[\"recapiti\"])) {\r\n this.recapiti = [] as any;\r\n for (let item of _data[\"recapiti\"])\r\n this.recapiti!.push(ContattoRecapito.fromJS(item));\r\n }\r\n else {\r\n this.recapiti = null;\r\n }\r\n this.luogoContatto = _data[\"luogoContatto\"] ? LuogoInfo.fromJS(_data[\"luogoContatto\"]) : null;\r\n this.srtNomeLuogo_it = _data[\"srtNomeLuogo_it\"] !== undefined ? _data[\"srtNomeLuogo_it\"] : null;\r\n this.srtNomeLuogo_fr = _data[\"srtNomeLuogo_fr\"] !== undefined ? _data[\"srtNomeLuogo_fr\"] : null;\r\n this.srtNomeLuogo_de = _data[\"srtNomeLuogo_de\"] !== undefined ? _data[\"srtNomeLuogo_de\"] : null;\r\n this.srtNomeLuogo_en = _data[\"srtNomeLuogo_en\"] !== undefined ? _data[\"srtNomeLuogo_en\"] : null;\r\n this.srtNomeRegione_it = _data[\"srtNomeRegione_it\"] !== undefined ? _data[\"srtNomeRegione_it\"] : null;\r\n this.srtNomeRegione_fr = _data[\"srtNomeRegione_fr\"] !== undefined ? _data[\"srtNomeRegione_fr\"] : null;\r\n this.srtNomeRegione_de = _data[\"srtNomeRegione_de\"] !== undefined ? _data[\"srtNomeRegione_de\"] : null;\r\n this.srtNomeRegione_en = _data[\"srtNomeRegione_en\"] !== undefined ? _data[\"srtNomeRegione_en\"] : null;\r\n this.luogoFatturazione = _data[\"luogoFatturazione\"] ? LuogoInfo.fromJS(_data[\"luogoFatturazione\"]) : null;\r\n this.categoria = _data[\"categoria\"] ? CategoriaContatto.fromJS(_data[\"categoria\"]) : null;\r\n this.srtCategoria = _data[\"srtCategoria\"] !== undefined ? _data[\"srtCategoria\"] : null;\r\n if (Array.isArray(_data[\"accordi\"])) {\r\n this.accordi = [] as any;\r\n for (let item of _data[\"accordi\"])\r\n this.accordi!.push(AccordoContattoInfo.fromJS(item));\r\n }\r\n else {\r\n this.accordi = null;\r\n }\r\n if (_data[\"accordiOperatore\"]) {\r\n this.accordiOperatore = {} as any;\r\n for (let key in _data[\"accordiOperatore\"]) {\r\n if (_data[\"accordiOperatore\"].hasOwnProperty(key))\r\n (this.accordiOperatore)![key] = _data[\"accordiOperatore\"][key] ? AccordoContattoInfo.fromJS(_data[\"accordiOperatore\"][key]) : new AccordoContattoInfo();\r\n }\r\n }\r\n else {\r\n this.accordiOperatore = null;\r\n }\r\n this.accordoNaar = _data[\"accordoNaar\"] ? AccordoContattoInfo.fromJS(_data[\"accordoNaar\"]) : null;\r\n this.srtAccordoNaar = _data[\"srtAccordoNaar\"] !== undefined ? _data[\"srtAccordoNaar\"] : null;\r\n this.srtPagamentoAccordoNaar_it = _data[\"srtPagamentoAccordoNaar_it\"] !== undefined ? _data[\"srtPagamentoAccordoNaar_it\"] : null;\r\n this.srtPagamentoAccordoNaar_fr = _data[\"srtPagamentoAccordoNaar_fr\"] !== undefined ? _data[\"srtPagamentoAccordoNaar_fr\"] : null;\r\n this.srtPagamentoAccordoNaar_de = _data[\"srtPagamentoAccordoNaar_de\"] !== undefined ? _data[\"srtPagamentoAccordoNaar_de\"] : null;\r\n this.srtPagamentoAccordoNaar_en = _data[\"srtPagamentoAccordoNaar_en\"] !== undefined ? _data[\"srtPagamentoAccordoNaar_en\"] : null;\r\n this.srtPagamentoBiglietteriaNaar_it = _data[\"srtPagamentoBiglietteriaNaar_it\"] !== undefined ? _data[\"srtPagamentoBiglietteriaNaar_it\"] : null;\r\n this.srtPagamentoBiglietteriaNaar_fr = _data[\"srtPagamentoBiglietteriaNaar_fr\"] !== undefined ? _data[\"srtPagamentoBiglietteriaNaar_fr\"] : null;\r\n this.srtPagamentoBiglietteriaNaar_de = _data[\"srtPagamentoBiglietteriaNaar_de\"] !== undefined ? _data[\"srtPagamentoBiglietteriaNaar_de\"] : null;\r\n this.srtPagamentoBiglietteriaNaar_en = _data[\"srtPagamentoBiglietteriaNaar_en\"] !== undefined ? _data[\"srtPagamentoBiglietteriaNaar_en\"] : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n if (Array.isArray(_data[\"loghi\"])) {\r\n this.loghi = [] as any;\r\n for (let item of _data[\"loghi\"])\r\n this.loghi!.push(ContattoLogo.fromJS(item));\r\n }\r\n else {\r\n this.loghi = null;\r\n }\r\n this.logoADV = _data[\"logoADV\"] ? LogoInfo.fromJS(_data[\"logoADV\"]) : null;\r\n if (Array.isArray(_data[\"datiAggiuntivi\"])) {\r\n this.datiAggiuntivi = [] as any;\r\n for (let item of _data[\"datiAggiuntivi\"])\r\n this.datiAggiuntivi!.push(ContattoDato.fromJS(item));\r\n }\r\n else {\r\n this.datiAggiuntivi = null;\r\n }\r\n if (Array.isArray(_data[\"statistiche\"])) {\r\n this.statistiche = [] as any;\r\n for (let item of _data[\"statistiche\"])\r\n this.statistiche!.push(ContattoStatistica.fromJS(item));\r\n }\r\n else {\r\n this.statistiche = null;\r\n }\r\n this.indirizzoCompleto = _data[\"indirizzoCompleto\"] !== undefined ? _data[\"indirizzoCompleto\"] : null;\r\n this.luogoFattura = _data[\"luogoFattura\"] ? LuogoInfo.fromJS(_data[\"luogoFattura\"]) : null;\r\n this.codiceNazioneFattura = _data[\"codiceNazioneFattura\"] !== undefined ? _data[\"codiceNazioneFattura\"] : null;\r\n this.indirizzoFattura = _data[\"indirizzoFattura\"] !== undefined ? _data[\"indirizzoFattura\"] : null;\r\n this.numeroCivicoFattura = _data[\"numeroCivicoFattura\"] !== undefined ? _data[\"numeroCivicoFattura\"] : null;\r\n this.capFattura = _data[\"capFattura\"] !== undefined ? _data[\"capFattura\"] : null;\r\n this.partitaIva = _data[\"partitaIva\"] !== undefined ? _data[\"partitaIva\"] : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n this.srtNome = _data[\"srtNome\"] !== undefined ? _data[\"srtNome\"] : null;\r\n this.srtCognome = _data[\"srtCognome\"] !== undefined ? _data[\"srtCognome\"] : null;\r\n this.opzioni = _data[\"opzioni\"] ? ContattoOpzione.fromJS(_data[\"opzioni\"]) : null;\r\n this.emailDocumentiContabili = _data[\"emailDocumentiContabili\"] !== undefined ? _data[\"emailDocumentiContabili\"] : null;\r\n this.codiceUnivocoAgenziaFE = _data[\"codiceUnivocoAgenziaFE\"] !== undefined ? _data[\"codiceUnivocoAgenziaFE\"] : null;\r\n this.indirizzoPecAgenziaFE = _data[\"indirizzoPecAgenziaFE\"] !== undefined ? _data[\"indirizzoPecAgenziaFE\"] : null;\r\n this.datiHotelCompleti = _data[\"datiHotelCompleti\"] !== undefined ? _data[\"datiHotelCompleti\"] : null;\r\n this.haMappa = _data[\"haMappa\"] !== undefined ? _data[\"haMappa\"] : null;\r\n this.haServizio = _data[\"haServizio\"] !== undefined ? _data[\"haServizio\"] : null;\r\n this.websiteUrl = _data[\"websiteUrl\"] !== undefined ? _data[\"websiteUrl\"] : null;\r\n this.logoUrl = _data[\"logoUrl\"] !== undefined ? _data[\"logoUrl\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"uniqueID\"] = this.uniqueID !== undefined ? this.uniqueID : null;\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n data[\"isFake\"] = this.isFake !== undefined ? this.isFake : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"nomeAbbreviato\"] = this.nomeAbbreviato !== undefined ? this.nomeAbbreviato : null;\r\n data[\"ragioneSociale\"] = this.ragioneSociale !== undefined ? this.ragioneSociale : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n if (Array.isArray(this.relazioni)) {\r\n data[\"relazioni\"] = [];\r\n for (let item of this.relazioni)\r\n data[\"relazioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.relazioniParent)) {\r\n data[\"relazioniParent\"] = [];\r\n for (let item of this.relazioniParent)\r\n data[\"relazioniParent\"].push(item.toJSON());\r\n }\r\n data[\"contattoPromoter\"] = this.contattoPromoter ? this.contattoPromoter.toJSON() : null;\r\n data[\"srtPromoter\"] = this.srtPromoter !== undefined ? this.srtPromoter : null;\r\n data[\"contattoNetwork\"] = this.contattoNetwork ? this.contattoNetwork.toJSON() : null;\r\n data[\"srtNetwork\"] = this.srtNetwork !== undefined ? this.srtNetwork : null;\r\n if (Array.isArray(this.recapiti)) {\r\n data[\"recapiti\"] = [];\r\n for (let item of this.recapiti)\r\n data[\"recapiti\"].push(item.toJSON());\r\n }\r\n data[\"luogoContatto\"] = this.luogoContatto ? this.luogoContatto.toJSON() : null;\r\n data[\"srtNomeLuogo_it\"] = this.srtNomeLuogo_it !== undefined ? this.srtNomeLuogo_it : null;\r\n data[\"srtNomeLuogo_fr\"] = this.srtNomeLuogo_fr !== undefined ? this.srtNomeLuogo_fr : null;\r\n data[\"srtNomeLuogo_de\"] = this.srtNomeLuogo_de !== undefined ? this.srtNomeLuogo_de : null;\r\n data[\"srtNomeLuogo_en\"] = this.srtNomeLuogo_en !== undefined ? this.srtNomeLuogo_en : null;\r\n data[\"srtNomeRegione_it\"] = this.srtNomeRegione_it !== undefined ? this.srtNomeRegione_it : null;\r\n data[\"srtNomeRegione_fr\"] = this.srtNomeRegione_fr !== undefined ? this.srtNomeRegione_fr : null;\r\n data[\"srtNomeRegione_de\"] = this.srtNomeRegione_de !== undefined ? this.srtNomeRegione_de : null;\r\n data[\"srtNomeRegione_en\"] = this.srtNomeRegione_en !== undefined ? this.srtNomeRegione_en : null;\r\n data[\"luogoFatturazione\"] = this.luogoFatturazione ? this.luogoFatturazione.toJSON() : null;\r\n data[\"categoria\"] = this.categoria ? this.categoria.toJSON() : null;\r\n data[\"srtCategoria\"] = this.srtCategoria !== undefined ? this.srtCategoria : null;\r\n if (Array.isArray(this.accordi)) {\r\n data[\"accordi\"] = [];\r\n for (let item of this.accordi)\r\n data[\"accordi\"].push(item.toJSON());\r\n }\r\n if (this.accordiOperatore) {\r\n data[\"accordiOperatore\"] = {};\r\n for (let key in this.accordiOperatore) {\r\n if (this.accordiOperatore.hasOwnProperty(key))\r\n (data[\"accordiOperatore\"])[key] = this.accordiOperatore[key] ? this.accordiOperatore[key].toJSON() : null;\r\n }\r\n }\r\n data[\"accordoNaar\"] = this.accordoNaar ? this.accordoNaar.toJSON() : null;\r\n data[\"srtAccordoNaar\"] = this.srtAccordoNaar !== undefined ? this.srtAccordoNaar : null;\r\n data[\"srtPagamentoAccordoNaar_it\"] = this.srtPagamentoAccordoNaar_it !== undefined ? this.srtPagamentoAccordoNaar_it : null;\r\n data[\"srtPagamentoAccordoNaar_fr\"] = this.srtPagamentoAccordoNaar_fr !== undefined ? this.srtPagamentoAccordoNaar_fr : null;\r\n data[\"srtPagamentoAccordoNaar_de\"] = this.srtPagamentoAccordoNaar_de !== undefined ? this.srtPagamentoAccordoNaar_de : null;\r\n data[\"srtPagamentoAccordoNaar_en\"] = this.srtPagamentoAccordoNaar_en !== undefined ? this.srtPagamentoAccordoNaar_en : null;\r\n data[\"srtPagamentoBiglietteriaNaar_it\"] = this.srtPagamentoBiglietteriaNaar_it !== undefined ? this.srtPagamentoBiglietteriaNaar_it : null;\r\n data[\"srtPagamentoBiglietteriaNaar_fr\"] = this.srtPagamentoBiglietteriaNaar_fr !== undefined ? this.srtPagamentoBiglietteriaNaar_fr : null;\r\n data[\"srtPagamentoBiglietteriaNaar_de\"] = this.srtPagamentoBiglietteriaNaar_de !== undefined ? this.srtPagamentoBiglietteriaNaar_de : null;\r\n data[\"srtPagamentoBiglietteriaNaar_en\"] = this.srtPagamentoBiglietteriaNaar_en !== undefined ? this.srtPagamentoBiglietteriaNaar_en : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n if (Array.isArray(this.loghi)) {\r\n data[\"loghi\"] = [];\r\n for (let item of this.loghi)\r\n data[\"loghi\"].push(item.toJSON());\r\n }\r\n data[\"logoADV\"] = this.logoADV ? this.logoADV.toJSON() : null;\r\n if (Array.isArray(this.datiAggiuntivi)) {\r\n data[\"datiAggiuntivi\"] = [];\r\n for (let item of this.datiAggiuntivi)\r\n data[\"datiAggiuntivi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.statistiche)) {\r\n data[\"statistiche\"] = [];\r\n for (let item of this.statistiche)\r\n data[\"statistiche\"].push(item.toJSON());\r\n }\r\n data[\"indirizzoCompleto\"] = this.indirizzoCompleto !== undefined ? this.indirizzoCompleto : null;\r\n data[\"luogoFattura\"] = this.luogoFattura ? this.luogoFattura.toJSON() : null;\r\n data[\"codiceNazioneFattura\"] = this.codiceNazioneFattura !== undefined ? this.codiceNazioneFattura : null;\r\n data[\"indirizzoFattura\"] = this.indirizzoFattura !== undefined ? this.indirizzoFattura : null;\r\n data[\"numeroCivicoFattura\"] = this.numeroCivicoFattura !== undefined ? this.numeroCivicoFattura : null;\r\n data[\"capFattura\"] = this.capFattura !== undefined ? this.capFattura : null;\r\n data[\"partitaIva\"] = this.partitaIva !== undefined ? this.partitaIva : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n data[\"srtNome\"] = this.srtNome !== undefined ? this.srtNome : null;\r\n data[\"srtCognome\"] = this.srtCognome !== undefined ? this.srtCognome : null;\r\n data[\"opzioni\"] = this.opzioni ? this.opzioni.toJSON() : null;\r\n data[\"emailDocumentiContabili\"] = this.emailDocumentiContabili !== undefined ? this.emailDocumentiContabili : null;\r\n data[\"codiceUnivocoAgenziaFE\"] = this.codiceUnivocoAgenziaFE !== undefined ? this.codiceUnivocoAgenziaFE : null;\r\n data[\"indirizzoPecAgenziaFE\"] = this.indirizzoPecAgenziaFE !== undefined ? this.indirizzoPecAgenziaFE : null;\r\n data[\"datiHotelCompleti\"] = this.datiHotelCompleti !== undefined ? this.datiHotelCompleti : null;\r\n data[\"haMappa\"] = this.haMappa !== undefined ? this.haMappa : null;\r\n data[\"haServizio\"] = this.haServizio !== undefined ? this.haServizio : null;\r\n data[\"websiteUrl\"] = this.websiteUrl !== undefined ? this.websiteUrl : null;\r\n data[\"logoUrl\"] = this.logoUrl !== undefined ? this.logoUrl : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoInfo {\r\n id?: number;\r\n uniqueID?: string | null;\r\n contatto?: Contatto | null;\r\n isFake?: boolean;\r\n nomeVisualizzato?: string | null;\r\n nomeAbbreviato?: string | null;\r\n ragioneSociale?: string | null;\r\n email?: string | null;\r\n descrizione?: string | null;\r\n relazioni?: ContattoRelazione[] | null;\r\n relazioniParent?: ContattoRelazione[] | null;\r\n contattoPromoter?: ContattoInfo | null;\r\n srtPromoter?: string | null;\r\n contattoNetwork?: ContattoInfo | null;\r\n srtNetwork?: string | null;\r\n recapiti?: ContattoRecapito[] | null;\r\n luogoContatto?: LuogoInfo | null;\r\n srtNomeLuogo_it?: string | null;\r\n srtNomeLuogo_fr?: string | null;\r\n srtNomeLuogo_de?: string | null;\r\n srtNomeLuogo_en?: string | null;\r\n srtNomeRegione_it?: string | null;\r\n srtNomeRegione_fr?: string | null;\r\n srtNomeRegione_de?: string | null;\r\n srtNomeRegione_en?: string | null;\r\n luogoFatturazione?: LuogoInfo | null;\r\n categoria?: CategoriaContatto | null;\r\n srtCategoria?: string | null;\r\n accordi?: AccordoContattoInfo[] | null;\r\n accordiOperatore?: { [key in keyof typeof EOperatore]?: AccordoContattoInfo; } | null;\r\n accordoNaar?: AccordoContattoInfo | null;\r\n srtAccordoNaar?: string | null;\r\n srtPagamentoAccordoNaar_it?: string | null;\r\n srtPagamentoAccordoNaar_fr?: string | null;\r\n srtPagamentoAccordoNaar_de?: string | null;\r\n srtPagamentoAccordoNaar_en?: string | null;\r\n srtPagamentoBiglietteriaNaar_it?: string | null;\r\n srtPagamentoBiglietteriaNaar_fr?: string | null;\r\n srtPagamentoBiglietteriaNaar_de?: string | null;\r\n srtPagamentoBiglietteriaNaar_en?: string | null;\r\n mappa?: Mappa | null;\r\n loghi?: ContattoLogo[] | null;\r\n logoADV?: LogoInfo | null;\r\n datiAggiuntivi?: ContattoDato[] | null;\r\n statistiche?: ContattoStatistica[] | null;\r\n indirizzoCompleto?: string | null;\r\n luogoFattura?: LuogoInfo | null;\r\n codiceNazioneFattura?: string | null;\r\n indirizzoFattura?: string | null;\r\n numeroCivicoFattura?: string | null;\r\n capFattura?: string | null;\r\n partitaIva?: string | null;\r\n searchTerms?: string | null;\r\n srtNome?: string | null;\r\n srtCognome?: string | null;\r\n opzioni?: ContattoOpzione | null;\r\n emailDocumentiContabili?: string | null;\r\n codiceUnivocoAgenziaFE?: string | null;\r\n indirizzoPecAgenziaFE?: string | null;\r\n datiHotelCompleti?: boolean;\r\n haMappa?: boolean;\r\n haServizio?: boolean;\r\n websiteUrl?: string | null;\r\n logoUrl?: string | null;\r\n lingua?: ELingua | null;\r\n}\r\n\r\nexport class LuogoInfo implements ILuogoInfo {\r\n id?: number;\r\n table?: string | null;\r\n luogo?: Luogo | null;\r\n eliminato?: boolean;\r\n provincia?: string | null;\r\n prioritaParent?: number;\r\n isCity?: boolean;\r\n hasMap?: boolean;\r\n isPlaceholder?: boolean;\r\n codice?: string | null;\r\n mappa?: Mappa | null;\r\n regione?: LuogoInfo | null;\r\n paese?: LuogoInfo | null;\r\n destinazione?: LuogoInfo | null;\r\n subzonaAerea?: LuogoInfo | null;\r\n relazioni?: LuogoRelazione[] | null;\r\n distanze?: LuogoDistanza[] | null;\r\n isItalia?: boolean;\r\n isEuropa?: boolean;\r\n isCee?: boolean;\r\n isNordAmerica?: boolean;\r\n aeroportiList?: Aeroporto[] | null;\r\n aeroporto?: Aeroporto | null;\r\n padre?: LuogoInfo | null;\r\n luoghiPadre?: LuogoInfo[] | null;\r\n luoghiVicini?: LuogoInfo[] | null;\r\n articoli?: ArticoloInfo[] | null;\r\n immagini?: ImmagineInfo[] | null;\r\n srtNome_it?: string | null;\r\n srtNome_en?: string | null;\r\n srtNome_fr?: string | null;\r\n srtNome_de?: string | null;\r\n srtNome_be?: string | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n\r\n constructor(data?: ILuogoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n this.luogo = _data[\"luogo\"] ? Luogo.fromJS(_data[\"luogo\"]) : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.prioritaParent = _data[\"prioritaParent\"] !== undefined ? _data[\"prioritaParent\"] : null;\r\n this.isCity = _data[\"isCity\"] !== undefined ? _data[\"isCity\"] : null;\r\n this.hasMap = _data[\"hasMap\"] !== undefined ? _data[\"hasMap\"] : null;\r\n this.isPlaceholder = _data[\"isPlaceholder\"] !== undefined ? _data[\"isPlaceholder\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n this.regione = _data[\"regione\"] ? LuogoInfo.fromJS(_data[\"regione\"]) : null;\r\n this.paese = _data[\"paese\"] ? LuogoInfo.fromJS(_data[\"paese\"]) : null;\r\n this.destinazione = _data[\"destinazione\"] ? LuogoInfo.fromJS(_data[\"destinazione\"]) : null;\r\n this.subzonaAerea = _data[\"subzonaAerea\"] ? LuogoInfo.fromJS(_data[\"subzonaAerea\"]) : null;\r\n if (Array.isArray(_data[\"relazioni\"])) {\r\n this.relazioni = [] as any;\r\n for (let item of _data[\"relazioni\"])\r\n this.relazioni!.push(LuogoRelazione.fromJS(item));\r\n }\r\n else {\r\n this.relazioni = null;\r\n }\r\n if (Array.isArray(_data[\"distanze\"])) {\r\n this.distanze = [] as any;\r\n for (let item of _data[\"distanze\"])\r\n this.distanze!.push(LuogoDistanza.fromJS(item));\r\n }\r\n else {\r\n this.distanze = null;\r\n }\r\n this.isItalia = _data[\"isItalia\"] !== undefined ? _data[\"isItalia\"] : null;\r\n this.isEuropa = _data[\"isEuropa\"] !== undefined ? _data[\"isEuropa\"] : null;\r\n this.isCee = _data[\"isCee\"] !== undefined ? _data[\"isCee\"] : null;\r\n this.isNordAmerica = _data[\"isNordAmerica\"] !== undefined ? _data[\"isNordAmerica\"] : null;\r\n if (Array.isArray(_data[\"aeroportiList\"])) {\r\n this.aeroportiList = [] as any;\r\n for (let item of _data[\"aeroportiList\"])\r\n this.aeroportiList!.push(Aeroporto.fromJS(item));\r\n }\r\n else {\r\n this.aeroportiList = null;\r\n }\r\n this.aeroporto = _data[\"aeroporto\"] ? Aeroporto.fromJS(_data[\"aeroporto\"]) : null;\r\n this.padre = _data[\"padre\"] ? LuogoInfo.fromJS(_data[\"padre\"]) : null;\r\n if (Array.isArray(_data[\"luoghiPadre\"])) {\r\n this.luoghiPadre = [] as any;\r\n for (let item of _data[\"luoghiPadre\"])\r\n this.luoghiPadre!.push(LuogoInfo.fromJS(item));\r\n }\r\n else {\r\n this.luoghiPadre = null;\r\n }\r\n if (Array.isArray(_data[\"luoghiVicini\"])) {\r\n this.luoghiVicini = [] as any;\r\n for (let item of _data[\"luoghiVicini\"])\r\n this.luoghiVicini!.push(LuogoInfo.fromJS(item));\r\n }\r\n else {\r\n this.luoghiVicini = null;\r\n }\r\n if (Array.isArray(_data[\"articoli\"])) {\r\n this.articoli = [] as any;\r\n for (let item of _data[\"articoli\"])\r\n this.articoli!.push(ArticoloInfo.fromJS(item));\r\n }\r\n else {\r\n this.articoli = null;\r\n }\r\n if (Array.isArray(_data[\"immagini\"])) {\r\n this.immagini = [] as any;\r\n for (let item of _data[\"immagini\"])\r\n this.immagini!.push(ImmagineInfo.fromJS(item));\r\n }\r\n else {\r\n this.immagini = null;\r\n }\r\n this.srtNome_it = _data[\"srtNome_it\"] !== undefined ? _data[\"srtNome_it\"] : null;\r\n this.srtNome_en = _data[\"srtNome_en\"] !== undefined ? _data[\"srtNome_en\"] : null;\r\n this.srtNome_fr = _data[\"srtNome_fr\"] !== undefined ? _data[\"srtNome_fr\"] : null;\r\n this.srtNome_de = _data[\"srtNome_de\"] !== undefined ? _data[\"srtNome_de\"] : null;\r\n this.srtNome_be = _data[\"srtNome_be\"] !== undefined ? _data[\"srtNome_be\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"prioritaParent\"] = this.prioritaParent !== undefined ? this.prioritaParent : null;\r\n data[\"isCity\"] = this.isCity !== undefined ? this.isCity : null;\r\n data[\"hasMap\"] = this.hasMap !== undefined ? this.hasMap : null;\r\n data[\"isPlaceholder\"] = this.isPlaceholder !== undefined ? this.isPlaceholder : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n data[\"regione\"] = this.regione ? this.regione.toJSON() : null;\r\n data[\"paese\"] = this.paese ? this.paese.toJSON() : null;\r\n data[\"destinazione\"] = this.destinazione ? this.destinazione.toJSON() : null;\r\n data[\"subzonaAerea\"] = this.subzonaAerea ? this.subzonaAerea.toJSON() : null;\r\n if (Array.isArray(this.relazioni)) {\r\n data[\"relazioni\"] = [];\r\n for (let item of this.relazioni)\r\n data[\"relazioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.distanze)) {\r\n data[\"distanze\"] = [];\r\n for (let item of this.distanze)\r\n data[\"distanze\"].push(item.toJSON());\r\n }\r\n data[\"isItalia\"] = this.isItalia !== undefined ? this.isItalia : null;\r\n data[\"isEuropa\"] = this.isEuropa !== undefined ? this.isEuropa : null;\r\n data[\"isCee\"] = this.isCee !== undefined ? this.isCee : null;\r\n data[\"isNordAmerica\"] = this.isNordAmerica !== undefined ? this.isNordAmerica : null;\r\n if (Array.isArray(this.aeroportiList)) {\r\n data[\"aeroportiList\"] = [];\r\n for (let item of this.aeroportiList)\r\n data[\"aeroportiList\"].push(item.toJSON());\r\n }\r\n data[\"aeroporto\"] = this.aeroporto ? this.aeroporto.toJSON() : null;\r\n data[\"padre\"] = this.padre ? this.padre.toJSON() : null;\r\n if (Array.isArray(this.luoghiPadre)) {\r\n data[\"luoghiPadre\"] = [];\r\n for (let item of this.luoghiPadre)\r\n data[\"luoghiPadre\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.luoghiVicini)) {\r\n data[\"luoghiVicini\"] = [];\r\n for (let item of this.luoghiVicini)\r\n data[\"luoghiVicini\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.articoli)) {\r\n data[\"articoli\"] = [];\r\n for (let item of this.articoli)\r\n data[\"articoli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.immagini)) {\r\n data[\"immagini\"] = [];\r\n for (let item of this.immagini)\r\n data[\"immagini\"].push(item.toJSON());\r\n }\r\n data[\"srtNome_it\"] = this.srtNome_it !== undefined ? this.srtNome_it : null;\r\n data[\"srtNome_en\"] = this.srtNome_en !== undefined ? this.srtNome_en : null;\r\n data[\"srtNome_fr\"] = this.srtNome_fr !== undefined ? this.srtNome_fr : null;\r\n data[\"srtNome_de\"] = this.srtNome_de !== undefined ? this.srtNome_de : null;\r\n data[\"srtNome_be\"] = this.srtNome_be !== undefined ? this.srtNome_be : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoInfo {\r\n id?: number;\r\n table?: string | null;\r\n luogo?: Luogo | null;\r\n eliminato?: boolean;\r\n provincia?: string | null;\r\n prioritaParent?: number;\r\n isCity?: boolean;\r\n hasMap?: boolean;\r\n isPlaceholder?: boolean;\r\n codice?: string | null;\r\n mappa?: Mappa | null;\r\n regione?: LuogoInfo | null;\r\n paese?: LuogoInfo | null;\r\n destinazione?: LuogoInfo | null;\r\n subzonaAerea?: LuogoInfo | null;\r\n relazioni?: LuogoRelazione[] | null;\r\n distanze?: LuogoDistanza[] | null;\r\n isItalia?: boolean;\r\n isEuropa?: boolean;\r\n isCee?: boolean;\r\n isNordAmerica?: boolean;\r\n aeroportiList?: Aeroporto[] | null;\r\n aeroporto?: Aeroporto | null;\r\n padre?: LuogoInfo | null;\r\n luoghiPadre?: LuogoInfo[] | null;\r\n luoghiVicini?: LuogoInfo[] | null;\r\n articoli?: ArticoloInfo[] | null;\r\n immagini?: ImmagineInfo[] | null;\r\n srtNome_it?: string | null;\r\n srtNome_en?: string | null;\r\n srtNome_fr?: string | null;\r\n srtNome_de?: string | null;\r\n srtNome_be?: string | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n}\r\n\r\nexport class ArticoloInfo implements IArticoloInfo {\r\n id?: number;\r\n articolo?: Articolo;\r\n pubblicato?: boolean;\r\n titolo?: string;\r\n srtLuogo_it?: string | null;\r\n srtLuogo_en?: string | null;\r\n srtLuogo_fr?: string | null;\r\n srtLuogo_de?: string | null;\r\n srtServizio_it?: string | null;\r\n srtServizio_en?: string | null;\r\n srtServizio_fr?: string | null;\r\n srtServizio_de?: string | null;\r\n srtCompagnia?: string | null;\r\n srtAccordo?: string | null;\r\n srtOrdine?: string;\r\n intestazione?: ArticoloTestata | null;\r\n luogo?: LuogoInfo | null;\r\n servizio?: ServizioInfo | null;\r\n accordo?: AccordoInfo | null;\r\n link?: PageLinkInfo | null;\r\n compagnia?: CompagniaAerea | null;\r\n searchTerms?: string;\r\n attachments?: ArticoloAttachmentInfo[];\r\n giorno?: number;\r\n ordine?: number;\r\n gruppoTestata?: number | null;\r\n ordineTestata?: number | null;\r\n isGiorno?: boolean;\r\n isNota?: boolean;\r\n isNews?: boolean;\r\n isPenaliCancellazioneRiga?: boolean;\r\n isPenaliCancellazioneEstese?: boolean;\r\n isNoteServizioRiga?: boolean;\r\n isNoteServizioEstese?: boolean;\r\n traduzioni?: ArticoloTraduzione[];\r\n lastUpdate?: string | null;\r\n srtTitolo_it?: string | null;\r\n srtTitolo_en?: string | null;\r\n srtTitolo_fr?: string | null;\r\n srtTitolo_de?: string | null;\r\n operatore?: EOperatore | null;\r\n\r\n constructor(data?: IArticoloInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.articolo = _data[\"articolo\"] ? Articolo.fromJS(_data[\"articolo\"]) : null;\r\n this.pubblicato = _data[\"pubblicato\"] !== undefined ? _data[\"pubblicato\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.srtLuogo_it = _data[\"srtLuogo_it\"] !== undefined ? _data[\"srtLuogo_it\"] : null;\r\n this.srtLuogo_en = _data[\"srtLuogo_en\"] !== undefined ? _data[\"srtLuogo_en\"] : null;\r\n this.srtLuogo_fr = _data[\"srtLuogo_fr\"] !== undefined ? _data[\"srtLuogo_fr\"] : null;\r\n this.srtLuogo_de = _data[\"srtLuogo_de\"] !== undefined ? _data[\"srtLuogo_de\"] : null;\r\n this.srtServizio_it = _data[\"srtServizio_it\"] !== undefined ? _data[\"srtServizio_it\"] : null;\r\n this.srtServizio_en = _data[\"srtServizio_en\"] !== undefined ? _data[\"srtServizio_en\"] : null;\r\n this.srtServizio_fr = _data[\"srtServizio_fr\"] !== undefined ? _data[\"srtServizio_fr\"] : null;\r\n this.srtServizio_de = _data[\"srtServizio_de\"] !== undefined ? _data[\"srtServizio_de\"] : null;\r\n this.srtCompagnia = _data[\"srtCompagnia\"] !== undefined ? _data[\"srtCompagnia\"] : null;\r\n this.srtAccordo = _data[\"srtAccordo\"] !== undefined ? _data[\"srtAccordo\"] : null;\r\n this.srtOrdine = _data[\"srtOrdine\"] !== undefined ? _data[\"srtOrdine\"] : null;\r\n this.intestazione = _data[\"intestazione\"] ? ArticoloTestata.fromJS(_data[\"intestazione\"]) : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n this.link = _data[\"link\"] ? PageLinkInfo.fromJS(_data[\"link\"]) : null;\r\n this.compagnia = _data[\"compagnia\"] ? CompagniaAerea.fromJS(_data[\"compagnia\"]) : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n if (Array.isArray(_data[\"attachments\"])) {\r\n this.attachments = [] as any;\r\n for (let item of _data[\"attachments\"])\r\n this.attachments!.push(ArticoloAttachmentInfo.fromJS(item));\r\n }\r\n else {\r\n this.attachments = null;\r\n }\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.gruppoTestata = _data[\"gruppoTestata\"] !== undefined ? _data[\"gruppoTestata\"] : null;\r\n this.ordineTestata = _data[\"ordineTestata\"] !== undefined ? _data[\"ordineTestata\"] : null;\r\n this.isGiorno = _data[\"isGiorno\"] !== undefined ? _data[\"isGiorno\"] : null;\r\n this.isNota = _data[\"isNota\"] !== undefined ? _data[\"isNota\"] : null;\r\n this.isNews = _data[\"isNews\"] !== undefined ? _data[\"isNews\"] : null;\r\n this.isPenaliCancellazioneRiga = _data[\"isPenaliCancellazioneRiga\"] !== undefined ? _data[\"isPenaliCancellazioneRiga\"] : null;\r\n this.isPenaliCancellazioneEstese = _data[\"isPenaliCancellazioneEstese\"] !== undefined ? _data[\"isPenaliCancellazioneEstese\"] : null;\r\n this.isNoteServizioRiga = _data[\"isNoteServizioRiga\"] !== undefined ? _data[\"isNoteServizioRiga\"] : null;\r\n this.isNoteServizioEstese = _data[\"isNoteServizioEstese\"] !== undefined ? _data[\"isNoteServizioEstese\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(ArticoloTraduzione.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.srtTitolo_it = _data[\"srtTitolo_it\"] !== undefined ? _data[\"srtTitolo_it\"] : null;\r\n this.srtTitolo_en = _data[\"srtTitolo_en\"] !== undefined ? _data[\"srtTitolo_en\"] : null;\r\n this.srtTitolo_fr = _data[\"srtTitolo_fr\"] !== undefined ? _data[\"srtTitolo_fr\"] : null;\r\n this.srtTitolo_de = _data[\"srtTitolo_de\"] !== undefined ? _data[\"srtTitolo_de\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"articolo\"] = this.articolo ? this.articolo.toJSON() : null;\r\n data[\"pubblicato\"] = this.pubblicato !== undefined ? this.pubblicato : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"srtLuogo_it\"] = this.srtLuogo_it !== undefined ? this.srtLuogo_it : null;\r\n data[\"srtLuogo_en\"] = this.srtLuogo_en !== undefined ? this.srtLuogo_en : null;\r\n data[\"srtLuogo_fr\"] = this.srtLuogo_fr !== undefined ? this.srtLuogo_fr : null;\r\n data[\"srtLuogo_de\"] = this.srtLuogo_de !== undefined ? this.srtLuogo_de : null;\r\n data[\"srtServizio_it\"] = this.srtServizio_it !== undefined ? this.srtServizio_it : null;\r\n data[\"srtServizio_en\"] = this.srtServizio_en !== undefined ? this.srtServizio_en : null;\r\n data[\"srtServizio_fr\"] = this.srtServizio_fr !== undefined ? this.srtServizio_fr : null;\r\n data[\"srtServizio_de\"] = this.srtServizio_de !== undefined ? this.srtServizio_de : null;\r\n data[\"srtCompagnia\"] = this.srtCompagnia !== undefined ? this.srtCompagnia : null;\r\n data[\"srtAccordo\"] = this.srtAccordo !== undefined ? this.srtAccordo : null;\r\n data[\"srtOrdine\"] = this.srtOrdine !== undefined ? this.srtOrdine : null;\r\n data[\"intestazione\"] = this.intestazione ? this.intestazione.toJSON() : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"link\"] = this.link ? this.link.toJSON() : null;\r\n data[\"compagnia\"] = this.compagnia ? this.compagnia.toJSON() : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n if (Array.isArray(this.attachments)) {\r\n data[\"attachments\"] = [];\r\n for (let item of this.attachments)\r\n data[\"attachments\"].push(item.toJSON());\r\n }\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"gruppoTestata\"] = this.gruppoTestata !== undefined ? this.gruppoTestata : null;\r\n data[\"ordineTestata\"] = this.ordineTestata !== undefined ? this.ordineTestata : null;\r\n data[\"isGiorno\"] = this.isGiorno !== undefined ? this.isGiorno : null;\r\n data[\"isNota\"] = this.isNota !== undefined ? this.isNota : null;\r\n data[\"isNews\"] = this.isNews !== undefined ? this.isNews : null;\r\n data[\"isPenaliCancellazioneRiga\"] = this.isPenaliCancellazioneRiga !== undefined ? this.isPenaliCancellazioneRiga : null;\r\n data[\"isPenaliCancellazioneEstese\"] = this.isPenaliCancellazioneEstese !== undefined ? this.isPenaliCancellazioneEstese : null;\r\n data[\"isNoteServizioRiga\"] = this.isNoteServizioRiga !== undefined ? this.isNoteServizioRiga : null;\r\n data[\"isNoteServizioEstese\"] = this.isNoteServizioEstese !== undefined ? this.isNoteServizioEstese : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"srtTitolo_it\"] = this.srtTitolo_it !== undefined ? this.srtTitolo_it : null;\r\n data[\"srtTitolo_en\"] = this.srtTitolo_en !== undefined ? this.srtTitolo_en : null;\r\n data[\"srtTitolo_fr\"] = this.srtTitolo_fr !== undefined ? this.srtTitolo_fr : null;\r\n data[\"srtTitolo_de\"] = this.srtTitolo_de !== undefined ? this.srtTitolo_de : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloInfo {\r\n id?: number;\r\n articolo?: Articolo;\r\n pubblicato?: boolean;\r\n titolo?: string;\r\n srtLuogo_it?: string | null;\r\n srtLuogo_en?: string | null;\r\n srtLuogo_fr?: string | null;\r\n srtLuogo_de?: string | null;\r\n srtServizio_it?: string | null;\r\n srtServizio_en?: string | null;\r\n srtServizio_fr?: string | null;\r\n srtServizio_de?: string | null;\r\n srtCompagnia?: string | null;\r\n srtAccordo?: string | null;\r\n srtOrdine?: string;\r\n intestazione?: ArticoloTestata | null;\r\n luogo?: LuogoInfo | null;\r\n servizio?: ServizioInfo | null;\r\n accordo?: AccordoInfo | null;\r\n link?: PageLinkInfo | null;\r\n compagnia?: CompagniaAerea | null;\r\n searchTerms?: string;\r\n attachments?: ArticoloAttachmentInfo[];\r\n giorno?: number;\r\n ordine?: number;\r\n gruppoTestata?: number | null;\r\n ordineTestata?: number | null;\r\n isGiorno?: boolean;\r\n isNota?: boolean;\r\n isNews?: boolean;\r\n isPenaliCancellazioneRiga?: boolean;\r\n isPenaliCancellazioneEstese?: boolean;\r\n isNoteServizioRiga?: boolean;\r\n isNoteServizioEstese?: boolean;\r\n traduzioni?: ArticoloTraduzione[];\r\n lastUpdate?: string | null;\r\n srtTitolo_it?: string | null;\r\n srtTitolo_en?: string | null;\r\n srtTitolo_fr?: string | null;\r\n srtTitolo_de?: string | null;\r\n operatore?: EOperatore | null;\r\n}\r\n\r\nexport class ArticoloTestata implements IArticoloTestata {\r\n articoloTestataID?: number;\r\n nome!: string;\r\n ordine?: number | null;\r\n gruppo?: number | null;\r\n nome_en?: string | null;\r\n\r\n constructor(data?: IArticoloTestata) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.articoloTestataID = _data[\"articoloTestataID\"] !== undefined ? _data[\"articoloTestataID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.gruppo = _data[\"gruppo\"] !== undefined ? _data[\"gruppo\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloTestata {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloTestata();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloTestataID\"] = this.articoloTestataID !== undefined ? this.articoloTestataID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"gruppo\"] = this.gruppo !== undefined ? this.gruppo : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloTestata {\r\n articoloTestataID?: number;\r\n nome: string;\r\n ordine?: number | null;\r\n gruppo?: number | null;\r\n nome_en?: string | null;\r\n}\r\n\r\nexport abstract class ServizioInfoBase implements IServizioInfoBase {\r\n luogo?: LuogoInfo | null;\r\n\r\n constructor(data?: IServizioInfoBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioInfoBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ServizioInfoBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioInfoBase {\r\n luogo?: LuogoInfo | null;\r\n}\r\n\r\nexport class ServizioInfo extends ServizioInfoBase implements IServizioInfo {\r\n _Prezzi?: PrezzoOfferta[] | null;\r\n id?: number;\r\n table?: string | null;\r\n uniqueID?: string | null;\r\n servizio?: Servizio | null;\r\n eliminato?: boolean;\r\n luogoID?: number;\r\n contattoFornitore?: ContattoInfo | null;\r\n nomeFornitore?: string | null;\r\n srtNomeFornitore?: string | null;\r\n templateAssociati?: PacchettoInfo[] | null;\r\n regoleScontoPacchetto?: ServizioRegolaScontoPacchetto[] | null;\r\n deltaMargine?: number;\r\n immagini?: ImmagineInfo[] | null;\r\n coverImage?: string | null;\r\n isObsoleto?: boolean;\r\n isVolo?: boolean;\r\n isBookingFeeBiglietteria?: boolean;\r\n isNonMappato?: boolean;\r\n tipologie?: ServizioTipologiaInfo[] | null;\r\n hasMandatorySupplements?: boolean;\r\n tipologieDict?: { [key: string]: ServizioTipologiaInfo; } | null;\r\n ordine?: number;\r\n itinerari?: ServizioItinerario[] | null;\r\n itinerariTour?: ServizioItinerarioInfo[] | null;\r\n isAssicurazione?: boolean;\r\n isAssicurazioneSanitariaFacoltativa?: boolean;\r\n isVariazione?: boolean;\r\n isTasseVolo?: boolean;\r\n isCamper?: boolean;\r\n isMoto?: boolean;\r\n isTrasferimento?: boolean;\r\n isVisita?: boolean;\r\n isCrociera?: boolean;\r\n isQuoteApertura?: boolean;\r\n isBloccaPrezzo?: boolean;\r\n isCommissioneAgenziaSuBiglietteria?: boolean;\r\n isDirittiAgenzia?: boolean;\r\n tipoServizio?: ETipoServizioFlags;\r\n moltiplicatoreServizio?: number;\r\n accordi?: ServizioAccordoInfo[] | null;\r\n validita?: Validita[] | null;\r\n regoleServizio?: ServizioRegola[] | null;\r\n regoleServizioDict?: { [key: string]: ServizioRegola; } | null;\r\n regoleVendita?: ServizioRegolaVendita[] | null;\r\n regoleVenditaDict?: { [key: string]: ServizioRegolaVendita; } | null;\r\n costi?: CostoInfo[] | null;\r\n partenzeDict?: { [key: string]: Partenza; } | null;\r\n partenze?: Partenza[] | null;\r\n luoghi?: ServizioLuogo[] | null;\r\n associazioni?: ServizioAssociazioneInfo[] | null;\r\n associazioniOfferteComponibili?: ServizioAssociazioneInfo[] | null;\r\n giornaliero?: boolean;\r\n stelle?: number | null;\r\n escludiDaAutofill?: boolean;\r\n vicinoAeroporto?: boolean;\r\n haAttributiTestata?: boolean;\r\n haAttributiNoleggio?: boolean;\r\n attributiNoleggio?: ServizioDatoAggiuntivoInfo[] | null;\r\n haCategoria?: boolean;\r\n haNuovo?: boolean;\r\n haVantaggi?: boolean;\r\n haServizi?: boolean;\r\n datoAggiuntivoPenale?: ServizioDatoAggiuntivoInfo | null;\r\n aPartireDa?: number | null;\r\n isViaggiDelClub?: boolean;\r\n offerDestination?: DatoAggiuntivo | null;\r\n offerteDestinationCodice?: string | null;\r\n offerteDestinationNome?: string | null;\r\n offertaAPartireDa?: string | null;\r\n isOffertaViaggio?: boolean;\r\n servDatiAggiuntivi?: ServizioDatoAggiuntivoInfo[] | null;\r\n datiAggiuntiviPenaleDefault?: ServizioDatoAggiuntivoInfo[] | null;\r\n prezzi?: PrezzoOfferta[] | null;\r\n isSpecialOffert?: boolean;\r\n rangeValiditaCosti?: ServizioValiditaCosti | null;\r\n mappa?: Mappa | null;\r\n sunto?: ArticoloInfo | null;\r\n articoli?: ArticoloInfo[] | null;\r\n articoliGiorni?: ArticoloInfo[] | null;\r\n srtNome_it?: string | null;\r\n srtNome_en?: string | null;\r\n srtNome_fr?: string | null;\r\n srtNome_de?: string | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n\r\n constructor(data?: IServizioInfo) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"_Prezzi\"])) {\r\n this._Prezzi = [] as any;\r\n for (let item of _data[\"_Prezzi\"])\r\n this._Prezzi!.push(PrezzoOfferta.fromJS(item));\r\n }\r\n else {\r\n this._Prezzi = null;\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n this.uniqueID = _data[\"uniqueID\"] !== undefined ? _data[\"uniqueID\"] : null;\r\n this.servizio = _data[\"servizio\"] ? Servizio.fromJS(_data[\"servizio\"]) : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.contattoFornitore = _data[\"contattoFornitore\"] ? ContattoInfo.fromJS(_data[\"contattoFornitore\"]) : null;\r\n this.nomeFornitore = _data[\"nomeFornitore\"] !== undefined ? _data[\"nomeFornitore\"] : null;\r\n this.srtNomeFornitore = _data[\"srtNomeFornitore\"] !== undefined ? _data[\"srtNomeFornitore\"] : null;\r\n if (Array.isArray(_data[\"templateAssociati\"])) {\r\n this.templateAssociati = [] as any;\r\n for (let item of _data[\"templateAssociati\"])\r\n this.templateAssociati!.push(PacchettoInfo.fromJS(item));\r\n }\r\n else {\r\n this.templateAssociati = null;\r\n }\r\n if (Array.isArray(_data[\"regoleScontoPacchetto\"])) {\r\n this.regoleScontoPacchetto = [] as any;\r\n for (let item of _data[\"regoleScontoPacchetto\"])\r\n this.regoleScontoPacchetto!.push(ServizioRegolaScontoPacchetto.fromJS(item));\r\n }\r\n else {\r\n this.regoleScontoPacchetto = null;\r\n }\r\n this.deltaMargine = _data[\"deltaMargine\"] !== undefined ? _data[\"deltaMargine\"] : null;\r\n if (Array.isArray(_data[\"immagini\"])) {\r\n this.immagini = [] as any;\r\n for (let item of _data[\"immagini\"])\r\n this.immagini!.push(ImmagineInfo.fromJS(item));\r\n }\r\n else {\r\n this.immagini = null;\r\n }\r\n this.coverImage = _data[\"coverImage\"] !== undefined ? _data[\"coverImage\"] : null;\r\n this.isObsoleto = _data[\"isObsoleto\"] !== undefined ? _data[\"isObsoleto\"] : null;\r\n this.isVolo = _data[\"isVolo\"] !== undefined ? _data[\"isVolo\"] : null;\r\n this.isBookingFeeBiglietteria = _data[\"isBookingFeeBiglietteria\"] !== undefined ? _data[\"isBookingFeeBiglietteria\"] : null;\r\n this.isNonMappato = _data[\"isNonMappato\"] !== undefined ? _data[\"isNonMappato\"] : null;\r\n if (Array.isArray(_data[\"tipologie\"])) {\r\n this.tipologie = [] as any;\r\n for (let item of _data[\"tipologie\"])\r\n this.tipologie!.push(ServizioTipologiaInfo.fromJS(item));\r\n }\r\n else {\r\n this.tipologie = null;\r\n }\r\n this.hasMandatorySupplements = _data[\"hasMandatorySupplements\"] !== undefined ? _data[\"hasMandatorySupplements\"] : null;\r\n if (_data[\"tipologieDict\"]) {\r\n this.tipologieDict = {} as any;\r\n for (let key in _data[\"tipologieDict\"]) {\r\n if (_data[\"tipologieDict\"].hasOwnProperty(key))\r\n (this.tipologieDict)![key] = _data[\"tipologieDict\"][key] ? ServizioTipologiaInfo.fromJS(_data[\"tipologieDict\"][key]) : new ServizioTipologiaInfo();\r\n }\r\n }\r\n else {\r\n this.tipologieDict = null;\r\n }\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n if (Array.isArray(_data[\"itinerari\"])) {\r\n this.itinerari = [] as any;\r\n for (let item of _data[\"itinerari\"])\r\n this.itinerari!.push(ServizioItinerario.fromJS(item));\r\n }\r\n else {\r\n this.itinerari = null;\r\n }\r\n if (Array.isArray(_data[\"itinerariTour\"])) {\r\n this.itinerariTour = [] as any;\r\n for (let item of _data[\"itinerariTour\"])\r\n this.itinerariTour!.push(ServizioItinerarioInfo.fromJS(item));\r\n }\r\n else {\r\n this.itinerariTour = null;\r\n }\r\n this.isAssicurazione = _data[\"isAssicurazione\"] !== undefined ? _data[\"isAssicurazione\"] : null;\r\n this.isAssicurazioneSanitariaFacoltativa = _data[\"isAssicurazioneSanitariaFacoltativa\"] !== undefined ? _data[\"isAssicurazioneSanitariaFacoltativa\"] : null;\r\n this.isVariazione = _data[\"isVariazione\"] !== undefined ? _data[\"isVariazione\"] : null;\r\n this.isTasseVolo = _data[\"isTasseVolo\"] !== undefined ? _data[\"isTasseVolo\"] : null;\r\n this.isCamper = _data[\"isCamper\"] !== undefined ? _data[\"isCamper\"] : null;\r\n this.isMoto = _data[\"isMoto\"] !== undefined ? _data[\"isMoto\"] : null;\r\n this.isTrasferimento = _data[\"isTrasferimento\"] !== undefined ? _data[\"isTrasferimento\"] : null;\r\n this.isVisita = _data[\"isVisita\"] !== undefined ? _data[\"isVisita\"] : null;\r\n this.isCrociera = _data[\"isCrociera\"] !== undefined ? _data[\"isCrociera\"] : null;\r\n this.isQuoteApertura = _data[\"isQuoteApertura\"] !== undefined ? _data[\"isQuoteApertura\"] : null;\r\n this.isBloccaPrezzo = _data[\"isBloccaPrezzo\"] !== undefined ? _data[\"isBloccaPrezzo\"] : null;\r\n this.isCommissioneAgenziaSuBiglietteria = _data[\"isCommissioneAgenziaSuBiglietteria\"] !== undefined ? _data[\"isCommissioneAgenziaSuBiglietteria\"] : null;\r\n this.isDirittiAgenzia = _data[\"isDirittiAgenzia\"] !== undefined ? _data[\"isDirittiAgenzia\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.moltiplicatoreServizio = _data[\"moltiplicatoreServizio\"] !== undefined ? _data[\"moltiplicatoreServizio\"] : null;\r\n if (Array.isArray(_data[\"accordi\"])) {\r\n this.accordi = [] as any;\r\n for (let item of _data[\"accordi\"])\r\n this.accordi!.push(ServizioAccordoInfo.fromJS(item));\r\n }\r\n else {\r\n this.accordi = null;\r\n }\r\n if (Array.isArray(_data[\"validita\"])) {\r\n this.validita = [] as any;\r\n for (let item of _data[\"validita\"])\r\n this.validita!.push(Validita.fromJS(item));\r\n }\r\n else {\r\n this.validita = null;\r\n }\r\n if (Array.isArray(_data[\"regoleServizio\"])) {\r\n this.regoleServizio = [] as any;\r\n for (let item of _data[\"regoleServizio\"])\r\n this.regoleServizio!.push(ServizioRegola.fromJS(item));\r\n }\r\n else {\r\n this.regoleServizio = null;\r\n }\r\n if (_data[\"regoleServizioDict\"]) {\r\n this.regoleServizioDict = {} as any;\r\n for (let key in _data[\"regoleServizioDict\"]) {\r\n if (_data[\"regoleServizioDict\"].hasOwnProperty(key))\r\n (this.regoleServizioDict)![key] = _data[\"regoleServizioDict\"][key] ? ServizioRegola.fromJS(_data[\"regoleServizioDict\"][key]) : new ServizioRegola();\r\n }\r\n }\r\n else {\r\n this.regoleServizioDict = null;\r\n }\r\n if (Array.isArray(_data[\"regoleVendita\"])) {\r\n this.regoleVendita = [] as any;\r\n for (let item of _data[\"regoleVendita\"])\r\n this.regoleVendita!.push(ServizioRegolaVendita.fromJS(item));\r\n }\r\n else {\r\n this.regoleVendita = null;\r\n }\r\n if (_data[\"regoleVenditaDict\"]) {\r\n this.regoleVenditaDict = {} as any;\r\n for (let key in _data[\"regoleVenditaDict\"]) {\r\n if (_data[\"regoleVenditaDict\"].hasOwnProperty(key))\r\n (this.regoleVenditaDict)![key] = _data[\"regoleVenditaDict\"][key] ? ServizioRegolaVendita.fromJS(_data[\"regoleVenditaDict\"][key]) : new ServizioRegolaVendita();\r\n }\r\n }\r\n else {\r\n this.regoleVenditaDict = null;\r\n }\r\n if (Array.isArray(_data[\"costi\"])) {\r\n this.costi = [] as any;\r\n for (let item of _data[\"costi\"])\r\n this.costi!.push(CostoInfo.fromJS(item));\r\n }\r\n else {\r\n this.costi = null;\r\n }\r\n if (_data[\"partenzeDict\"]) {\r\n this.partenzeDict = {} as any;\r\n for (let key in _data[\"partenzeDict\"]) {\r\n if (_data[\"partenzeDict\"].hasOwnProperty(key))\r\n (this.partenzeDict)![key] = _data[\"partenzeDict\"][key] ? Partenza.fromJS(_data[\"partenzeDict\"][key]) : new Partenza();\r\n }\r\n }\r\n else {\r\n this.partenzeDict = null;\r\n }\r\n if (Array.isArray(_data[\"partenze\"])) {\r\n this.partenze = [] as any;\r\n for (let item of _data[\"partenze\"])\r\n this.partenze!.push(Partenza.fromJS(item));\r\n }\r\n else {\r\n this.partenze = null;\r\n }\r\n if (Array.isArray(_data[\"luoghi\"])) {\r\n this.luoghi = [] as any;\r\n for (let item of _data[\"luoghi\"])\r\n this.luoghi!.push(ServizioLuogo.fromJS(item));\r\n }\r\n else {\r\n this.luoghi = null;\r\n }\r\n if (Array.isArray(_data[\"associazioni\"])) {\r\n this.associazioni = [] as any;\r\n for (let item of _data[\"associazioni\"])\r\n this.associazioni!.push(ServizioAssociazioneInfo.fromJS(item));\r\n }\r\n else {\r\n this.associazioni = null;\r\n }\r\n if (Array.isArray(_data[\"associazioniOfferteComponibili\"])) {\r\n this.associazioniOfferteComponibili = [] as any;\r\n for (let item of _data[\"associazioniOfferteComponibili\"])\r\n this.associazioniOfferteComponibili!.push(ServizioAssociazioneInfo.fromJS(item));\r\n }\r\n else {\r\n this.associazioniOfferteComponibili = null;\r\n }\r\n this.giornaliero = _data[\"giornaliero\"] !== undefined ? _data[\"giornaliero\"] : null;\r\n this.stelle = _data[\"stelle\"] !== undefined ? _data[\"stelle\"] : null;\r\n this.escludiDaAutofill = _data[\"escludiDaAutofill\"] !== undefined ? _data[\"escludiDaAutofill\"] : null;\r\n this.vicinoAeroporto = _data[\"vicinoAeroporto\"] !== undefined ? _data[\"vicinoAeroporto\"] : null;\r\n this.haAttributiTestata = _data[\"haAttributiTestata\"] !== undefined ? _data[\"haAttributiTestata\"] : null;\r\n this.haAttributiNoleggio = _data[\"haAttributiNoleggio\"] !== undefined ? _data[\"haAttributiNoleggio\"] : null;\r\n if (Array.isArray(_data[\"attributiNoleggio\"])) {\r\n this.attributiNoleggio = [] as any;\r\n for (let item of _data[\"attributiNoleggio\"])\r\n this.attributiNoleggio!.push(ServizioDatoAggiuntivoInfo.fromJS(item));\r\n }\r\n else {\r\n this.attributiNoleggio = null;\r\n }\r\n this.haCategoria = _data[\"haCategoria\"] !== undefined ? _data[\"haCategoria\"] : null;\r\n this.haNuovo = _data[\"haNuovo\"] !== undefined ? _data[\"haNuovo\"] : null;\r\n this.haVantaggi = _data[\"haVantaggi\"] !== undefined ? _data[\"haVantaggi\"] : null;\r\n this.haServizi = _data[\"haServizi\"] !== undefined ? _data[\"haServizi\"] : null;\r\n this.datoAggiuntivoPenale = _data[\"datoAggiuntivoPenale\"] ? ServizioDatoAggiuntivoInfo.fromJS(_data[\"datoAggiuntivoPenale\"]) : null;\r\n this.aPartireDa = _data[\"aPartireDa\"] !== undefined ? _data[\"aPartireDa\"] : null;\r\n this.isViaggiDelClub = _data[\"isViaggiDelClub\"] !== undefined ? _data[\"isViaggiDelClub\"] : null;\r\n this.offerDestination = _data[\"offerDestination\"] ? DatoAggiuntivo.fromJS(_data[\"offerDestination\"]) : null;\r\n this.offerteDestinationCodice = _data[\"offerteDestinationCodice\"] !== undefined ? _data[\"offerteDestinationCodice\"] : null;\r\n this.offerteDestinationNome = _data[\"offerteDestinationNome\"] !== undefined ? _data[\"offerteDestinationNome\"] : null;\r\n this.offertaAPartireDa = _data[\"offertaAPartireDa\"] !== undefined ? _data[\"offertaAPartireDa\"] : null;\r\n this.isOffertaViaggio = _data[\"isOffertaViaggio\"] !== undefined ? _data[\"isOffertaViaggio\"] : null;\r\n if (Array.isArray(_data[\"servDatiAggiuntivi\"])) {\r\n this.servDatiAggiuntivi = [] as any;\r\n for (let item of _data[\"servDatiAggiuntivi\"])\r\n this.servDatiAggiuntivi!.push(ServizioDatoAggiuntivoInfo.fromJS(item));\r\n }\r\n else {\r\n this.servDatiAggiuntivi = null;\r\n }\r\n if (Array.isArray(_data[\"datiAggiuntiviPenaleDefault\"])) {\r\n this.datiAggiuntiviPenaleDefault = [] as any;\r\n for (let item of _data[\"datiAggiuntiviPenaleDefault\"])\r\n this.datiAggiuntiviPenaleDefault!.push(ServizioDatoAggiuntivoInfo.fromJS(item));\r\n }\r\n else {\r\n this.datiAggiuntiviPenaleDefault = null;\r\n }\r\n if (Array.isArray(_data[\"prezzi\"])) {\r\n this.prezzi = [] as any;\r\n for (let item of _data[\"prezzi\"])\r\n this.prezzi!.push(PrezzoOfferta.fromJS(item));\r\n }\r\n else {\r\n this.prezzi = null;\r\n }\r\n this.isSpecialOffert = _data[\"isSpecialOffert\"] !== undefined ? _data[\"isSpecialOffert\"] : null;\r\n this.rangeValiditaCosti = _data[\"rangeValiditaCosti\"] ? ServizioValiditaCosti.fromJS(_data[\"rangeValiditaCosti\"]) : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n this.sunto = _data[\"sunto\"] ? ArticoloInfo.fromJS(_data[\"sunto\"]) : null;\r\n if (Array.isArray(_data[\"articoli\"])) {\r\n this.articoli = [] as any;\r\n for (let item of _data[\"articoli\"])\r\n this.articoli!.push(ArticoloInfo.fromJS(item));\r\n }\r\n else {\r\n this.articoli = null;\r\n }\r\n if (Array.isArray(_data[\"articoliGiorni\"])) {\r\n this.articoliGiorni = [] as any;\r\n for (let item of _data[\"articoliGiorni\"])\r\n this.articoliGiorni!.push(ArticoloInfo.fromJS(item));\r\n }\r\n else {\r\n this.articoliGiorni = null;\r\n }\r\n this.srtNome_it = _data[\"srtNome_it\"] !== undefined ? _data[\"srtNome_it\"] : null;\r\n this.srtNome_en = _data[\"srtNome_en\"] !== undefined ? _data[\"srtNome_en\"] : null;\r\n this.srtNome_fr = _data[\"srtNome_fr\"] !== undefined ? _data[\"srtNome_fr\"] : null;\r\n this.srtNome_de = _data[\"srtNome_de\"] !== undefined ? _data[\"srtNome_de\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this._Prezzi)) {\r\n data[\"_Prezzi\"] = [];\r\n for (let item of this._Prezzi)\r\n data[\"_Prezzi\"].push(item.toJSON());\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n data[\"uniqueID\"] = this.uniqueID !== undefined ? this.uniqueID : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"contattoFornitore\"] = this.contattoFornitore ? this.contattoFornitore.toJSON() : null;\r\n data[\"nomeFornitore\"] = this.nomeFornitore !== undefined ? this.nomeFornitore : null;\r\n data[\"srtNomeFornitore\"] = this.srtNomeFornitore !== undefined ? this.srtNomeFornitore : null;\r\n if (Array.isArray(this.templateAssociati)) {\r\n data[\"templateAssociati\"] = [];\r\n for (let item of this.templateAssociati)\r\n data[\"templateAssociati\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.regoleScontoPacchetto)) {\r\n data[\"regoleScontoPacchetto\"] = [];\r\n for (let item of this.regoleScontoPacchetto)\r\n data[\"regoleScontoPacchetto\"].push(item.toJSON());\r\n }\r\n data[\"deltaMargine\"] = this.deltaMargine !== undefined ? this.deltaMargine : null;\r\n if (Array.isArray(this.immagini)) {\r\n data[\"immagini\"] = [];\r\n for (let item of this.immagini)\r\n data[\"immagini\"].push(item.toJSON());\r\n }\r\n data[\"coverImage\"] = this.coverImage !== undefined ? this.coverImage : null;\r\n data[\"isObsoleto\"] = this.isObsoleto !== undefined ? this.isObsoleto : null;\r\n data[\"isVolo\"] = this.isVolo !== undefined ? this.isVolo : null;\r\n data[\"isBookingFeeBiglietteria\"] = this.isBookingFeeBiglietteria !== undefined ? this.isBookingFeeBiglietteria : null;\r\n data[\"isNonMappato\"] = this.isNonMappato !== undefined ? this.isNonMappato : null;\r\n if (Array.isArray(this.tipologie)) {\r\n data[\"tipologie\"] = [];\r\n for (let item of this.tipologie)\r\n data[\"tipologie\"].push(item.toJSON());\r\n }\r\n data[\"hasMandatorySupplements\"] = this.hasMandatorySupplements !== undefined ? this.hasMandatorySupplements : null;\r\n if (this.tipologieDict) {\r\n data[\"tipologieDict\"] = {};\r\n for (let key in this.tipologieDict) {\r\n if (this.tipologieDict.hasOwnProperty(key))\r\n (data[\"tipologieDict\"])[key] = this.tipologieDict[key] ? this.tipologieDict[key].toJSON() : null;\r\n }\r\n }\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n if (Array.isArray(this.itinerari)) {\r\n data[\"itinerari\"] = [];\r\n for (let item of this.itinerari)\r\n data[\"itinerari\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.itinerariTour)) {\r\n data[\"itinerariTour\"] = [];\r\n for (let item of this.itinerariTour)\r\n data[\"itinerariTour\"].push(item.toJSON());\r\n }\r\n data[\"isAssicurazione\"] = this.isAssicurazione !== undefined ? this.isAssicurazione : null;\r\n data[\"isAssicurazioneSanitariaFacoltativa\"] = this.isAssicurazioneSanitariaFacoltativa !== undefined ? this.isAssicurazioneSanitariaFacoltativa : null;\r\n data[\"isVariazione\"] = this.isVariazione !== undefined ? this.isVariazione : null;\r\n data[\"isTasseVolo\"] = this.isTasseVolo !== undefined ? this.isTasseVolo : null;\r\n data[\"isCamper\"] = this.isCamper !== undefined ? this.isCamper : null;\r\n data[\"isMoto\"] = this.isMoto !== undefined ? this.isMoto : null;\r\n data[\"isTrasferimento\"] = this.isTrasferimento !== undefined ? this.isTrasferimento : null;\r\n data[\"isVisita\"] = this.isVisita !== undefined ? this.isVisita : null;\r\n data[\"isCrociera\"] = this.isCrociera !== undefined ? this.isCrociera : null;\r\n data[\"isQuoteApertura\"] = this.isQuoteApertura !== undefined ? this.isQuoteApertura : null;\r\n data[\"isBloccaPrezzo\"] = this.isBloccaPrezzo !== undefined ? this.isBloccaPrezzo : null;\r\n data[\"isCommissioneAgenziaSuBiglietteria\"] = this.isCommissioneAgenziaSuBiglietteria !== undefined ? this.isCommissioneAgenziaSuBiglietteria : null;\r\n data[\"isDirittiAgenzia\"] = this.isDirittiAgenzia !== undefined ? this.isDirittiAgenzia : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"moltiplicatoreServizio\"] = this.moltiplicatoreServizio !== undefined ? this.moltiplicatoreServizio : null;\r\n if (Array.isArray(this.accordi)) {\r\n data[\"accordi\"] = [];\r\n for (let item of this.accordi)\r\n data[\"accordi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.validita)) {\r\n data[\"validita\"] = [];\r\n for (let item of this.validita)\r\n data[\"validita\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.regoleServizio)) {\r\n data[\"regoleServizio\"] = [];\r\n for (let item of this.regoleServizio)\r\n data[\"regoleServizio\"].push(item.toJSON());\r\n }\r\n if (this.regoleServizioDict) {\r\n data[\"regoleServizioDict\"] = {};\r\n for (let key in this.regoleServizioDict) {\r\n if (this.regoleServizioDict.hasOwnProperty(key))\r\n (data[\"regoleServizioDict\"])[key] = this.regoleServizioDict[key] ? this.regoleServizioDict[key].toJSON() : null;\r\n }\r\n }\r\n if (Array.isArray(this.regoleVendita)) {\r\n data[\"regoleVendita\"] = [];\r\n for (let item of this.regoleVendita)\r\n data[\"regoleVendita\"].push(item.toJSON());\r\n }\r\n if (this.regoleVenditaDict) {\r\n data[\"regoleVenditaDict\"] = {};\r\n for (let key in this.regoleVenditaDict) {\r\n if (this.regoleVenditaDict.hasOwnProperty(key))\r\n (data[\"regoleVenditaDict\"])[key] = this.regoleVenditaDict[key] ? this.regoleVenditaDict[key].toJSON() : null;\r\n }\r\n }\r\n if (Array.isArray(this.costi)) {\r\n data[\"costi\"] = [];\r\n for (let item of this.costi)\r\n data[\"costi\"].push(item.toJSON());\r\n }\r\n if (this.partenzeDict) {\r\n data[\"partenzeDict\"] = {};\r\n for (let key in this.partenzeDict) {\r\n if (this.partenzeDict.hasOwnProperty(key))\r\n (data[\"partenzeDict\"])[key] = this.partenzeDict[key] ? this.partenzeDict[key].toJSON() : null;\r\n }\r\n }\r\n if (Array.isArray(this.partenze)) {\r\n data[\"partenze\"] = [];\r\n for (let item of this.partenze)\r\n data[\"partenze\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.luoghi)) {\r\n data[\"luoghi\"] = [];\r\n for (let item of this.luoghi)\r\n data[\"luoghi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.associazioni)) {\r\n data[\"associazioni\"] = [];\r\n for (let item of this.associazioni)\r\n data[\"associazioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.associazioniOfferteComponibili)) {\r\n data[\"associazioniOfferteComponibili\"] = [];\r\n for (let item of this.associazioniOfferteComponibili)\r\n data[\"associazioniOfferteComponibili\"].push(item.toJSON());\r\n }\r\n data[\"giornaliero\"] = this.giornaliero !== undefined ? this.giornaliero : null;\r\n data[\"stelle\"] = this.stelle !== undefined ? this.stelle : null;\r\n data[\"escludiDaAutofill\"] = this.escludiDaAutofill !== undefined ? this.escludiDaAutofill : null;\r\n data[\"vicinoAeroporto\"] = this.vicinoAeroporto !== undefined ? this.vicinoAeroporto : null;\r\n data[\"haAttributiTestata\"] = this.haAttributiTestata !== undefined ? this.haAttributiTestata : null;\r\n data[\"haAttributiNoleggio\"] = this.haAttributiNoleggio !== undefined ? this.haAttributiNoleggio : null;\r\n if (Array.isArray(this.attributiNoleggio)) {\r\n data[\"attributiNoleggio\"] = [];\r\n for (let item of this.attributiNoleggio)\r\n data[\"attributiNoleggio\"].push(item.toJSON());\r\n }\r\n data[\"haCategoria\"] = this.haCategoria !== undefined ? this.haCategoria : null;\r\n data[\"haNuovo\"] = this.haNuovo !== undefined ? this.haNuovo : null;\r\n data[\"haVantaggi\"] = this.haVantaggi !== undefined ? this.haVantaggi : null;\r\n data[\"haServizi\"] = this.haServizi !== undefined ? this.haServizi : null;\r\n data[\"datoAggiuntivoPenale\"] = this.datoAggiuntivoPenale ? this.datoAggiuntivoPenale.toJSON() : null;\r\n data[\"aPartireDa\"] = this.aPartireDa !== undefined ? this.aPartireDa : null;\r\n data[\"isViaggiDelClub\"] = this.isViaggiDelClub !== undefined ? this.isViaggiDelClub : null;\r\n data[\"offerDestination\"] = this.offerDestination ? this.offerDestination.toJSON() : null;\r\n data[\"offerteDestinationCodice\"] = this.offerteDestinationCodice !== undefined ? this.offerteDestinationCodice : null;\r\n data[\"offerteDestinationNome\"] = this.offerteDestinationNome !== undefined ? this.offerteDestinationNome : null;\r\n data[\"offertaAPartireDa\"] = this.offertaAPartireDa !== undefined ? this.offertaAPartireDa : null;\r\n data[\"isOffertaViaggio\"] = this.isOffertaViaggio !== undefined ? this.isOffertaViaggio : null;\r\n if (Array.isArray(this.servDatiAggiuntivi)) {\r\n data[\"servDatiAggiuntivi\"] = [];\r\n for (let item of this.servDatiAggiuntivi)\r\n data[\"servDatiAggiuntivi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.datiAggiuntiviPenaleDefault)) {\r\n data[\"datiAggiuntiviPenaleDefault\"] = [];\r\n for (let item of this.datiAggiuntiviPenaleDefault)\r\n data[\"datiAggiuntiviPenaleDefault\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.prezzi)) {\r\n data[\"prezzi\"] = [];\r\n for (let item of this.prezzi)\r\n data[\"prezzi\"].push(item.toJSON());\r\n }\r\n data[\"isSpecialOffert\"] = this.isSpecialOffert !== undefined ? this.isSpecialOffert : null;\r\n data[\"rangeValiditaCosti\"] = this.rangeValiditaCosti ? this.rangeValiditaCosti.toJSON() : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n data[\"sunto\"] = this.sunto ? this.sunto.toJSON() : null;\r\n if (Array.isArray(this.articoli)) {\r\n data[\"articoli\"] = [];\r\n for (let item of this.articoli)\r\n data[\"articoli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.articoliGiorni)) {\r\n data[\"articoliGiorni\"] = [];\r\n for (let item of this.articoliGiorni)\r\n data[\"articoliGiorni\"].push(item.toJSON());\r\n }\r\n data[\"srtNome_it\"] = this.srtNome_it !== undefined ? this.srtNome_it : null;\r\n data[\"srtNome_en\"] = this.srtNome_en !== undefined ? this.srtNome_en : null;\r\n data[\"srtNome_fr\"] = this.srtNome_fr !== undefined ? this.srtNome_fr : null;\r\n data[\"srtNome_de\"] = this.srtNome_de !== undefined ? this.srtNome_de : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioInfo extends IServizioInfoBase {\r\n _Prezzi?: PrezzoOfferta[] | null;\r\n id?: number;\r\n table?: string | null;\r\n uniqueID?: string | null;\r\n servizio?: Servizio | null;\r\n eliminato?: boolean;\r\n luogoID?: number;\r\n contattoFornitore?: ContattoInfo | null;\r\n nomeFornitore?: string | null;\r\n srtNomeFornitore?: string | null;\r\n templateAssociati?: PacchettoInfo[] | null;\r\n regoleScontoPacchetto?: ServizioRegolaScontoPacchetto[] | null;\r\n deltaMargine?: number;\r\n immagini?: ImmagineInfo[] | null;\r\n coverImage?: string | null;\r\n isObsoleto?: boolean;\r\n isVolo?: boolean;\r\n isBookingFeeBiglietteria?: boolean;\r\n isNonMappato?: boolean;\r\n tipologie?: ServizioTipologiaInfo[] | null;\r\n hasMandatorySupplements?: boolean;\r\n tipologieDict?: { [key: string]: ServizioTipologiaInfo; } | null;\r\n ordine?: number;\r\n itinerari?: ServizioItinerario[] | null;\r\n itinerariTour?: ServizioItinerarioInfo[] | null;\r\n isAssicurazione?: boolean;\r\n isAssicurazioneSanitariaFacoltativa?: boolean;\r\n isVariazione?: boolean;\r\n isTasseVolo?: boolean;\r\n isCamper?: boolean;\r\n isMoto?: boolean;\r\n isTrasferimento?: boolean;\r\n isVisita?: boolean;\r\n isCrociera?: boolean;\r\n isQuoteApertura?: boolean;\r\n isBloccaPrezzo?: boolean;\r\n isCommissioneAgenziaSuBiglietteria?: boolean;\r\n isDirittiAgenzia?: boolean;\r\n tipoServizio?: ETipoServizioFlags;\r\n moltiplicatoreServizio?: number;\r\n accordi?: ServizioAccordoInfo[] | null;\r\n validita?: Validita[] | null;\r\n regoleServizio?: ServizioRegola[] | null;\r\n regoleServizioDict?: { [key: string]: ServizioRegola; } | null;\r\n regoleVendita?: ServizioRegolaVendita[] | null;\r\n regoleVenditaDict?: { [key: string]: ServizioRegolaVendita; } | null;\r\n costi?: CostoInfo[] | null;\r\n partenzeDict?: { [key: string]: Partenza; } | null;\r\n partenze?: Partenza[] | null;\r\n luoghi?: ServizioLuogo[] | null;\r\n associazioni?: ServizioAssociazioneInfo[] | null;\r\n associazioniOfferteComponibili?: ServizioAssociazioneInfo[] | null;\r\n giornaliero?: boolean;\r\n stelle?: number | null;\r\n escludiDaAutofill?: boolean;\r\n vicinoAeroporto?: boolean;\r\n haAttributiTestata?: boolean;\r\n haAttributiNoleggio?: boolean;\r\n attributiNoleggio?: ServizioDatoAggiuntivoInfo[] | null;\r\n haCategoria?: boolean;\r\n haNuovo?: boolean;\r\n haVantaggi?: boolean;\r\n haServizi?: boolean;\r\n datoAggiuntivoPenale?: ServizioDatoAggiuntivoInfo | null;\r\n aPartireDa?: number | null;\r\n isViaggiDelClub?: boolean;\r\n offerDestination?: DatoAggiuntivo | null;\r\n offerteDestinationCodice?: string | null;\r\n offerteDestinationNome?: string | null;\r\n offertaAPartireDa?: string | null;\r\n isOffertaViaggio?: boolean;\r\n servDatiAggiuntivi?: ServizioDatoAggiuntivoInfo[] | null;\r\n datiAggiuntiviPenaleDefault?: ServizioDatoAggiuntivoInfo[] | null;\r\n prezzi?: PrezzoOfferta[] | null;\r\n isSpecialOffert?: boolean;\r\n rangeValiditaCosti?: ServizioValiditaCosti | null;\r\n mappa?: Mappa | null;\r\n sunto?: ArticoloInfo | null;\r\n articoli?: ArticoloInfo[] | null;\r\n articoliGiorni?: ArticoloInfo[] | null;\r\n srtNome_it?: string | null;\r\n srtNome_en?: string | null;\r\n srtNome_fr?: string | null;\r\n srtNome_de?: string | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n}\r\n\r\nexport class PrezzoOfferta implements IPrezzoOfferta {\r\n id?: number;\r\n offertaID?: number;\r\n data?: string;\r\n modalitaData?: EModalitaDataPrezzo;\r\n prezzoPersonaLand?: number;\r\n prezzoPersonaVoli?: number;\r\n aggiornato?: string | null;\r\n frequenzaAggiornamentoGiorni?: number | null;\r\n manuale?: boolean;\r\n prossimoCheck?: string | null;\r\n errore?: boolean;\r\n includiVoli?: boolean;\r\n\r\n constructor(data?: IPrezzoOfferta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.modalitaData = _data[\"modalitaData\"] !== undefined ? _data[\"modalitaData\"] : null;\r\n this.prezzoPersonaLand = _data[\"prezzoPersonaLand\"] !== undefined ? _data[\"prezzoPersonaLand\"] : null;\r\n this.prezzoPersonaVoli = _data[\"prezzoPersonaVoli\"] !== undefined ? _data[\"prezzoPersonaVoli\"] : null;\r\n this.aggiornato = _data[\"aggiornato\"] !== undefined ? _data[\"aggiornato\"] : null;\r\n this.frequenzaAggiornamentoGiorni = _data[\"frequenzaAggiornamentoGiorni\"] !== undefined ? _data[\"frequenzaAggiornamentoGiorni\"] : null;\r\n this.manuale = _data[\"manuale\"] !== undefined ? _data[\"manuale\"] : null;\r\n this.prossimoCheck = _data[\"prossimoCheck\"] !== undefined ? _data[\"prossimoCheck\"] : null;\r\n this.errore = _data[\"errore\"] !== undefined ? _data[\"errore\"] : null;\r\n this.includiVoli = _data[\"includiVoli\"] !== undefined ? _data[\"includiVoli\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PrezzoOfferta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PrezzoOfferta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"modalitaData\"] = this.modalitaData !== undefined ? this.modalitaData : null;\r\n data[\"prezzoPersonaLand\"] = this.prezzoPersonaLand !== undefined ? this.prezzoPersonaLand : null;\r\n data[\"prezzoPersonaVoli\"] = this.prezzoPersonaVoli !== undefined ? this.prezzoPersonaVoli : null;\r\n data[\"aggiornato\"] = this.aggiornato !== undefined ? this.aggiornato : null;\r\n data[\"frequenzaAggiornamentoGiorni\"] = this.frequenzaAggiornamentoGiorni !== undefined ? this.frequenzaAggiornamentoGiorni : null;\r\n data[\"manuale\"] = this.manuale !== undefined ? this.manuale : null;\r\n data[\"prossimoCheck\"] = this.prossimoCheck !== undefined ? this.prossimoCheck : null;\r\n data[\"errore\"] = this.errore !== undefined ? this.errore : null;\r\n data[\"includiVoli\"] = this.includiVoli !== undefined ? this.includiVoli : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPrezzoOfferta {\r\n id?: number;\r\n offertaID?: number;\r\n data?: string;\r\n modalitaData?: EModalitaDataPrezzo;\r\n prezzoPersonaLand?: number;\r\n prezzoPersonaVoli?: number;\r\n aggiornato?: string | null;\r\n frequenzaAggiornamentoGiorni?: number | null;\r\n manuale?: boolean;\r\n prossimoCheck?: string | null;\r\n errore?: boolean;\r\n includiVoli?: boolean;\r\n}\r\n\r\nexport enum EModalitaDataPrezzo {\r\n DataEsatta = \"DataEsatta\",\r\n Mese = \"Mese\",\r\n}\r\n\r\nexport class PacchettoInfo implements IPacchettoInfo {\r\n id?: number;\r\n offerta?: Offerta | null;\r\n tappe?: PacchettoTappaInfo[] | null;\r\n notti?: number;\r\n prezzi?: PrezzoOfferta[] | null;\r\n giorni?: number;\r\n destinazione?: LuogoInfo | null;\r\n\r\n constructor(data?: IPacchettoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.offerta = _data[\"offerta\"] ? Offerta.fromJS(_data[\"offerta\"]) : null;\r\n if (Array.isArray(_data[\"tappe\"])) {\r\n this.tappe = [] as any;\r\n for (let item of _data[\"tappe\"])\r\n this.tappe!.push(PacchettoTappaInfo.fromJS(item));\r\n }\r\n else {\r\n this.tappe = null;\r\n }\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n if (Array.isArray(_data[\"prezzi\"])) {\r\n this.prezzi = [] as any;\r\n for (let item of _data[\"prezzi\"])\r\n this.prezzi!.push(PrezzoOfferta.fromJS(item));\r\n }\r\n else {\r\n this.prezzi = null;\r\n }\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.destinazione = _data[\"destinazione\"] ? LuogoInfo.fromJS(_data[\"destinazione\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PacchettoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PacchettoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n if (Array.isArray(this.tappe)) {\r\n data[\"tappe\"] = [];\r\n for (let item of this.tappe)\r\n data[\"tappe\"].push(item.toJSON());\r\n }\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n if (Array.isArray(this.prezzi)) {\r\n data[\"prezzi\"] = [];\r\n for (let item of this.prezzi)\r\n data[\"prezzi\"].push(item.toJSON());\r\n }\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"destinazione\"] = this.destinazione ? this.destinazione.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPacchettoInfo {\r\n id?: number;\r\n offerta?: Offerta | null;\r\n tappe?: PacchettoTappaInfo[] | null;\r\n notti?: number;\r\n prezzi?: PrezzoOfferta[] | null;\r\n giorni?: number;\r\n destinazione?: LuogoInfo | null;\r\n}\r\n\r\nexport class PacchettoTappaInfo implements IPacchettoTappaInfo {\r\n id?: number;\r\n tappa?: OffertaItinerario | null;\r\n luogo?: LuogoInfo | null;\r\n servizi?: PacchettoServizioInfo[] | null;\r\n hasHotel?: boolean;\r\n servizioHotelTappa?: ServizioInfo | null;\r\n contattoHotelTappaID?: number | null;\r\n\r\n constructor(data?: IPacchettoTappaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tappa = _data[\"tappa\"] ? OffertaItinerario.fromJS(_data[\"tappa\"]) : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(PacchettoServizioInfo.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n this.hasHotel = _data[\"hasHotel\"] !== undefined ? _data[\"hasHotel\"] : null;\r\n this.servizioHotelTappa = _data[\"servizioHotelTappa\"] ? ServizioInfo.fromJS(_data[\"servizioHotelTappa\"]) : null;\r\n this.contattoHotelTappaID = _data[\"contattoHotelTappaID\"] !== undefined ? _data[\"contattoHotelTappaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PacchettoTappaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PacchettoTappaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tappa\"] = this.tappa ? this.tappa.toJSON() : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n data[\"hasHotel\"] = this.hasHotel !== undefined ? this.hasHotel : null;\r\n data[\"servizioHotelTappa\"] = this.servizioHotelTappa ? this.servizioHotelTappa.toJSON() : null;\r\n data[\"contattoHotelTappaID\"] = this.contattoHotelTappaID !== undefined ? this.contattoHotelTappaID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPacchettoTappaInfo {\r\n id?: number;\r\n tappa?: OffertaItinerario | null;\r\n luogo?: LuogoInfo | null;\r\n servizi?: PacchettoServizioInfo[] | null;\r\n hasHotel?: boolean;\r\n servizioHotelTappa?: ServizioInfo | null;\r\n contattoHotelTappaID?: number | null;\r\n}\r\n\r\nexport class PacchettoServizioInfo implements IPacchettoServizioInfo {\r\n id?: number;\r\n riga?: OffertaDato | null;\r\n servizio?: ServizioInfo | null;\r\n\r\n constructor(data?: IPacchettoServizioInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PacchettoServizioInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PacchettoServizioInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPacchettoServizioInfo {\r\n id?: number;\r\n riga?: OffertaDato | null;\r\n servizio?: ServizioInfo | null;\r\n}\r\n\r\nexport class ServizioRegolaScontoPacchetto implements IServizioRegolaScontoPacchetto {\r\n id?: number;\r\n servizioID?: number;\r\n itinerarioID?: number | null;\r\n prenotaDal?: string | null;\r\n prenotaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n scontoServiziTerra?: number;\r\n scontoQuote?: number;\r\n scontoBloccaPrezzo?: number;\r\n nome?: string | null;\r\n\r\n constructor(data?: IServizioRegolaScontoPacchetto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n this.prenotaDal = _data[\"prenotaDal\"] !== undefined ? _data[\"prenotaDal\"] : null;\r\n this.prenotaAl = _data[\"prenotaAl\"] !== undefined ? _data[\"prenotaAl\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.scontoServiziTerra = _data[\"scontoServiziTerra\"] !== undefined ? _data[\"scontoServiziTerra\"] : null;\r\n this.scontoQuote = _data[\"scontoQuote\"] !== undefined ? _data[\"scontoQuote\"] : null;\r\n this.scontoBloccaPrezzo = _data[\"scontoBloccaPrezzo\"] !== undefined ? _data[\"scontoBloccaPrezzo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioRegolaScontoPacchetto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioRegolaScontoPacchetto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n data[\"prenotaDal\"] = this.prenotaDal !== undefined ? this.prenotaDal : null;\r\n data[\"prenotaAl\"] = this.prenotaAl !== undefined ? this.prenotaAl : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"scontoServiziTerra\"] = this.scontoServiziTerra !== undefined ? this.scontoServiziTerra : null;\r\n data[\"scontoQuote\"] = this.scontoQuote !== undefined ? this.scontoQuote : null;\r\n data[\"scontoBloccaPrezzo\"] = this.scontoBloccaPrezzo !== undefined ? this.scontoBloccaPrezzo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioRegolaScontoPacchetto {\r\n id?: number;\r\n servizioID?: number;\r\n itinerarioID?: number | null;\r\n prenotaDal?: string | null;\r\n prenotaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n scontoServiziTerra?: number;\r\n scontoQuote?: number;\r\n scontoBloccaPrezzo?: number;\r\n nome?: string | null;\r\n}\r\n\r\nexport class ImmagineInfo implements IImmagineInfo {\r\n id?: number;\r\n immagine?: Immagine;\r\n eliminata?: boolean;\r\n servizio?: ServizioInfo | null;\r\n luogo?: LuogoInfo | null;\r\n articolo?: ArticoloInfo | null;\r\n linkedFile?: FileInfoBase;\r\n\r\n constructor(data?: IImmagineInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.immagine = _data[\"immagine\"] ? Immagine.fromJS(_data[\"immagine\"]) : null;\r\n this.eliminata = _data[\"eliminata\"] !== undefined ? _data[\"eliminata\"] : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n this.articolo = _data[\"articolo\"] ? ArticoloInfo.fromJS(_data[\"articolo\"]) : null;\r\n this.linkedFile = _data[\"linkedFile\"] ? FileInfoBase.fromJS(_data[\"linkedFile\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImmagineInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImmagineInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"immagine\"] = this.immagine ? this.immagine.toJSON() : null;\r\n data[\"eliminata\"] = this.eliminata !== undefined ? this.eliminata : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"articolo\"] = this.articolo ? this.articolo.toJSON() : null;\r\n data[\"linkedFile\"] = this.linkedFile ? this.linkedFile.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImmagineInfo {\r\n id?: number;\r\n immagine?: Immagine;\r\n eliminata?: boolean;\r\n servizio?: ServizioInfo | null;\r\n luogo?: LuogoInfo | null;\r\n articolo?: ArticoloInfo | null;\r\n linkedFile?: FileInfoBase;\r\n}\r\n\r\nexport class Immagine implements IImmagine {\r\n immagineID?: number;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n articoloID?: number | null;\r\n ordine?: number | null;\r\n nomeImmagine?: string | null;\r\n dataModifica?: string;\r\n pathWeb?: string | null;\r\n pathThumb?: string | null;\r\n pathOriginal?: string | null;\r\n nome_it?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n elaborata?: boolean;\r\n sorgente?: ESorgenteImmagine;\r\n idSorgente?: string | null;\r\n programma?: boolean | null;\r\n sitoWeb?: boolean | null;\r\n preventivo?: boolean | null;\r\n miniGuida?: boolean | null;\r\n hash?: string | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n storge?: EStorage;\r\n\r\n constructor(data?: IImmagine) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.immagineID = _data[\"immagineID\"] !== undefined ? _data[\"immagineID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.nomeImmagine = _data[\"nomeImmagine\"] !== undefined ? _data[\"nomeImmagine\"] : null;\r\n this.dataModifica = _data[\"dataModifica\"] !== undefined ? _data[\"dataModifica\"] : null;\r\n this.pathWeb = _data[\"pathWeb\"] !== undefined ? _data[\"pathWeb\"] : null;\r\n this.pathThumb = _data[\"pathThumb\"] !== undefined ? _data[\"pathThumb\"] : null;\r\n this.pathOriginal = _data[\"pathOriginal\"] !== undefined ? _data[\"pathOriginal\"] : null;\r\n this.nome_it = _data[\"nome_it\"] !== undefined ? _data[\"nome_it\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.elaborata = _data[\"elaborata\"] !== undefined ? _data[\"elaborata\"] : null;\r\n this.sorgente = _data[\"sorgente\"] !== undefined ? _data[\"sorgente\"] : null;\r\n this.idSorgente = _data[\"idSorgente\"] !== undefined ? _data[\"idSorgente\"] : null;\r\n this.programma = _data[\"programma\"] !== undefined ? _data[\"programma\"] : null;\r\n this.sitoWeb = _data[\"sitoWeb\"] !== undefined ? _data[\"sitoWeb\"] : null;\r\n this.preventivo = _data[\"preventivo\"] !== undefined ? _data[\"preventivo\"] : null;\r\n this.miniGuida = _data[\"miniGuida\"] !== undefined ? _data[\"miniGuida\"] : null;\r\n this.hash = _data[\"hash\"] !== undefined ? _data[\"hash\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.deletedAt = _data[\"deletedAt\"] !== undefined ? _data[\"deletedAt\"] : null;\r\n this.storge = _data[\"storge\"] !== undefined ? _data[\"storge\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Immagine {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Immagine();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"immagineID\"] = this.immagineID !== undefined ? this.immagineID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"nomeImmagine\"] = this.nomeImmagine !== undefined ? this.nomeImmagine : null;\r\n data[\"dataModifica\"] = this.dataModifica !== undefined ? this.dataModifica : null;\r\n data[\"pathWeb\"] = this.pathWeb !== undefined ? this.pathWeb : null;\r\n data[\"pathThumb\"] = this.pathThumb !== undefined ? this.pathThumb : null;\r\n data[\"pathOriginal\"] = this.pathOriginal !== undefined ? this.pathOriginal : null;\r\n data[\"nome_it\"] = this.nome_it !== undefined ? this.nome_it : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"elaborata\"] = this.elaborata !== undefined ? this.elaborata : null;\r\n data[\"sorgente\"] = this.sorgente !== undefined ? this.sorgente : null;\r\n data[\"idSorgente\"] = this.idSorgente !== undefined ? this.idSorgente : null;\r\n data[\"programma\"] = this.programma !== undefined ? this.programma : null;\r\n data[\"sitoWeb\"] = this.sitoWeb !== undefined ? this.sitoWeb : null;\r\n data[\"preventivo\"] = this.preventivo !== undefined ? this.preventivo : null;\r\n data[\"miniGuida\"] = this.miniGuida !== undefined ? this.miniGuida : null;\r\n data[\"hash\"] = this.hash !== undefined ? this.hash : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"deletedAt\"] = this.deletedAt !== undefined ? this.deletedAt : null;\r\n data[\"storge\"] = this.storge !== undefined ? this.storge : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImmagine {\r\n immagineID?: number;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n articoloID?: number | null;\r\n ordine?: number | null;\r\n nomeImmagine?: string | null;\r\n dataModifica?: string;\r\n pathWeb?: string | null;\r\n pathThumb?: string | null;\r\n pathOriginal?: string | null;\r\n nome_it?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n elaborata?: boolean;\r\n sorgente?: ESorgenteImmagine;\r\n idSorgente?: string | null;\r\n programma?: boolean | null;\r\n sitoWeb?: boolean | null;\r\n preventivo?: boolean | null;\r\n miniGuida?: boolean | null;\r\n hash?: string | null;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n deletedAt?: string | null;\r\n storge?: EStorage;\r\n}\r\n\r\nexport enum ESorgenteImmagine {\r\n Ignota = \"Ignota\",\r\n Pixabay = \"Pixabay\",\r\n}\r\n\r\nexport abstract class FileInfoBase implements IFileInfoBase {\r\n extension?: string;\r\n contentType?: string;\r\n isPdf?: boolean;\r\n canGetAsPdf?: boolean;\r\n\r\n constructor(data?: IFileInfoBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.extension = _data[\"extension\"] !== undefined ? _data[\"extension\"] : null;\r\n this.contentType = _data[\"contentType\"] !== undefined ? _data[\"contentType\"] : null;\r\n this.isPdf = _data[\"isPdf\"] !== undefined ? _data[\"isPdf\"] : null;\r\n this.canGetAsPdf = _data[\"canGetAsPdf\"] !== undefined ? _data[\"canGetAsPdf\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): FileInfoBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'FileInfoBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"extension\"] = this.extension !== undefined ? this.extension : null;\r\n data[\"contentType\"] = this.contentType !== undefined ? this.contentType : null;\r\n data[\"isPdf\"] = this.isPdf !== undefined ? this.isPdf : null;\r\n data[\"canGetAsPdf\"] = this.canGetAsPdf !== undefined ? this.canGetAsPdf : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFileInfoBase {\r\n extension?: string;\r\n contentType?: string;\r\n isPdf?: boolean;\r\n canGetAsPdf?: boolean;\r\n}\r\n\r\nexport class ServizioTipologiaInfo implements IServizioTipologiaInfo {\r\n id?: number;\r\n tipologia?: ServizioTipologia | null;\r\n templateAssociati?: PacchettoInfo[] | null;\r\n isSupplemento?: boolean;\r\n isObbligatorio?: boolean;\r\n prezzoMinimo?: number | null;\r\n aPartireDa?: PrezzoMin[] | null;\r\n nomeNormalized?: string | null;\r\n regolaPacchetto?: ServizioTipologiaRegolaPacchetto | null;\r\n tipologiaStandard?: ServizioTipologiaStandardInfo | null;\r\n itinerario?: ServizioItinerarioInfo | null;\r\n richiedeCreazioneItinerario?: boolean;\r\n supplementoRiduzione?: ESupplementoRiduzione;\r\n\r\n constructor(data?: IServizioTipologiaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologia.fromJS(_data[\"tipologia\"]) : null;\r\n if (Array.isArray(_data[\"templateAssociati\"])) {\r\n this.templateAssociati = [] as any;\r\n for (let item of _data[\"templateAssociati\"])\r\n this.templateAssociati!.push(PacchettoInfo.fromJS(item));\r\n }\r\n else {\r\n this.templateAssociati = null;\r\n }\r\n this.isSupplemento = _data[\"isSupplemento\"] !== undefined ? _data[\"isSupplemento\"] : null;\r\n this.isObbligatorio = _data[\"isObbligatorio\"] !== undefined ? _data[\"isObbligatorio\"] : null;\r\n this.prezzoMinimo = _data[\"prezzoMinimo\"] !== undefined ? _data[\"prezzoMinimo\"] : null;\r\n if (Array.isArray(_data[\"aPartireDa\"])) {\r\n this.aPartireDa = [] as any;\r\n for (let item of _data[\"aPartireDa\"])\r\n this.aPartireDa!.push(PrezzoMin.fromJS(item));\r\n }\r\n else {\r\n this.aPartireDa = null;\r\n }\r\n this.nomeNormalized = _data[\"nomeNormalized\"] !== undefined ? _data[\"nomeNormalized\"] : null;\r\n this.regolaPacchetto = _data[\"regolaPacchetto\"] ? ServizioTipologiaRegolaPacchetto.fromJS(_data[\"regolaPacchetto\"]) : null;\r\n this.tipologiaStandard = _data[\"tipologiaStandard\"] ? ServizioTipologiaStandardInfo.fromJS(_data[\"tipologiaStandard\"]) : null;\r\n this.itinerario = _data[\"itinerario\"] ? ServizioItinerarioInfo.fromJS(_data[\"itinerario\"]) : null;\r\n this.richiedeCreazioneItinerario = _data[\"richiedeCreazioneItinerario\"] !== undefined ? _data[\"richiedeCreazioneItinerario\"] : null;\r\n this.supplementoRiduzione = _data[\"supplementoRiduzione\"] !== undefined ? _data[\"supplementoRiduzione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioTipologiaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioTipologiaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n if (Array.isArray(this.templateAssociati)) {\r\n data[\"templateAssociati\"] = [];\r\n for (let item of this.templateAssociati)\r\n data[\"templateAssociati\"].push(item.toJSON());\r\n }\r\n data[\"isSupplemento\"] = this.isSupplemento !== undefined ? this.isSupplemento : null;\r\n data[\"isObbligatorio\"] = this.isObbligatorio !== undefined ? this.isObbligatorio : null;\r\n data[\"prezzoMinimo\"] = this.prezzoMinimo !== undefined ? this.prezzoMinimo : null;\r\n if (Array.isArray(this.aPartireDa)) {\r\n data[\"aPartireDa\"] = [];\r\n for (let item of this.aPartireDa)\r\n data[\"aPartireDa\"].push(item.toJSON());\r\n }\r\n data[\"nomeNormalized\"] = this.nomeNormalized !== undefined ? this.nomeNormalized : null;\r\n data[\"regolaPacchetto\"] = this.regolaPacchetto ? this.regolaPacchetto.toJSON() : null;\r\n data[\"tipologiaStandard\"] = this.tipologiaStandard ? this.tipologiaStandard.toJSON() : null;\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n data[\"richiedeCreazioneItinerario\"] = this.richiedeCreazioneItinerario !== undefined ? this.richiedeCreazioneItinerario : null;\r\n data[\"supplementoRiduzione\"] = this.supplementoRiduzione !== undefined ? this.supplementoRiduzione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioTipologiaInfo {\r\n id?: number;\r\n tipologia?: ServizioTipologia | null;\r\n templateAssociati?: PacchettoInfo[] | null;\r\n isSupplemento?: boolean;\r\n isObbligatorio?: boolean;\r\n prezzoMinimo?: number | null;\r\n aPartireDa?: PrezzoMin[] | null;\r\n nomeNormalized?: string | null;\r\n regolaPacchetto?: ServizioTipologiaRegolaPacchetto | null;\r\n tipologiaStandard?: ServizioTipologiaStandardInfo | null;\r\n itinerario?: ServizioItinerarioInfo | null;\r\n richiedeCreazioneItinerario?: boolean;\r\n supplementoRiduzione?: ESupplementoRiduzione;\r\n}\r\n\r\nexport abstract class ServizioTipologiaBase implements IServizioTipologiaBase {\r\n servizioTipologiaID?: number;\r\n servizioID?: number;\r\n\r\n constructor(data?: IServizioTipologiaBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioTipologiaBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ServizioTipologiaBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioTipologiaBase {\r\n servizioTipologiaID?: number;\r\n servizioID?: number;\r\n}\r\n\r\nexport class ServizioTipologia extends ServizioTipologiaBase implements IServizioTipologia {\r\n contattoVoucherID?: number | null;\r\n nome?: string | null;\r\n nomeVoucher?: string | null;\r\n nomeSecondario?: string | null;\r\n nomeSecondarioVoucher?: string | null;\r\n tipoSupplemento?: ETipoSupplemento | null;\r\n supplementoRiduzione?: ESupplementoRiduzione | null;\r\n verificaPartenze?: boolean;\r\n supplementoPercentuale?: boolean | null;\r\n itinerarioID?: number | null;\r\n ordine?: number | null;\r\n obbligatorio?: EObbligatorieta | null;\r\n alternativa?: number | null;\r\n interno?: boolean | null;\r\n costoPerPersona?: boolean;\r\n costoPerGiorno?: boolean | null;\r\n supplementoSuRichiesta?: boolean | null;\r\n selezionePax?: boolean | null;\r\n condividi?: boolean | null;\r\n memo?: string | null;\r\n contattoInizioID?: number | null;\r\n contattoInizio?: Contatto | null;\r\n contattoFineID?: number | null;\r\n contattoFine?: Contatto | null;\r\n orarioInizio?: string | null;\r\n puntoInizio?: string | null;\r\n orarioFine?: string | null;\r\n puntoFine?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n deleted?: string | null;\r\n regolaPacchettoID?: number | null;\r\n tipologiaStandardID?: number | null;\r\n paramsJson?: string | null;\r\n languages?: ELingua[] | null;\r\n tipoTipologia?: ETipoSupplemento;\r\n\r\n constructor(data?: IServizioTipologia) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.contattoVoucherID = _data[\"contattoVoucherID\"] !== undefined ? _data[\"contattoVoucherID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeVoucher = _data[\"nomeVoucher\"] !== undefined ? _data[\"nomeVoucher\"] : null;\r\n this.nomeSecondario = _data[\"nomeSecondario\"] !== undefined ? _data[\"nomeSecondario\"] : null;\r\n this.nomeSecondarioVoucher = _data[\"nomeSecondarioVoucher\"] !== undefined ? _data[\"nomeSecondarioVoucher\"] : null;\r\n this.tipoSupplemento = _data[\"tipoSupplemento\"] !== undefined ? _data[\"tipoSupplemento\"] : null;\r\n this.supplementoRiduzione = _data[\"supplementoRiduzione\"] !== undefined ? _data[\"supplementoRiduzione\"] : null;\r\n this.verificaPartenze = _data[\"verificaPartenze\"] !== undefined ? _data[\"verificaPartenze\"] : null;\r\n this.supplementoPercentuale = _data[\"supplementoPercentuale\"] !== undefined ? _data[\"supplementoPercentuale\"] : null;\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.obbligatorio = _data[\"obbligatorio\"] !== undefined ? _data[\"obbligatorio\"] : null;\r\n this.alternativa = _data[\"alternativa\"] !== undefined ? _data[\"alternativa\"] : null;\r\n this.interno = _data[\"interno\"] !== undefined ? _data[\"interno\"] : null;\r\n this.costoPerPersona = _data[\"costoPerPersona\"] !== undefined ? _data[\"costoPerPersona\"] : null;\r\n this.costoPerGiorno = _data[\"costoPerGiorno\"] !== undefined ? _data[\"costoPerGiorno\"] : null;\r\n this.supplementoSuRichiesta = _data[\"supplementoSuRichiesta\"] !== undefined ? _data[\"supplementoSuRichiesta\"] : null;\r\n this.selezionePax = _data[\"selezionePax\"] !== undefined ? _data[\"selezionePax\"] : null;\r\n this.condividi = _data[\"condividi\"] !== undefined ? _data[\"condividi\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.contattoInizioID = _data[\"contattoInizioID\"] !== undefined ? _data[\"contattoInizioID\"] : null;\r\n this.contattoInizio = _data[\"contattoInizio\"] ? Contatto.fromJS(_data[\"contattoInizio\"]) : null;\r\n this.contattoFineID = _data[\"contattoFineID\"] !== undefined ? _data[\"contattoFineID\"] : null;\r\n this.contattoFine = _data[\"contattoFine\"] ? Contatto.fromJS(_data[\"contattoFine\"]) : null;\r\n this.orarioInizio = _data[\"orarioInizio\"] !== undefined ? _data[\"orarioInizio\"] : null;\r\n this.puntoInizio = _data[\"puntoInizio\"] !== undefined ? _data[\"puntoInizio\"] : null;\r\n this.orarioFine = _data[\"orarioFine\"] !== undefined ? _data[\"orarioFine\"] : null;\r\n this.puntoFine = _data[\"puntoFine\"] !== undefined ? _data[\"puntoFine\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n this.regolaPacchettoID = _data[\"regolaPacchettoID\"] !== undefined ? _data[\"regolaPacchettoID\"] : null;\r\n this.tipologiaStandardID = _data[\"tipologiaStandardID\"] !== undefined ? _data[\"tipologiaStandardID\"] : null;\r\n this.paramsJson = _data[\"paramsJson\"] !== undefined ? _data[\"paramsJson\"] : null;\r\n if (Array.isArray(_data[\"languages\"])) {\r\n this.languages = [] as any;\r\n for (let item of _data[\"languages\"])\r\n this.languages!.push(item);\r\n }\r\n else {\r\n this.languages = null;\r\n }\r\n this.tipoTipologia = _data[\"tipoTipologia\"] !== undefined ? _data[\"tipoTipologia\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioTipologia {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioTipologia();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoVoucherID\"] = this.contattoVoucherID !== undefined ? this.contattoVoucherID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeVoucher\"] = this.nomeVoucher !== undefined ? this.nomeVoucher : null;\r\n data[\"nomeSecondario\"] = this.nomeSecondario !== undefined ? this.nomeSecondario : null;\r\n data[\"nomeSecondarioVoucher\"] = this.nomeSecondarioVoucher !== undefined ? this.nomeSecondarioVoucher : null;\r\n data[\"tipoSupplemento\"] = this.tipoSupplemento !== undefined ? this.tipoSupplemento : null;\r\n data[\"supplementoRiduzione\"] = this.supplementoRiduzione !== undefined ? this.supplementoRiduzione : null;\r\n data[\"verificaPartenze\"] = this.verificaPartenze !== undefined ? this.verificaPartenze : null;\r\n data[\"supplementoPercentuale\"] = this.supplementoPercentuale !== undefined ? this.supplementoPercentuale : null;\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"obbligatorio\"] = this.obbligatorio !== undefined ? this.obbligatorio : null;\r\n data[\"alternativa\"] = this.alternativa !== undefined ? this.alternativa : null;\r\n data[\"interno\"] = this.interno !== undefined ? this.interno : null;\r\n data[\"costoPerPersona\"] = this.costoPerPersona !== undefined ? this.costoPerPersona : null;\r\n data[\"costoPerGiorno\"] = this.costoPerGiorno !== undefined ? this.costoPerGiorno : null;\r\n data[\"supplementoSuRichiesta\"] = this.supplementoSuRichiesta !== undefined ? this.supplementoSuRichiesta : null;\r\n data[\"selezionePax\"] = this.selezionePax !== undefined ? this.selezionePax : null;\r\n data[\"condividi\"] = this.condividi !== undefined ? this.condividi : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"contattoInizioID\"] = this.contattoInizioID !== undefined ? this.contattoInizioID : null;\r\n data[\"contattoInizio\"] = this.contattoInizio ? this.contattoInizio.toJSON() : null;\r\n data[\"contattoFineID\"] = this.contattoFineID !== undefined ? this.contattoFineID : null;\r\n data[\"contattoFine\"] = this.contattoFine ? this.contattoFine.toJSON() : null;\r\n data[\"orarioInizio\"] = this.orarioInizio !== undefined ? this.orarioInizio : null;\r\n data[\"puntoInizio\"] = this.puntoInizio !== undefined ? this.puntoInizio : null;\r\n data[\"orarioFine\"] = this.orarioFine !== undefined ? this.orarioFine : null;\r\n data[\"puntoFine\"] = this.puntoFine !== undefined ? this.puntoFine : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n data[\"regolaPacchettoID\"] = this.regolaPacchettoID !== undefined ? this.regolaPacchettoID : null;\r\n data[\"tipologiaStandardID\"] = this.tipologiaStandardID !== undefined ? this.tipologiaStandardID : null;\r\n data[\"paramsJson\"] = this.paramsJson !== undefined ? this.paramsJson : null;\r\n if (Array.isArray(this.languages)) {\r\n data[\"languages\"] = [];\r\n for (let item of this.languages)\r\n data[\"languages\"].push(item);\r\n }\r\n data[\"tipoTipologia\"] = this.tipoTipologia !== undefined ? this.tipoTipologia : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioTipologia extends IServizioTipologiaBase {\r\n contattoVoucherID?: number | null;\r\n nome?: string | null;\r\n nomeVoucher?: string | null;\r\n nomeSecondario?: string | null;\r\n nomeSecondarioVoucher?: string | null;\r\n tipoSupplemento?: ETipoSupplemento | null;\r\n supplementoRiduzione?: ESupplementoRiduzione | null;\r\n verificaPartenze?: boolean;\r\n supplementoPercentuale?: boolean | null;\r\n itinerarioID?: number | null;\r\n ordine?: number | null;\r\n obbligatorio?: EObbligatorieta | null;\r\n alternativa?: number | null;\r\n interno?: boolean | null;\r\n costoPerPersona?: boolean;\r\n costoPerGiorno?: boolean | null;\r\n supplementoSuRichiesta?: boolean | null;\r\n selezionePax?: boolean | null;\r\n condividi?: boolean | null;\r\n memo?: string | null;\r\n contattoInizioID?: number | null;\r\n contattoInizio?: Contatto | null;\r\n contattoFineID?: number | null;\r\n contattoFine?: Contatto | null;\r\n orarioInizio?: string | null;\r\n puntoInizio?: string | null;\r\n orarioFine?: string | null;\r\n puntoFine?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n deleted?: string | null;\r\n regolaPacchettoID?: number | null;\r\n tipologiaStandardID?: number | null;\r\n paramsJson?: string | null;\r\n languages?: ELingua[] | null;\r\n tipoTipologia?: ETipoSupplemento;\r\n}\r\n\r\nexport enum ETipoSupplemento {\r\n Nessuno = \"Nessuno\",\r\n Ignoto = \"Ignoto\",\r\n OfferteRid = \"OfferteRid\",\r\n Pasti = \"Pasti\",\r\n Camera = \"Camera\",\r\n Trasferimenti = \"Trasferimenti\",\r\n Visite = \"Visite\",\r\n Appartamento = \"Appartamento\",\r\n LettoAggiunto = \"LettoAggiunto\",\r\n Supplemento = \"Supplemento\",\r\n}\r\n\r\nexport enum ESupplementoRiduzione {\r\n Nessuno = \"Nessuno\",\r\n Supplemento = \"Supplemento\",\r\n Riduzione = \"Riduzione\",\r\n DaPagareInLoco = \"DaPagareInLoco\",\r\n GratisDaPrenotare = \"GratisDaPrenotare\",\r\n}\r\n\r\nexport enum EObbligatorieta {\r\n Facoltativo = \"Facoltativo\",\r\n Obbligatorio = \"Obbligatorio\",\r\n}\r\n\r\nexport class PrezzoMin implements IPrezzoMin {\r\n servizioID?: number;\r\n servizioTipologiaID?: number;\r\n trattamentoID?: number | null;\r\n prezzoMinimo?: number;\r\n\r\n constructor(data?: IPrezzoMin) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.prezzoMinimo = _data[\"prezzoMinimo\"] !== undefined ? _data[\"prezzoMinimo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PrezzoMin {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PrezzoMin();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"prezzoMinimo\"] = this.prezzoMinimo !== undefined ? this.prezzoMinimo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPrezzoMin {\r\n servizioID?: number;\r\n servizioTipologiaID?: number;\r\n trattamentoID?: number | null;\r\n prezzoMinimo?: number;\r\n}\r\n\r\nexport class ServizioTipologiaStandardInfo implements IServizioTipologiaStandardInfo {\r\n id?: number;\r\n tipologiaStandard?: ServizioTipologiaStandard | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string | null;\r\n\r\n constructor(data?: IServizioTipologiaStandardInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipologiaStandard = _data[\"tipologiaStandard\"] ? ServizioTipologiaStandard.fromJS(_data[\"tipologiaStandard\"]) : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioTipologiaStandardInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioTipologiaStandardInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipologiaStandard\"] = this.tipologiaStandard ? this.tipologiaStandard.toJSON() : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioTipologiaStandardInfo {\r\n id?: number;\r\n tipologiaStandard?: ServizioTipologiaStandard | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string | null;\r\n}\r\n\r\nexport abstract class IWebTranslationEntity implements IIWebTranslationEntity {\r\n id?: number;\r\n table?: string;\r\n entityID?: number;\r\n lang?: ELingua;\r\n culture?: string | null;\r\n translation?: string;\r\n lastUpdate?: string | null;\r\n confirmed?: boolean | null;\r\n\r\n constructor(data?: IIWebTranslationEntity) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n this.entityID = _data[\"entityID\"] !== undefined ? _data[\"entityID\"] : null;\r\n this.lang = _data[\"lang\"] !== undefined ? _data[\"lang\"] : null;\r\n this.culture = _data[\"culture\"] !== undefined ? _data[\"culture\"] : null;\r\n this.translation = _data[\"translation\"] !== undefined ? _data[\"translation\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IWebTranslationEntity {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'IWebTranslationEntity' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n data[\"entityID\"] = this.entityID !== undefined ? this.entityID : null;\r\n data[\"lang\"] = this.lang !== undefined ? this.lang : null;\r\n data[\"culture\"] = this.culture !== undefined ? this.culture : null;\r\n data[\"translation\"] = this.translation !== undefined ? this.translation : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIWebTranslationEntity {\r\n id?: number;\r\n table?: string;\r\n entityID?: number;\r\n lang?: ELingua;\r\n culture?: string | null;\r\n translation?: string;\r\n lastUpdate?: string | null;\r\n confirmed?: boolean | null;\r\n}\r\n\r\nexport class ServizioItinerarioInfo implements IServizioItinerarioInfo {\r\n id?: number;\r\n servizioItinerario?: ServizioItinerario | null;\r\n numeroGiorni?: number;\r\n numeroNotti?: number;\r\n giorni?: ServizioItinerarioGiornoInfo[] | null;\r\n origine?: string | null;\r\n destinazione?: string | null;\r\n compagniaAerea?: string | null;\r\n\r\n constructor(data?: IServizioItinerarioInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioItinerario = _data[\"servizioItinerario\"] ? ServizioItinerario.fromJS(_data[\"servizioItinerario\"]) : null;\r\n this.numeroGiorni = _data[\"numeroGiorni\"] !== undefined ? _data[\"numeroGiorni\"] : null;\r\n this.numeroNotti = _data[\"numeroNotti\"] !== undefined ? _data[\"numeroNotti\"] : null;\r\n if (Array.isArray(_data[\"giorni\"])) {\r\n this.giorni = [] as any;\r\n for (let item of _data[\"giorni\"])\r\n this.giorni!.push(ServizioItinerarioGiornoInfo.fromJS(item));\r\n }\r\n else {\r\n this.giorni = null;\r\n }\r\n this.origine = _data[\"origine\"] !== undefined ? _data[\"origine\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerarioInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerarioInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioItinerario\"] = this.servizioItinerario ? this.servizioItinerario.toJSON() : null;\r\n data[\"numeroGiorni\"] = this.numeroGiorni !== undefined ? this.numeroGiorni : null;\r\n data[\"numeroNotti\"] = this.numeroNotti !== undefined ? this.numeroNotti : null;\r\n if (Array.isArray(this.giorni)) {\r\n data[\"giorni\"] = [];\r\n for (let item of this.giorni)\r\n data[\"giorni\"].push(item.toJSON());\r\n }\r\n data[\"origine\"] = this.origine !== undefined ? this.origine : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerarioInfo {\r\n id?: number;\r\n servizioItinerario?: ServizioItinerario | null;\r\n numeroGiorni?: number;\r\n numeroNotti?: number;\r\n giorni?: ServizioItinerarioGiornoInfo[] | null;\r\n origine?: string | null;\r\n destinazione?: string | null;\r\n compagniaAerea?: string | null;\r\n}\r\n\r\nexport class ServizioItinerario implements IServizioItinerario {\r\n itinerarioID?: number;\r\n servizioID?: number;\r\n nome!: string;\r\n memo?: string | null;\r\n origine?: string | null;\r\n destinazione?: string | null;\r\n compagniaAerea?: string | null;\r\n\r\n constructor(data?: IServizioItinerario) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.origine = _data[\"origine\"] !== undefined ? _data[\"origine\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerario {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerario();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"origine\"] = this.origine !== undefined ? this.origine : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerario {\r\n itinerarioID?: number;\r\n servizioID?: number;\r\n nome: string;\r\n memo?: string | null;\r\n origine?: string | null;\r\n destinazione?: string | null;\r\n compagniaAerea?: string | null;\r\n}\r\n\r\nexport class ServizioItinerarioGiornoInfo implements IServizioItinerarioGiornoInfo {\r\n id?: number;\r\n itinerarioGiorno?: ServizioItinerarioGiorno | null;\r\n luogo?: LuogoInfo | null;\r\n contattoHotel?: ContattoInfo | null;\r\n servizioHotel?: ServizioInfo | null;\r\n servizi?: ServizioItinerarioGiornoServizioInfo[] | null;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean;\r\n\r\n constructor(data?: IServizioItinerarioGiornoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.itinerarioGiorno = _data[\"itinerarioGiorno\"] ? ServizioItinerarioGiorno.fromJS(_data[\"itinerarioGiorno\"]) : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n this.contattoHotel = _data[\"contattoHotel\"] ? ContattoInfo.fromJS(_data[\"contattoHotel\"]) : null;\r\n this.servizioHotel = _data[\"servizioHotel\"] ? ServizioInfo.fromJS(_data[\"servizioHotel\"]) : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServizioItinerarioGiornoServizioInfo.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n this.compagniaAerea2 = _data[\"compagniaAerea2\"] !== undefined ? _data[\"compagniaAerea2\"] : null;\r\n this.classe2 = _data[\"classe2\"] !== undefined ? _data[\"classe2\"] : null;\r\n this.cambioHotel = _data[\"cambioHotel\"] !== undefined ? _data[\"cambioHotel\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerarioGiornoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerarioGiornoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"itinerarioGiorno\"] = this.itinerarioGiorno ? this.itinerarioGiorno.toJSON() : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"contattoHotel\"] = this.contattoHotel ? this.contattoHotel.toJSON() : null;\r\n data[\"servizioHotel\"] = this.servizioHotel ? this.servizioHotel.toJSON() : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n data[\"compagniaAerea2\"] = this.compagniaAerea2 !== undefined ? this.compagniaAerea2 : null;\r\n data[\"classe2\"] = this.classe2 !== undefined ? this.classe2 : null;\r\n data[\"cambioHotel\"] = this.cambioHotel !== undefined ? this.cambioHotel : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerarioGiornoInfo {\r\n id?: number;\r\n itinerarioGiorno?: ServizioItinerarioGiorno | null;\r\n luogo?: LuogoInfo | null;\r\n contattoHotel?: ContattoInfo | null;\r\n servizioHotel?: ServizioInfo | null;\r\n servizi?: ServizioItinerarioGiornoServizioInfo[] | null;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean;\r\n}\r\n\r\nexport class ServizioItinerarioGiorno implements IServizioItinerarioGiorno {\r\n giornoID?: number;\r\n itinerarioID?: number;\r\n luogoID?: number;\r\n giorno?: number;\r\n ordine?: number | null;\r\n contattoHotelID?: number | null;\r\n durata?: number | null;\r\n trasporto?: ETipoTrasporto | null;\r\n noRicercaVoli?: boolean;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean | null;\r\n\r\n constructor(data?: IServizioItinerarioGiorno) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giornoID = _data[\"giornoID\"] !== undefined ? _data[\"giornoID\"] : null;\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.contattoHotelID = _data[\"contattoHotelID\"] !== undefined ? _data[\"contattoHotelID\"] : null;\r\n this.durata = _data[\"durata\"] !== undefined ? _data[\"durata\"] : null;\r\n this.trasporto = _data[\"trasporto\"] !== undefined ? _data[\"trasporto\"] : null;\r\n this.noRicercaVoli = _data[\"noRicercaVoli\"] !== undefined ? _data[\"noRicercaVoli\"] : null;\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n this.compagniaAerea2 = _data[\"compagniaAerea2\"] !== undefined ? _data[\"compagniaAerea2\"] : null;\r\n this.classe2 = _data[\"classe2\"] !== undefined ? _data[\"classe2\"] : null;\r\n this.cambioHotel = _data[\"cambioHotel\"] !== undefined ? _data[\"cambioHotel\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerarioGiorno {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerarioGiorno();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giornoID\"] = this.giornoID !== undefined ? this.giornoID : null;\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"contattoHotelID\"] = this.contattoHotelID !== undefined ? this.contattoHotelID : null;\r\n data[\"durata\"] = this.durata !== undefined ? this.durata : null;\r\n data[\"trasporto\"] = this.trasporto !== undefined ? this.trasporto : null;\r\n data[\"noRicercaVoli\"] = this.noRicercaVoli !== undefined ? this.noRicercaVoli : null;\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n data[\"compagniaAerea2\"] = this.compagniaAerea2 !== undefined ? this.compagniaAerea2 : null;\r\n data[\"classe2\"] = this.classe2 !== undefined ? this.classe2 : null;\r\n data[\"cambioHotel\"] = this.cambioHotel !== undefined ? this.cambioHotel : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerarioGiorno {\r\n giornoID?: number;\r\n itinerarioID?: number;\r\n luogoID?: number;\r\n giorno?: number;\r\n ordine?: number | null;\r\n contattoHotelID?: number | null;\r\n durata?: number | null;\r\n trasporto?: ETipoTrasporto | null;\r\n noRicercaVoli?: boolean;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean | null;\r\n}\r\n\r\nexport class ServizioItinerarioGiornoServizioInfo implements IServizioItinerarioGiornoServizioInfo {\r\n id?: number;\r\n servizioItinerarioGiornoServizio?: ServizioItinerarioGiornoServizio | null;\r\n tipologiaBase?: ServizioTipologiaInfo | null;\r\n servizio?: ServizioInfo | null;\r\n tipologia?: ServizioTipologiaInfo | null;\r\n servizioGiorno?: ServizioInfo | null;\r\n tipologiaGiorno?: ServizioTipologiaInfo | null;\r\n posizioneServizio?: EPosizioneDefaultServizioGiorno;\r\n ordine?: number;\r\n\r\n constructor(data?: IServizioItinerarioGiornoServizioInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioItinerarioGiornoServizio = _data[\"servizioItinerarioGiornoServizio\"] ? ServizioItinerarioGiornoServizio.fromJS(_data[\"servizioItinerarioGiornoServizio\"]) : null;\r\n this.tipologiaBase = _data[\"tipologiaBase\"] ? ServizioTipologiaInfo.fromJS(_data[\"tipologiaBase\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologiaInfo.fromJS(_data[\"tipologia\"]) : null;\r\n this.servizioGiorno = _data[\"servizioGiorno\"] ? ServizioInfo.fromJS(_data[\"servizioGiorno\"]) : null;\r\n this.tipologiaGiorno = _data[\"tipologiaGiorno\"] ? ServizioTipologiaInfo.fromJS(_data[\"tipologiaGiorno\"]) : null;\r\n this.posizioneServizio = _data[\"posizioneServizio\"] !== undefined ? _data[\"posizioneServizio\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerarioGiornoServizioInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerarioGiornoServizioInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioItinerarioGiornoServizio\"] = this.servizioItinerarioGiornoServizio ? this.servizioItinerarioGiornoServizio.toJSON() : null;\r\n data[\"tipologiaBase\"] = this.tipologiaBase ? this.tipologiaBase.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n data[\"servizioGiorno\"] = this.servizioGiorno ? this.servizioGiorno.toJSON() : null;\r\n data[\"tipologiaGiorno\"] = this.tipologiaGiorno ? this.tipologiaGiorno.toJSON() : null;\r\n data[\"posizioneServizio\"] = this.posizioneServizio !== undefined ? this.posizioneServizio : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerarioGiornoServizioInfo {\r\n id?: number;\r\n servizioItinerarioGiornoServizio?: ServizioItinerarioGiornoServizio | null;\r\n tipologiaBase?: ServizioTipologiaInfo | null;\r\n servizio?: ServizioInfo | null;\r\n tipologia?: ServizioTipologiaInfo | null;\r\n servizioGiorno?: ServizioInfo | null;\r\n tipologiaGiorno?: ServizioTipologiaInfo | null;\r\n posizioneServizio?: EPosizioneDefaultServizioGiorno;\r\n ordine?: number;\r\n}\r\n\r\nexport class ServizioItinerarioGiornoServizio implements IServizioItinerarioGiornoServizio {\r\n id?: number;\r\n servizioItinerarioGiornoID?: number;\r\n tipologiaBaseID?: number | null;\r\n servizioID?: number | null;\r\n tipologiaID?: number | null;\r\n giorno?: number;\r\n durata?: number;\r\n alternativa?: number | null;\r\n\r\n constructor(data?: IServizioItinerarioGiornoServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioItinerarioGiornoID = _data[\"servizioItinerarioGiornoID\"] !== undefined ? _data[\"servizioItinerarioGiornoID\"] : null;\r\n this.tipologiaBaseID = _data[\"tipologiaBaseID\"] !== undefined ? _data[\"tipologiaBaseID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.durata = _data[\"durata\"] !== undefined ? _data[\"durata\"] : null;\r\n this.alternativa = _data[\"alternativa\"] !== undefined ? _data[\"alternativa\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerarioGiornoServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerarioGiornoServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioItinerarioGiornoID\"] = this.servizioItinerarioGiornoID !== undefined ? this.servizioItinerarioGiornoID : null;\r\n data[\"tipologiaBaseID\"] = this.tipologiaBaseID !== undefined ? this.tipologiaBaseID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"durata\"] = this.durata !== undefined ? this.durata : null;\r\n data[\"alternativa\"] = this.alternativa !== undefined ? this.alternativa : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerarioGiornoServizio {\r\n id?: number;\r\n servizioItinerarioGiornoID?: number;\r\n tipologiaBaseID?: number | null;\r\n servizioID?: number | null;\r\n tipologiaID?: number | null;\r\n giorno?: number;\r\n durata?: number;\r\n alternativa?: number | null;\r\n}\r\n\r\nexport enum EPosizioneDefaultServizioGiorno {\r\n InizioTappa = \"InizioTappa\",\r\n FineTappa = \"FineTappa\",\r\n GiornoIndicato = \"GiornoIndicato\",\r\n}\r\n\r\nexport class ServizioAccordoInfo implements IServizioAccordoInfo {\r\n id?: number;\r\n servizioAccordo?: ServizioAccordo;\r\n accordo?: AccordoInfo | null;\r\n\r\n constructor(data?: IServizioAccordoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioAccordo = _data[\"servizioAccordo\"] ? ServizioAccordo.fromJS(_data[\"servizioAccordo\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAccordoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAccordoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioAccordo\"] = this.servizioAccordo ? this.servizioAccordo.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAccordoInfo {\r\n id?: number;\r\n servizioAccordo?: ServizioAccordo;\r\n accordo?: AccordoInfo | null;\r\n}\r\n\r\nexport class ServizioAccordo implements IServizioAccordo {\r\n servizioAccordoID?: number;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n\r\n constructor(data?: IServizioAccordo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioAccordoID = _data[\"servizioAccordoID\"] !== undefined ? _data[\"servizioAccordoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAccordo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAccordo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAccordoID\"] = this.servizioAccordoID !== undefined ? this.servizioAccordoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAccordo {\r\n servizioAccordoID?: number;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n}\r\n\r\nexport class Validita implements IValidita {\r\n validitaID?: number;\r\n servizioID?: number;\r\n dal?: string;\r\n al?: string;\r\n giorni?: string | null;\r\n overAdv?: number | null;\r\n note?: string | null;\r\n prezziIndicativi?: boolean;\r\n\r\n constructor(data?: IValidita) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.validitaID = _data[\"validitaID\"] !== undefined ? _data[\"validitaID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.overAdv = _data[\"overAdv\"] !== undefined ? _data[\"overAdv\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.prezziIndicativi = _data[\"prezziIndicativi\"] !== undefined ? _data[\"prezziIndicativi\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Validita {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Validita();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"validitaID\"] = this.validitaID !== undefined ? this.validitaID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"overAdv\"] = this.overAdv !== undefined ? this.overAdv : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"prezziIndicativi\"] = this.prezziIndicativi !== undefined ? this.prezziIndicativi : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValidita {\r\n validitaID?: number;\r\n servizioID?: number;\r\n dal?: string;\r\n al?: string;\r\n giorni?: string | null;\r\n overAdv?: number | null;\r\n note?: string | null;\r\n prezziIndicativi?: boolean;\r\n}\r\n\r\nexport class ServizioRegola implements IServizioRegola {\r\n regolaServizioID?: number;\r\n servizioID?: number;\r\n nome?: string | null;\r\n costoPerGiorno?: boolean;\r\n costoPerPersona?: boolean;\r\n minPax?: number;\r\n maxPax?: number;\r\n maxPaxCamera?: number | null;\r\n maxAdulti?: number | null;\r\n maxChild?: number | null;\r\n etaInfant?: number | null;\r\n etaChildFree?: number | null;\r\n freeSale?: number | null;\r\n maxLettiAggiungibili?: number | null;\r\n\r\n constructor(data?: IServizioRegola) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.regolaServizioID = _data[\"regolaServizioID\"] !== undefined ? _data[\"regolaServizioID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.costoPerGiorno = _data[\"costoPerGiorno\"] !== undefined ? _data[\"costoPerGiorno\"] : null;\r\n this.costoPerPersona = _data[\"costoPerPersona\"] !== undefined ? _data[\"costoPerPersona\"] : null;\r\n this.minPax = _data[\"minPax\"] !== undefined ? _data[\"minPax\"] : null;\r\n this.maxPax = _data[\"maxPax\"] !== undefined ? _data[\"maxPax\"] : null;\r\n this.maxPaxCamera = _data[\"maxPaxCamera\"] !== undefined ? _data[\"maxPaxCamera\"] : null;\r\n this.maxAdulti = _data[\"maxAdulti\"] !== undefined ? _data[\"maxAdulti\"] : null;\r\n this.maxChild = _data[\"maxChild\"] !== undefined ? _data[\"maxChild\"] : null;\r\n this.etaInfant = _data[\"etaInfant\"] !== undefined ? _data[\"etaInfant\"] : null;\r\n this.etaChildFree = _data[\"etaChildFree\"] !== undefined ? _data[\"etaChildFree\"] : null;\r\n this.freeSale = _data[\"freeSale\"] !== undefined ? _data[\"freeSale\"] : null;\r\n this.maxLettiAggiungibili = _data[\"maxLettiAggiungibili\"] !== undefined ? _data[\"maxLettiAggiungibili\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioRegola {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioRegola();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regolaServizioID\"] = this.regolaServizioID !== undefined ? this.regolaServizioID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"costoPerGiorno\"] = this.costoPerGiorno !== undefined ? this.costoPerGiorno : null;\r\n data[\"costoPerPersona\"] = this.costoPerPersona !== undefined ? this.costoPerPersona : null;\r\n data[\"minPax\"] = this.minPax !== undefined ? this.minPax : null;\r\n data[\"maxPax\"] = this.maxPax !== undefined ? this.maxPax : null;\r\n data[\"maxPaxCamera\"] = this.maxPaxCamera !== undefined ? this.maxPaxCamera : null;\r\n data[\"maxAdulti\"] = this.maxAdulti !== undefined ? this.maxAdulti : null;\r\n data[\"maxChild\"] = this.maxChild !== undefined ? this.maxChild : null;\r\n data[\"etaInfant\"] = this.etaInfant !== undefined ? this.etaInfant : null;\r\n data[\"etaChildFree\"] = this.etaChildFree !== undefined ? this.etaChildFree : null;\r\n data[\"freeSale\"] = this.freeSale !== undefined ? this.freeSale : null;\r\n data[\"maxLettiAggiungibili\"] = this.maxLettiAggiungibili !== undefined ? this.maxLettiAggiungibili : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioRegola {\r\n regolaServizioID?: number;\r\n servizioID?: number;\r\n nome?: string | null;\r\n costoPerGiorno?: boolean;\r\n costoPerPersona?: boolean;\r\n minPax?: number;\r\n maxPax?: number;\r\n maxPaxCamera?: number | null;\r\n maxAdulti?: number | null;\r\n maxChild?: number | null;\r\n etaInfant?: number | null;\r\n etaChildFree?: number | null;\r\n freeSale?: number | null;\r\n maxLettiAggiungibili?: number | null;\r\n}\r\n\r\nexport class ServizioRegolaVendita implements IServizioRegolaVendita {\r\n id?: number;\r\n servizioID?: number;\r\n nome?: string | null;\r\n numeroGiorni?: number | null;\r\n minimoGiorni?: number | null;\r\n massimoGiorni?: number | null;\r\n etaMinima?: number | null;\r\n etaMassima?: number | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n commissioniAgenzia?: number | null;\r\n commissioniTourOperator?: number | null;\r\n minimoNottiPeriodo?: number | null;\r\n giorniEntrata?: string | null;\r\n giorniUscita?: string | null;\r\n prenotaEntroData?: string | null;\r\n prenotaEntroGiorni?: number | null;\r\n deregolamentaSuRichiesta?: boolean | null;\r\n penaleID?: number | null;\r\n giorniPenale?: number | null;\r\n percentualePenale?: number | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n articolo?: Articolo | null;\r\n articoloID?: number | null;\r\n\r\n constructor(data?: IServizioRegolaVendita) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.numeroGiorni = _data[\"numeroGiorni\"] !== undefined ? _data[\"numeroGiorni\"] : null;\r\n this.minimoGiorni = _data[\"minimoGiorni\"] !== undefined ? _data[\"minimoGiorni\"] : null;\r\n this.massimoGiorni = _data[\"massimoGiorni\"] !== undefined ? _data[\"massimoGiorni\"] : null;\r\n this.etaMinima = _data[\"etaMinima\"] !== undefined ? _data[\"etaMinima\"] : null;\r\n this.etaMassima = _data[\"etaMassima\"] !== undefined ? _data[\"etaMassima\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.commissioniAgenzia = _data[\"commissioniAgenzia\"] !== undefined ? _data[\"commissioniAgenzia\"] : null;\r\n this.commissioniTourOperator = _data[\"commissioniTourOperator\"] !== undefined ? _data[\"commissioniTourOperator\"] : null;\r\n this.minimoNottiPeriodo = _data[\"minimoNottiPeriodo\"] !== undefined ? _data[\"minimoNottiPeriodo\"] : null;\r\n this.giorniEntrata = _data[\"giorniEntrata\"] !== undefined ? _data[\"giorniEntrata\"] : null;\r\n this.giorniUscita = _data[\"giorniUscita\"] !== undefined ? _data[\"giorniUscita\"] : null;\r\n this.prenotaEntroData = _data[\"prenotaEntroData\"] !== undefined ? _data[\"prenotaEntroData\"] : null;\r\n this.prenotaEntroGiorni = _data[\"prenotaEntroGiorni\"] !== undefined ? _data[\"prenotaEntroGiorni\"] : null;\r\n this.deregolamentaSuRichiesta = _data[\"deregolamentaSuRichiesta\"] !== undefined ? _data[\"deregolamentaSuRichiesta\"] : null;\r\n this.penaleID = _data[\"penaleID\"] !== undefined ? _data[\"penaleID\"] : null;\r\n this.giorniPenale = _data[\"giorniPenale\"] !== undefined ? _data[\"giorniPenale\"] : null;\r\n this.percentualePenale = _data[\"percentualePenale\"] !== undefined ? _data[\"percentualePenale\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.articolo = _data[\"articolo\"] ? Articolo.fromJS(_data[\"articolo\"]) : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioRegolaVendita {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioRegolaVendita();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"numeroGiorni\"] = this.numeroGiorni !== undefined ? this.numeroGiorni : null;\r\n data[\"minimoGiorni\"] = this.minimoGiorni !== undefined ? this.minimoGiorni : null;\r\n data[\"massimoGiorni\"] = this.massimoGiorni !== undefined ? this.massimoGiorni : null;\r\n data[\"etaMinima\"] = this.etaMinima !== undefined ? this.etaMinima : null;\r\n data[\"etaMassima\"] = this.etaMassima !== undefined ? this.etaMassima : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"commissioniAgenzia\"] = this.commissioniAgenzia !== undefined ? this.commissioniAgenzia : null;\r\n data[\"commissioniTourOperator\"] = this.commissioniTourOperator !== undefined ? this.commissioniTourOperator : null;\r\n data[\"minimoNottiPeriodo\"] = this.minimoNottiPeriodo !== undefined ? this.minimoNottiPeriodo : null;\r\n data[\"giorniEntrata\"] = this.giorniEntrata !== undefined ? this.giorniEntrata : null;\r\n data[\"giorniUscita\"] = this.giorniUscita !== undefined ? this.giorniUscita : null;\r\n data[\"prenotaEntroData\"] = this.prenotaEntroData !== undefined ? this.prenotaEntroData : null;\r\n data[\"prenotaEntroGiorni\"] = this.prenotaEntroGiorni !== undefined ? this.prenotaEntroGiorni : null;\r\n data[\"deregolamentaSuRichiesta\"] = this.deregolamentaSuRichiesta !== undefined ? this.deregolamentaSuRichiesta : null;\r\n data[\"penaleID\"] = this.penaleID !== undefined ? this.penaleID : null;\r\n data[\"giorniPenale\"] = this.giorniPenale !== undefined ? this.giorniPenale : null;\r\n data[\"percentualePenale\"] = this.percentualePenale !== undefined ? this.percentualePenale : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"articolo\"] = this.articolo ? this.articolo.toJSON() : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioRegolaVendita {\r\n id?: number;\r\n servizioID?: number;\r\n nome?: string | null;\r\n numeroGiorni?: number | null;\r\n minimoGiorni?: number | null;\r\n massimoGiorni?: number | null;\r\n etaMinima?: number | null;\r\n etaMassima?: number | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n commissioniAgenzia?: number | null;\r\n commissioniTourOperator?: number | null;\r\n minimoNottiPeriodo?: number | null;\r\n giorniEntrata?: string | null;\r\n giorniUscita?: string | null;\r\n prenotaEntroData?: string | null;\r\n prenotaEntroGiorni?: number | null;\r\n deregolamentaSuRichiesta?: boolean | null;\r\n penaleID?: number | null;\r\n giorniPenale?: number | null;\r\n percentualePenale?: number | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n articolo?: Articolo | null;\r\n articoloID?: number | null;\r\n}\r\n\r\nexport class CostoInfo implements ICostoInfo {\r\n id?: number;\r\n costo?: Costo | null;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioniInfo | null;\r\n tipologia?: ServizioTipologiaInfo | null;\r\n regolaServizio?: ServizioRegola | null;\r\n regolaVendita?: ServizioRegolaVendita | null;\r\n validita?: Validita | null;\r\n trattamento?: TrattamentoInfo | null;\r\n sistemazione?: SistemazioneInfo | null;\r\n\r\n constructor(data?: ICostoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.costo = _data[\"costo\"] ? Costo.fromJS(_data[\"costo\"]) : null;\r\n this.tabellaCostiCommissioni = _data[\"tabellaCostiCommissioni\"] ? TabellaCostiCommissioniInfo.fromJS(_data[\"tabellaCostiCommissioni\"]) : null;\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologiaInfo.fromJS(_data[\"tipologia\"]) : null;\r\n this.regolaServizio = _data[\"regolaServizio\"] ? ServizioRegola.fromJS(_data[\"regolaServizio\"]) : null;\r\n this.regolaVendita = _data[\"regolaVendita\"] ? ServizioRegolaVendita.fromJS(_data[\"regolaVendita\"]) : null;\r\n this.validita = _data[\"validita\"] ? Validita.fromJS(_data[\"validita\"]) : null;\r\n this.trattamento = _data[\"trattamento\"] ? TrattamentoInfo.fromJS(_data[\"trattamento\"]) : null;\r\n this.sistemazione = _data[\"sistemazione\"] ? SistemazioneInfo.fromJS(_data[\"sistemazione\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"costo\"] = this.costo ? this.costo.toJSON() : null;\r\n data[\"tabellaCostiCommissioni\"] = this.tabellaCostiCommissioni ? this.tabellaCostiCommissioni.toJSON() : null;\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n data[\"regolaServizio\"] = this.regolaServizio ? this.regolaServizio.toJSON() : null;\r\n data[\"regolaVendita\"] = this.regolaVendita ? this.regolaVendita.toJSON() : null;\r\n data[\"validita\"] = this.validita ? this.validita.toJSON() : null;\r\n data[\"trattamento\"] = this.trattamento ? this.trattamento.toJSON() : null;\r\n data[\"sistemazione\"] = this.sistemazione ? this.sistemazione.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostoInfo {\r\n id?: number;\r\n costo?: Costo | null;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioniInfo | null;\r\n tipologia?: ServizioTipologiaInfo | null;\r\n regolaServizio?: ServizioRegola | null;\r\n regolaVendita?: ServizioRegolaVendita | null;\r\n validita?: Validita | null;\r\n trattamento?: TrattamentoInfo | null;\r\n sistemazione?: SistemazioneInfo | null;\r\n}\r\n\r\nexport class Costo implements ICosto {\r\n costoID?: number;\r\n servizioTipologiaID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n trattamentoID?: number | null;\r\n regolaServizioID?: number | null;\r\n regolaVenditaID?: number | null;\r\n validitaID?: number;\r\n sistemazioneID?: number | null;\r\n codicePrenotazione?: string | null;\r\n cost?: number;\r\n prezzo?: number | null;\r\n margine?: number | null;\r\n etaMassima?: number | null;\r\n regolaCostiBambino?: ERegolaCostiBambino | null;\r\n _ScontoBambinoPercentuale?: boolean | null;\r\n\r\n constructor(data?: ICosto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.costoID = _data[\"costoID\"] !== undefined ? _data[\"costoID\"] : null;\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n this.tabellaCostiCommissioniID = _data[\"tabellaCostiCommissioniID\"] !== undefined ? _data[\"tabellaCostiCommissioniID\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.regolaServizioID = _data[\"regolaServizioID\"] !== undefined ? _data[\"regolaServizioID\"] : null;\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n this.validitaID = _data[\"validitaID\"] !== undefined ? _data[\"validitaID\"] : null;\r\n this.sistemazioneID = _data[\"sistemazioneID\"] !== undefined ? _data[\"sistemazioneID\"] : null;\r\n this.codicePrenotazione = _data[\"codicePrenotazione\"] !== undefined ? _data[\"codicePrenotazione\"] : null;\r\n this.cost = _data[\"cost\"] !== undefined ? _data[\"cost\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.margine = _data[\"margine\"] !== undefined ? _data[\"margine\"] : null;\r\n this.etaMassima = _data[\"etaMassima\"] !== undefined ? _data[\"etaMassima\"] : null;\r\n this.regolaCostiBambino = _data[\"regolaCostiBambino\"] !== undefined ? _data[\"regolaCostiBambino\"] : null;\r\n this._ScontoBambinoPercentuale = _data[\"_ScontoBambinoPercentuale\"] !== undefined ? _data[\"_ScontoBambinoPercentuale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Costo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Costo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"costoID\"] = this.costoID !== undefined ? this.costoID : null;\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n data[\"tabellaCostiCommissioniID\"] = this.tabellaCostiCommissioniID !== undefined ? this.tabellaCostiCommissioniID : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"regolaServizioID\"] = this.regolaServizioID !== undefined ? this.regolaServizioID : null;\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n data[\"validitaID\"] = this.validitaID !== undefined ? this.validitaID : null;\r\n data[\"sistemazioneID\"] = this.sistemazioneID !== undefined ? this.sistemazioneID : null;\r\n data[\"codicePrenotazione\"] = this.codicePrenotazione !== undefined ? this.codicePrenotazione : null;\r\n data[\"cost\"] = this.cost !== undefined ? this.cost : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"margine\"] = this.margine !== undefined ? this.margine : null;\r\n data[\"etaMassima\"] = this.etaMassima !== undefined ? this.etaMassima : null;\r\n data[\"regolaCostiBambino\"] = this.regolaCostiBambino !== undefined ? this.regolaCostiBambino : null;\r\n data[\"_ScontoBambinoPercentuale\"] = this._ScontoBambinoPercentuale !== undefined ? this._ScontoBambinoPercentuale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICosto {\r\n costoID?: number;\r\n servizioTipologiaID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n trattamentoID?: number | null;\r\n regolaServizioID?: number | null;\r\n regolaVenditaID?: number | null;\r\n validitaID?: number;\r\n sistemazioneID?: number | null;\r\n codicePrenotazione?: string | null;\r\n cost?: number;\r\n prezzo?: number | null;\r\n margine?: number | null;\r\n etaMassima?: number | null;\r\n regolaCostiBambino?: ERegolaCostiBambino | null;\r\n _ScontoBambinoPercentuale?: boolean | null;\r\n}\r\n\r\nexport enum ERegolaCostiBambino {\r\n Nessuna = \"Nessuna\",\r\n Fino1Bambino = \"Fino1Bambino\",\r\n Fino2Bambini = \"Fino2Bambini\",\r\n Fino3Bambini = \"Fino3Bambini\",\r\n Fino1Infant = \"Fino1Infant\",\r\n Fino2Infant = \"Fino2Infant\",\r\n PrimoBambino = \"PrimoBambino\",\r\n SecondoBambino = \"SecondoBambino\",\r\n TerzoBambino = \"TerzoBambino\",\r\n QuartoBambino = \"QuartoBambino\",\r\n Fino4Bambini = \"Fino4Bambini\",\r\n Fino5Bambini = \"Fino5Bambini\",\r\n QuintoBambino = \"QuintoBambino\",\r\n}\r\n\r\nexport class TabellaCostiCommissioniInfo implements ITabellaCostiCommissioniInfo {\r\n id?: number;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni;\r\n accordo?: AccordoInfo | null;\r\n esclusioni?: TabellaCostiCommissioniEsclusione[];\r\n eccezioni?: TabellaCostiCommissioniEccezione[];\r\n isValid?: boolean;\r\n wasValidLastYear?: boolean;\r\n\r\n constructor(data?: ITabellaCostiCommissioniInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tabellaCostiCommissioni = _data[\"tabellaCostiCommissioni\"] ? TabellaCostiCommissioni.fromJS(_data[\"tabellaCostiCommissioni\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n if (Array.isArray(_data[\"esclusioni\"])) {\r\n this.esclusioni = [] as any;\r\n for (let item of _data[\"esclusioni\"])\r\n this.esclusioni!.push(TabellaCostiCommissioniEsclusione.fromJS(item));\r\n }\r\n else {\r\n this.esclusioni = null;\r\n }\r\n if (Array.isArray(_data[\"eccezioni\"])) {\r\n this.eccezioni = [] as any;\r\n for (let item of _data[\"eccezioni\"])\r\n this.eccezioni!.push(TabellaCostiCommissioniEccezione.fromJS(item));\r\n }\r\n else {\r\n this.eccezioni = null;\r\n }\r\n this.isValid = _data[\"isValid\"] !== undefined ? _data[\"isValid\"] : null;\r\n this.wasValidLastYear = _data[\"wasValidLastYear\"] !== undefined ? _data[\"wasValidLastYear\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tabellaCostiCommissioni\"] = this.tabellaCostiCommissioni ? this.tabellaCostiCommissioni.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n if (Array.isArray(this.esclusioni)) {\r\n data[\"esclusioni\"] = [];\r\n for (let item of this.esclusioni)\r\n data[\"esclusioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.eccezioni)) {\r\n data[\"eccezioni\"] = [];\r\n for (let item of this.eccezioni)\r\n data[\"eccezioni\"].push(item.toJSON());\r\n }\r\n data[\"isValid\"] = this.isValid !== undefined ? this.isValid : null;\r\n data[\"wasValidLastYear\"] = this.wasValidLastYear !== undefined ? this.wasValidLastYear : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniInfo {\r\n id?: number;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioni;\r\n accordo?: AccordoInfo | null;\r\n esclusioni?: TabellaCostiCommissioniEsclusione[];\r\n eccezioni?: TabellaCostiCommissioniEccezione[];\r\n isValid?: boolean;\r\n wasValidLastYear?: boolean;\r\n}\r\n\r\nexport class TabellaCostiCommissioniEsclusione implements ITabellaCostiCommissioniEsclusione {\r\n tabellaCostiCommissioniEsclusioneID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n dal?: string;\r\n al?: string;\r\n\r\n constructor(data?: ITabellaCostiCommissioniEsclusione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tabellaCostiCommissioniEsclusioneID = _data[\"tabellaCostiCommissioniEsclusioneID\"] !== undefined ? _data[\"tabellaCostiCommissioniEsclusioneID\"] : null;\r\n this.tabellaCostiCommissioniID = _data[\"tabellaCostiCommissioniID\"] !== undefined ? _data[\"tabellaCostiCommissioniID\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniEsclusione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniEsclusione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tabellaCostiCommissioniEsclusioneID\"] = this.tabellaCostiCommissioniEsclusioneID !== undefined ? this.tabellaCostiCommissioniEsclusioneID : null;\r\n data[\"tabellaCostiCommissioniID\"] = this.tabellaCostiCommissioniID !== undefined ? this.tabellaCostiCommissioniID : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniEsclusione {\r\n tabellaCostiCommissioniEsclusioneID?: number;\r\n tabellaCostiCommissioniID?: number;\r\n dal?: string;\r\n al?: string;\r\n}\r\n\r\nexport class TabellaCostiCommissioniEccezione implements ITabellaCostiCommissioniEccezione {\r\n id?: number;\r\n tabellaCostoCommissioniID?: number;\r\n dal?: string;\r\n al?: string;\r\n percentuale?: number;\r\n percentuale2?: number | null;\r\n differenzaCommissioneAdv?: number | null;\r\n\r\n constructor(data?: ITabellaCostiCommissioniEccezione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tabellaCostoCommissioniID = _data[\"tabellaCostoCommissioniID\"] !== undefined ? _data[\"tabellaCostoCommissioniID\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.percentuale = _data[\"percentuale\"] !== undefined ? _data[\"percentuale\"] : null;\r\n this.percentuale2 = _data[\"percentuale2\"] !== undefined ? _data[\"percentuale2\"] : null;\r\n this.differenzaCommissioneAdv = _data[\"differenzaCommissioneAdv\"] !== undefined ? _data[\"differenzaCommissioneAdv\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostiCommissioniEccezione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostiCommissioniEccezione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tabellaCostoCommissioniID\"] = this.tabellaCostoCommissioniID !== undefined ? this.tabellaCostoCommissioniID : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"percentuale\"] = this.percentuale !== undefined ? this.percentuale : null;\r\n data[\"percentuale2\"] = this.percentuale2 !== undefined ? this.percentuale2 : null;\r\n data[\"differenzaCommissioneAdv\"] = this.differenzaCommissioneAdv !== undefined ? this.differenzaCommissioneAdv : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostiCommissioniEccezione {\r\n id?: number;\r\n tabellaCostoCommissioniID?: number;\r\n dal?: string;\r\n al?: string;\r\n percentuale?: number;\r\n percentuale2?: number | null;\r\n differenzaCommissioneAdv?: number | null;\r\n}\r\n\r\nexport class TrattamentoInfo implements ITrattamentoInfo {\r\n id?: number;\r\n trattamento?: Trattamento;\r\n traduzioni?: IWebTranslationEntity[];\r\n nome?: string;\r\n nome_en?: string;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string;\r\n\r\n constructor(data?: ITrattamentoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.trattamento = _data[\"trattamento\"] ? Trattamento.fromJS(_data[\"trattamento\"]) : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TrattamentoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TrattamentoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"trattamento\"] = this.trattamento ? this.trattamento.toJSON() : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITrattamentoInfo {\r\n id?: number;\r\n trattamento?: Trattamento;\r\n traduzioni?: IWebTranslationEntity[];\r\n nome?: string;\r\n nome_en?: string;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string;\r\n}\r\n\r\nexport class SistemazioneInfo implements ISistemazioneInfo {\r\n _Nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n id?: number;\r\n sistemazione?: Sistemazione | null;\r\n isBase?: boolean;\r\n nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n\r\n constructor(data?: ISistemazioneInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (_data[\"_Nomi\"]) {\r\n this._Nomi = {} as any;\r\n for (let key in _data[\"_Nomi\"]) {\r\n if (_data[\"_Nomi\"].hasOwnProperty(key))\r\n (this._Nomi)![key] = _data[\"_Nomi\"][key] !== undefined ? _data[\"_Nomi\"][key] : null;\r\n }\r\n }\r\n else {\r\n this._Nomi = null;\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.sistemazione = _data[\"sistemazione\"] ? Sistemazione.fromJS(_data[\"sistemazione\"]) : null;\r\n this.isBase = _data[\"isBase\"] !== undefined ? _data[\"isBase\"] : null;\r\n if (_data[\"nomi\"]) {\r\n this.nomi = {} as any;\r\n for (let key in _data[\"nomi\"]) {\r\n if (_data[\"nomi\"].hasOwnProperty(key))\r\n (this.nomi)![key] = _data[\"nomi\"][key] !== undefined ? _data[\"nomi\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SistemazioneInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SistemazioneInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (this._Nomi) {\r\n data[\"_Nomi\"] = {};\r\n for (let key in this._Nomi) {\r\n if (this._Nomi.hasOwnProperty(key))\r\n (data[\"_Nomi\"])[key] = this._Nomi[key] !== undefined ? this._Nomi[key] : null;\r\n }\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"sistemazione\"] = this.sistemazione ? this.sistemazione.toJSON() : null;\r\n data[\"isBase\"] = this.isBase !== undefined ? this.isBase : null;\r\n if (this.nomi) {\r\n data[\"nomi\"] = {};\r\n for (let key in this.nomi) {\r\n if (this.nomi.hasOwnProperty(key))\r\n (data[\"nomi\"])[key] = this.nomi[key] !== undefined ? this.nomi[key] : null;\r\n }\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISistemazioneInfo {\r\n _Nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n id?: number;\r\n sistemazione?: Sistemazione | null;\r\n isBase?: boolean;\r\n nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n}\r\n\r\nexport class Sistemazione implements ISistemazione {\r\n sistemazioneID?: number;\r\n sistemazioneBaseID?: number | null;\r\n nome!: string;\r\n nomeInglese?: string | null;\r\n memo?: string | null;\r\n nomeVoucher?: string | null;\r\n maxAdulti?: number;\r\n maxChildren?: number;\r\n nome_en?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_nl?: string | null;\r\n visibile?: boolean | null;\r\n\r\n constructor(data?: ISistemazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sistemazioneID = _data[\"sistemazioneID\"] !== undefined ? _data[\"sistemazioneID\"] : null;\r\n this.sistemazioneBaseID = _data[\"sistemazioneBaseID\"] !== undefined ? _data[\"sistemazioneBaseID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.nomeVoucher = _data[\"nomeVoucher\"] !== undefined ? _data[\"nomeVoucher\"] : null;\r\n this.maxAdulti = _data[\"maxAdulti\"] !== undefined ? _data[\"maxAdulti\"] : null;\r\n this.maxChildren = _data[\"maxChildren\"] !== undefined ? _data[\"maxChildren\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_nl = _data[\"nome_nl\"] !== undefined ? _data[\"nome_nl\"] : null;\r\n this.visibile = _data[\"visibile\"] !== undefined ? _data[\"visibile\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Sistemazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Sistemazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sistemazioneID\"] = this.sistemazioneID !== undefined ? this.sistemazioneID : null;\r\n data[\"sistemazioneBaseID\"] = this.sistemazioneBaseID !== undefined ? this.sistemazioneBaseID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"nomeVoucher\"] = this.nomeVoucher !== undefined ? this.nomeVoucher : null;\r\n data[\"maxAdulti\"] = this.maxAdulti !== undefined ? this.maxAdulti : null;\r\n data[\"maxChildren\"] = this.maxChildren !== undefined ? this.maxChildren : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_nl\"] = this.nome_nl !== undefined ? this.nome_nl : null;\r\n data[\"visibile\"] = this.visibile !== undefined ? this.visibile : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISistemazione {\r\n sistemazioneID?: number;\r\n sistemazioneBaseID?: number | null;\r\n nome: string;\r\n nomeInglese?: string | null;\r\n memo?: string | null;\r\n nomeVoucher?: string | null;\r\n maxAdulti?: number;\r\n maxChildren?: number;\r\n nome_en?: string | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_nl?: string | null;\r\n visibile?: boolean | null;\r\n}\r\n\r\nexport class Partenza implements IPartenza {\r\n partenzaID?: number;\r\n servizioID?: number;\r\n data?: string | null;\r\n flags?: EPartenzaFlags;\r\n\r\n constructor(data?: IPartenza) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.partenzaID = _data[\"partenzaID\"] !== undefined ? _data[\"partenzaID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.flags = _data[\"flags\"] !== undefined ? _data[\"flags\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Partenza {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Partenza();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"partenzaID\"] = this.partenzaID !== undefined ? this.partenzaID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"flags\"] = this.flags !== undefined ? this.flags : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPartenza {\r\n partenzaID?: number;\r\n servizioID?: number;\r\n data?: string | null;\r\n flags?: EPartenzaFlags;\r\n}\r\n\r\nexport enum EPartenzaFlags {\r\n Nessuno = \"Nessuno\",\r\n Garantita = \"Garantita\",\r\n InItaliano = \"InItaliano\",\r\n SuRichiesta = \"SuRichiesta\",\r\n InInglese = \"InInglese\",\r\n InTedesco = \"InTedesco\",\r\n InFrancese = \"InFrancese\",\r\n InSpagnolo = \"InSpagnolo\",\r\n InOlandese = \"InOlandese\",\r\n}\r\n\r\nexport class ServizioLuogo implements IServizioLuogo {\r\n servizioLuogoID?: number;\r\n servizioID?: number;\r\n luogoID?: number;\r\n\r\n constructor(data?: IServizioLuogo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioLuogoID = _data[\"servizioLuogoID\"] !== undefined ? _data[\"servizioLuogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioLuogo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioLuogo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioLuogoID\"] = this.servizioLuogoID !== undefined ? this.servizioLuogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioLuogo {\r\n servizioLuogoID?: number;\r\n servizioID?: number;\r\n luogoID?: number;\r\n}\r\n\r\nexport class ServizioAssociazioneInfo implements IServizioAssociazioneInfo {\r\n id?: number;\r\n associazione?: ServizioAssociazione;\r\n configurazioneOfferta?: OffertaComponibile | null;\r\n labelOfferta?: string | null;\r\n disabilitata?: boolean;\r\n esclusioni?: string | null;\r\n codice?: string | null;\r\n priorita?: number | null;\r\n cumulabilita?: string | null;\r\n tipologiaParent?: ServizioTipologiaInfo | null;\r\n tipologiaSupplemento?: ServizioTipologiaInfo | null;\r\n regolaVendita?: ServizioRegolaVendita | null;\r\n tabellaCosti?: TabellaCostiCommissioniInfo | null;\r\n sistemazione?: SistemazioneInfo | null;\r\n trattamento?: TrattamentoInfo | null;\r\n isOffertaComponibile?: boolean;\r\n isOffertaComponibilePerTipologia?: boolean;\r\n isPerTipologia?: boolean;\r\n\r\n constructor(data?: IServizioAssociazioneInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.associazione = _data[\"associazione\"] ? ServizioAssociazione.fromJS(_data[\"associazione\"]) : null;\r\n this.configurazioneOfferta = _data[\"configurazioneOfferta\"] ? OffertaComponibile.fromJS(_data[\"configurazioneOfferta\"]) : null;\r\n this.labelOfferta = _data[\"labelOfferta\"] !== undefined ? _data[\"labelOfferta\"] : null;\r\n this.disabilitata = _data[\"disabilitata\"] !== undefined ? _data[\"disabilitata\"] : null;\r\n this.esclusioni = _data[\"esclusioni\"] !== undefined ? _data[\"esclusioni\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.cumulabilita = _data[\"cumulabilita\"] !== undefined ? _data[\"cumulabilita\"] : null;\r\n this.tipologiaParent = _data[\"tipologiaParent\"] ? ServizioTipologiaInfo.fromJS(_data[\"tipologiaParent\"]) : null;\r\n this.tipologiaSupplemento = _data[\"tipologiaSupplemento\"] ? ServizioTipologiaInfo.fromJS(_data[\"tipologiaSupplemento\"]) : null;\r\n this.regolaVendita = _data[\"regolaVendita\"] ? ServizioRegolaVendita.fromJS(_data[\"regolaVendita\"]) : null;\r\n this.tabellaCosti = _data[\"tabellaCosti\"] ? TabellaCostiCommissioniInfo.fromJS(_data[\"tabellaCosti\"]) : null;\r\n this.sistemazione = _data[\"sistemazione\"] ? SistemazioneInfo.fromJS(_data[\"sistemazione\"]) : null;\r\n this.trattamento = _data[\"trattamento\"] ? TrattamentoInfo.fromJS(_data[\"trattamento\"]) : null;\r\n this.isOffertaComponibile = _data[\"isOffertaComponibile\"] !== undefined ? _data[\"isOffertaComponibile\"] : null;\r\n this.isOffertaComponibilePerTipologia = _data[\"isOffertaComponibilePerTipologia\"] !== undefined ? _data[\"isOffertaComponibilePerTipologia\"] : null;\r\n this.isPerTipologia = _data[\"isPerTipologia\"] !== undefined ? _data[\"isPerTipologia\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAssociazioneInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAssociazioneInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"associazione\"] = this.associazione ? this.associazione.toJSON() : null;\r\n data[\"configurazioneOfferta\"] = this.configurazioneOfferta ? this.configurazioneOfferta.toJSON() : null;\r\n data[\"labelOfferta\"] = this.labelOfferta !== undefined ? this.labelOfferta : null;\r\n data[\"disabilitata\"] = this.disabilitata !== undefined ? this.disabilitata : null;\r\n data[\"esclusioni\"] = this.esclusioni !== undefined ? this.esclusioni : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"cumulabilita\"] = this.cumulabilita !== undefined ? this.cumulabilita : null;\r\n data[\"tipologiaParent\"] = this.tipologiaParent ? this.tipologiaParent.toJSON() : null;\r\n data[\"tipologiaSupplemento\"] = this.tipologiaSupplemento ? this.tipologiaSupplemento.toJSON() : null;\r\n data[\"regolaVendita\"] = this.regolaVendita ? this.regolaVendita.toJSON() : null;\r\n data[\"tabellaCosti\"] = this.tabellaCosti ? this.tabellaCosti.toJSON() : null;\r\n data[\"sistemazione\"] = this.sistemazione ? this.sistemazione.toJSON() : null;\r\n data[\"trattamento\"] = this.trattamento ? this.trattamento.toJSON() : null;\r\n data[\"isOffertaComponibile\"] = this.isOffertaComponibile !== undefined ? this.isOffertaComponibile : null;\r\n data[\"isOffertaComponibilePerTipologia\"] = this.isOffertaComponibilePerTipologia !== undefined ? this.isOffertaComponibilePerTipologia : null;\r\n data[\"isPerTipologia\"] = this.isPerTipologia !== undefined ? this.isPerTipologia : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAssociazioneInfo {\r\n id?: number;\r\n associazione?: ServizioAssociazione;\r\n configurazioneOfferta?: OffertaComponibile | null;\r\n labelOfferta?: string | null;\r\n disabilitata?: boolean;\r\n esclusioni?: string | null;\r\n codice?: string | null;\r\n priorita?: number | null;\r\n cumulabilita?: string | null;\r\n tipologiaParent?: ServizioTipologiaInfo | null;\r\n tipologiaSupplemento?: ServizioTipologiaInfo | null;\r\n regolaVendita?: ServizioRegolaVendita | null;\r\n tabellaCosti?: TabellaCostiCommissioniInfo | null;\r\n sistemazione?: SistemazioneInfo | null;\r\n trattamento?: TrattamentoInfo | null;\r\n isOffertaComponibile?: boolean;\r\n isOffertaComponibilePerTipologia?: boolean;\r\n isPerTipologia?: boolean;\r\n}\r\n\r\nexport class ServizioAssociazione implements IServizioAssociazione {\r\n id?: number;\r\n servizioID?: number | null;\r\n tipologiaSupplementoID?: number | null;\r\n tipologiaParentID?: number | null;\r\n tipologiaEsternaID?: number | null;\r\n tabellaCostoID?: number | null;\r\n sistemazioneID?: number | null;\r\n ordine?: number | null;\r\n macroTipologia?: EMacrotipologia | null;\r\n tipoSupplemento?: ETipoSupplemento | null;\r\n regolaVenditaID?: number | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n tipoOffertaID?: number | null;\r\n parametriOfferta?: string | null;\r\n cumulabilita?: string | null;\r\n descrizioneWeb?: string | null;\r\n descrizioneVoucher?: string | null;\r\n trattamentoID?: number | null;\r\n tipoAssociazione?: ETipoAssociazione | null;\r\n\r\n constructor(data?: IServizioAssociazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.tipologiaSupplementoID = _data[\"tipologiaSupplementoID\"] !== undefined ? _data[\"tipologiaSupplementoID\"] : null;\r\n this.tipologiaParentID = _data[\"tipologiaParentID\"] !== undefined ? _data[\"tipologiaParentID\"] : null;\r\n this.tipologiaEsternaID = _data[\"tipologiaEsternaID\"] !== undefined ? _data[\"tipologiaEsternaID\"] : null;\r\n this.tabellaCostoID = _data[\"tabellaCostoID\"] !== undefined ? _data[\"tabellaCostoID\"] : null;\r\n this.sistemazioneID = _data[\"sistemazioneID\"] !== undefined ? _data[\"sistemazioneID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.macroTipologia = _data[\"macroTipologia\"] !== undefined ? _data[\"macroTipologia\"] : null;\r\n this.tipoSupplemento = _data[\"tipoSupplemento\"] !== undefined ? _data[\"tipoSupplemento\"] : null;\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.tipoOffertaID = _data[\"tipoOffertaID\"] !== undefined ? _data[\"tipoOffertaID\"] : null;\r\n this.parametriOfferta = _data[\"parametriOfferta\"] !== undefined ? _data[\"parametriOfferta\"] : null;\r\n this.cumulabilita = _data[\"cumulabilita\"] !== undefined ? _data[\"cumulabilita\"] : null;\r\n this.descrizioneWeb = _data[\"descrizioneWeb\"] !== undefined ? _data[\"descrizioneWeb\"] : null;\r\n this.descrizioneVoucher = _data[\"descrizioneVoucher\"] !== undefined ? _data[\"descrizioneVoucher\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.tipoAssociazione = _data[\"tipoAssociazione\"] !== undefined ? _data[\"tipoAssociazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAssociazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAssociazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"tipologiaSupplementoID\"] = this.tipologiaSupplementoID !== undefined ? this.tipologiaSupplementoID : null;\r\n data[\"tipologiaParentID\"] = this.tipologiaParentID !== undefined ? this.tipologiaParentID : null;\r\n data[\"tipologiaEsternaID\"] = this.tipologiaEsternaID !== undefined ? this.tipologiaEsternaID : null;\r\n data[\"tabellaCostoID\"] = this.tabellaCostoID !== undefined ? this.tabellaCostoID : null;\r\n data[\"sistemazioneID\"] = this.sistemazioneID !== undefined ? this.sistemazioneID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"macroTipologia\"] = this.macroTipologia !== undefined ? this.macroTipologia : null;\r\n data[\"tipoSupplemento\"] = this.tipoSupplemento !== undefined ? this.tipoSupplemento : null;\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"tipoOffertaID\"] = this.tipoOffertaID !== undefined ? this.tipoOffertaID : null;\r\n data[\"parametriOfferta\"] = this.parametriOfferta !== undefined ? this.parametriOfferta : null;\r\n data[\"cumulabilita\"] = this.cumulabilita !== undefined ? this.cumulabilita : null;\r\n data[\"descrizioneWeb\"] = this.descrizioneWeb !== undefined ? this.descrizioneWeb : null;\r\n data[\"descrizioneVoucher\"] = this.descrizioneVoucher !== undefined ? this.descrizioneVoucher : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"tipoAssociazione\"] = this.tipoAssociazione !== undefined ? this.tipoAssociazione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAssociazione {\r\n id?: number;\r\n servizioID?: number | null;\r\n tipologiaSupplementoID?: number | null;\r\n tipologiaParentID?: number | null;\r\n tipologiaEsternaID?: number | null;\r\n tabellaCostoID?: number | null;\r\n sistemazioneID?: number | null;\r\n ordine?: number | null;\r\n macroTipologia?: EMacrotipologia | null;\r\n tipoSupplemento?: ETipoSupplemento | null;\r\n regolaVenditaID?: number | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n tipoOffertaID?: number | null;\r\n parametriOfferta?: string | null;\r\n cumulabilita?: string | null;\r\n descrizioneWeb?: string | null;\r\n descrizioneVoucher?: string | null;\r\n trattamentoID?: number | null;\r\n tipoAssociazione?: ETipoAssociazione | null;\r\n}\r\n\r\nexport enum EMacrotipologia {\r\n TuttoTranneSupplementi = \"TuttoTranneSupplementi\",\r\n SoloSupplementi = \"SoloSupplementi\",\r\n}\r\n\r\nexport enum ETipoAssociazione {\r\n TipologiaSupplemento = \"TipologiaSupplemento\",\r\n RegolaVenditaAggiuntiva = \"RegolaVenditaAggiuntiva\",\r\n OffertaComponibile = \"OffertaComponibile\",\r\n PenaliCancellazione = \"PenaliCancellazione\",\r\n}\r\n\r\nexport class OffertaComponibile implements IOffertaComponibile {\r\n codice?: string;\r\n label?: string;\r\n priorita?: number;\r\n cumulabilita?: string | null;\r\n periodiEsclusione?: string | null;\r\n tipoApplicazione?: ETipoApplicazione;\r\n disabilitata?: boolean;\r\n noteInterne?: string | null;\r\n configurazionePrecondizioni?: EccezioneConfig[] | null;\r\n configurazioneAlgoritmo?: EccezioneConfig | null;\r\n\r\n constructor(data?: IOffertaComponibile) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.cumulabilita = _data[\"cumulabilita\"] !== undefined ? _data[\"cumulabilita\"] : null;\r\n this.periodiEsclusione = _data[\"periodiEsclusione\"] !== undefined ? _data[\"periodiEsclusione\"] : null;\r\n this.tipoApplicazione = _data[\"tipoApplicazione\"] !== undefined ? _data[\"tipoApplicazione\"] : null;\r\n this.disabilitata = _data[\"disabilitata\"] !== undefined ? _data[\"disabilitata\"] : null;\r\n this.noteInterne = _data[\"noteInterne\"] !== undefined ? _data[\"noteInterne\"] : null;\r\n if (Array.isArray(_data[\"configurazionePrecondizioni\"])) {\r\n this.configurazionePrecondizioni = [] as any;\r\n for (let item of _data[\"configurazionePrecondizioni\"])\r\n this.configurazionePrecondizioni!.push(EccezioneConfig.fromJS(item));\r\n }\r\n else {\r\n this.configurazionePrecondizioni = null;\r\n }\r\n this.configurazioneAlgoritmo = _data[\"configurazioneAlgoritmo\"] ? EccezioneConfig.fromJS(_data[\"configurazioneAlgoritmo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaComponibile {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaComponibile();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"cumulabilita\"] = this.cumulabilita !== undefined ? this.cumulabilita : null;\r\n data[\"periodiEsclusione\"] = this.periodiEsclusione !== undefined ? this.periodiEsclusione : null;\r\n data[\"tipoApplicazione\"] = this.tipoApplicazione !== undefined ? this.tipoApplicazione : null;\r\n data[\"disabilitata\"] = this.disabilitata !== undefined ? this.disabilitata : null;\r\n data[\"noteInterne\"] = this.noteInterne !== undefined ? this.noteInterne : null;\r\n if (Array.isArray(this.configurazionePrecondizioni)) {\r\n data[\"configurazionePrecondizioni\"] = [];\r\n for (let item of this.configurazionePrecondizioni)\r\n data[\"configurazionePrecondizioni\"].push(item.toJSON());\r\n }\r\n data[\"configurazioneAlgoritmo\"] = this.configurazioneAlgoritmo ? this.configurazioneAlgoritmo.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaComponibile {\r\n codice?: string;\r\n label?: string;\r\n priorita?: number;\r\n cumulabilita?: string | null;\r\n periodiEsclusione?: string | null;\r\n tipoApplicazione?: ETipoApplicazione;\r\n disabilitata?: boolean;\r\n noteInterne?: string | null;\r\n configurazionePrecondizioni?: EccezioneConfig[] | null;\r\n configurazioneAlgoritmo?: EccezioneConfig | null;\r\n}\r\n\r\nexport enum ETipoApplicazione {\r\n Normale = \"Normale\",\r\n ApplicaENascondiPrezzo = \"ApplicaENascondiPrezzo\",\r\n ModificaQuoteBase = \"ModificaQuoteBase\",\r\n VisualizzaLabel = \"VisualizzaLabel\",\r\n BloccaVendita = \"BloccaVendita\",\r\n VisualizzaLabelAnonima = \"VisualizzaLabelAnonima\",\r\n VisualizzaLabelSupplemento = \"VisualizzaLabelSupplemento\",\r\n ForzaSuRichiesta = \"ForzaSuRichiesta\",\r\n}\r\n\r\nexport class EccezioneConfig implements IEccezioneConfig {\r\n codice?: string;\r\n config?: any | null;\r\n\r\n constructor(data?: IEccezioneConfig) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.config = _data[\"config\"] !== undefined ? _data[\"config\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EccezioneConfig {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EccezioneConfig();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"config\"] = this.config !== undefined ? this.config : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEccezioneConfig {\r\n codice?: string;\r\n config?: any | null;\r\n}\r\n\r\nexport class ServizioDatoAggiuntivoInfo implements IServizioDatoAggiuntivoInfo {\r\n tipoInfo?: DatoAggiuntivoTipoInfo;\r\n datoAggiuntivoInfo?: DatoAggiuntivoInfo;\r\n datoAggiuntivo?: DatoAggiuntivo;\r\n valore?: ServizioDatoAggiuntivo;\r\n\r\n constructor(data?: IServizioDatoAggiuntivoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoInfo = _data[\"tipoInfo\"] ? DatoAggiuntivoTipoInfo.fromJS(_data[\"tipoInfo\"]) : null;\r\n this.datoAggiuntivoInfo = _data[\"datoAggiuntivoInfo\"] ? DatoAggiuntivoInfo.fromJS(_data[\"datoAggiuntivoInfo\"]) : null;\r\n this.datoAggiuntivo = _data[\"datoAggiuntivo\"] ? DatoAggiuntivo.fromJS(_data[\"datoAggiuntivo\"]) : null;\r\n this.valore = _data[\"valore\"] ? ServizioDatoAggiuntivo.fromJS(_data[\"valore\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioDatoAggiuntivoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioDatoAggiuntivoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoInfo\"] = this.tipoInfo ? this.tipoInfo.toJSON() : null;\r\n data[\"datoAggiuntivoInfo\"] = this.datoAggiuntivoInfo ? this.datoAggiuntivoInfo.toJSON() : null;\r\n data[\"datoAggiuntivo\"] = this.datoAggiuntivo ? this.datoAggiuntivo.toJSON() : null;\r\n data[\"valore\"] = this.valore ? this.valore.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioDatoAggiuntivoInfo {\r\n tipoInfo?: DatoAggiuntivoTipoInfo;\r\n datoAggiuntivoInfo?: DatoAggiuntivoInfo;\r\n datoAggiuntivo?: DatoAggiuntivo;\r\n valore?: ServizioDatoAggiuntivo;\r\n}\r\n\r\nexport class DatoAggiuntivoTipoInfo implements IDatoAggiuntivoTipoInfo {\r\n id?: number;\r\n tipo?: DatoAggiuntivoTipo;\r\n traduzioni?: IWebTranslationEntity[];\r\n nome?: string;\r\n nome_en?: string;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string;\r\n\r\n constructor(data?: IDatoAggiuntivoTipoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tipo = _data[\"tipo\"] ? DatoAggiuntivoTipo.fromJS(_data[\"tipo\"]) : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoTipoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoTipoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tipo\"] = this.tipo ? this.tipo.toJSON() : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoTipoInfo {\r\n id?: number;\r\n tipo?: DatoAggiuntivoTipo;\r\n traduzioni?: IWebTranslationEntity[];\r\n nome?: string;\r\n nome_en?: string;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string;\r\n}\r\n\r\nexport class DatoAggiuntivoInfo implements IDatoAggiuntivoInfo {\r\n id?: number;\r\n dato?: DatoAggiuntivo;\r\n tipo?: DatoAggiuntivoTipoInfo;\r\n srtTipo?: string;\r\n tipoServizio?: ETipoServizio | null;\r\n srtLuogo?: string;\r\n luogo?: LuogoInfo | null;\r\n traduzioni?: IWebTranslationEntity[];\r\n nome?: string;\r\n nome_en?: string;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string;\r\n\r\n constructor(data?: IDatoAggiuntivoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.dato = _data[\"dato\"] ? DatoAggiuntivo.fromJS(_data[\"dato\"]) : null;\r\n this.tipo = _data[\"tipo\"] ? DatoAggiuntivoTipoInfo.fromJS(_data[\"tipo\"]) : null;\r\n this.srtTipo = _data[\"srtTipo\"] !== undefined ? _data[\"srtTipo\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.srtLuogo = _data[\"srtLuogo\"] !== undefined ? _data[\"srtLuogo\"] : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"dato\"] = this.dato ? this.dato.toJSON() : null;\r\n data[\"tipo\"] = this.tipo ? this.tipo.toJSON() : null;\r\n data[\"srtTipo\"] = this.srtTipo !== undefined ? this.srtTipo : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"srtLuogo\"] = this.srtLuogo !== undefined ? this.srtLuogo : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoInfo {\r\n id?: number;\r\n dato?: DatoAggiuntivo;\r\n tipo?: DatoAggiuntivoTipoInfo;\r\n srtTipo?: string;\r\n tipoServizio?: ETipoServizio | null;\r\n srtLuogo?: string;\r\n luogo?: LuogoInfo | null;\r\n traduzioni?: IWebTranslationEntity[];\r\n nome?: string;\r\n nome_en?: string;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean;\r\n confirmed_en?: boolean;\r\n table?: string;\r\n}\r\n\r\nexport class ServizioDatoAggiuntivo implements IServizioDatoAggiuntivo {\r\n id?: number;\r\n servizioID?: number;\r\n datoAggiuntivoID?: number;\r\n tipoServizio?: ETipoServizio | null;\r\n valore?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n valore_fr?: string | null;\r\n valore_de?: string | null;\r\n valore_es?: string | null;\r\n valore_en?: string | null;\r\n\r\n constructor(data?: IServizioDatoAggiuntivo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.datoAggiuntivoID = _data[\"datoAggiuntivoID\"] !== undefined ? _data[\"datoAggiuntivoID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.valore_fr = _data[\"valore_fr\"] !== undefined ? _data[\"valore_fr\"] : null;\r\n this.valore_de = _data[\"valore_de\"] !== undefined ? _data[\"valore_de\"] : null;\r\n this.valore_es = _data[\"valore_es\"] !== undefined ? _data[\"valore_es\"] : null;\r\n this.valore_en = _data[\"valore_en\"] !== undefined ? _data[\"valore_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioDatoAggiuntivo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioDatoAggiuntivo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"datoAggiuntivoID\"] = this.datoAggiuntivoID !== undefined ? this.datoAggiuntivoID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"valore_fr\"] = this.valore_fr !== undefined ? this.valore_fr : null;\r\n data[\"valore_de\"] = this.valore_de !== undefined ? this.valore_de : null;\r\n data[\"valore_es\"] = this.valore_es !== undefined ? this.valore_es : null;\r\n data[\"valore_en\"] = this.valore_en !== undefined ? this.valore_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioDatoAggiuntivo {\r\n id?: number;\r\n servizioID?: number;\r\n datoAggiuntivoID?: number;\r\n tipoServizio?: ETipoServizio | null;\r\n valore?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n valore_fr?: string | null;\r\n valore_de?: string | null;\r\n valore_es?: string | null;\r\n valore_en?: string | null;\r\n}\r\n\r\nexport class ServizioValiditaCosti implements IServizioValiditaCosti {\r\n servizioID?: number;\r\n dal?: string;\r\n al?: string;\r\n\r\n constructor(data?: IServizioValiditaCosti) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioValiditaCosti {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioValiditaCosti();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioValiditaCosti {\r\n servizioID?: number;\r\n dal?: string;\r\n al?: string;\r\n}\r\n\r\nexport class PageLinkInfo implements IPageLinkInfo {\r\n id?: number;\r\n pageLink?: PageLink | null;\r\n luogo?: LuogoInfo | null;\r\n servizio?: ServizioInfo | null;\r\n contenuti?: PageLinkContentInfo[] | null;\r\n pubblicato?: boolean;\r\n\r\n constructor(data?: IPageLinkInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.pageLink = _data[\"pageLink\"] ? PageLink.fromJS(_data[\"pageLink\"]) : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n if (Array.isArray(_data[\"contenuti\"])) {\r\n this.contenuti = [] as any;\r\n for (let item of _data[\"contenuti\"])\r\n this.contenuti!.push(PageLinkContentInfo.fromJS(item));\r\n }\r\n else {\r\n this.contenuti = null;\r\n }\r\n this.pubblicato = _data[\"pubblicato\"] !== undefined ? _data[\"pubblicato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"pageLink\"] = this.pageLink ? this.pageLink.toJSON() : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n if (Array.isArray(this.contenuti)) {\r\n data[\"contenuti\"] = [];\r\n for (let item of this.contenuti)\r\n data[\"contenuti\"].push(item.toJSON());\r\n }\r\n data[\"pubblicato\"] = this.pubblicato !== undefined ? this.pubblicato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkInfo {\r\n id?: number;\r\n pageLink?: PageLink | null;\r\n luogo?: LuogoInfo | null;\r\n servizio?: ServizioInfo | null;\r\n contenuti?: PageLinkContentInfo[] | null;\r\n pubblicato?: boolean;\r\n}\r\n\r\nexport class PageLinkContentInfo implements IPageLinkContentInfo {\r\n id?: number;\r\n pageLinkContent?: PageLinkContent | null;\r\n articolo?: ArticoloInfo | null;\r\n isValid?: boolean;\r\n\r\n constructor(data?: IPageLinkContentInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.pageLinkContent = _data[\"pageLinkContent\"] ? PageLinkContent.fromJS(_data[\"pageLinkContent\"]) : null;\r\n this.articolo = _data[\"articolo\"] ? ArticoloInfo.fromJS(_data[\"articolo\"]) : null;\r\n this.isValid = _data[\"isValid\"] !== undefined ? _data[\"isValid\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PageLinkContentInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PageLinkContentInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"pageLinkContent\"] = this.pageLinkContent ? this.pageLinkContent.toJSON() : null;\r\n data[\"articolo\"] = this.articolo ? this.articolo.toJSON() : null;\r\n data[\"isValid\"] = this.isValid !== undefined ? this.isValid : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPageLinkContentInfo {\r\n id?: number;\r\n pageLinkContent?: PageLinkContent | null;\r\n articolo?: ArticoloInfo | null;\r\n isValid?: boolean;\r\n}\r\n\r\nexport class ArticoloAttachmentInfo implements IArticoloAttachmentInfo {\r\n id?: number;\r\n articoloAttachment?: ArticoloAttachment;\r\n linkedFile?: FileInfoBase;\r\n\r\n constructor(data?: IArticoloAttachmentInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.articoloAttachment = _data[\"articoloAttachment\"] ? ArticoloAttachment.fromJS(_data[\"articoloAttachment\"]) : null;\r\n this.linkedFile = _data[\"linkedFile\"] ? FileInfoBase.fromJS(_data[\"linkedFile\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloAttachmentInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloAttachmentInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"articoloAttachment\"] = this.articoloAttachment ? this.articoloAttachment.toJSON() : null;\r\n data[\"linkedFile\"] = this.linkedFile ? this.linkedFile.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloAttachmentInfo {\r\n id?: number;\r\n articoloAttachment?: ArticoloAttachment;\r\n linkedFile?: FileInfoBase;\r\n}\r\n\r\nexport class ArticoloTraduzione implements IArticoloTraduzione {\r\n articoloID?: number;\r\n lingua?: ELingua;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n confermata?: boolean;\r\n ultimoAggiornamento?: string | null;\r\n\r\n constructor(data?: IArticoloTraduzione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.sunto = _data[\"sunto\"] !== undefined ? _data[\"sunto\"] : null;\r\n this.confermata = _data[\"confermata\"] !== undefined ? _data[\"confermata\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloTraduzione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloTraduzione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"sunto\"] = this.sunto !== undefined ? this.sunto : null;\r\n data[\"confermata\"] = this.confermata !== undefined ? this.confermata : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloTraduzione {\r\n articoloID?: number;\r\n lingua?: ELingua;\r\n titolo?: string | null;\r\n sunto?: string | null;\r\n confermata?: boolean;\r\n ultimoAggiornamento?: string | null;\r\n}\r\n\r\nexport class AccordoContattoInfo implements IAccordoContattoInfo {\r\n id?: number;\r\n accordoContatto?: AccordoContatto;\r\n accordo?: AccordoInfo | null;\r\n terminePagamento?: TerminePagamentoInfo | null;\r\n terminePagamentoBiglietteria?: TerminePagamentoInfo | null;\r\n\r\n constructor(data?: IAccordoContattoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.accordoContatto = _data[\"accordoContatto\"] ? AccordoContatto.fromJS(_data[\"accordoContatto\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n this.terminePagamento = _data[\"terminePagamento\"] ? TerminePagamentoInfo.fromJS(_data[\"terminePagamento\"]) : null;\r\n this.terminePagamentoBiglietteria = _data[\"terminePagamentoBiglietteria\"] ? TerminePagamentoInfo.fromJS(_data[\"terminePagamentoBiglietteria\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoContattoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoContattoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"accordoContatto\"] = this.accordoContatto ? this.accordoContatto.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"terminePagamento\"] = this.terminePagamento ? this.terminePagamento.toJSON() : null;\r\n data[\"terminePagamentoBiglietteria\"] = this.terminePagamentoBiglietteria ? this.terminePagamentoBiglietteria.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoContattoInfo {\r\n id?: number;\r\n accordoContatto?: AccordoContatto;\r\n accordo?: AccordoInfo | null;\r\n terminePagamento?: TerminePagamentoInfo | null;\r\n terminePagamentoBiglietteria?: TerminePagamentoInfo | null;\r\n}\r\n\r\nexport class TerminePagamentoInfo implements ITerminePagamentoInfo {\r\n _Nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n id?: number;\r\n terminePagamento?: TerminePagamento | null;\r\n isFactoring?: boolean;\r\n isAnticipato?: boolean;\r\n nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n srtNome_it?: string | null;\r\n srtNome_en?: string | null;\r\n srtNome_fr?: string | null;\r\n srtNome_de?: string | null;\r\n srtNome_nl?: string | null;\r\n\r\n constructor(data?: ITerminePagamentoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (_data[\"_Nomi\"]) {\r\n this._Nomi = {} as any;\r\n for (let key in _data[\"_Nomi\"]) {\r\n if (_data[\"_Nomi\"].hasOwnProperty(key))\r\n (this._Nomi)![key] = _data[\"_Nomi\"][key] !== undefined ? _data[\"_Nomi\"][key] : null;\r\n }\r\n }\r\n else {\r\n this._Nomi = null;\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.terminePagamento = _data[\"terminePagamento\"] ? TerminePagamento.fromJS(_data[\"terminePagamento\"]) : null;\r\n this.isFactoring = _data[\"isFactoring\"] !== undefined ? _data[\"isFactoring\"] : null;\r\n this.isAnticipato = _data[\"isAnticipato\"] !== undefined ? _data[\"isAnticipato\"] : null;\r\n if (_data[\"nomi\"]) {\r\n this.nomi = {} as any;\r\n for (let key in _data[\"nomi\"]) {\r\n if (_data[\"nomi\"].hasOwnProperty(key))\r\n (this.nomi)![key] = _data[\"nomi\"][key] !== undefined ? _data[\"nomi\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomi = null;\r\n }\r\n this.srtNome_it = _data[\"srtNome_it\"] !== undefined ? _data[\"srtNome_it\"] : null;\r\n this.srtNome_en = _data[\"srtNome_en\"] !== undefined ? _data[\"srtNome_en\"] : null;\r\n this.srtNome_fr = _data[\"srtNome_fr\"] !== undefined ? _data[\"srtNome_fr\"] : null;\r\n this.srtNome_de = _data[\"srtNome_de\"] !== undefined ? _data[\"srtNome_de\"] : null;\r\n this.srtNome_nl = _data[\"srtNome_nl\"] !== undefined ? _data[\"srtNome_nl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TerminePagamentoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TerminePagamentoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (this._Nomi) {\r\n data[\"_Nomi\"] = {};\r\n for (let key in this._Nomi) {\r\n if (this._Nomi.hasOwnProperty(key))\r\n (data[\"_Nomi\"])[key] = this._Nomi[key] !== undefined ? this._Nomi[key] : null;\r\n }\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"terminePagamento\"] = this.terminePagamento ? this.terminePagamento.toJSON() : null;\r\n data[\"isFactoring\"] = this.isFactoring !== undefined ? this.isFactoring : null;\r\n data[\"isAnticipato\"] = this.isAnticipato !== undefined ? this.isAnticipato : null;\r\n if (this.nomi) {\r\n data[\"nomi\"] = {};\r\n for (let key in this.nomi) {\r\n if (this.nomi.hasOwnProperty(key))\r\n (data[\"nomi\"])[key] = this.nomi[key] !== undefined ? this.nomi[key] : null;\r\n }\r\n }\r\n data[\"srtNome_it\"] = this.srtNome_it !== undefined ? this.srtNome_it : null;\r\n data[\"srtNome_en\"] = this.srtNome_en !== undefined ? this.srtNome_en : null;\r\n data[\"srtNome_fr\"] = this.srtNome_fr !== undefined ? this.srtNome_fr : null;\r\n data[\"srtNome_de\"] = this.srtNome_de !== undefined ? this.srtNome_de : null;\r\n data[\"srtNome_nl\"] = this.srtNome_nl !== undefined ? this.srtNome_nl : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITerminePagamentoInfo {\r\n _Nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n id?: number;\r\n terminePagamento?: TerminePagamento | null;\r\n isFactoring?: boolean;\r\n isAnticipato?: boolean;\r\n nomi?: { [key in keyof typeof ELingua]?: string; } | null;\r\n srtNome_it?: string | null;\r\n srtNome_en?: string | null;\r\n srtNome_fr?: string | null;\r\n srtNome_de?: string | null;\r\n srtNome_nl?: string | null;\r\n}\r\n\r\nexport class TerminePagamento implements ITerminePagamento {\r\n pagamentoID?: number;\r\n nome!: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n nome_nl?: string | null;\r\n memo?: string | null;\r\n visibile?: boolean | null;\r\n eliminato?: string | null;\r\n searchTerms?: string | null;\r\n\r\n constructor(data?: ITerminePagamento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.pagamentoID = _data[\"pagamentoID\"] !== undefined ? _data[\"pagamentoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.nome_nl = _data[\"nome_nl\"] !== undefined ? _data[\"nome_nl\"] : null;\r\n this.memo = _data[\"memo\"] !== undefined ? _data[\"memo\"] : null;\r\n this.visibile = _data[\"visibile\"] !== undefined ? _data[\"visibile\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TerminePagamento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TerminePagamento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pagamentoID\"] = this.pagamentoID !== undefined ? this.pagamentoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"nome_nl\"] = this.nome_nl !== undefined ? this.nome_nl : null;\r\n data[\"memo\"] = this.memo !== undefined ? this.memo : null;\r\n data[\"visibile\"] = this.visibile !== undefined ? this.visibile : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITerminePagamento {\r\n pagamentoID?: number;\r\n nome: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n nome_nl?: string | null;\r\n memo?: string | null;\r\n visibile?: boolean | null;\r\n eliminato?: string | null;\r\n searchTerms?: string | null;\r\n}\r\n\r\nexport class ContattoStatistica implements IContattoStatistica {\r\n contattoID?: number;\r\n operatore?: EOperatore;\r\n preventiviPassati?: number | null;\r\n preventiviBkgPassati?: number | null;\r\n confermePassate?: number | null;\r\n fatturatoPassato?: number | null;\r\n preventiviFuturi?: number | null;\r\n preventiviBkgFuturi?: number | null;\r\n confermeFuture?: number | null;\r\n fatturatoFuturo?: number | null;\r\n percentualeConfermePassate?: number | null;\r\n note?: string | null;\r\n\r\n constructor(data?: IContattoStatistica) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.preventiviPassati = _data[\"preventiviPassati\"] !== undefined ? _data[\"preventiviPassati\"] : null;\r\n this.preventiviBkgPassati = _data[\"preventiviBkgPassati\"] !== undefined ? _data[\"preventiviBkgPassati\"] : null;\r\n this.confermePassate = _data[\"confermePassate\"] !== undefined ? _data[\"confermePassate\"] : null;\r\n this.fatturatoPassato = _data[\"fatturatoPassato\"] !== undefined ? _data[\"fatturatoPassato\"] : null;\r\n this.preventiviFuturi = _data[\"preventiviFuturi\"] !== undefined ? _data[\"preventiviFuturi\"] : null;\r\n this.preventiviBkgFuturi = _data[\"preventiviBkgFuturi\"] !== undefined ? _data[\"preventiviBkgFuturi\"] : null;\r\n this.confermeFuture = _data[\"confermeFuture\"] !== undefined ? _data[\"confermeFuture\"] : null;\r\n this.fatturatoFuturo = _data[\"fatturatoFuturo\"] !== undefined ? _data[\"fatturatoFuturo\"] : null;\r\n this.percentualeConfermePassate = _data[\"percentualeConfermePassate\"] !== undefined ? _data[\"percentualeConfermePassate\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoStatistica {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoStatistica();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"preventiviPassati\"] = this.preventiviPassati !== undefined ? this.preventiviPassati : null;\r\n data[\"preventiviBkgPassati\"] = this.preventiviBkgPassati !== undefined ? this.preventiviBkgPassati : null;\r\n data[\"confermePassate\"] = this.confermePassate !== undefined ? this.confermePassate : null;\r\n data[\"fatturatoPassato\"] = this.fatturatoPassato !== undefined ? this.fatturatoPassato : null;\r\n data[\"preventiviFuturi\"] = this.preventiviFuturi !== undefined ? this.preventiviFuturi : null;\r\n data[\"preventiviBkgFuturi\"] = this.preventiviBkgFuturi !== undefined ? this.preventiviBkgFuturi : null;\r\n data[\"confermeFuture\"] = this.confermeFuture !== undefined ? this.confermeFuture : null;\r\n data[\"fatturatoFuturo\"] = this.fatturatoFuturo !== undefined ? this.fatturatoFuturo : null;\r\n data[\"percentualeConfermePassate\"] = this.percentualeConfermePassate !== undefined ? this.percentualeConfermePassate : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoStatistica {\r\n contattoID?: number;\r\n operatore?: EOperatore;\r\n preventiviPassati?: number | null;\r\n preventiviBkgPassati?: number | null;\r\n confermePassate?: number | null;\r\n fatturatoPassato?: number | null;\r\n preventiviFuturi?: number | null;\r\n preventiviBkgFuturi?: number | null;\r\n confermeFuture?: number | null;\r\n fatturatoFuturo?: number | null;\r\n percentualeConfermePassate?: number | null;\r\n note?: string | null;\r\n}\r\n\r\nexport class ContattoOpzione implements IContattoOpzione {\r\n contattoID?: number;\r\n markupHotel?: number | null;\r\n markupVisite?: number | null;\r\n markupTrasferimenti?: number | null;\r\n markupAuto?: number | null;\r\n feeVoliNazionali?: number | null;\r\n feeVoliLowcost?: number | null;\r\n feeVoliEuropa?: number | null;\r\n feeVoliMondo?: number | null;\r\n\r\n constructor(data?: IContattoOpzione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.markupHotel = _data[\"markupHotel\"] !== undefined ? _data[\"markupHotel\"] : null;\r\n this.markupVisite = _data[\"markupVisite\"] !== undefined ? _data[\"markupVisite\"] : null;\r\n this.markupTrasferimenti = _data[\"markupTrasferimenti\"] !== undefined ? _data[\"markupTrasferimenti\"] : null;\r\n this.markupAuto = _data[\"markupAuto\"] !== undefined ? _data[\"markupAuto\"] : null;\r\n this.feeVoliNazionali = _data[\"feeVoliNazionali\"] !== undefined ? _data[\"feeVoliNazionali\"] : null;\r\n this.feeVoliLowcost = _data[\"feeVoliLowcost\"] !== undefined ? _data[\"feeVoliLowcost\"] : null;\r\n this.feeVoliEuropa = _data[\"feeVoliEuropa\"] !== undefined ? _data[\"feeVoliEuropa\"] : null;\r\n this.feeVoliMondo = _data[\"feeVoliMondo\"] !== undefined ? _data[\"feeVoliMondo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoOpzione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoOpzione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"markupHotel\"] = this.markupHotel !== undefined ? this.markupHotel : null;\r\n data[\"markupVisite\"] = this.markupVisite !== undefined ? this.markupVisite : null;\r\n data[\"markupTrasferimenti\"] = this.markupTrasferimenti !== undefined ? this.markupTrasferimenti : null;\r\n data[\"markupAuto\"] = this.markupAuto !== undefined ? this.markupAuto : null;\r\n data[\"feeVoliNazionali\"] = this.feeVoliNazionali !== undefined ? this.feeVoliNazionali : null;\r\n data[\"feeVoliLowcost\"] = this.feeVoliLowcost !== undefined ? this.feeVoliLowcost : null;\r\n data[\"feeVoliEuropa\"] = this.feeVoliEuropa !== undefined ? this.feeVoliEuropa : null;\r\n data[\"feeVoliMondo\"] = this.feeVoliMondo !== undefined ? this.feeVoliMondo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoOpzione {\r\n contattoID?: number;\r\n markupHotel?: number | null;\r\n markupVisite?: number | null;\r\n markupTrasferimenti?: number | null;\r\n markupAuto?: number | null;\r\n feeVoliNazionali?: number | null;\r\n feeVoliLowcost?: number | null;\r\n feeVoliEuropa?: number | null;\r\n feeVoliMondo?: number | null;\r\n}\r\n\r\nexport class ValutaInfo implements IValutaInfo {\r\n id?: number;\r\n valuta?: Valuta;\r\n valoreCorrente?: ValutaValore | null;\r\n\r\n constructor(data?: IValutaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.valuta = _data[\"valuta\"] ? Valuta.fromJS(_data[\"valuta\"]) : null;\r\n this.valoreCorrente = _data[\"valoreCorrente\"] ? ValutaValore.fromJS(_data[\"valoreCorrente\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ValutaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ValutaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"valuta\"] = this.valuta ? this.valuta.toJSON() : null;\r\n data[\"valoreCorrente\"] = this.valoreCorrente ? this.valoreCorrente.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValutaInfo {\r\n id?: number;\r\n valuta?: Valuta;\r\n valoreCorrente?: ValutaValore | null;\r\n}\r\n\r\nexport class Valuta implements IValuta {\r\n valutaID?: number;\r\n codice!: string;\r\n nome!: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n arrotondamento?: number | null;\r\n\r\n constructor(data?: IValuta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.valutaID = _data[\"valutaID\"] !== undefined ? _data[\"valutaID\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.arrotondamento = _data[\"arrotondamento\"] !== undefined ? _data[\"arrotondamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Valuta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Valuta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"valutaID\"] = this.valutaID !== undefined ? this.valutaID : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"arrotondamento\"] = this.arrotondamento !== undefined ? this.arrotondamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValuta {\r\n valutaID?: number;\r\n codice: string;\r\n nome: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n arrotondamento?: number | null;\r\n}\r\n\r\nexport class OpzioniOperatore implements IOpzioniOperatore {\r\n opzioniRichiestaPreventivo?: OpzioniRichiestaPreventivo;\r\n opzioniDirittiAgenzia?: OpzioniCommissioniAgenzia;\r\n\r\n constructor(data?: IOpzioniOperatore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.opzioniRichiestaPreventivo = _data[\"opzioniRichiestaPreventivo\"] ? OpzioniRichiestaPreventivo.fromJS(_data[\"opzioniRichiestaPreventivo\"]) : null;\r\n this.opzioniDirittiAgenzia = _data[\"opzioniDirittiAgenzia\"] ? OpzioniCommissioniAgenzia.fromJS(_data[\"opzioniDirittiAgenzia\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OpzioniOperatore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OpzioniOperatore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"opzioniRichiestaPreventivo\"] = this.opzioniRichiestaPreventivo ? this.opzioniRichiestaPreventivo.toJSON() : null;\r\n data[\"opzioniDirittiAgenzia\"] = this.opzioniDirittiAgenzia ? this.opzioniDirittiAgenzia.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOpzioniOperatore {\r\n opzioniRichiestaPreventivo?: OpzioniRichiestaPreventivo;\r\n opzioniDirittiAgenzia?: OpzioniCommissioniAgenzia;\r\n}\r\n\r\nexport class OpzioniRichiestaPreventivo implements IOpzioniRichiestaPreventivo {\r\n emailRichiestaPreventivi?: ContattoEmail;\r\n destinazioniPreventivi?: Destinazione[];\r\n\r\n constructor(data?: IOpzioniRichiestaPreventivo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.emailRichiestaPreventivi = _data[\"emailRichiestaPreventivi\"] ? ContattoEmail.fromJS(_data[\"emailRichiestaPreventivi\"]) : null;\r\n if (Array.isArray(_data[\"destinazioniPreventivi\"])) {\r\n this.destinazioniPreventivi = [] as any;\r\n for (let item of _data[\"destinazioniPreventivi\"])\r\n this.destinazioniPreventivi!.push(Destinazione.fromJS(item));\r\n }\r\n else {\r\n this.destinazioniPreventivi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): OpzioniRichiestaPreventivo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OpzioniRichiestaPreventivo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"emailRichiestaPreventivi\"] = this.emailRichiestaPreventivi ? this.emailRichiestaPreventivi.toJSON() : null;\r\n if (Array.isArray(this.destinazioniPreventivi)) {\r\n data[\"destinazioniPreventivi\"] = [];\r\n for (let item of this.destinazioniPreventivi)\r\n data[\"destinazioniPreventivi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOpzioniRichiestaPreventivo {\r\n emailRichiestaPreventivi?: ContattoEmail;\r\n destinazioniPreventivi?: Destinazione[];\r\n}\r\n\r\nexport class ContattoEmail implements IContattoEmail {\r\n email?: string;\r\n nomeVisualizzato?: string | null;\r\n\r\n constructor(data?: IContattoEmail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoEmail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoEmail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoEmail {\r\n email?: string;\r\n nomeVisualizzato?: string | null;\r\n}\r\n\r\nexport class Destinazione implements IDestinazione {\r\n nome?: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n\r\n constructor(data?: IDestinazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Destinazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Destinazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDestinazione {\r\n nome?: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n}\r\n\r\nexport class OpzioniCommissioniAgenzia implements IOpzioniCommissioniAgenzia {\r\n percentualeMassimaSuLordo?: number;\r\n\r\n constructor(data?: IOpzioniCommissioniAgenzia) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.percentualeMassimaSuLordo = _data[\"percentualeMassimaSuLordo\"] !== undefined ? _data[\"percentualeMassimaSuLordo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OpzioniCommissioniAgenzia {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OpzioniCommissioniAgenzia();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"percentualeMassimaSuLordo\"] = this.percentualeMassimaSuLordo !== undefined ? this.percentualeMassimaSuLordo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOpzioniCommissioniAgenzia {\r\n percentualeMassimaSuLordo?: number;\r\n}\r\n\r\nexport class PricingRule implements IPricingRule {\r\n id?: number;\r\n pricingID?: number;\r\n pricing?: Pricing | null;\r\n tripCreationFrom?: string | null;\r\n tripCreationTo?: string | null;\r\n tripDepartureFrom?: string | null;\r\n tripDepartureTo?: string | null;\r\n serviceType?: ETipoServizio | null;\r\n tripType?: EPriceRuleTripType;\r\n locationID?: number | null;\r\n deltaMargin?: number;\r\n priority?: number;\r\n\r\n constructor(data?: IPricingRule) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.pricingID = _data[\"pricingID\"] !== undefined ? _data[\"pricingID\"] : null;\r\n this.pricing = _data[\"pricing\"] ? Pricing.fromJS(_data[\"pricing\"]) : null;\r\n this.tripCreationFrom = _data[\"tripCreationFrom\"] !== undefined ? _data[\"tripCreationFrom\"] : null;\r\n this.tripCreationTo = _data[\"tripCreationTo\"] !== undefined ? _data[\"tripCreationTo\"] : null;\r\n this.tripDepartureFrom = _data[\"tripDepartureFrom\"] !== undefined ? _data[\"tripDepartureFrom\"] : null;\r\n this.tripDepartureTo = _data[\"tripDepartureTo\"] !== undefined ? _data[\"tripDepartureTo\"] : null;\r\n this.serviceType = _data[\"serviceType\"] !== undefined ? _data[\"serviceType\"] : null;\r\n this.tripType = _data[\"tripType\"] !== undefined ? _data[\"tripType\"] : null;\r\n this.locationID = _data[\"locationID\"] !== undefined ? _data[\"locationID\"] : null;\r\n this.deltaMargin = _data[\"deltaMargin\"] !== undefined ? _data[\"deltaMargin\"] : null;\r\n this.priority = _data[\"priority\"] !== undefined ? _data[\"priority\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingRule {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingRule();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"pricingID\"] = this.pricingID !== undefined ? this.pricingID : null;\r\n data[\"pricing\"] = this.pricing ? this.pricing.toJSON() : null;\r\n data[\"tripCreationFrom\"] = this.tripCreationFrom !== undefined ? this.tripCreationFrom : null;\r\n data[\"tripCreationTo\"] = this.tripCreationTo !== undefined ? this.tripCreationTo : null;\r\n data[\"tripDepartureFrom\"] = this.tripDepartureFrom !== undefined ? this.tripDepartureFrom : null;\r\n data[\"tripDepartureTo\"] = this.tripDepartureTo !== undefined ? this.tripDepartureTo : null;\r\n data[\"serviceType\"] = this.serviceType !== undefined ? this.serviceType : null;\r\n data[\"tripType\"] = this.tripType !== undefined ? this.tripType : null;\r\n data[\"locationID\"] = this.locationID !== undefined ? this.locationID : null;\r\n data[\"deltaMargin\"] = this.deltaMargin !== undefined ? this.deltaMargin : null;\r\n data[\"priority\"] = this.priority !== undefined ? this.priority : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingRule {\r\n id?: number;\r\n pricingID?: number;\r\n pricing?: Pricing | null;\r\n tripCreationFrom?: string | null;\r\n tripCreationTo?: string | null;\r\n tripDepartureFrom?: string | null;\r\n tripDepartureTo?: string | null;\r\n serviceType?: ETipoServizio | null;\r\n tripType?: EPriceRuleTripType;\r\n locationID?: number | null;\r\n deltaMargin?: number;\r\n priority?: number;\r\n}\r\n\r\nexport enum EPriceRuleTripType {\r\n All = \"All\",\r\n TailorMade = \"TailorMade\",\r\n Packages = \"Packages\",\r\n}\r\n\r\nexport class TagOffertaInfo implements ITagOffertaInfo {\r\n id?: number;\r\n tag?: TagOfferta;\r\n eliminato?: boolean;\r\n sortName_it?: string;\r\n sortName_en?: string;\r\n sortName_fr?: string;\r\n sortName_de?: string;\r\n\r\n constructor(data?: ITagOffertaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tag = _data[\"tag\"] ? TagOfferta.fromJS(_data[\"tag\"]) : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.sortName_it = _data[\"sortName_it\"] !== undefined ? _data[\"sortName_it\"] : null;\r\n this.sortName_en = _data[\"sortName_en\"] !== undefined ? _data[\"sortName_en\"] : null;\r\n this.sortName_fr = _data[\"sortName_fr\"] !== undefined ? _data[\"sortName_fr\"] : null;\r\n this.sortName_de = _data[\"sortName_de\"] !== undefined ? _data[\"sortName_de\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TagOffertaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TagOffertaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tag\"] = this.tag ? this.tag.toJSON() : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"sortName_it\"] = this.sortName_it !== undefined ? this.sortName_it : null;\r\n data[\"sortName_en\"] = this.sortName_en !== undefined ? this.sortName_en : null;\r\n data[\"sortName_fr\"] = this.sortName_fr !== undefined ? this.sortName_fr : null;\r\n data[\"sortName_de\"] = this.sortName_de !== undefined ? this.sortName_de : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITagOffertaInfo {\r\n id?: number;\r\n tag?: TagOfferta;\r\n eliminato?: boolean;\r\n sortName_it?: string;\r\n sortName_en?: string;\r\n sortName_fr?: string;\r\n sortName_de?: string;\r\n}\r\n\r\nexport class TagOfferta implements ITagOfferta {\r\n id?: number;\r\n tag!: string;\r\n tag_en?: string | null;\r\n tag_fr?: string | null;\r\n tag_de?: string | null;\r\n tag_es?: string | null;\r\n sistema?: boolean;\r\n uiOptions?: string | null;\r\n creato?: string;\r\n aggiornato?: string;\r\n eliminato?: string | null;\r\n\r\n constructor(data?: ITagOfferta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.tag = _data[\"tag\"] !== undefined ? _data[\"tag\"] : null;\r\n this.tag_en = _data[\"tag_en\"] !== undefined ? _data[\"tag_en\"] : null;\r\n this.tag_fr = _data[\"tag_fr\"] !== undefined ? _data[\"tag_fr\"] : null;\r\n this.tag_de = _data[\"tag_de\"] !== undefined ? _data[\"tag_de\"] : null;\r\n this.tag_es = _data[\"tag_es\"] !== undefined ? _data[\"tag_es\"] : null;\r\n this.sistema = _data[\"sistema\"] !== undefined ? _data[\"sistema\"] : null;\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n this.creato = _data[\"creato\"] !== undefined ? _data[\"creato\"] : null;\r\n this.aggiornato = _data[\"aggiornato\"] !== undefined ? _data[\"aggiornato\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TagOfferta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TagOfferta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"tag\"] = this.tag !== undefined ? this.tag : null;\r\n data[\"tag_en\"] = this.tag_en !== undefined ? this.tag_en : null;\r\n data[\"tag_fr\"] = this.tag_fr !== undefined ? this.tag_fr : null;\r\n data[\"tag_de\"] = this.tag_de !== undefined ? this.tag_de : null;\r\n data[\"tag_es\"] = this.tag_es !== undefined ? this.tag_es : null;\r\n data[\"sistema\"] = this.sistema !== undefined ? this.sistema : null;\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n data[\"creato\"] = this.creato !== undefined ? this.creato : null;\r\n data[\"aggiornato\"] = this.aggiornato !== undefined ? this.aggiornato : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITagOfferta {\r\n id?: number;\r\n tag: string;\r\n tag_en?: string | null;\r\n tag_fr?: string | null;\r\n tag_de?: string | null;\r\n tag_es?: string | null;\r\n sistema?: boolean;\r\n uiOptions?: string | null;\r\n creato?: string;\r\n aggiornato?: string;\r\n eliminato?: string | null;\r\n}\r\n\r\nexport class UtenteInfo implements IUtenteInfo {\r\n id?: number;\r\n utente?: Utente;\r\n tipoUtente?: ETipoUtente;\r\n username?: string;\r\n email?: string | null;\r\n nomeVisualizzato?: string;\r\n srtContattoAgenzia?: string | null;\r\n contattoUtente?: ContattoInfo;\r\n contattoAgenzia?: ContattoInfo | null;\r\n categoria?: CategoriaContatto | null;\r\n ruoli?: RuoloUtente[];\r\n isIntranet?: boolean;\r\n isDev?: boolean;\r\n isProduttore?: boolean;\r\n canBookFlights?: boolean;\r\n searchTerms?: string;\r\n permessi?: Permesso[];\r\n permessiCodici?: string[];\r\n uiOptions?: any;\r\n team?: TeamInfo | null;\r\n lingua?: ELingua | null;\r\n commissioneWebAgenzia?: number;\r\n\r\n constructor(data?: IUtenteInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.utente = _data[\"utente\"] ? Utente.fromJS(_data[\"utente\"]) : null;\r\n this.tipoUtente = _data[\"tipoUtente\"] !== undefined ? _data[\"tipoUtente\"] : null;\r\n this.username = _data[\"username\"] !== undefined ? _data[\"username\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.srtContattoAgenzia = _data[\"srtContattoAgenzia\"] !== undefined ? _data[\"srtContattoAgenzia\"] : null;\r\n this.contattoUtente = _data[\"contattoUtente\"] ? ContattoInfo.fromJS(_data[\"contattoUtente\"]) : null;\r\n this.contattoAgenzia = _data[\"contattoAgenzia\"] ? ContattoInfo.fromJS(_data[\"contattoAgenzia\"]) : null;\r\n this.categoria = _data[\"categoria\"] ? CategoriaContatto.fromJS(_data[\"categoria\"]) : null;\r\n if (Array.isArray(_data[\"ruoli\"])) {\r\n this.ruoli = [] as any;\r\n for (let item of _data[\"ruoli\"])\r\n this.ruoli!.push(RuoloUtente.fromJS(item));\r\n }\r\n else {\r\n this.ruoli = null;\r\n }\r\n this.isIntranet = _data[\"isIntranet\"] !== undefined ? _data[\"isIntranet\"] : null;\r\n this.isDev = _data[\"isDev\"] !== undefined ? _data[\"isDev\"] : null;\r\n this.isProduttore = _data[\"isProduttore\"] !== undefined ? _data[\"isProduttore\"] : null;\r\n this.canBookFlights = _data[\"canBookFlights\"] !== undefined ? _data[\"canBookFlights\"] : null;\r\n this.searchTerms = _data[\"searchTerms\"] !== undefined ? _data[\"searchTerms\"] : null;\r\n if (Array.isArray(_data[\"permessi\"])) {\r\n this.permessi = [] as any;\r\n for (let item of _data[\"permessi\"])\r\n this.permessi!.push(Permesso.fromJS(item));\r\n }\r\n else {\r\n this.permessi = null;\r\n }\r\n if (Array.isArray(_data[\"permessiCodici\"])) {\r\n this.permessiCodici = [] as any;\r\n for (let item of _data[\"permessiCodici\"])\r\n this.permessiCodici!.push(item);\r\n }\r\n else {\r\n this.permessiCodici = null;\r\n }\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n this.team = _data[\"team\"] ? TeamInfo.fromJS(_data[\"team\"]) : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.commissioneWebAgenzia = _data[\"commissioneWebAgenzia\"] !== undefined ? _data[\"commissioneWebAgenzia\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UtenteInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UtenteInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"utente\"] = this.utente ? this.utente.toJSON() : null;\r\n data[\"tipoUtente\"] = this.tipoUtente !== undefined ? this.tipoUtente : null;\r\n data[\"username\"] = this.username !== undefined ? this.username : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"srtContattoAgenzia\"] = this.srtContattoAgenzia !== undefined ? this.srtContattoAgenzia : null;\r\n data[\"contattoUtente\"] = this.contattoUtente ? this.contattoUtente.toJSON() : null;\r\n data[\"contattoAgenzia\"] = this.contattoAgenzia ? this.contattoAgenzia.toJSON() : null;\r\n data[\"categoria\"] = this.categoria ? this.categoria.toJSON() : null;\r\n if (Array.isArray(this.ruoli)) {\r\n data[\"ruoli\"] = [];\r\n for (let item of this.ruoli)\r\n data[\"ruoli\"].push(item.toJSON());\r\n }\r\n data[\"isIntranet\"] = this.isIntranet !== undefined ? this.isIntranet : null;\r\n data[\"isDev\"] = this.isDev !== undefined ? this.isDev : null;\r\n data[\"isProduttore\"] = this.isProduttore !== undefined ? this.isProduttore : null;\r\n data[\"canBookFlights\"] = this.canBookFlights !== undefined ? this.canBookFlights : null;\r\n data[\"searchTerms\"] = this.searchTerms !== undefined ? this.searchTerms : null;\r\n if (Array.isArray(this.permessi)) {\r\n data[\"permessi\"] = [];\r\n for (let item of this.permessi)\r\n data[\"permessi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.permessiCodici)) {\r\n data[\"permessiCodici\"] = [];\r\n for (let item of this.permessiCodici)\r\n data[\"permessiCodici\"].push(item);\r\n }\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n data[\"team\"] = this.team ? this.team.toJSON() : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"commissioneWebAgenzia\"] = this.commissioneWebAgenzia !== undefined ? this.commissioneWebAgenzia : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUtenteInfo {\r\n id?: number;\r\n utente?: Utente;\r\n tipoUtente?: ETipoUtente;\r\n username?: string;\r\n email?: string | null;\r\n nomeVisualizzato?: string;\r\n srtContattoAgenzia?: string | null;\r\n contattoUtente?: ContattoInfo;\r\n contattoAgenzia?: ContattoInfo | null;\r\n categoria?: CategoriaContatto | null;\r\n ruoli?: RuoloUtente[];\r\n isIntranet?: boolean;\r\n isDev?: boolean;\r\n isProduttore?: boolean;\r\n canBookFlights?: boolean;\r\n searchTerms?: string;\r\n permessi?: Permesso[];\r\n permessiCodici?: string[];\r\n uiOptions?: any;\r\n team?: TeamInfo | null;\r\n lingua?: ELingua | null;\r\n commissioneWebAgenzia?: number;\r\n}\r\n\r\nexport class RuoloUtente implements IRuoloUtente {\r\n id?: number;\r\n utenteID?: number;\r\n ruoloID?: number;\r\n\r\n constructor(data?: IRuoloUtente) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.utenteID = _data[\"utenteID\"] !== undefined ? _data[\"utenteID\"] : null;\r\n this.ruoloID = _data[\"ruoloID\"] !== undefined ? _data[\"ruoloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RuoloUtente {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RuoloUtente();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"utenteID\"] = this.utenteID !== undefined ? this.utenteID : null;\r\n data[\"ruoloID\"] = this.ruoloID !== undefined ? this.ruoloID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRuoloUtente {\r\n id?: number;\r\n utenteID?: number;\r\n ruoloID?: number;\r\n}\r\n\r\nexport class Permesso implements IPermesso {\r\n id?: number;\r\n categoriaID?: number;\r\n descrizione!: string;\r\n codice!: string;\r\n\r\n constructor(data?: IPermesso) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.categoriaID = _data[\"categoriaID\"] !== undefined ? _data[\"categoriaID\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Permesso {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Permesso();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"categoriaID\"] = this.categoriaID !== undefined ? this.categoriaID : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPermesso {\r\n id?: number;\r\n categoriaID?: number;\r\n descrizione: string;\r\n codice: string;\r\n}\r\n\r\nexport class TeamInfo implements ITeamInfo {\r\n id?: string;\r\n team?: Team;\r\n\r\n constructor(data?: ITeamInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.team = _data[\"team\"] ? Team.fromJS(_data[\"team\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TeamInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TeamInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"team\"] = this.team ? this.team.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITeamInfo {\r\n id?: string;\r\n team?: Team;\r\n}\r\n\r\nexport class Team implements ITeam {\r\n teamID!: string;\r\n nome!: string;\r\n email?: string | null;\r\n idTeam?: number;\r\n visibilita?: EVisibilitaTeam;\r\n operatore?: EOperatore;\r\n\r\n constructor(data?: ITeam) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.idTeam = _data[\"idTeam\"] !== undefined ? _data[\"idTeam\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Team {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Team();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"idTeam\"] = this.idTeam !== undefined ? this.idTeam : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITeam {\r\n teamID: string;\r\n nome: string;\r\n email?: string | null;\r\n idTeam?: number;\r\n visibilita?: EVisibilitaTeam;\r\n operatore?: EOperatore;\r\n}\r\n\r\nexport class ItinerarioOffertaInfo implements IItinerarioOffertaInfo {\r\n id?: number;\r\n itinerario?: OffertaItinerario;\r\n offerta?: OffertaInfo;\r\n ordine?: number;\r\n dal?: string | null;\r\n al?: string | null;\r\n itinerarioAccessori?: boolean;\r\n luogo?: LuogoInfo;\r\n aeroporto?: Aeroporto | null;\r\n righe?: OffertaDatoInfo[];\r\n servizioCollegato?: ServizioInfo | null;\r\n servizioHotelCollegato?: ServizioInfo | null;\r\n tipologiaCollegata?: ServizioTipologia | null;\r\n itinerariSovrapposti?: ItinerarioOffertaInfo[];\r\n giorniMancantiPrima?: number;\r\n modificabile?: boolean;\r\n eliminabile?: boolean;\r\n haHotel?: boolean;\r\n haHotelTuttiIGiorni?: boolean;\r\n\r\n constructor(data?: IItinerarioOffertaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.itinerario = _data[\"itinerario\"] ? OffertaItinerario.fromJS(_data[\"itinerario\"]) : null;\r\n this.offerta = _data[\"offerta\"] ? OffertaInfo.fromJS(_data[\"offerta\"]) : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.itinerarioAccessori = _data[\"itinerarioAccessori\"] !== undefined ? _data[\"itinerarioAccessori\"] : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n this.aeroporto = _data[\"aeroporto\"] ? Aeroporto.fromJS(_data[\"aeroporto\"]) : null;\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(OffertaDatoInfo.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n this.servizioCollegato = _data[\"servizioCollegato\"] ? ServizioInfo.fromJS(_data[\"servizioCollegato\"]) : null;\r\n this.servizioHotelCollegato = _data[\"servizioHotelCollegato\"] ? ServizioInfo.fromJS(_data[\"servizioHotelCollegato\"]) : null;\r\n this.tipologiaCollegata = _data[\"tipologiaCollegata\"] ? ServizioTipologia.fromJS(_data[\"tipologiaCollegata\"]) : null;\r\n if (Array.isArray(_data[\"itinerariSovrapposti\"])) {\r\n this.itinerariSovrapposti = [] as any;\r\n for (let item of _data[\"itinerariSovrapposti\"])\r\n this.itinerariSovrapposti!.push(ItinerarioOffertaInfo.fromJS(item));\r\n }\r\n else {\r\n this.itinerariSovrapposti = null;\r\n }\r\n this.giorniMancantiPrima = _data[\"giorniMancantiPrima\"] !== undefined ? _data[\"giorniMancantiPrima\"] : null;\r\n this.modificabile = _data[\"modificabile\"] !== undefined ? _data[\"modificabile\"] : null;\r\n this.eliminabile = _data[\"eliminabile\"] !== undefined ? _data[\"eliminabile\"] : null;\r\n this.haHotel = _data[\"haHotel\"] !== undefined ? _data[\"haHotel\"] : null;\r\n this.haHotelTuttiIGiorni = _data[\"haHotelTuttiIGiorni\"] !== undefined ? _data[\"haHotelTuttiIGiorni\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ItinerarioOffertaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ItinerarioOffertaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"itinerarioAccessori\"] = this.itinerarioAccessori !== undefined ? this.itinerarioAccessori : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"aeroporto\"] = this.aeroporto ? this.aeroporto.toJSON() : null;\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n data[\"servizioCollegato\"] = this.servizioCollegato ? this.servizioCollegato.toJSON() : null;\r\n data[\"servizioHotelCollegato\"] = this.servizioHotelCollegato ? this.servizioHotelCollegato.toJSON() : null;\r\n data[\"tipologiaCollegata\"] = this.tipologiaCollegata ? this.tipologiaCollegata.toJSON() : null;\r\n if (Array.isArray(this.itinerariSovrapposti)) {\r\n data[\"itinerariSovrapposti\"] = [];\r\n for (let item of this.itinerariSovrapposti)\r\n data[\"itinerariSovrapposti\"].push(item.toJSON());\r\n }\r\n data[\"giorniMancantiPrima\"] = this.giorniMancantiPrima !== undefined ? this.giorniMancantiPrima : null;\r\n data[\"modificabile\"] = this.modificabile !== undefined ? this.modificabile : null;\r\n data[\"eliminabile\"] = this.eliminabile !== undefined ? this.eliminabile : null;\r\n data[\"haHotel\"] = this.haHotel !== undefined ? this.haHotel : null;\r\n data[\"haHotelTuttiIGiorni\"] = this.haHotelTuttiIGiorni !== undefined ? this.haHotelTuttiIGiorni : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IItinerarioOffertaInfo {\r\n id?: number;\r\n itinerario?: OffertaItinerario;\r\n offerta?: OffertaInfo;\r\n ordine?: number;\r\n dal?: string | null;\r\n al?: string | null;\r\n itinerarioAccessori?: boolean;\r\n luogo?: LuogoInfo;\r\n aeroporto?: Aeroporto | null;\r\n righe?: OffertaDatoInfo[];\r\n servizioCollegato?: ServizioInfo | null;\r\n servizioHotelCollegato?: ServizioInfo | null;\r\n tipologiaCollegata?: ServizioTipologia | null;\r\n itinerariSovrapposti?: ItinerarioOffertaInfo[];\r\n giorniMancantiPrima?: number;\r\n modificabile?: boolean;\r\n eliminabile?: boolean;\r\n haHotel?: boolean;\r\n haHotelTuttiIGiorni?: boolean;\r\n}\r\n\r\nexport class OffertaDatoInfo implements IOffertaDatoInfo {\r\n id?: number;\r\n rigaParentID?: number | null;\r\n offertaDato?: OffertaDato | null;\r\n stato?: OffertaDatoStato | null;\r\n offerta?: OffertaInfo | null;\r\n totaleCommissione?: number;\r\n inviiAssicurazioneFilodiretto?: InvioAssicurazioneFiloDiretto[] | null;\r\n inviiAssicurazione?: InvioAssicurazione[] | null;\r\n tipoRiga?: ETipoRiga;\r\n statoUtente?: EStatoServizioUtente;\r\n disponibilita?: EStatoDisponibilita;\r\n disponibilitaPrecedente?: EStatoDisponibilita;\r\n servizioIdUnivoco?: string | null;\r\n pagamentoAnticipato?: boolean;\r\n score?: number;\r\n datiDocumento?: DatiDocumentoRiga | null;\r\n datiConferma?: DatiConfermaRiga | null;\r\n regolaAnticipoFornitore?: ServizioAnticipoFornitoreInfo | null;\r\n anticipoFornitore?: AnticipoFornitore | null;\r\n prezziDisponibilitaVariati?: boolean;\r\n dettagli?: OffertaDatoDettaglio[] | null;\r\n servizioNonMappato?: boolean;\r\n righeSupplemento?: OffertaDatoInfo[] | null;\r\n noteAssociate?: OffertaNotaInfo[] | null;\r\n notaPenaleFornitore?: OffertaNotaInfo | null;\r\n notaPenaleCustom?: OffertaNotaInfo | null;\r\n accordo?: AccordoInfo | null;\r\n contattoServizioAggregato?: ContattoInfo | null;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioniInfo | null;\r\n valuta?: ValutaInfo | null;\r\n servizio?: ServizioInfo | null;\r\n tipologia?: ServizioTipologia | null;\r\n tipologiaInfo?: ServizioTipologiaInfo | null;\r\n cliente?: ClienteInfo | null;\r\n costo?: Costo | null;\r\n prezzoIndicativo?: boolean;\r\n tipoPenale?: PenaleInfo | null;\r\n penale?: PenaleServizio | null;\r\n articoloPenale?: ArticoloInfo | null;\r\n codicePrenotazione?: string | null;\r\n sistemazione?: SistemazioneInfo | null;\r\n trattamento?: TrattamentoInfo | null;\r\n nomeServizioVoucher?: string | null;\r\n nomeSistemazioneVoucher?: string | null;\r\n nomeCameraVoucher?: string | null;\r\n ordineServizio?: number;\r\n hhCodiceID?: number | null;\r\n hashcode?: string | null;\r\n tipologiaH2H?: HHCodice | null;\r\n servizioH2H?: HHServizioAggregato | null;\r\n codiceServizioH2H?: string | null;\r\n codiceTipologiaH2H?: string | null;\r\n outputCustomData?: string | null;\r\n isVolo?: boolean;\r\n isVoloIP?: boolean;\r\n isVoloTO?: boolean;\r\n isSupplemento?: boolean;\r\n isRinunciaPeaceOfMind?: boolean;\r\n isPeaceOfMind?: boolean;\r\n itinerario?: ItinerarioOffertaInfo | null;\r\n itinerarioTour?: ServizioItinerarioInfo | null;\r\n luogoInizio?: LuogoInfo | null;\r\n luogoFine?: LuogoInfo | null;\r\n abbinamento?: AbbinamentoInfo | null;\r\n data?: string;\r\n dataCheckout?: string | null;\r\n notti?: number | null;\r\n prezzoPrecedente?: number;\r\n prezzoTotale?: number;\r\n prezzoTotaleNetto?: number;\r\n costoTotale?: number;\r\n costoTotaleEuro?: number;\r\n costoTotaleNetto?: number;\r\n tipoAcconto?: ETipoAcconto;\r\n tipoImportoAcconto?: ETipoImportoAcconto | null;\r\n dataAcconto?: string | null;\r\n totaleDaAnticipare?: number;\r\n marginePercentuale?: number;\r\n commissionePercentuale?: number;\r\n nettoIva?: boolean;\r\n nonVisibileADV?: boolean;\r\n totaleCommissioneTO?: number;\r\n\r\n constructor(data?: IOffertaDatoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.rigaParentID = _data[\"rigaParentID\"] !== undefined ? _data[\"rigaParentID\"] : null;\r\n this.offertaDato = _data[\"offertaDato\"] ? OffertaDato.fromJS(_data[\"offertaDato\"]) : null;\r\n this.stato = _data[\"stato\"] ? OffertaDatoStato.fromJS(_data[\"stato\"]) : null;\r\n this.offerta = _data[\"offerta\"] ? OffertaInfo.fromJS(_data[\"offerta\"]) : null;\r\n this.totaleCommissione = _data[\"totaleCommissione\"] !== undefined ? _data[\"totaleCommissione\"] : null;\r\n if (Array.isArray(_data[\"inviiAssicurazioneFilodiretto\"])) {\r\n this.inviiAssicurazioneFilodiretto = [] as any;\r\n for (let item of _data[\"inviiAssicurazioneFilodiretto\"])\r\n this.inviiAssicurazioneFilodiretto!.push(InvioAssicurazioneFiloDiretto.fromJS(item));\r\n }\r\n else {\r\n this.inviiAssicurazioneFilodiretto = null;\r\n }\r\n if (Array.isArray(_data[\"inviiAssicurazione\"])) {\r\n this.inviiAssicurazione = [] as any;\r\n for (let item of _data[\"inviiAssicurazione\"])\r\n this.inviiAssicurazione!.push(InvioAssicurazione.fromJS(item));\r\n }\r\n else {\r\n this.inviiAssicurazione = null;\r\n }\r\n this.tipoRiga = _data[\"tipoRiga\"] !== undefined ? _data[\"tipoRiga\"] : null;\r\n this.statoUtente = _data[\"statoUtente\"] !== undefined ? _data[\"statoUtente\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.disponibilitaPrecedente = _data[\"disponibilitaPrecedente\"] !== undefined ? _data[\"disponibilitaPrecedente\"] : null;\r\n this.servizioIdUnivoco = _data[\"servizioIdUnivoco\"] !== undefined ? _data[\"servizioIdUnivoco\"] : null;\r\n this.pagamentoAnticipato = _data[\"pagamentoAnticipato\"] !== undefined ? _data[\"pagamentoAnticipato\"] : null;\r\n this.score = _data[\"score\"] !== undefined ? _data[\"score\"] : null;\r\n this.datiDocumento = _data[\"datiDocumento\"] ? DatiDocumentoRiga.fromJS(_data[\"datiDocumento\"]) : null;\r\n this.datiConferma = _data[\"datiConferma\"] ? DatiConfermaRiga.fromJS(_data[\"datiConferma\"]) : null;\r\n this.regolaAnticipoFornitore = _data[\"regolaAnticipoFornitore\"] ? ServizioAnticipoFornitoreInfo.fromJS(_data[\"regolaAnticipoFornitore\"]) : null;\r\n this.anticipoFornitore = _data[\"anticipoFornitore\"] ? AnticipoFornitore.fromJS(_data[\"anticipoFornitore\"]) : null;\r\n this.prezziDisponibilitaVariati = _data[\"prezziDisponibilitaVariati\"] !== undefined ? _data[\"prezziDisponibilitaVariati\"] : null;\r\n if (Array.isArray(_data[\"dettagli\"])) {\r\n this.dettagli = [] as any;\r\n for (let item of _data[\"dettagli\"])\r\n this.dettagli!.push(OffertaDatoDettaglio.fromJS(item));\r\n }\r\n else {\r\n this.dettagli = null;\r\n }\r\n this.servizioNonMappato = _data[\"servizioNonMappato\"] !== undefined ? _data[\"servizioNonMappato\"] : null;\r\n if (Array.isArray(_data[\"righeSupplemento\"])) {\r\n this.righeSupplemento = [] as any;\r\n for (let item of _data[\"righeSupplemento\"])\r\n this.righeSupplemento!.push(OffertaDatoInfo.fromJS(item));\r\n }\r\n else {\r\n this.righeSupplemento = null;\r\n }\r\n if (Array.isArray(_data[\"noteAssociate\"])) {\r\n this.noteAssociate = [] as any;\r\n for (let item of _data[\"noteAssociate\"])\r\n this.noteAssociate!.push(OffertaNotaInfo.fromJS(item));\r\n }\r\n else {\r\n this.noteAssociate = null;\r\n }\r\n this.notaPenaleFornitore = _data[\"notaPenaleFornitore\"] ? OffertaNotaInfo.fromJS(_data[\"notaPenaleFornitore\"]) : null;\r\n this.notaPenaleCustom = _data[\"notaPenaleCustom\"] ? OffertaNotaInfo.fromJS(_data[\"notaPenaleCustom\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n this.contattoServizioAggregato = _data[\"contattoServizioAggregato\"] ? ContattoInfo.fromJS(_data[\"contattoServizioAggregato\"]) : null;\r\n this.tabellaCostiCommissioni = _data[\"tabellaCostiCommissioni\"] ? TabellaCostiCommissioniInfo.fromJS(_data[\"tabellaCostiCommissioni\"]) : null;\r\n this.valuta = _data[\"valuta\"] ? ValutaInfo.fromJS(_data[\"valuta\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologia.fromJS(_data[\"tipologia\"]) : null;\r\n this.tipologiaInfo = _data[\"tipologiaInfo\"] ? ServizioTipologiaInfo.fromJS(_data[\"tipologiaInfo\"]) : null;\r\n this.cliente = _data[\"cliente\"] ? ClienteInfo.fromJS(_data[\"cliente\"]) : null;\r\n this.costo = _data[\"costo\"] ? Costo.fromJS(_data[\"costo\"]) : null;\r\n this.prezzoIndicativo = _data[\"prezzoIndicativo\"] !== undefined ? _data[\"prezzoIndicativo\"] : null;\r\n this.tipoPenale = _data[\"tipoPenale\"] ? PenaleInfo.fromJS(_data[\"tipoPenale\"]) : null;\r\n this.penale = _data[\"penale\"] ? PenaleServizio.fromJS(_data[\"penale\"]) : null;\r\n this.articoloPenale = _data[\"articoloPenale\"] ? ArticoloInfo.fromJS(_data[\"articoloPenale\"]) : null;\r\n this.codicePrenotazione = _data[\"codicePrenotazione\"] !== undefined ? _data[\"codicePrenotazione\"] : null;\r\n this.sistemazione = _data[\"sistemazione\"] ? SistemazioneInfo.fromJS(_data[\"sistemazione\"]) : null;\r\n this.trattamento = _data[\"trattamento\"] ? TrattamentoInfo.fromJS(_data[\"trattamento\"]) : null;\r\n this.nomeServizioVoucher = _data[\"nomeServizioVoucher\"] !== undefined ? _data[\"nomeServizioVoucher\"] : null;\r\n this.nomeSistemazioneVoucher = _data[\"nomeSistemazioneVoucher\"] !== undefined ? _data[\"nomeSistemazioneVoucher\"] : null;\r\n this.nomeCameraVoucher = _data[\"nomeCameraVoucher\"] !== undefined ? _data[\"nomeCameraVoucher\"] : null;\r\n this.ordineServizio = _data[\"ordineServizio\"] !== undefined ? _data[\"ordineServizio\"] : null;\r\n this.hhCodiceID = _data[\"hhCodiceID\"] !== undefined ? _data[\"hhCodiceID\"] : null;\r\n this.hashcode = _data[\"hashcode\"] !== undefined ? _data[\"hashcode\"] : null;\r\n this.tipologiaH2H = _data[\"tipologiaH2H\"] ? HHCodice.fromJS(_data[\"tipologiaH2H\"]) : null;\r\n this.servizioH2H = _data[\"servizioH2H\"] ? HHServizioAggregato.fromJS(_data[\"servizioH2H\"]) : null;\r\n this.codiceServizioH2H = _data[\"codiceServizioH2H\"] !== undefined ? _data[\"codiceServizioH2H\"] : null;\r\n this.codiceTipologiaH2H = _data[\"codiceTipologiaH2H\"] !== undefined ? _data[\"codiceTipologiaH2H\"] : null;\r\n this.outputCustomData = _data[\"outputCustomData\"] !== undefined ? _data[\"outputCustomData\"] : null;\r\n this.isVolo = _data[\"isVolo\"] !== undefined ? _data[\"isVolo\"] : null;\r\n this.isVoloIP = _data[\"isVoloIP\"] !== undefined ? _data[\"isVoloIP\"] : null;\r\n this.isVoloTO = _data[\"isVoloTO\"] !== undefined ? _data[\"isVoloTO\"] : null;\r\n this.isSupplemento = _data[\"isSupplemento\"] !== undefined ? _data[\"isSupplemento\"] : null;\r\n this.isRinunciaPeaceOfMind = _data[\"isRinunciaPeaceOfMind\"] !== undefined ? _data[\"isRinunciaPeaceOfMind\"] : null;\r\n this.isPeaceOfMind = _data[\"isPeaceOfMind\"] !== undefined ? _data[\"isPeaceOfMind\"] : null;\r\n this.itinerario = _data[\"itinerario\"] ? ItinerarioOffertaInfo.fromJS(_data[\"itinerario\"]) : null;\r\n this.itinerarioTour = _data[\"itinerarioTour\"] ? ServizioItinerarioInfo.fromJS(_data[\"itinerarioTour\"]) : null;\r\n this.luogoInizio = _data[\"luogoInizio\"] ? LuogoInfo.fromJS(_data[\"luogoInizio\"]) : null;\r\n this.luogoFine = _data[\"luogoFine\"] ? LuogoInfo.fromJS(_data[\"luogoFine\"]) : null;\r\n this.abbinamento = _data[\"abbinamento\"] ? AbbinamentoInfo.fromJS(_data[\"abbinamento\"]) : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.dataCheckout = _data[\"dataCheckout\"] !== undefined ? _data[\"dataCheckout\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.prezzoPrecedente = _data[\"prezzoPrecedente\"] !== undefined ? _data[\"prezzoPrecedente\"] : null;\r\n this.prezzoTotale = _data[\"prezzoTotale\"] !== undefined ? _data[\"prezzoTotale\"] : null;\r\n this.prezzoTotaleNetto = _data[\"prezzoTotaleNetto\"] !== undefined ? _data[\"prezzoTotaleNetto\"] : null;\r\n this.costoTotale = _data[\"costoTotale\"] !== undefined ? _data[\"costoTotale\"] : null;\r\n this.costoTotaleEuro = _data[\"costoTotaleEuro\"] !== undefined ? _data[\"costoTotaleEuro\"] : null;\r\n this.costoTotaleNetto = _data[\"costoTotaleNetto\"] !== undefined ? _data[\"costoTotaleNetto\"] : null;\r\n this.tipoAcconto = _data[\"tipoAcconto\"] !== undefined ? _data[\"tipoAcconto\"] : null;\r\n this.tipoImportoAcconto = _data[\"tipoImportoAcconto\"] !== undefined ? _data[\"tipoImportoAcconto\"] : null;\r\n this.dataAcconto = _data[\"dataAcconto\"] !== undefined ? _data[\"dataAcconto\"] : null;\r\n this.totaleDaAnticipare = _data[\"totaleDaAnticipare\"] !== undefined ? _data[\"totaleDaAnticipare\"] : null;\r\n this.marginePercentuale = _data[\"marginePercentuale\"] !== undefined ? _data[\"marginePercentuale\"] : null;\r\n this.commissionePercentuale = _data[\"commissionePercentuale\"] !== undefined ? _data[\"commissionePercentuale\"] : null;\r\n this.nettoIva = _data[\"nettoIva\"] !== undefined ? _data[\"nettoIva\"] : null;\r\n this.nonVisibileADV = _data[\"nonVisibileADV\"] !== undefined ? _data[\"nonVisibileADV\"] : null;\r\n this.totaleCommissioneTO = _data[\"totaleCommissioneTO\"] !== undefined ? _data[\"totaleCommissioneTO\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaDatoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaDatoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"rigaParentID\"] = this.rigaParentID !== undefined ? this.rigaParentID : null;\r\n data[\"offertaDato\"] = this.offertaDato ? this.offertaDato.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"totaleCommissione\"] = this.totaleCommissione !== undefined ? this.totaleCommissione : null;\r\n if (Array.isArray(this.inviiAssicurazioneFilodiretto)) {\r\n data[\"inviiAssicurazioneFilodiretto\"] = [];\r\n for (let item of this.inviiAssicurazioneFilodiretto)\r\n data[\"inviiAssicurazioneFilodiretto\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.inviiAssicurazione)) {\r\n data[\"inviiAssicurazione\"] = [];\r\n for (let item of this.inviiAssicurazione)\r\n data[\"inviiAssicurazione\"].push(item.toJSON());\r\n }\r\n data[\"tipoRiga\"] = this.tipoRiga !== undefined ? this.tipoRiga : null;\r\n data[\"statoUtente\"] = this.statoUtente !== undefined ? this.statoUtente : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"disponibilitaPrecedente\"] = this.disponibilitaPrecedente !== undefined ? this.disponibilitaPrecedente : null;\r\n data[\"servizioIdUnivoco\"] = this.servizioIdUnivoco !== undefined ? this.servizioIdUnivoco : null;\r\n data[\"pagamentoAnticipato\"] = this.pagamentoAnticipato !== undefined ? this.pagamentoAnticipato : null;\r\n data[\"score\"] = this.score !== undefined ? this.score : null;\r\n data[\"datiDocumento\"] = this.datiDocumento ? this.datiDocumento.toJSON() : null;\r\n data[\"datiConferma\"] = this.datiConferma ? this.datiConferma.toJSON() : null;\r\n data[\"regolaAnticipoFornitore\"] = this.regolaAnticipoFornitore ? this.regolaAnticipoFornitore.toJSON() : null;\r\n data[\"anticipoFornitore\"] = this.anticipoFornitore ? this.anticipoFornitore.toJSON() : null;\r\n data[\"prezziDisponibilitaVariati\"] = this.prezziDisponibilitaVariati !== undefined ? this.prezziDisponibilitaVariati : null;\r\n if (Array.isArray(this.dettagli)) {\r\n data[\"dettagli\"] = [];\r\n for (let item of this.dettagli)\r\n data[\"dettagli\"].push(item.toJSON());\r\n }\r\n data[\"servizioNonMappato\"] = this.servizioNonMappato !== undefined ? this.servizioNonMappato : null;\r\n if (Array.isArray(this.righeSupplemento)) {\r\n data[\"righeSupplemento\"] = [];\r\n for (let item of this.righeSupplemento)\r\n data[\"righeSupplemento\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.noteAssociate)) {\r\n data[\"noteAssociate\"] = [];\r\n for (let item of this.noteAssociate)\r\n data[\"noteAssociate\"].push(item.toJSON());\r\n }\r\n data[\"notaPenaleFornitore\"] = this.notaPenaleFornitore ? this.notaPenaleFornitore.toJSON() : null;\r\n data[\"notaPenaleCustom\"] = this.notaPenaleCustom ? this.notaPenaleCustom.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"contattoServizioAggregato\"] = this.contattoServizioAggregato ? this.contattoServizioAggregato.toJSON() : null;\r\n data[\"tabellaCostiCommissioni\"] = this.tabellaCostiCommissioni ? this.tabellaCostiCommissioni.toJSON() : null;\r\n data[\"valuta\"] = this.valuta ? this.valuta.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n data[\"tipologiaInfo\"] = this.tipologiaInfo ? this.tipologiaInfo.toJSON() : null;\r\n data[\"cliente\"] = this.cliente ? this.cliente.toJSON() : null;\r\n data[\"costo\"] = this.costo ? this.costo.toJSON() : null;\r\n data[\"prezzoIndicativo\"] = this.prezzoIndicativo !== undefined ? this.prezzoIndicativo : null;\r\n data[\"tipoPenale\"] = this.tipoPenale ? this.tipoPenale.toJSON() : null;\r\n data[\"penale\"] = this.penale ? this.penale.toJSON() : null;\r\n data[\"articoloPenale\"] = this.articoloPenale ? this.articoloPenale.toJSON() : null;\r\n data[\"codicePrenotazione\"] = this.codicePrenotazione !== undefined ? this.codicePrenotazione : null;\r\n data[\"sistemazione\"] = this.sistemazione ? this.sistemazione.toJSON() : null;\r\n data[\"trattamento\"] = this.trattamento ? this.trattamento.toJSON() : null;\r\n data[\"nomeServizioVoucher\"] = this.nomeServizioVoucher !== undefined ? this.nomeServizioVoucher : null;\r\n data[\"nomeSistemazioneVoucher\"] = this.nomeSistemazioneVoucher !== undefined ? this.nomeSistemazioneVoucher : null;\r\n data[\"nomeCameraVoucher\"] = this.nomeCameraVoucher !== undefined ? this.nomeCameraVoucher : null;\r\n data[\"ordineServizio\"] = this.ordineServizio !== undefined ? this.ordineServizio : null;\r\n data[\"hhCodiceID\"] = this.hhCodiceID !== undefined ? this.hhCodiceID : null;\r\n data[\"hashcode\"] = this.hashcode !== undefined ? this.hashcode : null;\r\n data[\"tipologiaH2H\"] = this.tipologiaH2H ? this.tipologiaH2H.toJSON() : null;\r\n data[\"servizioH2H\"] = this.servizioH2H ? this.servizioH2H.toJSON() : null;\r\n data[\"codiceServizioH2H\"] = this.codiceServizioH2H !== undefined ? this.codiceServizioH2H : null;\r\n data[\"codiceTipologiaH2H\"] = this.codiceTipologiaH2H !== undefined ? this.codiceTipologiaH2H : null;\r\n data[\"outputCustomData\"] = this.outputCustomData !== undefined ? this.outputCustomData : null;\r\n data[\"isVolo\"] = this.isVolo !== undefined ? this.isVolo : null;\r\n data[\"isVoloIP\"] = this.isVoloIP !== undefined ? this.isVoloIP : null;\r\n data[\"isVoloTO\"] = this.isVoloTO !== undefined ? this.isVoloTO : null;\r\n data[\"isSupplemento\"] = this.isSupplemento !== undefined ? this.isSupplemento : null;\r\n data[\"isRinunciaPeaceOfMind\"] = this.isRinunciaPeaceOfMind !== undefined ? this.isRinunciaPeaceOfMind : null;\r\n data[\"isPeaceOfMind\"] = this.isPeaceOfMind !== undefined ? this.isPeaceOfMind : null;\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n data[\"itinerarioTour\"] = this.itinerarioTour ? this.itinerarioTour.toJSON() : null;\r\n data[\"luogoInizio\"] = this.luogoInizio ? this.luogoInizio.toJSON() : null;\r\n data[\"luogoFine\"] = this.luogoFine ? this.luogoFine.toJSON() : null;\r\n data[\"abbinamento\"] = this.abbinamento ? this.abbinamento.toJSON() : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"dataCheckout\"] = this.dataCheckout !== undefined ? this.dataCheckout : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"prezzoPrecedente\"] = this.prezzoPrecedente !== undefined ? this.prezzoPrecedente : null;\r\n data[\"prezzoTotale\"] = this.prezzoTotale !== undefined ? this.prezzoTotale : null;\r\n data[\"prezzoTotaleNetto\"] = this.prezzoTotaleNetto !== undefined ? this.prezzoTotaleNetto : null;\r\n data[\"costoTotale\"] = this.costoTotale !== undefined ? this.costoTotale : null;\r\n data[\"costoTotaleEuro\"] = this.costoTotaleEuro !== undefined ? this.costoTotaleEuro : null;\r\n data[\"costoTotaleNetto\"] = this.costoTotaleNetto !== undefined ? this.costoTotaleNetto : null;\r\n data[\"tipoAcconto\"] = this.tipoAcconto !== undefined ? this.tipoAcconto : null;\r\n data[\"tipoImportoAcconto\"] = this.tipoImportoAcconto !== undefined ? this.tipoImportoAcconto : null;\r\n data[\"dataAcconto\"] = this.dataAcconto !== undefined ? this.dataAcconto : null;\r\n data[\"totaleDaAnticipare\"] = this.totaleDaAnticipare !== undefined ? this.totaleDaAnticipare : null;\r\n data[\"marginePercentuale\"] = this.marginePercentuale !== undefined ? this.marginePercentuale : null;\r\n data[\"commissionePercentuale\"] = this.commissionePercentuale !== undefined ? this.commissionePercentuale : null;\r\n data[\"nettoIva\"] = this.nettoIva !== undefined ? this.nettoIva : null;\r\n data[\"nonVisibileADV\"] = this.nonVisibileADV !== undefined ? this.nonVisibileADV : null;\r\n data[\"totaleCommissioneTO\"] = this.totaleCommissioneTO !== undefined ? this.totaleCommissioneTO : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaDatoInfo {\r\n id?: number;\r\n rigaParentID?: number | null;\r\n offertaDato?: OffertaDato | null;\r\n stato?: OffertaDatoStato | null;\r\n offerta?: OffertaInfo | null;\r\n totaleCommissione?: number;\r\n inviiAssicurazioneFilodiretto?: InvioAssicurazioneFiloDiretto[] | null;\r\n inviiAssicurazione?: InvioAssicurazione[] | null;\r\n tipoRiga?: ETipoRiga;\r\n statoUtente?: EStatoServizioUtente;\r\n disponibilita?: EStatoDisponibilita;\r\n disponibilitaPrecedente?: EStatoDisponibilita;\r\n servizioIdUnivoco?: string | null;\r\n pagamentoAnticipato?: boolean;\r\n score?: number;\r\n datiDocumento?: DatiDocumentoRiga | null;\r\n datiConferma?: DatiConfermaRiga | null;\r\n regolaAnticipoFornitore?: ServizioAnticipoFornitoreInfo | null;\r\n anticipoFornitore?: AnticipoFornitore | null;\r\n prezziDisponibilitaVariati?: boolean;\r\n dettagli?: OffertaDatoDettaglio[] | null;\r\n servizioNonMappato?: boolean;\r\n righeSupplemento?: OffertaDatoInfo[] | null;\r\n noteAssociate?: OffertaNotaInfo[] | null;\r\n notaPenaleFornitore?: OffertaNotaInfo | null;\r\n notaPenaleCustom?: OffertaNotaInfo | null;\r\n accordo?: AccordoInfo | null;\r\n contattoServizioAggregato?: ContattoInfo | null;\r\n tabellaCostiCommissioni?: TabellaCostiCommissioniInfo | null;\r\n valuta?: ValutaInfo | null;\r\n servizio?: ServizioInfo | null;\r\n tipologia?: ServizioTipologia | null;\r\n tipologiaInfo?: ServizioTipologiaInfo | null;\r\n cliente?: ClienteInfo | null;\r\n costo?: Costo | null;\r\n prezzoIndicativo?: boolean;\r\n tipoPenale?: PenaleInfo | null;\r\n penale?: PenaleServizio | null;\r\n articoloPenale?: ArticoloInfo | null;\r\n codicePrenotazione?: string | null;\r\n sistemazione?: SistemazioneInfo | null;\r\n trattamento?: TrattamentoInfo | null;\r\n nomeServizioVoucher?: string | null;\r\n nomeSistemazioneVoucher?: string | null;\r\n nomeCameraVoucher?: string | null;\r\n ordineServizio?: number;\r\n hhCodiceID?: number | null;\r\n hashcode?: string | null;\r\n tipologiaH2H?: HHCodice | null;\r\n servizioH2H?: HHServizioAggregato | null;\r\n codiceServizioH2H?: string | null;\r\n codiceTipologiaH2H?: string | null;\r\n outputCustomData?: string | null;\r\n isVolo?: boolean;\r\n isVoloIP?: boolean;\r\n isVoloTO?: boolean;\r\n isSupplemento?: boolean;\r\n isRinunciaPeaceOfMind?: boolean;\r\n isPeaceOfMind?: boolean;\r\n itinerario?: ItinerarioOffertaInfo | null;\r\n itinerarioTour?: ServizioItinerarioInfo | null;\r\n luogoInizio?: LuogoInfo | null;\r\n luogoFine?: LuogoInfo | null;\r\n abbinamento?: AbbinamentoInfo | null;\r\n data?: string;\r\n dataCheckout?: string | null;\r\n notti?: number | null;\r\n prezzoPrecedente?: number;\r\n prezzoTotale?: number;\r\n prezzoTotaleNetto?: number;\r\n costoTotale?: number;\r\n costoTotaleEuro?: number;\r\n costoTotaleNetto?: number;\r\n tipoAcconto?: ETipoAcconto;\r\n tipoImportoAcconto?: ETipoImportoAcconto | null;\r\n dataAcconto?: string | null;\r\n totaleDaAnticipare?: number;\r\n marginePercentuale?: number;\r\n commissionePercentuale?: number;\r\n nettoIva?: boolean;\r\n nonVisibileADV?: boolean;\r\n totaleCommissioneTO?: number;\r\n}\r\n\r\nexport class ServizioAnticipoFornitoreInfo implements IServizioAnticipoFornitoreInfo {\r\n id?: number;\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitore;\r\n srtNome?: string;\r\n accordo?: AccordoInfo | null;\r\n srtAccordo?: string | null;\r\n servizio?: ServizioInfo | null;\r\n srtServizio_it?: string | null;\r\n srtServizio_en?: string | null;\r\n srtServizio_fr?: string | null;\r\n srtServizio_de?: string | null;\r\n luogo?: LuogoInfo | null;\r\n srtLuogo_it?: string | null;\r\n srtLuogo_en?: string | null;\r\n srtLuogo_fr?: string | null;\r\n srtLuogo_de?: string | null;\r\n terms?: string;\r\n\r\n constructor(data?: IServizioAnticipoFornitoreInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioAnticipoFornitore = _data[\"servizioAnticipoFornitore\"] ? ServizioAnticipoFornitore.fromJS(_data[\"servizioAnticipoFornitore\"]) : null;\r\n this.srtNome = _data[\"srtNome\"] !== undefined ? _data[\"srtNome\"] : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n this.srtAccordo = _data[\"srtAccordo\"] !== undefined ? _data[\"srtAccordo\"] : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n this.srtServizio_it = _data[\"srtServizio_it\"] !== undefined ? _data[\"srtServizio_it\"] : null;\r\n this.srtServizio_en = _data[\"srtServizio_en\"] !== undefined ? _data[\"srtServizio_en\"] : null;\r\n this.srtServizio_fr = _data[\"srtServizio_fr\"] !== undefined ? _data[\"srtServizio_fr\"] : null;\r\n this.srtServizio_de = _data[\"srtServizio_de\"] !== undefined ? _data[\"srtServizio_de\"] : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n this.srtLuogo_it = _data[\"srtLuogo_it\"] !== undefined ? _data[\"srtLuogo_it\"] : null;\r\n this.srtLuogo_en = _data[\"srtLuogo_en\"] !== undefined ? _data[\"srtLuogo_en\"] : null;\r\n this.srtLuogo_fr = _data[\"srtLuogo_fr\"] !== undefined ? _data[\"srtLuogo_fr\"] : null;\r\n this.srtLuogo_de = _data[\"srtLuogo_de\"] !== undefined ? _data[\"srtLuogo_de\"] : null;\r\n this.terms = _data[\"terms\"] !== undefined ? _data[\"terms\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAnticipoFornitoreInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAnticipoFornitoreInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioAnticipoFornitore\"] = this.servizioAnticipoFornitore ? this.servizioAnticipoFornitore.toJSON() : null;\r\n data[\"srtNome\"] = this.srtNome !== undefined ? this.srtNome : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"srtAccordo\"] = this.srtAccordo !== undefined ? this.srtAccordo : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"srtServizio_it\"] = this.srtServizio_it !== undefined ? this.srtServizio_it : null;\r\n data[\"srtServizio_en\"] = this.srtServizio_en !== undefined ? this.srtServizio_en : null;\r\n data[\"srtServizio_fr\"] = this.srtServizio_fr !== undefined ? this.srtServizio_fr : null;\r\n data[\"srtServizio_de\"] = this.srtServizio_de !== undefined ? this.srtServizio_de : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"srtLuogo_it\"] = this.srtLuogo_it !== undefined ? this.srtLuogo_it : null;\r\n data[\"srtLuogo_en\"] = this.srtLuogo_en !== undefined ? this.srtLuogo_en : null;\r\n data[\"srtLuogo_fr\"] = this.srtLuogo_fr !== undefined ? this.srtLuogo_fr : null;\r\n data[\"srtLuogo_de\"] = this.srtLuogo_de !== undefined ? this.srtLuogo_de : null;\r\n data[\"terms\"] = this.terms !== undefined ? this.terms : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAnticipoFornitoreInfo {\r\n id?: number;\r\n servizioAnticipoFornitore?: ServizioAnticipoFornitore;\r\n srtNome?: string;\r\n accordo?: AccordoInfo | null;\r\n srtAccordo?: string | null;\r\n servizio?: ServizioInfo | null;\r\n srtServizio_it?: string | null;\r\n srtServizio_en?: string | null;\r\n srtServizio_fr?: string | null;\r\n srtServizio_de?: string | null;\r\n luogo?: LuogoInfo | null;\r\n srtLuogo_it?: string | null;\r\n srtLuogo_en?: string | null;\r\n srtLuogo_fr?: string | null;\r\n srtLuogo_de?: string | null;\r\n terms?: string;\r\n}\r\n\r\nexport class OffertaNotaInfo implements IOffertaNotaInfo {\r\n id?: number;\r\n nota?: OffertaNota | null;\r\n utente?: UtenteInfo | null;\r\n utentePresaInCarico?: UtenteInfo | null;\r\n accordo?: AccordoInfo | null;\r\n testoSemplice?: string | null;\r\n\r\n constructor(data?: IOffertaNotaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nota = _data[\"nota\"] ? OffertaNota.fromJS(_data[\"nota\"]) : null;\r\n this.utente = _data[\"utente\"] ? UtenteInfo.fromJS(_data[\"utente\"]) : null;\r\n this.utentePresaInCarico = _data[\"utentePresaInCarico\"] ? UtenteInfo.fromJS(_data[\"utentePresaInCarico\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n this.testoSemplice = _data[\"testoSemplice\"] !== undefined ? _data[\"testoSemplice\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaNotaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaNotaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nota\"] = this.nota ? this.nota.toJSON() : null;\r\n data[\"utente\"] = this.utente ? this.utente.toJSON() : null;\r\n data[\"utentePresaInCarico\"] = this.utentePresaInCarico ? this.utentePresaInCarico.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"testoSemplice\"] = this.testoSemplice !== undefined ? this.testoSemplice : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaNotaInfo {\r\n id?: number;\r\n nota?: OffertaNota | null;\r\n utente?: UtenteInfo | null;\r\n utentePresaInCarico?: UtenteInfo | null;\r\n accordo?: AccordoInfo | null;\r\n testoSemplice?: string | null;\r\n}\r\n\r\nexport abstract class PenaleInfo implements IPenaleInfo {\r\n penale?: Penale;\r\n\r\n constructor(data?: IPenaleInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.penale = _data[\"penale\"] ? Penale.fromJS(_data[\"penale\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PenaleInfo {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'PenaleInfo' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"penale\"] = this.penale ? this.penale.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPenaleInfo {\r\n penale?: Penale;\r\n}\r\n\r\nexport class Penale implements IPenale {\r\n id?: number;\r\n nome!: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n giorni?: number | null;\r\n valore?: number | null;\r\n\r\n constructor(data?: IPenale) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Penale {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Penale();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPenale {\r\n id?: number;\r\n nome: string;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n giorni?: number | null;\r\n valore?: number | null;\r\n}\r\n\r\nexport class ItinerarioVoloInfo implements IItinerarioVoloInfo {\r\n offerta?: OffertaInfo | null;\r\n tappaFrom?: ItinerarioOffertaInfo | null;\r\n tappaTo?: ItinerarioOffertaInfo | null;\r\n aeroportoPartenza?: Aeroporto | null;\r\n aeroportoArrivo?: Aeroporto | null;\r\n dataVolo?: string;\r\n carrier?: string | null;\r\n\r\n constructor(data?: IItinerarioVoloInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offerta = _data[\"offerta\"] ? OffertaInfo.fromJS(_data[\"offerta\"]) : null;\r\n this.tappaFrom = _data[\"tappaFrom\"] ? ItinerarioOffertaInfo.fromJS(_data[\"tappaFrom\"]) : null;\r\n this.tappaTo = _data[\"tappaTo\"] ? ItinerarioOffertaInfo.fromJS(_data[\"tappaTo\"]) : null;\r\n this.aeroportoPartenza = _data[\"aeroportoPartenza\"] ? Aeroporto.fromJS(_data[\"aeroportoPartenza\"]) : null;\r\n this.aeroportoArrivo = _data[\"aeroportoArrivo\"] ? Aeroporto.fromJS(_data[\"aeroportoArrivo\"]) : null;\r\n this.dataVolo = _data[\"dataVolo\"] !== undefined ? _data[\"dataVolo\"] : null;\r\n this.carrier = _data[\"carrier\"] !== undefined ? _data[\"carrier\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ItinerarioVoloInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ItinerarioVoloInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"tappaFrom\"] = this.tappaFrom ? this.tappaFrom.toJSON() : null;\r\n data[\"tappaTo\"] = this.tappaTo ? this.tappaTo.toJSON() : null;\r\n data[\"aeroportoPartenza\"] = this.aeroportoPartenza ? this.aeroportoPartenza.toJSON() : null;\r\n data[\"aeroportoArrivo\"] = this.aeroportoArrivo ? this.aeroportoArrivo.toJSON() : null;\r\n data[\"dataVolo\"] = this.dataVolo !== undefined ? this.dataVolo : null;\r\n data[\"carrier\"] = this.carrier !== undefined ? this.carrier : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IItinerarioVoloInfo {\r\n offerta?: OffertaInfo | null;\r\n tappaFrom?: ItinerarioOffertaInfo | null;\r\n tappaTo?: ItinerarioOffertaInfo | null;\r\n aeroportoPartenza?: Aeroporto | null;\r\n aeroportoArrivo?: Aeroporto | null;\r\n dataVolo?: string;\r\n carrier?: string | null;\r\n}\r\n\r\nexport class DocumentoInfo implements IDocumentoInfo {\r\n id?: number;\r\n documento?: Documento | null;\r\n contatto?: ContattoInfo | null;\r\n allegato?: DocumentoCondivisoInfo | null;\r\n pathDocumento?: string | null;\r\n offerta?: OffertaInfo | null;\r\n frasi?: DocumentoFrase[] | null;\r\n extraDocsIDs?: number[] | null;\r\n extraDocsString?: string | null;\r\n overrideServizi?: { [key: string]: number; } | null;\r\n isEmailLink?: boolean;\r\n emailUrl?: string | null;\r\n linkedFile?: FileInfoBase | null;\r\n programmaDiViaggioValido?: boolean;\r\n\r\n constructor(data?: IDocumentoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.documento = _data[\"documento\"] ? Documento.fromJS(_data[\"documento\"]) : null;\r\n this.contatto = _data[\"contatto\"] ? ContattoInfo.fromJS(_data[\"contatto\"]) : null;\r\n this.allegato = _data[\"allegato\"] ? DocumentoCondivisoInfo.fromJS(_data[\"allegato\"]) : null;\r\n this.pathDocumento = _data[\"pathDocumento\"] !== undefined ? _data[\"pathDocumento\"] : null;\r\n this.offerta = _data[\"offerta\"] ? OffertaInfo.fromJS(_data[\"offerta\"]) : null;\r\n if (Array.isArray(_data[\"frasi\"])) {\r\n this.frasi = [] as any;\r\n for (let item of _data[\"frasi\"])\r\n this.frasi!.push(DocumentoFrase.fromJS(item));\r\n }\r\n else {\r\n this.frasi = null;\r\n }\r\n if (Array.isArray(_data[\"extraDocsIDs\"])) {\r\n this.extraDocsIDs = [] as any;\r\n for (let item of _data[\"extraDocsIDs\"])\r\n this.extraDocsIDs!.push(item);\r\n }\r\n else {\r\n this.extraDocsIDs = null;\r\n }\r\n this.extraDocsString = _data[\"extraDocsString\"] !== undefined ? _data[\"extraDocsString\"] : null;\r\n if (_data[\"overrideServizi\"]) {\r\n this.overrideServizi = {} as any;\r\n for (let key in _data[\"overrideServizi\"]) {\r\n if (_data[\"overrideServizi\"].hasOwnProperty(key))\r\n (this.overrideServizi)![key] = _data[\"overrideServizi\"][key] !== undefined ? _data[\"overrideServizi\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.overrideServizi = null;\r\n }\r\n this.isEmailLink = _data[\"isEmailLink\"] !== undefined ? _data[\"isEmailLink\"] : null;\r\n this.emailUrl = _data[\"emailUrl\"] !== undefined ? _data[\"emailUrl\"] : null;\r\n this.linkedFile = _data[\"linkedFile\"] ? FileInfoBase.fromJS(_data[\"linkedFile\"]) : null;\r\n this.programmaDiViaggioValido = _data[\"programmaDiViaggioValido\"] !== undefined ? _data[\"programmaDiViaggioValido\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"documento\"] = this.documento ? this.documento.toJSON() : null;\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n data[\"allegato\"] = this.allegato ? this.allegato.toJSON() : null;\r\n data[\"pathDocumento\"] = this.pathDocumento !== undefined ? this.pathDocumento : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n if (Array.isArray(this.frasi)) {\r\n data[\"frasi\"] = [];\r\n for (let item of this.frasi)\r\n data[\"frasi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.extraDocsIDs)) {\r\n data[\"extraDocsIDs\"] = [];\r\n for (let item of this.extraDocsIDs)\r\n data[\"extraDocsIDs\"].push(item);\r\n }\r\n data[\"extraDocsString\"] = this.extraDocsString !== undefined ? this.extraDocsString : null;\r\n if (this.overrideServizi) {\r\n data[\"overrideServizi\"] = {};\r\n for (let key in this.overrideServizi) {\r\n if (this.overrideServizi.hasOwnProperty(key))\r\n (data[\"overrideServizi\"])[key] = this.overrideServizi[key] !== undefined ? this.overrideServizi[key] : null;\r\n }\r\n }\r\n data[\"isEmailLink\"] = this.isEmailLink !== undefined ? this.isEmailLink : null;\r\n data[\"emailUrl\"] = this.emailUrl !== undefined ? this.emailUrl : null;\r\n data[\"linkedFile\"] = this.linkedFile ? this.linkedFile.toJSON() : null;\r\n data[\"programmaDiViaggioValido\"] = this.programmaDiViaggioValido !== undefined ? this.programmaDiViaggioValido : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoInfo {\r\n id?: number;\r\n documento?: Documento | null;\r\n contatto?: ContattoInfo | null;\r\n allegato?: DocumentoCondivisoInfo | null;\r\n pathDocumento?: string | null;\r\n offerta?: OffertaInfo | null;\r\n frasi?: DocumentoFrase[] | null;\r\n extraDocsIDs?: number[] | null;\r\n extraDocsString?: string | null;\r\n overrideServizi?: { [key: string]: number; } | null;\r\n isEmailLink?: boolean;\r\n emailUrl?: string | null;\r\n linkedFile?: FileInfoBase | null;\r\n programmaDiViaggioValido?: boolean;\r\n}\r\n\r\nexport class DocumentoCondivisoInfo implements IDocumentoCondivisoInfo {\r\n id?: number;\r\n documentoCondiviso?: DocumentoCondiviso;\r\n eliminato?: boolean;\r\n luogo?: LuogoInfo | null;\r\n luogoDestinazione?: LuogoInfo | null;\r\n servizio?: ServizioInfo | null;\r\n accordo?: AccordoInfo | null;\r\n contatto?: ContattoInfo | null;\r\n creatoDa?: UtenteInfo;\r\n aggiornatoDa?: UtenteInfo;\r\n eliminatoDa?: UtenteInfo | null;\r\n srtNome_It?: string;\r\n srtNome_En?: string;\r\n srtNome_Fr?: string;\r\n srtNome_De?: string;\r\n srtCategoria_It?: string | null;\r\n srtCategoria_En?: string | null;\r\n srtCategoria_Fr?: string | null;\r\n srtCategoria_De?: string | null;\r\n linkedFile?: FileInfoBase;\r\n qualsiasiLingua?: boolean;\r\n lingue?: ELingua[];\r\n categoria?: DocumentoCondivisoCategoriaInfo | null;\r\n\r\n constructor(data?: IDocumentoCondivisoInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.documentoCondiviso = _data[\"documentoCondiviso\"] ? DocumentoCondiviso.fromJS(_data[\"documentoCondiviso\"]) : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.luogo = _data[\"luogo\"] ? LuogoInfo.fromJS(_data[\"luogo\"]) : null;\r\n this.luogoDestinazione = _data[\"luogoDestinazione\"] ? LuogoInfo.fromJS(_data[\"luogoDestinazione\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioInfo.fromJS(_data[\"servizio\"]) : null;\r\n this.accordo = _data[\"accordo\"] ? AccordoInfo.fromJS(_data[\"accordo\"]) : null;\r\n this.contatto = _data[\"contatto\"] ? ContattoInfo.fromJS(_data[\"contatto\"]) : null;\r\n this.creatoDa = _data[\"creatoDa\"] ? UtenteInfo.fromJS(_data[\"creatoDa\"]) : null;\r\n this.aggiornatoDa = _data[\"aggiornatoDa\"] ? UtenteInfo.fromJS(_data[\"aggiornatoDa\"]) : null;\r\n this.eliminatoDa = _data[\"eliminatoDa\"] ? UtenteInfo.fromJS(_data[\"eliminatoDa\"]) : null;\r\n this.srtNome_It = _data[\"srtNome_It\"] !== undefined ? _data[\"srtNome_It\"] : null;\r\n this.srtNome_En = _data[\"srtNome_En\"] !== undefined ? _data[\"srtNome_En\"] : null;\r\n this.srtNome_Fr = _data[\"srtNome_Fr\"] !== undefined ? _data[\"srtNome_Fr\"] : null;\r\n this.srtNome_De = _data[\"srtNome_De\"] !== undefined ? _data[\"srtNome_De\"] : null;\r\n this.srtCategoria_It = _data[\"srtCategoria_It\"] !== undefined ? _data[\"srtCategoria_It\"] : null;\r\n this.srtCategoria_En = _data[\"srtCategoria_En\"] !== undefined ? _data[\"srtCategoria_En\"] : null;\r\n this.srtCategoria_Fr = _data[\"srtCategoria_Fr\"] !== undefined ? _data[\"srtCategoria_Fr\"] : null;\r\n this.srtCategoria_De = _data[\"srtCategoria_De\"] !== undefined ? _data[\"srtCategoria_De\"] : null;\r\n this.linkedFile = _data[\"linkedFile\"] ? FileInfoBase.fromJS(_data[\"linkedFile\"]) : null;\r\n this.qualsiasiLingua = _data[\"qualsiasiLingua\"] !== undefined ? _data[\"qualsiasiLingua\"] : null;\r\n if (Array.isArray(_data[\"lingue\"])) {\r\n this.lingue = [] as any;\r\n for (let item of _data[\"lingue\"])\r\n this.lingue!.push(item);\r\n }\r\n else {\r\n this.lingue = null;\r\n }\r\n this.categoria = _data[\"categoria\"] ? DocumentoCondivisoCategoriaInfo.fromJS(_data[\"categoria\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoCondivisoInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoCondivisoInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"documentoCondiviso\"] = this.documentoCondiviso ? this.documentoCondiviso.toJSON() : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"luogo\"] = this.luogo ? this.luogo.toJSON() : null;\r\n data[\"luogoDestinazione\"] = this.luogoDestinazione ? this.luogoDestinazione.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"accordo\"] = this.accordo ? this.accordo.toJSON() : null;\r\n data[\"contatto\"] = this.contatto ? this.contatto.toJSON() : null;\r\n data[\"creatoDa\"] = this.creatoDa ? this.creatoDa.toJSON() : null;\r\n data[\"aggiornatoDa\"] = this.aggiornatoDa ? this.aggiornatoDa.toJSON() : null;\r\n data[\"eliminatoDa\"] = this.eliminatoDa ? this.eliminatoDa.toJSON() : null;\r\n data[\"srtNome_It\"] = this.srtNome_It !== undefined ? this.srtNome_It : null;\r\n data[\"srtNome_En\"] = this.srtNome_En !== undefined ? this.srtNome_En : null;\r\n data[\"srtNome_Fr\"] = this.srtNome_Fr !== undefined ? this.srtNome_Fr : null;\r\n data[\"srtNome_De\"] = this.srtNome_De !== undefined ? this.srtNome_De : null;\r\n data[\"srtCategoria_It\"] = this.srtCategoria_It !== undefined ? this.srtCategoria_It : null;\r\n data[\"srtCategoria_En\"] = this.srtCategoria_En !== undefined ? this.srtCategoria_En : null;\r\n data[\"srtCategoria_Fr\"] = this.srtCategoria_Fr !== undefined ? this.srtCategoria_Fr : null;\r\n data[\"srtCategoria_De\"] = this.srtCategoria_De !== undefined ? this.srtCategoria_De : null;\r\n data[\"linkedFile\"] = this.linkedFile ? this.linkedFile.toJSON() : null;\r\n data[\"qualsiasiLingua\"] = this.qualsiasiLingua !== undefined ? this.qualsiasiLingua : null;\r\n if (Array.isArray(this.lingue)) {\r\n data[\"lingue\"] = [];\r\n for (let item of this.lingue)\r\n data[\"lingue\"].push(item);\r\n }\r\n data[\"categoria\"] = this.categoria ? this.categoria.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoCondivisoInfo {\r\n id?: number;\r\n documentoCondiviso?: DocumentoCondiviso;\r\n eliminato?: boolean;\r\n luogo?: LuogoInfo | null;\r\n luogoDestinazione?: LuogoInfo | null;\r\n servizio?: ServizioInfo | null;\r\n accordo?: AccordoInfo | null;\r\n contatto?: ContattoInfo | null;\r\n creatoDa?: UtenteInfo;\r\n aggiornatoDa?: UtenteInfo;\r\n eliminatoDa?: UtenteInfo | null;\r\n srtNome_It?: string;\r\n srtNome_En?: string;\r\n srtNome_Fr?: string;\r\n srtNome_De?: string;\r\n srtCategoria_It?: string | null;\r\n srtCategoria_En?: string | null;\r\n srtCategoria_Fr?: string | null;\r\n srtCategoria_De?: string | null;\r\n linkedFile?: FileInfoBase;\r\n qualsiasiLingua?: boolean;\r\n lingue?: ELingua[];\r\n categoria?: DocumentoCondivisoCategoriaInfo | null;\r\n}\r\n\r\nexport class DocumentoCondiviso implements IDocumentoCondiviso {\r\n id?: number;\r\n categoriaID?: number;\r\n nome!: string;\r\n nomeInglese?: string | null;\r\n nomeFrancese?: string | null;\r\n nomeTedesco?: string | null;\r\n nomeSpagnolo?: string | null;\r\n noteInterne?: string | null;\r\n path?: string | null;\r\n tipoPath?: ETipoPath;\r\n nomeFile?: string | null;\r\n dimensioneFile?: number | null;\r\n tipoContenuto?: ETipoDocumentoAllegato;\r\n luogoID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n contattoID?: number | null;\r\n tipoPubblicazione?: ETipoPubblicazioneAllegato;\r\n pubblicatoDal?: string | null;\r\n pubblicatoAl?: string | null;\r\n partenzeDal?: string | null;\r\n partenzeAl?: string | null;\r\n inserisciDefault?: boolean;\r\n ordine?: number;\r\n lingue?: string | null;\r\n creatoIl?: string;\r\n creatoDaUtenteID?: number;\r\n aggiornatoIl?: string;\r\n aggiornatoDaUtenteID?: number;\r\n eliminatoIl?: string | null;\r\n eliminatoDaUtenteID?: number | null;\r\n operatore?: EOperatore | null;\r\n\r\n constructor(data?: IDocumentoCondiviso) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.categoriaID = _data[\"categoriaID\"] !== undefined ? _data[\"categoriaID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n this.nomeFrancese = _data[\"nomeFrancese\"] !== undefined ? _data[\"nomeFrancese\"] : null;\r\n this.nomeTedesco = _data[\"nomeTedesco\"] !== undefined ? _data[\"nomeTedesco\"] : null;\r\n this.nomeSpagnolo = _data[\"nomeSpagnolo\"] !== undefined ? _data[\"nomeSpagnolo\"] : null;\r\n this.noteInterne = _data[\"noteInterne\"] !== undefined ? _data[\"noteInterne\"] : null;\r\n this.path = _data[\"path\"] !== undefined ? _data[\"path\"] : null;\r\n this.tipoPath = _data[\"tipoPath\"] !== undefined ? _data[\"tipoPath\"] : null;\r\n this.nomeFile = _data[\"nomeFile\"] !== undefined ? _data[\"nomeFile\"] : null;\r\n this.dimensioneFile = _data[\"dimensioneFile\"] !== undefined ? _data[\"dimensioneFile\"] : null;\r\n this.tipoContenuto = _data[\"tipoContenuto\"] !== undefined ? _data[\"tipoContenuto\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.tipoPubblicazione = _data[\"tipoPubblicazione\"] !== undefined ? _data[\"tipoPubblicazione\"] : null;\r\n this.pubblicatoDal = _data[\"pubblicatoDal\"] !== undefined ? _data[\"pubblicatoDal\"] : null;\r\n this.pubblicatoAl = _data[\"pubblicatoAl\"] !== undefined ? _data[\"pubblicatoAl\"] : null;\r\n this.partenzeDal = _data[\"partenzeDal\"] !== undefined ? _data[\"partenzeDal\"] : null;\r\n this.partenzeAl = _data[\"partenzeAl\"] !== undefined ? _data[\"partenzeAl\"] : null;\r\n this.inserisciDefault = _data[\"inserisciDefault\"] !== undefined ? _data[\"inserisciDefault\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.lingue = _data[\"lingue\"] !== undefined ? _data[\"lingue\"] : null;\r\n this.creatoIl = _data[\"creatoIl\"] !== undefined ? _data[\"creatoIl\"] : null;\r\n this.creatoDaUtenteID = _data[\"creatoDaUtenteID\"] !== undefined ? _data[\"creatoDaUtenteID\"] : null;\r\n this.aggiornatoIl = _data[\"aggiornatoIl\"] !== undefined ? _data[\"aggiornatoIl\"] : null;\r\n this.aggiornatoDaUtenteID = _data[\"aggiornatoDaUtenteID\"] !== undefined ? _data[\"aggiornatoDaUtenteID\"] : null;\r\n this.eliminatoIl = _data[\"eliminatoIl\"] !== undefined ? _data[\"eliminatoIl\"] : null;\r\n this.eliminatoDaUtenteID = _data[\"eliminatoDaUtenteID\"] !== undefined ? _data[\"eliminatoDaUtenteID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoCondiviso {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoCondiviso();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"categoriaID\"] = this.categoriaID !== undefined ? this.categoriaID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n data[\"nomeFrancese\"] = this.nomeFrancese !== undefined ? this.nomeFrancese : null;\r\n data[\"nomeTedesco\"] = this.nomeTedesco !== undefined ? this.nomeTedesco : null;\r\n data[\"nomeSpagnolo\"] = this.nomeSpagnolo !== undefined ? this.nomeSpagnolo : null;\r\n data[\"noteInterne\"] = this.noteInterne !== undefined ? this.noteInterne : null;\r\n data[\"path\"] = this.path !== undefined ? this.path : null;\r\n data[\"tipoPath\"] = this.tipoPath !== undefined ? this.tipoPath : null;\r\n data[\"nomeFile\"] = this.nomeFile !== undefined ? this.nomeFile : null;\r\n data[\"dimensioneFile\"] = this.dimensioneFile !== undefined ? this.dimensioneFile : null;\r\n data[\"tipoContenuto\"] = this.tipoContenuto !== undefined ? this.tipoContenuto : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"tipoPubblicazione\"] = this.tipoPubblicazione !== undefined ? this.tipoPubblicazione : null;\r\n data[\"pubblicatoDal\"] = this.pubblicatoDal !== undefined ? this.pubblicatoDal : null;\r\n data[\"pubblicatoAl\"] = this.pubblicatoAl !== undefined ? this.pubblicatoAl : null;\r\n data[\"partenzeDal\"] = this.partenzeDal !== undefined ? this.partenzeDal : null;\r\n data[\"partenzeAl\"] = this.partenzeAl !== undefined ? this.partenzeAl : null;\r\n data[\"inserisciDefault\"] = this.inserisciDefault !== undefined ? this.inserisciDefault : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"lingue\"] = this.lingue !== undefined ? this.lingue : null;\r\n data[\"creatoIl\"] = this.creatoIl !== undefined ? this.creatoIl : null;\r\n data[\"creatoDaUtenteID\"] = this.creatoDaUtenteID !== undefined ? this.creatoDaUtenteID : null;\r\n data[\"aggiornatoIl\"] = this.aggiornatoIl !== undefined ? this.aggiornatoIl : null;\r\n data[\"aggiornatoDaUtenteID\"] = this.aggiornatoDaUtenteID !== undefined ? this.aggiornatoDaUtenteID : null;\r\n data[\"eliminatoIl\"] = this.eliminatoIl !== undefined ? this.eliminatoIl : null;\r\n data[\"eliminatoDaUtenteID\"] = this.eliminatoDaUtenteID !== undefined ? this.eliminatoDaUtenteID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoCondiviso {\r\n id?: number;\r\n categoriaID?: number;\r\n nome: string;\r\n nomeInglese?: string | null;\r\n nomeFrancese?: string | null;\r\n nomeTedesco?: string | null;\r\n nomeSpagnolo?: string | null;\r\n noteInterne?: string | null;\r\n path?: string | null;\r\n tipoPath?: ETipoPath;\r\n nomeFile?: string | null;\r\n dimensioneFile?: number | null;\r\n tipoContenuto?: ETipoDocumentoAllegato;\r\n luogoID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n servizioID?: number | null;\r\n accordoID?: number | null;\r\n contattoID?: number | null;\r\n tipoPubblicazione?: ETipoPubblicazioneAllegato;\r\n pubblicatoDal?: string | null;\r\n pubblicatoAl?: string | null;\r\n partenzeDal?: string | null;\r\n partenzeAl?: string | null;\r\n inserisciDefault?: boolean;\r\n ordine?: number;\r\n lingue?: string | null;\r\n creatoIl?: string;\r\n creatoDaUtenteID?: number;\r\n aggiornatoIl?: string;\r\n aggiornatoDaUtenteID?: number;\r\n eliminatoIl?: string | null;\r\n eliminatoDaUtenteID?: number | null;\r\n operatore?: EOperatore | null;\r\n}\r\n\r\nexport enum ETipoPath {\r\n PathAssoluto = \"PathAssoluto\",\r\n PathRelativo = \"PathRelativo\",\r\n UrlAssoluta = \"UrlAssoluta\",\r\n UrlRelativa = \"UrlRelativa\",\r\n}\r\n\r\nexport enum ETipoDocumentoAllegato {\r\n Html = \"Html\",\r\n Pdf = \"Pdf\",\r\n Text = \"Text\",\r\n Immagine = \"Immagine\",\r\n}\r\n\r\nexport enum ETipoPubblicazioneAllegato {\r\n Bozza = \"Bozza\",\r\n Pubblicato = \"Pubblicato\",\r\n PubblicatoIntranet = \"PubblicatoIntranet\",\r\n Obsoleto = \"Obsoleto\",\r\n}\r\n\r\nexport class DocumentoCondivisoCategoriaInfo implements IDocumentoCondivisoCategoriaInfo {\r\n id?: number;\r\n documentoCondivisoCategoria?: DocumentoCondivisoCategoria;\r\n eliminata?: boolean;\r\n srtNome_It?: string;\r\n srtNome_En?: string;\r\n srtNome_Fr?: string;\r\n srtNome_De?: string;\r\n\r\n constructor(data?: IDocumentoCondivisoCategoriaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.documentoCondivisoCategoria = _data[\"documentoCondivisoCategoria\"] ? DocumentoCondivisoCategoria.fromJS(_data[\"documentoCondivisoCategoria\"]) : null;\r\n this.eliminata = _data[\"eliminata\"] !== undefined ? _data[\"eliminata\"] : null;\r\n this.srtNome_It = _data[\"srtNome_It\"] !== undefined ? _data[\"srtNome_It\"] : null;\r\n this.srtNome_En = _data[\"srtNome_En\"] !== undefined ? _data[\"srtNome_En\"] : null;\r\n this.srtNome_Fr = _data[\"srtNome_Fr\"] !== undefined ? _data[\"srtNome_Fr\"] : null;\r\n this.srtNome_De = _data[\"srtNome_De\"] !== undefined ? _data[\"srtNome_De\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoCondivisoCategoriaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoCondivisoCategoriaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"documentoCondivisoCategoria\"] = this.documentoCondivisoCategoria ? this.documentoCondivisoCategoria.toJSON() : null;\r\n data[\"eliminata\"] = this.eliminata !== undefined ? this.eliminata : null;\r\n data[\"srtNome_It\"] = this.srtNome_It !== undefined ? this.srtNome_It : null;\r\n data[\"srtNome_En\"] = this.srtNome_En !== undefined ? this.srtNome_En : null;\r\n data[\"srtNome_Fr\"] = this.srtNome_Fr !== undefined ? this.srtNome_Fr : null;\r\n data[\"srtNome_De\"] = this.srtNome_De !== undefined ? this.srtNome_De : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoCondivisoCategoriaInfo {\r\n id?: number;\r\n documentoCondivisoCategoria?: DocumentoCondivisoCategoria;\r\n eliminata?: boolean;\r\n srtNome_It?: string;\r\n srtNome_En?: string;\r\n srtNome_Fr?: string;\r\n srtNome_De?: string;\r\n}\r\n\r\nexport class DocumentoCondivisoCategoria implements IDocumentoCondivisoCategoria {\r\n id?: number;\r\n nome!: string;\r\n nomeENG?: string | null;\r\n nomeFRA?: string | null;\r\n nomeDEU?: string | null;\r\n nomeESP?: string | null;\r\n eliminata?: boolean;\r\n\r\n constructor(data?: IDocumentoCondivisoCategoria) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeENG = _data[\"nomeENG\"] !== undefined ? _data[\"nomeENG\"] : null;\r\n this.nomeFRA = _data[\"nomeFRA\"] !== undefined ? _data[\"nomeFRA\"] : null;\r\n this.nomeDEU = _data[\"nomeDEU\"] !== undefined ? _data[\"nomeDEU\"] : null;\r\n this.nomeESP = _data[\"nomeESP\"] !== undefined ? _data[\"nomeESP\"] : null;\r\n this.eliminata = _data[\"eliminata\"] !== undefined ? _data[\"eliminata\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoCondivisoCategoria {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoCondivisoCategoria();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeENG\"] = this.nomeENG !== undefined ? this.nomeENG : null;\r\n data[\"nomeFRA\"] = this.nomeFRA !== undefined ? this.nomeFRA : null;\r\n data[\"nomeDEU\"] = this.nomeDEU !== undefined ? this.nomeDEU : null;\r\n data[\"nomeESP\"] = this.nomeESP !== undefined ? this.nomeESP : null;\r\n data[\"eliminata\"] = this.eliminata !== undefined ? this.eliminata : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoCondivisoCategoria {\r\n id?: number;\r\n nome: string;\r\n nomeENG?: string | null;\r\n nomeFRA?: string | null;\r\n nomeDEU?: string | null;\r\n nomeESP?: string | null;\r\n eliminata?: boolean;\r\n}\r\n\r\nexport class DocumentoFrase implements IDocumentoFrase {\r\n id?: number;\r\n documentoID?: number;\r\n sezioneID?: number;\r\n sottoSezioneID?: number | null;\r\n articoloID?: number | null;\r\n fraseID?: number | null;\r\n giorno?: number | null;\r\n servizioID?: number | null;\r\n rigaID?: number | null;\r\n contattoID?: number | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n ordine?: number;\r\n terminatore?: EFraseTerminatore;\r\n parametri?: string | null;\r\n valoreInt?: number | null;\r\n\r\n constructor(data?: IDocumentoFrase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.sezioneID = _data[\"sezioneID\"] !== undefined ? _data[\"sezioneID\"] : null;\r\n this.sottoSezioneID = _data[\"sottoSezioneID\"] !== undefined ? _data[\"sottoSezioneID\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.fraseID = _data[\"fraseID\"] !== undefined ? _data[\"fraseID\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.terminatore = _data[\"terminatore\"] !== undefined ? _data[\"terminatore\"] : null;\r\n this.parametri = _data[\"parametri\"] !== undefined ? _data[\"parametri\"] : null;\r\n this.valoreInt = _data[\"valoreInt\"] !== undefined ? _data[\"valoreInt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DocumentoFrase {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DocumentoFrase();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"sezioneID\"] = this.sezioneID !== undefined ? this.sezioneID : null;\r\n data[\"sottoSezioneID\"] = this.sottoSezioneID !== undefined ? this.sottoSezioneID : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"fraseID\"] = this.fraseID !== undefined ? this.fraseID : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"terminatore\"] = this.terminatore !== undefined ? this.terminatore : null;\r\n data[\"parametri\"] = this.parametri !== undefined ? this.parametri : null;\r\n data[\"valoreInt\"] = this.valoreInt !== undefined ? this.valoreInt : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocumentoFrase {\r\n id?: number;\r\n documentoID?: number;\r\n sezioneID?: number;\r\n sottoSezioneID?: number | null;\r\n articoloID?: number | null;\r\n fraseID?: number | null;\r\n giorno?: number | null;\r\n servizioID?: number | null;\r\n rigaID?: number | null;\r\n contattoID?: number | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n ordine?: number;\r\n terminatore?: EFraseTerminatore;\r\n parametri?: string | null;\r\n valoreInt?: number | null;\r\n}\r\n\r\nexport class EmailInfo implements IEmailInfo {\r\n id?: number;\r\n email?: EmailQueue;\r\n recipients?: EmailQueueRecipient[];\r\n toRecipients?: string;\r\n ccRecipients?: string;\r\n bccRecipients?: string;\r\n attachments?: EmailAttachmentInfo[];\r\n\r\n constructor(data?: IEmailInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.email = _data[\"email\"] ? EmailQueue.fromJS(_data[\"email\"]) : null;\r\n if (Array.isArray(_data[\"recipients\"])) {\r\n this.recipients = [] as any;\r\n for (let item of _data[\"recipients\"])\r\n this.recipients!.push(EmailQueueRecipient.fromJS(item));\r\n }\r\n else {\r\n this.recipients = null;\r\n }\r\n this.toRecipients = _data[\"toRecipients\"] !== undefined ? _data[\"toRecipients\"] : null;\r\n this.ccRecipients = _data[\"ccRecipients\"] !== undefined ? _data[\"ccRecipients\"] : null;\r\n this.bccRecipients = _data[\"bccRecipients\"] !== undefined ? _data[\"bccRecipients\"] : null;\r\n if (Array.isArray(_data[\"attachments\"])) {\r\n this.attachments = [] as any;\r\n for (let item of _data[\"attachments\"])\r\n this.attachments!.push(EmailAttachmentInfo.fromJS(item));\r\n }\r\n else {\r\n this.attachments = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): EmailInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EmailInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"email\"] = this.email ? this.email.toJSON() : null;\r\n if (Array.isArray(this.recipients)) {\r\n data[\"recipients\"] = [];\r\n for (let item of this.recipients)\r\n data[\"recipients\"].push(item.toJSON());\r\n }\r\n data[\"toRecipients\"] = this.toRecipients !== undefined ? this.toRecipients : null;\r\n data[\"ccRecipients\"] = this.ccRecipients !== undefined ? this.ccRecipients : null;\r\n data[\"bccRecipients\"] = this.bccRecipients !== undefined ? this.bccRecipients : null;\r\n if (Array.isArray(this.attachments)) {\r\n data[\"attachments\"] = [];\r\n for (let item of this.attachments)\r\n data[\"attachments\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmailInfo {\r\n id?: number;\r\n email?: EmailQueue;\r\n recipients?: EmailQueueRecipient[];\r\n toRecipients?: string;\r\n ccRecipients?: string;\r\n bccRecipients?: string;\r\n attachments?: EmailAttachmentInfo[];\r\n}\r\n\r\nexport class EmailQueueRecipient implements IEmailQueueRecipient {\r\n id?: number;\r\n emailID?: number;\r\n addressType?: EEmailAddressType;\r\n recipientAddress!: string;\r\n recipientName?: string | null;\r\n\r\n constructor(data?: IEmailQueueRecipient) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.emailID = _data[\"emailID\"] !== undefined ? _data[\"emailID\"] : null;\r\n this.addressType = _data[\"addressType\"] !== undefined ? _data[\"addressType\"] : null;\r\n this.recipientAddress = _data[\"recipientAddress\"] !== undefined ? _data[\"recipientAddress\"] : null;\r\n this.recipientName = _data[\"recipientName\"] !== undefined ? _data[\"recipientName\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EmailQueueRecipient {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EmailQueueRecipient();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"emailID\"] = this.emailID !== undefined ? this.emailID : null;\r\n data[\"addressType\"] = this.addressType !== undefined ? this.addressType : null;\r\n data[\"recipientAddress\"] = this.recipientAddress !== undefined ? this.recipientAddress : null;\r\n data[\"recipientName\"] = this.recipientName !== undefined ? this.recipientName : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmailQueueRecipient {\r\n id?: number;\r\n emailID?: number;\r\n addressType?: EEmailAddressType;\r\n recipientAddress: string;\r\n recipientName?: string | null;\r\n}\r\n\r\nexport class VoloInfo implements IVoloInfo {\r\n id?: number;\r\n volo?: Volo | null;\r\n offerta?: OffertaInfo | null;\r\n righe?: OffertaDatoInfo[] | null;\r\n haOrdinaBiglietteria?: boolean;\r\n soluzione?: string | null;\r\n nome?: string | null;\r\n isPnr?: boolean;\r\n isNdc?: boolean;\r\n abbinamento?: AbbinamentoInfo | null;\r\n fornitore?: FornitoreInfo | null;\r\n tratte?: VoloTrattaInfo[] | null;\r\n tariffe?: VoloTariffa[] | null;\r\n note?: VoloNota[] | null;\r\n relazioni?: VoloRel[] | null;\r\n\r\n constructor(data?: IVoloInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.volo = _data[\"volo\"] ? Volo.fromJS(_data[\"volo\"]) : null;\r\n this.offerta = _data[\"offerta\"] ? OffertaInfo.fromJS(_data[\"offerta\"]) : null;\r\n if (Array.isArray(_data[\"righe\"])) {\r\n this.righe = [] as any;\r\n for (let item of _data[\"righe\"])\r\n this.righe!.push(OffertaDatoInfo.fromJS(item));\r\n }\r\n else {\r\n this.righe = null;\r\n }\r\n this.haOrdinaBiglietteria = _data[\"haOrdinaBiglietteria\"] !== undefined ? _data[\"haOrdinaBiglietteria\"] : null;\r\n this.soluzione = _data[\"soluzione\"] !== undefined ? _data[\"soluzione\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.isPnr = _data[\"isPnr\"] !== undefined ? _data[\"isPnr\"] : null;\r\n this.isNdc = _data[\"isNdc\"] !== undefined ? _data[\"isNdc\"] : null;\r\n this.abbinamento = _data[\"abbinamento\"] ? AbbinamentoInfo.fromJS(_data[\"abbinamento\"]) : null;\r\n this.fornitore = _data[\"fornitore\"] ? FornitoreInfo.fromJS(_data[\"fornitore\"]) : null;\r\n if (Array.isArray(_data[\"tratte\"])) {\r\n this.tratte = [] as any;\r\n for (let item of _data[\"tratte\"])\r\n this.tratte!.push(VoloTrattaInfo.fromJS(item));\r\n }\r\n else {\r\n this.tratte = null;\r\n }\r\n if (Array.isArray(_data[\"tariffe\"])) {\r\n this.tariffe = [] as any;\r\n for (let item of _data[\"tariffe\"])\r\n this.tariffe!.push(VoloTariffa.fromJS(item));\r\n }\r\n else {\r\n this.tariffe = null;\r\n }\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(VoloNota.fromJS(item));\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n if (Array.isArray(_data[\"relazioni\"])) {\r\n this.relazioni = [] as any;\r\n for (let item of _data[\"relazioni\"])\r\n this.relazioni!.push(VoloRel.fromJS(item));\r\n }\r\n else {\r\n this.relazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"volo\"] = this.volo ? this.volo.toJSON() : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n if (Array.isArray(this.righe)) {\r\n data[\"righe\"] = [];\r\n for (let item of this.righe)\r\n data[\"righe\"].push(item.toJSON());\r\n }\r\n data[\"haOrdinaBiglietteria\"] = this.haOrdinaBiglietteria !== undefined ? this.haOrdinaBiglietteria : null;\r\n data[\"soluzione\"] = this.soluzione !== undefined ? this.soluzione : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"isPnr\"] = this.isPnr !== undefined ? this.isPnr : null;\r\n data[\"isNdc\"] = this.isNdc !== undefined ? this.isNdc : null;\r\n data[\"abbinamento\"] = this.abbinamento ? this.abbinamento.toJSON() : null;\r\n data[\"fornitore\"] = this.fornitore ? this.fornitore.toJSON() : null;\r\n if (Array.isArray(this.tratte)) {\r\n data[\"tratte\"] = [];\r\n for (let item of this.tratte)\r\n data[\"tratte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.tariffe)) {\r\n data[\"tariffe\"] = [];\r\n for (let item of this.tariffe)\r\n data[\"tariffe\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.relazioni)) {\r\n data[\"relazioni\"] = [];\r\n for (let item of this.relazioni)\r\n data[\"relazioni\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloInfo {\r\n id?: number;\r\n volo?: Volo | null;\r\n offerta?: OffertaInfo | null;\r\n righe?: OffertaDatoInfo[] | null;\r\n haOrdinaBiglietteria?: boolean;\r\n soluzione?: string | null;\r\n nome?: string | null;\r\n isPnr?: boolean;\r\n isNdc?: boolean;\r\n abbinamento?: AbbinamentoInfo | null;\r\n fornitore?: FornitoreInfo | null;\r\n tratte?: VoloTrattaInfo[] | null;\r\n tariffe?: VoloTariffa[] | null;\r\n note?: VoloNota[] | null;\r\n relazioni?: VoloRel[] | null;\r\n}\r\n\r\nexport class FornitoreInfo implements IFornitoreInfo {\r\n id?: number;\r\n eFornitore?: EFornitore;\r\n fornitore?: HHFornitore;\r\n usaDescrizioniFornitoreSuTipologieMappate?: boolean;\r\n luoghiMappati?: { [key: string]: HHLuogo[]; };\r\n luoghiFornitore?: HHLuogo[];\r\n accordi?: AccordoInfo[];\r\n\r\n constructor(data?: IFornitoreInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.eFornitore = _data[\"eFornitore\"] !== undefined ? _data[\"eFornitore\"] : null;\r\n this.fornitore = _data[\"fornitore\"] ? HHFornitore.fromJS(_data[\"fornitore\"]) : null;\r\n this.usaDescrizioniFornitoreSuTipologieMappate = _data[\"usaDescrizioniFornitoreSuTipologieMappate\"] !== undefined ? _data[\"usaDescrizioniFornitoreSuTipologieMappate\"] : null;\r\n if (_data[\"luoghiMappati\"]) {\r\n this.luoghiMappati = {} as any;\r\n for (let key in _data[\"luoghiMappati\"]) {\r\n if (_data[\"luoghiMappati\"].hasOwnProperty(key))\r\n (this.luoghiMappati)![key] = _data[\"luoghiMappati\"][key] ? _data[\"luoghiMappati\"][key].map((i: any) => HHLuogo.fromJS(i)) : [];\r\n }\r\n }\r\n else {\r\n this.luoghiMappati = null;\r\n }\r\n if (Array.isArray(_data[\"luoghiFornitore\"])) {\r\n this.luoghiFornitore = [] as any;\r\n for (let item of _data[\"luoghiFornitore\"])\r\n this.luoghiFornitore!.push(HHLuogo.fromJS(item));\r\n }\r\n else {\r\n this.luoghiFornitore = null;\r\n }\r\n if (Array.isArray(_data[\"accordi\"])) {\r\n this.accordi = [] as any;\r\n for (let item of _data[\"accordi\"])\r\n this.accordi!.push(AccordoInfo.fromJS(item));\r\n }\r\n else {\r\n this.accordi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): FornitoreInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new FornitoreInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"eFornitore\"] = this.eFornitore !== undefined ? this.eFornitore : null;\r\n data[\"fornitore\"] = this.fornitore ? this.fornitore.toJSON() : null;\r\n data[\"usaDescrizioniFornitoreSuTipologieMappate\"] = this.usaDescrizioniFornitoreSuTipologieMappate !== undefined ? this.usaDescrizioniFornitoreSuTipologieMappate : null;\r\n if (this.luoghiMappati) {\r\n data[\"luoghiMappati\"] = {};\r\n for (let key in this.luoghiMappati) {\r\n if (this.luoghiMappati.hasOwnProperty(key))\r\n (data[\"luoghiMappati\"])[key] = this.luoghiMappati[key] !== undefined ? this.luoghiMappati[key] : null;\r\n }\r\n }\r\n if (Array.isArray(this.luoghiFornitore)) {\r\n data[\"luoghiFornitore\"] = [];\r\n for (let item of this.luoghiFornitore)\r\n data[\"luoghiFornitore\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.accordi)) {\r\n data[\"accordi\"] = [];\r\n for (let item of this.accordi)\r\n data[\"accordi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IFornitoreInfo {\r\n id?: number;\r\n eFornitore?: EFornitore;\r\n fornitore?: HHFornitore;\r\n usaDescrizioniFornitoreSuTipologieMappate?: boolean;\r\n luoghiMappati?: { [key: string]: HHLuogo[]; };\r\n luoghiFornitore?: HHLuogo[];\r\n accordi?: AccordoInfo[];\r\n}\r\n\r\nexport class HHFornitore implements IHHFornitore {\r\n id?: number;\r\n nome!: string;\r\n attivo?: boolean;\r\n trattamentoDaXml?: boolean;\r\n instantPurchaseDaXml?: boolean;\r\n notRefoundableDaXml?: boolean;\r\n bookingUsaDateNascitaChild?: boolean;\r\n bookingUsaDateNascitaAdulti?: boolean;\r\n bookingUsaGenere?: boolean;\r\n bookingUsaNomiPax?: boolean;\r\n serviziAttiviRicerca?: EH2HServiceType;\r\n serviziAttiviBooking?: EH2HServiceType;\r\n ultimaRicerca?: string | null;\r\n ultimaRicercaFault?: string | null;\r\n durataRicercheSec?: number | null;\r\n durataRicercheFaultSec?: number | null;\r\n conteggioRicercheAttive?: number;\r\n conteggioRicercheAttiveFault?: number;\r\n ricercaUsaDisponibilitaReale?: boolean;\r\n codiceGiata?: string | null;\r\n tipoGestioneSupplementi?: ETipoGestioneSupplementi;\r\n modalitaPrenotazione?: EModalitaPrenotazione;\r\n accordoObbligatorio?: boolean;\r\n forzaIpSuNrf?: boolean;\r\n policiesCall?: boolean;\r\n dynamicSupplements?: boolean;\r\n affidabilita?: number;\r\n\r\n constructor(data?: IHHFornitore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.attivo = _data[\"attivo\"] !== undefined ? _data[\"attivo\"] : null;\r\n this.trattamentoDaXml = _data[\"trattamentoDaXml\"] !== undefined ? _data[\"trattamentoDaXml\"] : null;\r\n this.instantPurchaseDaXml = _data[\"instantPurchaseDaXml\"] !== undefined ? _data[\"instantPurchaseDaXml\"] : null;\r\n this.notRefoundableDaXml = _data[\"notRefoundableDaXml\"] !== undefined ? _data[\"notRefoundableDaXml\"] : null;\r\n this.bookingUsaDateNascitaChild = _data[\"bookingUsaDateNascitaChild\"] !== undefined ? _data[\"bookingUsaDateNascitaChild\"] : null;\r\n this.bookingUsaDateNascitaAdulti = _data[\"bookingUsaDateNascitaAdulti\"] !== undefined ? _data[\"bookingUsaDateNascitaAdulti\"] : null;\r\n this.bookingUsaGenere = _data[\"bookingUsaGenere\"] !== undefined ? _data[\"bookingUsaGenere\"] : null;\r\n this.bookingUsaNomiPax = _data[\"bookingUsaNomiPax\"] !== undefined ? _data[\"bookingUsaNomiPax\"] : null;\r\n this.serviziAttiviRicerca = _data[\"serviziAttiviRicerca\"] !== undefined ? _data[\"serviziAttiviRicerca\"] : null;\r\n this.serviziAttiviBooking = _data[\"serviziAttiviBooking\"] !== undefined ? _data[\"serviziAttiviBooking\"] : null;\r\n this.ultimaRicerca = _data[\"ultimaRicerca\"] !== undefined ? _data[\"ultimaRicerca\"] : null;\r\n this.ultimaRicercaFault = _data[\"ultimaRicercaFault\"] !== undefined ? _data[\"ultimaRicercaFault\"] : null;\r\n this.durataRicercheSec = _data[\"durataRicercheSec\"] !== undefined ? _data[\"durataRicercheSec\"] : null;\r\n this.durataRicercheFaultSec = _data[\"durataRicercheFaultSec\"] !== undefined ? _data[\"durataRicercheFaultSec\"] : null;\r\n this.conteggioRicercheAttive = _data[\"conteggioRicercheAttive\"] !== undefined ? _data[\"conteggioRicercheAttive\"] : null;\r\n this.conteggioRicercheAttiveFault = _data[\"conteggioRicercheAttiveFault\"] !== undefined ? _data[\"conteggioRicercheAttiveFault\"] : null;\r\n this.ricercaUsaDisponibilitaReale = _data[\"ricercaUsaDisponibilitaReale\"] !== undefined ? _data[\"ricercaUsaDisponibilitaReale\"] : null;\r\n this.codiceGiata = _data[\"codiceGiata\"] !== undefined ? _data[\"codiceGiata\"] : null;\r\n this.tipoGestioneSupplementi = _data[\"tipoGestioneSupplementi\"] !== undefined ? _data[\"tipoGestioneSupplementi\"] : null;\r\n this.modalitaPrenotazione = _data[\"modalitaPrenotazione\"] !== undefined ? _data[\"modalitaPrenotazione\"] : null;\r\n this.accordoObbligatorio = _data[\"accordoObbligatorio\"] !== undefined ? _data[\"accordoObbligatorio\"] : null;\r\n this.forzaIpSuNrf = _data[\"forzaIpSuNrf\"] !== undefined ? _data[\"forzaIpSuNrf\"] : null;\r\n this.policiesCall = _data[\"policiesCall\"] !== undefined ? _data[\"policiesCall\"] : null;\r\n this.dynamicSupplements = _data[\"dynamicSupplements\"] !== undefined ? _data[\"dynamicSupplements\"] : null;\r\n this.affidabilita = _data[\"affidabilita\"] !== undefined ? _data[\"affidabilita\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHFornitore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHFornitore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"attivo\"] = this.attivo !== undefined ? this.attivo : null;\r\n data[\"trattamentoDaXml\"] = this.trattamentoDaXml !== undefined ? this.trattamentoDaXml : null;\r\n data[\"instantPurchaseDaXml\"] = this.instantPurchaseDaXml !== undefined ? this.instantPurchaseDaXml : null;\r\n data[\"notRefoundableDaXml\"] = this.notRefoundableDaXml !== undefined ? this.notRefoundableDaXml : null;\r\n data[\"bookingUsaDateNascitaChild\"] = this.bookingUsaDateNascitaChild !== undefined ? this.bookingUsaDateNascitaChild : null;\r\n data[\"bookingUsaDateNascitaAdulti\"] = this.bookingUsaDateNascitaAdulti !== undefined ? this.bookingUsaDateNascitaAdulti : null;\r\n data[\"bookingUsaGenere\"] = this.bookingUsaGenere !== undefined ? this.bookingUsaGenere : null;\r\n data[\"bookingUsaNomiPax\"] = this.bookingUsaNomiPax !== undefined ? this.bookingUsaNomiPax : null;\r\n data[\"serviziAttiviRicerca\"] = this.serviziAttiviRicerca !== undefined ? this.serviziAttiviRicerca : null;\r\n data[\"serviziAttiviBooking\"] = this.serviziAttiviBooking !== undefined ? this.serviziAttiviBooking : null;\r\n data[\"ultimaRicerca\"] = this.ultimaRicerca !== undefined ? this.ultimaRicerca : null;\r\n data[\"ultimaRicercaFault\"] = this.ultimaRicercaFault !== undefined ? this.ultimaRicercaFault : null;\r\n data[\"durataRicercheSec\"] = this.durataRicercheSec !== undefined ? this.durataRicercheSec : null;\r\n data[\"durataRicercheFaultSec\"] = this.durataRicercheFaultSec !== undefined ? this.durataRicercheFaultSec : null;\r\n data[\"conteggioRicercheAttive\"] = this.conteggioRicercheAttive !== undefined ? this.conteggioRicercheAttive : null;\r\n data[\"conteggioRicercheAttiveFault\"] = this.conteggioRicercheAttiveFault !== undefined ? this.conteggioRicercheAttiveFault : null;\r\n data[\"ricercaUsaDisponibilitaReale\"] = this.ricercaUsaDisponibilitaReale !== undefined ? this.ricercaUsaDisponibilitaReale : null;\r\n data[\"codiceGiata\"] = this.codiceGiata !== undefined ? this.codiceGiata : null;\r\n data[\"tipoGestioneSupplementi\"] = this.tipoGestioneSupplementi !== undefined ? this.tipoGestioneSupplementi : null;\r\n data[\"modalitaPrenotazione\"] = this.modalitaPrenotazione !== undefined ? this.modalitaPrenotazione : null;\r\n data[\"accordoObbligatorio\"] = this.accordoObbligatorio !== undefined ? this.accordoObbligatorio : null;\r\n data[\"forzaIpSuNrf\"] = this.forzaIpSuNrf !== undefined ? this.forzaIpSuNrf : null;\r\n data[\"policiesCall\"] = this.policiesCall !== undefined ? this.policiesCall : null;\r\n data[\"dynamicSupplements\"] = this.dynamicSupplements !== undefined ? this.dynamicSupplements : null;\r\n data[\"affidabilita\"] = this.affidabilita !== undefined ? this.affidabilita : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHFornitore {\r\n id?: number;\r\n nome: string;\r\n attivo?: boolean;\r\n trattamentoDaXml?: boolean;\r\n instantPurchaseDaXml?: boolean;\r\n notRefoundableDaXml?: boolean;\r\n bookingUsaDateNascitaChild?: boolean;\r\n bookingUsaDateNascitaAdulti?: boolean;\r\n bookingUsaGenere?: boolean;\r\n bookingUsaNomiPax?: boolean;\r\n serviziAttiviRicerca?: EH2HServiceType;\r\n serviziAttiviBooking?: EH2HServiceType;\r\n ultimaRicerca?: string | null;\r\n ultimaRicercaFault?: string | null;\r\n durataRicercheSec?: number | null;\r\n durataRicercheFaultSec?: number | null;\r\n conteggioRicercheAttive?: number;\r\n conteggioRicercheAttiveFault?: number;\r\n ricercaUsaDisponibilitaReale?: boolean;\r\n codiceGiata?: string | null;\r\n tipoGestioneSupplementi?: ETipoGestioneSupplementi;\r\n modalitaPrenotazione?: EModalitaPrenotazione;\r\n accordoObbligatorio?: boolean;\r\n forzaIpSuNrf?: boolean;\r\n policiesCall?: boolean;\r\n dynamicSupplements?: boolean;\r\n affidabilita?: number;\r\n}\r\n\r\nexport enum EH2HServiceType {\r\n Nessuno = \"Nessuno\",\r\n Hotels = \"Hotels\",\r\n Flights = \"Flights\",\r\n Cars = \"Cars\",\r\n Ferries = \"Ferries\",\r\n Cruises = \"Cruises\",\r\n Visit = \"Visit\",\r\n Tours = \"Tours\",\r\n Selfdrive = \"Selfdrive\",\r\n}\r\n\r\nexport enum ETipoGestioneSupplementi {\r\n NonGestiti = \"NonGestiti\",\r\n ComeServiziDistinti = \"ComeServiziDistinti\",\r\n AbbinatiAlServizioPrincipale = \"AbbinatiAlServizioPrincipale\",\r\n}\r\n\r\nexport enum EModalitaPrenotazione {\r\n UnaPrenotazionePerRiga = \"UnaPrenotazionePerRiga\",\r\n UnaPrenotazionePerOfferta = \"UnaPrenotazionePerOfferta\",\r\n}\r\n\r\nexport class VoloTrattaInfo implements IVoloTrattaInfo {\r\n _MinutiCheckinPartenza?: number | null;\r\n id?: number;\r\n voloTratta?: VoloTratta | null;\r\n compagnia?: CompagniaAerea | null;\r\n compagniaOperated?: CompagniaAerea | null;\r\n daAeroporto?: Aeroporto | null;\r\n adAeroporto?: Aeroporto | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n stato?: StatoVolo | null;\r\n voloInternazionale?: boolean;\r\n minutiCheckinPartenza?: number;\r\n\r\n constructor(data?: IVoloTrattaInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this._MinutiCheckinPartenza = _data[\"_MinutiCheckinPartenza\"] !== undefined ? _data[\"_MinutiCheckinPartenza\"] : null;\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.voloTratta = _data[\"voloTratta\"] ? VoloTratta.fromJS(_data[\"voloTratta\"]) : null;\r\n this.compagnia = _data[\"compagnia\"] ? CompagniaAerea.fromJS(_data[\"compagnia\"]) : null;\r\n this.compagniaOperated = _data[\"compagniaOperated\"] ? CompagniaAerea.fromJS(_data[\"compagniaOperated\"]) : null;\r\n this.daAeroporto = _data[\"daAeroporto\"] ? Aeroporto.fromJS(_data[\"daAeroporto\"]) : null;\r\n this.adAeroporto = _data[\"adAeroporto\"] ? Aeroporto.fromJS(_data[\"adAeroporto\"]) : null;\r\n this.arrivoIlGiornoDopo = _data[\"arrivoIlGiornoDopo\"] !== undefined ? _data[\"arrivoIlGiornoDopo\"] : null;\r\n this.stato = _data[\"stato\"] ? StatoVolo.fromJS(_data[\"stato\"]) : null;\r\n this.voloInternazionale = _data[\"voloInternazionale\"] !== undefined ? _data[\"voloInternazionale\"] : null;\r\n this.minutiCheckinPartenza = _data[\"minutiCheckinPartenza\"] !== undefined ? _data[\"minutiCheckinPartenza\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloTrattaInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloTrattaInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"_MinutiCheckinPartenza\"] = this._MinutiCheckinPartenza !== undefined ? this._MinutiCheckinPartenza : null;\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"voloTratta\"] = this.voloTratta ? this.voloTratta.toJSON() : null;\r\n data[\"compagnia\"] = this.compagnia ? this.compagnia.toJSON() : null;\r\n data[\"compagniaOperated\"] = this.compagniaOperated ? this.compagniaOperated.toJSON() : null;\r\n data[\"daAeroporto\"] = this.daAeroporto ? this.daAeroporto.toJSON() : null;\r\n data[\"adAeroporto\"] = this.adAeroporto ? this.adAeroporto.toJSON() : null;\r\n data[\"arrivoIlGiornoDopo\"] = this.arrivoIlGiornoDopo !== undefined ? this.arrivoIlGiornoDopo : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"voloInternazionale\"] = this.voloInternazionale !== undefined ? this.voloInternazionale : null;\r\n data[\"minutiCheckinPartenza\"] = this.minutiCheckinPartenza !== undefined ? this.minutiCheckinPartenza : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloTrattaInfo {\r\n _MinutiCheckinPartenza?: number | null;\r\n id?: number;\r\n voloTratta?: VoloTratta | null;\r\n compagnia?: CompagniaAerea | null;\r\n compagniaOperated?: CompagniaAerea | null;\r\n daAeroporto?: Aeroporto | null;\r\n adAeroporto?: Aeroporto | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n stato?: StatoVolo | null;\r\n voloInternazionale?: boolean;\r\n minutiCheckinPartenza?: number;\r\n}\r\n\r\nexport class VoloTicketsInfo implements IVoloTicketsInfo {\r\n id?: number;\r\n voloTickets?: VoloTickets;\r\n isValid?: boolean;\r\n offertaID?: number;\r\n volo?: Volo | null;\r\n voloID?: number | null;\r\n ordine?: number;\r\n cliente?: Cliente | null;\r\n\r\n constructor(data?: IVoloTicketsInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.voloTickets = _data[\"voloTickets\"] ? VoloTickets.fromJS(_data[\"voloTickets\"]) : null;\r\n this.isValid = _data[\"isValid\"] !== undefined ? _data[\"isValid\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.volo = _data[\"volo\"] ? Volo.fromJS(_data[\"volo\"]) : null;\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.cliente = _data[\"cliente\"] ? Cliente.fromJS(_data[\"cliente\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloTicketsInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloTicketsInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"voloTickets\"] = this.voloTickets ? this.voloTickets.toJSON() : null;\r\n data[\"isValid\"] = this.isValid !== undefined ? this.isValid : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"volo\"] = this.volo ? this.volo.toJSON() : null;\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"cliente\"] = this.cliente ? this.cliente.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloTicketsInfo {\r\n id?: number;\r\n voloTickets?: VoloTickets;\r\n isValid?: boolean;\r\n offertaID?: number;\r\n volo?: Volo | null;\r\n voloID?: number | null;\r\n ordine?: number;\r\n cliente?: Cliente | null;\r\n}\r\n\r\nexport class VoloTickets implements IVoloTickets {\r\n id?: number;\r\n offertaID?: number;\r\n voloID?: number | null;\r\n clienteID?: number | null;\r\n testoTicket?: string | null;\r\n ordine?: number;\r\n\r\n constructor(data?: IVoloTickets) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n this.testoTicket = _data[\"testoTicket\"] !== undefined ? _data[\"testoTicket\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoloTickets {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoloTickets();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n data[\"testoTicket\"] = this.testoTicket !== undefined ? this.testoTicket : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoloTickets {\r\n id?: number;\r\n offertaID?: number;\r\n voloID?: number | null;\r\n clienteID?: number | null;\r\n testoTicket?: string | null;\r\n ordine?: number;\r\n}\r\n\r\nexport class VoucherInfo implements IVoucherInfo {\r\n offerta?: OffertaInfo | null;\r\n isPreview?: boolean;\r\n id?: number;\r\n voucher?: Voucher | null;\r\n nr?: string | null;\r\n idStr?: string | null;\r\n testata?: string | null;\r\n prenotazione?: string | null;\r\n clienti?: string | null;\r\n clientiText?: string | null;\r\n servizio?: string | null;\r\n periodo?: string | null;\r\n istruzioni?: string | null;\r\n\r\n constructor(data?: IVoucherInfo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offerta = _data[\"offerta\"] ? OffertaInfo.fromJS(_data[\"offerta\"]) : null;\r\n this.isPreview = _data[\"isPreview\"] !== undefined ? _data[\"isPreview\"] : null;\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.voucher = _data[\"voucher\"] ? Voucher.fromJS(_data[\"voucher\"]) : null;\r\n this.nr = _data[\"nr\"] !== undefined ? _data[\"nr\"] : null;\r\n this.idStr = _data[\"idStr\"] !== undefined ? _data[\"idStr\"] : null;\r\n this.testata = _data[\"testata\"] !== undefined ? _data[\"testata\"] : null;\r\n this.prenotazione = _data[\"prenotazione\"] !== undefined ? _data[\"prenotazione\"] : null;\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n this.clientiText = _data[\"clientiText\"] !== undefined ? _data[\"clientiText\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.periodo = _data[\"periodo\"] !== undefined ? _data[\"periodo\"] : null;\r\n this.istruzioni = _data[\"istruzioni\"] !== undefined ? _data[\"istruzioni\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoucherInfo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoucherInfo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"isPreview\"] = this.isPreview !== undefined ? this.isPreview : null;\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"voucher\"] = this.voucher ? this.voucher.toJSON() : null;\r\n data[\"nr\"] = this.nr !== undefined ? this.nr : null;\r\n data[\"idStr\"] = this.idStr !== undefined ? this.idStr : null;\r\n data[\"testata\"] = this.testata !== undefined ? this.testata : null;\r\n data[\"prenotazione\"] = this.prenotazione !== undefined ? this.prenotazione : null;\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n data[\"clientiText\"] = this.clientiText !== undefined ? this.clientiText : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"periodo\"] = this.periodo !== undefined ? this.periodo : null;\r\n data[\"istruzioni\"] = this.istruzioni !== undefined ? this.istruzioni : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoucherInfo {\r\n offerta?: OffertaInfo | null;\r\n isPreview?: boolean;\r\n id?: number;\r\n voucher?: Voucher | null;\r\n nr?: string | null;\r\n idStr?: string | null;\r\n testata?: string | null;\r\n prenotazione?: string | null;\r\n clienti?: string | null;\r\n clientiText?: string | null;\r\n servizio?: string | null;\r\n periodo?: string | null;\r\n istruzioni?: string | null;\r\n}\r\n\r\nexport class SectionUffici extends ExportableSection implements ISectionUffici {\r\n uffici?: RigaUfficio[] | null;\r\n\r\n constructor(data?: ISectionUffici) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"uffici\"])) {\r\n this.uffici = [] as any;\r\n for (let item of _data[\"uffici\"])\r\n this.uffici!.push(RigaUfficio.fromJS(item));\r\n }\r\n else {\r\n this.uffici = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionUffici {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionUffici();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.uffici)) {\r\n data[\"uffici\"] = [];\r\n for (let item of this.uffici)\r\n data[\"uffici\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionUffici extends IExportableSection {\r\n uffici?: RigaUfficio[] | null;\r\n}\r\n\r\nexport class RigaUfficio implements IRigaUfficio {\r\n nome?: string | null;\r\n telefono?: string | null;\r\n testo?: string | null;\r\n servizi?: ServizioUfficio[] | null;\r\n\r\n constructor(data?: IRigaUfficio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServizioUfficio.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): RigaUfficio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RigaUfficio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRigaUfficio {\r\n nome?: string | null;\r\n telefono?: string | null;\r\n testo?: string | null;\r\n servizi?: ServizioUfficio[] | null;\r\n}\r\n\r\nexport class ServizioUfficio implements IServizioUfficio {\r\n tipo?: ETipoServizio;\r\n luogo?: string | null;\r\n nome?: string | null;\r\n date?: string | null;\r\n\r\n constructor(data?: IServizioUfficio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioUfficio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioUfficio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioUfficio {\r\n tipo?: ETipoServizio;\r\n luogo?: string | null;\r\n nome?: string | null;\r\n date?: string | null;\r\n}\r\n\r\nexport class SectionInfoHotel extends ExportableSection implements ISectionInfoHotel {\r\n elencoHotel?: HotelDescrizione[] | null;\r\n\r\n constructor(data?: ISectionInfoHotel) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"elencoHotel\"])) {\r\n this.elencoHotel = [] as any;\r\n for (let item of _data[\"elencoHotel\"])\r\n this.elencoHotel!.push(HotelDescrizione.fromJS(item));\r\n }\r\n else {\r\n this.elencoHotel = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionInfoHotel {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionInfoHotel();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.elencoHotel)) {\r\n data[\"elencoHotel\"] = [];\r\n for (let item of this.elencoHotel)\r\n data[\"elencoHotel\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionInfoHotel extends IExportableSection {\r\n elencoHotel?: HotelDescrizione[] | null;\r\n}\r\n\r\nexport class HotelDescrizione implements IHotelDescrizione {\r\n inizio?: string;\r\n fine?: string;\r\n notti?: number;\r\n servizioID?: number | null;\r\n lat?: number | null;\r\n lon?: number | null;\r\n zoom?: number | null;\r\n descrizione?: string | null;\r\n contattoId?: number;\r\n contattoNome?: string | null;\r\n contattoLuogo?: string | null;\r\n contattoIndirizzo?: string | null;\r\n contattoTelefono?: string | null;\r\n imagesUrl?: string[] | null;\r\n vouchers?: ReservationVoucher[] | null;\r\n coverImageUrl?: string | null;\r\n mapGoogleUrl?: string | null;\r\n\r\n constructor(data?: IHotelDescrizione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.inizio = _data[\"inizio\"] !== undefined ? _data[\"inizio\"] : null;\r\n this.fine = _data[\"fine\"] !== undefined ? _data[\"fine\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.lat = _data[\"lat\"] !== undefined ? _data[\"lat\"] : null;\r\n this.lon = _data[\"lon\"] !== undefined ? _data[\"lon\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n this.contattoNome = _data[\"contattoNome\"] !== undefined ? _data[\"contattoNome\"] : null;\r\n this.contattoLuogo = _data[\"contattoLuogo\"] !== undefined ? _data[\"contattoLuogo\"] : null;\r\n this.contattoIndirizzo = _data[\"contattoIndirizzo\"] !== undefined ? _data[\"contattoIndirizzo\"] : null;\r\n this.contattoTelefono = _data[\"contattoTelefono\"] !== undefined ? _data[\"contattoTelefono\"] : null;\r\n if (Array.isArray(_data[\"imagesUrl\"])) {\r\n this.imagesUrl = [] as any;\r\n for (let item of _data[\"imagesUrl\"])\r\n this.imagesUrl!.push(item);\r\n }\r\n else {\r\n this.imagesUrl = null;\r\n }\r\n if (Array.isArray(_data[\"vouchers\"])) {\r\n this.vouchers = [] as any;\r\n for (let item of _data[\"vouchers\"])\r\n this.vouchers!.push(ReservationVoucher.fromJS(item));\r\n }\r\n else {\r\n this.vouchers = null;\r\n }\r\n this.coverImageUrl = _data[\"coverImageUrl\"] !== undefined ? _data[\"coverImageUrl\"] : null;\r\n this.mapGoogleUrl = _data[\"mapGoogleUrl\"] !== undefined ? _data[\"mapGoogleUrl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HotelDescrizione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HotelDescrizione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"inizio\"] = this.inizio !== undefined ? this.inizio : null;\r\n data[\"fine\"] = this.fine !== undefined ? this.fine : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"lon\"] = this.lon !== undefined ? this.lon : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n data[\"contattoNome\"] = this.contattoNome !== undefined ? this.contattoNome : null;\r\n data[\"contattoLuogo\"] = this.contattoLuogo !== undefined ? this.contattoLuogo : null;\r\n data[\"contattoIndirizzo\"] = this.contattoIndirizzo !== undefined ? this.contattoIndirizzo : null;\r\n data[\"contattoTelefono\"] = this.contattoTelefono !== undefined ? this.contattoTelefono : null;\r\n if (Array.isArray(this.imagesUrl)) {\r\n data[\"imagesUrl\"] = [];\r\n for (let item of this.imagesUrl)\r\n data[\"imagesUrl\"].push(item);\r\n }\r\n if (Array.isArray(this.vouchers)) {\r\n data[\"vouchers\"] = [];\r\n for (let item of this.vouchers)\r\n data[\"vouchers\"].push(item.toJSON());\r\n }\r\n data[\"coverImageUrl\"] = this.coverImageUrl !== undefined ? this.coverImageUrl : null;\r\n data[\"mapGoogleUrl\"] = this.mapGoogleUrl !== undefined ? this.mapGoogleUrl : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHotelDescrizione {\r\n inizio?: string;\r\n fine?: string;\r\n notti?: number;\r\n servizioID?: number | null;\r\n lat?: number | null;\r\n lon?: number | null;\r\n zoom?: number | null;\r\n descrizione?: string | null;\r\n contattoId?: number;\r\n contattoNome?: string | null;\r\n contattoLuogo?: string | null;\r\n contattoIndirizzo?: string | null;\r\n contattoTelefono?: string | null;\r\n imagesUrl?: string[] | null;\r\n vouchers?: ReservationVoucher[] | null;\r\n coverImageUrl?: string | null;\r\n mapGoogleUrl?: string | null;\r\n}\r\n\r\nexport class ReservationVoucher implements IReservationVoucher {\r\n nr?: string | null;\r\n voucherID?: number;\r\n offertaID?: number | null;\r\n ordine?: number | null;\r\n testata?: string | null;\r\n bookingRef?: string | null;\r\n clienti?: string | null;\r\n descrizioneServizio?: string | null;\r\n periodo?: string | null;\r\n dettaglio?: string | null;\r\n istruzioni?: string | null;\r\n servizioID?: number | null;\r\n lingua?: ELingua | null;\r\n versione?: number;\r\n paxList?: string[] | null;\r\n\r\n constructor(data?: IReservationVoucher) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nr = _data[\"nr\"] !== undefined ? _data[\"nr\"] : null;\r\n this.voucherID = _data[\"voucherID\"] !== undefined ? _data[\"voucherID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.testata = _data[\"testata\"] !== undefined ? _data[\"testata\"] : null;\r\n this.bookingRef = _data[\"bookingRef\"] !== undefined ? _data[\"bookingRef\"] : null;\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n this.descrizioneServizio = _data[\"descrizioneServizio\"] !== undefined ? _data[\"descrizioneServizio\"] : null;\r\n this.periodo = _data[\"periodo\"] !== undefined ? _data[\"periodo\"] : null;\r\n this.dettaglio = _data[\"dettaglio\"] !== undefined ? _data[\"dettaglio\"] : null;\r\n this.istruzioni = _data[\"istruzioni\"] !== undefined ? _data[\"istruzioni\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.versione = _data[\"versione\"] !== undefined ? _data[\"versione\"] : null;\r\n if (Array.isArray(_data[\"paxList\"])) {\r\n this.paxList = [] as any;\r\n for (let item of _data[\"paxList\"])\r\n this.paxList!.push(item);\r\n }\r\n else {\r\n this.paxList = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReservationVoucher {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReservationVoucher();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nr\"] = this.nr !== undefined ? this.nr : null;\r\n data[\"voucherID\"] = this.voucherID !== undefined ? this.voucherID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"testata\"] = this.testata !== undefined ? this.testata : null;\r\n data[\"bookingRef\"] = this.bookingRef !== undefined ? this.bookingRef : null;\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n data[\"descrizioneServizio\"] = this.descrizioneServizio !== undefined ? this.descrizioneServizio : null;\r\n data[\"periodo\"] = this.periodo !== undefined ? this.periodo : null;\r\n data[\"dettaglio\"] = this.dettaglio !== undefined ? this.dettaglio : null;\r\n data[\"istruzioni\"] = this.istruzioni !== undefined ? this.istruzioni : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"versione\"] = this.versione !== undefined ? this.versione : null;\r\n if (Array.isArray(this.paxList)) {\r\n data[\"paxList\"] = [];\r\n for (let item of this.paxList)\r\n data[\"paxList\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReservationVoucher {\r\n nr?: string | null;\r\n voucherID?: number;\r\n offertaID?: number | null;\r\n ordine?: number | null;\r\n testata?: string | null;\r\n bookingRef?: string | null;\r\n clienti?: string | null;\r\n descrizioneServizio?: string | null;\r\n periodo?: string | null;\r\n dettaglio?: string | null;\r\n istruzioni?: string | null;\r\n servizioID?: number | null;\r\n lingua?: ELingua | null;\r\n versione?: number;\r\n paxList?: string[] | null;\r\n}\r\n\r\nexport class SectionNote extends ExportableSection implements ISectionNote {\r\n note?: string | null;\r\n\r\n constructor(data?: ISectionNote) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionNote {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionNote();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionNote extends IExportableSection {\r\n note?: string | null;\r\n}\r\n\r\nexport class SectionProgrammaDiViaggio extends ExportableSection implements ISectionProgrammaDiViaggio {\r\n days?: PdvDay[] | null;\r\n\r\n constructor(data?: ISectionProgrammaDiViaggio) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"days\"])) {\r\n this.days = [] as any;\r\n for (let item of _data[\"days\"])\r\n this.days!.push(PdvDay.fromJS(item));\r\n }\r\n else {\r\n this.days = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionProgrammaDiViaggio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionProgrammaDiViaggio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.days)) {\r\n data[\"days\"] = [];\r\n for (let item of this.days)\r\n data[\"days\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionProgrammaDiViaggio extends IExportableSection {\r\n days?: PdvDay[] | null;\r\n}\r\n\r\nexport class PdvDay implements IPdvDay {\r\n orePrima?: number;\r\n minutiPrima?: number;\r\n giorno?: number;\r\n inizio?: string;\r\n fine?: string | null;\r\n locations?: string | null;\r\n headerDate?: string | null;\r\n testo?: string | null;\r\n voli?: PdvVolo[] | null;\r\n immagini?: PdvImage[] | null;\r\n elencoServizi?: PdvServizio[] | null;\r\n cityMap?: PdvImage | null;\r\n\r\n constructor(data?: IPdvDay) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.orePrima = _data[\"orePrima\"] !== undefined ? _data[\"orePrima\"] : null;\r\n this.minutiPrima = _data[\"minutiPrima\"] !== undefined ? _data[\"minutiPrima\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.inizio = _data[\"inizio\"] !== undefined ? _data[\"inizio\"] : null;\r\n this.fine = _data[\"fine\"] !== undefined ? _data[\"fine\"] : null;\r\n this.locations = _data[\"locations\"] !== undefined ? _data[\"locations\"] : null;\r\n this.headerDate = _data[\"headerDate\"] !== undefined ? _data[\"headerDate\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n if (Array.isArray(_data[\"voli\"])) {\r\n this.voli = [] as any;\r\n for (let item of _data[\"voli\"])\r\n this.voli!.push(PdvVolo.fromJS(item));\r\n }\r\n else {\r\n this.voli = null;\r\n }\r\n if (Array.isArray(_data[\"immagini\"])) {\r\n this.immagini = [] as any;\r\n for (let item of _data[\"immagini\"])\r\n this.immagini!.push(PdvImage.fromJS(item));\r\n }\r\n else {\r\n this.immagini = null;\r\n }\r\n if (Array.isArray(_data[\"elencoServizi\"])) {\r\n this.elencoServizi = [] as any;\r\n for (let item of _data[\"elencoServizi\"])\r\n this.elencoServizi!.push(PdvServizio.fromJS(item));\r\n }\r\n else {\r\n this.elencoServizi = null;\r\n }\r\n this.cityMap = _data[\"cityMap\"] ? PdvImage.fromJS(_data[\"cityMap\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PdvDay {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PdvDay();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"orePrima\"] = this.orePrima !== undefined ? this.orePrima : null;\r\n data[\"minutiPrima\"] = this.minutiPrima !== undefined ? this.minutiPrima : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"inizio\"] = this.inizio !== undefined ? this.inizio : null;\r\n data[\"fine\"] = this.fine !== undefined ? this.fine : null;\r\n data[\"locations\"] = this.locations !== undefined ? this.locations : null;\r\n data[\"headerDate\"] = this.headerDate !== undefined ? this.headerDate : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n if (Array.isArray(this.voli)) {\r\n data[\"voli\"] = [];\r\n for (let item of this.voli)\r\n data[\"voli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.immagini)) {\r\n data[\"immagini\"] = [];\r\n for (let item of this.immagini)\r\n data[\"immagini\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.elencoServizi)) {\r\n data[\"elencoServizi\"] = [];\r\n for (let item of this.elencoServizi)\r\n data[\"elencoServizi\"].push(item.toJSON());\r\n }\r\n data[\"cityMap\"] = this.cityMap ? this.cityMap.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPdvDay {\r\n orePrima?: number;\r\n minutiPrima?: number;\r\n giorno?: number;\r\n inizio?: string;\r\n fine?: string | null;\r\n locations?: string | null;\r\n headerDate?: string | null;\r\n testo?: string | null;\r\n voli?: PdvVolo[] | null;\r\n immagini?: PdvImage[] | null;\r\n elencoServizi?: PdvServizio[] | null;\r\n cityMap?: PdvImage | null;\r\n}\r\n\r\nexport class PdvVolo implements IPdvVolo {\r\n compagniaNome?: string | null;\r\n compagniaCodice?: string | null;\r\n numeroVolo?: number;\r\n partenza?: string | null;\r\n partenzaAeroporto?: string | null;\r\n arrivo?: string | null;\r\n arrivoAeroporto?: string | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n\r\n constructor(data?: IPdvVolo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.compagniaNome = _data[\"compagniaNome\"] !== undefined ? _data[\"compagniaNome\"] : null;\r\n this.compagniaCodice = _data[\"compagniaCodice\"] !== undefined ? _data[\"compagniaCodice\"] : null;\r\n this.numeroVolo = _data[\"numeroVolo\"] !== undefined ? _data[\"numeroVolo\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.partenzaAeroporto = _data[\"partenzaAeroporto\"] !== undefined ? _data[\"partenzaAeroporto\"] : null;\r\n this.arrivo = _data[\"arrivo\"] !== undefined ? _data[\"arrivo\"] : null;\r\n this.arrivoAeroporto = _data[\"arrivoAeroporto\"] !== undefined ? _data[\"arrivoAeroporto\"] : null;\r\n this.arrivoIlGiornoDopo = _data[\"arrivoIlGiornoDopo\"] !== undefined ? _data[\"arrivoIlGiornoDopo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PdvVolo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PdvVolo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"compagniaNome\"] = this.compagniaNome !== undefined ? this.compagniaNome : null;\r\n data[\"compagniaCodice\"] = this.compagniaCodice !== undefined ? this.compagniaCodice : null;\r\n data[\"numeroVolo\"] = this.numeroVolo !== undefined ? this.numeroVolo : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"partenzaAeroporto\"] = this.partenzaAeroporto !== undefined ? this.partenzaAeroporto : null;\r\n data[\"arrivo\"] = this.arrivo !== undefined ? this.arrivo : null;\r\n data[\"arrivoAeroporto\"] = this.arrivoAeroporto !== undefined ? this.arrivoAeroporto : null;\r\n data[\"arrivoIlGiornoDopo\"] = this.arrivoIlGiornoDopo !== undefined ? this.arrivoIlGiornoDopo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPdvVolo {\r\n compagniaNome?: string | null;\r\n compagniaCodice?: string | null;\r\n numeroVolo?: number;\r\n partenza?: string | null;\r\n partenzaAeroporto?: string | null;\r\n arrivo?: string | null;\r\n arrivoAeroporto?: string | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n}\r\n\r\nexport class PdvImage implements IPdvImage {\r\n id?: number;\r\n url?: string | null;\r\n caption?: string | null;\r\n\r\n constructor(data?: IPdvImage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.caption = _data[\"caption\"] !== undefined ? _data[\"caption\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PdvImage {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PdvImage();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"caption\"] = this.caption !== undefined ? this.caption : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPdvImage {\r\n id?: number;\r\n url?: string | null;\r\n caption?: string | null;\r\n}\r\n\r\nexport class PdvServizio implements IPdvServizio {\r\n nome?: string | null;\r\n descrizione?: string | null;\r\n durata?: number;\r\n data?: string | null;\r\n tipoServizio?: ETipoServizio;\r\n imageUrl?: string | null;\r\n idServizio?: number;\r\n puntoIniziale?: TripServiceLocation | null;\r\n puntoFinale?: TripServiceLocation | null;\r\n\r\n constructor(data?: IPdvServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.durata = _data[\"durata\"] !== undefined ? _data[\"durata\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.imageUrl = _data[\"imageUrl\"] !== undefined ? _data[\"imageUrl\"] : null;\r\n this.idServizio = _data[\"idServizio\"] !== undefined ? _data[\"idServizio\"] : null;\r\n this.puntoIniziale = _data[\"puntoIniziale\"] ? TripServiceLocation.fromJS(_data[\"puntoIniziale\"]) : null;\r\n this.puntoFinale = _data[\"puntoFinale\"] ? TripServiceLocation.fromJS(_data[\"puntoFinale\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PdvServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PdvServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"durata\"] = this.durata !== undefined ? this.durata : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"imageUrl\"] = this.imageUrl !== undefined ? this.imageUrl : null;\r\n data[\"idServizio\"] = this.idServizio !== undefined ? this.idServizio : null;\r\n data[\"puntoIniziale\"] = this.puntoIniziale ? this.puntoIniziale.toJSON() : null;\r\n data[\"puntoFinale\"] = this.puntoFinale ? this.puntoFinale.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPdvServizio {\r\n nome?: string | null;\r\n descrizione?: string | null;\r\n durata?: number;\r\n data?: string | null;\r\n tipoServizio?: ETipoServizio;\r\n imageUrl?: string | null;\r\n idServizio?: number;\r\n puntoIniziale?: TripServiceLocation | null;\r\n puntoFinale?: TripServiceLocation | null;\r\n}\r\n\r\nexport class TripServiceLocation implements ITripServiceLocation {\r\n contattoId?: number;\r\n /** Data e ora */\r\n date?: string;\r\n /** Nome del luogo / contatto */\r\n nome?: string | null;\r\n /** Indirizzo */\r\n indirizzo?: string | null;\r\n /** Numero civico */\r\n numero?: string | null;\r\n /** Cap */\r\n cap?: string | null;\r\n /** Nome del luogo (in lingua) */\r\n luogo?: string | null;\r\n /** Ulteriori dettagli */\r\n dettagli?: string | null;\r\n\r\n constructor(data?: ITripServiceLocation) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.numero = _data[\"numero\"] !== undefined ? _data[\"numero\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.dettagli = _data[\"dettagli\"] !== undefined ? _data[\"dettagli\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripServiceLocation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripServiceLocation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"numero\"] = this.numero !== undefined ? this.numero : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"dettagli\"] = this.dettagli !== undefined ? this.dettagli : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripServiceLocation {\r\n contattoId?: number;\r\n /** Data e ora */\r\n date?: string;\r\n /** Nome del luogo / contatto */\r\n nome?: string | null;\r\n /** Indirizzo */\r\n indirizzo?: string | null;\r\n /** Numero civico */\r\n numero?: string | null;\r\n /** Cap */\r\n cap?: string | null;\r\n /** Nome del luogo (in lingua) */\r\n luogo?: string | null;\r\n /** Ulteriori dettagli */\r\n dettagli?: string | null;\r\n}\r\n\r\nexport class SectionAssistenza implements ISectionAssistenza {\r\n titolo?: string | null;\r\n testo?: string | null;\r\n\r\n constructor(data?: ISectionAssistenza) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionAssistenza {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionAssistenza();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionAssistenza {\r\n titolo?: string | null;\r\n testo?: string | null;\r\n}\r\n\r\nexport class SectionAssicurazione implements ISectionAssicurazione {\r\n titolo?: string | null;\r\n testo?: string | null;\r\n qrCodeUrl?: string | null;\r\n idServizio?: number;\r\n\r\n constructor(data?: ISectionAssicurazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.qrCodeUrl = _data[\"qrCodeUrl\"] !== undefined ? _data[\"qrCodeUrl\"] : null;\r\n this.idServizio = _data[\"idServizio\"] !== undefined ? _data[\"idServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionAssicurazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionAssicurazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"qrCodeUrl\"] = this.qrCodeUrl !== undefined ? this.qrCodeUrl : null;\r\n data[\"idServizio\"] = this.idServizio !== undefined ? this.idServizio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionAssicurazione {\r\n titolo?: string | null;\r\n testo?: string | null;\r\n qrCodeUrl?: string | null;\r\n idServizio?: number;\r\n}\r\n\r\nexport class SectionElencoVoucher extends ExportableSection implements ISectionElencoVoucher {\r\n elencoServizi?: ServizioVoucher[] | null;\r\n\r\n constructor(data?: ISectionElencoVoucher) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"elencoServizi\"])) {\r\n this.elencoServizi = [] as any;\r\n for (let item of _data[\"elencoServizi\"])\r\n this.elencoServizi!.push(ServizioVoucher.fromJS(item));\r\n }\r\n else {\r\n this.elencoServizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionElencoVoucher {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionElencoVoucher();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.elencoServizi)) {\r\n data[\"elencoServizi\"] = [];\r\n for (let item of this.elencoServizi)\r\n data[\"elencoServizi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionElencoVoucher extends IExportableSection {\r\n elencoServizi?: ServizioVoucher[] | null;\r\n}\r\n\r\n/** Si carica i dati del servizio necessari al voucher */\r\nexport class ServizioVoucher extends HotelDescrizione implements IServizioVoucher {\r\n descrizioniRighe?: string[] | null;\r\n tipoServizio?: ETipoServizio;\r\n nome?: string | null;\r\n stelle?: number | null;\r\n /** Dati del punto iniziale */\r\n puntoIniziale?: TripServiceLocation | null;\r\n /** Dati del punto finale */\r\n puntoFinale?: TripServiceLocation | null;\r\n offertaId?: number;\r\n bookingRef?: string | null;\r\n paxList?: VoucherPax[] | null;\r\n lingua?: ELingua;\r\n dettaglio?: string | null;\r\n note?: string[] | null;\r\n datiaggiuntivi?: string[] | null;\r\n statusServizio?: EStatusServizio | null;\r\n\r\n constructor(data?: IServizioVoucher) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"descrizioniRighe\"])) {\r\n this.descrizioniRighe = [] as any;\r\n for (let item of _data[\"descrizioniRighe\"])\r\n this.descrizioniRighe!.push(item);\r\n }\r\n else {\r\n this.descrizioniRighe = null;\r\n }\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.stelle = _data[\"stelle\"] !== undefined ? _data[\"stelle\"] : null;\r\n this.puntoIniziale = _data[\"puntoIniziale\"] ? TripServiceLocation.fromJS(_data[\"puntoIniziale\"]) : null;\r\n this.puntoFinale = _data[\"puntoFinale\"] ? TripServiceLocation.fromJS(_data[\"puntoFinale\"]) : null;\r\n this.offertaId = _data[\"offertaId\"] !== undefined ? _data[\"offertaId\"] : null;\r\n this.bookingRef = _data[\"bookingRef\"] !== undefined ? _data[\"bookingRef\"] : null;\r\n if (Array.isArray(_data[\"paxList\"])) {\r\n this.paxList = [] as any;\r\n for (let item of _data[\"paxList\"])\r\n this.paxList!.push(VoucherPax.fromJS(item));\r\n }\r\n else {\r\n this.paxList = null;\r\n }\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.dettaglio = _data[\"dettaglio\"] !== undefined ? _data[\"dettaglio\"] : null;\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(item);\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n if (Array.isArray(_data[\"datiaggiuntivi\"])) {\r\n this.datiaggiuntivi = [] as any;\r\n for (let item of _data[\"datiaggiuntivi\"])\r\n this.datiaggiuntivi!.push(item);\r\n }\r\n else {\r\n this.datiaggiuntivi = null;\r\n }\r\n this.statusServizio = _data[\"statusServizio\"] !== undefined ? _data[\"statusServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioVoucher {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioVoucher();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.descrizioniRighe)) {\r\n data[\"descrizioniRighe\"] = [];\r\n for (let item of this.descrizioniRighe)\r\n data[\"descrizioniRighe\"].push(item);\r\n }\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"stelle\"] = this.stelle !== undefined ? this.stelle : null;\r\n data[\"puntoIniziale\"] = this.puntoIniziale ? this.puntoIniziale.toJSON() : null;\r\n data[\"puntoFinale\"] = this.puntoFinale ? this.puntoFinale.toJSON() : null;\r\n data[\"offertaId\"] = this.offertaId !== undefined ? this.offertaId : null;\r\n data[\"bookingRef\"] = this.bookingRef !== undefined ? this.bookingRef : null;\r\n if (Array.isArray(this.paxList)) {\r\n data[\"paxList\"] = [];\r\n for (let item of this.paxList)\r\n data[\"paxList\"].push(item.toJSON());\r\n }\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"dettaglio\"] = this.dettaglio !== undefined ? this.dettaglio : null;\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item);\r\n }\r\n if (Array.isArray(this.datiaggiuntivi)) {\r\n data[\"datiaggiuntivi\"] = [];\r\n for (let item of this.datiaggiuntivi)\r\n data[\"datiaggiuntivi\"].push(item);\r\n }\r\n data[\"statusServizio\"] = this.statusServizio !== undefined ? this.statusServizio : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Si carica i dati del servizio necessari al voucher */\r\nexport interface IServizioVoucher extends IHotelDescrizione {\r\n descrizioniRighe?: string[] | null;\r\n tipoServizio?: ETipoServizio;\r\n nome?: string | null;\r\n stelle?: number | null;\r\n /** Dati del punto iniziale */\r\n puntoIniziale?: TripServiceLocation | null;\r\n /** Dati del punto finale */\r\n puntoFinale?: TripServiceLocation | null;\r\n offertaId?: number;\r\n bookingRef?: string | null;\r\n paxList?: VoucherPax[] | null;\r\n lingua?: ELingua;\r\n dettaglio?: string | null;\r\n note?: string[] | null;\r\n datiaggiuntivi?: string[] | null;\r\n statusServizio?: EStatusServizio | null;\r\n}\r\n\r\n/** Ritaglio dei dati utente necessari per i voucher */\r\nexport class VoucherPax implements IVoucherPax {\r\n titolo?: ETitolo;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n isChild?: boolean;\r\n\r\n constructor(data?: IVoucherPax) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.isChild = _data[\"isChild\"] !== undefined ? _data[\"isChild\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoucherPax {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoucherPax();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"isChild\"] = this.isChild !== undefined ? this.isChild : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Ritaglio dei dati utente necessari per i voucher */\r\nexport interface IVoucherPax {\r\n titolo?: ETitolo;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n isChild?: boolean;\r\n}\r\n\r\nexport class SectionMiniguide implements ISectionMiniguide {\r\n elencoMiniguide?: Miniguida[] | null;\r\n\r\n constructor(data?: ISectionMiniguide) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"elencoMiniguide\"])) {\r\n this.elencoMiniguide = [] as any;\r\n for (let item of _data[\"elencoMiniguide\"])\r\n this.elencoMiniguide!.push(Miniguida.fromJS(item));\r\n }\r\n else {\r\n this.elencoMiniguide = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionMiniguide {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionMiniguide();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.elencoMiniguide)) {\r\n data[\"elencoMiniguide\"] = [];\r\n for (let item of this.elencoMiniguide)\r\n data[\"elencoMiniguide\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionMiniguide {\r\n elencoMiniguide?: Miniguida[] | null;\r\n}\r\n\r\nexport class Miniguida extends MiniguidaHeader implements IMiniguida {\r\n giorno?: number;\r\n priorita?: number;\r\n text?: string | null;\r\n numImmagini?: number;\r\n\r\n constructor(data?: IMiniguida) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.numImmagini = _data[\"numImmagini\"] !== undefined ? _data[\"numImmagini\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Miniguida {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Miniguida();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"numImmagini\"] = this.numImmagini !== undefined ? this.numImmagini : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMiniguida extends IMiniguidaHeader {\r\n giorno?: number;\r\n priorita?: number;\r\n text?: string | null;\r\n numImmagini?: number;\r\n}\r\n\r\nexport class SectionTicketsVoli implements ISectionTicketsVoli {\r\n elencoTicketsVoli?: VoloTicketsInfo[] | null;\r\n\r\n constructor(data?: ISectionTicketsVoli) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"elencoTicketsVoli\"])) {\r\n this.elencoTicketsVoli = [] as any;\r\n for (let item of _data[\"elencoTicketsVoli\"])\r\n this.elencoTicketsVoli!.push(VoloTicketsInfo.fromJS(item));\r\n }\r\n else {\r\n this.elencoTicketsVoli = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SectionTicketsVoli {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SectionTicketsVoli();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.elencoTicketsVoli)) {\r\n data[\"elencoTicketsVoli\"] = [];\r\n for (let item of this.elencoTicketsVoli)\r\n data[\"elencoTicketsVoli\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISectionTicketsVoli {\r\n elencoTicketsVoli?: VoloTicketsInfo[] | null;\r\n}\r\n\r\nexport class EstremiBancari implements IEstremiBancari {\r\n estremi?: EstremoBancario[];\r\n note?: string[];\r\n\r\n constructor(data?: IEstremiBancari) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"estremi\"])) {\r\n this.estremi = [] as any;\r\n for (let item of _data[\"estremi\"])\r\n this.estremi!.push(EstremoBancario.fromJS(item));\r\n }\r\n else {\r\n this.estremi = null;\r\n }\r\n if (Array.isArray(_data[\"note\"])) {\r\n this.note = [] as any;\r\n for (let item of _data[\"note\"])\r\n this.note!.push(item);\r\n }\r\n else {\r\n this.note = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstremiBancari {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstremiBancari();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.estremi)) {\r\n data[\"estremi\"] = [];\r\n for (let item of this.estremi)\r\n data[\"estremi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.note)) {\r\n data[\"note\"] = [];\r\n for (let item of this.note)\r\n data[\"note\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstremiBancari {\r\n estremi?: EstremoBancario[];\r\n note?: string[];\r\n}\r\n\r\nexport class EstremoBancario implements IEstremoBancario {\r\n nome?: string;\r\n iban?: string;\r\n swift?: string;\r\n\r\n constructor(data?: IEstremoBancario) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.iban = _data[\"iban\"] !== undefined ? _data[\"iban\"] : null;\r\n this.swift = _data[\"swift\"] !== undefined ? _data[\"swift\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EstremoBancario {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EstremoBancario();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"iban\"] = this.iban !== undefined ? this.iban : null;\r\n data[\"swift\"] = this.swift !== undefined ? this.swift : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEstremoBancario {\r\n nome?: string;\r\n iban?: string;\r\n swift?: string;\r\n}\r\n\r\nexport class NoteDocumento implements INoteDocumento {\r\n tipo?: ETipoNota;\r\n testo?: string | null;\r\n data?: string;\r\n\r\n constructor(data?: INoteDocumento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NoteDocumento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NoteDocumento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INoteDocumento {\r\n tipo?: ETipoNota;\r\n testo?: string | null;\r\n data?: string;\r\n}\r\n\r\n/** Richiesta dei dati per formattare un documento */\r\nexport class GetTripDocumentDataRequest extends SiteRequest implements IGetTripDocumentDataRequest {\r\n /** ID utente (ad uso delle anteprime di stampa) */\r\n userID?: string;\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** ID facoltativo di un documento a frasi di cui visualizzare l'anteprima */\r\n documentoID?: number | null;\r\n /** Tipo di documento */\r\n tipoDocumento?: ETipoDocumento;\r\n /** Stringa con le tuple [id_ordine] separate da virgola delle miniguide da usare nel documento */\r\n extraDocs?: string;\r\n\r\n constructor(data?: IGetTripDocumentDataRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.extraDocs = _data[\"extraDocs\"] !== undefined ? _data[\"extraDocs\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripDocumentDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripDocumentDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"extraDocs\"] = this.extraDocs !== undefined ? this.extraDocs : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Richiesta dei dati per formattare un documento */\r\nexport interface IGetTripDocumentDataRequest extends ISiteRequest {\r\n /** ID utente (ad uso delle anteprime di stampa) */\r\n userID?: string;\r\n /** ID dell'offerta */\r\n offertaID?: number;\r\n /** ID facoltativo di un documento a frasi di cui visualizzare l'anteprima */\r\n documentoID?: number | null;\r\n /** Tipo di documento */\r\n tipoDocumento?: ETipoDocumento;\r\n /** Stringa con le tuple [id_ordine] separate da virgola delle miniguide da usare nel documento */\r\n extraDocs?: string;\r\n}\r\n\r\nexport class GetTripReservationDocDataResponse extends OkApiResponse implements IGetTripReservationDocDataResponse {\r\n prenotazioni?: TripReservation[];\r\n reservationEmitter?: InvoiceEmitter | null;\r\n\r\n constructor(data?: IGetTripReservationDocDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"prenotazioni\"])) {\r\n this.prenotazioni = [] as any;\r\n for (let item of _data[\"prenotazioni\"])\r\n this.prenotazioni!.push(TripReservation.fromJS(item));\r\n }\r\n else {\r\n this.prenotazioni = null;\r\n }\r\n this.reservationEmitter = _data[\"reservationEmitter\"] ? InvoiceEmitter.fromJS(_data[\"reservationEmitter\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripReservationDocDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripReservationDocDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.prenotazioni)) {\r\n data[\"prenotazioni\"] = [];\r\n for (let item of this.prenotazioni)\r\n data[\"prenotazioni\"].push(item.toJSON());\r\n }\r\n data[\"reservationEmitter\"] = this.reservationEmitter ? this.reservationEmitter.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripReservationDocDataResponse extends IOkApiResponse {\r\n prenotazioni?: TripReservation[];\r\n reservationEmitter?: InvoiceEmitter | null;\r\n}\r\n\r\nexport class TripReservation implements ITripReservation {\r\n offertaID?: number;\r\n isNozze?: boolean;\r\n contattoID?: number;\r\n accordo?: string;\r\n elencoAbbinamenti?: TripReservationAbbinamento[];\r\n elencoVoli?: TripReservationFlight[];\r\n hotelsInformation?: TripReservationHotel[];\r\n\r\n constructor(data?: ITripReservation) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.isNozze = _data[\"isNozze\"] !== undefined ? _data[\"isNozze\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n if (Array.isArray(_data[\"elencoAbbinamenti\"])) {\r\n this.elencoAbbinamenti = [] as any;\r\n for (let item of _data[\"elencoAbbinamenti\"])\r\n this.elencoAbbinamenti!.push(TripReservationAbbinamento.fromJS(item));\r\n }\r\n else {\r\n this.elencoAbbinamenti = null;\r\n }\r\n if (Array.isArray(_data[\"elencoVoli\"])) {\r\n this.elencoVoli = [] as any;\r\n for (let item of _data[\"elencoVoli\"])\r\n this.elencoVoli!.push(TripReservationFlight.fromJS(item));\r\n }\r\n else {\r\n this.elencoVoli = null;\r\n }\r\n if (Array.isArray(_data[\"hotelsInformation\"])) {\r\n this.hotelsInformation = [] as any;\r\n for (let item of _data[\"hotelsInformation\"])\r\n this.hotelsInformation!.push(TripReservationHotel.fromJS(item));\r\n }\r\n else {\r\n this.hotelsInformation = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"isNozze\"] = this.isNozze !== undefined ? this.isNozze : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n if (Array.isArray(this.elencoAbbinamenti)) {\r\n data[\"elencoAbbinamenti\"] = [];\r\n for (let item of this.elencoAbbinamenti)\r\n data[\"elencoAbbinamenti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.elencoVoli)) {\r\n data[\"elencoVoli\"] = [];\r\n for (let item of this.elencoVoli)\r\n data[\"elencoVoli\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.hotelsInformation)) {\r\n data[\"hotelsInformation\"] = [];\r\n for (let item of this.hotelsInformation)\r\n data[\"hotelsInformation\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservation {\r\n offertaID?: number;\r\n isNozze?: boolean;\r\n contattoID?: number;\r\n accordo?: string;\r\n elencoAbbinamenti?: TripReservationAbbinamento[];\r\n elencoVoli?: TripReservationFlight[];\r\n hotelsInformation?: TripReservationHotel[];\r\n}\r\n\r\nexport class TripReservationAbbinamento implements ITripReservationAbbinamento {\r\n nome?: string;\r\n pax?: TripReservationPax[];\r\n clienti?: string;\r\n elencoServizi?: TripReservationService[];\r\n totale?: TripReservationServiceTotal;\r\n\r\n constructor(data?: ITripReservationAbbinamento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (Array.isArray(_data[\"pax\"])) {\r\n this.pax = [] as any;\r\n for (let item of _data[\"pax\"])\r\n this.pax!.push(TripReservationPax.fromJS(item));\r\n }\r\n else {\r\n this.pax = null;\r\n }\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n if (Array.isArray(_data[\"elencoServizi\"])) {\r\n this.elencoServizi = [] as any;\r\n for (let item of _data[\"elencoServizi\"])\r\n this.elencoServizi!.push(TripReservationService.fromJS(item));\r\n }\r\n else {\r\n this.elencoServizi = null;\r\n }\r\n this.totale = _data[\"totale\"] ? TripReservationServiceTotal.fromJS(_data[\"totale\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationAbbinamento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationAbbinamento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (Array.isArray(this.pax)) {\r\n data[\"pax\"] = [];\r\n for (let item of this.pax)\r\n data[\"pax\"].push(item.toJSON());\r\n }\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n if (Array.isArray(this.elencoServizi)) {\r\n data[\"elencoServizi\"] = [];\r\n for (let item of this.elencoServizi)\r\n data[\"elencoServizi\"].push(item.toJSON());\r\n }\r\n data[\"totale\"] = this.totale ? this.totale.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationAbbinamento {\r\n nome?: string;\r\n pax?: TripReservationPax[];\r\n clienti?: string;\r\n elencoServizi?: TripReservationService[];\r\n totale?: TripReservationServiceTotal;\r\n}\r\n\r\nexport class TripReservationPax implements ITripReservationPax {\r\n nome?: string;\r\n cognome?: string;\r\n titolo?: ETitolo;\r\n dataDiNascita?: string | null;\r\n isChild?: boolean;\r\n\r\n constructor(data?: ITripReservationPax) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.dataDiNascita = _data[\"dataDiNascita\"] !== undefined ? _data[\"dataDiNascita\"] : null;\r\n this.isChild = _data[\"isChild\"] !== undefined ? _data[\"isChild\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationPax {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationPax();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"dataDiNascita\"] = this.dataDiNascita !== undefined ? this.dataDiNascita : null;\r\n data[\"isChild\"] = this.isChild !== undefined ? this.isChild : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationPax {\r\n nome?: string;\r\n cognome?: string;\r\n titolo?: ETitolo;\r\n dataDiNascita?: string | null;\r\n isChild?: boolean;\r\n}\r\n\r\nexport class TripReservationService implements ITripReservationService {\r\n numeroPrenotazione?: string | null;\r\n stato?: string | null;\r\n tipoServizio?: string | null;\r\n nomeServizio?: string | null;\r\n luogo?: string | null;\r\n data?: string | null;\r\n dataDal?: string | null;\r\n dataAl?: string | null;\r\n notti?: number;\r\n sistemazione?: string | null;\r\n tipologia?: string | null;\r\n tipologiaAddData?: string | null;\r\n trattamento?: string | null;\r\n totalePrenotazione?: TripReservationServiceTotal | null;\r\n note?: string | null;\r\n statusFlag?: number;\r\n\r\n constructor(data?: ITripReservationService) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.numeroPrenotazione = _data[\"numeroPrenotazione\"] !== undefined ? _data[\"numeroPrenotazione\"] : null;\r\n this.stato = _data[\"stato\"] !== undefined ? _data[\"stato\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.nomeServizio = _data[\"nomeServizio\"] !== undefined ? _data[\"nomeServizio\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.dataDal = _data[\"dataDal\"] !== undefined ? _data[\"dataDal\"] : null;\r\n this.dataAl = _data[\"dataAl\"] !== undefined ? _data[\"dataAl\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.sistemazione = _data[\"sistemazione\"] !== undefined ? _data[\"sistemazione\"] : null;\r\n this.tipologia = _data[\"tipologia\"] !== undefined ? _data[\"tipologia\"] : null;\r\n this.tipologiaAddData = _data[\"tipologiaAddData\"] !== undefined ? _data[\"tipologiaAddData\"] : null;\r\n this.trattamento = _data[\"trattamento\"] !== undefined ? _data[\"trattamento\"] : null;\r\n this.totalePrenotazione = _data[\"totalePrenotazione\"] ? TripReservationServiceTotal.fromJS(_data[\"totalePrenotazione\"]) : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.statusFlag = _data[\"statusFlag\"] !== undefined ? _data[\"statusFlag\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationService {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationService();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"numeroPrenotazione\"] = this.numeroPrenotazione !== undefined ? this.numeroPrenotazione : null;\r\n data[\"stato\"] = this.stato !== undefined ? this.stato : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"nomeServizio\"] = this.nomeServizio !== undefined ? this.nomeServizio : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"dataDal\"] = this.dataDal !== undefined ? this.dataDal : null;\r\n data[\"dataAl\"] = this.dataAl !== undefined ? this.dataAl : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"sistemazione\"] = this.sistemazione !== undefined ? this.sistemazione : null;\r\n data[\"tipologia\"] = this.tipologia !== undefined ? this.tipologia : null;\r\n data[\"tipologiaAddData\"] = this.tipologiaAddData !== undefined ? this.tipologiaAddData : null;\r\n data[\"trattamento\"] = this.trattamento !== undefined ? this.trattamento : null;\r\n data[\"totalePrenotazione\"] = this.totalePrenotazione ? this.totalePrenotazione.toJSON() : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"statusFlag\"] = this.statusFlag !== undefined ? this.statusFlag : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationService {\r\n numeroPrenotazione?: string | null;\r\n stato?: string | null;\r\n tipoServizio?: string | null;\r\n nomeServizio?: string | null;\r\n luogo?: string | null;\r\n data?: string | null;\r\n dataDal?: string | null;\r\n dataAl?: string | null;\r\n notti?: number;\r\n sistemazione?: string | null;\r\n tipologia?: string | null;\r\n tipologiaAddData?: string | null;\r\n trattamento?: string | null;\r\n totalePrenotazione?: TripReservationServiceTotal | null;\r\n note?: string | null;\r\n statusFlag?: number;\r\n}\r\n\r\nexport class TripReservationServiceTotal implements ITripReservationServiceTotal {\r\n valuta?: string | null;\r\n totale?: number;\r\n\r\n constructor(data?: ITripReservationServiceTotal) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.valuta = _data[\"valuta\"] !== undefined ? _data[\"valuta\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationServiceTotal {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationServiceTotal();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"valuta\"] = this.valuta !== undefined ? this.valuta : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationServiceTotal {\r\n valuta?: string | null;\r\n totale?: number;\r\n}\r\n\r\nexport class TripReservationFlight implements ITripReservationFlight {\r\n abbinamento?: string;\r\n pnr?: string;\r\n elencoTratte?: TripReservationFlightRoute[];\r\n elencoCompagnie?: TripReservationFlightCompany[];\r\n\r\n constructor(data?: ITripReservationFlight) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.abbinamento = _data[\"abbinamento\"] !== undefined ? _data[\"abbinamento\"] : null;\r\n this.pnr = _data[\"pnr\"] !== undefined ? _data[\"pnr\"] : null;\r\n if (Array.isArray(_data[\"elencoTratte\"])) {\r\n this.elencoTratte = [] as any;\r\n for (let item of _data[\"elencoTratte\"])\r\n this.elencoTratte!.push(TripReservationFlightRoute.fromJS(item));\r\n }\r\n else {\r\n this.elencoTratte = null;\r\n }\r\n if (Array.isArray(_data[\"elencoCompagnie\"])) {\r\n this.elencoCompagnie = [] as any;\r\n for (let item of _data[\"elencoCompagnie\"])\r\n this.elencoCompagnie!.push(TripReservationFlightCompany.fromJS(item));\r\n }\r\n else {\r\n this.elencoCompagnie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationFlight {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationFlight();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"abbinamento\"] = this.abbinamento !== undefined ? this.abbinamento : null;\r\n data[\"pnr\"] = this.pnr !== undefined ? this.pnr : null;\r\n if (Array.isArray(this.elencoTratte)) {\r\n data[\"elencoTratte\"] = [];\r\n for (let item of this.elencoTratte)\r\n data[\"elencoTratte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.elencoCompagnie)) {\r\n data[\"elencoCompagnie\"] = [];\r\n for (let item of this.elencoCompagnie)\r\n data[\"elencoCompagnie\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationFlight {\r\n abbinamento?: string;\r\n pnr?: string;\r\n elencoTratte?: TripReservationFlightRoute[];\r\n elencoCompagnie?: TripReservationFlightCompany[];\r\n}\r\n\r\nexport class TripReservationFlightRoute implements ITripReservationFlightRoute {\r\n codiceCompagnia?: string | null;\r\n numeroVolo?: string | null;\r\n partenza?: string | null;\r\n daAeroporto?: string | null;\r\n daNomeItaliano?: string | null;\r\n status?: string | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n arrivo?: string | null;\r\n adAeroporto?: string | null;\r\n aaNomeItaliano?: string | null;\r\n\r\n constructor(data?: ITripReservationFlightRoute) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.codiceCompagnia = _data[\"codiceCompagnia\"] !== undefined ? _data[\"codiceCompagnia\"] : null;\r\n this.numeroVolo = _data[\"numeroVolo\"] !== undefined ? _data[\"numeroVolo\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.daAeroporto = _data[\"daAeroporto\"] !== undefined ? _data[\"daAeroporto\"] : null;\r\n this.daNomeItaliano = _data[\"daNomeItaliano\"] !== undefined ? _data[\"daNomeItaliano\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.arrivoIlGiornoDopo = _data[\"arrivoIlGiornoDopo\"] !== undefined ? _data[\"arrivoIlGiornoDopo\"] : null;\r\n this.arrivo = _data[\"arrivo\"] !== undefined ? _data[\"arrivo\"] : null;\r\n this.adAeroporto = _data[\"adAeroporto\"] !== undefined ? _data[\"adAeroporto\"] : null;\r\n this.aaNomeItaliano = _data[\"aaNomeItaliano\"] !== undefined ? _data[\"aaNomeItaliano\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationFlightRoute {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationFlightRoute();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codiceCompagnia\"] = this.codiceCompagnia !== undefined ? this.codiceCompagnia : null;\r\n data[\"numeroVolo\"] = this.numeroVolo !== undefined ? this.numeroVolo : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"daAeroporto\"] = this.daAeroporto !== undefined ? this.daAeroporto : null;\r\n data[\"daNomeItaliano\"] = this.daNomeItaliano !== undefined ? this.daNomeItaliano : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"arrivoIlGiornoDopo\"] = this.arrivoIlGiornoDopo !== undefined ? this.arrivoIlGiornoDopo : null;\r\n data[\"arrivo\"] = this.arrivo !== undefined ? this.arrivo : null;\r\n data[\"adAeroporto\"] = this.adAeroporto !== undefined ? this.adAeroporto : null;\r\n data[\"aaNomeItaliano\"] = this.aaNomeItaliano !== undefined ? this.aaNomeItaliano : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationFlightRoute {\r\n codiceCompagnia?: string | null;\r\n numeroVolo?: string | null;\r\n partenza?: string | null;\r\n daAeroporto?: string | null;\r\n daNomeItaliano?: string | null;\r\n status?: string | null;\r\n arrivoIlGiornoDopo?: boolean;\r\n arrivo?: string | null;\r\n adAeroporto?: string | null;\r\n aaNomeItaliano?: string | null;\r\n}\r\n\r\nexport class TripReservationFlightCompany implements ITripReservationFlightCompany {\r\n codice?: string;\r\n nome?: string;\r\n\r\n constructor(data?: ITripReservationFlightCompany) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationFlightCompany {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationFlightCompany();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationFlightCompany {\r\n codice?: string;\r\n nome?: string;\r\n}\r\n\r\nexport class TripReservationHotel implements ITripReservationHotel {\r\n nome?: string | null;\r\n luogo?: string | null;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n reservations?: TripReservationHotelReservationInformation[];\r\n\r\n constructor(data?: ITripReservationHotel) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.fax = _data[\"fax\"] !== undefined ? _data[\"fax\"] : null;\r\n if (Array.isArray(_data[\"reservations\"])) {\r\n this.reservations = [] as any;\r\n for (let item of _data[\"reservations\"])\r\n this.reservations!.push(TripReservationHotelReservationInformation.fromJS(item));\r\n }\r\n else {\r\n this.reservations = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationHotel {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationHotel();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"fax\"] = this.fax !== undefined ? this.fax : null;\r\n if (Array.isArray(this.reservations)) {\r\n data[\"reservations\"] = [];\r\n for (let item of this.reservations)\r\n data[\"reservations\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationHotel {\r\n nome?: string | null;\r\n luogo?: string | null;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n fax?: string | null;\r\n reservations?: TripReservationHotelReservationInformation[];\r\n}\r\n\r\nexport class TripReservationHotelReservationInformation implements ITripReservationHotelReservationInformation {\r\n dataDa?: string;\r\n dataA?: string;\r\n notti?: number;\r\n\r\n constructor(data?: ITripReservationHotelReservationInformation) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dataDa = _data[\"dataDa\"] !== undefined ? _data[\"dataDa\"] : null;\r\n this.dataA = _data[\"dataA\"] !== undefined ? _data[\"dataA\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripReservationHotelReservationInformation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripReservationHotelReservationInformation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dataDa\"] = this.dataDa !== undefined ? this.dataDa : null;\r\n data[\"dataA\"] = this.dataA !== undefined ? this.dataA : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripReservationHotelReservationInformation {\r\n dataDa?: string;\r\n dataA?: string;\r\n notti?: number;\r\n}\r\n\r\nexport class GetTripReservationDocDataRequest extends LocalizedRequest implements IGetTripReservationDocDataRequest {\r\n offertaID!: number;\r\n /** Underscore separated string: \"contactID_currencyID\" */\r\n contactAndCurrency!: string[];\r\n\r\n constructor(data?: IGetTripReservationDocDataRequest) {\r\n super(data);\r\n if (!data) {\r\n this.contactAndCurrency = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n if (Array.isArray(_data[\"contactAndCurrency\"])) {\r\n this.contactAndCurrency = [] as any;\r\n for (let item of _data[\"contactAndCurrency\"])\r\n this.contactAndCurrency!.push(item);\r\n }\r\n else {\r\n this.contactAndCurrency = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripReservationDocDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripReservationDocDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n if (Array.isArray(this.contactAndCurrency)) {\r\n data[\"contactAndCurrency\"] = [];\r\n for (let item of this.contactAndCurrency)\r\n data[\"contactAndCurrency\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripReservationDocDataRequest extends ILocalizedRequest {\r\n offertaID: number;\r\n /** Underscore separated string: \"contactID_currencyID\" */\r\n contactAndCurrency: string[];\r\n}\r\n\r\nexport class GetTripVoucherDataResponse extends OkApiResponse implements IGetTripVoucherDataResponse {\r\n /** Elenco dei voucher selezionati passato attraverso il campo ExtraDocs */\r\n selectedVoucher?: number[];\r\n elencoVouchers?: VoucherRaw[];\r\n voucherEmitter?: InvoiceEmitter;\r\n\r\n constructor(data?: IGetTripVoucherDataResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"selectedVoucher\"])) {\r\n this.selectedVoucher = [] as any;\r\n for (let item of _data[\"selectedVoucher\"])\r\n this.selectedVoucher!.push(item);\r\n }\r\n else {\r\n this.selectedVoucher = null;\r\n }\r\n if (Array.isArray(_data[\"elencoVouchers\"])) {\r\n this.elencoVouchers = [] as any;\r\n for (let item of _data[\"elencoVouchers\"])\r\n this.elencoVouchers!.push(VoucherRaw.fromJS(item));\r\n }\r\n else {\r\n this.elencoVouchers = null;\r\n }\r\n this.voucherEmitter = _data[\"voucherEmitter\"] ? InvoiceEmitter.fromJS(_data[\"voucherEmitter\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripVoucherDataResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripVoucherDataResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.selectedVoucher)) {\r\n data[\"selectedVoucher\"] = [];\r\n for (let item of this.selectedVoucher)\r\n data[\"selectedVoucher\"].push(item);\r\n }\r\n if (Array.isArray(this.elencoVouchers)) {\r\n data[\"elencoVouchers\"] = [];\r\n for (let item of this.elencoVouchers)\r\n data[\"elencoVouchers\"].push(item.toJSON());\r\n }\r\n data[\"voucherEmitter\"] = this.voucherEmitter ? this.voucherEmitter.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripVoucherDataResponse extends IOkApiResponse {\r\n /** Elenco dei voucher selezionati passato attraverso il campo ExtraDocs */\r\n selectedVoucher?: number[];\r\n elencoVouchers?: VoucherRaw[];\r\n voucherEmitter?: InvoiceEmitter;\r\n}\r\n\r\nexport class VoucherRaw implements IVoucherRaw {\r\n dataVoucher?: TripVoucher;\r\n\r\n constructor(data?: IVoucherRaw) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dataVoucher = _data[\"dataVoucher\"] ? TripVoucher.fromJS(_data[\"dataVoucher\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoucherRaw {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoucherRaw();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dataVoucher\"] = this.dataVoucher ? this.dataVoucher.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoucherRaw {\r\n dataVoucher?: TripVoucher;\r\n}\r\n\r\nexport class GetTripVoucherDataRequest extends SiteRequest implements IGetTripVoucherDataRequest {\r\n userID?: string;\r\n offertaID?: number;\r\n maxNumOfVouchersPerPage?: number;\r\n /** Stringa con le tuple [id_ordine] separate da virgola dei voucher da usare nel documento */\r\n extraDocs?: string;\r\n preview?: boolean;\r\n\r\n constructor(data?: IGetTripVoucherDataRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.maxNumOfVouchersPerPage = _data[\"maxNumOfVouchersPerPage\"] !== undefined ? _data[\"maxNumOfVouchersPerPage\"] : null;\r\n this.extraDocs = _data[\"extraDocs\"] !== undefined ? _data[\"extraDocs\"] : null;\r\n this.preview = _data[\"preview\"] !== undefined ? _data[\"preview\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripVoucherDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripVoucherDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"maxNumOfVouchersPerPage\"] = this.maxNumOfVouchersPerPage !== undefined ? this.maxNumOfVouchersPerPage : null;\r\n data[\"extraDocs\"] = this.extraDocs !== undefined ? this.extraDocs : null;\r\n data[\"preview\"] = this.preview !== undefined ? this.preview : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripVoucherDataRequest extends ISiteRequest {\r\n userID?: string;\r\n offertaID?: number;\r\n maxNumOfVouchersPerPage?: number;\r\n /** Stringa con le tuple [id_ordine] separate da virgola dei voucher da usare nel documento */\r\n extraDocs?: string;\r\n preview?: boolean;\r\n}\r\n\r\nexport class GetNearbyPlacesResponse extends OkApiResponse implements IGetNearbyPlacesResponse {\r\n luoghiVicini?: LuogoVicino[] | null;\r\n\r\n constructor(data?: IGetNearbyPlacesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"luoghiVicini\"])) {\r\n this.luoghiVicini = [] as any;\r\n for (let item of _data[\"luoghiVicini\"])\r\n this.luoghiVicini!.push(LuogoVicino.fromJS(item));\r\n }\r\n else {\r\n this.luoghiVicini = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetNearbyPlacesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetNearbyPlacesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.luoghiVicini)) {\r\n data[\"luoghiVicini\"] = [];\r\n for (let item of this.luoghiVicini)\r\n data[\"luoghiVicini\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetNearbyPlacesResponse extends IOkApiResponse {\r\n luoghiVicini?: LuogoVicino[] | null;\r\n}\r\n\r\nexport class LuogoVicino implements ILuogoVicino {\r\n id?: number;\r\n nome?: string | null;\r\n latitudine?: number;\r\n longitudine?: number;\r\n distanzaKm?: number;\r\n tempoPercorrenza?: number | null;\r\n consentePernottamento?: boolean;\r\n distanzaReale?: boolean;\r\n\r\n constructor(data?: ILuogoVicino) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.distanzaKm = _data[\"distanzaKm\"] !== undefined ? _data[\"distanzaKm\"] : null;\r\n this.tempoPercorrenza = _data[\"tempoPercorrenza\"] !== undefined ? _data[\"tempoPercorrenza\"] : null;\r\n this.consentePernottamento = _data[\"consentePernottamento\"] !== undefined ? _data[\"consentePernottamento\"] : null;\r\n this.distanzaReale = _data[\"distanzaReale\"] !== undefined ? _data[\"distanzaReale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoVicino {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoVicino();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"distanzaKm\"] = this.distanzaKm !== undefined ? this.distanzaKm : null;\r\n data[\"tempoPercorrenza\"] = this.tempoPercorrenza !== undefined ? this.tempoPercorrenza : null;\r\n data[\"consentePernottamento\"] = this.consentePernottamento !== undefined ? this.consentePernottamento : null;\r\n data[\"distanzaReale\"] = this.distanzaReale !== undefined ? this.distanzaReale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoVicino {\r\n id?: number;\r\n nome?: string | null;\r\n latitudine?: number;\r\n longitudine?: number;\r\n distanzaKm?: number;\r\n tempoPercorrenza?: number | null;\r\n consentePernottamento?: boolean;\r\n distanzaReale?: boolean;\r\n}\r\n\r\nexport class GetNearbyPlacesRequest extends SiteRequest implements IGetNearbyPlacesRequest {\r\n luogoID?: number;\r\n maxDistanzaKm?: number;\r\n\r\n constructor(data?: IGetNearbyPlacesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.maxDistanzaKm = _data[\"maxDistanzaKm\"] !== undefined ? _data[\"maxDistanzaKm\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetNearbyPlacesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetNearbyPlacesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"maxDistanzaKm\"] = this.maxDistanzaKm !== undefined ? this.maxDistanzaKm : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetNearbyPlacesRequest extends ISiteRequest {\r\n luogoID?: number;\r\n maxDistanzaKm?: number;\r\n}\r\n\r\nexport class GetPlannerMapResponse extends OkApiResponse implements IGetPlannerMapResponse {\r\n punti?: MapPinPoint[] | null;\r\n flightPaths?: MapPath[] | null;\r\n carPaths?: MapPath[] | null;\r\n carDirections?: CarPath[] | null;\r\n trainPaths?: MapPath[] | null;\r\n trainDirections?: TrainPath[] | null;\r\n otherPaths?: MapPath[] | null;\r\n\r\n constructor(data?: IGetPlannerMapResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"punti\"])) {\r\n this.punti = [] as any;\r\n for (let item of _data[\"punti\"])\r\n this.punti!.push(MapPinPoint.fromJS(item));\r\n }\r\n else {\r\n this.punti = null;\r\n }\r\n if (Array.isArray(_data[\"flightPaths\"])) {\r\n this.flightPaths = [] as any;\r\n for (let item of _data[\"flightPaths\"])\r\n this.flightPaths!.push(MapPath.fromJS(item));\r\n }\r\n else {\r\n this.flightPaths = null;\r\n }\r\n if (Array.isArray(_data[\"carPaths\"])) {\r\n this.carPaths = [] as any;\r\n for (let item of _data[\"carPaths\"])\r\n this.carPaths!.push(MapPath.fromJS(item));\r\n }\r\n else {\r\n this.carPaths = null;\r\n }\r\n if (Array.isArray(_data[\"carDirections\"])) {\r\n this.carDirections = [] as any;\r\n for (let item of _data[\"carDirections\"])\r\n this.carDirections!.push(CarPath.fromJS(item));\r\n }\r\n else {\r\n this.carDirections = null;\r\n }\r\n if (Array.isArray(_data[\"trainPaths\"])) {\r\n this.trainPaths = [] as any;\r\n for (let item of _data[\"trainPaths\"])\r\n this.trainPaths!.push(MapPath.fromJS(item));\r\n }\r\n else {\r\n this.trainPaths = null;\r\n }\r\n if (Array.isArray(_data[\"trainDirections\"])) {\r\n this.trainDirections = [] as any;\r\n for (let item of _data[\"trainDirections\"])\r\n this.trainDirections!.push(TrainPath.fromJS(item));\r\n }\r\n else {\r\n this.trainDirections = null;\r\n }\r\n if (Array.isArray(_data[\"otherPaths\"])) {\r\n this.otherPaths = [] as any;\r\n for (let item of _data[\"otherPaths\"])\r\n this.otherPaths!.push(MapPath.fromJS(item));\r\n }\r\n else {\r\n this.otherPaths = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPlannerMapResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPlannerMapResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.punti)) {\r\n data[\"punti\"] = [];\r\n for (let item of this.punti)\r\n data[\"punti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.flightPaths)) {\r\n data[\"flightPaths\"] = [];\r\n for (let item of this.flightPaths)\r\n data[\"flightPaths\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.carPaths)) {\r\n data[\"carPaths\"] = [];\r\n for (let item of this.carPaths)\r\n data[\"carPaths\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.carDirections)) {\r\n data[\"carDirections\"] = [];\r\n for (let item of this.carDirections)\r\n data[\"carDirections\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.trainPaths)) {\r\n data[\"trainPaths\"] = [];\r\n for (let item of this.trainPaths)\r\n data[\"trainPaths\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.trainDirections)) {\r\n data[\"trainDirections\"] = [];\r\n for (let item of this.trainDirections)\r\n data[\"trainDirections\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.otherPaths)) {\r\n data[\"otherPaths\"] = [];\r\n for (let item of this.otherPaths)\r\n data[\"otherPaths\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPlannerMapResponse extends IOkApiResponse {\r\n punti?: MapPinPoint[] | null;\r\n flightPaths?: MapPath[] | null;\r\n carPaths?: MapPath[] | null;\r\n carDirections?: CarPath[] | null;\r\n trainPaths?: MapPath[] | null;\r\n trainDirections?: TrainPath[] | null;\r\n otherPaths?: MapPath[] | null;\r\n}\r\n\r\nexport class MapPinPoint implements IMapPinPoint {\r\n tipoTappa?: ETipoTappa;\r\n tipoTrasporto?: ETipoTrasporto;\r\n latitudine?: number;\r\n longitudine?: number;\r\n nome?: string | null;\r\n luogoID?: number;\r\n itinerarioId?: number;\r\n\r\n constructor(data?: IMapPinPoint) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoTappa = _data[\"tipoTappa\"] !== undefined ? _data[\"tipoTappa\"] : null;\r\n this.tipoTrasporto = _data[\"tipoTrasporto\"] !== undefined ? _data[\"tipoTrasporto\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.itinerarioId = _data[\"itinerarioId\"] !== undefined ? _data[\"itinerarioId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MapPinPoint {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MapPinPoint();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoTappa\"] = this.tipoTappa !== undefined ? this.tipoTappa : null;\r\n data[\"tipoTrasporto\"] = this.tipoTrasporto !== undefined ? this.tipoTrasporto : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"itinerarioId\"] = this.itinerarioId !== undefined ? this.itinerarioId : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMapPinPoint {\r\n tipoTappa?: ETipoTappa;\r\n tipoTrasporto?: ETipoTrasporto;\r\n latitudine?: number;\r\n longitudine?: number;\r\n nome?: string | null;\r\n luogoID?: number;\r\n itinerarioId?: number;\r\n}\r\n\r\nexport class MapPath implements IMapPath {\r\n punti?: MapPinPoint[] | null;\r\n\r\n constructor(data?: IMapPath) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"punti\"])) {\r\n this.punti = [] as any;\r\n for (let item of _data[\"punti\"])\r\n this.punti!.push(MapPinPoint.fromJS(item));\r\n }\r\n else {\r\n this.punti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): MapPath {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MapPath();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.punti)) {\r\n data[\"punti\"] = [];\r\n for (let item of this.punti)\r\n data[\"punti\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMapPath {\r\n punti?: MapPinPoint[] | null;\r\n}\r\n\r\nexport class CarPath implements ICarPath {\r\n origin?: GMapPoint | null;\r\n destination?: GMapPoint | null;\r\n waypoints?: GMapWayPoint[] | null;\r\n\r\n constructor(data?: ICarPath) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.origin = _data[\"origin\"] ? GMapPoint.fromJS(_data[\"origin\"]) : null;\r\n this.destination = _data[\"destination\"] ? GMapPoint.fromJS(_data[\"destination\"]) : null;\r\n if (Array.isArray(_data[\"waypoints\"])) {\r\n this.waypoints = [] as any;\r\n for (let item of _data[\"waypoints\"])\r\n this.waypoints!.push(GMapWayPoint.fromJS(item));\r\n }\r\n else {\r\n this.waypoints = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CarPath {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CarPath();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"origin\"] = this.origin ? this.origin.toJSON() : null;\r\n data[\"destination\"] = this.destination ? this.destination.toJSON() : null;\r\n if (Array.isArray(this.waypoints)) {\r\n data[\"waypoints\"] = [];\r\n for (let item of this.waypoints)\r\n data[\"waypoints\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICarPath {\r\n origin?: GMapPoint | null;\r\n destination?: GMapPoint | null;\r\n waypoints?: GMapWayPoint[] | null;\r\n}\r\n\r\nexport class GMapPoint implements IGMapPoint {\r\n lat?: number;\r\n lng?: number;\r\n name?: string | null;\r\n\r\n constructor(data?: IGMapPoint) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lat = _data[\"lat\"] !== undefined ? _data[\"lat\"] : null;\r\n this.lng = _data[\"lng\"] !== undefined ? _data[\"lng\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GMapPoint {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GMapPoint();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"lng\"] = this.lng !== undefined ? this.lng : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGMapPoint {\r\n lat?: number;\r\n lng?: number;\r\n name?: string | null;\r\n}\r\n\r\nexport class GMapWayPoint implements IGMapWayPoint {\r\n location?: GMapPoint | null;\r\n stopover?: boolean;\r\n\r\n constructor(data?: IGMapWayPoint) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.location = _data[\"location\"] ? GMapPoint.fromJS(_data[\"location\"]) : null;\r\n this.stopover = _data[\"stopover\"] !== undefined ? _data[\"stopover\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GMapWayPoint {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GMapWayPoint();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"location\"] = this.location ? this.location.toJSON() : null;\r\n data[\"stopover\"] = this.stopover !== undefined ? this.stopover : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGMapWayPoint {\r\n location?: GMapPoint | null;\r\n stopover?: boolean;\r\n}\r\n\r\nexport class TrainPath implements ITrainPath {\r\n origin?: GMapPoint | null;\r\n destination?: GMapPoint | null;\r\n\r\n constructor(data?: ITrainPath) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.origin = _data[\"origin\"] ? GMapPoint.fromJS(_data[\"origin\"]) : null;\r\n this.destination = _data[\"destination\"] ? GMapPoint.fromJS(_data[\"destination\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TrainPath {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TrainPath();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"origin\"] = this.origin ? this.origin.toJSON() : null;\r\n data[\"destination\"] = this.destination ? this.destination.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITrainPath {\r\n origin?: GMapPoint | null;\r\n destination?: GMapPoint | null;\r\n}\r\n\r\nexport class GetPlannerMapRequest extends SiteRequest implements IGetPlannerMapRequest {\r\n itinerario?: OffertaItinerario[] | null;\r\n\r\n constructor(data?: IGetPlannerMapRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"itinerario\"])) {\r\n this.itinerario = [] as any;\r\n for (let item of _data[\"itinerario\"])\r\n this.itinerario!.push(OffertaItinerario.fromJS(item));\r\n }\r\n else {\r\n this.itinerario = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPlannerMapRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPlannerMapRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.itinerario)) {\r\n data[\"itinerario\"] = [];\r\n for (let item of this.itinerario)\r\n data[\"itinerario\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPlannerMapRequest extends ISiteRequest {\r\n itinerario?: OffertaItinerario[] | null;\r\n}\r\n\r\nexport class MarginGetRequest extends LocalizedRequest implements IMarginGetRequest {\r\n /** ID dell'entità da recuperare */\r\n id?: number;\r\n\r\n constructor(data?: IMarginGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MarginGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MarginGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarginGetRequest extends ILocalizedRequest {\r\n /** ID dell'entità da recuperare */\r\n id?: number;\r\n}\r\n\r\nexport class MarginGetResponse extends OkApiResponse implements IMarginGetResponse {\r\n /** Entità letta */\r\n servizioMargine?: ServizioMargine;\r\n\r\n constructor(data?: IMarginGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioMargine = _data[\"servizioMargine\"] ? ServizioMargine.fromJS(_data[\"servizioMargine\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MarginGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MarginGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioMargine\"] = this.servizioMargine ? this.servizioMargine.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarginGetResponse extends IOkApiResponse {\r\n /** Entità letta */\r\n servizioMargine?: ServizioMargine;\r\n}\r\n\r\nexport class ServizioMargine implements IServizioMargine {\r\n id?: number;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioDal?: string | null;\r\n servizioAl?: string | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n deltaMarkup?: number;\r\n proporzionale?: boolean;\r\n ordine?: number;\r\n note?: string | null;\r\n\r\n constructor(data?: IServizioMargine) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.servizioDal = _data[\"servizioDal\"] !== undefined ? _data[\"servizioDal\"] : null;\r\n this.servizioAl = _data[\"servizioAl\"] !== undefined ? _data[\"servizioAl\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.deltaMarkup = _data[\"deltaMarkup\"] !== undefined ? _data[\"deltaMarkup\"] : null;\r\n this.proporzionale = _data[\"proporzionale\"] !== undefined ? _data[\"proporzionale\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioMargine {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioMargine();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"servizioDal\"] = this.servizioDal !== undefined ? this.servizioDal : null;\r\n data[\"servizioAl\"] = this.servizioAl !== undefined ? this.servizioAl : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"deltaMarkup\"] = this.deltaMarkup !== undefined ? this.deltaMarkup : null;\r\n data[\"proporzionale\"] = this.proporzionale !== undefined ? this.proporzionale : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioMargine {\r\n id?: number;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioDal?: string | null;\r\n servizioAl?: string | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n deltaMarkup?: number;\r\n proporzionale?: boolean;\r\n ordine?: number;\r\n note?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfMarginRow extends OkApiResponse implements INrTableResponseOfMarginRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: MarginRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfMarginRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(MarginRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfMarginRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfMarginRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfMarginRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: MarginRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class MarginsList extends NrTableResponseOfMarginRow implements IMarginsList {\r\n\r\n constructor(data?: IMarginsList) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): MarginsList {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MarginsList();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarginsList extends INrTableResponseOfMarginRow {\r\n}\r\n\r\nexport class MarginRow implements IMarginRow {\r\n /** ID dell'entità */\r\n id?: number;\r\n /** Entità */\r\n servizioMargine?: ServizioMargine;\r\n /** Nome in lingua del servizio (se c'è) */\r\n servizio?: string | null;\r\n /** True se il servizio è obsoleto */\r\n servizioObsoleto?: boolean;\r\n /** True se il servizio è eliminato */\r\n servizioEliminato?: boolean;\r\n /** Nome dell'accordo (se c'è) */\r\n accordo?: string | null;\r\n /** Nome in lingua del luogo (se c'è) */\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n\r\n constructor(data?: IMarginRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioMargine = _data[\"servizioMargine\"] ? ServizioMargine.fromJS(_data[\"servizioMargine\"]) : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.servizioObsoleto = _data[\"servizioObsoleto\"] !== undefined ? _data[\"servizioObsoleto\"] : null;\r\n this.servizioEliminato = _data[\"servizioEliminato\"] !== undefined ? _data[\"servizioEliminato\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoEliminato = _data[\"luogoEliminato\"] !== undefined ? _data[\"luogoEliminato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MarginRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MarginRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioMargine\"] = this.servizioMargine ? this.servizioMargine.toJSON() : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"servizioObsoleto\"] = this.servizioObsoleto !== undefined ? this.servizioObsoleto : null;\r\n data[\"servizioEliminato\"] = this.servizioEliminato !== undefined ? this.servizioEliminato : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoEliminato\"] = this.luogoEliminato !== undefined ? this.luogoEliminato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarginRow {\r\n /** ID dell'entità */\r\n id?: number;\r\n /** Entità */\r\n servizioMargine?: ServizioMargine;\r\n /** Nome in lingua del servizio (se c'è) */\r\n servizio?: string | null;\r\n /** True se il servizio è obsoleto */\r\n servizioObsoleto?: boolean;\r\n /** True se il servizio è eliminato */\r\n servizioEliminato?: boolean;\r\n /** Nome dell'accordo (se c'è) */\r\n accordo?: string | null;\r\n /** Nome in lingua del luogo (se c'è) */\r\n luogo?: string | null;\r\n luogoEliminato?: boolean;\r\n}\r\n\r\nexport class MarginsListRequest extends NrTableRequest implements IMarginsListRequest {\r\n /** ID o qualcosa che gli somiglia */\r\n term?: string | null;\r\n /** Accordo associato */\r\n accordoID?: number | null;\r\n /** Solo non associati ad accordo */\r\n noAccordo?: boolean;\r\n /** Tipo di servizio associato */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Sono non associati a tipo servizio */\r\n noTipoServizio?: boolean;\r\n /** Servizio associato */\r\n servizioID?: number | null;\r\n /** Solo non associati a servizio */\r\n noServizio?: boolean;\r\n /** Luogo associato */\r\n luogoID?: number | null;\r\n /** Solo non associati a luogo */\r\n noLuogo?: boolean;\r\n\r\n constructor(data?: IMarginsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.noAccordo = _data[\"noAccordo\"] !== undefined ? _data[\"noAccordo\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.noTipoServizio = _data[\"noTipoServizio\"] !== undefined ? _data[\"noTipoServizio\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.noServizio = _data[\"noServizio\"] !== undefined ? _data[\"noServizio\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.noLuogo = _data[\"noLuogo\"] !== undefined ? _data[\"noLuogo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MarginsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MarginsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"noAccordo\"] = this.noAccordo !== undefined ? this.noAccordo : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"noTipoServizio\"] = this.noTipoServizio !== undefined ? this.noTipoServizio : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"noServizio\"] = this.noServizio !== undefined ? this.noServizio : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"noLuogo\"] = this.noLuogo !== undefined ? this.noLuogo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarginsListRequest extends INrTableRequest {\r\n /** ID o qualcosa che gli somiglia */\r\n term?: string | null;\r\n /** Accordo associato */\r\n accordoID?: number | null;\r\n /** Solo non associati ad accordo */\r\n noAccordo?: boolean;\r\n /** Tipo di servizio associato */\r\n tipoServizio?: ETipoServizio | null;\r\n /** Sono non associati a tipo servizio */\r\n noTipoServizio?: boolean;\r\n /** Servizio associato */\r\n servizioID?: number | null;\r\n /** Solo non associati a servizio */\r\n noServizio?: boolean;\r\n /** Luogo associato */\r\n luogoID?: number | null;\r\n /** Solo non associati a luogo */\r\n noLuogo?: boolean;\r\n}\r\n\r\nexport class MarginUpsertRequest extends LocalizedRequest implements IMarginUpsertRequest {\r\n /** Entità da persistere (nuova o modificata) */\r\n servizioMargine?: ServizioMargineBase;\r\n\r\n constructor(data?: IMarginUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioMargine = _data[\"servizioMargine\"] ? ServizioMargineBase.fromJS(_data[\"servizioMargine\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MarginUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MarginUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioMargine\"] = this.servizioMargine ? this.servizioMargine.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarginUpsertRequest extends ILocalizedRequest {\r\n /** Entità da persistere (nuova o modificata) */\r\n servizioMargine?: ServizioMargineBase;\r\n}\r\n\r\nexport abstract class ServizioMargineBase implements IServizioMargineBase {\r\n id?: number;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioDal?: string | null;\r\n servizioAl?: string | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n deltaMarkup?: number;\r\n proporzionale?: boolean;\r\n ordine?: number;\r\n note?: string | null;\r\n\r\n constructor(data?: IServizioMargineBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.servizioDal = _data[\"servizioDal\"] !== undefined ? _data[\"servizioDal\"] : null;\r\n this.servizioAl = _data[\"servizioAl\"] !== undefined ? _data[\"servizioAl\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.deltaMarkup = _data[\"deltaMarkup\"] !== undefined ? _data[\"deltaMarkup\"] : null;\r\n this.proporzionale = _data[\"proporzionale\"] !== undefined ? _data[\"proporzionale\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioMargineBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ServizioMargineBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"servizioDal\"] = this.servizioDal !== undefined ? this.servizioDal : null;\r\n data[\"servizioAl\"] = this.servizioAl !== undefined ? this.servizioAl : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"deltaMarkup\"] = this.deltaMarkup !== undefined ? this.deltaMarkup : null;\r\n data[\"proporzionale\"] = this.proporzionale !== undefined ? this.proporzionale : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioMargineBase {\r\n id?: number;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioDal?: string | null;\r\n servizioAl?: string | null;\r\n accordoID?: number | null;\r\n luogoID?: number | null;\r\n servizioID?: number | null;\r\n tipoServizio?: ETipoServizio | null;\r\n deltaMarkup?: number;\r\n proporzionale?: boolean;\r\n ordine?: number;\r\n note?: string | null;\r\n}\r\n\r\nexport class NaarCrypticJResponse extends OkApiResponse implements INaarCrypticJResponse {\r\n /** ID del luogo parsato */\r\n locationID?: number;\r\n /** Nome (in lingua) del luogo parsato */\r\n location?: string;\r\n /** Data dal */\r\n from?: string;\r\n /** Data al */\r\n to?: string;\r\n /** Elenco dei servizi prezzati */\r\n services?: JService[];\r\n /** Percentuale dei servizi con almeno una nightly rate */\r\n servicesWithNightlyRatesPercent?: number;\r\n /** Gap medio delle tariffe */\r\n averagePriceGap?: number | null;\r\n /** Severità del gap tariffario */\r\n averagePriceGapSeverity?: EPriceGapSeverity;\r\n\r\n constructor(data?: INaarCrypticJResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.locationID = _data[\"locationID\"] !== undefined ? _data[\"locationID\"] : null;\r\n this.location = _data[\"location\"] !== undefined ? _data[\"location\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n if (Array.isArray(_data[\"services\"])) {\r\n this.services = [] as any;\r\n for (let item of _data[\"services\"])\r\n this.services!.push(JService.fromJS(item));\r\n }\r\n else {\r\n this.services = null;\r\n }\r\n this.servicesWithNightlyRatesPercent = _data[\"servicesWithNightlyRatesPercent\"] !== undefined ? _data[\"servicesWithNightlyRatesPercent\"] : null;\r\n this.averagePriceGap = _data[\"averagePriceGap\"] !== undefined ? _data[\"averagePriceGap\"] : null;\r\n this.averagePriceGapSeverity = _data[\"averagePriceGapSeverity\"] !== undefined ? _data[\"averagePriceGapSeverity\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticJResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticJResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"locationID\"] = this.locationID !== undefined ? this.locationID : null;\r\n data[\"location\"] = this.location !== undefined ? this.location : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n if (Array.isArray(this.services)) {\r\n data[\"services\"] = [];\r\n for (let item of this.services)\r\n data[\"services\"].push(item.toJSON());\r\n }\r\n data[\"servicesWithNightlyRatesPercent\"] = this.servicesWithNightlyRatesPercent !== undefined ? this.servicesWithNightlyRatesPercent : null;\r\n data[\"averagePriceGap\"] = this.averagePriceGap !== undefined ? this.averagePriceGap : null;\r\n data[\"averagePriceGapSeverity\"] = this.averagePriceGapSeverity !== undefined ? this.averagePriceGapSeverity : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticJResponse extends IOkApiResponse {\r\n /** ID del luogo parsato */\r\n locationID?: number;\r\n /** Nome (in lingua) del luogo parsato */\r\n location?: string;\r\n /** Data dal */\r\n from?: string;\r\n /** Data al */\r\n to?: string;\r\n /** Elenco dei servizi prezzati */\r\n services?: JService[];\r\n /** Percentuale dei servizi con almeno una nightly rate */\r\n servicesWithNightlyRatesPercent?: number;\r\n /** Gap medio delle tariffe */\r\n averagePriceGap?: number | null;\r\n /** Severità del gap tariffario */\r\n averagePriceGapSeverity?: EPriceGapSeverity;\r\n}\r\n\r\nexport class JService implements IJService {\r\n /** ID servizio Naar */\r\n id?: number;\r\n /** Nome servizio Naar */\r\n name?: string;\r\n /** Lista delle tipologie */\r\n types?: JType[];\r\n /** Costo minimo */\r\n minCost?: number;\r\n /** Prezzo minimo */\r\n minPrice?: number;\r\n /** Prezzo minimo per le tipologie con nightly rates */\r\n minNightlyPrice?: number | null;\r\n nightlyMinPriceGapPercent?: number | null;\r\n /** Severità del gap tra tariffe con e senza nightly rates */\r\n priceGapSeverity?: EPriceGapSeverity | null;\r\n /** True se una qualsiasi delle tipologie ha le nightly rates */\r\n hasSomeNightlyRate?: boolean;\r\n\r\n constructor(data?: IJService) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n if (Array.isArray(_data[\"types\"])) {\r\n this.types = [] as any;\r\n for (let item of _data[\"types\"])\r\n this.types!.push(JType.fromJS(item));\r\n }\r\n else {\r\n this.types = null;\r\n }\r\n this.minCost = _data[\"minCost\"] !== undefined ? _data[\"minCost\"] : null;\r\n this.minPrice = _data[\"minPrice\"] !== undefined ? _data[\"minPrice\"] : null;\r\n this.minNightlyPrice = _data[\"minNightlyPrice\"] !== undefined ? _data[\"minNightlyPrice\"] : null;\r\n this.nightlyMinPriceGapPercent = _data[\"nightlyMinPriceGapPercent\"] !== undefined ? _data[\"nightlyMinPriceGapPercent\"] : null;\r\n this.priceGapSeverity = _data[\"priceGapSeverity\"] !== undefined ? _data[\"priceGapSeverity\"] : null;\r\n this.hasSomeNightlyRate = _data[\"hasSomeNightlyRate\"] !== undefined ? _data[\"hasSomeNightlyRate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JService {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JService();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n if (Array.isArray(this.types)) {\r\n data[\"types\"] = [];\r\n for (let item of this.types)\r\n data[\"types\"].push(item.toJSON());\r\n }\r\n data[\"minCost\"] = this.minCost !== undefined ? this.minCost : null;\r\n data[\"minPrice\"] = this.minPrice !== undefined ? this.minPrice : null;\r\n data[\"minNightlyPrice\"] = this.minNightlyPrice !== undefined ? this.minNightlyPrice : null;\r\n data[\"nightlyMinPriceGapPercent\"] = this.nightlyMinPriceGapPercent !== undefined ? this.nightlyMinPriceGapPercent : null;\r\n data[\"priceGapSeverity\"] = this.priceGapSeverity !== undefined ? this.priceGapSeverity : null;\r\n data[\"hasSomeNightlyRate\"] = this.hasSomeNightlyRate !== undefined ? this.hasSomeNightlyRate : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJService {\r\n /** ID servizio Naar */\r\n id?: number;\r\n /** Nome servizio Naar */\r\n name?: string;\r\n /** Lista delle tipologie */\r\n types?: JType[];\r\n /** Costo minimo */\r\n minCost?: number;\r\n /** Prezzo minimo */\r\n minPrice?: number;\r\n /** Prezzo minimo per le tipologie con nightly rates */\r\n minNightlyPrice?: number | null;\r\n nightlyMinPriceGapPercent?: number | null;\r\n /** Severità del gap tra tariffe con e senza nightly rates */\r\n priceGapSeverity?: EPriceGapSeverity | null;\r\n /** True se una qualsiasi delle tipologie ha le nightly rates */\r\n hasSomeNightlyRate?: boolean;\r\n}\r\n\r\nexport class JType implements IJType {\r\n /** ID tipologia Naar */\r\n id?: number;\r\n /** Fornitore della camera */\r\n supplier?: EFornitore;\r\n /** Codice fornitore */\r\n code?: string;\r\n /** Descrizione (Naar o fornitore) */\r\n description?: string;\r\n /** Codice valuta */\r\n currencyCode?: string;\r\n /** Tariffe giornaliere */\r\n rates?: JRate[];\r\n /** Se true ci sono le nigthly rates */\r\n hasRates?: boolean;\r\n /** Costo totale */\r\n cost?: number;\r\n /** Prezzo totale */\r\n price?: number;\r\n /** Non rimborsabile */\r\n notRefundlable?: boolean;\r\n /** Acquisto immediato */\r\n instantPurchase?: boolean;\r\n /** True se disponibile */\r\n available?: boolean;\r\n /** Hashcode calcolato della camera */\r\n hashcode?: string | null;\r\n /** Descrizione dell'hashcode */\r\n hascodeDescription?: string | null;\r\n\r\n constructor(data?: IJType) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.description = _data[\"description\"] !== undefined ? _data[\"description\"] : null;\r\n this.currencyCode = _data[\"currencyCode\"] !== undefined ? _data[\"currencyCode\"] : null;\r\n if (Array.isArray(_data[\"rates\"])) {\r\n this.rates = [] as any;\r\n for (let item of _data[\"rates\"])\r\n this.rates!.push(JRate.fromJS(item));\r\n }\r\n else {\r\n this.rates = null;\r\n }\r\n this.hasRates = _data[\"hasRates\"] !== undefined ? _data[\"hasRates\"] : null;\r\n this.cost = _data[\"cost\"] !== undefined ? _data[\"cost\"] : null;\r\n this.price = _data[\"price\"] !== undefined ? _data[\"price\"] : null;\r\n this.notRefundlable = _data[\"notRefundlable\"] !== undefined ? _data[\"notRefundlable\"] : null;\r\n this.instantPurchase = _data[\"instantPurchase\"] !== undefined ? _data[\"instantPurchase\"] : null;\r\n this.available = _data[\"available\"] !== undefined ? _data[\"available\"] : null;\r\n this.hashcode = _data[\"hashcode\"] !== undefined ? _data[\"hashcode\"] : null;\r\n this.hascodeDescription = _data[\"hascodeDescription\"] !== undefined ? _data[\"hascodeDescription\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JType {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JType();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"description\"] = this.description !== undefined ? this.description : null;\r\n data[\"currencyCode\"] = this.currencyCode !== undefined ? this.currencyCode : null;\r\n if (Array.isArray(this.rates)) {\r\n data[\"rates\"] = [];\r\n for (let item of this.rates)\r\n data[\"rates\"].push(item.toJSON());\r\n }\r\n data[\"hasRates\"] = this.hasRates !== undefined ? this.hasRates : null;\r\n data[\"cost\"] = this.cost !== undefined ? this.cost : null;\r\n data[\"price\"] = this.price !== undefined ? this.price : null;\r\n data[\"notRefundlable\"] = this.notRefundlable !== undefined ? this.notRefundlable : null;\r\n data[\"instantPurchase\"] = this.instantPurchase !== undefined ? this.instantPurchase : null;\r\n data[\"available\"] = this.available !== undefined ? this.available : null;\r\n data[\"hashcode\"] = this.hashcode !== undefined ? this.hashcode : null;\r\n data[\"hascodeDescription\"] = this.hascodeDescription !== undefined ? this.hascodeDescription : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJType {\r\n /** ID tipologia Naar */\r\n id?: number;\r\n /** Fornitore della camera */\r\n supplier?: EFornitore;\r\n /** Codice fornitore */\r\n code?: string;\r\n /** Descrizione (Naar o fornitore) */\r\n description?: string;\r\n /** Codice valuta */\r\n currencyCode?: string;\r\n /** Tariffe giornaliere */\r\n rates?: JRate[];\r\n /** Se true ci sono le nigthly rates */\r\n hasRates?: boolean;\r\n /** Costo totale */\r\n cost?: number;\r\n /** Prezzo totale */\r\n price?: number;\r\n /** Non rimborsabile */\r\n notRefundlable?: boolean;\r\n /** Acquisto immediato */\r\n instantPurchase?: boolean;\r\n /** True se disponibile */\r\n available?: boolean;\r\n /** Hashcode calcolato della camera */\r\n hashcode?: string | null;\r\n /** Descrizione dell'hashcode */\r\n hascodeDescription?: string | null;\r\n}\r\n\r\nexport class JRate implements IJRate {\r\n /** Data */\r\n date?: string;\r\n /** Costo */\r\n cost?: number;\r\n /** Prezzo */\r\n price?: number;\r\n\r\n constructor(data?: IJRate) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.cost = _data[\"cost\"] !== undefined ? _data[\"cost\"] : null;\r\n this.price = _data[\"price\"] !== undefined ? _data[\"price\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): JRate {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new JRate();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"cost\"] = this.cost !== undefined ? this.cost : null;\r\n data[\"price\"] = this.price !== undefined ? this.price : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IJRate {\r\n /** Data */\r\n date?: string;\r\n /** Costo */\r\n cost?: number;\r\n /** Prezzo */\r\n price?: number;\r\n}\r\n\r\nexport enum EPriceGapSeverity {\r\n None = \"None\",\r\n Medium = \"Medium\",\r\n High = \"High\",\r\n}\r\n\r\nexport class NaarCrypticJRequest extends LocalizedRequest implements INaarCrypticJRequest {\r\n /** Codice IATA */\r\n iata?: string | null;\r\n /** Luogo (ricerca generica) */\r\n location?: string | null;\r\n /** ID del luogo */\r\n locationID?: number | null;\r\n /** Se true cerca solo sulla località principale e non sulle vicine */\r\n mainLocationOnly?: boolean;\r\n /** Data di inizio */\r\n startDate!: string;\r\n /** Numero di notti */\r\n duration!: number;\r\n /** Definizione delle camere (A[A..][Ce][Ce...] */\r\n roomsDef?: string | null;\r\n /** Lista opzionale di fornitori */\r\n suppliers?: EFornitore[] | null;\r\n /** Se true usa l'emulazione della cache (usa solo hashcodes di quotazioni con nightly rate) */\r\n emulateCache?: boolean;\r\n\r\n constructor(data?: INaarCrypticJRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.iata = _data[\"iata\"] !== undefined ? _data[\"iata\"] : null;\r\n this.location = _data[\"location\"] !== undefined ? _data[\"location\"] : null;\r\n this.locationID = _data[\"locationID\"] !== undefined ? _data[\"locationID\"] : null;\r\n this.mainLocationOnly = _data[\"mainLocationOnly\"] !== undefined ? _data[\"mainLocationOnly\"] : null;\r\n this.startDate = _data[\"startDate\"] !== undefined ? _data[\"startDate\"] : null;\r\n this.duration = _data[\"duration\"] !== undefined ? _data[\"duration\"] : null;\r\n this.roomsDef = _data[\"roomsDef\"] !== undefined ? _data[\"roomsDef\"] : null;\r\n if (Array.isArray(_data[\"suppliers\"])) {\r\n this.suppliers = [] as any;\r\n for (let item of _data[\"suppliers\"])\r\n this.suppliers!.push(item);\r\n }\r\n else {\r\n this.suppliers = null;\r\n }\r\n this.emulateCache = _data[\"emulateCache\"] !== undefined ? _data[\"emulateCache\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticJRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticJRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"iata\"] = this.iata !== undefined ? this.iata : null;\r\n data[\"location\"] = this.location !== undefined ? this.location : null;\r\n data[\"locationID\"] = this.locationID !== undefined ? this.locationID : null;\r\n data[\"mainLocationOnly\"] = this.mainLocationOnly !== undefined ? this.mainLocationOnly : null;\r\n data[\"startDate\"] = this.startDate !== undefined ? this.startDate : null;\r\n data[\"duration\"] = this.duration !== undefined ? this.duration : null;\r\n data[\"roomsDef\"] = this.roomsDef !== undefined ? this.roomsDef : null;\r\n if (Array.isArray(this.suppliers)) {\r\n data[\"suppliers\"] = [];\r\n for (let item of this.suppliers)\r\n data[\"suppliers\"].push(item);\r\n }\r\n data[\"emulateCache\"] = this.emulateCache !== undefined ? this.emulateCache : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticJRequest extends ILocalizedRequest {\r\n /** Codice IATA */\r\n iata?: string | null;\r\n /** Luogo (ricerca generica) */\r\n location?: string | null;\r\n /** ID del luogo */\r\n locationID?: number | null;\r\n /** Se true cerca solo sulla località principale e non sulle vicine */\r\n mainLocationOnly?: boolean;\r\n /** Data di inizio */\r\n startDate: string;\r\n /** Numero di notti */\r\n duration: number;\r\n /** Definizione delle camere (A[A..][Ce][Ce...] */\r\n roomsDef?: string | null;\r\n /** Lista opzionale di fornitori */\r\n suppliers?: EFornitore[] | null;\r\n /** Se true usa l'emulazione della cache (usa solo hashcodes di quotazioni con nightly rate) */\r\n emulateCache?: boolean;\r\n}\r\n\r\nexport class NaarCrypticNResponse extends OkApiResponse implements INaarCrypticNResponse {\r\n /** Dizionario di traduzione accordo fornitore */\r\n suppliers?: { [key: string]: EFornitore; };\r\n /** Elenco dei servizi */\r\n services?: NService[];\r\n\r\n constructor(data?: INaarCrypticNResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (_data[\"suppliers\"]) {\r\n this.suppliers = {} as any;\r\n for (let key in _data[\"suppliers\"]) {\r\n if (_data[\"suppliers\"].hasOwnProperty(key))\r\n (this.suppliers)![key] = _data[\"suppliers\"][key] !== undefined ? _data[\"suppliers\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.suppliers = null;\r\n }\r\n if (Array.isArray(_data[\"services\"])) {\r\n this.services = [] as any;\r\n for (let item of _data[\"services\"])\r\n this.services!.push(NService.fromJS(item));\r\n }\r\n else {\r\n this.services = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticNResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticNResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (this.suppliers) {\r\n data[\"suppliers\"] = {};\r\n for (let key in this.suppliers) {\r\n if (this.suppliers.hasOwnProperty(key))\r\n (data[\"suppliers\"])[key] = this.suppliers[key] !== undefined ? this.suppliers[key] : null;\r\n }\r\n }\r\n if (Array.isArray(this.services)) {\r\n data[\"services\"] = [];\r\n for (let item of this.services)\r\n data[\"services\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticNResponse extends IOkApiResponse {\r\n /** Dizionario di traduzione accordo fornitore */\r\n suppliers?: { [key: string]: EFornitore; };\r\n /** Elenco dei servizi */\r\n services?: NService[];\r\n}\r\n\r\nexport class NService implements INService {\r\n uniqueID?: string;\r\n servizioID?: number | null;\r\n internal?: boolean;\r\n name?: string;\r\n minPrice?: number;\r\n types?: NType[];\r\n\r\n constructor(data?: INService) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.uniqueID = _data[\"uniqueID\"] !== undefined ? _data[\"uniqueID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.internal = _data[\"internal\"] !== undefined ? _data[\"internal\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.minPrice = _data[\"minPrice\"] !== undefined ? _data[\"minPrice\"] : null;\r\n if (Array.isArray(_data[\"types\"])) {\r\n this.types = [] as any;\r\n for (let item of _data[\"types\"])\r\n this.types!.push(NType.fromJS(item));\r\n }\r\n else {\r\n this.types = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NService {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NService();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"uniqueID\"] = this.uniqueID !== undefined ? this.uniqueID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"internal\"] = this.internal !== undefined ? this.internal : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"minPrice\"] = this.minPrice !== undefined ? this.minPrice : null;\r\n if (Array.isArray(this.types)) {\r\n data[\"types\"] = [];\r\n for (let item of this.types)\r\n data[\"types\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INService {\r\n uniqueID?: string;\r\n servizioID?: number | null;\r\n internal?: boolean;\r\n name?: string;\r\n minPrice?: number;\r\n types?: NType[];\r\n}\r\n\r\nexport class NType implements INType {\r\n servizioH2hID?: number;\r\n hashCode?: string;\r\n attributoHashcode?: HHAttributoHashcode;\r\n name?: string;\r\n nrf?: boolean;\r\n ip?: boolean;\r\n cost?: number;\r\n price?: number;\r\n agreementID?: number;\r\n available?: boolean;\r\n roomID?: number | null;\r\n\r\n constructor(data?: INType) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioH2hID = _data[\"servizioH2hID\"] !== undefined ? _data[\"servizioH2hID\"] : null;\r\n this.hashCode = _data[\"hashCode\"] !== undefined ? _data[\"hashCode\"] : null;\r\n this.attributoHashcode = _data[\"attributoHashcode\"] ? HHAttributoHashcode.fromJS(_data[\"attributoHashcode\"]) : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.nrf = _data[\"nrf\"] !== undefined ? _data[\"nrf\"] : null;\r\n this.ip = _data[\"ip\"] !== undefined ? _data[\"ip\"] : null;\r\n this.cost = _data[\"cost\"] !== undefined ? _data[\"cost\"] : null;\r\n this.price = _data[\"price\"] !== undefined ? _data[\"price\"] : null;\r\n this.agreementID = _data[\"agreementID\"] !== undefined ? _data[\"agreementID\"] : null;\r\n this.available = _data[\"available\"] !== undefined ? _data[\"available\"] : null;\r\n this.roomID = _data[\"roomID\"] !== undefined ? _data[\"roomID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NType {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NType();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioH2hID\"] = this.servizioH2hID !== undefined ? this.servizioH2hID : null;\r\n data[\"hashCode\"] = this.hashCode !== undefined ? this.hashCode : null;\r\n data[\"attributoHashcode\"] = this.attributoHashcode ? this.attributoHashcode.toJSON() : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"nrf\"] = this.nrf !== undefined ? this.nrf : null;\r\n data[\"ip\"] = this.ip !== undefined ? this.ip : null;\r\n data[\"cost\"] = this.cost !== undefined ? this.cost : null;\r\n data[\"price\"] = this.price !== undefined ? this.price : null;\r\n data[\"agreementID\"] = this.agreementID !== undefined ? this.agreementID : null;\r\n data[\"available\"] = this.available !== undefined ? this.available : null;\r\n data[\"roomID\"] = this.roomID !== undefined ? this.roomID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INType {\r\n servizioH2hID?: number;\r\n hashCode?: string;\r\n attributoHashcode?: HHAttributoHashcode;\r\n name?: string;\r\n nrf?: boolean;\r\n ip?: boolean;\r\n cost?: number;\r\n price?: number;\r\n agreementID?: number;\r\n available?: boolean;\r\n roomID?: number | null;\r\n}\r\n\r\nexport class NaarCrypticNRequest extends LocalizedRequest implements INaarCrypticNRequest {\r\n /** Codice IATA */\r\n iata?: string | null;\r\n /** Luogo (ricerca generica) */\r\n location?: string | null;\r\n /** ID del luogo */\r\n locationID?: number | null;\r\n /** Se true cerca solo sulla località principale e non sulle vicine */\r\n mainLocationOnly?: boolean;\r\n /** Data di inizio */\r\n startDate!: string;\r\n /** Numero di notti */\r\n duration!: number;\r\n /** Definizione delle camere (A[1-4][-...]) */\r\n roomsDef?: string | null;\r\n\r\n constructor(data?: INaarCrypticNRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.iata = _data[\"iata\"] !== undefined ? _data[\"iata\"] : null;\r\n this.location = _data[\"location\"] !== undefined ? _data[\"location\"] : null;\r\n this.locationID = _data[\"locationID\"] !== undefined ? _data[\"locationID\"] : null;\r\n this.mainLocationOnly = _data[\"mainLocationOnly\"] !== undefined ? _data[\"mainLocationOnly\"] : null;\r\n this.startDate = _data[\"startDate\"] !== undefined ? _data[\"startDate\"] : null;\r\n this.duration = _data[\"duration\"] !== undefined ? _data[\"duration\"] : null;\r\n this.roomsDef = _data[\"roomsDef\"] !== undefined ? _data[\"roomsDef\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticNRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticNRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"iata\"] = this.iata !== undefined ? this.iata : null;\r\n data[\"location\"] = this.location !== undefined ? this.location : null;\r\n data[\"locationID\"] = this.locationID !== undefined ? this.locationID : null;\r\n data[\"mainLocationOnly\"] = this.mainLocationOnly !== undefined ? this.mainLocationOnly : null;\r\n data[\"startDate\"] = this.startDate !== undefined ? this.startDate : null;\r\n data[\"duration\"] = this.duration !== undefined ? this.duration : null;\r\n data[\"roomsDef\"] = this.roomsDef !== undefined ? this.roomsDef : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticNRequest extends ILocalizedRequest {\r\n /** Codice IATA */\r\n iata?: string | null;\r\n /** Luogo (ricerca generica) */\r\n location?: string | null;\r\n /** ID del luogo */\r\n locationID?: number | null;\r\n /** Se true cerca solo sulla località principale e non sulle vicine */\r\n mainLocationOnly?: boolean;\r\n /** Data di inizio */\r\n startDate: string;\r\n /** Numero di notti */\r\n duration: number;\r\n /** Definizione delle camere (A[1-4][-...]) */\r\n roomsDef?: string | null;\r\n}\r\n\r\nexport class NaarCrypticPMIResponse extends OkApiResponse implements INaarCrypticPMIResponse {\r\n data?: ServiceSearchData;\r\n /** Nome del gruppo. Vuoto se è un nuovo viaggio. */\r\n gruppo?: string | null;\r\n /** Nome del servizio Naar */\r\n servizio?: string | null;\r\n /** Nome della tipologia Naar */\r\n tipologia?: string | null;\r\n /** Nome della tipologia parent Naar */\r\n tipologiaParent?: string | null;\r\n /** Nome del bedding */\r\n bedding?: string | null;\r\n /** Nome dell'accordo */\r\n accordo?: string | null;\r\n /** Codice valuta dell'accordo */\r\n codiceValuta?: string | null;\r\n /** Data aggiornamento valuta */\r\n dataValuta?: string | null;\r\n /** Nome della valuta dell'accordo */\r\n valuta?: string | null;\r\n /** Valore reale valuta */\r\n valoreAttuale?: number;\r\n /** Valore applicato valuta */\r\n valoreApplicato?: number;\r\n /** ID del luogo fornitore */\r\n luogoFornitoreID?: number | null;\r\n /** Codice del luogo del fornitore */\r\n codiceLuogoFornitore?: string | null;\r\n /** Nome del luogo del fornitore */\r\n luogoFornitore?: string | null;\r\n /** Codice della tipologia del fornitore */\r\n codiceTiplogiaFornitore?: string | null;\r\n /** Nome della tipologia fornitore */\r\n tipologiaFornitore?: string | null;\r\n /** ID del servizio fornitore */\r\n servizioFornitoreID?: number | null;\r\n /** Codice servizio del fornitore */\r\n codiceServizioFornitore?: string | null;\r\n /** Nome servizio del fornitore */\r\n nomeServizioFornitore?: string | null;\r\n /** ID del servizio h2h */\r\n servizioH2HID?: number | null;\r\n /** Nome del servizio H2H */\r\n servizioH2H?: string | null;\r\n /** Trattamento */\r\n trattamento?: string | null;\r\n /** Disponibilità */\r\n disponibilita?: EStatoDisponibilita;\r\n /** Nome della tabella costo */\r\n tabellaCosto?: string | null;\r\n /** Fornitore */\r\n fornitore?: EFornitore;\r\n /** Luogo */\r\n luogo?: string | null;\r\n /** Luogo di destinazione */\r\n luogoDestionatione?: string | null;\r\n\r\n constructor(data?: INaarCrypticPMIResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.data = _data[\"data\"] ? ServiceSearchData.fromJS(_data[\"data\"]) : null;\r\n this.gruppo = _data[\"gruppo\"] !== undefined ? _data[\"gruppo\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.tipologia = _data[\"tipologia\"] !== undefined ? _data[\"tipologia\"] : null;\r\n this.tipologiaParent = _data[\"tipologiaParent\"] !== undefined ? _data[\"tipologiaParent\"] : null;\r\n this.bedding = _data[\"bedding\"] !== undefined ? _data[\"bedding\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n this.dataValuta = _data[\"dataValuta\"] !== undefined ? _data[\"dataValuta\"] : null;\r\n this.valuta = _data[\"valuta\"] !== undefined ? _data[\"valuta\"] : null;\r\n this.valoreAttuale = _data[\"valoreAttuale\"] !== undefined ? _data[\"valoreAttuale\"] : null;\r\n this.valoreApplicato = _data[\"valoreApplicato\"] !== undefined ? _data[\"valoreApplicato\"] : null;\r\n this.luogoFornitoreID = _data[\"luogoFornitoreID\"] !== undefined ? _data[\"luogoFornitoreID\"] : null;\r\n this.codiceLuogoFornitore = _data[\"codiceLuogoFornitore\"] !== undefined ? _data[\"codiceLuogoFornitore\"] : null;\r\n this.luogoFornitore = _data[\"luogoFornitore\"] !== undefined ? _data[\"luogoFornitore\"] : null;\r\n this.codiceTiplogiaFornitore = _data[\"codiceTiplogiaFornitore\"] !== undefined ? _data[\"codiceTiplogiaFornitore\"] : null;\r\n this.tipologiaFornitore = _data[\"tipologiaFornitore\"] !== undefined ? _data[\"tipologiaFornitore\"] : null;\r\n this.servizioFornitoreID = _data[\"servizioFornitoreID\"] !== undefined ? _data[\"servizioFornitoreID\"] : null;\r\n this.codiceServizioFornitore = _data[\"codiceServizioFornitore\"] !== undefined ? _data[\"codiceServizioFornitore\"] : null;\r\n this.nomeServizioFornitore = _data[\"nomeServizioFornitore\"] !== undefined ? _data[\"nomeServizioFornitore\"] : null;\r\n this.servizioH2HID = _data[\"servizioH2HID\"] !== undefined ? _data[\"servizioH2HID\"] : null;\r\n this.servizioH2H = _data[\"servizioH2H\"] !== undefined ? _data[\"servizioH2H\"] : null;\r\n this.trattamento = _data[\"trattamento\"] !== undefined ? _data[\"trattamento\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.tabellaCosto = _data[\"tabellaCosto\"] !== undefined ? _data[\"tabellaCosto\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoDestionatione = _data[\"luogoDestionatione\"] !== undefined ? _data[\"luogoDestionatione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticPMIResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticPMIResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"data\"] = this.data ? this.data.toJSON() : null;\r\n data[\"gruppo\"] = this.gruppo !== undefined ? this.gruppo : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"tipologia\"] = this.tipologia !== undefined ? this.tipologia : null;\r\n data[\"tipologiaParent\"] = this.tipologiaParent !== undefined ? this.tipologiaParent : null;\r\n data[\"bedding\"] = this.bedding !== undefined ? this.bedding : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n data[\"dataValuta\"] = this.dataValuta !== undefined ? this.dataValuta : null;\r\n data[\"valuta\"] = this.valuta !== undefined ? this.valuta : null;\r\n data[\"valoreAttuale\"] = this.valoreAttuale !== undefined ? this.valoreAttuale : null;\r\n data[\"valoreApplicato\"] = this.valoreApplicato !== undefined ? this.valoreApplicato : null;\r\n data[\"luogoFornitoreID\"] = this.luogoFornitoreID !== undefined ? this.luogoFornitoreID : null;\r\n data[\"codiceLuogoFornitore\"] = this.codiceLuogoFornitore !== undefined ? this.codiceLuogoFornitore : null;\r\n data[\"luogoFornitore\"] = this.luogoFornitore !== undefined ? this.luogoFornitore : null;\r\n data[\"codiceTiplogiaFornitore\"] = this.codiceTiplogiaFornitore !== undefined ? this.codiceTiplogiaFornitore : null;\r\n data[\"tipologiaFornitore\"] = this.tipologiaFornitore !== undefined ? this.tipologiaFornitore : null;\r\n data[\"servizioFornitoreID\"] = this.servizioFornitoreID !== undefined ? this.servizioFornitoreID : null;\r\n data[\"codiceServizioFornitore\"] = this.codiceServizioFornitore !== undefined ? this.codiceServizioFornitore : null;\r\n data[\"nomeServizioFornitore\"] = this.nomeServizioFornitore !== undefined ? this.nomeServizioFornitore : null;\r\n data[\"servizioH2HID\"] = this.servizioH2HID !== undefined ? this.servizioH2HID : null;\r\n data[\"servizioH2H\"] = this.servizioH2H !== undefined ? this.servizioH2H : null;\r\n data[\"trattamento\"] = this.trattamento !== undefined ? this.trattamento : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"tabellaCosto\"] = this.tabellaCosto !== undefined ? this.tabellaCosto : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoDestionatione\"] = this.luogoDestionatione !== undefined ? this.luogoDestionatione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticPMIResponse extends IOkApiResponse {\r\n data?: ServiceSearchData;\r\n /** Nome del gruppo. Vuoto se è un nuovo viaggio. */\r\n gruppo?: string | null;\r\n /** Nome del servizio Naar */\r\n servizio?: string | null;\r\n /** Nome della tipologia Naar */\r\n tipologia?: string | null;\r\n /** Nome della tipologia parent Naar */\r\n tipologiaParent?: string | null;\r\n /** Nome del bedding */\r\n bedding?: string | null;\r\n /** Nome dell'accordo */\r\n accordo?: string | null;\r\n /** Codice valuta dell'accordo */\r\n codiceValuta?: string | null;\r\n /** Data aggiornamento valuta */\r\n dataValuta?: string | null;\r\n /** Nome della valuta dell'accordo */\r\n valuta?: string | null;\r\n /** Valore reale valuta */\r\n valoreAttuale?: number;\r\n /** Valore applicato valuta */\r\n valoreApplicato?: number;\r\n /** ID del luogo fornitore */\r\n luogoFornitoreID?: number | null;\r\n /** Codice del luogo del fornitore */\r\n codiceLuogoFornitore?: string | null;\r\n /** Nome del luogo del fornitore */\r\n luogoFornitore?: string | null;\r\n /** Codice della tipologia del fornitore */\r\n codiceTiplogiaFornitore?: string | null;\r\n /** Nome della tipologia fornitore */\r\n tipologiaFornitore?: string | null;\r\n /** ID del servizio fornitore */\r\n servizioFornitoreID?: number | null;\r\n /** Codice servizio del fornitore */\r\n codiceServizioFornitore?: string | null;\r\n /** Nome servizio del fornitore */\r\n nomeServizioFornitore?: string | null;\r\n /** ID del servizio h2h */\r\n servizioH2HID?: number | null;\r\n /** Nome del servizio H2H */\r\n servizioH2H?: string | null;\r\n /** Trattamento */\r\n trattamento?: string | null;\r\n /** Disponibilità */\r\n disponibilita?: EStatoDisponibilita;\r\n /** Nome della tabella costo */\r\n tabellaCosto?: string | null;\r\n /** Fornitore */\r\n fornitore?: EFornitore;\r\n /** Luogo */\r\n luogo?: string | null;\r\n /** Luogo di destinazione */\r\n luogoDestionatione?: string | null;\r\n}\r\n\r\nexport class ServiceSearchData implements IServiceSearchData {\r\n gruppoID?: number;\r\n dataInizio?: string;\r\n servizioID?: number;\r\n servizioTipologiaID?: number;\r\n servizioTipologiaParentID?: number;\r\n beddingID?: number | null;\r\n quantita?: number;\r\n accordoID?: number;\r\n servizioFornitoreID?: number;\r\n codPrenotazione?: string | null;\r\n trattamentoID?: number;\r\n supplemento?: boolean;\r\n prezzo?: number;\r\n costo?: number;\r\n maxEta?: number;\r\n numeroPax?: number;\r\n tabAllotmentID?: number;\r\n disponibilita?: number;\r\n costoID?: number;\r\n tabellaCostoID?: number;\r\n fornitoreID?: number;\r\n numeroChild?: number;\r\n prezzoChild?: number;\r\n costoChild?: number;\r\n descrizione?: string | null;\r\n descrizioneFornitore?: string | null;\r\n notRefundable?: boolean;\r\n instantPurchase?: boolean;\r\n weddingRate?: boolean;\r\n penaleID?: number;\r\n hasFurtherInfo?: boolean;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n opzioni?: ServiceSearchSupplement[] | null;\r\n paxIDs?: number[] | null;\r\n dataFine?: string;\r\n luogoDestinazioneID?: number | null;\r\n luogoID?: number;\r\n tipoServizio?: ETipoServizioSearch;\r\n nota?: string | null;\r\n notaAgenzia?: string | null;\r\n notFound?: boolean;\r\n providerCustomData?: string | null;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n articoloPenaleID?: number | null;\r\n supplementi?: DisponibilitaSupplemento[] | null;\r\n supplementiAlt?: Supplemento[] | null;\r\n hashCode?: string | null;\r\n descrizioneHashCode?: string | null;\r\n supplementiDaInserire?: ServiceSearchData[] | null;\r\n servizioH2hID?: number | null;\r\n\r\n constructor(data?: IServiceSearchData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.gruppoID = _data[\"gruppoID\"] !== undefined ? _data[\"gruppoID\"] : null;\r\n this.dataInizio = _data[\"dataInizio\"] !== undefined ? _data[\"dataInizio\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n this.servizioTipologiaParentID = _data[\"servizioTipologiaParentID\"] !== undefined ? _data[\"servizioTipologiaParentID\"] : null;\r\n this.beddingID = _data[\"beddingID\"] !== undefined ? _data[\"beddingID\"] : null;\r\n this.quantita = _data[\"quantita\"] !== undefined ? _data[\"quantita\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.servizioFornitoreID = _data[\"servizioFornitoreID\"] !== undefined ? _data[\"servizioFornitoreID\"] : null;\r\n this.codPrenotazione = _data[\"codPrenotazione\"] !== undefined ? _data[\"codPrenotazione\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.supplemento = _data[\"supplemento\"] !== undefined ? _data[\"supplemento\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.maxEta = _data[\"maxEta\"] !== undefined ? _data[\"maxEta\"] : null;\r\n this.numeroPax = _data[\"numeroPax\"] !== undefined ? _data[\"numeroPax\"] : null;\r\n this.tabAllotmentID = _data[\"tabAllotmentID\"] !== undefined ? _data[\"tabAllotmentID\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.costoID = _data[\"costoID\"] !== undefined ? _data[\"costoID\"] : null;\r\n this.tabellaCostoID = _data[\"tabellaCostoID\"] !== undefined ? _data[\"tabellaCostoID\"] : null;\r\n this.fornitoreID = _data[\"fornitoreID\"] !== undefined ? _data[\"fornitoreID\"] : null;\r\n this.numeroChild = _data[\"numeroChild\"] !== undefined ? _data[\"numeroChild\"] : null;\r\n this.prezzoChild = _data[\"prezzoChild\"] !== undefined ? _data[\"prezzoChild\"] : null;\r\n this.costoChild = _data[\"costoChild\"] !== undefined ? _data[\"costoChild\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.descrizioneFornitore = _data[\"descrizioneFornitore\"] !== undefined ? _data[\"descrizioneFornitore\"] : null;\r\n this.notRefundable = _data[\"notRefundable\"] !== undefined ? _data[\"notRefundable\"] : null;\r\n this.instantPurchase = _data[\"instantPurchase\"] !== undefined ? _data[\"instantPurchase\"] : null;\r\n this.weddingRate = _data[\"weddingRate\"] !== undefined ? _data[\"weddingRate\"] : null;\r\n this.penaleID = _data[\"penaleID\"] !== undefined ? _data[\"penaleID\"] : null;\r\n this.hasFurtherInfo = _data[\"hasFurtherInfo\"] !== undefined ? _data[\"hasFurtherInfo\"] : null;\r\n if (Array.isArray(_data[\"offerte\"])) {\r\n this.offerte = [] as any;\r\n for (let item of _data[\"offerte\"])\r\n this.offerte!.push(DisponibilitaTipologiaOfferta.fromJS(item));\r\n }\r\n else {\r\n this.offerte = null;\r\n }\r\n if (Array.isArray(_data[\"opzioni\"])) {\r\n this.opzioni = [] as any;\r\n for (let item of _data[\"opzioni\"])\r\n this.opzioni!.push(ServiceSearchSupplement.fromJS(item));\r\n }\r\n else {\r\n this.opzioni = null;\r\n }\r\n if (Array.isArray(_data[\"paxIDs\"])) {\r\n this.paxIDs = [] as any;\r\n for (let item of _data[\"paxIDs\"])\r\n this.paxIDs!.push(item);\r\n }\r\n else {\r\n this.paxIDs = null;\r\n }\r\n this.dataFine = _data[\"dataFine\"] !== undefined ? _data[\"dataFine\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.nota = _data[\"nota\"] !== undefined ? _data[\"nota\"] : null;\r\n this.notaAgenzia = _data[\"notaAgenzia\"] !== undefined ? _data[\"notaAgenzia\"] : null;\r\n this.notFound = _data[\"notFound\"] !== undefined ? _data[\"notFound\"] : null;\r\n this.providerCustomData = _data[\"providerCustomData\"] !== undefined ? _data[\"providerCustomData\"] : null;\r\n this.dataPenale = _data[\"dataPenale\"] !== undefined ? _data[\"dataPenale\"] : null;\r\n this.importoPenale = _data[\"importoPenale\"] !== undefined ? _data[\"importoPenale\"] : null;\r\n this.articoloPenaleID = _data[\"articoloPenaleID\"] !== undefined ? _data[\"articoloPenaleID\"] : null;\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(DisponibilitaSupplemento.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n if (Array.isArray(_data[\"supplementiAlt\"])) {\r\n this.supplementiAlt = [] as any;\r\n for (let item of _data[\"supplementiAlt\"])\r\n this.supplementiAlt!.push(Supplemento.fromJS(item));\r\n }\r\n else {\r\n this.supplementiAlt = null;\r\n }\r\n this.hashCode = _data[\"hashCode\"] !== undefined ? _data[\"hashCode\"] : null;\r\n this.descrizioneHashCode = _data[\"descrizioneHashCode\"] !== undefined ? _data[\"descrizioneHashCode\"] : null;\r\n if (Array.isArray(_data[\"supplementiDaInserire\"])) {\r\n this.supplementiDaInserire = [] as any;\r\n for (let item of _data[\"supplementiDaInserire\"])\r\n this.supplementiDaInserire!.push(ServiceSearchData.fromJS(item));\r\n }\r\n else {\r\n this.supplementiDaInserire = null;\r\n }\r\n this.servizioH2hID = _data[\"servizioH2hID\"] !== undefined ? _data[\"servizioH2hID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceSearchData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceSearchData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"gruppoID\"] = this.gruppoID !== undefined ? this.gruppoID : null;\r\n data[\"dataInizio\"] = this.dataInizio !== undefined ? this.dataInizio : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n data[\"servizioTipologiaParentID\"] = this.servizioTipologiaParentID !== undefined ? this.servizioTipologiaParentID : null;\r\n data[\"beddingID\"] = this.beddingID !== undefined ? this.beddingID : null;\r\n data[\"quantita\"] = this.quantita !== undefined ? this.quantita : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"servizioFornitoreID\"] = this.servizioFornitoreID !== undefined ? this.servizioFornitoreID : null;\r\n data[\"codPrenotazione\"] = this.codPrenotazione !== undefined ? this.codPrenotazione : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"supplemento\"] = this.supplemento !== undefined ? this.supplemento : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"maxEta\"] = this.maxEta !== undefined ? this.maxEta : null;\r\n data[\"numeroPax\"] = this.numeroPax !== undefined ? this.numeroPax : null;\r\n data[\"tabAllotmentID\"] = this.tabAllotmentID !== undefined ? this.tabAllotmentID : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"costoID\"] = this.costoID !== undefined ? this.costoID : null;\r\n data[\"tabellaCostoID\"] = this.tabellaCostoID !== undefined ? this.tabellaCostoID : null;\r\n data[\"fornitoreID\"] = this.fornitoreID !== undefined ? this.fornitoreID : null;\r\n data[\"numeroChild\"] = this.numeroChild !== undefined ? this.numeroChild : null;\r\n data[\"prezzoChild\"] = this.prezzoChild !== undefined ? this.prezzoChild : null;\r\n data[\"costoChild\"] = this.costoChild !== undefined ? this.costoChild : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"descrizioneFornitore\"] = this.descrizioneFornitore !== undefined ? this.descrizioneFornitore : null;\r\n data[\"notRefundable\"] = this.notRefundable !== undefined ? this.notRefundable : null;\r\n data[\"instantPurchase\"] = this.instantPurchase !== undefined ? this.instantPurchase : null;\r\n data[\"weddingRate\"] = this.weddingRate !== undefined ? this.weddingRate : null;\r\n data[\"penaleID\"] = this.penaleID !== undefined ? this.penaleID : null;\r\n data[\"hasFurtherInfo\"] = this.hasFurtherInfo !== undefined ? this.hasFurtherInfo : null;\r\n if (Array.isArray(this.offerte)) {\r\n data[\"offerte\"] = [];\r\n for (let item of this.offerte)\r\n data[\"offerte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.opzioni)) {\r\n data[\"opzioni\"] = [];\r\n for (let item of this.opzioni)\r\n data[\"opzioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.paxIDs)) {\r\n data[\"paxIDs\"] = [];\r\n for (let item of this.paxIDs)\r\n data[\"paxIDs\"].push(item);\r\n }\r\n data[\"dataFine\"] = this.dataFine !== undefined ? this.dataFine : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"nota\"] = this.nota !== undefined ? this.nota : null;\r\n data[\"notaAgenzia\"] = this.notaAgenzia !== undefined ? this.notaAgenzia : null;\r\n data[\"notFound\"] = this.notFound !== undefined ? this.notFound : null;\r\n data[\"providerCustomData\"] = this.providerCustomData !== undefined ? this.providerCustomData : null;\r\n data[\"dataPenale\"] = this.dataPenale !== undefined ? this.dataPenale : null;\r\n data[\"importoPenale\"] = this.importoPenale !== undefined ? this.importoPenale : null;\r\n data[\"articoloPenaleID\"] = this.articoloPenaleID !== undefined ? this.articoloPenaleID : null;\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.supplementiAlt)) {\r\n data[\"supplementiAlt\"] = [];\r\n for (let item of this.supplementiAlt)\r\n data[\"supplementiAlt\"].push(item.toJSON());\r\n }\r\n data[\"hashCode\"] = this.hashCode !== undefined ? this.hashCode : null;\r\n data[\"descrizioneHashCode\"] = this.descrizioneHashCode !== undefined ? this.descrizioneHashCode : null;\r\n if (Array.isArray(this.supplementiDaInserire)) {\r\n data[\"supplementiDaInserire\"] = [];\r\n for (let item of this.supplementiDaInserire)\r\n data[\"supplementiDaInserire\"].push(item.toJSON());\r\n }\r\n data[\"servizioH2hID\"] = this.servizioH2hID !== undefined ? this.servizioH2hID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceSearchData {\r\n gruppoID?: number;\r\n dataInizio?: string;\r\n servizioID?: number;\r\n servizioTipologiaID?: number;\r\n servizioTipologiaParentID?: number;\r\n beddingID?: number | null;\r\n quantita?: number;\r\n accordoID?: number;\r\n servizioFornitoreID?: number;\r\n codPrenotazione?: string | null;\r\n trattamentoID?: number;\r\n supplemento?: boolean;\r\n prezzo?: number;\r\n costo?: number;\r\n maxEta?: number;\r\n numeroPax?: number;\r\n tabAllotmentID?: number;\r\n disponibilita?: number;\r\n costoID?: number;\r\n tabellaCostoID?: number;\r\n fornitoreID?: number;\r\n numeroChild?: number;\r\n prezzoChild?: number;\r\n costoChild?: number;\r\n descrizione?: string | null;\r\n descrizioneFornitore?: string | null;\r\n notRefundable?: boolean;\r\n instantPurchase?: boolean;\r\n weddingRate?: boolean;\r\n penaleID?: number;\r\n hasFurtherInfo?: boolean;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n opzioni?: ServiceSearchSupplement[] | null;\r\n paxIDs?: number[] | null;\r\n dataFine?: string;\r\n luogoDestinazioneID?: number | null;\r\n luogoID?: number;\r\n tipoServizio?: ETipoServizioSearch;\r\n nota?: string | null;\r\n notaAgenzia?: string | null;\r\n notFound?: boolean;\r\n providerCustomData?: string | null;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n articoloPenaleID?: number | null;\r\n supplementi?: DisponibilitaSupplemento[] | null;\r\n supplementiAlt?: Supplemento[] | null;\r\n hashCode?: string | null;\r\n descrizioneHashCode?: string | null;\r\n supplementiDaInserire?: ServiceSearchData[] | null;\r\n servizioH2hID?: number | null;\r\n}\r\n\r\nexport class DisponibilitaTipologiaOfferta implements IDisponibilitaTipologiaOfferta {\r\n prezzo?: number;\r\n costo?: number;\r\n label?: string | null;\r\n idserv_sup?: number;\r\n tipo?: ETipoAzioneDettaglio;\r\n\r\n constructor(data?: IDisponibilitaTipologiaOfferta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.idserv_sup = _data[\"idserv_sup\"] !== undefined ? _data[\"idserv_sup\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaTipologiaOfferta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaTipologiaOfferta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"idserv_sup\"] = this.idserv_sup !== undefined ? this.idserv_sup : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaTipologiaOfferta {\r\n prezzo?: number;\r\n costo?: number;\r\n label?: string | null;\r\n idserv_sup?: number;\r\n tipo?: ETipoAzioneDettaglio;\r\n}\r\n\r\nexport class ServiceSearchSupplement implements IServiceSearchSupplement {\r\n supplierID?: number;\r\n resultID?: number;\r\n resultItemID?: number;\r\n departureID?: number | null;\r\n optionID?: number;\r\n mandatory?: boolean;\r\n\r\n constructor(data?: IServiceSearchSupplement) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.supplierID = _data[\"supplierID\"] !== undefined ? _data[\"supplierID\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n this.resultItemID = _data[\"resultItemID\"] !== undefined ? _data[\"resultItemID\"] : null;\r\n this.departureID = _data[\"departureID\"] !== undefined ? _data[\"departureID\"] : null;\r\n this.optionID = _data[\"optionID\"] !== undefined ? _data[\"optionID\"] : null;\r\n this.mandatory = _data[\"mandatory\"] !== undefined ? _data[\"mandatory\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceSearchSupplement {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceSearchSupplement();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplierID\"] = this.supplierID !== undefined ? this.supplierID : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n data[\"resultItemID\"] = this.resultItemID !== undefined ? this.resultItemID : null;\r\n data[\"departureID\"] = this.departureID !== undefined ? this.departureID : null;\r\n data[\"optionID\"] = this.optionID !== undefined ? this.optionID : null;\r\n data[\"mandatory\"] = this.mandatory !== undefined ? this.mandatory : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceSearchSupplement {\r\n supplierID?: number;\r\n resultID?: number;\r\n resultItemID?: number;\r\n departureID?: number | null;\r\n optionID?: number;\r\n mandatory?: boolean;\r\n}\r\n\r\nexport enum ETipoServizioSearch {\r\n Hotel = \"Hotel\",\r\n Visite = \"Visite\",\r\n Noleggi = \"Noleggi\",\r\n SelfDrive = \"SelfDrive\",\r\n Tour = \"Tour\",\r\n Unknown = \"Unknown\",\r\n Pacchetti = \"Pacchetti\",\r\n Voli = \"Voli\",\r\n ItinerariConsigliati = \"ItinerariConsigliati\",\r\n Traghetti = \"Traghetti\",\r\n}\r\n\r\nexport class DisponibilitaSupplemento implements IDisponibilitaSupplemento {\r\n isObbligatorio?: boolean;\r\n percentuale?: boolean;\r\n alternative?: DisponibilitaTipologia[] | null;\r\n\r\n constructor(data?: IDisponibilitaSupplemento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.isObbligatorio = _data[\"isObbligatorio\"] !== undefined ? _data[\"isObbligatorio\"] : null;\r\n this.percentuale = _data[\"percentuale\"] !== undefined ? _data[\"percentuale\"] : null;\r\n if (Array.isArray(_data[\"alternative\"])) {\r\n this.alternative = [] as any;\r\n for (let item of _data[\"alternative\"])\r\n this.alternative!.push(DisponibilitaTipologia.fromJS(item));\r\n }\r\n else {\r\n this.alternative = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaSupplemento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaSupplemento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"isObbligatorio\"] = this.isObbligatorio !== undefined ? this.isObbligatorio : null;\r\n data[\"percentuale\"] = this.percentuale !== undefined ? this.percentuale : null;\r\n if (Array.isArray(this.alternative)) {\r\n data[\"alternative\"] = [];\r\n for (let item of this.alternative)\r\n data[\"alternative\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaSupplemento {\r\n isObbligatorio?: boolean;\r\n percentuale?: boolean;\r\n alternative?: DisponibilitaTipologia[] | null;\r\n}\r\n\r\nexport class DisponibilitaTipologia implements IDisponibilitaTipologia {\r\n id?: number;\r\n prenotabile?: boolean;\r\n messaggioPrenotabile?: string | null;\r\n resultItemID?: number;\r\n accordoID?: number;\r\n servizioFornitoreID?: number;\r\n gruppoID?: number;\r\n servizioTipologiaID?: number | null;\r\n trattamentoID?: number | null;\r\n codTipologiaServizio?: string | null;\r\n codPrenotazione?: string | null;\r\n descrizione?: string | null;\r\n descrizioneTipologia?: string | null;\r\n statoDisponibilita?: EStatoDisponibilita;\r\n tabAllotmentID?: number | null;\r\n costi?: DisponibilitaTipologiaCosto[] | null;\r\n supplementi?: DisponibilitaSupplemento[] | null;\r\n partenze?: DisponibilitaPartenza[] | null;\r\n penaleID?: number;\r\n providerCustomData?: string | null;\r\n descrizioneFornitore?: string | null;\r\n codiceMappingGenerico?: string | null;\r\n notRefundable?: boolean;\r\n instantPurchase?: boolean;\r\n weddingRate?: boolean;\r\n tabellaCostoID?: number;\r\n descrizioneTabellaCosto?: string | null;\r\n resultID?: number;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n nota?: string | null;\r\n prezzoAdulti?: number;\r\n prezzoBambini?: number;\r\n descrizioneID?: number | null;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n articoloPenaleID?: number | null;\r\n tariffeMezzaDoppia?: TariffaMezzaDoppia[] | null;\r\n prezziGiorniPax?: PrezzoGiornoPax[] | null;\r\n beddignCalcolatoID?: number | null;\r\n regolaVenditaPenaleID?: number | null;\r\n hashcodeID?: number | null;\r\n bedsID?: number | null;\r\n mealID?: number | null;\r\n regolaVenditaID?: number | null;\r\n descrizioneTariffa?: string | null;\r\n\r\n constructor(data?: IDisponibilitaTipologia) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.prenotabile = _data[\"prenotabile\"] !== undefined ? _data[\"prenotabile\"] : null;\r\n this.messaggioPrenotabile = _data[\"messaggioPrenotabile\"] !== undefined ? _data[\"messaggioPrenotabile\"] : null;\r\n this.resultItemID = _data[\"resultItemID\"] !== undefined ? _data[\"resultItemID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.servizioFornitoreID = _data[\"servizioFornitoreID\"] !== undefined ? _data[\"servizioFornitoreID\"] : null;\r\n this.gruppoID = _data[\"gruppoID\"] !== undefined ? _data[\"gruppoID\"] : null;\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.codTipologiaServizio = _data[\"codTipologiaServizio\"] !== undefined ? _data[\"codTipologiaServizio\"] : null;\r\n this.codPrenotazione = _data[\"codPrenotazione\"] !== undefined ? _data[\"codPrenotazione\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.descrizioneTipologia = _data[\"descrizioneTipologia\"] !== undefined ? _data[\"descrizioneTipologia\"] : null;\r\n this.statoDisponibilita = _data[\"statoDisponibilita\"] !== undefined ? _data[\"statoDisponibilita\"] : null;\r\n this.tabAllotmentID = _data[\"tabAllotmentID\"] !== undefined ? _data[\"tabAllotmentID\"] : null;\r\n if (Array.isArray(_data[\"costi\"])) {\r\n this.costi = [] as any;\r\n for (let item of _data[\"costi\"])\r\n this.costi!.push(DisponibilitaTipologiaCosto.fromJS(item));\r\n }\r\n else {\r\n this.costi = null;\r\n }\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(DisponibilitaSupplemento.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n if (Array.isArray(_data[\"partenze\"])) {\r\n this.partenze = [] as any;\r\n for (let item of _data[\"partenze\"])\r\n this.partenze!.push(DisponibilitaPartenza.fromJS(item));\r\n }\r\n else {\r\n this.partenze = null;\r\n }\r\n this.penaleID = _data[\"penaleID\"] !== undefined ? _data[\"penaleID\"] : null;\r\n this.providerCustomData = _data[\"providerCustomData\"] !== undefined ? _data[\"providerCustomData\"] : null;\r\n this.descrizioneFornitore = _data[\"descrizioneFornitore\"] !== undefined ? _data[\"descrizioneFornitore\"] : null;\r\n this.codiceMappingGenerico = _data[\"codiceMappingGenerico\"] !== undefined ? _data[\"codiceMappingGenerico\"] : null;\r\n this.notRefundable = _data[\"notRefundable\"] !== undefined ? _data[\"notRefundable\"] : null;\r\n this.instantPurchase = _data[\"instantPurchase\"] !== undefined ? _data[\"instantPurchase\"] : null;\r\n this.weddingRate = _data[\"weddingRate\"] !== undefined ? _data[\"weddingRate\"] : null;\r\n this.tabellaCostoID = _data[\"tabellaCostoID\"] !== undefined ? _data[\"tabellaCostoID\"] : null;\r\n this.descrizioneTabellaCosto = _data[\"descrizioneTabellaCosto\"] !== undefined ? _data[\"descrizioneTabellaCosto\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n if (Array.isArray(_data[\"offerte\"])) {\r\n this.offerte = [] as any;\r\n for (let item of _data[\"offerte\"])\r\n this.offerte!.push(DisponibilitaTipologiaOfferta.fromJS(item));\r\n }\r\n else {\r\n this.offerte = null;\r\n }\r\n this.nota = _data[\"nota\"] !== undefined ? _data[\"nota\"] : null;\r\n this.prezzoAdulti = _data[\"prezzoAdulti\"] !== undefined ? _data[\"prezzoAdulti\"] : null;\r\n this.prezzoBambini = _data[\"prezzoBambini\"] !== undefined ? _data[\"prezzoBambini\"] : null;\r\n this.descrizioneID = _data[\"descrizioneID\"] !== undefined ? _data[\"descrizioneID\"] : null;\r\n this.dataPenale = _data[\"dataPenale\"] !== undefined ? _data[\"dataPenale\"] : null;\r\n this.importoPenale = _data[\"importoPenale\"] !== undefined ? _data[\"importoPenale\"] : null;\r\n this.articoloPenaleID = _data[\"articoloPenaleID\"] !== undefined ? _data[\"articoloPenaleID\"] : null;\r\n if (Array.isArray(_data[\"tariffeMezzaDoppia\"])) {\r\n this.tariffeMezzaDoppia = [] as any;\r\n for (let item of _data[\"tariffeMezzaDoppia\"])\r\n this.tariffeMezzaDoppia!.push(TariffaMezzaDoppia.fromJS(item));\r\n }\r\n else {\r\n this.tariffeMezzaDoppia = null;\r\n }\r\n if (Array.isArray(_data[\"prezziGiorniPax\"])) {\r\n this.prezziGiorniPax = [] as any;\r\n for (let item of _data[\"prezziGiorniPax\"])\r\n this.prezziGiorniPax!.push(PrezzoGiornoPax.fromJS(item));\r\n }\r\n else {\r\n this.prezziGiorniPax = null;\r\n }\r\n this.beddignCalcolatoID = _data[\"beddignCalcolatoID\"] !== undefined ? _data[\"beddignCalcolatoID\"] : null;\r\n this.regolaVenditaPenaleID = _data[\"regolaVenditaPenaleID\"] !== undefined ? _data[\"regolaVenditaPenaleID\"] : null;\r\n this.hashcodeID = _data[\"hashcodeID\"] !== undefined ? _data[\"hashcodeID\"] : null;\r\n this.bedsID = _data[\"bedsID\"] !== undefined ? _data[\"bedsID\"] : null;\r\n this.mealID = _data[\"mealID\"] !== undefined ? _data[\"mealID\"] : null;\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n this.descrizioneTariffa = _data[\"descrizioneTariffa\"] !== undefined ? _data[\"descrizioneTariffa\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaTipologia {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaTipologia();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"prenotabile\"] = this.prenotabile !== undefined ? this.prenotabile : null;\r\n data[\"messaggioPrenotabile\"] = this.messaggioPrenotabile !== undefined ? this.messaggioPrenotabile : null;\r\n data[\"resultItemID\"] = this.resultItemID !== undefined ? this.resultItemID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"servizioFornitoreID\"] = this.servizioFornitoreID !== undefined ? this.servizioFornitoreID : null;\r\n data[\"gruppoID\"] = this.gruppoID !== undefined ? this.gruppoID : null;\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"codTipologiaServizio\"] = this.codTipologiaServizio !== undefined ? this.codTipologiaServizio : null;\r\n data[\"codPrenotazione\"] = this.codPrenotazione !== undefined ? this.codPrenotazione : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"descrizioneTipologia\"] = this.descrizioneTipologia !== undefined ? this.descrizioneTipologia : null;\r\n data[\"statoDisponibilita\"] = this.statoDisponibilita !== undefined ? this.statoDisponibilita : null;\r\n data[\"tabAllotmentID\"] = this.tabAllotmentID !== undefined ? this.tabAllotmentID : null;\r\n if (Array.isArray(this.costi)) {\r\n data[\"costi\"] = [];\r\n for (let item of this.costi)\r\n data[\"costi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.partenze)) {\r\n data[\"partenze\"] = [];\r\n for (let item of this.partenze)\r\n data[\"partenze\"].push(item.toJSON());\r\n }\r\n data[\"penaleID\"] = this.penaleID !== undefined ? this.penaleID : null;\r\n data[\"providerCustomData\"] = this.providerCustomData !== undefined ? this.providerCustomData : null;\r\n data[\"descrizioneFornitore\"] = this.descrizioneFornitore !== undefined ? this.descrizioneFornitore : null;\r\n data[\"codiceMappingGenerico\"] = this.codiceMappingGenerico !== undefined ? this.codiceMappingGenerico : null;\r\n data[\"notRefundable\"] = this.notRefundable !== undefined ? this.notRefundable : null;\r\n data[\"instantPurchase\"] = this.instantPurchase !== undefined ? this.instantPurchase : null;\r\n data[\"weddingRate\"] = this.weddingRate !== undefined ? this.weddingRate : null;\r\n data[\"tabellaCostoID\"] = this.tabellaCostoID !== undefined ? this.tabellaCostoID : null;\r\n data[\"descrizioneTabellaCosto\"] = this.descrizioneTabellaCosto !== undefined ? this.descrizioneTabellaCosto : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n if (Array.isArray(this.offerte)) {\r\n data[\"offerte\"] = [];\r\n for (let item of this.offerte)\r\n data[\"offerte\"].push(item.toJSON());\r\n }\r\n data[\"nota\"] = this.nota !== undefined ? this.nota : null;\r\n data[\"prezzoAdulti\"] = this.prezzoAdulti !== undefined ? this.prezzoAdulti : null;\r\n data[\"prezzoBambini\"] = this.prezzoBambini !== undefined ? this.prezzoBambini : null;\r\n data[\"descrizioneID\"] = this.descrizioneID !== undefined ? this.descrizioneID : null;\r\n data[\"dataPenale\"] = this.dataPenale !== undefined ? this.dataPenale : null;\r\n data[\"importoPenale\"] = this.importoPenale !== undefined ? this.importoPenale : null;\r\n data[\"articoloPenaleID\"] = this.articoloPenaleID !== undefined ? this.articoloPenaleID : null;\r\n if (Array.isArray(this.tariffeMezzaDoppia)) {\r\n data[\"tariffeMezzaDoppia\"] = [];\r\n for (let item of this.tariffeMezzaDoppia)\r\n data[\"tariffeMezzaDoppia\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.prezziGiorniPax)) {\r\n data[\"prezziGiorniPax\"] = [];\r\n for (let item of this.prezziGiorniPax)\r\n data[\"prezziGiorniPax\"].push(item.toJSON());\r\n }\r\n data[\"beddignCalcolatoID\"] = this.beddignCalcolatoID !== undefined ? this.beddignCalcolatoID : null;\r\n data[\"regolaVenditaPenaleID\"] = this.regolaVenditaPenaleID !== undefined ? this.regolaVenditaPenaleID : null;\r\n data[\"hashcodeID\"] = this.hashcodeID !== undefined ? this.hashcodeID : null;\r\n data[\"bedsID\"] = this.bedsID !== undefined ? this.bedsID : null;\r\n data[\"mealID\"] = this.mealID !== undefined ? this.mealID : null;\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n data[\"descrizioneTariffa\"] = this.descrizioneTariffa !== undefined ? this.descrizioneTariffa : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaTipologia {\r\n id?: number;\r\n prenotabile?: boolean;\r\n messaggioPrenotabile?: string | null;\r\n resultItemID?: number;\r\n accordoID?: number;\r\n servizioFornitoreID?: number;\r\n gruppoID?: number;\r\n servizioTipologiaID?: number | null;\r\n trattamentoID?: number | null;\r\n codTipologiaServizio?: string | null;\r\n codPrenotazione?: string | null;\r\n descrizione?: string | null;\r\n descrizioneTipologia?: string | null;\r\n statoDisponibilita?: EStatoDisponibilita;\r\n tabAllotmentID?: number | null;\r\n costi?: DisponibilitaTipologiaCosto[] | null;\r\n supplementi?: DisponibilitaSupplemento[] | null;\r\n partenze?: DisponibilitaPartenza[] | null;\r\n penaleID?: number;\r\n providerCustomData?: string | null;\r\n descrizioneFornitore?: string | null;\r\n codiceMappingGenerico?: string | null;\r\n notRefundable?: boolean;\r\n instantPurchase?: boolean;\r\n weddingRate?: boolean;\r\n tabellaCostoID?: number;\r\n descrizioneTabellaCosto?: string | null;\r\n resultID?: number;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n nota?: string | null;\r\n prezzoAdulti?: number;\r\n prezzoBambini?: number;\r\n descrizioneID?: number | null;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n articoloPenaleID?: number | null;\r\n tariffeMezzaDoppia?: TariffaMezzaDoppia[] | null;\r\n prezziGiorniPax?: PrezzoGiornoPax[] | null;\r\n beddignCalcolatoID?: number | null;\r\n regolaVenditaPenaleID?: number | null;\r\n hashcodeID?: number | null;\r\n bedsID?: number | null;\r\n mealID?: number | null;\r\n regolaVenditaID?: number | null;\r\n descrizioneTariffa?: string | null;\r\n}\r\n\r\nexport class DisponibilitaTipologiaCosto implements IDisponibilitaTipologiaCosto {\r\n viaggiatoreID?: number;\r\n name?: string | null;\r\n prezzo?: number | null;\r\n costo?: number;\r\n costoID?: number;\r\n numPersone?: number;\r\n maxEta?: number;\r\n tipoPax?: ETipoPax;\r\n\r\n constructor(data?: IDisponibilitaTipologiaCosto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.viaggiatoreID = _data[\"viaggiatoreID\"] !== undefined ? _data[\"viaggiatoreID\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.costoID = _data[\"costoID\"] !== undefined ? _data[\"costoID\"] : null;\r\n this.numPersone = _data[\"numPersone\"] !== undefined ? _data[\"numPersone\"] : null;\r\n this.maxEta = _data[\"maxEta\"] !== undefined ? _data[\"maxEta\"] : null;\r\n this.tipoPax = _data[\"tipoPax\"] !== undefined ? _data[\"tipoPax\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaTipologiaCosto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaTipologiaCosto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"viaggiatoreID\"] = this.viaggiatoreID !== undefined ? this.viaggiatoreID : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"costoID\"] = this.costoID !== undefined ? this.costoID : null;\r\n data[\"numPersone\"] = this.numPersone !== undefined ? this.numPersone : null;\r\n data[\"maxEta\"] = this.maxEta !== undefined ? this.maxEta : null;\r\n data[\"tipoPax\"] = this.tipoPax !== undefined ? this.tipoPax : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaTipologiaCosto {\r\n viaggiatoreID?: number;\r\n name?: string | null;\r\n prezzo?: number | null;\r\n costo?: number;\r\n costoID?: number;\r\n numPersone?: number;\r\n maxEta?: number;\r\n tipoPax?: ETipoPax;\r\n}\r\n\r\nexport class DisponibilitaPartenza implements IDisponibilitaPartenza {\r\n referenceID?: number;\r\n partenza?: string;\r\n costi?: DisponibilitaTipologiaCosto[] | null;\r\n prezzoAdulti?: number;\r\n prezzoBambini?: number;\r\n statoDisponibilita?: EStatoDisponibilita;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n supplementi?: DisponibilitaSupplemento[] | null;\r\n penaleID?: number | null;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n articoloPenaleID?: number | null;\r\n tariffeMezzaDoppia?: TariffaMezzaDoppia[] | null;\r\n prezziGiorniPax?: PrezzoGiornoPax[] | null;\r\n beddignCalcolatoID?: number | null;\r\n regolaVenditaPenaleID?: number | null;\r\n\r\n constructor(data?: IDisponibilitaPartenza) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.referenceID = _data[\"referenceID\"] !== undefined ? _data[\"referenceID\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n if (Array.isArray(_data[\"costi\"])) {\r\n this.costi = [] as any;\r\n for (let item of _data[\"costi\"])\r\n this.costi!.push(DisponibilitaTipologiaCosto.fromJS(item));\r\n }\r\n else {\r\n this.costi = null;\r\n }\r\n this.prezzoAdulti = _data[\"prezzoAdulti\"] !== undefined ? _data[\"prezzoAdulti\"] : null;\r\n this.prezzoBambini = _data[\"prezzoBambini\"] !== undefined ? _data[\"prezzoBambini\"] : null;\r\n this.statoDisponibilita = _data[\"statoDisponibilita\"] !== undefined ? _data[\"statoDisponibilita\"] : null;\r\n if (Array.isArray(_data[\"offerte\"])) {\r\n this.offerte = [] as any;\r\n for (let item of _data[\"offerte\"])\r\n this.offerte!.push(DisponibilitaTipologiaOfferta.fromJS(item));\r\n }\r\n else {\r\n this.offerte = null;\r\n }\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(DisponibilitaSupplemento.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n this.penaleID = _data[\"penaleID\"] !== undefined ? _data[\"penaleID\"] : null;\r\n this.dataPenale = _data[\"dataPenale\"] !== undefined ? _data[\"dataPenale\"] : null;\r\n this.importoPenale = _data[\"importoPenale\"] !== undefined ? _data[\"importoPenale\"] : null;\r\n this.articoloPenaleID = _data[\"articoloPenaleID\"] !== undefined ? _data[\"articoloPenaleID\"] : null;\r\n if (Array.isArray(_data[\"tariffeMezzaDoppia\"])) {\r\n this.tariffeMezzaDoppia = [] as any;\r\n for (let item of _data[\"tariffeMezzaDoppia\"])\r\n this.tariffeMezzaDoppia!.push(TariffaMezzaDoppia.fromJS(item));\r\n }\r\n else {\r\n this.tariffeMezzaDoppia = null;\r\n }\r\n if (Array.isArray(_data[\"prezziGiorniPax\"])) {\r\n this.prezziGiorniPax = [] as any;\r\n for (let item of _data[\"prezziGiorniPax\"])\r\n this.prezziGiorniPax!.push(PrezzoGiornoPax.fromJS(item));\r\n }\r\n else {\r\n this.prezziGiorniPax = null;\r\n }\r\n this.beddignCalcolatoID = _data[\"beddignCalcolatoID\"] !== undefined ? _data[\"beddignCalcolatoID\"] : null;\r\n this.regolaVenditaPenaleID = _data[\"regolaVenditaPenaleID\"] !== undefined ? _data[\"regolaVenditaPenaleID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaPartenza {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaPartenza();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"referenceID\"] = this.referenceID !== undefined ? this.referenceID : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n if (Array.isArray(this.costi)) {\r\n data[\"costi\"] = [];\r\n for (let item of this.costi)\r\n data[\"costi\"].push(item.toJSON());\r\n }\r\n data[\"prezzoAdulti\"] = this.prezzoAdulti !== undefined ? this.prezzoAdulti : null;\r\n data[\"prezzoBambini\"] = this.prezzoBambini !== undefined ? this.prezzoBambini : null;\r\n data[\"statoDisponibilita\"] = this.statoDisponibilita !== undefined ? this.statoDisponibilita : null;\r\n if (Array.isArray(this.offerte)) {\r\n data[\"offerte\"] = [];\r\n for (let item of this.offerte)\r\n data[\"offerte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n data[\"penaleID\"] = this.penaleID !== undefined ? this.penaleID : null;\r\n data[\"dataPenale\"] = this.dataPenale !== undefined ? this.dataPenale : null;\r\n data[\"importoPenale\"] = this.importoPenale !== undefined ? this.importoPenale : null;\r\n data[\"articoloPenaleID\"] = this.articoloPenaleID !== undefined ? this.articoloPenaleID : null;\r\n if (Array.isArray(this.tariffeMezzaDoppia)) {\r\n data[\"tariffeMezzaDoppia\"] = [];\r\n for (let item of this.tariffeMezzaDoppia)\r\n data[\"tariffeMezzaDoppia\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.prezziGiorniPax)) {\r\n data[\"prezziGiorniPax\"] = [];\r\n for (let item of this.prezziGiorniPax)\r\n data[\"prezziGiorniPax\"].push(item.toJSON());\r\n }\r\n data[\"beddignCalcolatoID\"] = this.beddignCalcolatoID !== undefined ? this.beddignCalcolatoID : null;\r\n data[\"regolaVenditaPenaleID\"] = this.regolaVenditaPenaleID !== undefined ? this.regolaVenditaPenaleID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaPartenza {\r\n referenceID?: number;\r\n partenza?: string;\r\n costi?: DisponibilitaTipologiaCosto[] | null;\r\n prezzoAdulti?: number;\r\n prezzoBambini?: number;\r\n statoDisponibilita?: EStatoDisponibilita;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n supplementi?: DisponibilitaSupplemento[] | null;\r\n penaleID?: number | null;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n articoloPenaleID?: number | null;\r\n tariffeMezzaDoppia?: TariffaMezzaDoppia[] | null;\r\n prezziGiorniPax?: PrezzoGiornoPax[] | null;\r\n beddignCalcolatoID?: number | null;\r\n regolaVenditaPenaleID?: number | null;\r\n}\r\n\r\nexport class TariffaMezzaDoppia implements ITariffaMezzaDoppia {\r\n prezzo?: number;\r\n costo?: number;\r\n data?: string;\r\n\r\n constructor(data?: ITariffaMezzaDoppia) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TariffaMezzaDoppia {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TariffaMezzaDoppia();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITariffaMezzaDoppia {\r\n prezzo?: number;\r\n costo?: number;\r\n data?: string;\r\n}\r\n\r\nexport class PrezzoGiornoPax implements IPrezzoGiornoPax {\r\n paxID?: number;\r\n data?: string;\r\n prezzo?: number;\r\n costo?: number;\r\n regolaVenditaApplicata?: number | null;\r\n prezzoChild?: boolean;\r\n costoID?: number;\r\n\r\n constructor(data?: IPrezzoGiornoPax) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.paxID = _data[\"paxID\"] !== undefined ? _data[\"paxID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.regolaVenditaApplicata = _data[\"regolaVenditaApplicata\"] !== undefined ? _data[\"regolaVenditaApplicata\"] : null;\r\n this.prezzoChild = _data[\"prezzoChild\"] !== undefined ? _data[\"prezzoChild\"] : null;\r\n this.costoID = _data[\"costoID\"] !== undefined ? _data[\"costoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PrezzoGiornoPax {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PrezzoGiornoPax();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paxID\"] = this.paxID !== undefined ? this.paxID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"regolaVenditaApplicata\"] = this.regolaVenditaApplicata !== undefined ? this.regolaVenditaApplicata : null;\r\n data[\"prezzoChild\"] = this.prezzoChild !== undefined ? this.prezzoChild : null;\r\n data[\"costoID\"] = this.costoID !== undefined ? this.costoID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPrezzoGiornoPax {\r\n paxID?: number;\r\n data?: string;\r\n prezzo?: number;\r\n costo?: number;\r\n regolaVenditaApplicata?: number | null;\r\n prezzoChild?: boolean;\r\n costoID?: number;\r\n}\r\n\r\nexport class Supplemento implements ISupplemento {\r\n id?: number;\r\n obbligatorio?: boolean;\r\n percentuale?: boolean;\r\n alternative?: SupplementoAlternativa[] | null;\r\n\r\n constructor(data?: ISupplemento) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.obbligatorio = _data[\"obbligatorio\"] !== undefined ? _data[\"obbligatorio\"] : null;\r\n this.percentuale = _data[\"percentuale\"] !== undefined ? _data[\"percentuale\"] : null;\r\n if (Array.isArray(_data[\"alternative\"])) {\r\n this.alternative = [] as any;\r\n for (let item of _data[\"alternative\"])\r\n this.alternative!.push(SupplementoAlternativa.fromJS(item));\r\n }\r\n else {\r\n this.alternative = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): Supplemento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Supplemento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"obbligatorio\"] = this.obbligatorio !== undefined ? this.obbligatorio : null;\r\n data[\"percentuale\"] = this.percentuale !== undefined ? this.percentuale : null;\r\n if (Array.isArray(this.alternative)) {\r\n data[\"alternative\"] = [];\r\n for (let item of this.alternative)\r\n data[\"alternative\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplemento {\r\n id?: number;\r\n obbligatorio?: boolean;\r\n percentuale?: boolean;\r\n alternative?: SupplementoAlternativa[] | null;\r\n}\r\n\r\nexport class SupplementoAlternativa implements ISupplementoAlternativa {\r\n id?: number;\r\n nome?: string;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n prezzoIndicativo?: boolean;\r\n\r\n constructor(data?: ISupplementoAlternativa) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.prezzoPieno = _data[\"prezzoPieno\"] !== undefined ? _data[\"prezzoPieno\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.prezzoIndicativo = _data[\"prezzoIndicativo\"] !== undefined ? _data[\"prezzoIndicativo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplementoAlternativa {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplementoAlternativa();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"prezzoPieno\"] = this.prezzoPieno !== undefined ? this.prezzoPieno : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"prezzoIndicativo\"] = this.prezzoIndicativo !== undefined ? this.prezzoIndicativo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplementoAlternativa {\r\n id?: number;\r\n nome?: string;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n prezzoIndicativo?: boolean;\r\n}\r\n\r\nexport class NaarCrypticPMIRequest extends LocalizedRequest implements INaarCrypticPMIRequest {\r\n /** ID dell'eventuale offerta, se non è un nuovo viaggio */\r\n offertaID?: number | null;\r\n jobID!: string;\r\n resultID!: string;\r\n serviceID!: number;\r\n typeID!: number;\r\n departureID?: number | null;\r\n optionID?: number | null;\r\n optionItemID?: number | null;\r\n\r\n constructor(data?: INaarCrypticPMIRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n this.typeID = _data[\"typeID\"] !== undefined ? _data[\"typeID\"] : null;\r\n this.departureID = _data[\"departureID\"] !== undefined ? _data[\"departureID\"] : null;\r\n this.optionID = _data[\"optionID\"] !== undefined ? _data[\"optionID\"] : null;\r\n this.optionItemID = _data[\"optionItemID\"] !== undefined ? _data[\"optionItemID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticPMIRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticPMIRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n data[\"typeID\"] = this.typeID !== undefined ? this.typeID : null;\r\n data[\"departureID\"] = this.departureID !== undefined ? this.departureID : null;\r\n data[\"optionID\"] = this.optionID !== undefined ? this.optionID : null;\r\n data[\"optionItemID\"] = this.optionItemID !== undefined ? this.optionItemID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticPMIRequest extends ILocalizedRequest {\r\n /** ID dell'eventuale offerta, se non è un nuovo viaggio */\r\n offertaID?: number | null;\r\n jobID: string;\r\n resultID: string;\r\n serviceID: number;\r\n typeID: number;\r\n departureID?: number | null;\r\n optionID?: number | null;\r\n optionItemID?: number | null;\r\n}\r\n\r\nexport class NaarCrypticExecuteResponse extends OkApiResponse implements INaarCrypticExecuteResponse {\r\n /** Se true il comando è stato eseguito con successo */\r\n success?: boolean;\r\n /** Stringa di risposta */\r\n responseString?: string;\r\n /** Se true è richiesto l'update del viaggio ID=TripID */\r\n tripRefreshRequired?: boolean;\r\n /** Eventuale ID di viaggio (corrente o creato) */\r\n tripID?: number | null;\r\n /** Eventuale lista degli warning */\r\n warnings?: string[];\r\n\r\n constructor(data?: INaarCrypticExecuteResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.success = _data[\"success\"] !== undefined ? _data[\"success\"] : null;\r\n this.responseString = _data[\"responseString\"] !== undefined ? _data[\"responseString\"] : null;\r\n this.tripRefreshRequired = _data[\"tripRefreshRequired\"] !== undefined ? _data[\"tripRefreshRequired\"] : null;\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n if (Array.isArray(_data[\"warnings\"])) {\r\n this.warnings = [] as any;\r\n for (let item of _data[\"warnings\"])\r\n this.warnings!.push(item);\r\n }\r\n else {\r\n this.warnings = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticExecuteResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticExecuteResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"success\"] = this.success !== undefined ? this.success : null;\r\n data[\"responseString\"] = this.responseString !== undefined ? this.responseString : null;\r\n data[\"tripRefreshRequired\"] = this.tripRefreshRequired !== undefined ? this.tripRefreshRequired : null;\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n if (Array.isArray(this.warnings)) {\r\n data[\"warnings\"] = [];\r\n for (let item of this.warnings)\r\n data[\"warnings\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticExecuteResponse extends IOkApiResponse {\r\n /** Se true il comando è stato eseguito con successo */\r\n success?: boolean;\r\n /** Stringa di risposta */\r\n responseString?: string;\r\n /** Se true è richiesto l'update del viaggio ID=TripID */\r\n tripRefreshRequired?: boolean;\r\n /** Eventuale ID di viaggio (corrente o creato) */\r\n tripID?: number | null;\r\n /** Eventuale lista degli warning */\r\n warnings?: string[];\r\n}\r\n\r\nexport class NaarCrypticExecuteRequest extends LocalizedRequest implements INaarCrypticExecuteRequest {\r\n /** ID del viaggio corrente, per comandi in contesto di viaggio */\r\n tripID?: number | null;\r\n /** Comando da eseguire */\r\n command?: string;\r\n /** Argomenti */\r\n args?: string | null;\r\n\r\n constructor(data?: INaarCrypticExecuteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.command = _data[\"command\"] !== undefined ? _data[\"command\"] : null;\r\n this.args = _data[\"args\"] !== undefined ? _data[\"args\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NaarCrypticExecuteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NaarCrypticExecuteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"command\"] = this.command !== undefined ? this.command : null;\r\n data[\"args\"] = this.args !== undefined ? this.args : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INaarCrypticExecuteRequest extends ILocalizedRequest {\r\n /** ID del viaggio corrente, per comandi in contesto di viaggio */\r\n tripID?: number | null;\r\n /** Comando da eseguire */\r\n command?: string;\r\n /** Argomenti */\r\n args?: string | null;\r\n}\r\n\r\nexport class GetAgreementsResponse extends OkApiResponse implements IGetAgreementsResponse {\r\n defaultAgreement?: number;\r\n agreements?: AgreementItem[] | null;\r\n\r\n constructor(data?: IGetAgreementsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.defaultAgreement = _data[\"defaultAgreement\"] !== undefined ? _data[\"defaultAgreement\"] : null;\r\n if (Array.isArray(_data[\"agreements\"])) {\r\n this.agreements = [] as any;\r\n for (let item of _data[\"agreements\"])\r\n this.agreements!.push(AgreementItem.fromJS(item));\r\n }\r\n else {\r\n this.agreements = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAgreementsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAgreementsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"defaultAgreement\"] = this.defaultAgreement !== undefined ? this.defaultAgreement : null;\r\n if (Array.isArray(this.agreements)) {\r\n data[\"agreements\"] = [];\r\n for (let item of this.agreements)\r\n data[\"agreements\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAgreementsResponse extends IOkApiResponse {\r\n defaultAgreement?: number;\r\n agreements?: AgreementItem[] | null;\r\n}\r\n\r\nexport class AgreementItem implements IAgreementItem {\r\n id?: number;\r\n name?: string | null;\r\n\r\n constructor(data?: IAgreementItem) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AgreementItem {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AgreementItem();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAgreementItem {\r\n id?: number;\r\n name?: string | null;\r\n}\r\n\r\nexport class GetAmadeusMarketsResponse extends OkApiResponse implements IGetAmadeusMarketsResponse {\r\n markets?: CrypticMarket[] | null;\r\n\r\n constructor(data?: IGetAmadeusMarketsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"markets\"])) {\r\n this.markets = [] as any;\r\n for (let item of _data[\"markets\"])\r\n this.markets!.push(CrypticMarket.fromJS(item));\r\n }\r\n else {\r\n this.markets = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAmadeusMarketsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAmadeusMarketsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.markets)) {\r\n data[\"markets\"] = [];\r\n for (let item of this.markets)\r\n data[\"markets\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAmadeusMarketsResponse extends IOkApiResponse {\r\n markets?: CrypticMarket[] | null;\r\n}\r\n\r\nexport class GetAmadeusMarketsRequest extends ApiRequest implements IGetAmadeusMarketsRequest {\r\n operator?: EOperatore | null;\r\n\r\n constructor(data?: IGetAmadeusMarketsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAmadeusMarketsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAmadeusMarketsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAmadeusMarketsRequest extends IApiRequest {\r\n operator?: EOperatore | null;\r\n}\r\n\r\nexport class GetPaymentTermsResponse extends OkApiResponse implements IGetPaymentTermsResponse {\r\n defaultPaymentTerm?: number;\r\n paymentTerms?: PaymentTermItem[] | null;\r\n\r\n constructor(data?: IGetPaymentTermsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.defaultPaymentTerm = _data[\"defaultPaymentTerm\"] !== undefined ? _data[\"defaultPaymentTerm\"] : null;\r\n if (Array.isArray(_data[\"paymentTerms\"])) {\r\n this.paymentTerms = [] as any;\r\n for (let item of _data[\"paymentTerms\"])\r\n this.paymentTerms!.push(PaymentTermItem.fromJS(item));\r\n }\r\n else {\r\n this.paymentTerms = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPaymentTermsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPaymentTermsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"defaultPaymentTerm\"] = this.defaultPaymentTerm !== undefined ? this.defaultPaymentTerm : null;\r\n if (Array.isArray(this.paymentTerms)) {\r\n data[\"paymentTerms\"] = [];\r\n for (let item of this.paymentTerms)\r\n data[\"paymentTerms\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPaymentTermsResponse extends IOkApiResponse {\r\n defaultPaymentTerm?: number;\r\n paymentTerms?: PaymentTermItem[] | null;\r\n}\r\n\r\nexport class PaymentTermItem implements IPaymentTermItem {\r\n id?: number;\r\n name?: string | null;\r\n\r\n constructor(data?: IPaymentTermItem) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTermItem {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermItem();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermItem {\r\n id?: number;\r\n name?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfOperatoreListRow extends OkApiResponse implements INrTableResponseOfOperatoreListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: OperatoreListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfOperatoreListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(OperatoreListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfOperatoreListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfOperatoreListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfOperatoreListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: OperatoreListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class OperatoriListResponse extends NrTableResponseOfOperatoreListRow implements IOperatoriListResponse {\r\n\r\n constructor(data?: IOperatoriListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): OperatoriListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OperatoriListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOperatoriListResponse extends INrTableResponseOfOperatoreListRow {\r\n}\r\n\r\nexport class OperatoreListRow implements IOperatoreListRow {\r\n /** ID dell'operatore */\r\n id?: number;\r\n /** Nome interno */\r\n nome?: string;\r\n /** Nome visualizzato */\r\n nomeVisualizzato?: string | null;\r\n /** Contatto di riferimento */\r\n contatto?: string;\r\n /** Valuta utilizzata */\r\n valuta?: string;\r\n\r\n constructor(data?: IOperatoreListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.valuta = _data[\"valuta\"] !== undefined ? _data[\"valuta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OperatoreListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OperatoreListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"valuta\"] = this.valuta !== undefined ? this.valuta : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOperatoreListRow {\r\n /** ID dell'operatore */\r\n id?: number;\r\n /** Nome interno */\r\n nome?: string;\r\n /** Nome visualizzato */\r\n nomeVisualizzato?: string | null;\r\n /** Contatto di riferimento */\r\n contatto?: string;\r\n /** Valuta utilizzata */\r\n valuta?: string;\r\n}\r\n\r\nexport class OperatoriListRequest extends NrTableRequest implements IOperatoriListRequest {\r\n /** Termine di ricerca oppure ID */\r\n term?: string | null;\r\n\r\n constructor(data?: IOperatoriListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OperatoriListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OperatoriListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOperatoriListRequest extends INrTableRequest {\r\n /** Termine di ricerca oppure ID */\r\n term?: string | null;\r\n}\r\n\r\nexport class OptimizeRequest extends ApiRequest implements IOptimizeRequest {\r\n /** Offerta singola, tutto */\r\n offertaID?: number | null;\r\n /** Solo righe appartenenti ad itinerario nel luogo scelto */\r\n luogoID?: number | null;\r\n /** Solo partenze dopo la data indicata (inclusa). In ogni caso dopo oggi */\r\n partenzaDal?: string | null;\r\n /** Solo partenze prima della data indicata (inclusa) */\r\n partenzaAl?: string | null;\r\n /** ID del contatto fornitore associato all'accordo */\r\n contattoFornitoreID?: number | null;\r\n /** Aolo se offerte confermate */\r\n soloConferme?: boolean;\r\n /** Se true aggiunge le ottimizzazioni a quelle eventualmente già presenti */\r\n appendToExisting?: boolean;\r\n /** Dati di testata */\r\n job?: OffertaDatoAlternativaJob | null;\r\n\r\n constructor(data?: IOptimizeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.contattoFornitoreID = _data[\"contattoFornitoreID\"] !== undefined ? _data[\"contattoFornitoreID\"] : null;\r\n this.soloConferme = _data[\"soloConferme\"] !== undefined ? _data[\"soloConferme\"] : null;\r\n this.appendToExisting = _data[\"appendToExisting\"] !== undefined ? _data[\"appendToExisting\"] : null;\r\n this.job = _data[\"job\"] ? OffertaDatoAlternativaJob.fromJS(_data[\"job\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OptimizeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OptimizeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"contattoFornitoreID\"] = this.contattoFornitoreID !== undefined ? this.contattoFornitoreID : null;\r\n data[\"soloConferme\"] = this.soloConferme !== undefined ? this.soloConferme : null;\r\n data[\"appendToExisting\"] = this.appendToExisting !== undefined ? this.appendToExisting : null;\r\n data[\"job\"] = this.job ? this.job.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOptimizeRequest extends IApiRequest {\r\n /** Offerta singola, tutto */\r\n offertaID?: number | null;\r\n /** Solo righe appartenenti ad itinerario nel luogo scelto */\r\n luogoID?: number | null;\r\n /** Solo partenze dopo la data indicata (inclusa). In ogni caso dopo oggi */\r\n partenzaDal?: string | null;\r\n /** Solo partenze prima della data indicata (inclusa) */\r\n partenzaAl?: string | null;\r\n /** ID del contatto fornitore associato all'accordo */\r\n contattoFornitoreID?: number | null;\r\n /** Aolo se offerte confermate */\r\n soloConferme?: boolean;\r\n /** Se true aggiunge le ottimizzazioni a quelle eventualmente già presenti */\r\n appendToExisting?: boolean;\r\n /** Dati di testata */\r\n job?: OffertaDatoAlternativaJob | null;\r\n}\r\n\r\nexport class OffertaDatoAlternativaJob implements IOffertaDatoAlternativaJob {\r\n id?: number;\r\n alternativaID?: number;\r\n noFornitoreOriginale?: boolean;\r\n delta?: number;\r\n tipoDelta?: ETipoDeltaAlternativa;\r\n creato?: string;\r\n emailNotifica?: string | null;\r\n\r\n constructor(data?: IOffertaDatoAlternativaJob) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.alternativaID = _data[\"alternativaID\"] !== undefined ? _data[\"alternativaID\"] : null;\r\n this.noFornitoreOriginale = _data[\"noFornitoreOriginale\"] !== undefined ? _data[\"noFornitoreOriginale\"] : null;\r\n this.delta = _data[\"delta\"] !== undefined ? _data[\"delta\"] : null;\r\n this.tipoDelta = _data[\"tipoDelta\"] !== undefined ? _data[\"tipoDelta\"] : null;\r\n this.creato = _data[\"creato\"] !== undefined ? _data[\"creato\"] : null;\r\n this.emailNotifica = _data[\"emailNotifica\"] !== undefined ? _data[\"emailNotifica\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaDatoAlternativaJob {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaDatoAlternativaJob();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"alternativaID\"] = this.alternativaID !== undefined ? this.alternativaID : null;\r\n data[\"noFornitoreOriginale\"] = this.noFornitoreOriginale !== undefined ? this.noFornitoreOriginale : null;\r\n data[\"delta\"] = this.delta !== undefined ? this.delta : null;\r\n data[\"tipoDelta\"] = this.tipoDelta !== undefined ? this.tipoDelta : null;\r\n data[\"creato\"] = this.creato !== undefined ? this.creato : null;\r\n data[\"emailNotifica\"] = this.emailNotifica !== undefined ? this.emailNotifica : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaDatoAlternativaJob {\r\n id?: number;\r\n alternativaID?: number;\r\n noFornitoreOriginale?: boolean;\r\n delta?: number;\r\n tipoDelta?: ETipoDeltaAlternativa;\r\n creato?: string;\r\n emailNotifica?: string | null;\r\n}\r\n\r\nexport enum ETipoDeltaAlternativa {\r\n PercentualePrezzo = \"PercentualePrezzo\",\r\n PercentualeCosto = \"PercentualeCosto\",\r\n PrezzoAssoluto = \"PrezzoAssoluto\",\r\n CostoAssoluto = \"CostoAssoluto\",\r\n}\r\n\r\nexport class OptimizeDeleteMultiRequest extends ApiRequest implements IOptimizeDeleteMultiRequest {\r\n ids!: number[];\r\n\r\n constructor(data?: IOptimizeDeleteMultiRequest) {\r\n super(data);\r\n if (!data) {\r\n this.ids = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"ids\"])) {\r\n this.ids = [] as any;\r\n for (let item of _data[\"ids\"])\r\n this.ids!.push(item);\r\n }\r\n else {\r\n this.ids = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): OptimizeDeleteMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OptimizeDeleteMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.ids)) {\r\n data[\"ids\"] = [];\r\n for (let item of this.ids)\r\n data[\"ids\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOptimizeDeleteMultiRequest extends IApiRequest {\r\n ids: number[];\r\n}\r\n\r\nexport class OptimizePreviewResponse extends OkApiResponse implements IOptimizePreviewResponse {\r\n righeTotali?: number;\r\n\r\n constructor(data?: IOptimizePreviewResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.righeTotali = _data[\"righeTotali\"] !== undefined ? _data[\"righeTotali\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OptimizePreviewResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OptimizePreviewResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"righeTotali\"] = this.righeTotali !== undefined ? this.righeTotali : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOptimizePreviewResponse extends IOkApiResponse {\r\n righeTotali?: number;\r\n}\r\n\r\nexport class OptimizationsQueryResponse extends OkApiResponse implements IOptimizationsQueryResponse {\r\n hasWork?: boolean;\r\n done?: number;\r\n total?: number;\r\n\r\n constructor(data?: IOptimizationsQueryResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.hasWork = _data[\"hasWork\"] !== undefined ? _data[\"hasWork\"] : null;\r\n this.done = _data[\"done\"] !== undefined ? _data[\"done\"] : null;\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OptimizationsQueryResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OptimizationsQueryResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"hasWork\"] = this.hasWork !== undefined ? this.hasWork : null;\r\n data[\"done\"] = this.done !== undefined ? this.done : null;\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOptimizationsQueryResponse extends IOkApiResponse {\r\n hasWork?: boolean;\r\n done?: number;\r\n total?: number;\r\n}\r\n\r\nexport class SearchOrdersResponse extends OkApiResponse implements ISearchOrdersResponse {\r\n trips?: OrderListRow[];\r\n\r\n constructor(data?: ISearchOrdersResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"trips\"])) {\r\n this.trips = [] as any;\r\n for (let item of _data[\"trips\"])\r\n this.trips!.push(OrderListRow.fromJS(item));\r\n }\r\n else {\r\n this.trips = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchOrdersResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchOrdersResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.trips)) {\r\n data[\"trips\"] = [];\r\n for (let item of this.trips)\r\n data[\"trips\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchOrdersResponse extends IOkApiResponse {\r\n trips?: OrderListRow[];\r\n}\r\n\r\nexport class OrderListRow implements IOrderListRow {\r\n offertaID?: number;\r\n descrizione?: string | null;\r\n clienti?: string | null;\r\n destinazione?: string | null;\r\n creazione?: string;\r\n partenza?: string;\r\n conferma?: string | null;\r\n totale?: number;\r\n agenzia?: string | null;\r\n telefono?: string | null;\r\n email?: string | null;\r\n categoriaAgenzia?: string | null;\r\n impiegato?: string | null;\r\n utentePreventivo?: string | null;\r\n utenteConferma?: string | null;\r\n annullataTO?: boolean;\r\n annullataADV?: boolean;\r\n sales?: string | null;\r\n pagamento?: string | null;\r\n saldato?: number;\r\n compensato?: number;\r\n saldare?: number;\r\n duplicabileAgenzia?: boolean;\r\n coverUrl?: string | null;\r\n\r\n constructor(data?: IOrderListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.conferma = _data[\"conferma\"] !== undefined ? _data[\"conferma\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.agenzia = _data[\"agenzia\"] !== undefined ? _data[\"agenzia\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.categoriaAgenzia = _data[\"categoriaAgenzia\"] !== undefined ? _data[\"categoriaAgenzia\"] : null;\r\n this.impiegato = _data[\"impiegato\"] !== undefined ? _data[\"impiegato\"] : null;\r\n this.utentePreventivo = _data[\"utentePreventivo\"] !== undefined ? _data[\"utentePreventivo\"] : null;\r\n this.utenteConferma = _data[\"utenteConferma\"] !== undefined ? _data[\"utenteConferma\"] : null;\r\n this.annullataTO = _data[\"annullataTO\"] !== undefined ? _data[\"annullataTO\"] : null;\r\n this.annullataADV = _data[\"annullataADV\"] !== undefined ? _data[\"annullataADV\"] : null;\r\n this.sales = _data[\"sales\"] !== undefined ? _data[\"sales\"] : null;\r\n this.pagamento = _data[\"pagamento\"] !== undefined ? _data[\"pagamento\"] : null;\r\n this.saldato = _data[\"saldato\"] !== undefined ? _data[\"saldato\"] : null;\r\n this.compensato = _data[\"compensato\"] !== undefined ? _data[\"compensato\"] : null;\r\n this.saldare = _data[\"saldare\"] !== undefined ? _data[\"saldare\"] : null;\r\n this.duplicabileAgenzia = _data[\"duplicabileAgenzia\"] !== undefined ? _data[\"duplicabileAgenzia\"] : null;\r\n this.coverUrl = _data[\"coverUrl\"] !== undefined ? _data[\"coverUrl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OrderListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OrderListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"conferma\"] = this.conferma !== undefined ? this.conferma : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"agenzia\"] = this.agenzia !== undefined ? this.agenzia : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"categoriaAgenzia\"] = this.categoriaAgenzia !== undefined ? this.categoriaAgenzia : null;\r\n data[\"impiegato\"] = this.impiegato !== undefined ? this.impiegato : null;\r\n data[\"utentePreventivo\"] = this.utentePreventivo !== undefined ? this.utentePreventivo : null;\r\n data[\"utenteConferma\"] = this.utenteConferma !== undefined ? this.utenteConferma : null;\r\n data[\"annullataTO\"] = this.annullataTO !== undefined ? this.annullataTO : null;\r\n data[\"annullataADV\"] = this.annullataADV !== undefined ? this.annullataADV : null;\r\n data[\"sales\"] = this.sales !== undefined ? this.sales : null;\r\n data[\"pagamento\"] = this.pagamento !== undefined ? this.pagamento : null;\r\n data[\"saldato\"] = this.saldato !== undefined ? this.saldato : null;\r\n data[\"compensato\"] = this.compensato !== undefined ? this.compensato : null;\r\n data[\"saldare\"] = this.saldare !== undefined ? this.saldare : null;\r\n data[\"duplicabileAgenzia\"] = this.duplicabileAgenzia !== undefined ? this.duplicabileAgenzia : null;\r\n data[\"coverUrl\"] = this.coverUrl !== undefined ? this.coverUrl : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOrderListRow {\r\n offertaID?: number;\r\n descrizione?: string | null;\r\n clienti?: string | null;\r\n destinazione?: string | null;\r\n creazione?: string;\r\n partenza?: string;\r\n conferma?: string | null;\r\n totale?: number;\r\n agenzia?: string | null;\r\n telefono?: string | null;\r\n email?: string | null;\r\n categoriaAgenzia?: string | null;\r\n impiegato?: string | null;\r\n utentePreventivo?: string | null;\r\n utenteConferma?: string | null;\r\n annullataTO?: boolean;\r\n annullataADV?: boolean;\r\n sales?: string | null;\r\n pagamento?: string | null;\r\n saldato?: number;\r\n compensato?: number;\r\n saldare?: number;\r\n duplicabileAgenzia?: boolean;\r\n coverUrl?: string | null;\r\n}\r\n\r\nexport class SearchOrdersRequest extends SiteRequest implements ISearchOrdersRequest {\r\n offertaID?: number | null;\r\n agenziaID?: number | null;\r\n impiegatoID?: number | null;\r\n soloUtente?: boolean;\r\n soloConfermate?: boolean;\r\n soloIncomplete?: boolean;\r\n soloAnnullate?: boolean;\r\n dataCreazione?: string | null;\r\n operatore?: EOperatore | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n descrizione?: string | null;\r\n nomePax?: string | null;\r\n servizioID?: number | null;\r\n partitaIva?: string | null;\r\n\r\n constructor(data?: ISearchOrdersRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.agenziaID = _data[\"agenziaID\"] !== undefined ? _data[\"agenziaID\"] : null;\r\n this.impiegatoID = _data[\"impiegatoID\"] !== undefined ? _data[\"impiegatoID\"] : null;\r\n this.soloUtente = _data[\"soloUtente\"] !== undefined ? _data[\"soloUtente\"] : null;\r\n this.soloConfermate = _data[\"soloConfermate\"] !== undefined ? _data[\"soloConfermate\"] : null;\r\n this.soloIncomplete = _data[\"soloIncomplete\"] !== undefined ? _data[\"soloIncomplete\"] : null;\r\n this.soloAnnullate = _data[\"soloAnnullate\"] !== undefined ? _data[\"soloAnnullate\"] : null;\r\n this.dataCreazione = _data[\"dataCreazione\"] !== undefined ? _data[\"dataCreazione\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.confermaDal = _data[\"confermaDal\"] !== undefined ? _data[\"confermaDal\"] : null;\r\n this.confermaAl = _data[\"confermaAl\"] !== undefined ? _data[\"confermaAl\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.nomePax = _data[\"nomePax\"] !== undefined ? _data[\"nomePax\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.partitaIva = _data[\"partitaIva\"] !== undefined ? _data[\"partitaIva\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchOrdersRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchOrdersRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"agenziaID\"] = this.agenziaID !== undefined ? this.agenziaID : null;\r\n data[\"impiegatoID\"] = this.impiegatoID !== undefined ? this.impiegatoID : null;\r\n data[\"soloUtente\"] = this.soloUtente !== undefined ? this.soloUtente : null;\r\n data[\"soloConfermate\"] = this.soloConfermate !== undefined ? this.soloConfermate : null;\r\n data[\"soloIncomplete\"] = this.soloIncomplete !== undefined ? this.soloIncomplete : null;\r\n data[\"soloAnnullate\"] = this.soloAnnullate !== undefined ? this.soloAnnullate : null;\r\n data[\"dataCreazione\"] = this.dataCreazione !== undefined ? this.dataCreazione : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"confermaDal\"] = this.confermaDal !== undefined ? this.confermaDal : null;\r\n data[\"confermaAl\"] = this.confermaAl !== undefined ? this.confermaAl : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"nomePax\"] = this.nomePax !== undefined ? this.nomePax : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"partitaIva\"] = this.partitaIva !== undefined ? this.partitaIva : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchOrdersRequest extends ISiteRequest {\r\n offertaID?: number | null;\r\n agenziaID?: number | null;\r\n impiegatoID?: number | null;\r\n soloUtente?: boolean;\r\n soloConfermate?: boolean;\r\n soloIncomplete?: boolean;\r\n soloAnnullate?: boolean;\r\n dataCreazione?: string | null;\r\n operatore?: EOperatore | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n descrizione?: string | null;\r\n nomePax?: string | null;\r\n servizioID?: number | null;\r\n partitaIva?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfConfirmSearchResponseRow extends OkApiResponse implements INrTableResponseOfConfirmSearchResponseRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ConfirmSearchResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfConfirmSearchResponseRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ConfirmSearchResponseRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfConfirmSearchResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfConfirmSearchResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfConfirmSearchResponseRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ConfirmSearchResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ConfirmSearchResponseRow implements IConfirmSearchResponseRow {\r\n offertaID?: number;\r\n offertaDatoID?: number;\r\n partenza?: string;\r\n conferma?: string | null;\r\n fornitore?: string | null;\r\n tipo?: ETipoServizio | null;\r\n servizio?: string | null;\r\n disponibilita?: EStatoDisponibilitaConferma;\r\n prenotazione?: string | null;\r\n confermaTO?: string | null;\r\n ottimizzataIl?: string | null;\r\n costoOttimizzato?: number | null;\r\n deltaOttimizzato?: number | null;\r\n deltaPositivo?: boolean;\r\n costoCorrente?: number;\r\n codiceValuta?: string | null;\r\n fornitoreOttimizzato?: string | null;\r\n descrizioneOttimizzato?: string | null;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n abbinamentoID?: number;\r\n abbinamento?: string | null;\r\n luogoUrl?: string | null;\r\n stepID?: number;\r\n servizioID?: number | null;\r\n dal?: string;\r\n al?: string;\r\n canReplace?: boolean;\r\n numeroConfermaFornitore?: string | null;\r\n numeroConfermaNaar?: string | null;\r\n status?: EStatusServizio | null;\r\n\r\n constructor(data?: IConfirmSearchResponseRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.conferma = _data[\"conferma\"] !== undefined ? _data[\"conferma\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.prenotazione = _data[\"prenotazione\"] !== undefined ? _data[\"prenotazione\"] : null;\r\n this.confermaTO = _data[\"confermaTO\"] !== undefined ? _data[\"confermaTO\"] : null;\r\n this.ottimizzataIl = _data[\"ottimizzataIl\"] !== undefined ? _data[\"ottimizzataIl\"] : null;\r\n this.costoOttimizzato = _data[\"costoOttimizzato\"] !== undefined ? _data[\"costoOttimizzato\"] : null;\r\n this.deltaOttimizzato = _data[\"deltaOttimizzato\"] !== undefined ? _data[\"deltaOttimizzato\"] : null;\r\n this.deltaPositivo = _data[\"deltaPositivo\"] !== undefined ? _data[\"deltaPositivo\"] : null;\r\n this.costoCorrente = _data[\"costoCorrente\"] !== undefined ? _data[\"costoCorrente\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n this.fornitoreOttimizzato = _data[\"fornitoreOttimizzato\"] !== undefined ? _data[\"fornitoreOttimizzato\"] : null;\r\n this.descrizioneOttimizzato = _data[\"descrizioneOttimizzato\"] !== undefined ? _data[\"descrizioneOttimizzato\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n this.abbinamento = _data[\"abbinamento\"] !== undefined ? _data[\"abbinamento\"] : null;\r\n this.luogoUrl = _data[\"luogoUrl\"] !== undefined ? _data[\"luogoUrl\"] : null;\r\n this.stepID = _data[\"stepID\"] !== undefined ? _data[\"stepID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.canReplace = _data[\"canReplace\"] !== undefined ? _data[\"canReplace\"] : null;\r\n this.numeroConfermaFornitore = _data[\"numeroConfermaFornitore\"] !== undefined ? _data[\"numeroConfermaFornitore\"] : null;\r\n this.numeroConfermaNaar = _data[\"numeroConfermaNaar\"] !== undefined ? _data[\"numeroConfermaNaar\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfirmSearchResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfirmSearchResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"conferma\"] = this.conferma !== undefined ? this.conferma : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"prenotazione\"] = this.prenotazione !== undefined ? this.prenotazione : null;\r\n data[\"confermaTO\"] = this.confermaTO !== undefined ? this.confermaTO : null;\r\n data[\"ottimizzataIl\"] = this.ottimizzataIl !== undefined ? this.ottimizzataIl : null;\r\n data[\"costoOttimizzato\"] = this.costoOttimizzato !== undefined ? this.costoOttimizzato : null;\r\n data[\"deltaOttimizzato\"] = this.deltaOttimizzato !== undefined ? this.deltaOttimizzato : null;\r\n data[\"deltaPositivo\"] = this.deltaPositivo !== undefined ? this.deltaPositivo : null;\r\n data[\"costoCorrente\"] = this.costoCorrente !== undefined ? this.costoCorrente : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n data[\"fornitoreOttimizzato\"] = this.fornitoreOttimizzato !== undefined ? this.fornitoreOttimizzato : null;\r\n data[\"descrizioneOttimizzato\"] = this.descrizioneOttimizzato !== undefined ? this.descrizioneOttimizzato : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n data[\"abbinamento\"] = this.abbinamento !== undefined ? this.abbinamento : null;\r\n data[\"luogoUrl\"] = this.luogoUrl !== undefined ? this.luogoUrl : null;\r\n data[\"stepID\"] = this.stepID !== undefined ? this.stepID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"canReplace\"] = this.canReplace !== undefined ? this.canReplace : null;\r\n data[\"numeroConfermaFornitore\"] = this.numeroConfermaFornitore !== undefined ? this.numeroConfermaFornitore : null;\r\n data[\"numeroConfermaNaar\"] = this.numeroConfermaNaar !== undefined ? this.numeroConfermaNaar : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfirmSearchResponseRow {\r\n offertaID?: number;\r\n offertaDatoID?: number;\r\n partenza?: string;\r\n conferma?: string | null;\r\n fornitore?: string | null;\r\n tipo?: ETipoServizio | null;\r\n servizio?: string | null;\r\n disponibilita?: EStatoDisponibilitaConferma;\r\n prenotazione?: string | null;\r\n confermaTO?: string | null;\r\n ottimizzataIl?: string | null;\r\n costoOttimizzato?: number | null;\r\n deltaOttimizzato?: number | null;\r\n deltaPositivo?: boolean;\r\n costoCorrente?: number;\r\n codiceValuta?: string | null;\r\n fornitoreOttimizzato?: string | null;\r\n descrizioneOttimizzato?: string | null;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n abbinamentoID?: number;\r\n abbinamento?: string | null;\r\n luogoUrl?: string | null;\r\n stepID?: number;\r\n servizioID?: number | null;\r\n dal?: string;\r\n al?: string;\r\n canReplace?: boolean;\r\n numeroConfermaFornitore?: string | null;\r\n numeroConfermaNaar?: string | null;\r\n status?: EStatusServizio | null;\r\n}\r\n\r\nexport enum EStatoDisponibilitaConferma {\r\n NonDisponibile = \"NonDisponibile\",\r\n Cancellata = \"Cancellata\",\r\n Ok = \"Ok\",\r\n OkAllotment = \"OkAllotment\",\r\n OnRequestReg = \"OnRequestReg\",\r\n OnRequest = \"OnRequest\",\r\n}\r\n\r\nexport class SearchConfirmsRequest extends NrTableRequest implements ISearchConfirmsRequest {\r\n operatore?: EOperatore;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n contattoFornitoreID?: number | null;\r\n status?: ConfirmSearchStatus | null;\r\n tipoServizio?: ETipoServizio | null;\r\n numeroConferma?: string | null;\r\n nascondiSeriviziAccessori?: boolean | null;\r\n\r\n constructor(data?: ISearchConfirmsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.confermaDal = _data[\"confermaDal\"] !== undefined ? _data[\"confermaDal\"] : null;\r\n this.confermaAl = _data[\"confermaAl\"] !== undefined ? _data[\"confermaAl\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.contattoFornitoreID = _data[\"contattoFornitoreID\"] !== undefined ? _data[\"contattoFornitoreID\"] : null;\r\n this.status = _data[\"status\"] ? ConfirmSearchStatus.fromJS(_data[\"status\"]) : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.numeroConferma = _data[\"numeroConferma\"] !== undefined ? _data[\"numeroConferma\"] : null;\r\n this.nascondiSeriviziAccessori = _data[\"nascondiSeriviziAccessori\"] !== undefined ? _data[\"nascondiSeriviziAccessori\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchConfirmsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchConfirmsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"confermaDal\"] = this.confermaDal !== undefined ? this.confermaDal : null;\r\n data[\"confermaAl\"] = this.confermaAl !== undefined ? this.confermaAl : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"contattoFornitoreID\"] = this.contattoFornitoreID !== undefined ? this.contattoFornitoreID : null;\r\n data[\"status\"] = this.status ? this.status.toJSON() : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"numeroConferma\"] = this.numeroConferma !== undefined ? this.numeroConferma : null;\r\n data[\"nascondiSeriviziAccessori\"] = this.nascondiSeriviziAccessori !== undefined ? this.nascondiSeriviziAccessori : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchConfirmsRequest extends INrTableRequest {\r\n operatore?: EOperatore;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n contattoFornitoreID?: number | null;\r\n status?: ConfirmSearchStatus | null;\r\n tipoServizio?: ETipoServizio | null;\r\n numeroConferma?: string | null;\r\n nascondiSeriviziAccessori?: boolean | null;\r\n}\r\n\r\nexport class ConfirmSearchStatus implements IConfirmSearchStatus {\r\n man?: boolean;\r\n pren?: boolean;\r\n inPren?: boolean;\r\n conf?: boolean;\r\n nonConf?: boolean;\r\n daCanc?: boolean;\r\n inCanc?: boolean;\r\n canc?: boolean;\r\n hasValue?: boolean;\r\n\r\n constructor(data?: IConfirmSearchStatus) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.man = _data[\"man\"] !== undefined ? _data[\"man\"] : null;\r\n this.pren = _data[\"pren\"] !== undefined ? _data[\"pren\"] : null;\r\n this.inPren = _data[\"inPren\"] !== undefined ? _data[\"inPren\"] : null;\r\n this.conf = _data[\"conf\"] !== undefined ? _data[\"conf\"] : null;\r\n this.nonConf = _data[\"nonConf\"] !== undefined ? _data[\"nonConf\"] : null;\r\n this.daCanc = _data[\"daCanc\"] !== undefined ? _data[\"daCanc\"] : null;\r\n this.inCanc = _data[\"inCanc\"] !== undefined ? _data[\"inCanc\"] : null;\r\n this.canc = _data[\"canc\"] !== undefined ? _data[\"canc\"] : null;\r\n this.hasValue = _data[\"hasValue\"] !== undefined ? _data[\"hasValue\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfirmSearchStatus {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfirmSearchStatus();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"man\"] = this.man !== undefined ? this.man : null;\r\n data[\"pren\"] = this.pren !== undefined ? this.pren : null;\r\n data[\"inPren\"] = this.inPren !== undefined ? this.inPren : null;\r\n data[\"conf\"] = this.conf !== undefined ? this.conf : null;\r\n data[\"nonConf\"] = this.nonConf !== undefined ? this.nonConf : null;\r\n data[\"daCanc\"] = this.daCanc !== undefined ? this.daCanc : null;\r\n data[\"inCanc\"] = this.inCanc !== undefined ? this.inCanc : null;\r\n data[\"canc\"] = this.canc !== undefined ? this.canc : null;\r\n data[\"hasValue\"] = this.hasValue !== undefined ? this.hasValue : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfirmSearchStatus {\r\n man?: boolean;\r\n pren?: boolean;\r\n inPren?: boolean;\r\n conf?: boolean;\r\n nonConf?: boolean;\r\n daCanc?: boolean;\r\n inCanc?: boolean;\r\n canc?: boolean;\r\n hasValue?: boolean;\r\n}\r\n\r\nexport class NrTableResponseOfSearchDocumentsResponseRow extends OkApiResponse implements INrTableResponseOfSearchDocumentsResponseRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SearchDocumentsResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfSearchDocumentsResponseRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SearchDocumentsResponseRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfSearchDocumentsResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfSearchDocumentsResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfSearchDocumentsResponseRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SearchDocumentsResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class SearchDocumentsResponseRow implements ISearchDocumentsResponseRow {\r\n offertaID?: number;\r\n operatore?: string | null;\r\n team?: string | null;\r\n adv?: string | null;\r\n dataPartenza?: string;\r\n dataConferma?: string | null;\r\n dataRientro?: string | null;\r\n dataRilascioDoc?: string | null;\r\n dest?: string | null;\r\n preventivo?: string | null;\r\n conferma?: string | null;\r\n documenti?: string | null;\r\n tipoQI?: string | null;\r\n pagamento?: string | null;\r\n statusDoc?: string | null;\r\n creaApp?: string | null;\r\n spedizione?: string | null;\r\n totNetto?: number | null;\r\n acconto?: number | null;\r\n dataAcconto?: string | null;\r\n saldo?: number | null;\r\n dataSaldo?: string | null;\r\n totale?: number | null;\r\n pax?: number | null;\r\n\r\n constructor(data?: ISearchDocumentsResponseRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.team = _data[\"team\"] !== undefined ? _data[\"team\"] : null;\r\n this.adv = _data[\"adv\"] !== undefined ? _data[\"adv\"] : null;\r\n this.dataPartenza = _data[\"dataPartenza\"] !== undefined ? _data[\"dataPartenza\"] : null;\r\n this.dataConferma = _data[\"dataConferma\"] !== undefined ? _data[\"dataConferma\"] : null;\r\n this.dataRientro = _data[\"dataRientro\"] !== undefined ? _data[\"dataRientro\"] : null;\r\n this.dataRilascioDoc = _data[\"dataRilascioDoc\"] !== undefined ? _data[\"dataRilascioDoc\"] : null;\r\n this.dest = _data[\"dest\"] !== undefined ? _data[\"dest\"] : null;\r\n this.preventivo = _data[\"preventivo\"] !== undefined ? _data[\"preventivo\"] : null;\r\n this.conferma = _data[\"conferma\"] !== undefined ? _data[\"conferma\"] : null;\r\n this.documenti = _data[\"documenti\"] !== undefined ? _data[\"documenti\"] : null;\r\n this.tipoQI = _data[\"tipoQI\"] !== undefined ? _data[\"tipoQI\"] : null;\r\n this.pagamento = _data[\"pagamento\"] !== undefined ? _data[\"pagamento\"] : null;\r\n this.statusDoc = _data[\"statusDoc\"] !== undefined ? _data[\"statusDoc\"] : null;\r\n this.creaApp = _data[\"creaApp\"] !== undefined ? _data[\"creaApp\"] : null;\r\n this.spedizione = _data[\"spedizione\"] !== undefined ? _data[\"spedizione\"] : null;\r\n this.totNetto = _data[\"totNetto\"] !== undefined ? _data[\"totNetto\"] : null;\r\n this.acconto = _data[\"acconto\"] !== undefined ? _data[\"acconto\"] : null;\r\n this.dataAcconto = _data[\"dataAcconto\"] !== undefined ? _data[\"dataAcconto\"] : null;\r\n this.saldo = _data[\"saldo\"] !== undefined ? _data[\"saldo\"] : null;\r\n this.dataSaldo = _data[\"dataSaldo\"] !== undefined ? _data[\"dataSaldo\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.pax = _data[\"pax\"] !== undefined ? _data[\"pax\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchDocumentsResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchDocumentsResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"team\"] = this.team !== undefined ? this.team : null;\r\n data[\"adv\"] = this.adv !== undefined ? this.adv : null;\r\n data[\"dataPartenza\"] = this.dataPartenza !== undefined ? this.dataPartenza : null;\r\n data[\"dataConferma\"] = this.dataConferma !== undefined ? this.dataConferma : null;\r\n data[\"dataRientro\"] = this.dataRientro !== undefined ? this.dataRientro : null;\r\n data[\"dataRilascioDoc\"] = this.dataRilascioDoc !== undefined ? this.dataRilascioDoc : null;\r\n data[\"dest\"] = this.dest !== undefined ? this.dest : null;\r\n data[\"preventivo\"] = this.preventivo !== undefined ? this.preventivo : null;\r\n data[\"conferma\"] = this.conferma !== undefined ? this.conferma : null;\r\n data[\"documenti\"] = this.documenti !== undefined ? this.documenti : null;\r\n data[\"tipoQI\"] = this.tipoQI !== undefined ? this.tipoQI : null;\r\n data[\"pagamento\"] = this.pagamento !== undefined ? this.pagamento : null;\r\n data[\"statusDoc\"] = this.statusDoc !== undefined ? this.statusDoc : null;\r\n data[\"creaApp\"] = this.creaApp !== undefined ? this.creaApp : null;\r\n data[\"spedizione\"] = this.spedizione !== undefined ? this.spedizione : null;\r\n data[\"totNetto\"] = this.totNetto !== undefined ? this.totNetto : null;\r\n data[\"acconto\"] = this.acconto !== undefined ? this.acconto : null;\r\n data[\"dataAcconto\"] = this.dataAcconto !== undefined ? this.dataAcconto : null;\r\n data[\"saldo\"] = this.saldo !== undefined ? this.saldo : null;\r\n data[\"dataSaldo\"] = this.dataSaldo !== undefined ? this.dataSaldo : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"pax\"] = this.pax !== undefined ? this.pax : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchDocumentsResponseRow {\r\n offertaID?: number;\r\n operatore?: string | null;\r\n team?: string | null;\r\n adv?: string | null;\r\n dataPartenza?: string;\r\n dataConferma?: string | null;\r\n dataRientro?: string | null;\r\n dataRilascioDoc?: string | null;\r\n dest?: string | null;\r\n preventivo?: string | null;\r\n conferma?: string | null;\r\n documenti?: string | null;\r\n tipoQI?: string | null;\r\n pagamento?: string | null;\r\n statusDoc?: string | null;\r\n creaApp?: string | null;\r\n spedizione?: string | null;\r\n totNetto?: number | null;\r\n acconto?: number | null;\r\n dataAcconto?: string | null;\r\n saldo?: number | null;\r\n dataSaldo?: string | null;\r\n totale?: number | null;\r\n pax?: number | null;\r\n}\r\n\r\nexport class SearchDocumentsRequest extends NrTableRequest implements ISearchDocumentsRequest {\r\n luoghi?: SearchDocumentsLuoghi | null;\r\n confermaDal?: string;\r\n confermaAl?: string;\r\n\r\n constructor(data?: ISearchDocumentsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luoghi = _data[\"luoghi\"] ? SearchDocumentsLuoghi.fromJS(_data[\"luoghi\"]) : null;\r\n this.confermaDal = _data[\"confermaDal\"] !== undefined ? _data[\"confermaDal\"] : null;\r\n this.confermaAl = _data[\"confermaAl\"] !== undefined ? _data[\"confermaAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchDocumentsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchDocumentsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luoghi\"] = this.luoghi ? this.luoghi.toJSON() : null;\r\n data[\"confermaDal\"] = this.confermaDal !== undefined ? this.confermaDal : null;\r\n data[\"confermaAl\"] = this.confermaAl !== undefined ? this.confermaAl : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchDocumentsRequest extends INrTableRequest {\r\n luoghi?: SearchDocumentsLuoghi | null;\r\n confermaDal?: string;\r\n confermaAl?: string;\r\n}\r\n\r\nexport class SearchDocumentsLuoghi implements ISearchDocumentsLuoghi {\r\n americhe?: boolean;\r\n caraibi?: boolean;\r\n sudPacifico?: boolean;\r\n ocIndiano?: boolean;\r\n australia?: boolean;\r\n oriente?: boolean;\r\n africa?: boolean;\r\n sE_Asia?: boolean;\r\n hasValue?: boolean;\r\n\r\n constructor(data?: ISearchDocumentsLuoghi) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.americhe = _data[\"americhe\"] !== undefined ? _data[\"americhe\"] : null;\r\n this.caraibi = _data[\"caraibi\"] !== undefined ? _data[\"caraibi\"] : null;\r\n this.sudPacifico = _data[\"sudPacifico\"] !== undefined ? _data[\"sudPacifico\"] : null;\r\n this.ocIndiano = _data[\"ocIndiano\"] !== undefined ? _data[\"ocIndiano\"] : null;\r\n this.australia = _data[\"australia\"] !== undefined ? _data[\"australia\"] : null;\r\n this.oriente = _data[\"oriente\"] !== undefined ? _data[\"oriente\"] : null;\r\n this.africa = _data[\"africa\"] !== undefined ? _data[\"africa\"] : null;\r\n this.sE_Asia = _data[\"sE_Asia\"] !== undefined ? _data[\"sE_Asia\"] : null;\r\n this.hasValue = _data[\"hasValue\"] !== undefined ? _data[\"hasValue\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchDocumentsLuoghi {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchDocumentsLuoghi();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"americhe\"] = this.americhe !== undefined ? this.americhe : null;\r\n data[\"caraibi\"] = this.caraibi !== undefined ? this.caraibi : null;\r\n data[\"sudPacifico\"] = this.sudPacifico !== undefined ? this.sudPacifico : null;\r\n data[\"ocIndiano\"] = this.ocIndiano !== undefined ? this.ocIndiano : null;\r\n data[\"australia\"] = this.australia !== undefined ? this.australia : null;\r\n data[\"oriente\"] = this.oriente !== undefined ? this.oriente : null;\r\n data[\"africa\"] = this.africa !== undefined ? this.africa : null;\r\n data[\"sE_Asia\"] = this.sE_Asia !== undefined ? this.sE_Asia : null;\r\n data[\"hasValue\"] = this.hasValue !== undefined ? this.hasValue : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchDocumentsLuoghi {\r\n americhe?: boolean;\r\n caraibi?: boolean;\r\n sudPacifico?: boolean;\r\n ocIndiano?: boolean;\r\n australia?: boolean;\r\n oriente?: boolean;\r\n africa?: boolean;\r\n sE_Asia?: boolean;\r\n hasValue?: boolean;\r\n}\r\n\r\nexport class NrTableResponseOfSearchEmailsResponseRow extends OkApiResponse implements INrTableResponseOfSearchEmailsResponseRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SearchEmailsResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfSearchEmailsResponseRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SearchEmailsResponseRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfSearchEmailsResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfSearchEmailsResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfSearchEmailsResponseRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SearchEmailsResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class SearchEmailsResponseRow implements ISearchEmailsResponseRow {\r\n documentoID?: number;\r\n offertaID?: number;\r\n data?: string;\r\n testata?: string | null;\r\n corpo?: string | null;\r\n corpo2?: string | null;\r\n isEmailLink?: boolean;\r\n emailUrl?: string | null;\r\n urlAllegato?: string | null;\r\n nome?: string | null;\r\n nomeAllegato?: string | null;\r\n nomeContatto?: string | null;\r\n dimensioneAllegato?: number | null;\r\n spedito?: string | null;\r\n contatoreSpedizioni?: number | null;\r\n\r\n constructor(data?: ISearchEmailsResponseRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.testata = _data[\"testata\"] !== undefined ? _data[\"testata\"] : null;\r\n this.corpo = _data[\"corpo\"] !== undefined ? _data[\"corpo\"] : null;\r\n this.corpo2 = _data[\"corpo2\"] !== undefined ? _data[\"corpo2\"] : null;\r\n this.isEmailLink = _data[\"isEmailLink\"] !== undefined ? _data[\"isEmailLink\"] : null;\r\n this.emailUrl = _data[\"emailUrl\"] !== undefined ? _data[\"emailUrl\"] : null;\r\n this.urlAllegato = _data[\"urlAllegato\"] !== undefined ? _data[\"urlAllegato\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeAllegato = _data[\"nomeAllegato\"] !== undefined ? _data[\"nomeAllegato\"] : null;\r\n this.nomeContatto = _data[\"nomeContatto\"] !== undefined ? _data[\"nomeContatto\"] : null;\r\n this.dimensioneAllegato = _data[\"dimensioneAllegato\"] !== undefined ? _data[\"dimensioneAllegato\"] : null;\r\n this.spedito = _data[\"spedito\"] !== undefined ? _data[\"spedito\"] : null;\r\n this.contatoreSpedizioni = _data[\"contatoreSpedizioni\"] !== undefined ? _data[\"contatoreSpedizioni\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchEmailsResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchEmailsResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"testata\"] = this.testata !== undefined ? this.testata : null;\r\n data[\"corpo\"] = this.corpo !== undefined ? this.corpo : null;\r\n data[\"corpo2\"] = this.corpo2 !== undefined ? this.corpo2 : null;\r\n data[\"isEmailLink\"] = this.isEmailLink !== undefined ? this.isEmailLink : null;\r\n data[\"emailUrl\"] = this.emailUrl !== undefined ? this.emailUrl : null;\r\n data[\"urlAllegato\"] = this.urlAllegato !== undefined ? this.urlAllegato : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeAllegato\"] = this.nomeAllegato !== undefined ? this.nomeAllegato : null;\r\n data[\"nomeContatto\"] = this.nomeContatto !== undefined ? this.nomeContatto : null;\r\n data[\"dimensioneAllegato\"] = this.dimensioneAllegato !== undefined ? this.dimensioneAllegato : null;\r\n data[\"spedito\"] = this.spedito !== undefined ? this.spedito : null;\r\n data[\"contatoreSpedizioni\"] = this.contatoreSpedizioni !== undefined ? this.contatoreSpedizioni : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchEmailsResponseRow {\r\n documentoID?: number;\r\n offertaID?: number;\r\n data?: string;\r\n testata?: string | null;\r\n corpo?: string | null;\r\n corpo2?: string | null;\r\n isEmailLink?: boolean;\r\n emailUrl?: string | null;\r\n urlAllegato?: string | null;\r\n nome?: string | null;\r\n nomeAllegato?: string | null;\r\n nomeContatto?: string | null;\r\n dimensioneAllegato?: number | null;\r\n spedito?: string | null;\r\n contatoreSpedizioni?: number | null;\r\n}\r\n\r\nexport class SearchEmailsRequest extends NrTableRequest implements ISearchEmailsRequest {\r\n agenziaID?: number | null;\r\n impiegatoID?: number | null;\r\n operatore?: EOperatore;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n inserimentoDal?: string | null;\r\n inserimentoAl?: string | null;\r\n\r\n constructor(data?: ISearchEmailsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.agenziaID = _data[\"agenziaID\"] !== undefined ? _data[\"agenziaID\"] : null;\r\n this.impiegatoID = _data[\"impiegatoID\"] !== undefined ? _data[\"impiegatoID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.confermaDal = _data[\"confermaDal\"] !== undefined ? _data[\"confermaDal\"] : null;\r\n this.confermaAl = _data[\"confermaAl\"] !== undefined ? _data[\"confermaAl\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.inserimentoDal = _data[\"inserimentoDal\"] !== undefined ? _data[\"inserimentoDal\"] : null;\r\n this.inserimentoAl = _data[\"inserimentoAl\"] !== undefined ? _data[\"inserimentoAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchEmailsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchEmailsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"agenziaID\"] = this.agenziaID !== undefined ? this.agenziaID : null;\r\n data[\"impiegatoID\"] = this.impiegatoID !== undefined ? this.impiegatoID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"confermaDal\"] = this.confermaDal !== undefined ? this.confermaDal : null;\r\n data[\"confermaAl\"] = this.confermaAl !== undefined ? this.confermaAl : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"inserimentoDal\"] = this.inserimentoDal !== undefined ? this.inserimentoDal : null;\r\n data[\"inserimentoAl\"] = this.inserimentoAl !== undefined ? this.inserimentoAl : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchEmailsRequest extends INrTableRequest {\r\n agenziaID?: number | null;\r\n impiegatoID?: number | null;\r\n operatore?: EOperatore;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n inserimentoDal?: string | null;\r\n inserimentoAl?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfSearchNoteResponseRow extends OkApiResponse implements INrTableResponseOfSearchNoteResponseRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SearchNoteResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfSearchNoteResponseRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SearchNoteResponseRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfSearchNoteResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfSearchNoteResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfSearchNoteResponseRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SearchNoteResponseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class SearchNoteResponseRow implements ISearchNoteResponseRow {\r\n offertaNotaID?: number;\r\n offertaID?: number;\r\n offertaDatoID?: number | null;\r\n accordoID?: number | null;\r\n testo?: string | null;\r\n data?: string;\r\n fatto?: boolean;\r\n pubblica?: boolean;\r\n voucher?: boolean;\r\n kanban?: boolean;\r\n sistema?: boolean;\r\n tipo?: ETipoNota | null;\r\n utente?: string | null;\r\n utentePresaInCarico?: string | null;\r\n\r\n constructor(data?: ISearchNoteResponseRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaNotaID = _data[\"offertaNotaID\"] !== undefined ? _data[\"offertaNotaID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.fatto = _data[\"fatto\"] !== undefined ? _data[\"fatto\"] : null;\r\n this.pubblica = _data[\"pubblica\"] !== undefined ? _data[\"pubblica\"] : null;\r\n this.voucher = _data[\"voucher\"] !== undefined ? _data[\"voucher\"] : null;\r\n this.kanban = _data[\"kanban\"] !== undefined ? _data[\"kanban\"] : null;\r\n this.sistema = _data[\"sistema\"] !== undefined ? _data[\"sistema\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.utente = _data[\"utente\"] !== undefined ? _data[\"utente\"] : null;\r\n this.utentePresaInCarico = _data[\"utentePresaInCarico\"] !== undefined ? _data[\"utentePresaInCarico\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchNoteResponseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchNoteResponseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaNotaID\"] = this.offertaNotaID !== undefined ? this.offertaNotaID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"fatto\"] = this.fatto !== undefined ? this.fatto : null;\r\n data[\"pubblica\"] = this.pubblica !== undefined ? this.pubblica : null;\r\n data[\"voucher\"] = this.voucher !== undefined ? this.voucher : null;\r\n data[\"kanban\"] = this.kanban !== undefined ? this.kanban : null;\r\n data[\"sistema\"] = this.sistema !== undefined ? this.sistema : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"utente\"] = this.utente !== undefined ? this.utente : null;\r\n data[\"utentePresaInCarico\"] = this.utentePresaInCarico !== undefined ? this.utentePresaInCarico : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchNoteResponseRow {\r\n offertaNotaID?: number;\r\n offertaID?: number;\r\n offertaDatoID?: number | null;\r\n accordoID?: number | null;\r\n testo?: string | null;\r\n data?: string;\r\n fatto?: boolean;\r\n pubblica?: boolean;\r\n voucher?: boolean;\r\n kanban?: boolean;\r\n sistema?: boolean;\r\n tipo?: ETipoNota | null;\r\n utente?: string | null;\r\n utentePresaInCarico?: string | null;\r\n}\r\n\r\nexport class SearchNoteRequest extends NrTableRequest implements ISearchNoteRequest {\r\n agenziaID?: number | null;\r\n impiegatoID?: number | null;\r\n impiegatoPresaInCaricoID?: number | null;\r\n operatore?: EOperatore;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n inserimentoDal?: string | null;\r\n inserimentoAl?: string | null;\r\n tipologieNota?: NoteTypeSearch | null;\r\n\r\n constructor(data?: ISearchNoteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.agenziaID = _data[\"agenziaID\"] !== undefined ? _data[\"agenziaID\"] : null;\r\n this.impiegatoID = _data[\"impiegatoID\"] !== undefined ? _data[\"impiegatoID\"] : null;\r\n this.impiegatoPresaInCaricoID = _data[\"impiegatoPresaInCaricoID\"] !== undefined ? _data[\"impiegatoPresaInCaricoID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.confermaDal = _data[\"confermaDal\"] !== undefined ? _data[\"confermaDal\"] : null;\r\n this.confermaAl = _data[\"confermaAl\"] !== undefined ? _data[\"confermaAl\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.inserimentoDal = _data[\"inserimentoDal\"] !== undefined ? _data[\"inserimentoDal\"] : null;\r\n this.inserimentoAl = _data[\"inserimentoAl\"] !== undefined ? _data[\"inserimentoAl\"] : null;\r\n this.tipologieNota = _data[\"tipologieNota\"] ? NoteTypeSearch.fromJS(_data[\"tipologieNota\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchNoteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchNoteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"agenziaID\"] = this.agenziaID !== undefined ? this.agenziaID : null;\r\n data[\"impiegatoID\"] = this.impiegatoID !== undefined ? this.impiegatoID : null;\r\n data[\"impiegatoPresaInCaricoID\"] = this.impiegatoPresaInCaricoID !== undefined ? this.impiegatoPresaInCaricoID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"confermaDal\"] = this.confermaDal !== undefined ? this.confermaDal : null;\r\n data[\"confermaAl\"] = this.confermaAl !== undefined ? this.confermaAl : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"inserimentoDal\"] = this.inserimentoDal !== undefined ? this.inserimentoDal : null;\r\n data[\"inserimentoAl\"] = this.inserimentoAl !== undefined ? this.inserimentoAl : null;\r\n data[\"tipologieNota\"] = this.tipologieNota ? this.tipologieNota.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchNoteRequest extends INrTableRequest {\r\n agenziaID?: number | null;\r\n impiegatoID?: number | null;\r\n impiegatoPresaInCaricoID?: number | null;\r\n operatore?: EOperatore;\r\n confermaDal?: string | null;\r\n confermaAl?: string | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n inserimentoDal?: string | null;\r\n inserimentoAl?: string | null;\r\n tipologieNota?: NoteTypeSearch | null;\r\n}\r\n\r\nexport class NoteTypeSearch implements INoteTypeSearch {\r\n int?: boolean;\r\n prSin?: boolean;\r\n prMul?: boolean;\r\n ag?: boolean;\r\n rAg?: boolean;\r\n as?: boolean;\r\n pas?: boolean;\r\n op?: boolean;\r\n hasValue?: boolean;\r\n tipiNota?: ETipoNota[] | null;\r\n\r\n constructor(data?: INoteTypeSearch) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.int = _data[\"int\"] !== undefined ? _data[\"int\"] : null;\r\n this.prSin = _data[\"prSin\"] !== undefined ? _data[\"prSin\"] : null;\r\n this.prMul = _data[\"prMul\"] !== undefined ? _data[\"prMul\"] : null;\r\n this.ag = _data[\"ag\"] !== undefined ? _data[\"ag\"] : null;\r\n this.rAg = _data[\"rAg\"] !== undefined ? _data[\"rAg\"] : null;\r\n this.as = _data[\"as\"] !== undefined ? _data[\"as\"] : null;\r\n this.pas = _data[\"pas\"] !== undefined ? _data[\"pas\"] : null;\r\n this.op = _data[\"op\"] !== undefined ? _data[\"op\"] : null;\r\n this.hasValue = _data[\"hasValue\"] !== undefined ? _data[\"hasValue\"] : null;\r\n if (Array.isArray(_data[\"tipiNota\"])) {\r\n this.tipiNota = [] as any;\r\n for (let item of _data[\"tipiNota\"])\r\n this.tipiNota!.push(item);\r\n }\r\n else {\r\n this.tipiNota = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): NoteTypeSearch {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NoteTypeSearch();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"int\"] = this.int !== undefined ? this.int : null;\r\n data[\"prSin\"] = this.prSin !== undefined ? this.prSin : null;\r\n data[\"prMul\"] = this.prMul !== undefined ? this.prMul : null;\r\n data[\"ag\"] = this.ag !== undefined ? this.ag : null;\r\n data[\"rAg\"] = this.rAg !== undefined ? this.rAg : null;\r\n data[\"as\"] = this.as !== undefined ? this.as : null;\r\n data[\"pas\"] = this.pas !== undefined ? this.pas : null;\r\n data[\"op\"] = this.op !== undefined ? this.op : null;\r\n data[\"hasValue\"] = this.hasValue !== undefined ? this.hasValue : null;\r\n if (Array.isArray(this.tipiNota)) {\r\n data[\"tipiNota\"] = [];\r\n for (let item of this.tipiNota)\r\n data[\"tipiNota\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INoteTypeSearch {\r\n int?: boolean;\r\n prSin?: boolean;\r\n prMul?: boolean;\r\n ag?: boolean;\r\n rAg?: boolean;\r\n as?: boolean;\r\n pas?: boolean;\r\n op?: boolean;\r\n hasValue?: boolean;\r\n tipiNota?: ETipoNota[] | null;\r\n}\r\n\r\nexport class NrTableResponseOfOptimizationRow extends OkApiResponse implements INrTableResponseOfOptimizationRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: OptimizationRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfOptimizationRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(OptimizationRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfOptimizationRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfOptimizationRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfOptimizationRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: OptimizationRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class SearchOptimizationsResponse extends NrTableResponseOfOptimizationRow implements ISearchOptimizationsResponse {\r\n\r\n constructor(data?: ISearchOptimizationsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SearchOptimizationsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchOptimizationsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchOptimizationsResponse extends INrTableResponseOfOptimizationRow {\r\n}\r\n\r\nexport class OptimizationRow implements IOptimizationRow {\r\n id?: number;\r\n offerta?: Offerta;\r\n riga?: OffertaDato;\r\n alternativa?: OffertaDatoAlternativa;\r\n job?: OffertaDatoAlternativaJob;\r\n luogo?: string | null;\r\n dal?: string;\r\n fornitoreOriginale?: EFornitore | null;\r\n valutaCostoOriginale?: string | null;\r\n valutaCostoAlternativa?: string | null;\r\n\r\n constructor(data?: IOptimizationRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.offerta = _data[\"offerta\"] ? Offerta.fromJS(_data[\"offerta\"]) : null;\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n this.alternativa = _data[\"alternativa\"] ? OffertaDatoAlternativa.fromJS(_data[\"alternativa\"]) : null;\r\n this.job = _data[\"job\"] ? OffertaDatoAlternativaJob.fromJS(_data[\"job\"]) : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.fornitoreOriginale = _data[\"fornitoreOriginale\"] !== undefined ? _data[\"fornitoreOriginale\"] : null;\r\n this.valutaCostoOriginale = _data[\"valutaCostoOriginale\"] !== undefined ? _data[\"valutaCostoOriginale\"] : null;\r\n this.valutaCostoAlternativa = _data[\"valutaCostoAlternativa\"] !== undefined ? _data[\"valutaCostoAlternativa\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OptimizationRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OptimizationRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"alternativa\"] = this.alternativa ? this.alternativa.toJSON() : null;\r\n data[\"job\"] = this.job ? this.job.toJSON() : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"fornitoreOriginale\"] = this.fornitoreOriginale !== undefined ? this.fornitoreOriginale : null;\r\n data[\"valutaCostoOriginale\"] = this.valutaCostoOriginale !== undefined ? this.valutaCostoOriginale : null;\r\n data[\"valutaCostoAlternativa\"] = this.valutaCostoAlternativa !== undefined ? this.valutaCostoAlternativa : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOptimizationRow {\r\n id?: number;\r\n offerta?: Offerta;\r\n riga?: OffertaDato;\r\n alternativa?: OffertaDatoAlternativa;\r\n job?: OffertaDatoAlternativaJob;\r\n luogo?: string | null;\r\n dal?: string;\r\n fornitoreOriginale?: EFornitore | null;\r\n valutaCostoOriginale?: string | null;\r\n valutaCostoAlternativa?: string | null;\r\n}\r\n\r\nexport class OffertaDatoAlternativa implements IOffertaDatoAlternativa {\r\n id?: number;\r\n rigaID?: number;\r\n jobID?: number;\r\n status?: EStatusAlternativa;\r\n creato?: string;\r\n aggiornato?: string;\r\n descrizione?: string | null;\r\n note?: string | null;\r\n costo?: number | null;\r\n valutaCostoID?: number | null;\r\n prezzo?: number | null;\r\n fornitore?: EFornitore | null;\r\n searchData?: string | null;\r\n\r\n constructor(data?: IOffertaDatoAlternativa) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.creato = _data[\"creato\"] !== undefined ? _data[\"creato\"] : null;\r\n this.aggiornato = _data[\"aggiornato\"] !== undefined ? _data[\"aggiornato\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.valutaCostoID = _data[\"valutaCostoID\"] !== undefined ? _data[\"valutaCostoID\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.searchData = _data[\"searchData\"] !== undefined ? _data[\"searchData\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaDatoAlternativa {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaDatoAlternativa();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"creato\"] = this.creato !== undefined ? this.creato : null;\r\n data[\"aggiornato\"] = this.aggiornato !== undefined ? this.aggiornato : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"valutaCostoID\"] = this.valutaCostoID !== undefined ? this.valutaCostoID : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"searchData\"] = this.searchData !== undefined ? this.searchData : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaDatoAlternativa {\r\n id?: number;\r\n rigaID?: number;\r\n jobID?: number;\r\n status?: EStatusAlternativa;\r\n creato?: string;\r\n aggiornato?: string;\r\n descrizione?: string | null;\r\n note?: string | null;\r\n costo?: number | null;\r\n valutaCostoID?: number | null;\r\n prezzo?: number | null;\r\n fornitore?: EFornitore | null;\r\n searchData?: string | null;\r\n}\r\n\r\nexport enum EStatusAlternativa {\r\n Pronto = \"Pronto\",\r\n InCorso = \"InCorso\",\r\n EseguitoSuccesso = \"EseguitoSuccesso\",\r\n EseguitoNoRisultati = \"EseguitoNoRisultati\",\r\n Errore = \"Errore\",\r\n Annullato = \"Annullato\",\r\n}\r\n\r\nexport class SearchOptimizationsRequest extends NrTableRequest implements ISearchOptimizationsRequest {\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n\r\n constructor(data?: ISearchOptimizationsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchOptimizationsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchOptimizationsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchOptimizationsRequest extends INrTableRequest {\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfPreventivoListRow extends OkApiResponse implements INrTableResponseOfPreventivoListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PreventivoListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfPreventivoListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(PreventivoListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfPreventivoListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfPreventivoListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfPreventivoListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PreventivoListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class SearchPreventiviResponse extends NrTableResponseOfPreventivoListRow implements ISearchPreventiviResponse {\r\n ordersWorkLoad?: OrdersWorkLoad | null;\r\n\r\n constructor(data?: ISearchPreventiviResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ordersWorkLoad = _data[\"ordersWorkLoad\"] ? OrdersWorkLoad.fromJS(_data[\"ordersWorkLoad\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchPreventiviResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchPreventiviResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ordersWorkLoad\"] = this.ordersWorkLoad ? this.ordersWorkLoad.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchPreventiviResponse extends INrTableResponseOfPreventivoListRow {\r\n ordersWorkLoad?: OrdersWorkLoad | null;\r\n}\r\n\r\nexport class OrdersWorkLoad implements IOrdersWorkLoad {\r\n teamsLoad?: OrdersTeamWorkLoad[] | null;\r\n totalOrders?: number;\r\n\r\n constructor(data?: IOrdersWorkLoad) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"teamsLoad\"])) {\r\n this.teamsLoad = [] as any;\r\n for (let item of _data[\"teamsLoad\"])\r\n this.teamsLoad!.push(OrdersTeamWorkLoad.fromJS(item));\r\n }\r\n else {\r\n this.teamsLoad = null;\r\n }\r\n this.totalOrders = _data[\"totalOrders\"] !== undefined ? _data[\"totalOrders\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OrdersWorkLoad {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OrdersWorkLoad();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.teamsLoad)) {\r\n data[\"teamsLoad\"] = [];\r\n for (let item of this.teamsLoad)\r\n data[\"teamsLoad\"].push(item.toJSON());\r\n }\r\n data[\"totalOrders\"] = this.totalOrders !== undefined ? this.totalOrders : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOrdersWorkLoad {\r\n teamsLoad?: OrdersTeamWorkLoad[] | null;\r\n totalOrders?: number;\r\n}\r\n\r\nexport class OrdersTeamWorkLoad implements IOrdersTeamWorkLoad {\r\n teamID?: number;\r\n teamName?: string | null;\r\n totalOrders?: number;\r\n users?: OrdersUserWorkLoad[] | null;\r\n\r\n constructor(data?: IOrdersTeamWorkLoad) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.teamName = _data[\"teamName\"] !== undefined ? _data[\"teamName\"] : null;\r\n this.totalOrders = _data[\"totalOrders\"] !== undefined ? _data[\"totalOrders\"] : null;\r\n if (Array.isArray(_data[\"users\"])) {\r\n this.users = [] as any;\r\n for (let item of _data[\"users\"])\r\n this.users!.push(OrdersUserWorkLoad.fromJS(item));\r\n }\r\n else {\r\n this.users = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): OrdersTeamWorkLoad {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OrdersTeamWorkLoad();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"teamName\"] = this.teamName !== undefined ? this.teamName : null;\r\n data[\"totalOrders\"] = this.totalOrders !== undefined ? this.totalOrders : null;\r\n if (Array.isArray(this.users)) {\r\n data[\"users\"] = [];\r\n for (let item of this.users)\r\n data[\"users\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOrdersTeamWorkLoad {\r\n teamID?: number;\r\n teamName?: string | null;\r\n totalOrders?: number;\r\n users?: OrdersUserWorkLoad[] | null;\r\n}\r\n\r\nexport class OrdersUserWorkLoad implements IOrdersUserWorkLoad {\r\n userID?: number;\r\n userName?: string | null;\r\n totalOrders?: number;\r\n orders?: OrdersOrderDetails[] | null;\r\n\r\n constructor(data?: IOrdersUserWorkLoad) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.userName = _data[\"userName\"] !== undefined ? _data[\"userName\"] : null;\r\n this.totalOrders = _data[\"totalOrders\"] !== undefined ? _data[\"totalOrders\"] : null;\r\n if (Array.isArray(_data[\"orders\"])) {\r\n this.orders = [] as any;\r\n for (let item of _data[\"orders\"])\r\n this.orders!.push(OrdersOrderDetails.fromJS(item));\r\n }\r\n else {\r\n this.orders = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): OrdersUserWorkLoad {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OrdersUserWorkLoad();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"userName\"] = this.userName !== undefined ? this.userName : null;\r\n data[\"totalOrders\"] = this.totalOrders !== undefined ? this.totalOrders : null;\r\n if (Array.isArray(this.orders)) {\r\n data[\"orders\"] = [];\r\n for (let item of this.orders)\r\n data[\"orders\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOrdersUserWorkLoad {\r\n userID?: number;\r\n userName?: string | null;\r\n totalOrders?: number;\r\n orders?: OrdersOrderDetails[] | null;\r\n}\r\n\r\nexport class OrdersOrderDetails implements IOrdersOrderDetails {\r\n offertaID?: number;\r\n title?: string | null;\r\n description?: string | null;\r\n orderStatus?: EStatusPreventivo | null;\r\n\r\n constructor(data?: IOrdersOrderDetails) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.description = _data[\"description\"] !== undefined ? _data[\"description\"] : null;\r\n this.orderStatus = _data[\"orderStatus\"] !== undefined ? _data[\"orderStatus\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OrdersOrderDetails {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OrdersOrderDetails();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"description\"] = this.description !== undefined ? this.description : null;\r\n data[\"orderStatus\"] = this.orderStatus !== undefined ? this.orderStatus : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOrdersOrderDetails {\r\n offertaID?: number;\r\n title?: string | null;\r\n description?: string | null;\r\n orderStatus?: EStatusPreventivo | null;\r\n}\r\n\r\nexport class PreventivoListRow implements IPreventivoListRow {\r\n offertaID?: number;\r\n descrizione?: string | null;\r\n clienti?: string;\r\n destinazione?: string | null;\r\n creazione?: string;\r\n partenza?: string;\r\n priorita?: string | null;\r\n dataAppuntamentoADV?: string | null;\r\n totale?: number;\r\n agenzia?: string | null;\r\n telefono?: string | null;\r\n email?: string | null;\r\n categoriaAgenzia?: string | null;\r\n categoriaUtente?: string | null;\r\n impiegato?: string | null;\r\n utentePreventivo?: string | null;\r\n utenteConferma?: string | null;\r\n sales?: string | null;\r\n pagamento?: string | null;\r\n duplicabileAgenzia?: boolean;\r\n teamId?: number | null;\r\n teamName?: string | null;\r\n statusPreventivo?: EStatusPreventivo | null;\r\n tagIds?: number[];\r\n emails?: TripEmail[] | null;\r\n\r\n constructor(data?: IPreventivoListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.clienti = _data[\"clienti\"] !== undefined ? _data[\"clienti\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.dataAppuntamentoADV = _data[\"dataAppuntamentoADV\"] !== undefined ? _data[\"dataAppuntamentoADV\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.agenzia = _data[\"agenzia\"] !== undefined ? _data[\"agenzia\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.categoriaAgenzia = _data[\"categoriaAgenzia\"] !== undefined ? _data[\"categoriaAgenzia\"] : null;\r\n this.categoriaUtente = _data[\"categoriaUtente\"] !== undefined ? _data[\"categoriaUtente\"] : null;\r\n this.impiegato = _data[\"impiegato\"] !== undefined ? _data[\"impiegato\"] : null;\r\n this.utentePreventivo = _data[\"utentePreventivo\"] !== undefined ? _data[\"utentePreventivo\"] : null;\r\n this.utenteConferma = _data[\"utenteConferma\"] !== undefined ? _data[\"utenteConferma\"] : null;\r\n this.sales = _data[\"sales\"] !== undefined ? _data[\"sales\"] : null;\r\n this.pagamento = _data[\"pagamento\"] !== undefined ? _data[\"pagamento\"] : null;\r\n this.duplicabileAgenzia = _data[\"duplicabileAgenzia\"] !== undefined ? _data[\"duplicabileAgenzia\"] : null;\r\n this.teamId = _data[\"teamId\"] !== undefined ? _data[\"teamId\"] : null;\r\n this.teamName = _data[\"teamName\"] !== undefined ? _data[\"teamName\"] : null;\r\n this.statusPreventivo = _data[\"statusPreventivo\"] !== undefined ? _data[\"statusPreventivo\"] : null;\r\n if (Array.isArray(_data[\"tagIds\"])) {\r\n this.tagIds = [] as any;\r\n for (let item of _data[\"tagIds\"])\r\n this.tagIds!.push(item);\r\n }\r\n else {\r\n this.tagIds = null;\r\n }\r\n if (Array.isArray(_data[\"emails\"])) {\r\n this.emails = [] as any;\r\n for (let item of _data[\"emails\"])\r\n this.emails!.push(TripEmail.fromJS(item));\r\n }\r\n else {\r\n this.emails = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PreventivoListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PreventivoListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"clienti\"] = this.clienti !== undefined ? this.clienti : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"dataAppuntamentoADV\"] = this.dataAppuntamentoADV !== undefined ? this.dataAppuntamentoADV : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"agenzia\"] = this.agenzia !== undefined ? this.agenzia : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"categoriaAgenzia\"] = this.categoriaAgenzia !== undefined ? this.categoriaAgenzia : null;\r\n data[\"categoriaUtente\"] = this.categoriaUtente !== undefined ? this.categoriaUtente : null;\r\n data[\"impiegato\"] = this.impiegato !== undefined ? this.impiegato : null;\r\n data[\"utentePreventivo\"] = this.utentePreventivo !== undefined ? this.utentePreventivo : null;\r\n data[\"utenteConferma\"] = this.utenteConferma !== undefined ? this.utenteConferma : null;\r\n data[\"sales\"] = this.sales !== undefined ? this.sales : null;\r\n data[\"pagamento\"] = this.pagamento !== undefined ? this.pagamento : null;\r\n data[\"duplicabileAgenzia\"] = this.duplicabileAgenzia !== undefined ? this.duplicabileAgenzia : null;\r\n data[\"teamId\"] = this.teamId !== undefined ? this.teamId : null;\r\n data[\"teamName\"] = this.teamName !== undefined ? this.teamName : null;\r\n data[\"statusPreventivo\"] = this.statusPreventivo !== undefined ? this.statusPreventivo : null;\r\n if (Array.isArray(this.tagIds)) {\r\n data[\"tagIds\"] = [];\r\n for (let item of this.tagIds)\r\n data[\"tagIds\"].push(item);\r\n }\r\n if (Array.isArray(this.emails)) {\r\n data[\"emails\"] = [];\r\n for (let item of this.emails)\r\n data[\"emails\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPreventivoListRow {\r\n offertaID?: number;\r\n descrizione?: string | null;\r\n clienti?: string;\r\n destinazione?: string | null;\r\n creazione?: string;\r\n partenza?: string;\r\n priorita?: string | null;\r\n dataAppuntamentoADV?: string | null;\r\n totale?: number;\r\n agenzia?: string | null;\r\n telefono?: string | null;\r\n email?: string | null;\r\n categoriaAgenzia?: string | null;\r\n categoriaUtente?: string | null;\r\n impiegato?: string | null;\r\n utentePreventivo?: string | null;\r\n utenteConferma?: string | null;\r\n sales?: string | null;\r\n pagamento?: string | null;\r\n duplicabileAgenzia?: boolean;\r\n teamId?: number | null;\r\n teamName?: string | null;\r\n statusPreventivo?: EStatusPreventivo | null;\r\n tagIds?: number[];\r\n emails?: TripEmail[] | null;\r\n}\r\n\r\nexport class SearchPreventiviRequest extends NrTableRequest implements ISearchPreventiviRequest {\r\n offertaID?: number | null;\r\n agenziaID?: number | null;\r\n categorieContattoIDs?: (number | null)[] | null;\r\n impiegatoID?: number | null;\r\n promotoreID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n operatore?: EOperatore | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n scadenzaDal?: string | null;\r\n scadenzaAl?: string | null;\r\n creazioneDal?: string | null;\r\n creazioneAl?: string | null;\r\n appuntamentoAgenziaDal?: string | null;\r\n appuntamentoAgenziaAl?: string | null;\r\n teamIds?: number[] | null;\r\n statusPreventivo?: EStatusPreventivo[] | null;\r\n tagIds?: number[] | null;\r\n tagFilterMode?: EFilterMode | null;\r\n\r\n constructor(data?: ISearchPreventiviRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.agenziaID = _data[\"agenziaID\"] !== undefined ? _data[\"agenziaID\"] : null;\r\n if (Array.isArray(_data[\"categorieContattoIDs\"])) {\r\n this.categorieContattoIDs = [] as any;\r\n for (let item of _data[\"categorieContattoIDs\"])\r\n this.categorieContattoIDs!.push(item);\r\n }\r\n else {\r\n this.categorieContattoIDs = null;\r\n }\r\n this.impiegatoID = _data[\"impiegatoID\"] !== undefined ? _data[\"impiegatoID\"] : null;\r\n this.promotoreID = _data[\"promotoreID\"] !== undefined ? _data[\"promotoreID\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.scadenzaDal = _data[\"scadenzaDal\"] !== undefined ? _data[\"scadenzaDal\"] : null;\r\n this.scadenzaAl = _data[\"scadenzaAl\"] !== undefined ? _data[\"scadenzaAl\"] : null;\r\n this.creazioneDal = _data[\"creazioneDal\"] !== undefined ? _data[\"creazioneDal\"] : null;\r\n this.creazioneAl = _data[\"creazioneAl\"] !== undefined ? _data[\"creazioneAl\"] : null;\r\n this.appuntamentoAgenziaDal = _data[\"appuntamentoAgenziaDal\"] !== undefined ? _data[\"appuntamentoAgenziaDal\"] : null;\r\n this.appuntamentoAgenziaAl = _data[\"appuntamentoAgenziaAl\"] !== undefined ? _data[\"appuntamentoAgenziaAl\"] : null;\r\n if (Array.isArray(_data[\"teamIds\"])) {\r\n this.teamIds = [] as any;\r\n for (let item of _data[\"teamIds\"])\r\n this.teamIds!.push(item);\r\n }\r\n else {\r\n this.teamIds = null;\r\n }\r\n if (Array.isArray(_data[\"statusPreventivo\"])) {\r\n this.statusPreventivo = [] as any;\r\n for (let item of _data[\"statusPreventivo\"])\r\n this.statusPreventivo!.push(item);\r\n }\r\n else {\r\n this.statusPreventivo = null;\r\n }\r\n if (Array.isArray(_data[\"tagIds\"])) {\r\n this.tagIds = [] as any;\r\n for (let item of _data[\"tagIds\"])\r\n this.tagIds!.push(item);\r\n }\r\n else {\r\n this.tagIds = null;\r\n }\r\n this.tagFilterMode = _data[\"tagFilterMode\"] !== undefined ? _data[\"tagFilterMode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchPreventiviRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchPreventiviRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"agenziaID\"] = this.agenziaID !== undefined ? this.agenziaID : null;\r\n if (Array.isArray(this.categorieContattoIDs)) {\r\n data[\"categorieContattoIDs\"] = [];\r\n for (let item of this.categorieContattoIDs)\r\n data[\"categorieContattoIDs\"].push(item);\r\n }\r\n data[\"impiegatoID\"] = this.impiegatoID !== undefined ? this.impiegatoID : null;\r\n data[\"promotoreID\"] = this.promotoreID !== undefined ? this.promotoreID : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"scadenzaDal\"] = this.scadenzaDal !== undefined ? this.scadenzaDal : null;\r\n data[\"scadenzaAl\"] = this.scadenzaAl !== undefined ? this.scadenzaAl : null;\r\n data[\"creazioneDal\"] = this.creazioneDal !== undefined ? this.creazioneDal : null;\r\n data[\"creazioneAl\"] = this.creazioneAl !== undefined ? this.creazioneAl : null;\r\n data[\"appuntamentoAgenziaDal\"] = this.appuntamentoAgenziaDal !== undefined ? this.appuntamentoAgenziaDal : null;\r\n data[\"appuntamentoAgenziaAl\"] = this.appuntamentoAgenziaAl !== undefined ? this.appuntamentoAgenziaAl : null;\r\n if (Array.isArray(this.teamIds)) {\r\n data[\"teamIds\"] = [];\r\n for (let item of this.teamIds)\r\n data[\"teamIds\"].push(item);\r\n }\r\n if (Array.isArray(this.statusPreventivo)) {\r\n data[\"statusPreventivo\"] = [];\r\n for (let item of this.statusPreventivo)\r\n data[\"statusPreventivo\"].push(item);\r\n }\r\n if (Array.isArray(this.tagIds)) {\r\n data[\"tagIds\"] = [];\r\n for (let item of this.tagIds)\r\n data[\"tagIds\"].push(item);\r\n }\r\n data[\"tagFilterMode\"] = this.tagFilterMode !== undefined ? this.tagFilterMode : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchPreventiviRequest extends INrTableRequest {\r\n offertaID?: number | null;\r\n agenziaID?: number | null;\r\n categorieContattoIDs?: (number | null)[] | null;\r\n impiegatoID?: number | null;\r\n promotoreID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n operatore?: EOperatore | null;\r\n partenzaDal?: string | null;\r\n partenzaAl?: string | null;\r\n scadenzaDal?: string | null;\r\n scadenzaAl?: string | null;\r\n creazioneDal?: string | null;\r\n creazioneAl?: string | null;\r\n appuntamentoAgenziaDal?: string | null;\r\n appuntamentoAgenziaAl?: string | null;\r\n teamIds?: number[] | null;\r\n statusPreventivo?: EStatusPreventivo[] | null;\r\n tagIds?: number[] | null;\r\n tagFilterMode?: EFilterMode | null;\r\n}\r\n\r\nexport enum EFilterMode {\r\n AND = \"AND\",\r\n OR = \"OR\",\r\n}\r\n\r\nexport class UpdateOrdersStatusMultiRequest extends ApiRequest implements IUpdateOrdersStatusMultiRequest {\r\n /** Lista degli ID da modificare */\r\n iDs!: number[];\r\n /** Se presente è la nuova data del campo priorità da impostare */\r\n newPriorita?: string | null;\r\n /** Se presente è il valore in giorni +/- da impostare sulla data di priorità. Se c'è la data questo viene ignorato */\r\n offsetPriorita?: number | null;\r\n /** Se presente è il nuovo ID del team da assegnare */\r\n newTeamID?: number | null;\r\n /** Se presente è il nuovo status da assegnare */\r\n newStatusPreventivo?: EStatusPreventivo | null;\r\n /** Se presente è il nuovo id utente preventivo */\r\n newUtenteID?: number | null;\r\n /** Elenco degli id dei tag da assegnare */\r\n tagsIDs?: number[] | null;\r\n\r\n constructor(data?: IUpdateOrdersStatusMultiRequest) {\r\n super(data);\r\n if (!data) {\r\n this.iDs = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"iDs\"])) {\r\n this.iDs = [] as any;\r\n for (let item of _data[\"iDs\"])\r\n this.iDs!.push(item);\r\n }\r\n else {\r\n this.iDs = null;\r\n }\r\n this.newPriorita = _data[\"newPriorita\"] !== undefined ? _data[\"newPriorita\"] : null;\r\n this.offsetPriorita = _data[\"offsetPriorita\"] !== undefined ? _data[\"offsetPriorita\"] : null;\r\n this.newTeamID = _data[\"newTeamID\"] !== undefined ? _data[\"newTeamID\"] : null;\r\n this.newStatusPreventivo = _data[\"newStatusPreventivo\"] !== undefined ? _data[\"newStatusPreventivo\"] : null;\r\n this.newUtenteID = _data[\"newUtenteID\"] !== undefined ? _data[\"newUtenteID\"] : null;\r\n if (Array.isArray(_data[\"tagsIDs\"])) {\r\n this.tagsIDs = [] as any;\r\n for (let item of _data[\"tagsIDs\"])\r\n this.tagsIDs!.push(item);\r\n }\r\n else {\r\n this.tagsIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateOrdersStatusMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateOrdersStatusMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.iDs)) {\r\n data[\"iDs\"] = [];\r\n for (let item of this.iDs)\r\n data[\"iDs\"].push(item);\r\n }\r\n data[\"newPriorita\"] = this.newPriorita !== undefined ? this.newPriorita : null;\r\n data[\"offsetPriorita\"] = this.offsetPriorita !== undefined ? this.offsetPriorita : null;\r\n data[\"newTeamID\"] = this.newTeamID !== undefined ? this.newTeamID : null;\r\n data[\"newStatusPreventivo\"] = this.newStatusPreventivo !== undefined ? this.newStatusPreventivo : null;\r\n data[\"newUtenteID\"] = this.newUtenteID !== undefined ? this.newUtenteID : null;\r\n if (Array.isArray(this.tagsIDs)) {\r\n data[\"tagsIDs\"] = [];\r\n for (let item of this.tagsIDs)\r\n data[\"tagsIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateOrdersStatusMultiRequest extends IApiRequest {\r\n /** Lista degli ID da modificare */\r\n iDs: number[];\r\n /** Se presente è la nuova data del campo priorità da impostare */\r\n newPriorita?: string | null;\r\n /** Se presente è il valore in giorni +/- da impostare sulla data di priorità. Se c'è la data questo viene ignorato */\r\n offsetPriorita?: number | null;\r\n /** Se presente è il nuovo ID del team da assegnare */\r\n newTeamID?: number | null;\r\n /** Se presente è il nuovo status da assegnare */\r\n newStatusPreventivo?: EStatusPreventivo | null;\r\n /** Se presente è il nuovo id utente preventivo */\r\n newUtenteID?: number | null;\r\n /** Elenco degli id dei tag da assegnare */\r\n tagsIDs?: number[] | null;\r\n}\r\n\r\nexport class PaymentTermsGetResponse extends OkApiResponse implements IPaymentTermsGetResponse {\r\n paymentTerm?: TerminePagamento | null;\r\n\r\n constructor(data?: IPaymentTermsGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.paymentTerm = _data[\"paymentTerm\"] ? TerminePagamento.fromJS(_data[\"paymentTerm\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTermsGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermsGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paymentTerm\"] = this.paymentTerm ? this.paymentTerm.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermsGetResponse extends IOkApiResponse {\r\n paymentTerm?: TerminePagamento | null;\r\n}\r\n\r\nexport class PaymentTermUpsertResponse extends PaymentTermsGetResponse implements IPaymentTermUpsertResponse {\r\n\r\n constructor(data?: IPaymentTermUpsertResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PaymentTermUpsertResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermUpsertResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermUpsertResponse extends IPaymentTermsGetResponse {\r\n}\r\n\r\nexport class PaymentTermsUpsertRequest extends ApiRequest implements IPaymentTermsUpsertRequest {\r\n paymentTerm?: TerminePagamento | null;\r\n\r\n constructor(data?: IPaymentTermsUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.paymentTerm = _data[\"paymentTerm\"] ? TerminePagamento.fromJS(_data[\"paymentTerm\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTermsUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermsUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"paymentTerm\"] = this.paymentTerm ? this.paymentTerm.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermsUpsertRequest extends IApiRequest {\r\n paymentTerm?: TerminePagamento | null;\r\n}\r\n\r\nexport class PaymentTermsDeleteRequest extends ApiRequest implements IPaymentTermsDeleteRequest {\r\n id?: number;\r\n\r\n constructor(data?: IPaymentTermsDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTermsDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermsDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermsDeleteRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class PaymentTermsGetRequest extends ApiRequest implements IPaymentTermsGetRequest {\r\n termID?: number;\r\n\r\n constructor(data?: IPaymentTermsGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.termID = _data[\"termID\"] !== undefined ? _data[\"termID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTermsGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermsGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"termID\"] = this.termID !== undefined ? this.termID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermsGetRequest extends IApiRequest {\r\n termID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfTerminePagamento extends OkApiResponse implements INrTableResponseOfTerminePagamento {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TerminePagamento[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTerminePagamento) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TerminePagamento.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTerminePagamento {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTerminePagamento();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTerminePagamento extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TerminePagamento[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class PaymentTermsListRequest extends NrTableRequest implements IPaymentTermsListRequest {\r\n term?: string | null;\r\n showDeleted?: boolean;\r\n\r\n constructor(data?: IPaymentTermsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTermsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermsListRequest extends INrTableRequest {\r\n term?: string | null;\r\n showDeleted?: boolean;\r\n}\r\n\r\nexport class PaymentTermsRestoreRequest extends ApiRequest implements IPaymentTermsRestoreRequest {\r\n id?: number;\r\n\r\n constructor(data?: IPaymentTermsRestoreRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaymentTermsRestoreRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaymentTermsRestoreRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaymentTermsRestoreRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class GetCacheIndexResponse extends OkApiResponse implements IGetCacheIndexResponse {\r\n /** Indice della cache */\r\n indice?: CostsIndex;\r\n\r\n constructor(data?: IGetCacheIndexResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.indice = _data[\"indice\"] ? CostsIndex.fromJS(_data[\"indice\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCacheIndexResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCacheIndexResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"indice\"] = this.indice ? this.indice.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCacheIndexResponse extends IOkApiResponse {\r\n /** Indice della cache */\r\n indice?: CostsIndex;\r\n}\r\n\r\nexport class CostsIndex implements ICostsIndex {\r\n key?: string;\r\n input?: CacheDisponibilitaInput;\r\n deleteAt?: string;\r\n createdAt?: string;\r\n lastHitDate?: string | null;\r\n updatedAt?: string;\r\n hits?: number;\r\n uniqueID?: string | null;\r\n locationID?: number | null;\r\n date?: string | null;\r\n nights?: number | null;\r\n serviceType?: ETipoServizioSearch | null;\r\n costi?: { [key: string]: SupplierCostsPointer; };\r\n generation?: number;\r\n isFinal?: boolean;\r\n doneCount?: number;\r\n okCount?: number;\r\n searchesCount?: number;\r\n now?: string;\r\n hasResults?: boolean;\r\n status?: EStatusCostiFornitore;\r\n\r\n constructor(data?: ICostsIndex) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.key = _data[\"key\"] !== undefined ? _data[\"key\"] : null;\r\n this.input = _data[\"input\"] ? CacheDisponibilitaInput.fromJS(_data[\"input\"]) : null;\r\n this.deleteAt = _data[\"deleteAt\"] !== undefined ? _data[\"deleteAt\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.lastHitDate = _data[\"lastHitDate\"] !== undefined ? _data[\"lastHitDate\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.hits = _data[\"hits\"] !== undefined ? _data[\"hits\"] : null;\r\n this.uniqueID = _data[\"uniqueID\"] !== undefined ? _data[\"uniqueID\"] : null;\r\n this.locationID = _data[\"locationID\"] !== undefined ? _data[\"locationID\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.nights = _data[\"nights\"] !== undefined ? _data[\"nights\"] : null;\r\n this.serviceType = _data[\"serviceType\"] !== undefined ? _data[\"serviceType\"] : null;\r\n if (_data[\"costi\"]) {\r\n this.costi = {} as any;\r\n for (let key in _data[\"costi\"]) {\r\n if (_data[\"costi\"].hasOwnProperty(key))\r\n (this.costi)![key] = _data[\"costi\"][key] ? SupplierCostsPointer.fromJS(_data[\"costi\"][key]) : new SupplierCostsPointer();\r\n }\r\n }\r\n else {\r\n this.costi = null;\r\n }\r\n this.generation = _data[\"generation\"] !== undefined ? _data[\"generation\"] : null;\r\n this.isFinal = _data[\"isFinal\"] !== undefined ? _data[\"isFinal\"] : null;\r\n this.doneCount = _data[\"doneCount\"] !== undefined ? _data[\"doneCount\"] : null;\r\n this.okCount = _data[\"okCount\"] !== undefined ? _data[\"okCount\"] : null;\r\n this.searchesCount = _data[\"searchesCount\"] !== undefined ? _data[\"searchesCount\"] : null;\r\n this.now = _data[\"now\"] !== undefined ? _data[\"now\"] : null;\r\n this.hasResults = _data[\"hasResults\"] !== undefined ? _data[\"hasResults\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostsIndex {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostsIndex();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"key\"] = this.key !== undefined ? this.key : null;\r\n data[\"input\"] = this.input ? this.input.toJSON() : null;\r\n data[\"deleteAt\"] = this.deleteAt !== undefined ? this.deleteAt : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"lastHitDate\"] = this.lastHitDate !== undefined ? this.lastHitDate : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"hits\"] = this.hits !== undefined ? this.hits : null;\r\n data[\"uniqueID\"] = this.uniqueID !== undefined ? this.uniqueID : null;\r\n data[\"locationID\"] = this.locationID !== undefined ? this.locationID : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"nights\"] = this.nights !== undefined ? this.nights : null;\r\n data[\"serviceType\"] = this.serviceType !== undefined ? this.serviceType : null;\r\n if (this.costi) {\r\n data[\"costi\"] = {};\r\n for (let key in this.costi) {\r\n if (this.costi.hasOwnProperty(key))\r\n (data[\"costi\"])[key] = this.costi[key] ? this.costi[key].toJSON() : null;\r\n }\r\n }\r\n data[\"generation\"] = this.generation !== undefined ? this.generation : null;\r\n data[\"isFinal\"] = this.isFinal !== undefined ? this.isFinal : null;\r\n data[\"doneCount\"] = this.doneCount !== undefined ? this.doneCount : null;\r\n data[\"okCount\"] = this.okCount !== undefined ? this.okCount : null;\r\n data[\"searchesCount\"] = this.searchesCount !== undefined ? this.searchesCount : null;\r\n data[\"now\"] = this.now !== undefined ? this.now : null;\r\n data[\"hasResults\"] = this.hasResults !== undefined ? this.hasResults : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostsIndex {\r\n key?: string;\r\n input?: CacheDisponibilitaInput;\r\n deleteAt?: string;\r\n createdAt?: string;\r\n lastHitDate?: string | null;\r\n updatedAt?: string;\r\n hits?: number;\r\n uniqueID?: string | null;\r\n locationID?: number | null;\r\n date?: string | null;\r\n nights?: number | null;\r\n serviceType?: ETipoServizioSearch | null;\r\n costi?: { [key: string]: SupplierCostsPointer; };\r\n generation?: number;\r\n isFinal?: boolean;\r\n doneCount?: number;\r\n okCount?: number;\r\n searchesCount?: number;\r\n now?: string;\r\n hasResults?: boolean;\r\n status?: EStatusCostiFornitore;\r\n}\r\n\r\nexport abstract class H2HRequestInputBase implements IH2HRequestInputBase {\r\n supplier?: EFornitore | null;\r\n contesto?: EContestoRicerca;\r\n tipoServizio?: ETipoServizioSearch;\r\n siteID?: EH2HClient;\r\n\r\n constructor(data?: IH2HRequestInputBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.contesto = _data[\"contesto\"] !== undefined ? _data[\"contesto\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.siteID = _data[\"siteID\"] !== undefined ? _data[\"siteID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): H2HRequestInputBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'H2HRequestInputBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"contesto\"] = this.contesto !== undefined ? this.contesto : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"siteID\"] = this.siteID !== undefined ? this.siteID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IH2HRequestInputBase {\r\n supplier?: EFornitore | null;\r\n contesto?: EContestoRicerca;\r\n tipoServizio?: ETipoServizioSearch;\r\n siteID?: EH2HClient;\r\n}\r\n\r\nexport class DisponibilitaInput extends H2HRequestInputBase implements IDisponibilitaInput {\r\n jobID?: string;\r\n operatore?: EOperatore;\r\n userID?: number;\r\n dataDal?: string;\r\n oraDal?: number | null;\r\n dataAl?: string;\r\n oraAl?: number | null;\r\n gruppi?: DisponibilitaGruppo[];\r\n usaPrezziNetti?: boolean;\r\n moltiplicatoreMarkupAdv?: number;\r\n listino?: EListinoPrezzi;\r\n nozze?: boolean;\r\n lingua?: ELingua;\r\n tripID?: number | null;\r\n tripDetailID?: number | null;\r\n\r\n constructor(data?: IDisponibilitaInput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.userID = _data[\"userID\"] !== undefined ? _data[\"userID\"] : null;\r\n this.dataDal = _data[\"dataDal\"] !== undefined ? _data[\"dataDal\"] : null;\r\n this.oraDal = _data[\"oraDal\"] !== undefined ? _data[\"oraDal\"] : null;\r\n this.dataAl = _data[\"dataAl\"] !== undefined ? _data[\"dataAl\"] : null;\r\n this.oraAl = _data[\"oraAl\"] !== undefined ? _data[\"oraAl\"] : null;\r\n if (Array.isArray(_data[\"gruppi\"])) {\r\n this.gruppi = [] as any;\r\n for (let item of _data[\"gruppi\"])\r\n this.gruppi!.push(DisponibilitaGruppo.fromJS(item));\r\n }\r\n else {\r\n this.gruppi = null;\r\n }\r\n this.usaPrezziNetti = _data[\"usaPrezziNetti\"] !== undefined ? _data[\"usaPrezziNetti\"] : null;\r\n this.moltiplicatoreMarkupAdv = _data[\"moltiplicatoreMarkupAdv\"] !== undefined ? _data[\"moltiplicatoreMarkupAdv\"] : null;\r\n this.listino = _data[\"listino\"] !== undefined ? _data[\"listino\"] : null;\r\n this.nozze = _data[\"nozze\"] !== undefined ? _data[\"nozze\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.tripDetailID = _data[\"tripDetailID\"] !== undefined ? _data[\"tripDetailID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaInput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaInput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"userID\"] = this.userID !== undefined ? this.userID : null;\r\n data[\"dataDal\"] = this.dataDal !== undefined ? this.dataDal : null;\r\n data[\"oraDal\"] = this.oraDal !== undefined ? this.oraDal : null;\r\n data[\"dataAl\"] = this.dataAl !== undefined ? this.dataAl : null;\r\n data[\"oraAl\"] = this.oraAl !== undefined ? this.oraAl : null;\r\n if (Array.isArray(this.gruppi)) {\r\n data[\"gruppi\"] = [];\r\n for (let item of this.gruppi)\r\n data[\"gruppi\"].push(item.toJSON());\r\n }\r\n data[\"usaPrezziNetti\"] = this.usaPrezziNetti !== undefined ? this.usaPrezziNetti : null;\r\n data[\"moltiplicatoreMarkupAdv\"] = this.moltiplicatoreMarkupAdv !== undefined ? this.moltiplicatoreMarkupAdv : null;\r\n data[\"listino\"] = this.listino !== undefined ? this.listino : null;\r\n data[\"nozze\"] = this.nozze !== undefined ? this.nozze : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"tripDetailID\"] = this.tripDetailID !== undefined ? this.tripDetailID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaInput extends IH2HRequestInputBase {\r\n jobID?: string;\r\n operatore?: EOperatore;\r\n userID?: number;\r\n dataDal?: string;\r\n oraDal?: number | null;\r\n dataAl?: string;\r\n oraAl?: number | null;\r\n gruppi?: DisponibilitaGruppo[];\r\n usaPrezziNetti?: boolean;\r\n moltiplicatoreMarkupAdv?: number;\r\n listino?: EListinoPrezzi;\r\n nozze?: boolean;\r\n lingua?: ELingua;\r\n tripID?: number | null;\r\n tripDetailID?: number | null;\r\n}\r\n\r\nexport class CacheDisponibilitaInput extends DisponibilitaInput implements ICacheDisponibilitaInput {\r\n luogoID?: number;\r\n luogoDestinazioneID?: number | null;\r\n bypassCache?: boolean;\r\n servizioID?: number | null;\r\n hasDelta?: boolean;\r\n\r\n constructor(data?: ICacheDisponibilitaInput) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.bypassCache = _data[\"bypassCache\"] !== undefined ? _data[\"bypassCache\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.hasDelta = _data[\"hasDelta\"] !== undefined ? _data[\"hasDelta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CacheDisponibilitaInput {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CacheDisponibilitaInput();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"bypassCache\"] = this.bypassCache !== undefined ? this.bypassCache : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"hasDelta\"] = this.hasDelta !== undefined ? this.hasDelta : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICacheDisponibilitaInput extends IDisponibilitaInput {\r\n luogoID?: number;\r\n luogoDestinazioneID?: number | null;\r\n bypassCache?: boolean;\r\n servizioID?: number | null;\r\n hasDelta?: boolean;\r\n}\r\n\r\nexport class DisponibilitaGruppo implements IDisponibilitaGruppo {\r\n id?: number;\r\n nome?: string | null;\r\n partecipanti?: DisponibilitaPartecipante[];\r\n prezzoBase?: number;\r\n ordine?: number;\r\n adulti?: number;\r\n children?: number;\r\n infants?: number;\r\n\r\n constructor(data?: IDisponibilitaGruppo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (Array.isArray(_data[\"partecipanti\"])) {\r\n this.partecipanti = [] as any;\r\n for (let item of _data[\"partecipanti\"])\r\n this.partecipanti!.push(DisponibilitaPartecipante.fromJS(item));\r\n }\r\n else {\r\n this.partecipanti = null;\r\n }\r\n this.prezzoBase = _data[\"prezzoBase\"] !== undefined ? _data[\"prezzoBase\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.adulti = _data[\"adulti\"] !== undefined ? _data[\"adulti\"] : null;\r\n this.children = _data[\"children\"] !== undefined ? _data[\"children\"] : null;\r\n this.infants = _data[\"infants\"] !== undefined ? _data[\"infants\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaGruppo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaGruppo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (Array.isArray(this.partecipanti)) {\r\n data[\"partecipanti\"] = [];\r\n for (let item of this.partecipanti)\r\n data[\"partecipanti\"].push(item.toJSON());\r\n }\r\n data[\"prezzoBase\"] = this.prezzoBase !== undefined ? this.prezzoBase : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"adulti\"] = this.adulti !== undefined ? this.adulti : null;\r\n data[\"children\"] = this.children !== undefined ? this.children : null;\r\n data[\"infants\"] = this.infants !== undefined ? this.infants : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaGruppo {\r\n id?: number;\r\n nome?: string | null;\r\n partecipanti?: DisponibilitaPartecipante[];\r\n prezzoBase?: number;\r\n ordine?: number;\r\n adulti?: number;\r\n children?: number;\r\n infants?: number;\r\n}\r\n\r\nexport class DisponibilitaPartecipante implements IDisponibilitaPartecipante {\r\n id?: number;\r\n nome?: string | null;\r\n cognome?: string;\r\n dataDiNascita?: string;\r\n titoloPaxID?: number;\r\n\r\n constructor(data?: IDisponibilitaPartecipante) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.dataDiNascita = _data[\"dataDiNascita\"] !== undefined ? _data[\"dataDiNascita\"] : null;\r\n this.titoloPaxID = _data[\"titoloPaxID\"] !== undefined ? _data[\"titoloPaxID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaPartecipante {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaPartecipante();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"dataDiNascita\"] = this.dataDiNascita !== undefined ? this.dataDiNascita : null;\r\n data[\"titoloPaxID\"] = this.titoloPaxID !== undefined ? this.titoloPaxID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaPartecipante {\r\n id?: number;\r\n nome?: string | null;\r\n cognome?: string;\r\n dataDiNascita?: string;\r\n titoloPaxID?: number;\r\n}\r\n\r\nexport enum EListinoPrezzi {\r\n Default = \"Default\",\r\n PrezziNetti = \"PrezziNetti\",\r\n Pacchetto = \"Pacchetto\",\r\n}\r\n\r\nexport enum EContestoRicerca {\r\n Ricerca = \"Ricerca\",\r\n VerificaPrezzi = \"VerificaPrezzi\",\r\n Booking = \"Booking\",\r\n RicercaCache = \"RicercaCache\",\r\n Autofill = \"Autofill\",\r\n CacheFill = \"CacheFill\",\r\n}\r\n\r\nexport enum EH2HClient {\r\n NAAR = \"NAAR\",\r\n NAAR_FRANCE = \"NAAR_FRANCE\",\r\n}\r\n\r\nexport class SupplierCostsPointer implements ISupplierCostsPointer {\r\n supplier?: EFornitore;\r\n key?: string;\r\n searchStatus?: EStatusCostiFornitore;\r\n luoghiFornitoreIDs?: number[];\r\n objectId?: string | null;\r\n resultsCount?: number | null;\r\n searchTimeSeconds?: number | null;\r\n startedAt?: string | null;\r\n resultsDate?: string | null;\r\n expireDate?: string;\r\n timeoutDate?: string;\r\n resultsStatus?: EStatusCostiFornitore;\r\n isFinal?: boolean;\r\n elapsed?: number | null;\r\n\r\n constructor(data?: ISupplierCostsPointer) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.key = _data[\"key\"] !== undefined ? _data[\"key\"] : null;\r\n this.searchStatus = _data[\"searchStatus\"] !== undefined ? _data[\"searchStatus\"] : null;\r\n if (Array.isArray(_data[\"luoghiFornitoreIDs\"])) {\r\n this.luoghiFornitoreIDs = [] as any;\r\n for (let item of _data[\"luoghiFornitoreIDs\"])\r\n this.luoghiFornitoreIDs!.push(item);\r\n }\r\n else {\r\n this.luoghiFornitoreIDs = null;\r\n }\r\n this.objectId = _data[\"objectId\"] !== undefined ? _data[\"objectId\"] : null;\r\n this.resultsCount = _data[\"resultsCount\"] !== undefined ? _data[\"resultsCount\"] : null;\r\n this.searchTimeSeconds = _data[\"searchTimeSeconds\"] !== undefined ? _data[\"searchTimeSeconds\"] : null;\r\n this.startedAt = _data[\"startedAt\"] !== undefined ? _data[\"startedAt\"] : null;\r\n this.resultsDate = _data[\"resultsDate\"] !== undefined ? _data[\"resultsDate\"] : null;\r\n this.expireDate = _data[\"expireDate\"] !== undefined ? _data[\"expireDate\"] : null;\r\n this.timeoutDate = _data[\"timeoutDate\"] !== undefined ? _data[\"timeoutDate\"] : null;\r\n this.resultsStatus = _data[\"resultsStatus\"] !== undefined ? _data[\"resultsStatus\"] : null;\r\n this.isFinal = _data[\"isFinal\"] !== undefined ? _data[\"isFinal\"] : null;\r\n this.elapsed = _data[\"elapsed\"] !== undefined ? _data[\"elapsed\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplierCostsPointer {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplierCostsPointer();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"key\"] = this.key !== undefined ? this.key : null;\r\n data[\"searchStatus\"] = this.searchStatus !== undefined ? this.searchStatus : null;\r\n if (Array.isArray(this.luoghiFornitoreIDs)) {\r\n data[\"luoghiFornitoreIDs\"] = [];\r\n for (let item of this.luoghiFornitoreIDs)\r\n data[\"luoghiFornitoreIDs\"].push(item);\r\n }\r\n data[\"objectId\"] = this.objectId !== undefined ? this.objectId : null;\r\n data[\"resultsCount\"] = this.resultsCount !== undefined ? this.resultsCount : null;\r\n data[\"searchTimeSeconds\"] = this.searchTimeSeconds !== undefined ? this.searchTimeSeconds : null;\r\n data[\"startedAt\"] = this.startedAt !== undefined ? this.startedAt : null;\r\n data[\"resultsDate\"] = this.resultsDate !== undefined ? this.resultsDate : null;\r\n data[\"expireDate\"] = this.expireDate !== undefined ? this.expireDate : null;\r\n data[\"timeoutDate\"] = this.timeoutDate !== undefined ? this.timeoutDate : null;\r\n data[\"resultsStatus\"] = this.resultsStatus !== undefined ? this.resultsStatus : null;\r\n data[\"isFinal\"] = this.isFinal !== undefined ? this.isFinal : null;\r\n data[\"elapsed\"] = this.elapsed !== undefined ? this.elapsed : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplierCostsPointer {\r\n supplier?: EFornitore;\r\n key?: string;\r\n searchStatus?: EStatusCostiFornitore;\r\n luoghiFornitoreIDs?: number[];\r\n objectId?: string | null;\r\n resultsCount?: number | null;\r\n searchTimeSeconds?: number | null;\r\n startedAt?: string | null;\r\n resultsDate?: string | null;\r\n expireDate?: string;\r\n timeoutDate?: string;\r\n resultsStatus?: EStatusCostiFornitore;\r\n isFinal?: boolean;\r\n elapsed?: number | null;\r\n}\r\n\r\nexport enum EStatusCostiFornitore {\r\n Ready = \"Ready\",\r\n Running = \"Running\",\r\n Done = \"Done\",\r\n Error = \"Error\",\r\n Expired = \"Expired\",\r\n Empty = \"Empty\",\r\n}\r\n\r\nexport class GetCacheIndexRequest extends SiteRequest implements IGetCacheIndexRequest {\r\n /** Chiave da cercare */\r\n key?: string;\r\n\r\n constructor(data?: IGetCacheIndexRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.key = _data[\"key\"] !== undefined ? _data[\"key\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCacheIndexRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCacheIndexRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"key\"] = this.key !== undefined ? this.key : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCacheIndexRequest extends ISiteRequest {\r\n /** Chiave da cercare */\r\n key?: string;\r\n}\r\n\r\nexport class ExpireCacheRequest extends GetCacheIndexRequest implements IExpireCacheRequest {\r\n fornitore?: EFornitore | null;\r\n\r\n constructor(data?: IExpireCacheRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ExpireCacheRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ExpireCacheRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IExpireCacheRequest extends IGetCacheIndexRequest {\r\n fornitore?: EFornitore | null;\r\n}\r\n\r\nexport class GetPoliciesResponse extends OkApiResponse implements IGetPoliciesResponse {\r\n notFound?: boolean;\r\n nota?: string | null;\r\n nonRimborsabile?: boolean;\r\n pagamentoImmediato?: boolean;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n supplementi?: Supplemento[] | null;\r\n /** Testi delle penali descrittive. Se c'è un articolo in arrivo dall'H2H usa quello. Altrimenti cerca le penali di riga\r\nnegli articoli */\r\n penaliDescrittive?: TripTextHtml[] | null;\r\n\r\n constructor(data?: IGetPoliciesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.notFound = _data[\"notFound\"] !== undefined ? _data[\"notFound\"] : null;\r\n this.nota = _data[\"nota\"] !== undefined ? _data[\"nota\"] : null;\r\n this.nonRimborsabile = _data[\"nonRimborsabile\"] !== undefined ? _data[\"nonRimborsabile\"] : null;\r\n this.pagamentoImmediato = _data[\"pagamentoImmediato\"] !== undefined ? _data[\"pagamentoImmediato\"] : null;\r\n this.dataPenale = _data[\"dataPenale\"] !== undefined ? _data[\"dataPenale\"] : null;\r\n this.importoPenale = _data[\"importoPenale\"] !== undefined ? _data[\"importoPenale\"] : null;\r\n if (Array.isArray(_data[\"offerte\"])) {\r\n this.offerte = [] as any;\r\n for (let item of _data[\"offerte\"])\r\n this.offerte!.push(DisponibilitaTipologiaOfferta.fromJS(item));\r\n }\r\n else {\r\n this.offerte = null;\r\n }\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(Supplemento.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n if (Array.isArray(_data[\"penaliDescrittive\"])) {\r\n this.penaliDescrittive = [] as any;\r\n for (let item of _data[\"penaliDescrittive\"])\r\n this.penaliDescrittive!.push(TripTextHtml.fromJS(item));\r\n }\r\n else {\r\n this.penaliDescrittive = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPoliciesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPoliciesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"notFound\"] = this.notFound !== undefined ? this.notFound : null;\r\n data[\"nota\"] = this.nota !== undefined ? this.nota : null;\r\n data[\"nonRimborsabile\"] = this.nonRimborsabile !== undefined ? this.nonRimborsabile : null;\r\n data[\"pagamentoImmediato\"] = this.pagamentoImmediato !== undefined ? this.pagamentoImmediato : null;\r\n data[\"dataPenale\"] = this.dataPenale !== undefined ? this.dataPenale : null;\r\n data[\"importoPenale\"] = this.importoPenale !== undefined ? this.importoPenale : null;\r\n if (Array.isArray(this.offerte)) {\r\n data[\"offerte\"] = [];\r\n for (let item of this.offerte)\r\n data[\"offerte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.penaliDescrittive)) {\r\n data[\"penaliDescrittive\"] = [];\r\n for (let item of this.penaliDescrittive)\r\n data[\"penaliDescrittive\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPoliciesResponse extends IOkApiResponse {\r\n notFound?: boolean;\r\n nota?: string | null;\r\n nonRimborsabile?: boolean;\r\n pagamentoImmediato?: boolean;\r\n dataPenale?: string | null;\r\n importoPenale?: number | null;\r\n offerte?: DisponibilitaTipologiaOfferta[] | null;\r\n supplementi?: Supplemento[] | null;\r\n /** Testi delle penali descrittive. Se c'è un articolo in arrivo dall'H2H usa quello. Altrimenti cerca le penali di riga\r\nnegli articoli */\r\n penaliDescrittive?: TripTextHtml[] | null;\r\n}\r\n\r\nexport class GetPoliciesRequest extends SiteRequest implements IGetPoliciesRequest {\r\n jobID!: string;\r\n resultID!: string;\r\n serviceID!: number;\r\n typeID!: number;\r\n departureID?: number | null;\r\n optionID?: number | null;\r\n optionItemID?: number | null;\r\n\r\n constructor(data?: IGetPoliciesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n this.typeID = _data[\"typeID\"] !== undefined ? _data[\"typeID\"] : null;\r\n this.departureID = _data[\"departureID\"] !== undefined ? _data[\"departureID\"] : null;\r\n this.optionID = _data[\"optionID\"] !== undefined ? _data[\"optionID\"] : null;\r\n this.optionItemID = _data[\"optionItemID\"] !== undefined ? _data[\"optionItemID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPoliciesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPoliciesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n data[\"typeID\"] = this.typeID !== undefined ? this.typeID : null;\r\n data[\"departureID\"] = this.departureID !== undefined ? this.departureID : null;\r\n data[\"optionID\"] = this.optionID !== undefined ? this.optionID : null;\r\n data[\"optionItemID\"] = this.optionItemID !== undefined ? this.optionItemID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPoliciesRequest extends ISiteRequest {\r\n jobID: string;\r\n resultID: string;\r\n serviceID: number;\r\n typeID: number;\r\n departureID?: number | null;\r\n optionID?: number | null;\r\n optionItemID?: number | null;\r\n}\r\n\r\nexport class GetQueuesResponse extends OkApiResponse implements IGetQueuesResponse {\r\n cacheSummary?: QueueStats | null;\r\n cacheStats?: CacheHitStat[] | null;\r\n lastSarches?: SearchItem[] | null;\r\n suppliersStatus?: SupplierSearchStats[] | null;\r\n suppliersSearchStatsTotals?: SuppliersSearchStatsTotals | null;\r\n searchesByTime?: QueueChartData[] | null;\r\n\r\n constructor(data?: IGetQueuesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.cacheSummary = _data[\"cacheSummary\"] ? QueueStats.fromJS(_data[\"cacheSummary\"]) : null;\r\n if (Array.isArray(_data[\"cacheStats\"])) {\r\n this.cacheStats = [] as any;\r\n for (let item of _data[\"cacheStats\"])\r\n this.cacheStats!.push(CacheHitStat.fromJS(item));\r\n }\r\n else {\r\n this.cacheStats = null;\r\n }\r\n if (Array.isArray(_data[\"lastSarches\"])) {\r\n this.lastSarches = [] as any;\r\n for (let item of _data[\"lastSarches\"])\r\n this.lastSarches!.push(SearchItem.fromJS(item));\r\n }\r\n else {\r\n this.lastSarches = null;\r\n }\r\n if (Array.isArray(_data[\"suppliersStatus\"])) {\r\n this.suppliersStatus = [] as any;\r\n for (let item of _data[\"suppliersStatus\"])\r\n this.suppliersStatus!.push(SupplierSearchStats.fromJS(item));\r\n }\r\n else {\r\n this.suppliersStatus = null;\r\n }\r\n this.suppliersSearchStatsTotals = _data[\"suppliersSearchStatsTotals\"] ? SuppliersSearchStatsTotals.fromJS(_data[\"suppliersSearchStatsTotals\"]) : null;\r\n if (Array.isArray(_data[\"searchesByTime\"])) {\r\n this.searchesByTime = [] as any;\r\n for (let item of _data[\"searchesByTime\"])\r\n this.searchesByTime!.push(QueueChartData.fromJS(item));\r\n }\r\n else {\r\n this.searchesByTime = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetQueuesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetQueuesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"cacheSummary\"] = this.cacheSummary ? this.cacheSummary.toJSON() : null;\r\n if (Array.isArray(this.cacheStats)) {\r\n data[\"cacheStats\"] = [];\r\n for (let item of this.cacheStats)\r\n data[\"cacheStats\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.lastSarches)) {\r\n data[\"lastSarches\"] = [];\r\n for (let item of this.lastSarches)\r\n data[\"lastSarches\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.suppliersStatus)) {\r\n data[\"suppliersStatus\"] = [];\r\n for (let item of this.suppliersStatus)\r\n data[\"suppliersStatus\"].push(item.toJSON());\r\n }\r\n data[\"suppliersSearchStatsTotals\"] = this.suppliersSearchStatsTotals ? this.suppliersSearchStatsTotals.toJSON() : null;\r\n if (Array.isArray(this.searchesByTime)) {\r\n data[\"searchesByTime\"] = [];\r\n for (let item of this.searchesByTime)\r\n data[\"searchesByTime\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetQueuesResponse extends IOkApiResponse {\r\n cacheSummary?: QueueStats | null;\r\n cacheStats?: CacheHitStat[] | null;\r\n lastSarches?: SearchItem[] | null;\r\n suppliersStatus?: SupplierSearchStats[] | null;\r\n suppliersSearchStatsTotals?: SuppliersSearchStatsTotals | null;\r\n searchesByTime?: QueueChartData[] | null;\r\n}\r\n\r\nexport class QueueStats implements IQueueStats {\r\n items?: number;\r\n size?: number;\r\n avgSize?: number | null;\r\n storageSize?: number;\r\n\r\n constructor(data?: IQueueStats) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.items = _data[\"items\"] !== undefined ? _data[\"items\"] : null;\r\n this.size = _data[\"size\"] !== undefined ? _data[\"size\"] : null;\r\n this.avgSize = _data[\"avgSize\"] !== undefined ? _data[\"avgSize\"] : null;\r\n this.storageSize = _data[\"storageSize\"] !== undefined ? _data[\"storageSize\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): QueueStats {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new QueueStats();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"items\"] = this.items !== undefined ? this.items : null;\r\n data[\"size\"] = this.size !== undefined ? this.size : null;\r\n data[\"avgSize\"] = this.avgSize !== undefined ? this.avgSize : null;\r\n data[\"storageSize\"] = this.storageSize !== undefined ? this.storageSize : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IQueueStats {\r\n items?: number;\r\n size?: number;\r\n avgSize?: number | null;\r\n storageSize?: number;\r\n}\r\n\r\nexport class CacheHitStat implements ICacheHitStat {\r\n hits?: number;\r\n count?: number;\r\n\r\n constructor(data?: ICacheHitStat) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.hits = _data[\"hits\"] !== undefined ? _data[\"hits\"] : null;\r\n this.count = _data[\"count\"] !== undefined ? _data[\"count\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CacheHitStat {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CacheHitStat();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"hits\"] = this.hits !== undefined ? this.hits : null;\r\n data[\"count\"] = this.count !== undefined ? this.count : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICacheHitStat {\r\n hits?: number;\r\n count?: number;\r\n}\r\n\r\nexport class SearchItem implements ISearchItem {\r\n data?: string;\r\n tipo?: ETipoServizioSearch;\r\n luogo?: string | null;\r\n dal?: string;\r\n al?: string;\r\n abbinamenti?: number;\r\n adulti?: number;\r\n bambini?: number;\r\n infant?: number;\r\n stato?: EStatusCostiFornitore;\r\n statoID?: number;\r\n utente?: string | null;\r\n supplierCompleti?: number;\r\n supplierTotali?: number;\r\n\r\n constructor(data?: ISearchItem) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.abbinamenti = _data[\"abbinamenti\"] !== undefined ? _data[\"abbinamenti\"] : null;\r\n this.adulti = _data[\"adulti\"] !== undefined ? _data[\"adulti\"] : null;\r\n this.bambini = _data[\"bambini\"] !== undefined ? _data[\"bambini\"] : null;\r\n this.infant = _data[\"infant\"] !== undefined ? _data[\"infant\"] : null;\r\n this.stato = _data[\"stato\"] !== undefined ? _data[\"stato\"] : null;\r\n this.statoID = _data[\"statoID\"] !== undefined ? _data[\"statoID\"] : null;\r\n this.utente = _data[\"utente\"] !== undefined ? _data[\"utente\"] : null;\r\n this.supplierCompleti = _data[\"supplierCompleti\"] !== undefined ? _data[\"supplierCompleti\"] : null;\r\n this.supplierTotali = _data[\"supplierTotali\"] !== undefined ? _data[\"supplierTotali\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SearchItem {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SearchItem();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"abbinamenti\"] = this.abbinamenti !== undefined ? this.abbinamenti : null;\r\n data[\"adulti\"] = this.adulti !== undefined ? this.adulti : null;\r\n data[\"bambini\"] = this.bambini !== undefined ? this.bambini : null;\r\n data[\"infant\"] = this.infant !== undefined ? this.infant : null;\r\n data[\"stato\"] = this.stato !== undefined ? this.stato : null;\r\n data[\"statoID\"] = this.statoID !== undefined ? this.statoID : null;\r\n data[\"utente\"] = this.utente !== undefined ? this.utente : null;\r\n data[\"supplierCompleti\"] = this.supplierCompleti !== undefined ? this.supplierCompleti : null;\r\n data[\"supplierTotali\"] = this.supplierTotali !== undefined ? this.supplierTotali : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISearchItem {\r\n data?: string;\r\n tipo?: ETipoServizioSearch;\r\n luogo?: string | null;\r\n dal?: string;\r\n al?: string;\r\n abbinamenti?: number;\r\n adulti?: number;\r\n bambini?: number;\r\n infant?: number;\r\n stato?: EStatusCostiFornitore;\r\n statoID?: number;\r\n utente?: string | null;\r\n supplierCompleti?: number;\r\n supplierTotali?: number;\r\n}\r\n\r\nexport class SupplierSearchStats implements ISupplierSearchStats {\r\n supplier?: string | null;\r\n lastRunTime?: string | null;\r\n running?: number;\r\n total?: number;\r\n complete?: number;\r\n minSearchTimeSec?: number | null;\r\n maxSearchTimeSec?: number | null;\r\n avgSearchTimeSec?: number | null;\r\n\r\n constructor(data?: ISupplierSearchStats) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.lastRunTime = _data[\"lastRunTime\"] !== undefined ? _data[\"lastRunTime\"] : null;\r\n this.running = _data[\"running\"] !== undefined ? _data[\"running\"] : null;\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n this.complete = _data[\"complete\"] !== undefined ? _data[\"complete\"] : null;\r\n this.minSearchTimeSec = _data[\"minSearchTimeSec\"] !== undefined ? _data[\"minSearchTimeSec\"] : null;\r\n this.maxSearchTimeSec = _data[\"maxSearchTimeSec\"] !== undefined ? _data[\"maxSearchTimeSec\"] : null;\r\n this.avgSearchTimeSec = _data[\"avgSearchTimeSec\"] !== undefined ? _data[\"avgSearchTimeSec\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplierSearchStats {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplierSearchStats();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"lastRunTime\"] = this.lastRunTime !== undefined ? this.lastRunTime : null;\r\n data[\"running\"] = this.running !== undefined ? this.running : null;\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n data[\"complete\"] = this.complete !== undefined ? this.complete : null;\r\n data[\"minSearchTimeSec\"] = this.minSearchTimeSec !== undefined ? this.minSearchTimeSec : null;\r\n data[\"maxSearchTimeSec\"] = this.maxSearchTimeSec !== undefined ? this.maxSearchTimeSec : null;\r\n data[\"avgSearchTimeSec\"] = this.avgSearchTimeSec !== undefined ? this.avgSearchTimeSec : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplierSearchStats {\r\n supplier?: string | null;\r\n lastRunTime?: string | null;\r\n running?: number;\r\n total?: number;\r\n complete?: number;\r\n minSearchTimeSec?: number | null;\r\n maxSearchTimeSec?: number | null;\r\n avgSearchTimeSec?: number | null;\r\n}\r\n\r\nexport class SuppliersSearchStatsTotals implements ISuppliersSearchStatsTotals {\r\n searches?: number;\r\n searchesNaar?: number;\r\n searchesH2H?: number;\r\n done?: number;\r\n running?: number;\r\n faulted?: number;\r\n\r\n constructor(data?: ISuppliersSearchStatsTotals) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.searches = _data[\"searches\"] !== undefined ? _data[\"searches\"] : null;\r\n this.searchesNaar = _data[\"searchesNaar\"] !== undefined ? _data[\"searchesNaar\"] : null;\r\n this.searchesH2H = _data[\"searchesH2H\"] !== undefined ? _data[\"searchesH2H\"] : null;\r\n this.done = _data[\"done\"] !== undefined ? _data[\"done\"] : null;\r\n this.running = _data[\"running\"] !== undefined ? _data[\"running\"] : null;\r\n this.faulted = _data[\"faulted\"] !== undefined ? _data[\"faulted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SuppliersSearchStatsTotals {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SuppliersSearchStatsTotals();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"searches\"] = this.searches !== undefined ? this.searches : null;\r\n data[\"searchesNaar\"] = this.searchesNaar !== undefined ? this.searchesNaar : null;\r\n data[\"searchesH2H\"] = this.searchesH2H !== undefined ? this.searchesH2H : null;\r\n data[\"done\"] = this.done !== undefined ? this.done : null;\r\n data[\"running\"] = this.running !== undefined ? this.running : null;\r\n data[\"faulted\"] = this.faulted !== undefined ? this.faulted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISuppliersSearchStatsTotals {\r\n searches?: number;\r\n searchesNaar?: number;\r\n searchesH2H?: number;\r\n done?: number;\r\n running?: number;\r\n faulted?: number;\r\n}\r\n\r\nexport class QueueChartData implements IQueueChartData {\r\n label?: string | null;\r\n date?: string;\r\n done?: number;\r\n faulted?: number;\r\n running?: number;\r\n duration?: number | null;\r\n avg?: number | null;\r\n\r\n constructor(data?: IQueueChartData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.done = _data[\"done\"] !== undefined ? _data[\"done\"] : null;\r\n this.faulted = _data[\"faulted\"] !== undefined ? _data[\"faulted\"] : null;\r\n this.running = _data[\"running\"] !== undefined ? _data[\"running\"] : null;\r\n this.duration = _data[\"duration\"] !== undefined ? _data[\"duration\"] : null;\r\n this.avg = _data[\"avg\"] !== undefined ? _data[\"avg\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): QueueChartData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new QueueChartData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"done\"] = this.done !== undefined ? this.done : null;\r\n data[\"faulted\"] = this.faulted !== undefined ? this.faulted : null;\r\n data[\"running\"] = this.running !== undefined ? this.running : null;\r\n data[\"duration\"] = this.duration !== undefined ? this.duration : null;\r\n data[\"avg\"] = this.avg !== undefined ? this.avg : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IQueueChartData {\r\n label?: string | null;\r\n date?: string;\r\n done?: number;\r\n faulted?: number;\r\n running?: number;\r\n duration?: number | null;\r\n avg?: number | null;\r\n}\r\n\r\nexport class GetSupplierPricesResponse extends OkApiResponse implements IGetSupplierPricesResponse {\r\n servizi?: ServicePrice[];\r\n logs?: H2HLog[];\r\n contracts?: ContractCurrency[];\r\n\r\n constructor(data?: IGetSupplierPricesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServicePrice.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n if (Array.isArray(_data[\"logs\"])) {\r\n this.logs = [] as any;\r\n for (let item of _data[\"logs\"])\r\n this.logs!.push(H2HLog.fromJS(item));\r\n }\r\n else {\r\n this.logs = null;\r\n }\r\n if (Array.isArray(_data[\"contracts\"])) {\r\n this.contracts = [] as any;\r\n for (let item of _data[\"contracts\"])\r\n this.contracts!.push(ContractCurrency.fromJS(item));\r\n }\r\n else {\r\n this.contracts = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSupplierPricesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSupplierPricesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.logs)) {\r\n data[\"logs\"] = [];\r\n for (let item of this.logs)\r\n data[\"logs\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.contracts)) {\r\n data[\"contracts\"] = [];\r\n for (let item of this.contracts)\r\n data[\"contracts\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSupplierPricesResponse extends IOkApiResponse {\r\n servizi?: ServicePrice[];\r\n logs?: H2HLog[];\r\n contracts?: ContractCurrency[];\r\n}\r\n\r\nexport class GetRawPricesResponse extends GetSupplierPricesResponse implements IGetRawPricesResponse {\r\n mappedRequest?: GetSupplierPricesRequest;\r\n\r\n constructor(data?: IGetRawPricesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.mappedRequest = _data[\"mappedRequest\"] ? GetSupplierPricesRequest.fromJS(_data[\"mappedRequest\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRawPricesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRawPricesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"mappedRequest\"] = this.mappedRequest ? this.mappedRequest.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetRawPricesResponse extends IGetSupplierPricesResponse {\r\n mappedRequest?: GetSupplierPricesRequest;\r\n}\r\n\r\nexport class GetSupplierPricesRequest extends LocalizedRequest implements IGetSupplierPricesRequest {\r\n fornitore!: EFornitore;\r\n tipoLuogoRicercaPrezzi!: ETipoLuogoRicercaPrezzi;\r\n luogoID?: number;\r\n luogoDestinazioneID?: number | null;\r\n data?: string;\r\n notti?: number;\r\n tipoServizio!: ETipoServizio;\r\n camere!: SupplierPricesRoom[];\r\n listinoPrezzi!: EListinoPrezzi;\r\n utenteRicercaID?: number | null;\r\n oraPickup?: number | null;\r\n oraDropoff?: number | null;\r\n /** ID di servizio singolo */\r\n servizioID?: number | null;\r\n\r\n constructor(data?: IGetSupplierPricesRequest) {\r\n super(data);\r\n if (!data) {\r\n this.camere = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.tipoLuogoRicercaPrezzi = _data[\"tipoLuogoRicercaPrezzi\"] !== undefined ? _data[\"tipoLuogoRicercaPrezzi\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n if (Array.isArray(_data[\"camere\"])) {\r\n this.camere = [] as any;\r\n for (let item of _data[\"camere\"])\r\n this.camere!.push(SupplierPricesRoom.fromJS(item));\r\n }\r\n else {\r\n this.camere = null;\r\n }\r\n this.listinoPrezzi = _data[\"listinoPrezzi\"] !== undefined ? _data[\"listinoPrezzi\"] : null;\r\n this.utenteRicercaID = _data[\"utenteRicercaID\"] !== undefined ? _data[\"utenteRicercaID\"] : null;\r\n this.oraPickup = _data[\"oraPickup\"] !== undefined ? _data[\"oraPickup\"] : null;\r\n this.oraDropoff = _data[\"oraDropoff\"] !== undefined ? _data[\"oraDropoff\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSupplierPricesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSupplierPricesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"tipoLuogoRicercaPrezzi\"] = this.tipoLuogoRicercaPrezzi !== undefined ? this.tipoLuogoRicercaPrezzi : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n if (Array.isArray(this.camere)) {\r\n data[\"camere\"] = [];\r\n for (let item of this.camere)\r\n data[\"camere\"].push(item.toJSON());\r\n }\r\n data[\"listinoPrezzi\"] = this.listinoPrezzi !== undefined ? this.listinoPrezzi : null;\r\n data[\"utenteRicercaID\"] = this.utenteRicercaID !== undefined ? this.utenteRicercaID : null;\r\n data[\"oraPickup\"] = this.oraPickup !== undefined ? this.oraPickup : null;\r\n data[\"oraDropoff\"] = this.oraDropoff !== undefined ? this.oraDropoff : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSupplierPricesRequest extends ILocalizedRequest {\r\n fornitore: EFornitore;\r\n tipoLuogoRicercaPrezzi: ETipoLuogoRicercaPrezzi;\r\n luogoID?: number;\r\n luogoDestinazioneID?: number | null;\r\n data?: string;\r\n notti?: number;\r\n tipoServizio: ETipoServizio;\r\n camere: SupplierPricesRoom[];\r\n listinoPrezzi: EListinoPrezzi;\r\n utenteRicercaID?: number | null;\r\n oraPickup?: number | null;\r\n oraDropoff?: number | null;\r\n /** ID di servizio singolo */\r\n servizioID?: number | null;\r\n}\r\n\r\nexport enum ETipoLuogoRicercaPrezzi {\r\n LuogoNaar = \"LuogoNaar\",\r\n LuogoFornitore = \"LuogoFornitore\",\r\n}\r\n\r\nexport class SupplierPricesRoom implements ISupplierPricesRoom {\r\n adulti?: number;\r\n senior?: number;\r\n bambini?: SupplierPricesChild[] | null;\r\n\r\n constructor(data?: ISupplierPricesRoom) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.adulti = _data[\"adulti\"] !== undefined ? _data[\"adulti\"] : null;\r\n this.senior = _data[\"senior\"] !== undefined ? _data[\"senior\"] : null;\r\n if (Array.isArray(_data[\"bambini\"])) {\r\n this.bambini = [] as any;\r\n for (let item of _data[\"bambini\"])\r\n this.bambini!.push(SupplierPricesChild.fromJS(item));\r\n }\r\n else {\r\n this.bambini = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplierPricesRoom {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplierPricesRoom();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"adulti\"] = this.adulti !== undefined ? this.adulti : null;\r\n data[\"senior\"] = this.senior !== undefined ? this.senior : null;\r\n if (Array.isArray(this.bambini)) {\r\n data[\"bambini\"] = [];\r\n for (let item of this.bambini)\r\n data[\"bambini\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplierPricesRoom {\r\n adulti?: number;\r\n senior?: number;\r\n bambini?: SupplierPricesChild[] | null;\r\n}\r\n\r\nexport class SupplierPricesChild implements ISupplierPricesChild {\r\n eta?: number;\r\n\r\n constructor(data?: ISupplierPricesChild) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.eta = _data[\"eta\"] !== undefined ? _data[\"eta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplierPricesChild {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplierPricesChild();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"eta\"] = this.eta !== undefined ? this.eta : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplierPricesChild {\r\n eta?: number;\r\n}\r\n\r\nexport class ServicePrice implements IServicePrice {\r\n id?: number;\r\n uniqueID?: string;\r\n unmapped?: boolean;\r\n nome?: string;\r\n codice?: string;\r\n details?: boolean;\r\n roomsCount?: number;\r\n minPrice?: number;\r\n results?: DisponibilitaServizio[];\r\n\r\n constructor(data?: IServicePrice) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.uniqueID = _data[\"uniqueID\"] !== undefined ? _data[\"uniqueID\"] : null;\r\n this.unmapped = _data[\"unmapped\"] !== undefined ? _data[\"unmapped\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.details = _data[\"details\"] !== undefined ? _data[\"details\"] : null;\r\n this.roomsCount = _data[\"roomsCount\"] !== undefined ? _data[\"roomsCount\"] : null;\r\n this.minPrice = _data[\"minPrice\"] !== undefined ? _data[\"minPrice\"] : null;\r\n if (Array.isArray(_data[\"results\"])) {\r\n this.results = [] as any;\r\n for (let item of _data[\"results\"])\r\n this.results!.push(DisponibilitaServizio.fromJS(item));\r\n }\r\n else {\r\n this.results = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServicePrice {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServicePrice();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"uniqueID\"] = this.uniqueID !== undefined ? this.uniqueID : null;\r\n data[\"unmapped\"] = this.unmapped !== undefined ? this.unmapped : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"details\"] = this.details !== undefined ? this.details : null;\r\n data[\"roomsCount\"] = this.roomsCount !== undefined ? this.roomsCount : null;\r\n data[\"minPrice\"] = this.minPrice !== undefined ? this.minPrice : null;\r\n if (Array.isArray(this.results)) {\r\n data[\"results\"] = [];\r\n for (let item of this.results)\r\n data[\"results\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServicePrice {\r\n id?: number;\r\n uniqueID?: string;\r\n unmapped?: boolean;\r\n nome?: string;\r\n codice?: string;\r\n details?: boolean;\r\n roomsCount?: number;\r\n minPrice?: number;\r\n results?: DisponibilitaServizio[];\r\n}\r\n\r\nexport class DisponibilitaServizio implements IDisponibilitaServizio {\r\n servizioID?: number;\r\n codServizio?: string | null;\r\n tipologie?: DisponibilitaTipologia[] | null;\r\n providerCustomData?: string | null;\r\n nonMappato?: boolean;\r\n resultID?: number;\r\n datiCosto?: DisponibilitaDatiCosto | null;\r\n servizioH2HID?: number | null;\r\n tipologieByID?: { [key: string]: DisponibilitaTipologia; } | null;\r\n\r\n constructor(data?: IDisponibilitaServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.codServizio = _data[\"codServizio\"] !== undefined ? _data[\"codServizio\"] : null;\r\n if (Array.isArray(_data[\"tipologie\"])) {\r\n this.tipologie = [] as any;\r\n for (let item of _data[\"tipologie\"])\r\n this.tipologie!.push(DisponibilitaTipologia.fromJS(item));\r\n }\r\n else {\r\n this.tipologie = null;\r\n }\r\n this.providerCustomData = _data[\"providerCustomData\"] !== undefined ? _data[\"providerCustomData\"] : null;\r\n this.nonMappato = _data[\"nonMappato\"] !== undefined ? _data[\"nonMappato\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n this.datiCosto = _data[\"datiCosto\"] ? DisponibilitaDatiCosto.fromJS(_data[\"datiCosto\"]) : null;\r\n this.servizioH2HID = _data[\"servizioH2HID\"] !== undefined ? _data[\"servizioH2HID\"] : null;\r\n if (_data[\"tipologieByID\"]) {\r\n this.tipologieByID = {} as any;\r\n for (let key in _data[\"tipologieByID\"]) {\r\n if (_data[\"tipologieByID\"].hasOwnProperty(key))\r\n (this.tipologieByID)![key] = _data[\"tipologieByID\"][key] ? DisponibilitaTipologia.fromJS(_data[\"tipologieByID\"][key]) : new DisponibilitaTipologia();\r\n }\r\n }\r\n else {\r\n this.tipologieByID = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"codServizio\"] = this.codServizio !== undefined ? this.codServizio : null;\r\n if (Array.isArray(this.tipologie)) {\r\n data[\"tipologie\"] = [];\r\n for (let item of this.tipologie)\r\n data[\"tipologie\"].push(item.toJSON());\r\n }\r\n data[\"providerCustomData\"] = this.providerCustomData !== undefined ? this.providerCustomData : null;\r\n data[\"nonMappato\"] = this.nonMappato !== undefined ? this.nonMappato : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n data[\"datiCosto\"] = this.datiCosto ? this.datiCosto.toJSON() : null;\r\n data[\"servizioH2HID\"] = this.servizioH2HID !== undefined ? this.servizioH2HID : null;\r\n if (this.tipologieByID) {\r\n data[\"tipologieByID\"] = {};\r\n for (let key in this.tipologieByID) {\r\n if (this.tipologieByID.hasOwnProperty(key))\r\n (data[\"tipologieByID\"])[key] = this.tipologieByID[key] ? this.tipologieByID[key].toJSON() : null;\r\n }\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaServizio {\r\n servizioID?: number;\r\n codServizio?: string | null;\r\n tipologie?: DisponibilitaTipologia[] | null;\r\n providerCustomData?: string | null;\r\n nonMappato?: boolean;\r\n resultID?: number;\r\n datiCosto?: DisponibilitaDatiCosto | null;\r\n servizioH2HID?: number | null;\r\n tipologieByID?: { [key: string]: DisponibilitaTipologia; } | null;\r\n}\r\n\r\nexport class DisponibilitaDatiCosto implements IDisponibilitaDatiCosto {\r\n costiConPrezzoIndicativoIDs?: number[];\r\n costiConMarkupPersonalizzato?: { [key: string]: number; };\r\n\r\n constructor(data?: IDisponibilitaDatiCosto) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n if (Array.isArray(_data[\"costiConPrezzoIndicativoIDs\"])) {\r\n this.costiConPrezzoIndicativoIDs = [] as any;\r\n for (let item of _data[\"costiConPrezzoIndicativoIDs\"])\r\n this.costiConPrezzoIndicativoIDs!.push(item);\r\n }\r\n else {\r\n this.costiConPrezzoIndicativoIDs = null;\r\n }\r\n if (_data[\"costiConMarkupPersonalizzato\"]) {\r\n this.costiConMarkupPersonalizzato = {} as any;\r\n for (let key in _data[\"costiConMarkupPersonalizzato\"]) {\r\n if (_data[\"costiConMarkupPersonalizzato\"].hasOwnProperty(key))\r\n (this.costiConMarkupPersonalizzato)![key] = _data[\"costiConMarkupPersonalizzato\"][key] !== undefined ? _data[\"costiConMarkupPersonalizzato\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.costiConMarkupPersonalizzato = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisponibilitaDatiCosto {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisponibilitaDatiCosto();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.costiConPrezzoIndicativoIDs)) {\r\n data[\"costiConPrezzoIndicativoIDs\"] = [];\r\n for (let item of this.costiConPrezzoIndicativoIDs)\r\n data[\"costiConPrezzoIndicativoIDs\"].push(item);\r\n }\r\n if (this.costiConMarkupPersonalizzato) {\r\n data[\"costiConMarkupPersonalizzato\"] = {};\r\n for (let key in this.costiConMarkupPersonalizzato) {\r\n if (this.costiConMarkupPersonalizzato.hasOwnProperty(key))\r\n (data[\"costiConMarkupPersonalizzato\"])[key] = this.costiConMarkupPersonalizzato[key] !== undefined ? this.costiConMarkupPersonalizzato[key] : null;\r\n }\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisponibilitaDatiCosto {\r\n costiConPrezzoIndicativoIDs?: number[];\r\n costiConMarkupPersonalizzato?: { [key: string]: number; };\r\n}\r\n\r\nexport class H2HLog implements IH2HLog {\r\n id?: string;\r\n supplier?: EFornitore;\r\n jobID?: string;\r\n itemNr?: number;\r\n requestData?: string;\r\n requestSize?: number;\r\n requestDataType?: ELogDataType;\r\n responseData?: string;\r\n responseSize?: number;\r\n responseDataType?: ELogDataType;\r\n date?: string;\r\n\r\n constructor(data?: IH2HLog) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.itemNr = _data[\"itemNr\"] !== undefined ? _data[\"itemNr\"] : null;\r\n this.requestData = _data[\"requestData\"] !== undefined ? _data[\"requestData\"] : null;\r\n this.requestSize = _data[\"requestSize\"] !== undefined ? _data[\"requestSize\"] : null;\r\n this.requestDataType = _data[\"requestDataType\"] !== undefined ? _data[\"requestDataType\"] : null;\r\n this.responseData = _data[\"responseData\"] !== undefined ? _data[\"responseData\"] : null;\r\n this.responseSize = _data[\"responseSize\"] !== undefined ? _data[\"responseSize\"] : null;\r\n this.responseDataType = _data[\"responseDataType\"] !== undefined ? _data[\"responseDataType\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): H2HLog {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new H2HLog();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"itemNr\"] = this.itemNr !== undefined ? this.itemNr : null;\r\n data[\"requestData\"] = this.requestData !== undefined ? this.requestData : null;\r\n data[\"requestSize\"] = this.requestSize !== undefined ? this.requestSize : null;\r\n data[\"requestDataType\"] = this.requestDataType !== undefined ? this.requestDataType : null;\r\n data[\"responseData\"] = this.responseData !== undefined ? this.responseData : null;\r\n data[\"responseSize\"] = this.responseSize !== undefined ? this.responseSize : null;\r\n data[\"responseDataType\"] = this.responseDataType !== undefined ? this.responseDataType : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IH2HLog {\r\n id?: string;\r\n supplier?: EFornitore;\r\n jobID?: string;\r\n itemNr?: number;\r\n requestData?: string;\r\n requestSize?: number;\r\n requestDataType?: ELogDataType;\r\n responseData?: string;\r\n responseSize?: number;\r\n responseDataType?: ELogDataType;\r\n date?: string;\r\n}\r\n\r\nexport enum ELogDataType {\r\n Text = \"Text\",\r\n Xml = \"Xml\",\r\n Json = \"Json\",\r\n}\r\n\r\nexport class ContractCurrency implements IContractCurrency {\r\n accordoID?: number;\r\n codiceValuta?: string;\r\n\r\n constructor(data?: IContractCurrency) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContractCurrency {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContractCurrency();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContractCurrency {\r\n accordoID?: number;\r\n codiceValuta?: string;\r\n}\r\n\r\nexport class GetRawPricesRequest extends LocalizedRequest implements IGetRawPricesRequest {\r\n jobID!: string;\r\n resultID!: string;\r\n\r\n constructor(data?: IGetRawPricesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRawPricesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRawPricesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetRawPricesRequest extends ILocalizedRequest {\r\n jobID: string;\r\n resultID: string;\r\n}\r\n\r\nexport class GetResultsResponse extends OkApiResponse implements IGetResultsResponse {\r\n dati?: RicercaDati;\r\n idsByPrice?: string[];\r\n\r\n constructor(data?: IGetResultsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.dati = _data[\"dati\"] ? RicercaDati.fromJS(_data[\"dati\"]) : null;\r\n if (Array.isArray(_data[\"idsByPrice\"])) {\r\n this.idsByPrice = [] as any;\r\n for (let item of _data[\"idsByPrice\"])\r\n this.idsByPrice!.push(item);\r\n }\r\n else {\r\n this.idsByPrice = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetResultsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetResultsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dati\"] = this.dati ? this.dati.toJSON() : null;\r\n if (Array.isArray(this.idsByPrice)) {\r\n data[\"idsByPrice\"] = [];\r\n for (let item of this.idsByPrice)\r\n data[\"idsByPrice\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetResultsResponse extends IOkApiResponse {\r\n dati?: RicercaDati;\r\n idsByPrice?: string[];\r\n}\r\n\r\nexport class RicercaDati implements IRicercaDati {\r\n jobID?: string;\r\n generationID?: number;\r\n servizi?: ServizioSearch[];\r\n minPrice?: number | null;\r\n maxPrice?: number | null;\r\n cacheResult?: boolean;\r\n descriptions?: string[] | null;\r\n sourceResults?: SourceResultPointer[];\r\n hasExpiredCosts?: boolean;\r\n\r\n constructor(data?: IRicercaDati) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.generationID = _data[\"generationID\"] !== undefined ? _data[\"generationID\"] : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServizioSearch.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n this.minPrice = _data[\"minPrice\"] !== undefined ? _data[\"minPrice\"] : null;\r\n this.maxPrice = _data[\"maxPrice\"] !== undefined ? _data[\"maxPrice\"] : null;\r\n this.cacheResult = _data[\"cacheResult\"] !== undefined ? _data[\"cacheResult\"] : null;\r\n if (Array.isArray(_data[\"descriptions\"])) {\r\n this.descriptions = [] as any;\r\n for (let item of _data[\"descriptions\"])\r\n this.descriptions!.push(item);\r\n }\r\n else {\r\n this.descriptions = null;\r\n }\r\n if (Array.isArray(_data[\"sourceResults\"])) {\r\n this.sourceResults = [] as any;\r\n for (let item of _data[\"sourceResults\"])\r\n this.sourceResults!.push(SourceResultPointer.fromJS(item));\r\n }\r\n else {\r\n this.sourceResults = null;\r\n }\r\n this.hasExpiredCosts = _data[\"hasExpiredCosts\"] !== undefined ? _data[\"hasExpiredCosts\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RicercaDati {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RicercaDati();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"generationID\"] = this.generationID !== undefined ? this.generationID : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n data[\"minPrice\"] = this.minPrice !== undefined ? this.minPrice : null;\r\n data[\"maxPrice\"] = this.maxPrice !== undefined ? this.maxPrice : null;\r\n data[\"cacheResult\"] = this.cacheResult !== undefined ? this.cacheResult : null;\r\n if (Array.isArray(this.descriptions)) {\r\n data[\"descriptions\"] = [];\r\n for (let item of this.descriptions)\r\n data[\"descriptions\"].push(item);\r\n }\r\n if (Array.isArray(this.sourceResults)) {\r\n data[\"sourceResults\"] = [];\r\n for (let item of this.sourceResults)\r\n data[\"sourceResults\"].push(item.toJSON());\r\n }\r\n data[\"hasExpiredCosts\"] = this.hasExpiredCosts !== undefined ? this.hasExpiredCosts : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRicercaDati {\r\n jobID?: string;\r\n generationID?: number;\r\n servizi?: ServizioSearch[];\r\n minPrice?: number | null;\r\n maxPrice?: number | null;\r\n cacheResult?: boolean;\r\n descriptions?: string[] | null;\r\n sourceResults?: SourceResultPointer[];\r\n hasExpiredCosts?: boolean;\r\n}\r\n\r\nexport class ServizioSearch implements IServizioSearch {\r\n id?: string | null;\r\n codice?: string | null;\r\n nonMappato?: boolean;\r\n servizioID?: number;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n disponibilitaPrezzoMinimo?: EStatoDisponibilita;\r\n abbinamentiTipologie?: AbbinamentoTipologie[] | null;\r\n hasAvailable?: boolean;\r\n isOpen?: boolean;\r\n drilledDown?: boolean;\r\n bests?: Best[] | null;\r\n hasExpired?: boolean;\r\n\r\n constructor(data?: IServizioSearch) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nonMappato = _data[\"nonMappato\"] !== undefined ? _data[\"nonMappato\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.prezzoPieno = _data[\"prezzoPieno\"] !== undefined ? _data[\"prezzoPieno\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.disponibilitaPrezzoMinimo = _data[\"disponibilitaPrezzoMinimo\"] !== undefined ? _data[\"disponibilitaPrezzoMinimo\"] : null;\r\n if (Array.isArray(_data[\"abbinamentiTipologie\"])) {\r\n this.abbinamentiTipologie = [] as any;\r\n for (let item of _data[\"abbinamentiTipologie\"])\r\n this.abbinamentiTipologie!.push(AbbinamentoTipologie.fromJS(item));\r\n }\r\n else {\r\n this.abbinamentiTipologie = null;\r\n }\r\n this.hasAvailable = _data[\"hasAvailable\"] !== undefined ? _data[\"hasAvailable\"] : null;\r\n this.isOpen = _data[\"isOpen\"] !== undefined ? _data[\"isOpen\"] : null;\r\n this.drilledDown = _data[\"drilledDown\"] !== undefined ? _data[\"drilledDown\"] : null;\r\n if (Array.isArray(_data[\"bests\"])) {\r\n this.bests = [] as any;\r\n for (let item of _data[\"bests\"])\r\n this.bests!.push(Best.fromJS(item));\r\n }\r\n else {\r\n this.bests = null;\r\n }\r\n this.hasExpired = _data[\"hasExpired\"] !== undefined ? _data[\"hasExpired\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioSearch {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioSearch();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nonMappato\"] = this.nonMappato !== undefined ? this.nonMappato : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"prezzoPieno\"] = this.prezzoPieno !== undefined ? this.prezzoPieno : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"disponibilitaPrezzoMinimo\"] = this.disponibilitaPrezzoMinimo !== undefined ? this.disponibilitaPrezzoMinimo : null;\r\n if (Array.isArray(this.abbinamentiTipologie)) {\r\n data[\"abbinamentiTipologie\"] = [];\r\n for (let item of this.abbinamentiTipologie)\r\n data[\"abbinamentiTipologie\"].push(item.toJSON());\r\n }\r\n data[\"hasAvailable\"] = this.hasAvailable !== undefined ? this.hasAvailable : null;\r\n data[\"isOpen\"] = this.isOpen !== undefined ? this.isOpen : null;\r\n data[\"drilledDown\"] = this.drilledDown !== undefined ? this.drilledDown : null;\r\n if (Array.isArray(this.bests)) {\r\n data[\"bests\"] = [];\r\n for (let item of this.bests)\r\n data[\"bests\"].push(item.toJSON());\r\n }\r\n data[\"hasExpired\"] = this.hasExpired !== undefined ? this.hasExpired : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioSearch {\r\n id?: string | null;\r\n codice?: string | null;\r\n nonMappato?: boolean;\r\n servizioID?: number;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n disponibilitaPrezzoMinimo?: EStatoDisponibilita;\r\n abbinamentiTipologie?: AbbinamentoTipologie[] | null;\r\n hasAvailable?: boolean;\r\n isOpen?: boolean;\r\n drilledDown?: boolean;\r\n bests?: Best[] | null;\r\n hasExpired?: boolean;\r\n}\r\n\r\nexport class AbbinamentoTipologie implements IAbbinamentoTipologie {\r\n gruppoID?: number;\r\n nomeGruppo?: string;\r\n nomiPax?: string;\r\n macroTipologie?: GruppoMacroTipologie[];\r\n\r\n constructor(data?: IAbbinamentoTipologie) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.gruppoID = _data[\"gruppoID\"] !== undefined ? _data[\"gruppoID\"] : null;\r\n this.nomeGruppo = _data[\"nomeGruppo\"] !== undefined ? _data[\"nomeGruppo\"] : null;\r\n this.nomiPax = _data[\"nomiPax\"] !== undefined ? _data[\"nomiPax\"] : null;\r\n if (Array.isArray(_data[\"macroTipologie\"])) {\r\n this.macroTipologie = [] as any;\r\n for (let item of _data[\"macroTipologie\"])\r\n this.macroTipologie!.push(GruppoMacroTipologie.fromJS(item));\r\n }\r\n else {\r\n this.macroTipologie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AbbinamentoTipologie {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AbbinamentoTipologie();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"gruppoID\"] = this.gruppoID !== undefined ? this.gruppoID : null;\r\n data[\"nomeGruppo\"] = this.nomeGruppo !== undefined ? this.nomeGruppo : null;\r\n data[\"nomiPax\"] = this.nomiPax !== undefined ? this.nomiPax : null;\r\n if (Array.isArray(this.macroTipologie)) {\r\n data[\"macroTipologie\"] = [];\r\n for (let item of this.macroTipologie)\r\n data[\"macroTipologie\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamentoTipologie {\r\n gruppoID?: number;\r\n nomeGruppo?: string;\r\n nomiPax?: string;\r\n macroTipologie?: GruppoMacroTipologie[];\r\n}\r\n\r\nexport class GruppoMacroTipologie implements IGruppoMacroTipologie {\r\n nome?: string | null;\r\n tipologie?: TipologiaSearch[];\r\n\r\n constructor(data?: IGruppoMacroTipologie) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (Array.isArray(_data[\"tipologie\"])) {\r\n this.tipologie = [] as any;\r\n for (let item of _data[\"tipologie\"])\r\n this.tipologie!.push(TipologiaSearch.fromJS(item));\r\n }\r\n else {\r\n this.tipologie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GruppoMacroTipologie {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GruppoMacroTipologie();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (Array.isArray(this.tipologie)) {\r\n data[\"tipologie\"] = [];\r\n for (let item of this.tipologie)\r\n data[\"tipologie\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGruppoMacroTipologie {\r\n nome?: string | null;\r\n tipologie?: TipologiaSearch[];\r\n}\r\n\r\nexport class TipologiaSearch implements ITipologiaSearch {\r\n id?: string | null;\r\n sourceMainCacheID?: string | null;\r\n sourceResultItemID?: number;\r\n sourceResultID?: number;\r\n supplierID?: number;\r\n fornitore?: string | null;\r\n gruppoID?: number;\r\n nome?: string | null;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n prezzoIndicativo?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n nonRimborsabile?: boolean;\r\n instantPurchase?: boolean;\r\n supplementi?: Supplemento[] | null;\r\n partenze?: PartenzaSearch[] | null;\r\n hashcode?: string | null;\r\n hashMacro?: string | null;\r\n score?: number;\r\n\r\n constructor(data?: ITipologiaSearch) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.sourceMainCacheID = _data[\"sourceMainCacheID\"] !== undefined ? _data[\"sourceMainCacheID\"] : null;\r\n this.sourceResultItemID = _data[\"sourceResultItemID\"] !== undefined ? _data[\"sourceResultItemID\"] : null;\r\n this.sourceResultID = _data[\"sourceResultID\"] !== undefined ? _data[\"sourceResultID\"] : null;\r\n this.supplierID = _data[\"supplierID\"] !== undefined ? _data[\"supplierID\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.gruppoID = _data[\"gruppoID\"] !== undefined ? _data[\"gruppoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.prezzoPieno = _data[\"prezzoPieno\"] !== undefined ? _data[\"prezzoPieno\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.prezzoIndicativo = _data[\"prezzoIndicativo\"] !== undefined ? _data[\"prezzoIndicativo\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.nonRimborsabile = _data[\"nonRimborsabile\"] !== undefined ? _data[\"nonRimborsabile\"] : null;\r\n this.instantPurchase = _data[\"instantPurchase\"] !== undefined ? _data[\"instantPurchase\"] : null;\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(Supplemento.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n if (Array.isArray(_data[\"partenze\"])) {\r\n this.partenze = [] as any;\r\n for (let item of _data[\"partenze\"])\r\n this.partenze!.push(PartenzaSearch.fromJS(item));\r\n }\r\n else {\r\n this.partenze = null;\r\n }\r\n this.hashcode = _data[\"hashcode\"] !== undefined ? _data[\"hashcode\"] : null;\r\n this.hashMacro = _data[\"hashMacro\"] !== undefined ? _data[\"hashMacro\"] : null;\r\n this.score = _data[\"score\"] !== undefined ? _data[\"score\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TipologiaSearch {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TipologiaSearch();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"sourceMainCacheID\"] = this.sourceMainCacheID !== undefined ? this.sourceMainCacheID : null;\r\n data[\"sourceResultItemID\"] = this.sourceResultItemID !== undefined ? this.sourceResultItemID : null;\r\n data[\"sourceResultID\"] = this.sourceResultID !== undefined ? this.sourceResultID : null;\r\n data[\"supplierID\"] = this.supplierID !== undefined ? this.supplierID : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"gruppoID\"] = this.gruppoID !== undefined ? this.gruppoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"prezzoPieno\"] = this.prezzoPieno !== undefined ? this.prezzoPieno : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"prezzoIndicativo\"] = this.prezzoIndicativo !== undefined ? this.prezzoIndicativo : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"nonRimborsabile\"] = this.nonRimborsabile !== undefined ? this.nonRimborsabile : null;\r\n data[\"instantPurchase\"] = this.instantPurchase !== undefined ? this.instantPurchase : null;\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.partenze)) {\r\n data[\"partenze\"] = [];\r\n for (let item of this.partenze)\r\n data[\"partenze\"].push(item.toJSON());\r\n }\r\n data[\"hashcode\"] = this.hashcode !== undefined ? this.hashcode : null;\r\n data[\"hashMacro\"] = this.hashMacro !== undefined ? this.hashMacro : null;\r\n data[\"score\"] = this.score !== undefined ? this.score : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITipologiaSearch {\r\n id?: string | null;\r\n sourceMainCacheID?: string | null;\r\n sourceResultItemID?: number;\r\n sourceResultID?: number;\r\n supplierID?: number;\r\n fornitore?: string | null;\r\n gruppoID?: number;\r\n nome?: string | null;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n prezzoIndicativo?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n nonRimborsabile?: boolean;\r\n instantPurchase?: boolean;\r\n supplementi?: Supplemento[] | null;\r\n partenze?: PartenzaSearch[] | null;\r\n hashcode?: string | null;\r\n hashMacro?: string | null;\r\n score?: number;\r\n}\r\n\r\nexport class PartenzaSearch implements IPartenzaSearch {\r\n sourceReferenceID?: number;\r\n data?: string;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n prezzoIndicativo?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n supplementi?: Supplemento[] | null;\r\n garantita?: boolean;\r\n italiano?: boolean;\r\n inglese?: boolean;\r\n francese?: boolean;\r\n tedesco?: boolean;\r\n spagnolo?: boolean;\r\n\r\n constructor(data?: IPartenzaSearch) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sourceReferenceID = _data[\"sourceReferenceID\"] !== undefined ? _data[\"sourceReferenceID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.prezzoPieno = _data[\"prezzoPieno\"] !== undefined ? _data[\"prezzoPieno\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.prezzoIndicativo = _data[\"prezzoIndicativo\"] !== undefined ? _data[\"prezzoIndicativo\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(Supplemento.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n this.garantita = _data[\"garantita\"] !== undefined ? _data[\"garantita\"] : null;\r\n this.italiano = _data[\"italiano\"] !== undefined ? _data[\"italiano\"] : null;\r\n this.inglese = _data[\"inglese\"] !== undefined ? _data[\"inglese\"] : null;\r\n this.francese = _data[\"francese\"] !== undefined ? _data[\"francese\"] : null;\r\n this.tedesco = _data[\"tedesco\"] !== undefined ? _data[\"tedesco\"] : null;\r\n this.spagnolo = _data[\"spagnolo\"] !== undefined ? _data[\"spagnolo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PartenzaSearch {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PartenzaSearch();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sourceReferenceID\"] = this.sourceReferenceID !== undefined ? this.sourceReferenceID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"prezzoPieno\"] = this.prezzoPieno !== undefined ? this.prezzoPieno : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"prezzoIndicativo\"] = this.prezzoIndicativo !== undefined ? this.prezzoIndicativo : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n data[\"garantita\"] = this.garantita !== undefined ? this.garantita : null;\r\n data[\"italiano\"] = this.italiano !== undefined ? this.italiano : null;\r\n data[\"inglese\"] = this.inglese !== undefined ? this.inglese : null;\r\n data[\"francese\"] = this.francese !== undefined ? this.francese : null;\r\n data[\"tedesco\"] = this.tedesco !== undefined ? this.tedesco : null;\r\n data[\"spagnolo\"] = this.spagnolo !== undefined ? this.spagnolo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPartenzaSearch {\r\n sourceReferenceID?: number;\r\n data?: string;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n prezzoIndicativo?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n supplementi?: Supplemento[] | null;\r\n garantita?: boolean;\r\n italiano?: boolean;\r\n inglese?: boolean;\r\n francese?: boolean;\r\n tedesco?: boolean;\r\n spagnolo?: boolean;\r\n}\r\n\r\nexport class Best implements IBest {\r\n attributoID?: number | null;\r\n nomeMacro?: string | null;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n nonRimborsabile?: boolean;\r\n instantPurchase?: boolean;\r\n haPartenze?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n gruppo?: string | null;\r\n chiave?: string;\r\n acquistabile?: boolean;\r\n serviceSearchDataBuffer?: string | null;\r\n nomeMacroDescID?: number | null;\r\n gruppoDescID?: number | null;\r\n\r\n constructor(data?: IBest) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.attributoID = _data[\"attributoID\"] !== undefined ? _data[\"attributoID\"] : null;\r\n this.nomeMacro = _data[\"nomeMacro\"] !== undefined ? _data[\"nomeMacro\"] : null;\r\n this.prezzoPieno = _data[\"prezzoPieno\"] !== undefined ? _data[\"prezzoPieno\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.nonRimborsabile = _data[\"nonRimborsabile\"] !== undefined ? _data[\"nonRimborsabile\"] : null;\r\n this.instantPurchase = _data[\"instantPurchase\"] !== undefined ? _data[\"instantPurchase\"] : null;\r\n this.haPartenze = _data[\"haPartenze\"] !== undefined ? _data[\"haPartenze\"] : null;\r\n this.disponibilita = _data[\"disponibilita\"] !== undefined ? _data[\"disponibilita\"] : null;\r\n this.gruppo = _data[\"gruppo\"] !== undefined ? _data[\"gruppo\"] : null;\r\n this.chiave = _data[\"chiave\"] !== undefined ? _data[\"chiave\"] : null;\r\n this.acquistabile = _data[\"acquistabile\"] !== undefined ? _data[\"acquistabile\"] : null;\r\n this.serviceSearchDataBuffer = _data[\"serviceSearchDataBuffer\"] !== undefined ? _data[\"serviceSearchDataBuffer\"] : null;\r\n this.nomeMacroDescID = _data[\"nomeMacroDescID\"] !== undefined ? _data[\"nomeMacroDescID\"] : null;\r\n this.gruppoDescID = _data[\"gruppoDescID\"] !== undefined ? _data[\"gruppoDescID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Best {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Best();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"attributoID\"] = this.attributoID !== undefined ? this.attributoID : null;\r\n data[\"nomeMacro\"] = this.nomeMacro !== undefined ? this.nomeMacro : null;\r\n data[\"prezzoPieno\"] = this.prezzoPieno !== undefined ? this.prezzoPieno : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"nonRimborsabile\"] = this.nonRimborsabile !== undefined ? this.nonRimborsabile : null;\r\n data[\"instantPurchase\"] = this.instantPurchase !== undefined ? this.instantPurchase : null;\r\n data[\"haPartenze\"] = this.haPartenze !== undefined ? this.haPartenze : null;\r\n data[\"disponibilita\"] = this.disponibilita !== undefined ? this.disponibilita : null;\r\n data[\"gruppo\"] = this.gruppo !== undefined ? this.gruppo : null;\r\n data[\"chiave\"] = this.chiave !== undefined ? this.chiave : null;\r\n data[\"acquistabile\"] = this.acquistabile !== undefined ? this.acquistabile : null;\r\n data[\"serviceSearchDataBuffer\"] = this.serviceSearchDataBuffer !== undefined ? this.serviceSearchDataBuffer : null;\r\n data[\"nomeMacroDescID\"] = this.nomeMacroDescID !== undefined ? this.nomeMacroDescID : null;\r\n data[\"gruppoDescID\"] = this.gruppoDescID !== undefined ? this.gruppoDescID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IBest {\r\n attributoID?: number | null;\r\n nomeMacro?: string | null;\r\n prezzoPieno?: number | null;\r\n prezzo?: number;\r\n nonRimborsabile?: boolean;\r\n instantPurchase?: boolean;\r\n haPartenze?: boolean;\r\n disponibilita?: EStatoDisponibilita;\r\n gruppo?: string | null;\r\n chiave?: string;\r\n acquistabile?: boolean;\r\n serviceSearchDataBuffer?: string | null;\r\n nomeMacroDescID?: number | null;\r\n gruppoDescID?: number | null;\r\n}\r\n\r\nexport class SourceResultPointer implements ISourceResultPointer {\r\n fornitore?: EFornitore;\r\n resultID?: string;\r\n resultIDStr?: string;\r\n pricedObjectID?: string | null;\r\n pricedResultIDStr?: string | null;\r\n expired?: boolean;\r\n offersApplied?: boolean;\r\n\r\n constructor(data?: ISourceResultPointer) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n this.resultIDStr = _data[\"resultIDStr\"] !== undefined ? _data[\"resultIDStr\"] : null;\r\n this.pricedObjectID = _data[\"pricedObjectID\"] !== undefined ? _data[\"pricedObjectID\"] : null;\r\n this.pricedResultIDStr = _data[\"pricedResultIDStr\"] !== undefined ? _data[\"pricedResultIDStr\"] : null;\r\n this.expired = _data[\"expired\"] !== undefined ? _data[\"expired\"] : null;\r\n this.offersApplied = _data[\"offersApplied\"] !== undefined ? _data[\"offersApplied\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SourceResultPointer {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SourceResultPointer();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n data[\"resultIDStr\"] = this.resultIDStr !== undefined ? this.resultIDStr : null;\r\n data[\"pricedObjectID\"] = this.pricedObjectID !== undefined ? this.pricedObjectID : null;\r\n data[\"pricedResultIDStr\"] = this.pricedResultIDStr !== undefined ? this.pricedResultIDStr : null;\r\n data[\"expired\"] = this.expired !== undefined ? this.expired : null;\r\n data[\"offersApplied\"] = this.offersApplied !== undefined ? this.offersApplied : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISourceResultPointer {\r\n fornitore?: EFornitore;\r\n resultID?: string;\r\n resultIDStr?: string;\r\n pricedObjectID?: string | null;\r\n pricedResultIDStr?: string | null;\r\n expired?: boolean;\r\n offersApplied?: boolean;\r\n}\r\n\r\nexport class GetResultsRequest extends SiteRequest implements IGetResultsRequest {\r\n jobID!: string;\r\n\r\n constructor(data?: IGetResultsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetResultsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetResultsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetResultsRequest extends ISiteRequest {\r\n jobID: string;\r\n}\r\n\r\nexport class GetSearchLogFileResponse extends OkApiResponse implements IGetSearchLogFileResponse {\r\n logContent?: string | null;\r\n dataType?: ELogDataType;\r\n\r\n constructor(data?: IGetSearchLogFileResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.logContent = _data[\"logContent\"] !== undefined ? _data[\"logContent\"] : null;\r\n this.dataType = _data[\"dataType\"] !== undefined ? _data[\"dataType\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSearchLogFileResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSearchLogFileResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"logContent\"] = this.logContent !== undefined ? this.logContent : null;\r\n data[\"dataType\"] = this.dataType !== undefined ? this.dataType : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSearchLogFileResponse extends IOkApiResponse {\r\n logContent?: string | null;\r\n dataType?: ELogDataType;\r\n}\r\n\r\nexport class GetSearchLogFileRequest extends ApiRequest implements IGetSearchLogFileRequest {\r\n logID!: string;\r\n getRequest?: boolean;\r\n\r\n constructor(data?: IGetSearchLogFileRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.logID = _data[\"logID\"] !== undefined ? _data[\"logID\"] : null;\r\n this.getRequest = _data[\"getRequest\"] !== undefined ? _data[\"getRequest\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSearchLogFileRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSearchLogFileRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"logID\"] = this.logID !== undefined ? this.logID : null;\r\n data[\"getRequest\"] = this.getRequest !== undefined ? this.getRequest : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSearchLogFileRequest extends IApiRequest {\r\n logID: string;\r\n getRequest?: boolean;\r\n}\r\n\r\nexport class GetServiceDrilldownResponse extends OkApiResponse implements IGetServiceDrilldownResponse {\r\n servizio?: ServizioSearch | null;\r\n\r\n constructor(data?: IGetServiceDrilldownResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? ServizioSearch.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServiceDrilldownResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServiceDrilldownResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServiceDrilldownResponse extends IOkApiResponse {\r\n servizio?: ServizioSearch | null;\r\n}\r\n\r\nexport class GetServiceDrilldownRequest extends ApiRequest implements IGetServiceDrilldownRequest {\r\n jobID?: string;\r\n generationID?: number;\r\n serviceID?: string;\r\n\r\n constructor(data?: IGetServiceDrilldownRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.generationID = _data[\"generationID\"] !== undefined ? _data[\"generationID\"] : null;\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServiceDrilldownRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServiceDrilldownRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"generationID\"] = this.generationID !== undefined ? this.generationID : null;\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServiceDrilldownRequest extends IApiRequest {\r\n jobID?: string;\r\n generationID?: number;\r\n serviceID?: string;\r\n}\r\n\r\nexport class GetSingleServicePriceResponse extends OkApiResponse implements IGetSingleServicePriceResponse {\r\n datiServizio?: ServiceData | null;\r\n servizio?: ServizioSearch | null;\r\n abbinamentiTipologiePartenze?: AbbinamentoTipologiaPartenza[] | null;\r\n jobID?: string | null;\r\n searchKey?: string | null;\r\n generationID?: number;\r\n\r\n constructor(data?: IGetSingleServicePriceResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.datiServizio = _data[\"datiServizio\"] ? ServiceData.fromJS(_data[\"datiServizio\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? ServizioSearch.fromJS(_data[\"servizio\"]) : null;\r\n if (Array.isArray(_data[\"abbinamentiTipologiePartenze\"])) {\r\n this.abbinamentiTipologiePartenze = [] as any;\r\n for (let item of _data[\"abbinamentiTipologiePartenze\"])\r\n this.abbinamentiTipologiePartenze!.push(AbbinamentoTipologiaPartenza.fromJS(item));\r\n }\r\n else {\r\n this.abbinamentiTipologiePartenze = null;\r\n }\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.searchKey = _data[\"searchKey\"] !== undefined ? _data[\"searchKey\"] : null;\r\n this.generationID = _data[\"generationID\"] !== undefined ? _data[\"generationID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSingleServicePriceResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSingleServicePriceResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"datiServizio\"] = this.datiServizio ? this.datiServizio.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n if (Array.isArray(this.abbinamentiTipologiePartenze)) {\r\n data[\"abbinamentiTipologiePartenze\"] = [];\r\n for (let item of this.abbinamentiTipologiePartenze)\r\n data[\"abbinamentiTipologiePartenze\"].push(item.toJSON());\r\n }\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"searchKey\"] = this.searchKey !== undefined ? this.searchKey : null;\r\n data[\"generationID\"] = this.generationID !== undefined ? this.generationID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSingleServicePriceResponse extends IOkApiResponse {\r\n datiServizio?: ServiceData | null;\r\n servizio?: ServizioSearch | null;\r\n abbinamentiTipologiePartenze?: AbbinamentoTipologiaPartenza[] | null;\r\n jobID?: string | null;\r\n searchKey?: string | null;\r\n generationID?: number;\r\n}\r\n\r\nexport class ServiceData implements IServiceData {\r\n id?: string;\r\n servizioID?: number;\r\n interno?: boolean;\r\n prezzoBase?: number | null;\r\n nome?: string | null;\r\n stringaRicerca?: string | null;\r\n indirizzo?: string | null;\r\n altroLuogo?: boolean;\r\n luogo?: string | null;\r\n destinazioneID?: number | null;\r\n cover?: string | null;\r\n durata?: ServiceDuration | null;\r\n stelle?: number | null;\r\n urlName?: string | null;\r\n mappa?: Mappa | null;\r\n attributiFiltro?: number[] | null;\r\n haAttributiTestata?: boolean;\r\n haCategoria?: boolean;\r\n categoria?: string | null;\r\n haNuovo?: boolean;\r\n nuovo?: string | null;\r\n haVantaggi?: boolean;\r\n vantaggi?: string | null;\r\n haServizi?: boolean;\r\n inRistrutturazione?: string | null;\r\n tipoServizio?: ETipoServizio;\r\n popolarita?: number | null;\r\n haAttributiNoleggi?: boolean;\r\n attributiNoleggi?: ElencoAttributiNoleggio[] | null;\r\n tappe?: (string | null)[] | null;\r\n luoghi?: number[] | null;\r\n date?: ServiceDeparture[] | null;\r\n attributi?: ServiceAttribute[] | null;\r\n preferito?: boolean;\r\n prezzi?: ServizioSearch | null;\r\n testiPrincipali?: TestoCompleto[] | null;\r\n testiGiorni?: TestoCompleto[] | null;\r\n testiNote?: TestoCompleto[] | null;\r\n itinerario?: (ServiceItineraryStep | null)[] | null;\r\n immagini?: ServiceImage[] | null;\r\n partenzePerFiltri?: ServiceDepartureFilterValues | null;\r\n regolePacchetto?: ServizioRegolaScontoPacchetto[] | null;\r\n tipologie?: ServizioTipologia[] | null;\r\n\r\n constructor(data?: IServiceData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.interno = _data[\"interno\"] !== undefined ? _data[\"interno\"] : null;\r\n this.prezzoBase = _data[\"prezzoBase\"] !== undefined ? _data[\"prezzoBase\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.stringaRicerca = _data[\"stringaRicerca\"] !== undefined ? _data[\"stringaRicerca\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.altroLuogo = _data[\"altroLuogo\"] !== undefined ? _data[\"altroLuogo\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.destinazioneID = _data[\"destinazioneID\"] !== undefined ? _data[\"destinazioneID\"] : null;\r\n this.cover = _data[\"cover\"] !== undefined ? _data[\"cover\"] : null;\r\n this.durata = _data[\"durata\"] ? ServiceDuration.fromJS(_data[\"durata\"]) : null;\r\n this.stelle = _data[\"stelle\"] !== undefined ? _data[\"stelle\"] : null;\r\n this.urlName = _data[\"urlName\"] !== undefined ? _data[\"urlName\"] : null;\r\n this.mappa = _data[\"mappa\"] ? Mappa.fromJS(_data[\"mappa\"]) : null;\r\n if (Array.isArray(_data[\"attributiFiltro\"])) {\r\n this.attributiFiltro = [] as any;\r\n for (let item of _data[\"attributiFiltro\"])\r\n this.attributiFiltro!.push(item);\r\n }\r\n else {\r\n this.attributiFiltro = null;\r\n }\r\n this.haAttributiTestata = _data[\"haAttributiTestata\"] !== undefined ? _data[\"haAttributiTestata\"] : null;\r\n this.haCategoria = _data[\"haCategoria\"] !== undefined ? _data[\"haCategoria\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.haNuovo = _data[\"haNuovo\"] !== undefined ? _data[\"haNuovo\"] : null;\r\n this.nuovo = _data[\"nuovo\"] !== undefined ? _data[\"nuovo\"] : null;\r\n this.haVantaggi = _data[\"haVantaggi\"] !== undefined ? _data[\"haVantaggi\"] : null;\r\n this.vantaggi = _data[\"vantaggi\"] !== undefined ? _data[\"vantaggi\"] : null;\r\n this.haServizi = _data[\"haServizi\"] !== undefined ? _data[\"haServizi\"] : null;\r\n this.inRistrutturazione = _data[\"inRistrutturazione\"] !== undefined ? _data[\"inRistrutturazione\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.popolarita = _data[\"popolarita\"] !== undefined ? _data[\"popolarita\"] : null;\r\n this.haAttributiNoleggi = _data[\"haAttributiNoleggi\"] !== undefined ? _data[\"haAttributiNoleggi\"] : null;\r\n if (Array.isArray(_data[\"attributiNoleggi\"])) {\r\n this.attributiNoleggi = [] as any;\r\n for (let item of _data[\"attributiNoleggi\"])\r\n this.attributiNoleggi!.push(ElencoAttributiNoleggio.fromJS(item));\r\n }\r\n else {\r\n this.attributiNoleggi = null;\r\n }\r\n if (Array.isArray(_data[\"tappe\"])) {\r\n this.tappe = [] as any;\r\n for (let item of _data[\"tappe\"])\r\n this.tappe!.push(item);\r\n }\r\n else {\r\n this.tappe = null;\r\n }\r\n if (Array.isArray(_data[\"luoghi\"])) {\r\n this.luoghi = [] as any;\r\n for (let item of _data[\"luoghi\"])\r\n this.luoghi!.push(item);\r\n }\r\n else {\r\n this.luoghi = null;\r\n }\r\n if (Array.isArray(_data[\"date\"])) {\r\n this.date = [] as any;\r\n for (let item of _data[\"date\"])\r\n this.date!.push(ServiceDeparture.fromJS(item));\r\n }\r\n else {\r\n this.date = null;\r\n }\r\n if (Array.isArray(_data[\"attributi\"])) {\r\n this.attributi = [] as any;\r\n for (let item of _data[\"attributi\"])\r\n this.attributi!.push(ServiceAttribute.fromJS(item));\r\n }\r\n else {\r\n this.attributi = null;\r\n }\r\n this.preferito = _data[\"preferito\"] !== undefined ? _data[\"preferito\"] : null;\r\n this.prezzi = _data[\"prezzi\"] ? ServizioSearch.fromJS(_data[\"prezzi\"]) : null;\r\n if (Array.isArray(_data[\"testiPrincipali\"])) {\r\n this.testiPrincipali = [] as any;\r\n for (let item of _data[\"testiPrincipali\"])\r\n this.testiPrincipali!.push(TestoCompleto.fromJS(item));\r\n }\r\n else {\r\n this.testiPrincipali = null;\r\n }\r\n if (Array.isArray(_data[\"testiGiorni\"])) {\r\n this.testiGiorni = [] as any;\r\n for (let item of _data[\"testiGiorni\"])\r\n this.testiGiorni!.push(TestoCompleto.fromJS(item));\r\n }\r\n else {\r\n this.testiGiorni = null;\r\n }\r\n if (Array.isArray(_data[\"testiNote\"])) {\r\n this.testiNote = [] as any;\r\n for (let item of _data[\"testiNote\"])\r\n this.testiNote!.push(TestoCompleto.fromJS(item));\r\n }\r\n else {\r\n this.testiNote = null;\r\n }\r\n if (Array.isArray(_data[\"itinerario\"])) {\r\n this.itinerario = [] as any;\r\n for (let item of _data[\"itinerario\"])\r\n this.itinerario!.push(ServiceItineraryStep.fromJS(item));\r\n }\r\n else {\r\n this.itinerario = null;\r\n }\r\n if (Array.isArray(_data[\"immagini\"])) {\r\n this.immagini = [] as any;\r\n for (let item of _data[\"immagini\"])\r\n this.immagini!.push(ServiceImage.fromJS(item));\r\n }\r\n else {\r\n this.immagini = null;\r\n }\r\n this.partenzePerFiltri = _data[\"partenzePerFiltri\"] ? ServiceDepartureFilterValues.fromJS(_data[\"partenzePerFiltri\"]) : null;\r\n if (Array.isArray(_data[\"regolePacchetto\"])) {\r\n this.regolePacchetto = [] as any;\r\n for (let item of _data[\"regolePacchetto\"])\r\n this.regolePacchetto!.push(ServizioRegolaScontoPacchetto.fromJS(item));\r\n }\r\n else {\r\n this.regolePacchetto = null;\r\n }\r\n if (Array.isArray(_data[\"tipologie\"])) {\r\n this.tipologie = [] as any;\r\n for (let item of _data[\"tipologie\"])\r\n this.tipologie!.push(ServizioTipologia.fromJS(item));\r\n }\r\n else {\r\n this.tipologie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"interno\"] = this.interno !== undefined ? this.interno : null;\r\n data[\"prezzoBase\"] = this.prezzoBase !== undefined ? this.prezzoBase : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"stringaRicerca\"] = this.stringaRicerca !== undefined ? this.stringaRicerca : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"altroLuogo\"] = this.altroLuogo !== undefined ? this.altroLuogo : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"destinazioneID\"] = this.destinazioneID !== undefined ? this.destinazioneID : null;\r\n data[\"cover\"] = this.cover !== undefined ? this.cover : null;\r\n data[\"durata\"] = this.durata ? this.durata.toJSON() : null;\r\n data[\"stelle\"] = this.stelle !== undefined ? this.stelle : null;\r\n data[\"urlName\"] = this.urlName !== undefined ? this.urlName : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n if (Array.isArray(this.attributiFiltro)) {\r\n data[\"attributiFiltro\"] = [];\r\n for (let item of this.attributiFiltro)\r\n data[\"attributiFiltro\"].push(item);\r\n }\r\n data[\"haAttributiTestata\"] = this.haAttributiTestata !== undefined ? this.haAttributiTestata : null;\r\n data[\"haCategoria\"] = this.haCategoria !== undefined ? this.haCategoria : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"haNuovo\"] = this.haNuovo !== undefined ? this.haNuovo : null;\r\n data[\"nuovo\"] = this.nuovo !== undefined ? this.nuovo : null;\r\n data[\"haVantaggi\"] = this.haVantaggi !== undefined ? this.haVantaggi : null;\r\n data[\"vantaggi\"] = this.vantaggi !== undefined ? this.vantaggi : null;\r\n data[\"haServizi\"] = this.haServizi !== undefined ? this.haServizi : null;\r\n data[\"inRistrutturazione\"] = this.inRistrutturazione !== undefined ? this.inRistrutturazione : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"popolarita\"] = this.popolarita !== undefined ? this.popolarita : null;\r\n data[\"haAttributiNoleggi\"] = this.haAttributiNoleggi !== undefined ? this.haAttributiNoleggi : null;\r\n if (Array.isArray(this.attributiNoleggi)) {\r\n data[\"attributiNoleggi\"] = [];\r\n for (let item of this.attributiNoleggi)\r\n data[\"attributiNoleggi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.tappe)) {\r\n data[\"tappe\"] = [];\r\n for (let item of this.tappe)\r\n data[\"tappe\"].push(item);\r\n }\r\n if (Array.isArray(this.luoghi)) {\r\n data[\"luoghi\"] = [];\r\n for (let item of this.luoghi)\r\n data[\"luoghi\"].push(item);\r\n }\r\n if (Array.isArray(this.date)) {\r\n data[\"date\"] = [];\r\n for (let item of this.date)\r\n data[\"date\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.attributi)) {\r\n data[\"attributi\"] = [];\r\n for (let item of this.attributi)\r\n data[\"attributi\"].push(item.toJSON());\r\n }\r\n data[\"preferito\"] = this.preferito !== undefined ? this.preferito : null;\r\n data[\"prezzi\"] = this.prezzi ? this.prezzi.toJSON() : null;\r\n if (Array.isArray(this.testiPrincipali)) {\r\n data[\"testiPrincipali\"] = [];\r\n for (let item of this.testiPrincipali)\r\n data[\"testiPrincipali\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.testiGiorni)) {\r\n data[\"testiGiorni\"] = [];\r\n for (let item of this.testiGiorni)\r\n data[\"testiGiorni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.testiNote)) {\r\n data[\"testiNote\"] = [];\r\n for (let item of this.testiNote)\r\n data[\"testiNote\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.itinerario)) {\r\n data[\"itinerario\"] = [];\r\n for (let item of this.itinerario)\r\n data[\"itinerario\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.immagini)) {\r\n data[\"immagini\"] = [];\r\n for (let item of this.immagini)\r\n data[\"immagini\"].push(item.toJSON());\r\n }\r\n data[\"partenzePerFiltri\"] = this.partenzePerFiltri ? this.partenzePerFiltri.toJSON() : null;\r\n if (Array.isArray(this.regolePacchetto)) {\r\n data[\"regolePacchetto\"] = [];\r\n for (let item of this.regolePacchetto)\r\n data[\"regolePacchetto\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.tipologie)) {\r\n data[\"tipologie\"] = [];\r\n for (let item of this.tipologie)\r\n data[\"tipologie\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceData {\r\n id?: string;\r\n servizioID?: number;\r\n interno?: boolean;\r\n prezzoBase?: number | null;\r\n nome?: string | null;\r\n stringaRicerca?: string | null;\r\n indirizzo?: string | null;\r\n altroLuogo?: boolean;\r\n luogo?: string | null;\r\n destinazioneID?: number | null;\r\n cover?: string | null;\r\n durata?: ServiceDuration | null;\r\n stelle?: number | null;\r\n urlName?: string | null;\r\n mappa?: Mappa | null;\r\n attributiFiltro?: number[] | null;\r\n haAttributiTestata?: boolean;\r\n haCategoria?: boolean;\r\n categoria?: string | null;\r\n haNuovo?: boolean;\r\n nuovo?: string | null;\r\n haVantaggi?: boolean;\r\n vantaggi?: string | null;\r\n haServizi?: boolean;\r\n inRistrutturazione?: string | null;\r\n tipoServizio?: ETipoServizio;\r\n popolarita?: number | null;\r\n haAttributiNoleggi?: boolean;\r\n attributiNoleggi?: ElencoAttributiNoleggio[] | null;\r\n tappe?: (string | null)[] | null;\r\n luoghi?: number[] | null;\r\n date?: ServiceDeparture[] | null;\r\n attributi?: ServiceAttribute[] | null;\r\n preferito?: boolean;\r\n prezzi?: ServizioSearch | null;\r\n testiPrincipali?: TestoCompleto[] | null;\r\n testiGiorni?: TestoCompleto[] | null;\r\n testiNote?: TestoCompleto[] | null;\r\n itinerario?: (ServiceItineraryStep | null)[] | null;\r\n immagini?: ServiceImage[] | null;\r\n partenzePerFiltri?: ServiceDepartureFilterValues | null;\r\n regolePacchetto?: ServizioRegolaScontoPacchetto[] | null;\r\n tipologie?: ServizioTipologia[] | null;\r\n}\r\n\r\nexport class ElencoAttributiNoleggio implements IElencoAttributiNoleggio {\r\n titolo?: string | null;\r\n attributiNoleggio?: AttributoNoleggio[] | null;\r\n\r\n constructor(data?: IElencoAttributiNoleggio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n if (Array.isArray(_data[\"attributiNoleggio\"])) {\r\n this.attributiNoleggio = [] as any;\r\n for (let item of _data[\"attributiNoleggio\"])\r\n this.attributiNoleggio!.push(AttributoNoleggio.fromJS(item));\r\n }\r\n else {\r\n this.attributiNoleggio = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ElencoAttributiNoleggio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ElencoAttributiNoleggio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n if (Array.isArray(this.attributiNoleggio)) {\r\n data[\"attributiNoleggio\"] = [];\r\n for (let item of this.attributiNoleggio)\r\n data[\"attributiNoleggio\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IElencoAttributiNoleggio {\r\n titolo?: string | null;\r\n attributiNoleggio?: AttributoNoleggio[] | null;\r\n}\r\n\r\nexport class AttributoNoleggio implements IAttributoNoleggio {\r\n icona?: string | null;\r\n nome?: string | null;\r\n valore?: string | null;\r\n titolo?: string | null;\r\n\r\n constructor(data?: IAttributoNoleggio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.icona = _data[\"icona\"] !== undefined ? _data[\"icona\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AttributoNoleggio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AttributoNoleggio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"icona\"] = this.icona !== undefined ? this.icona : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAttributoNoleggio {\r\n icona?: string | null;\r\n nome?: string | null;\r\n valore?: string | null;\r\n titolo?: string | null;\r\n}\r\n\r\nexport class ServiceDeparture implements IServiceDeparture {\r\n anno?: number;\r\n mese?: number;\r\n annoSuccessivo?: boolean;\r\n tag?: number;\r\n giorni?: string[] | null;\r\n flags?: EPartenzaFlags;\r\n\r\n constructor(data?: IServiceDeparture) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.anno = _data[\"anno\"] !== undefined ? _data[\"anno\"] : null;\r\n this.mese = _data[\"mese\"] !== undefined ? _data[\"mese\"] : null;\r\n this.annoSuccessivo = _data[\"annoSuccessivo\"] !== undefined ? _data[\"annoSuccessivo\"] : null;\r\n this.tag = _data[\"tag\"] !== undefined ? _data[\"tag\"] : null;\r\n if (Array.isArray(_data[\"giorni\"])) {\r\n this.giorni = [] as any;\r\n for (let item of _data[\"giorni\"])\r\n this.giorni!.push(item);\r\n }\r\n else {\r\n this.giorni = null;\r\n }\r\n this.flags = _data[\"flags\"] !== undefined ? _data[\"flags\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceDeparture {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceDeparture();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"anno\"] = this.anno !== undefined ? this.anno : null;\r\n data[\"mese\"] = this.mese !== undefined ? this.mese : null;\r\n data[\"annoSuccessivo\"] = this.annoSuccessivo !== undefined ? this.annoSuccessivo : null;\r\n data[\"tag\"] = this.tag !== undefined ? this.tag : null;\r\n if (Array.isArray(this.giorni)) {\r\n data[\"giorni\"] = [];\r\n for (let item of this.giorni)\r\n data[\"giorni\"].push(item);\r\n }\r\n data[\"flags\"] = this.flags !== undefined ? this.flags : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceDeparture {\r\n anno?: number;\r\n mese?: number;\r\n annoSuccessivo?: boolean;\r\n tag?: number;\r\n giorni?: string[] | null;\r\n flags?: EPartenzaFlags;\r\n}\r\n\r\nexport class ServiceItineraryStep implements IServiceItineraryStep {\r\n luogoID?: number;\r\n luogo?: string | null;\r\n latitudine?: number;\r\n longitudine?: number;\r\n notti?: number;\r\n tipoTrasporto?: ETipoTrasporto;\r\n ordine?: number;\r\n giorno?: number;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean;\r\n\r\n constructor(data?: IServiceItineraryStep) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.tipoTrasporto = _data[\"tipoTrasporto\"] !== undefined ? _data[\"tipoTrasporto\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n this.compagniaAerea2 = _data[\"compagniaAerea2\"] !== undefined ? _data[\"compagniaAerea2\"] : null;\r\n this.classe2 = _data[\"classe2\"] !== undefined ? _data[\"classe2\"] : null;\r\n this.cambioHotel = _data[\"cambioHotel\"] !== undefined ? _data[\"cambioHotel\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceItineraryStep {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceItineraryStep();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"tipoTrasporto\"] = this.tipoTrasporto !== undefined ? this.tipoTrasporto : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n data[\"compagniaAerea2\"] = this.compagniaAerea2 !== undefined ? this.compagniaAerea2 : null;\r\n data[\"classe2\"] = this.classe2 !== undefined ? this.classe2 : null;\r\n data[\"cambioHotel\"] = this.cambioHotel !== undefined ? this.cambioHotel : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceItineraryStep {\r\n luogoID?: number;\r\n luogo?: string | null;\r\n latitudine?: number;\r\n longitudine?: number;\r\n notti?: number;\r\n tipoTrasporto?: ETipoTrasporto;\r\n ordine?: number;\r\n giorno?: number;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean;\r\n}\r\n\r\nexport class ServiceImage implements IServiceImage {\r\n url?: string | null;\r\n title?: string | null;\r\n\r\n constructor(data?: IServiceImage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceImage {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceImage();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceImage {\r\n url?: string | null;\r\n title?: string | null;\r\n}\r\n\r\nexport class ServiceDepartureFilterValues implements IServiceDepartureFilterValues {\r\n dataMinima?: number | null;\r\n dataMassima?: number | null;\r\n dateValide?: number[] | null;\r\n giornaliero?: boolean;\r\n\r\n constructor(data?: IServiceDepartureFilterValues) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dataMinima = _data[\"dataMinima\"] !== undefined ? _data[\"dataMinima\"] : null;\r\n this.dataMassima = _data[\"dataMassima\"] !== undefined ? _data[\"dataMassima\"] : null;\r\n if (Array.isArray(_data[\"dateValide\"])) {\r\n this.dateValide = [] as any;\r\n for (let item of _data[\"dateValide\"])\r\n this.dateValide!.push(item);\r\n }\r\n else {\r\n this.dateValide = null;\r\n }\r\n this.giornaliero = _data[\"giornaliero\"] !== undefined ? _data[\"giornaliero\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceDepartureFilterValues {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceDepartureFilterValues();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dataMinima\"] = this.dataMinima !== undefined ? this.dataMinima : null;\r\n data[\"dataMassima\"] = this.dataMassima !== undefined ? this.dataMassima : null;\r\n if (Array.isArray(this.dateValide)) {\r\n data[\"dateValide\"] = [];\r\n for (let item of this.dateValide)\r\n data[\"dateValide\"].push(item);\r\n }\r\n data[\"giornaliero\"] = this.giornaliero !== undefined ? this.giornaliero : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceDepartureFilterValues {\r\n dataMinima?: number | null;\r\n dataMassima?: number | null;\r\n dateValide?: number[] | null;\r\n giornaliero?: boolean;\r\n}\r\n\r\nexport class AbbinamentoTipologiaPartenza implements IAbbinamentoTipologiaPartenza {\r\n abbinamento?: AbbinamentoTipologie | null;\r\n tipologia?: TipologiaSearch | null;\r\n partenza?: PartenzaSearch | null;\r\n\r\n constructor(data?: IAbbinamentoTipologiaPartenza) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.abbinamento = _data[\"abbinamento\"] ? AbbinamentoTipologie.fromJS(_data[\"abbinamento\"]) : null;\r\n this.tipologia = _data[\"tipologia\"] ? TipologiaSearch.fromJS(_data[\"tipologia\"]) : null;\r\n this.partenza = _data[\"partenza\"] ? PartenzaSearch.fromJS(_data[\"partenza\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AbbinamentoTipologiaPartenza {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AbbinamentoTipologiaPartenza();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"abbinamento\"] = this.abbinamento ? this.abbinamento.toJSON() : null;\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n data[\"partenza\"] = this.partenza ? this.partenza.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamentoTipologiaPartenza {\r\n abbinamento?: AbbinamentoTipologie | null;\r\n tipologia?: TipologiaSearch | null;\r\n partenza?: PartenzaSearch | null;\r\n}\r\n\r\nexport class StartPriceSearchRequest extends SiteRequest implements IStartPriceSearchRequest {\r\n tipoServizio?: ETipoServizio;\r\n luogoID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n offertaID?: number | null;\r\n tappaID?: number | null;\r\n dal?: string | null;\r\n daOre?: number | null;\r\n al?: string | null;\r\n aOre?: number | null;\r\n paxIds?: number[] | null;\r\n abbinamentiIds?: number[] | null;\r\n paxDefs?: PaxDef[] | null;\r\n abbinamentiDefs?: AbbinamentoDef[] | null;\r\n nomeGruppoCustom?: string | null;\r\n abilitaLog?: boolean;\r\n bypassCache?: boolean;\r\n\r\n constructor(data?: IStartPriceSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.tappaID = _data[\"tappaID\"] !== undefined ? _data[\"tappaID\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.daOre = _data[\"daOre\"] !== undefined ? _data[\"daOre\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.aOre = _data[\"aOre\"] !== undefined ? _data[\"aOre\"] : null;\r\n if (Array.isArray(_data[\"paxIds\"])) {\r\n this.paxIds = [] as any;\r\n for (let item of _data[\"paxIds\"])\r\n this.paxIds!.push(item);\r\n }\r\n else {\r\n this.paxIds = null;\r\n }\r\n if (Array.isArray(_data[\"abbinamentiIds\"])) {\r\n this.abbinamentiIds = [] as any;\r\n for (let item of _data[\"abbinamentiIds\"])\r\n this.abbinamentiIds!.push(item);\r\n }\r\n else {\r\n this.abbinamentiIds = null;\r\n }\r\n if (Array.isArray(_data[\"paxDefs\"])) {\r\n this.paxDefs = [] as any;\r\n for (let item of _data[\"paxDefs\"])\r\n this.paxDefs!.push(PaxDef.fromJS(item));\r\n }\r\n else {\r\n this.paxDefs = null;\r\n }\r\n if (Array.isArray(_data[\"abbinamentiDefs\"])) {\r\n this.abbinamentiDefs = [] as any;\r\n for (let item of _data[\"abbinamentiDefs\"])\r\n this.abbinamentiDefs!.push(AbbinamentoDef.fromJS(item));\r\n }\r\n else {\r\n this.abbinamentiDefs = null;\r\n }\r\n this.nomeGruppoCustom = _data[\"nomeGruppoCustom\"] !== undefined ? _data[\"nomeGruppoCustom\"] : null;\r\n this.abilitaLog = _data[\"abilitaLog\"] !== undefined ? _data[\"abilitaLog\"] : null;\r\n this.bypassCache = _data[\"bypassCache\"] !== undefined ? _data[\"bypassCache\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StartPriceSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StartPriceSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"tappaID\"] = this.tappaID !== undefined ? this.tappaID : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"daOre\"] = this.daOre !== undefined ? this.daOre : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"aOre\"] = this.aOre !== undefined ? this.aOre : null;\r\n if (Array.isArray(this.paxIds)) {\r\n data[\"paxIds\"] = [];\r\n for (let item of this.paxIds)\r\n data[\"paxIds\"].push(item);\r\n }\r\n if (Array.isArray(this.abbinamentiIds)) {\r\n data[\"abbinamentiIds\"] = [];\r\n for (let item of this.abbinamentiIds)\r\n data[\"abbinamentiIds\"].push(item);\r\n }\r\n if (Array.isArray(this.paxDefs)) {\r\n data[\"paxDefs\"] = [];\r\n for (let item of this.paxDefs)\r\n data[\"paxDefs\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.abbinamentiDefs)) {\r\n data[\"abbinamentiDefs\"] = [];\r\n for (let item of this.abbinamentiDefs)\r\n data[\"abbinamentiDefs\"].push(item.toJSON());\r\n }\r\n data[\"nomeGruppoCustom\"] = this.nomeGruppoCustom !== undefined ? this.nomeGruppoCustom : null;\r\n data[\"abilitaLog\"] = this.abilitaLog !== undefined ? this.abilitaLog : null;\r\n data[\"bypassCache\"] = this.bypassCache !== undefined ? this.bypassCache : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStartPriceSearchRequest extends ISiteRequest {\r\n tipoServizio?: ETipoServizio;\r\n luogoID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n offertaID?: number | null;\r\n tappaID?: number | null;\r\n dal?: string | null;\r\n daOre?: number | null;\r\n al?: string | null;\r\n aOre?: number | null;\r\n paxIds?: number[] | null;\r\n abbinamentiIds?: number[] | null;\r\n paxDefs?: PaxDef[] | null;\r\n abbinamentiDefs?: AbbinamentoDef[] | null;\r\n nomeGruppoCustom?: string | null;\r\n abilitaLog?: boolean;\r\n bypassCache?: boolean;\r\n}\r\n\r\nexport class GetSingleServicePriceRequest extends StartPriceSearchRequest implements IGetSingleServicePriceRequest {\r\n servizioID?: number;\r\n tipologiaID?: number;\r\n trattamentoID?: number | null;\r\n partenza?: string;\r\n\r\n constructor(data?: IGetSingleServicePriceRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSingleServicePriceRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSingleServicePriceRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSingleServicePriceRequest extends IStartPriceSearchRequest {\r\n servizioID?: number;\r\n tipologiaID?: number;\r\n trattamentoID?: number | null;\r\n partenza?: string;\r\n}\r\n\r\nexport class PaxDef implements IPaxDef {\r\n id?: number;\r\n titolo?: ETitolo;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n dataDiNascita?: string;\r\n\r\n constructor(data?: IPaxDef) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.dataDiNascita = _data[\"dataDiNascita\"] !== undefined ? _data[\"dataDiNascita\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PaxDef {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PaxDef();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"dataDiNascita\"] = this.dataDiNascita !== undefined ? this.dataDiNascita : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPaxDef {\r\n id?: number;\r\n titolo?: ETitolo;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n dataDiNascita?: string;\r\n}\r\n\r\nexport class AbbinamentoDef implements IAbbinamentoDef {\r\n id?: number;\r\n nome?: string | null;\r\n paxDefs?: PaxDef[] | null;\r\n\r\n constructor(data?: IAbbinamentoDef) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n if (Array.isArray(_data[\"paxDefs\"])) {\r\n this.paxDefs = [] as any;\r\n for (let item of _data[\"paxDefs\"])\r\n this.paxDefs!.push(PaxDef.fromJS(item));\r\n }\r\n else {\r\n this.paxDefs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AbbinamentoDef {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AbbinamentoDef();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n if (Array.isArray(this.paxDefs)) {\r\n data[\"paxDefs\"] = [];\r\n for (let item of this.paxDefs)\r\n data[\"paxDefs\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamentoDef {\r\n id?: number;\r\n nome?: string | null;\r\n paxDefs?: PaxDef[] | null;\r\n}\r\n\r\nexport class StartPriceSearchResponse extends OkApiResponse implements IStartPriceSearchResponse {\r\n startSearchResult?: EStartSearchResult;\r\n jobID?: string | null;\r\n searchKey?: string | null;\r\n gruppi?: DisponibilitaGruppo[] | null;\r\n dati?: RicercaDati | null;\r\n idsByPrice?: string[] | null;\r\n\r\n constructor(data?: IStartPriceSearchResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.startSearchResult = _data[\"startSearchResult\"] !== undefined ? _data[\"startSearchResult\"] : null;\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.searchKey = _data[\"searchKey\"] !== undefined ? _data[\"searchKey\"] : null;\r\n if (Array.isArray(_data[\"gruppi\"])) {\r\n this.gruppi = [] as any;\r\n for (let item of _data[\"gruppi\"])\r\n this.gruppi!.push(DisponibilitaGruppo.fromJS(item));\r\n }\r\n else {\r\n this.gruppi = null;\r\n }\r\n this.dati = _data[\"dati\"] ? RicercaDati.fromJS(_data[\"dati\"]) : null;\r\n if (Array.isArray(_data[\"idsByPrice\"])) {\r\n this.idsByPrice = [] as any;\r\n for (let item of _data[\"idsByPrice\"])\r\n this.idsByPrice!.push(item);\r\n }\r\n else {\r\n this.idsByPrice = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): StartPriceSearchResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StartPriceSearchResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"startSearchResult\"] = this.startSearchResult !== undefined ? this.startSearchResult : null;\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"searchKey\"] = this.searchKey !== undefined ? this.searchKey : null;\r\n if (Array.isArray(this.gruppi)) {\r\n data[\"gruppi\"] = [];\r\n for (let item of this.gruppi)\r\n data[\"gruppi\"].push(item.toJSON());\r\n }\r\n data[\"dati\"] = this.dati ? this.dati.toJSON() : null;\r\n if (Array.isArray(this.idsByPrice)) {\r\n data[\"idsByPrice\"] = [];\r\n for (let item of this.idsByPrice)\r\n data[\"idsByPrice\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStartPriceSearchResponse extends IOkApiResponse {\r\n startSearchResult?: EStartSearchResult;\r\n jobID?: string | null;\r\n searchKey?: string | null;\r\n gruppi?: DisponibilitaGruppo[] | null;\r\n dati?: RicercaDati | null;\r\n idsByPrice?: string[] | null;\r\n}\r\n\r\nexport enum EStartSearchResult {\r\n Ok = \"Ok\",\r\n Error = \"Error\",\r\n Busy = \"Busy\",\r\n}\r\n\r\nexport class PricingGetRequest extends ApiRequest implements IPricingGetRequest {\r\n /** L'ID del pricing */\r\n id?: number;\r\n\r\n constructor(data?: IPricingGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingGetRequest extends IApiRequest {\r\n /** L'ID del pricing */\r\n id?: number;\r\n}\r\n\r\nexport class PricingDeleteRequest extends PricingGetRequest implements IPricingDeleteRequest {\r\n\r\n constructor(data?: IPricingDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PricingDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingDeleteRequest extends IPricingGetRequest {\r\n}\r\n\r\nexport class PricingGetResponse extends OkApiResponse implements IPricingGetResponse {\r\n pricing?: Pricing;\r\n\r\n constructor(data?: IPricingGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.pricing = _data[\"pricing\"] ? Pricing.fromJS(_data[\"pricing\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"pricing\"] = this.pricing ? this.pricing.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingGetResponse extends IOkApiResponse {\r\n pricing?: Pricing;\r\n}\r\n\r\nexport class NrTableResponseOfPricingRow extends OkApiResponse implements INrTableResponseOfPricingRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PricingRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfPricingRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(PricingRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfPricingRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfPricingRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfPricingRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: PricingRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class PricingRow implements IPricingRow {\r\n id?: number;\r\n nome?: string | null;\r\n operatore?: EOperatore | null;\r\n rulesCount?: number;\r\n\r\n constructor(data?: IPricingRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.rulesCount = _data[\"rulesCount\"] !== undefined ? _data[\"rulesCount\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"rulesCount\"] = this.rulesCount !== undefined ? this.rulesCount : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingRow {\r\n id?: number;\r\n nome?: string | null;\r\n operatore?: EOperatore | null;\r\n rulesCount?: number;\r\n}\r\n\r\nexport class PricingListRequest extends NrTableRequest implements IPricingListRequest {\r\n term?: string | null;\r\n operatore?: EOperatore | null;\r\n\r\n constructor(data?: IPricingListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingListRequest extends INrTableRequest {\r\n term?: string | null;\r\n operatore?: EOperatore | null;\r\n}\r\n\r\nexport class PricingRulesListRequest extends PricingGetRequest implements IPricingRulesListRequest {\r\n\r\n constructor(data?: IPricingRulesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): PricingRulesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingRulesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingRulesListRequest extends IPricingGetRequest {\r\n}\r\n\r\nexport class PricingRulesDeleteRequest extends PricingRulesListRequest implements IPricingRulesDeleteRequest {\r\n ruleID?: number;\r\n\r\n constructor(data?: IPricingRulesDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ruleID = _data[\"ruleID\"] !== undefined ? _data[\"ruleID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingRulesDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingRulesDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ruleID\"] = this.ruleID !== undefined ? this.ruleID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingRulesDeleteRequest extends IPricingRulesListRequest {\r\n ruleID?: number;\r\n}\r\n\r\nexport class PricingRulesListResponse extends OkApiResponse implements IPricingRulesListResponse {\r\n rules?: PricingRule[];\r\n\r\n constructor(data?: IPricingRulesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rules\"])) {\r\n this.rules = [] as any;\r\n for (let item of _data[\"rules\"])\r\n this.rules!.push(PricingRule.fromJS(item));\r\n }\r\n else {\r\n this.rules = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingRulesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingRulesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rules)) {\r\n data[\"rules\"] = [];\r\n for (let item of this.rules)\r\n data[\"rules\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingRulesListResponse extends IOkApiResponse {\r\n rules?: PricingRule[];\r\n}\r\n\r\nexport class PricingRulesUpsertRequest extends PricingRulesListRequest implements IPricingRulesUpsertRequest {\r\n rule?: PricingRule;\r\n\r\n constructor(data?: IPricingRulesUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.rule = _data[\"rule\"] ? PricingRule.fromJS(_data[\"rule\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingRulesUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingRulesUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rule\"] = this.rule ? this.rule.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingRulesUpsertRequest extends IPricingRulesListRequest {\r\n rule?: PricingRule;\r\n}\r\n\r\nexport class PricingUpsertRequest extends ApiRequest implements IPricingUpsertRequest {\r\n id?: number;\r\n nome?: string;\r\n eOperatore?: EOperatore;\r\n\r\n constructor(data?: IPricingUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.eOperatore = _data[\"eOperatore\"] !== undefined ? _data[\"eOperatore\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PricingUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PricingUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"eOperatore\"] = this.eOperatore !== undefined ? this.eOperatore : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPricingUpsertRequest extends IApiRequest {\r\n id?: number;\r\n nome?: string;\r\n eOperatore?: EOperatore;\r\n}\r\n\r\nexport class NrTableResponseOfAdvancePaymentsReportRow extends OkApiResponse implements INrTableResponseOfAdvancePaymentsReportRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdvancePaymentsReportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAdvancePaymentsReportRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(AdvancePaymentsReportRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAdvancePaymentsReportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAdvancePaymentsReportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAdvancePaymentsReportRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: AdvancePaymentsReportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetAdvancePaymentsReportResponse extends NrTableResponseOfAdvancePaymentsReportRow implements IGetAdvancePaymentsReportResponse {\r\n\r\n constructor(data?: IGetAdvancePaymentsReportResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetAdvancePaymentsReportResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAdvancePaymentsReportResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAdvancePaymentsReportResponse extends INrTableResponseOfAdvancePaymentsReportRow {\r\n}\r\n\r\nexport class AdvancePaymentsReportRow implements IAdvancePaymentsReportRow {\r\n /** ID dell'offerta di riferimento */\r\n offertaID?: number;\r\n /** ID della riga di riferimento */\r\n rigaID?: number;\r\n /** Data di effettuazione del servizio */\r\n dataServizio?: string;\r\n /** Descrizione (come da offerta) */\r\n descrizione?: string;\r\n /** ID dell'accordo */\r\n accordoID?: number;\r\n /** Nome dell'accordo */\r\n accordo?: string;\r\n /** ID del contatto dell'accordo */\r\n contattoID?: number;\r\n /** Nome del contatto dell'accordo */\r\n contatto?: string;\r\n /** Importo da versare */\r\n importo?: number;\r\n /** Codice della valuta */\r\n codiceValuta?: string;\r\n /** Data del pagamento (se presente) */\r\n data?: string | null;\r\n\r\n constructor(data?: IAdvancePaymentsReportRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n this.dataServizio = _data[\"dataServizio\"] !== undefined ? _data[\"dataServizio\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AdvancePaymentsReportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AdvancePaymentsReportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n data[\"dataServizio\"] = this.dataServizio !== undefined ? this.dataServizio : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAdvancePaymentsReportRow {\r\n /** ID dell'offerta di riferimento */\r\n offertaID?: number;\r\n /** ID della riga di riferimento */\r\n rigaID?: number;\r\n /** Data di effettuazione del servizio */\r\n dataServizio?: string;\r\n /** Descrizione (come da offerta) */\r\n descrizione?: string;\r\n /** ID dell'accordo */\r\n accordoID?: number;\r\n /** Nome dell'accordo */\r\n accordo?: string;\r\n /** ID del contatto dell'accordo */\r\n contattoID?: number;\r\n /** Nome del contatto dell'accordo */\r\n contatto?: string;\r\n /** Importo da versare */\r\n importo?: number;\r\n /** Codice della valuta */\r\n codiceValuta?: string;\r\n /** Data del pagamento (se presente) */\r\n data?: string | null;\r\n}\r\n\r\nexport class GetAdvancePaymentsReportRequest extends NrTableRequest implements IGetAdvancePaymentsReportRequest {\r\n /** Filtro su singola offerta */\r\n offertaID?: number | null;\r\n /** Filtro sull'ID dell'accordo */\r\n accordoID?: number | null;\r\n /** Filtro sull'ID del contatto dell'accordo */\r\n contattoID?: number | null;\r\n /** Filtro data partenza \"dal\" */\r\n partenzaDal?: string | null;\r\n /** Filtro data partenza \"al\" */\r\n partenzaAl?: string | null;\r\n /** Filtro da pagare \"dal\" */\r\n daPagareDal?: string | null;\r\n /** Filtro da pagare \"al\" */\r\n daPagareAl?: string | null;\r\n\r\n constructor(data?: IGetAdvancePaymentsReportRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.contattoID = _data[\"contattoID\"] !== undefined ? _data[\"contattoID\"] : null;\r\n this.partenzaDal = _data[\"partenzaDal\"] !== undefined ? _data[\"partenzaDal\"] : null;\r\n this.partenzaAl = _data[\"partenzaAl\"] !== undefined ? _data[\"partenzaAl\"] : null;\r\n this.daPagareDal = _data[\"daPagareDal\"] !== undefined ? _data[\"daPagareDal\"] : null;\r\n this.daPagareAl = _data[\"daPagareAl\"] !== undefined ? _data[\"daPagareAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAdvancePaymentsReportRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAdvancePaymentsReportRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"contattoID\"] = this.contattoID !== undefined ? this.contattoID : null;\r\n data[\"partenzaDal\"] = this.partenzaDal !== undefined ? this.partenzaDal : null;\r\n data[\"partenzaAl\"] = this.partenzaAl !== undefined ? this.partenzaAl : null;\r\n data[\"daPagareDal\"] = this.daPagareDal !== undefined ? this.daPagareDal : null;\r\n data[\"daPagareAl\"] = this.daPagareAl !== undefined ? this.daPagareAl : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAdvancePaymentsReportRequest extends INrTableRequest {\r\n /** Filtro su singola offerta */\r\n offertaID?: number | null;\r\n /** Filtro sull'ID dell'accordo */\r\n accordoID?: number | null;\r\n /** Filtro sull'ID del contatto dell'accordo */\r\n contattoID?: number | null;\r\n /** Filtro data partenza \"dal\" */\r\n partenzaDal?: string | null;\r\n /** Filtro data partenza \"al\" */\r\n partenzaAl?: string | null;\r\n /** Filtro da pagare \"dal\" */\r\n daPagareDal?: string | null;\r\n /** Filtro da pagare \"al\" */\r\n daPagareAl?: string | null;\r\n}\r\n\r\nexport class OfferteIncompleteReportResponse extends OkApiResponse implements IOfferteIncompleteReportResponse {\r\n offerteIncomplete?: OfferteIncompleteReportRow[];\r\n\r\n constructor(data?: IOfferteIncompleteReportResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"offerteIncomplete\"])) {\r\n this.offerteIncomplete = [] as any;\r\n for (let item of _data[\"offerteIncomplete\"])\r\n this.offerteIncomplete!.push(OfferteIncompleteReportRow.fromJS(item));\r\n }\r\n else {\r\n this.offerteIncomplete = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): OfferteIncompleteReportResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OfferteIncompleteReportResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.offerteIncomplete)) {\r\n data[\"offerteIncomplete\"] = [];\r\n for (let item of this.offerteIncomplete)\r\n data[\"offerteIncomplete\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOfferteIncompleteReportResponse extends IOkApiResponse {\r\n offerteIncomplete?: OfferteIncompleteReportRow[];\r\n}\r\n\r\nexport abstract class OfferteIncompleteReportRowBase implements IOfferteIncompleteReportRowBase {\r\n offertaID?: number;\r\n partenza?: string;\r\n agenziaID?: number | null;\r\n agenzia?: string | null;\r\n utente?: string | null;\r\n emailUtente?: string | null;\r\n utentePreventivo?: string | null;\r\n emailUtentePreventivo?: string | null;\r\n utenteConferma?: string | null;\r\n emailUtenteConferma?: string | null;\r\n\r\n constructor(data?: IOfferteIncompleteReportRowBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.agenziaID = _data[\"agenziaID\"] !== undefined ? _data[\"agenziaID\"] : null;\r\n this.agenzia = _data[\"agenzia\"] !== undefined ? _data[\"agenzia\"] : null;\r\n this.utente = _data[\"utente\"] !== undefined ? _data[\"utente\"] : null;\r\n this.emailUtente = _data[\"emailUtente\"] !== undefined ? _data[\"emailUtente\"] : null;\r\n this.utentePreventivo = _data[\"utentePreventivo\"] !== undefined ? _data[\"utentePreventivo\"] : null;\r\n this.emailUtentePreventivo = _data[\"emailUtentePreventivo\"] !== undefined ? _data[\"emailUtentePreventivo\"] : null;\r\n this.utenteConferma = _data[\"utenteConferma\"] !== undefined ? _data[\"utenteConferma\"] : null;\r\n this.emailUtenteConferma = _data[\"emailUtenteConferma\"] !== undefined ? _data[\"emailUtenteConferma\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OfferteIncompleteReportRowBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'OfferteIncompleteReportRowBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"agenziaID\"] = this.agenziaID !== undefined ? this.agenziaID : null;\r\n data[\"agenzia\"] = this.agenzia !== undefined ? this.agenzia : null;\r\n data[\"utente\"] = this.utente !== undefined ? this.utente : null;\r\n data[\"emailUtente\"] = this.emailUtente !== undefined ? this.emailUtente : null;\r\n data[\"utentePreventivo\"] = this.utentePreventivo !== undefined ? this.utentePreventivo : null;\r\n data[\"emailUtentePreventivo\"] = this.emailUtentePreventivo !== undefined ? this.emailUtentePreventivo : null;\r\n data[\"utenteConferma\"] = this.utenteConferma !== undefined ? this.utenteConferma : null;\r\n data[\"emailUtenteConferma\"] = this.emailUtenteConferma !== undefined ? this.emailUtenteConferma : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOfferteIncompleteReportRowBase {\r\n offertaID?: number;\r\n partenza?: string;\r\n agenziaID?: number | null;\r\n agenzia?: string | null;\r\n utente?: string | null;\r\n emailUtente?: string | null;\r\n utentePreventivo?: string | null;\r\n emailUtentePreventivo?: string | null;\r\n utenteConferma?: string | null;\r\n emailUtenteConferma?: string | null;\r\n}\r\n\r\nexport class OfferteIncompleteReportRow extends OfferteIncompleteReportRowBase implements IOfferteIncompleteReportRow {\r\n datiMancantiOfferta?: EDatoClienteMancante[];\r\n datiMancantiClienti?: ClienteDatiMancanti[];\r\n\r\n constructor(data?: IOfferteIncompleteReportRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"datiMancantiOfferta\"])) {\r\n this.datiMancantiOfferta = [] as any;\r\n for (let item of _data[\"datiMancantiOfferta\"])\r\n this.datiMancantiOfferta!.push(item);\r\n }\r\n else {\r\n this.datiMancantiOfferta = null;\r\n }\r\n if (Array.isArray(_data[\"datiMancantiClienti\"])) {\r\n this.datiMancantiClienti = [] as any;\r\n for (let item of _data[\"datiMancantiClienti\"])\r\n this.datiMancantiClienti!.push(ClienteDatiMancanti.fromJS(item));\r\n }\r\n else {\r\n this.datiMancantiClienti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): OfferteIncompleteReportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OfferteIncompleteReportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.datiMancantiOfferta)) {\r\n data[\"datiMancantiOfferta\"] = [];\r\n for (let item of this.datiMancantiOfferta)\r\n data[\"datiMancantiOfferta\"].push(item);\r\n }\r\n if (Array.isArray(this.datiMancantiClienti)) {\r\n data[\"datiMancantiClienti\"] = [];\r\n for (let item of this.datiMancantiClienti)\r\n data[\"datiMancantiClienti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOfferteIncompleteReportRow extends IOfferteIncompleteReportRowBase {\r\n datiMancantiOfferta?: EDatoClienteMancante[];\r\n datiMancantiClienti?: ClienteDatiMancanti[];\r\n}\r\n\r\nexport enum EDatoClienteMancante {\r\n NumeroPassaporto = \"NumeroPassaporto\",\r\n ScadenzaPassaporto = \"ScadenzaPassaporto\",\r\n PaeseRilascioPassaporto = \"PaeseRilascioPassaporto\",\r\n NumeroCellulare = \"NumeroCellulare\",\r\n Email = \"Email\",\r\n CodiceFiscale = \"CodiceFiscale\",\r\n}\r\n\r\nexport class ClienteDatiMancanti implements IClienteDatiMancanti {\r\n cliente?: Cliente;\r\n datiMancanti?: EDatoClienteMancante[];\r\n traduzioniDatoClienteMancante?: { [key in keyof typeof EDatoClienteMancante]?: string; } | null;\r\n datiMancantiStr?: string;\r\n\r\n constructor(data?: IClienteDatiMancanti) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.cliente = _data[\"cliente\"] ? Cliente.fromJS(_data[\"cliente\"]) : null;\r\n if (Array.isArray(_data[\"datiMancanti\"])) {\r\n this.datiMancanti = [] as any;\r\n for (let item of _data[\"datiMancanti\"])\r\n this.datiMancanti!.push(item);\r\n }\r\n else {\r\n this.datiMancanti = null;\r\n }\r\n if (_data[\"traduzioniDatoClienteMancante\"]) {\r\n this.traduzioniDatoClienteMancante = {} as any;\r\n for (let key in _data[\"traduzioniDatoClienteMancante\"]) {\r\n if (_data[\"traduzioniDatoClienteMancante\"].hasOwnProperty(key))\r\n (this.traduzioniDatoClienteMancante)![key] = _data[\"traduzioniDatoClienteMancante\"][key] !== undefined ? _data[\"traduzioniDatoClienteMancante\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.traduzioniDatoClienteMancante = null;\r\n }\r\n this.datiMancantiStr = _data[\"datiMancantiStr\"] !== undefined ? _data[\"datiMancantiStr\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClienteDatiMancanti {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClienteDatiMancanti();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"cliente\"] = this.cliente ? this.cliente.toJSON() : null;\r\n if (Array.isArray(this.datiMancanti)) {\r\n data[\"datiMancanti\"] = [];\r\n for (let item of this.datiMancanti)\r\n data[\"datiMancanti\"].push(item);\r\n }\r\n if (this.traduzioniDatoClienteMancante) {\r\n data[\"traduzioniDatoClienteMancante\"] = {};\r\n for (let key in this.traduzioniDatoClienteMancante) {\r\n if (this.traduzioniDatoClienteMancante.hasOwnProperty(key))\r\n (data[\"traduzioniDatoClienteMancante\"])[key] = this.traduzioniDatoClienteMancante[key] !== undefined ? this.traduzioniDatoClienteMancante[key] : null;\r\n }\r\n }\r\n data[\"datiMancantiStr\"] = this.datiMancantiStr !== undefined ? this.datiMancantiStr : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClienteDatiMancanti {\r\n cliente?: Cliente;\r\n datiMancanti?: EDatoClienteMancante[];\r\n traduzioniDatoClienteMancante?: { [key in keyof typeof EDatoClienteMancante]?: string; } | null;\r\n datiMancantiStr?: string;\r\n}\r\n\r\nexport class OfferteIncompleteReportRequest extends ApiRequest implements IOfferteIncompleteReportRequest {\r\n giorniPartenza?: number | null;\r\n contattoAgenziaID?: number | null;\r\n export?: boolean;\r\n\r\n constructor(data?: IOfferteIncompleteReportRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.giorniPartenza = _data[\"giorniPartenza\"] !== undefined ? _data[\"giorniPartenza\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OfferteIncompleteReportRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OfferteIncompleteReportRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorniPartenza\"] = this.giorniPartenza !== undefined ? this.giorniPartenza : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOfferteIncompleteReportRequest extends IApiRequest {\r\n giorniPartenza?: number | null;\r\n contattoAgenziaID?: number | null;\r\n export?: boolean;\r\n}\r\n\r\nexport class SendOfferteIncompleteEmail extends OfferteIncompleteReportRequest implements ISendOfferteIncompleteEmail {\r\n recipient?: EOfferteIncompleteEmailRecipient;\r\n traduzioniDatoClienteMancante?: { [key in keyof typeof EDatoClienteMancante]?: string; } | null;\r\n\r\n constructor(data?: ISendOfferteIncompleteEmail) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.recipient = _data[\"recipient\"] !== undefined ? _data[\"recipient\"] : null;\r\n if (_data[\"traduzioniDatoClienteMancante\"]) {\r\n this.traduzioniDatoClienteMancante = {} as any;\r\n for (let key in _data[\"traduzioniDatoClienteMancante\"]) {\r\n if (_data[\"traduzioniDatoClienteMancante\"].hasOwnProperty(key))\r\n (this.traduzioniDatoClienteMancante)![key] = _data[\"traduzioniDatoClienteMancante\"][key] !== undefined ? _data[\"traduzioniDatoClienteMancante\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.traduzioniDatoClienteMancante = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SendOfferteIncompleteEmail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SendOfferteIncompleteEmail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"recipient\"] = this.recipient !== undefined ? this.recipient : null;\r\n if (this.traduzioniDatoClienteMancante) {\r\n data[\"traduzioniDatoClienteMancante\"] = {};\r\n for (let key in this.traduzioniDatoClienteMancante) {\r\n if (this.traduzioniDatoClienteMancante.hasOwnProperty(key))\r\n (data[\"traduzioniDatoClienteMancante\"])[key] = this.traduzioniDatoClienteMancante[key] !== undefined ? this.traduzioniDatoClienteMancante[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISendOfferteIncompleteEmail extends IOfferteIncompleteReportRequest {\r\n recipient?: EOfferteIncompleteEmailRecipient;\r\n traduzioniDatoClienteMancante?: { [key in keyof typeof EDatoClienteMancante]?: string; } | null;\r\n}\r\n\r\nexport enum EOfferteIncompleteEmailRecipient {\r\n Agenzia = \"Agenzia\",\r\n Utente = \"Utente\",\r\n UtentePreventivo = \"UtentePreventivo\",\r\n UtenteConferma = \"UtenteConferma\",\r\n}\r\n\r\nexport class NrTableResponseOfReservationRow extends OkApiResponse implements INrTableResponseOfReservationRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ReservationRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfReservationRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ReservationRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfReservationRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfReservationRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfReservationRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ReservationRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ReservationsListRequestResponse extends NrTableResponseOfReservationRow implements IReservationsListRequestResponse {\r\n\r\n constructor(data?: IReservationsListRequestResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ReservationsListRequestResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReservationsListRequestResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReservationsListRequestResponse extends INrTableResponseOfReservationRow {\r\n}\r\n\r\nexport class ReservationRow implements IReservationRow {\r\n contattoNome?: string | null;\r\n contattoValuta?: string | null;\r\n contattoId?: number | null;\r\n valutaId?: number | null;\r\n reservationIndex?: number;\r\n\r\n constructor(data?: IReservationRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.contattoNome = _data[\"contattoNome\"] !== undefined ? _data[\"contattoNome\"] : null;\r\n this.contattoValuta = _data[\"contattoValuta\"] !== undefined ? _data[\"contattoValuta\"] : null;\r\n this.contattoId = _data[\"contattoId\"] !== undefined ? _data[\"contattoId\"] : null;\r\n this.valutaId = _data[\"valutaId\"] !== undefined ? _data[\"valutaId\"] : null;\r\n this.reservationIndex = _data[\"reservationIndex\"] !== undefined ? _data[\"reservationIndex\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReservationRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReservationRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"contattoNome\"] = this.contattoNome !== undefined ? this.contattoNome : null;\r\n data[\"contattoValuta\"] = this.contattoValuta !== undefined ? this.contattoValuta : null;\r\n data[\"contattoId\"] = this.contattoId !== undefined ? this.contattoId : null;\r\n data[\"valutaId\"] = this.valutaId !== undefined ? this.valutaId : null;\r\n data[\"reservationIndex\"] = this.reservationIndex !== undefined ? this.reservationIndex : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReservationRow {\r\n contattoNome?: string | null;\r\n contattoValuta?: string | null;\r\n contattoId?: number | null;\r\n valutaId?: number | null;\r\n reservationIndex?: number;\r\n}\r\n\r\nexport class ReservationsListRequestRequest extends NrTableRequest implements IReservationsListRequestRequest {\r\n offertaID?: number;\r\n\r\n constructor(data?: IReservationsListRequestRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReservationsListRequestRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReservationsListRequestRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReservationsListRequestRequest extends INrTableRequest {\r\n offertaID?: number;\r\n}\r\n\r\nexport class IntranetSearchResponse extends OkApiResponse implements IIntranetSearchResponse {\r\n luoghiCount?: number;\r\n luoghi?: LuogoSearchRow[] | null;\r\n serviziCount?: number;\r\n servizi?: ServizioSearchRow[] | null;\r\n contattiCount?: number;\r\n contatti?: ContattoSearchRow[] | null;\r\n accordiCount?: number;\r\n accordi?: AccordoSearchRow[] | null;\r\n articoliCount?: number;\r\n articoli?: ArticoloSearchRow[] | null;\r\n\r\n constructor(data?: IIntranetSearchResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luoghiCount = _data[\"luoghiCount\"] !== undefined ? _data[\"luoghiCount\"] : null;\r\n if (Array.isArray(_data[\"luoghi\"])) {\r\n this.luoghi = [] as any;\r\n for (let item of _data[\"luoghi\"])\r\n this.luoghi!.push(LuogoSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.luoghi = null;\r\n }\r\n this.serviziCount = _data[\"serviziCount\"] !== undefined ? _data[\"serviziCount\"] : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServizioSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n this.contattiCount = _data[\"contattiCount\"] !== undefined ? _data[\"contattiCount\"] : null;\r\n if (Array.isArray(_data[\"contatti\"])) {\r\n this.contatti = [] as any;\r\n for (let item of _data[\"contatti\"])\r\n this.contatti!.push(ContattoSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.contatti = null;\r\n }\r\n this.accordiCount = _data[\"accordiCount\"] !== undefined ? _data[\"accordiCount\"] : null;\r\n if (Array.isArray(_data[\"accordi\"])) {\r\n this.accordi = [] as any;\r\n for (let item of _data[\"accordi\"])\r\n this.accordi!.push(AccordoSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.accordi = null;\r\n }\r\n this.articoliCount = _data[\"articoliCount\"] !== undefined ? _data[\"articoliCount\"] : null;\r\n if (Array.isArray(_data[\"articoli\"])) {\r\n this.articoli = [] as any;\r\n for (let item of _data[\"articoli\"])\r\n this.articoli!.push(ArticoloSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.articoli = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): IntranetSearchResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IntranetSearchResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luoghiCount\"] = this.luoghiCount !== undefined ? this.luoghiCount : null;\r\n if (Array.isArray(this.luoghi)) {\r\n data[\"luoghi\"] = [];\r\n for (let item of this.luoghi)\r\n data[\"luoghi\"].push(item.toJSON());\r\n }\r\n data[\"serviziCount\"] = this.serviziCount !== undefined ? this.serviziCount : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n data[\"contattiCount\"] = this.contattiCount !== undefined ? this.contattiCount : null;\r\n if (Array.isArray(this.contatti)) {\r\n data[\"contatti\"] = [];\r\n for (let item of this.contatti)\r\n data[\"contatti\"].push(item.toJSON());\r\n }\r\n data[\"accordiCount\"] = this.accordiCount !== undefined ? this.accordiCount : null;\r\n if (Array.isArray(this.accordi)) {\r\n data[\"accordi\"] = [];\r\n for (let item of this.accordi)\r\n data[\"accordi\"].push(item.toJSON());\r\n }\r\n data[\"articoliCount\"] = this.articoliCount !== undefined ? this.articoliCount : null;\r\n if (Array.isArray(this.articoli)) {\r\n data[\"articoli\"] = [];\r\n for (let item of this.articoli)\r\n data[\"articoli\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIntranetSearchResponse extends IOkApiResponse {\r\n luoghiCount?: number;\r\n luoghi?: LuogoSearchRow[] | null;\r\n serviziCount?: number;\r\n servizi?: ServizioSearchRow[] | null;\r\n contattiCount?: number;\r\n contatti?: ContattoSearchRow[] | null;\r\n accordiCount?: number;\r\n accordi?: AccordoSearchRow[] | null;\r\n articoliCount?: number;\r\n articoli?: ArticoloSearchRow[] | null;\r\n}\r\n\r\nexport class LuogoSearchRow implements ILuogoSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoLuogo;\r\n regione?: string | null;\r\n paese?: string | null;\r\n\r\n constructor(data?: ILuogoSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoLuogo;\r\n regione?: string | null;\r\n paese?: string | null;\r\n}\r\n\r\nexport class ServizioSearchRow implements IServizioSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoServizio;\r\n luogo?: string | null;\r\n\r\n constructor(data?: IServizioSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoServizio;\r\n luogo?: string | null;\r\n}\r\n\r\nexport class ContattoSearchRow implements IContattoSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n luogo?: string | null;\r\n tipo?: ETipoContatto;\r\n\r\n constructor(data?: IContattoSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ContattoSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ContattoSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContattoSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n luogo?: string | null;\r\n tipo?: ETipoContatto;\r\n}\r\n\r\nexport class AccordoSearchRow implements IAccordoSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoAccordo;\r\n\r\n constructor(data?: IAccordoSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AccordoSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AccordoSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAccordoSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipo?: ETipoAccordo;\r\n}\r\n\r\nexport class ArticoloSearchRow implements IArticoloSearchRow {\r\n id?: number;\r\n titolo?: string | null;\r\n luogo?: string | null;\r\n servizio?: string | null;\r\n\r\n constructor(data?: IArticoloSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloSearchRow {\r\n id?: number;\r\n titolo?: string | null;\r\n luogo?: string | null;\r\n servizio?: string | null;\r\n}\r\n\r\nexport class IntranetSearchRequest extends LocalizedRequest implements IIntranetSearchRequest {\r\n term!: string;\r\n\r\n constructor(data?: IIntranetSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): IntranetSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new IntranetSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIntranetSearchRequest extends ILocalizedRequest {\r\n term: string;\r\n}\r\n\r\nexport class SiteSearchResponse extends OkApiResponse implements ISiteSearchResponse {\r\n conteggioLuoghi?: number;\r\n altriLuoghi?: boolean;\r\n luoghi?: LuogoSiteSearchRow[] | null;\r\n conteggioServizi?: number;\r\n altriServizi?: boolean;\r\n servizi?: ServizioSiteSearchRow[] | null;\r\n\r\n constructor(data?: ISiteSearchResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.conteggioLuoghi = _data[\"conteggioLuoghi\"] !== undefined ? _data[\"conteggioLuoghi\"] : null;\r\n this.altriLuoghi = _data[\"altriLuoghi\"] !== undefined ? _data[\"altriLuoghi\"] : null;\r\n if (Array.isArray(_data[\"luoghi\"])) {\r\n this.luoghi = [] as any;\r\n for (let item of _data[\"luoghi\"])\r\n this.luoghi!.push(LuogoSiteSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.luoghi = null;\r\n }\r\n this.conteggioServizi = _data[\"conteggioServizi\"] !== undefined ? _data[\"conteggioServizi\"] : null;\r\n this.altriServizi = _data[\"altriServizi\"] !== undefined ? _data[\"altriServizi\"] : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServizioSiteSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SiteSearchResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SiteSearchResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"conteggioLuoghi\"] = this.conteggioLuoghi !== undefined ? this.conteggioLuoghi : null;\r\n data[\"altriLuoghi\"] = this.altriLuoghi !== undefined ? this.altriLuoghi : null;\r\n if (Array.isArray(this.luoghi)) {\r\n data[\"luoghi\"] = [];\r\n for (let item of this.luoghi)\r\n data[\"luoghi\"].push(item.toJSON());\r\n }\r\n data[\"conteggioServizi\"] = this.conteggioServizi !== undefined ? this.conteggioServizi : null;\r\n data[\"altriServizi\"] = this.altriServizi !== undefined ? this.altriServizi : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISiteSearchResponse extends IOkApiResponse {\r\n conteggioLuoghi?: number;\r\n altriLuoghi?: boolean;\r\n luoghi?: LuogoSiteSearchRow[] | null;\r\n conteggioServizi?: number;\r\n altriServizi?: boolean;\r\n servizi?: ServizioSiteSearchRow[] | null;\r\n}\r\n\r\nexport class LuogoSiteSearchRow implements ILuogoSiteSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n nomeClean?: string | null;\r\n urlPart?: string | null;\r\n regione?: string | null;\r\n paese?: string | null;\r\n hotel?: number;\r\n tour?: number;\r\n selfDrive?: number;\r\n trasferimenti?: number;\r\n visite?: number;\r\n itinerariConsigliati?: number;\r\n\r\n constructor(data?: ILuogoSiteSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeClean = _data[\"nomeClean\"] !== undefined ? _data[\"nomeClean\"] : null;\r\n this.urlPart = _data[\"urlPart\"] !== undefined ? _data[\"urlPart\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.hotel = _data[\"hotel\"] !== undefined ? _data[\"hotel\"] : null;\r\n this.tour = _data[\"tour\"] !== undefined ? _data[\"tour\"] : null;\r\n this.selfDrive = _data[\"selfDrive\"] !== undefined ? _data[\"selfDrive\"] : null;\r\n this.trasferimenti = _data[\"trasferimenti\"] !== undefined ? _data[\"trasferimenti\"] : null;\r\n this.visite = _data[\"visite\"] !== undefined ? _data[\"visite\"] : null;\r\n this.itinerariConsigliati = _data[\"itinerariConsigliati\"] !== undefined ? _data[\"itinerariConsigliati\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LuogoSiteSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LuogoSiteSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeClean\"] = this.nomeClean !== undefined ? this.nomeClean : null;\r\n data[\"urlPart\"] = this.urlPart !== undefined ? this.urlPart : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"hotel\"] = this.hotel !== undefined ? this.hotel : null;\r\n data[\"tour\"] = this.tour !== undefined ? this.tour : null;\r\n data[\"selfDrive\"] = this.selfDrive !== undefined ? this.selfDrive : null;\r\n data[\"trasferimenti\"] = this.trasferimenti !== undefined ? this.trasferimenti : null;\r\n data[\"visite\"] = this.visite !== undefined ? this.visite : null;\r\n data[\"itinerariConsigliati\"] = this.itinerariConsigliati !== undefined ? this.itinerariConsigliati : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILuogoSiteSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n nomeClean?: string | null;\r\n urlPart?: string | null;\r\n regione?: string | null;\r\n paese?: string | null;\r\n hotel?: number;\r\n tour?: number;\r\n selfDrive?: number;\r\n trasferimenti?: number;\r\n visite?: number;\r\n itinerariConsigliati?: number;\r\n}\r\n\r\nexport class ServizioSiteSearchRow implements IServizioSiteSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n esterno?: boolean;\r\n nomeClean?: string | null;\r\n urlPart?: string | null;\r\n tipo?: ETipoServizio;\r\n isVisita?: boolean;\r\n luogoID?: number;\r\n luogo?: string | null;\r\n luogoUrlPart?: string | null;\r\n regione?: string | null;\r\n paese?: string | null;\r\n giornaliero?: boolean;\r\n partenze?: PartenzaSiteSearch[] | null;\r\n\r\n constructor(data?: IServizioSiteSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.esterno = _data[\"esterno\"] !== undefined ? _data[\"esterno\"] : null;\r\n this.nomeClean = _data[\"nomeClean\"] !== undefined ? _data[\"nomeClean\"] : null;\r\n this.urlPart = _data[\"urlPart\"] !== undefined ? _data[\"urlPart\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.isVisita = _data[\"isVisita\"] !== undefined ? _data[\"isVisita\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoUrlPart = _data[\"luogoUrlPart\"] !== undefined ? _data[\"luogoUrlPart\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n this.giornaliero = _data[\"giornaliero\"] !== undefined ? _data[\"giornaliero\"] : null;\r\n if (Array.isArray(_data[\"partenze\"])) {\r\n this.partenze = [] as any;\r\n for (let item of _data[\"partenze\"])\r\n this.partenze!.push(PartenzaSiteSearch.fromJS(item));\r\n }\r\n else {\r\n this.partenze = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioSiteSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioSiteSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"esterno\"] = this.esterno !== undefined ? this.esterno : null;\r\n data[\"nomeClean\"] = this.nomeClean !== undefined ? this.nomeClean : null;\r\n data[\"urlPart\"] = this.urlPart !== undefined ? this.urlPart : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"isVisita\"] = this.isVisita !== undefined ? this.isVisita : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoUrlPart\"] = this.luogoUrlPart !== undefined ? this.luogoUrlPart : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n data[\"giornaliero\"] = this.giornaliero !== undefined ? this.giornaliero : null;\r\n if (Array.isArray(this.partenze)) {\r\n data[\"partenze\"] = [];\r\n for (let item of this.partenze)\r\n data[\"partenze\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioSiteSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n esterno?: boolean;\r\n nomeClean?: string | null;\r\n urlPart?: string | null;\r\n tipo?: ETipoServizio;\r\n isVisita?: boolean;\r\n luogoID?: number;\r\n luogo?: string | null;\r\n luogoUrlPart?: string | null;\r\n regione?: string | null;\r\n paese?: string | null;\r\n giornaliero?: boolean;\r\n partenze?: PartenzaSiteSearch[] | null;\r\n}\r\n\r\nexport class PartenzaSiteSearch implements IPartenzaSiteSearch {\r\n data?: string;\r\n prima?: boolean;\r\n dopo?: boolean;\r\n\r\n constructor(data?: IPartenzaSiteSearch) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.prima = _data[\"prima\"] !== undefined ? _data[\"prima\"] : null;\r\n this.dopo = _data[\"dopo\"] !== undefined ? _data[\"dopo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PartenzaSiteSearch {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PartenzaSiteSearch();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"prima\"] = this.prima !== undefined ? this.prima : null;\r\n data[\"dopo\"] = this.dopo !== undefined ? this.dopo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPartenzaSiteSearch {\r\n data?: string;\r\n prima?: boolean;\r\n dopo?: boolean;\r\n}\r\n\r\nexport class SiteSearchRequest extends SiteRequest implements ISiteSearchRequest {\r\n term?: string | null;\r\n fullResult?: boolean;\r\n fromDate?: string;\r\n toDate?: string;\r\n\r\n constructor(data?: ISiteSearchRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.fullResult = _data[\"fullResult\"] !== undefined ? _data[\"fullResult\"] : null;\r\n this.fromDate = _data[\"fromDate\"] !== undefined ? _data[\"fromDate\"] : null;\r\n this.toDate = _data[\"toDate\"] !== undefined ? _data[\"toDate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SiteSearchRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SiteSearchRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"fullResult\"] = this.fullResult !== undefined ? this.fullResult : null;\r\n data[\"fromDate\"] = this.fromDate !== undefined ? this.fromDate : null;\r\n data[\"toDate\"] = this.toDate !== undefined ? this.toDate : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISiteSearchRequest extends ISiteRequest {\r\n term?: string | null;\r\n fullResult?: boolean;\r\n fromDate?: string;\r\n toDate?: string;\r\n}\r\n\r\nexport class TripsSearchResponse extends OkApiResponse implements ITripsSearchResponse {\r\n offerte?: OffertaSearchRow[] | null;\r\n\r\n constructor(data?: ITripsSearchResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"offerte\"])) {\r\n this.offerte = [] as any;\r\n for (let item of _data[\"offerte\"])\r\n this.offerte!.push(OffertaSearchRow.fromJS(item));\r\n }\r\n else {\r\n this.offerte = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripsSearchResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripsSearchResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.offerte)) {\r\n data[\"offerte\"] = [];\r\n for (let item of this.offerte)\r\n data[\"offerte\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripsSearchResponse extends IOkApiResponse {\r\n offerte?: OffertaSearchRow[] | null;\r\n}\r\n\r\nexport class OffertaSearchRow implements IOffertaSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n destinazione?: string | null;\r\n partenza?: string;\r\n conferma?: boolean;\r\n annullamentoTO?: boolean;\r\n nomiPax?: string | null;\r\n\r\n constructor(data?: IOffertaSearchRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.conferma = _data[\"conferma\"] !== undefined ? _data[\"conferma\"] : null;\r\n this.annullamentoTO = _data[\"annullamentoTO\"] !== undefined ? _data[\"annullamentoTO\"] : null;\r\n this.nomiPax = _data[\"nomiPax\"] !== undefined ? _data[\"nomiPax\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaSearchRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new OffertaSearchRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"conferma\"] = this.conferma !== undefined ? this.conferma : null;\r\n data[\"annullamentoTO\"] = this.annullamentoTO !== undefined ? this.annullamentoTO : null;\r\n data[\"nomiPax\"] = this.nomiPax !== undefined ? this.nomiPax : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaSearchRow {\r\n id?: number;\r\n nome?: string | null;\r\n destinazione?: string | null;\r\n partenza?: string;\r\n conferma?: boolean;\r\n annullamentoTO?: boolean;\r\n nomiPax?: string | null;\r\n}\r\n\r\nexport class ServizioGetResponse extends OkApiResponse implements IServizioGetResponse {\r\n nome?: string | null;\r\n luogo?: string | null;\r\n servizio?: Servizio | null;\r\n\r\n constructor(data?: IServizioGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.servizio = _data[\"servizio\"] ? Servizio.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioGetResponse extends IOkApiResponse {\r\n nome?: string | null;\r\n luogo?: string | null;\r\n servizio?: Servizio | null;\r\n}\r\n\r\nexport class ServizioGetRequest extends LocalizedRequest implements IServizioGetRequest {\r\n servizioID?: number;\r\n\r\n constructor(data?: IServizioGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioGetRequest extends ILocalizedRequest {\r\n servizioID?: number;\r\n}\r\n\r\nexport class CloneServizioRequest extends ServizioGetRequest implements ICloneServizioRequest {\r\n tipologie?: boolean;\r\n itinerari?: boolean;\r\n attributi?: boolean;\r\n partenze?: boolean;\r\n accordi?: boolean;\r\n validita?: boolean;\r\n regoleServizio?: boolean;\r\n regoleVendita?: boolean;\r\n costi?: boolean;\r\n associazioni?: boolean;\r\n multiluogo?: boolean;\r\n immagini?: boolean;\r\n\r\n constructor(data?: ICloneServizioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipologie = _data[\"tipologie\"] !== undefined ? _data[\"tipologie\"] : null;\r\n this.itinerari = _data[\"itinerari\"] !== undefined ? _data[\"itinerari\"] : null;\r\n this.attributi = _data[\"attributi\"] !== undefined ? _data[\"attributi\"] : null;\r\n this.partenze = _data[\"partenze\"] !== undefined ? _data[\"partenze\"] : null;\r\n this.accordi = _data[\"accordi\"] !== undefined ? _data[\"accordi\"] : null;\r\n this.validita = _data[\"validita\"] !== undefined ? _data[\"validita\"] : null;\r\n this.regoleServizio = _data[\"regoleServizio\"] !== undefined ? _data[\"regoleServizio\"] : null;\r\n this.regoleVendita = _data[\"regoleVendita\"] !== undefined ? _data[\"regoleVendita\"] : null;\r\n this.costi = _data[\"costi\"] !== undefined ? _data[\"costi\"] : null;\r\n this.associazioni = _data[\"associazioni\"] !== undefined ? _data[\"associazioni\"] : null;\r\n this.multiluogo = _data[\"multiluogo\"] !== undefined ? _data[\"multiluogo\"] : null;\r\n this.immagini = _data[\"immagini\"] !== undefined ? _data[\"immagini\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CloneServizioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CloneServizioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipologie\"] = this.tipologie !== undefined ? this.tipologie : null;\r\n data[\"itinerari\"] = this.itinerari !== undefined ? this.itinerari : null;\r\n data[\"attributi\"] = this.attributi !== undefined ? this.attributi : null;\r\n data[\"partenze\"] = this.partenze !== undefined ? this.partenze : null;\r\n data[\"accordi\"] = this.accordi !== undefined ? this.accordi : null;\r\n data[\"validita\"] = this.validita !== undefined ? this.validita : null;\r\n data[\"regoleServizio\"] = this.regoleServizio !== undefined ? this.regoleServizio : null;\r\n data[\"regoleVendita\"] = this.regoleVendita !== undefined ? this.regoleVendita : null;\r\n data[\"costi\"] = this.costi !== undefined ? this.costi : null;\r\n data[\"associazioni\"] = this.associazioni !== undefined ? this.associazioni : null;\r\n data[\"multiluogo\"] = this.multiluogo !== undefined ? this.multiluogo : null;\r\n data[\"immagini\"] = this.immagini !== undefined ? this.immagini : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICloneServizioRequest extends IServizioGetRequest {\r\n tipologie?: boolean;\r\n itinerari?: boolean;\r\n attributi?: boolean;\r\n partenze?: boolean;\r\n accordi?: boolean;\r\n validita?: boolean;\r\n regoleServizio?: boolean;\r\n regoleVendita?: boolean;\r\n costi?: boolean;\r\n associazioni?: boolean;\r\n multiluogo?: boolean;\r\n immagini?: boolean;\r\n}\r\n\r\nexport class GetValiditaResponse extends OkApiResponse implements IGetValiditaResponse {\r\n validita?: ValiditaListRow[] | null;\r\n\r\n constructor(data?: IGetValiditaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"validita\"])) {\r\n this.validita = [] as any;\r\n for (let item of _data[\"validita\"])\r\n this.validita!.push(ValiditaListRow.fromJS(item));\r\n }\r\n else {\r\n this.validita = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetValiditaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetValiditaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.validita)) {\r\n data[\"validita\"] = [];\r\n for (let item of this.validita)\r\n data[\"validita\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetValiditaResponse extends IOkApiResponse {\r\n validita?: ValiditaListRow[] | null;\r\n}\r\n\r\nexport class ValiditaListRow implements IValiditaListRow {\r\n id?: number;\r\n validita?: Validita | null;\r\n giorni?: EGiornoSettimana[] | null;\r\n scaduta?: boolean;\r\n\r\n constructor(data?: IValiditaListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.validita = _data[\"validita\"] ? Validita.fromJS(_data[\"validita\"]) : null;\r\n if (Array.isArray(_data[\"giorni\"])) {\r\n this.giorni = [] as any;\r\n for (let item of _data[\"giorni\"])\r\n this.giorni!.push(item);\r\n }\r\n else {\r\n this.giorni = null;\r\n }\r\n this.scaduta = _data[\"scaduta\"] !== undefined ? _data[\"scaduta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ValiditaListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ValiditaListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"validita\"] = this.validita ? this.validita.toJSON() : null;\r\n if (Array.isArray(this.giorni)) {\r\n data[\"giorni\"] = [];\r\n for (let item of this.giorni)\r\n data[\"giorni\"].push(item);\r\n }\r\n data[\"scaduta\"] = this.scaduta !== undefined ? this.scaduta : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValiditaListRow {\r\n id?: number;\r\n validita?: Validita | null;\r\n giorni?: EGiornoSettimana[] | null;\r\n scaduta?: boolean;\r\n}\r\n\r\nexport enum EGiornoSettimana {\r\n Lunedi = \"Lunedi\",\r\n Martedi = \"Martedi\",\r\n Mercoledi = \"Mercoledi\",\r\n Giovedi = \"Giovedi\",\r\n Venerdi = \"Venerdi\",\r\n Sabato = \"Sabato\",\r\n Domenica = \"Domenica\",\r\n}\r\n\r\nexport class CloneValiditaRequest extends ServizioGetRequest implements ICloneValiditaRequest {\r\n validitaIDs?: number[] | null;\r\n deltaDays?: number;\r\n deltaCostoPercentuale?: number;\r\n\r\n constructor(data?: ICloneValiditaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"validitaIDs\"])) {\r\n this.validitaIDs = [] as any;\r\n for (let item of _data[\"validitaIDs\"])\r\n this.validitaIDs!.push(item);\r\n }\r\n else {\r\n this.validitaIDs = null;\r\n }\r\n this.deltaDays = _data[\"deltaDays\"] !== undefined ? _data[\"deltaDays\"] : null;\r\n this.deltaCostoPercentuale = _data[\"deltaCostoPercentuale\"] !== undefined ? _data[\"deltaCostoPercentuale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CloneValiditaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CloneValiditaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.validitaIDs)) {\r\n data[\"validitaIDs\"] = [];\r\n for (let item of this.validitaIDs)\r\n data[\"validitaIDs\"].push(item);\r\n }\r\n data[\"deltaDays\"] = this.deltaDays !== undefined ? this.deltaDays : null;\r\n data[\"deltaCostoPercentuale\"] = this.deltaCostoPercentuale !== undefined ? this.deltaCostoPercentuale : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICloneValiditaRequest extends IServizioGetRequest {\r\n validitaIDs?: number[] | null;\r\n deltaDays?: number;\r\n deltaCostoPercentuale?: number;\r\n}\r\n\r\nexport class GetPartenzeResponse extends OkApiResponse implements IGetPartenzeResponse {\r\n /** Partenze raggruppare per mese, in ordine di data */\r\n partenzeMese?: PartenzeMese[];\r\n\r\n constructor(data?: IGetPartenzeResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"partenzeMese\"])) {\r\n this.partenzeMese = [] as any;\r\n for (let item of _data[\"partenzeMese\"])\r\n this.partenzeMese!.push(PartenzeMese.fromJS(item));\r\n }\r\n else {\r\n this.partenzeMese = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPartenzeResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPartenzeResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.partenzeMese)) {\r\n data[\"partenzeMese\"] = [];\r\n for (let item of this.partenzeMese)\r\n data[\"partenzeMese\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPartenzeResponse extends IOkApiResponse {\r\n /** Partenze raggruppare per mese, in ordine di data */\r\n partenzeMese?: PartenzeMese[];\r\n}\r\n\r\nexport class PartenzeMese implements IPartenzeMese {\r\n /** Data fissata al primo del mese che rappresenta questo raggruppamento */\r\n primoDelMese?: string;\r\n /** Elenco delle partenze, in ordine di data */\r\n partenze?: Partenza[];\r\n\r\n constructor(data?: IPartenzeMese) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.primoDelMese = _data[\"primoDelMese\"] !== undefined ? _data[\"primoDelMese\"] : null;\r\n if (Array.isArray(_data[\"partenze\"])) {\r\n this.partenze = [] as any;\r\n for (let item of _data[\"partenze\"])\r\n this.partenze!.push(Partenza.fromJS(item));\r\n }\r\n else {\r\n this.partenze = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): PartenzeMese {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PartenzeMese();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"primoDelMese\"] = this.primoDelMese !== undefined ? this.primoDelMese : null;\r\n if (Array.isArray(this.partenze)) {\r\n data[\"partenze\"] = [];\r\n for (let item of this.partenze)\r\n data[\"partenze\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPartenzeMese {\r\n /** Data fissata al primo del mese che rappresenta questo raggruppamento */\r\n primoDelMese?: string;\r\n /** Elenco delle partenze, in ordine di data */\r\n partenze?: Partenza[];\r\n}\r\n\r\nexport class CreatePartenzeRequest extends ServizioGetRequest implements ICreatePartenzeRequest {\r\n /** Partenza stampino usata per i flag */\r\n stampino!: PartenzaBase;\r\n /** Data iniziale */\r\n start?: string;\r\n /** Data finale */\r\n stop?: string;\r\n /** Incremento in giorni, da 1 a 255 */\r\n step?: number;\r\n\r\n constructor(data?: ICreatePartenzeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.stampino = _data[\"stampino\"] ? PartenzaBase.fromJS(_data[\"stampino\"]) : null;\r\n this.start = _data[\"start\"] !== undefined ? _data[\"start\"] : null;\r\n this.stop = _data[\"stop\"] !== undefined ? _data[\"stop\"] : null;\r\n this.step = _data[\"step\"] !== undefined ? _data[\"step\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreatePartenzeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreatePartenzeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"stampino\"] = this.stampino ? this.stampino.toJSON() : null;\r\n data[\"start\"] = this.start !== undefined ? this.start : null;\r\n data[\"stop\"] = this.stop !== undefined ? this.stop : null;\r\n data[\"step\"] = this.step !== undefined ? this.step : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreatePartenzeRequest extends IServizioGetRequest {\r\n /** Partenza stampino usata per i flag */\r\n stampino: PartenzaBase;\r\n /** Data iniziale */\r\n start?: string;\r\n /** Data finale */\r\n stop?: string;\r\n /** Incremento in giorni, da 1 a 255 */\r\n step?: number;\r\n}\r\n\r\nexport abstract class PartenzaBase implements IPartenzaBase {\r\n partenzaID?: number;\r\n servizioID?: number;\r\n data?: string | null;\r\n flags?: EPartenzaFlags;\r\n\r\n constructor(data?: IPartenzaBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.partenzaID = _data[\"partenzaID\"] !== undefined ? _data[\"partenzaID\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.flags = _data[\"flags\"] !== undefined ? _data[\"flags\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PartenzaBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'PartenzaBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"partenzaID\"] = this.partenzaID !== undefined ? this.partenzaID : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"flags\"] = this.flags !== undefined ? this.flags : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPartenzaBase {\r\n partenzaID?: number;\r\n servizioID?: number;\r\n data?: string | null;\r\n flags?: EPartenzaFlags;\r\n}\r\n\r\nexport class GetAssociazioniResponse extends OkApiResponse implements IGetAssociazioniResponse {\r\n /** Elenco delle associazioni non specifiche di questo servizio */\r\n associazioni?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche tipologia / supplemento */\r\n associazioniSupplementi?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche di regole vendita aggiuntive */\r\n associazioniRegoleVenditaAggiuntive?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche di offerte */\r\n associazioniOfferte?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche di penali di cancellazione */\r\n associazioniPenali?: ServizioAssociazioneRow[];\r\n\r\n constructor(data?: IGetAssociazioniResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"associazioni\"])) {\r\n this.associazioni = [] as any;\r\n for (let item of _data[\"associazioni\"])\r\n this.associazioni!.push(ServizioAssociazioneRow.fromJS(item));\r\n }\r\n else {\r\n this.associazioni = null;\r\n }\r\n if (Array.isArray(_data[\"associazioniSupplementi\"])) {\r\n this.associazioniSupplementi = [] as any;\r\n for (let item of _data[\"associazioniSupplementi\"])\r\n this.associazioniSupplementi!.push(ServizioAssociazioneRow.fromJS(item));\r\n }\r\n else {\r\n this.associazioniSupplementi = null;\r\n }\r\n if (Array.isArray(_data[\"associazioniRegoleVenditaAggiuntive\"])) {\r\n this.associazioniRegoleVenditaAggiuntive = [] as any;\r\n for (let item of _data[\"associazioniRegoleVenditaAggiuntive\"])\r\n this.associazioniRegoleVenditaAggiuntive!.push(ServizioAssociazioneRow.fromJS(item));\r\n }\r\n else {\r\n this.associazioniRegoleVenditaAggiuntive = null;\r\n }\r\n if (Array.isArray(_data[\"associazioniOfferte\"])) {\r\n this.associazioniOfferte = [] as any;\r\n for (let item of _data[\"associazioniOfferte\"])\r\n this.associazioniOfferte!.push(ServizioAssociazioneRow.fromJS(item));\r\n }\r\n else {\r\n this.associazioniOfferte = null;\r\n }\r\n if (Array.isArray(_data[\"associazioniPenali\"])) {\r\n this.associazioniPenali = [] as any;\r\n for (let item of _data[\"associazioniPenali\"])\r\n this.associazioniPenali!.push(ServizioAssociazioneRow.fromJS(item));\r\n }\r\n else {\r\n this.associazioniPenali = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAssociazioniResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAssociazioniResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.associazioni)) {\r\n data[\"associazioni\"] = [];\r\n for (let item of this.associazioni)\r\n data[\"associazioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.associazioniSupplementi)) {\r\n data[\"associazioniSupplementi\"] = [];\r\n for (let item of this.associazioniSupplementi)\r\n data[\"associazioniSupplementi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.associazioniRegoleVenditaAggiuntive)) {\r\n data[\"associazioniRegoleVenditaAggiuntive\"] = [];\r\n for (let item of this.associazioniRegoleVenditaAggiuntive)\r\n data[\"associazioniRegoleVenditaAggiuntive\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.associazioniOfferte)) {\r\n data[\"associazioniOfferte\"] = [];\r\n for (let item of this.associazioniOfferte)\r\n data[\"associazioniOfferte\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.associazioniPenali)) {\r\n data[\"associazioniPenali\"] = [];\r\n for (let item of this.associazioniPenali)\r\n data[\"associazioniPenali\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAssociazioniResponse extends IOkApiResponse {\r\n /** Elenco delle associazioni non specifiche di questo servizio */\r\n associazioni?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche tipologia / supplemento */\r\n associazioniSupplementi?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche di regole vendita aggiuntive */\r\n associazioniRegoleVenditaAggiuntive?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche di offerte */\r\n associazioniOfferte?: ServizioAssociazioneRow[];\r\n /** Elenco delle associazioni specifiche di penali di cancellazione */\r\n associazioniPenali?: ServizioAssociazioneRow[];\r\n}\r\n\r\n/** Rappresentazione tabulare di un'associazione + Dati per ricavare la maschera di edit */\r\nexport class ServizioAssociazioneRow implements IServizioAssociazioneRow {\r\n /** ID dell'associazione */\r\n id?: number;\r\n /** Entità dell'associazione */\r\n associazione?: ServizioAssociazione;\r\n /** Eventuale configurazione di un'offerta componibile */\r\n offertaComponibile?: OffertaComponibile | null;\r\n /** Nome della tipologia associata. Se null => si associa a tutte le tipologie */\r\n tipologiaParent?: string | null;\r\n /** Nome del supplemento specifico. Se null => si associa a tutti i supplementi */\r\n supplementoSpecifico?: string | null;\r\n /** Nome della tabella costi commissioni. Se null => si associa a tutte le tabelle */\r\n tabellaCostiCommissioni?: string | null;\r\n /** Nome della regola vendita. Se null => si associa a tutte le regole vendita */\r\n regolaVendita?: string | null;\r\n /** Nome della sistemazione. Se null => si associa a tutte le sistemazioni */\r\n sistemazione?: string | null;\r\n /** Nome del trattamento. Se null => si associa a tutti i trattamenti */\r\n trattamento?: string | null;\r\n /** Periodi di esclusione (solo offerte componibili) */\r\n esclusioni?: string | null;\r\n /** Flag di disabilitazione (solo offerte componibili) */\r\n disabilitata?: boolean;\r\n /** Label dell'offerta (solo offerte componibili) */\r\n labelOfferta?: string | null;\r\n /** Codice dell'offerta (solo offerte componibili) */\r\n codice?: string | null;\r\n /** Ordine di priorità (solo offerte componibili) */\r\n priorita?: number | null;\r\n /** Codici di cumulabilità (solo offerte componibili, T=tutte) */\r\n cumulabilita?: string | null;\r\n /** True se l'associazione è generica e può essere convertita in tipo supplemento */\r\n convertibileSupplemento?: boolean;\r\n /** True se l'associazione è generica e può essere convertita in tipo regola vendita aggiuntiva */\r\n convertibileRegola?: boolean;\r\n /** True se l'associazione è generica e può essere convertita in tipo regola vendita penale */\r\n convertibilePenale?: boolean;\r\n /** True se l'associazione è generica e può essere convertita in tipo offerta componibile */\r\n convertibileOfferta?: boolean;\r\n\r\n constructor(data?: IServizioAssociazioneRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.associazione = _data[\"associazione\"] ? ServizioAssociazione.fromJS(_data[\"associazione\"]) : null;\r\n this.offertaComponibile = _data[\"offertaComponibile\"] ? OffertaComponibile.fromJS(_data[\"offertaComponibile\"]) : null;\r\n this.tipologiaParent = _data[\"tipologiaParent\"] !== undefined ? _data[\"tipologiaParent\"] : null;\r\n this.supplementoSpecifico = _data[\"supplementoSpecifico\"] !== undefined ? _data[\"supplementoSpecifico\"] : null;\r\n this.tabellaCostiCommissioni = _data[\"tabellaCostiCommissioni\"] !== undefined ? _data[\"tabellaCostiCommissioni\"] : null;\r\n this.regolaVendita = _data[\"regolaVendita\"] !== undefined ? _data[\"regolaVendita\"] : null;\r\n this.sistemazione = _data[\"sistemazione\"] !== undefined ? _data[\"sistemazione\"] : null;\r\n this.trattamento = _data[\"trattamento\"] !== undefined ? _data[\"trattamento\"] : null;\r\n this.esclusioni = _data[\"esclusioni\"] !== undefined ? _data[\"esclusioni\"] : null;\r\n this.disabilitata = _data[\"disabilitata\"] !== undefined ? _data[\"disabilitata\"] : null;\r\n this.labelOfferta = _data[\"labelOfferta\"] !== undefined ? _data[\"labelOfferta\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.priorita = _data[\"priorita\"] !== undefined ? _data[\"priorita\"] : null;\r\n this.cumulabilita = _data[\"cumulabilita\"] !== undefined ? _data[\"cumulabilita\"] : null;\r\n this.convertibileSupplemento = _data[\"convertibileSupplemento\"] !== undefined ? _data[\"convertibileSupplemento\"] : null;\r\n this.convertibileRegola = _data[\"convertibileRegola\"] !== undefined ? _data[\"convertibileRegola\"] : null;\r\n this.convertibilePenale = _data[\"convertibilePenale\"] !== undefined ? _data[\"convertibilePenale\"] : null;\r\n this.convertibileOfferta = _data[\"convertibileOfferta\"] !== undefined ? _data[\"convertibileOfferta\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAssociazioneRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAssociazioneRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"associazione\"] = this.associazione ? this.associazione.toJSON() : null;\r\n data[\"offertaComponibile\"] = this.offertaComponibile ? this.offertaComponibile.toJSON() : null;\r\n data[\"tipologiaParent\"] = this.tipologiaParent !== undefined ? this.tipologiaParent : null;\r\n data[\"supplementoSpecifico\"] = this.supplementoSpecifico !== undefined ? this.supplementoSpecifico : null;\r\n data[\"tabellaCostiCommissioni\"] = this.tabellaCostiCommissioni !== undefined ? this.tabellaCostiCommissioni : null;\r\n data[\"regolaVendita\"] = this.regolaVendita !== undefined ? this.regolaVendita : null;\r\n data[\"sistemazione\"] = this.sistemazione !== undefined ? this.sistemazione : null;\r\n data[\"trattamento\"] = this.trattamento !== undefined ? this.trattamento : null;\r\n data[\"esclusioni\"] = this.esclusioni !== undefined ? this.esclusioni : null;\r\n data[\"disabilitata\"] = this.disabilitata !== undefined ? this.disabilitata : null;\r\n data[\"labelOfferta\"] = this.labelOfferta !== undefined ? this.labelOfferta : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"priorita\"] = this.priorita !== undefined ? this.priorita : null;\r\n data[\"cumulabilita\"] = this.cumulabilita !== undefined ? this.cumulabilita : null;\r\n data[\"convertibileSupplemento\"] = this.convertibileSupplemento !== undefined ? this.convertibileSupplemento : null;\r\n data[\"convertibileRegola\"] = this.convertibileRegola !== undefined ? this.convertibileRegola : null;\r\n data[\"convertibilePenale\"] = this.convertibilePenale !== undefined ? this.convertibilePenale : null;\r\n data[\"convertibileOfferta\"] = this.convertibileOfferta !== undefined ? this.convertibileOfferta : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Rappresentazione tabulare di un'associazione + Dati per ricavare la maschera di edit */\r\nexport interface IServizioAssociazioneRow {\r\n /** ID dell'associazione */\r\n id?: number;\r\n /** Entità dell'associazione */\r\n associazione?: ServizioAssociazione;\r\n /** Eventuale configurazione di un'offerta componibile */\r\n offertaComponibile?: OffertaComponibile | null;\r\n /** Nome della tipologia associata. Se null => si associa a tutte le tipologie */\r\n tipologiaParent?: string | null;\r\n /** Nome del supplemento specifico. Se null => si associa a tutti i supplementi */\r\n supplementoSpecifico?: string | null;\r\n /** Nome della tabella costi commissioni. Se null => si associa a tutte le tabelle */\r\n tabellaCostiCommissioni?: string | null;\r\n /** Nome della regola vendita. Se null => si associa a tutte le regole vendita */\r\n regolaVendita?: string | null;\r\n /** Nome della sistemazione. Se null => si associa a tutte le sistemazioni */\r\n sistemazione?: string | null;\r\n /** Nome del trattamento. Se null => si associa a tutti i trattamenti */\r\n trattamento?: string | null;\r\n /** Periodi di esclusione (solo offerte componibili) */\r\n esclusioni?: string | null;\r\n /** Flag di disabilitazione (solo offerte componibili) */\r\n disabilitata?: boolean;\r\n /** Label dell'offerta (solo offerte componibili) */\r\n labelOfferta?: string | null;\r\n /** Codice dell'offerta (solo offerte componibili) */\r\n codice?: string | null;\r\n /** Ordine di priorità (solo offerte componibili) */\r\n priorita?: number | null;\r\n /** Codici di cumulabilità (solo offerte componibili, T=tutte) */\r\n cumulabilita?: string | null;\r\n /** True se l'associazione è generica e può essere convertita in tipo supplemento */\r\n convertibileSupplemento?: boolean;\r\n /** True se l'associazione è generica e può essere convertita in tipo regola vendita aggiuntiva */\r\n convertibileRegola?: boolean;\r\n /** True se l'associazione è generica e può essere convertita in tipo regola vendita penale */\r\n convertibilePenale?: boolean;\r\n /** True se l'associazione è generica e può essere convertita in tipo offerta componibile */\r\n convertibileOfferta?: boolean;\r\n}\r\n\r\nexport class DeleteAssocizioneRequest extends ServizioGetRequest implements IDeleteAssocizioneRequest {\r\n /** ID dell'associazione da eliminare */\r\n associazioneID?: number;\r\n\r\n constructor(data?: IDeleteAssocizioneRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.associazioneID = _data[\"associazioneID\"] !== undefined ? _data[\"associazioneID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteAssocizioneRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteAssocizioneRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"associazioneID\"] = this.associazioneID !== undefined ? this.associazioneID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteAssocizioneRequest extends IServizioGetRequest {\r\n /** ID dell'associazione da eliminare */\r\n associazioneID?: number;\r\n}\r\n\r\nexport class DeleteAssocizioniRequest extends ServizioGetRequest implements IDeleteAssocizioniRequest {\r\n /** Lista degli ID delle associazioni da eliminare */\r\n associazioniIDs!: number[];\r\n\r\n constructor(data?: IDeleteAssocizioniRequest) {\r\n super(data);\r\n if (!data) {\r\n this.associazioniIDs = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"associazioniIDs\"])) {\r\n this.associazioniIDs = [] as any;\r\n for (let item of _data[\"associazioniIDs\"])\r\n this.associazioniIDs!.push(item);\r\n }\r\n else {\r\n this.associazioniIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteAssocizioniRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteAssocizioniRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.associazioniIDs)) {\r\n data[\"associazioniIDs\"] = [];\r\n for (let item of this.associazioniIDs)\r\n data[\"associazioniIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteAssocizioniRequest extends IServizioGetRequest {\r\n /** Lista degli ID delle associazioni da eliminare */\r\n associazioniIDs: number[];\r\n}\r\n\r\nexport class GetCostiResponse extends OkApiResponse implements IGetCostiResponse {\r\n tabelle?: CostiTabellaCostoRow[];\r\n\r\n constructor(data?: IGetCostiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tabelle\"])) {\r\n this.tabelle = [] as any;\r\n for (let item of _data[\"tabelle\"])\r\n this.tabelle!.push(CostiTabellaCostoRow.fromJS(item));\r\n }\r\n else {\r\n this.tabelle = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetCostiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetCostiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tabelle)) {\r\n data[\"tabelle\"] = [];\r\n for (let item of this.tabelle)\r\n data[\"tabelle\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetCostiResponse extends IOkApiResponse {\r\n tabelle?: CostiTabellaCostoRow[];\r\n}\r\n\r\nexport class CostiTabellaCostoRow implements ICostiTabellaCostoRow {\r\n /** ID della tabella costi commissioni */\r\n tabellaID?: number;\r\n /** Nome localizzato della tabella costi commissioni */\r\n nomeTabella?: string;\r\n /** Data di inizio validità della tabella costi commissioni */\r\n tabellaValidaDal?: string;\r\n /** Data di fine validità della tabella costi commissioni */\r\n tabellaValidaAl?: string;\r\n /** ID dell'accordo a cui appartiene la tabella costi commissioni */\r\n accordoID?: number;\r\n /** Nome dell'accordo a cui appartiene la tabella costi commissioni */\r\n nomeAccordo?: string | null;\r\n /** Codice della valuta dell'accordo a cui appartiene la tabella costi commissioni */\r\n codiceValuta?: string | null;\r\n /** Raggruppamento per tipologie e trattamenti */\r\n tipologie?: CostiTipologiaRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n\r\n constructor(data?: ICostiTabellaCostoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tabellaID = _data[\"tabellaID\"] !== undefined ? _data[\"tabellaID\"] : null;\r\n this.nomeTabella = _data[\"nomeTabella\"] !== undefined ? _data[\"nomeTabella\"] : null;\r\n this.tabellaValidaDal = _data[\"tabellaValidaDal\"] !== undefined ? _data[\"tabellaValidaDal\"] : null;\r\n this.tabellaValidaAl = _data[\"tabellaValidaAl\"] !== undefined ? _data[\"tabellaValidaAl\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.nomeAccordo = _data[\"nomeAccordo\"] !== undefined ? _data[\"nomeAccordo\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n if (Array.isArray(_data[\"tipologie\"])) {\r\n this.tipologie = [] as any;\r\n for (let item of _data[\"tipologie\"])\r\n this.tipologie!.push(CostiTipologiaRow.fromJS(item));\r\n }\r\n else {\r\n this.tipologie = null;\r\n }\r\n this.selected = _data[\"selected\"] !== undefined ? _data[\"selected\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostiTabellaCostoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostiTabellaCostoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tabellaID\"] = this.tabellaID !== undefined ? this.tabellaID : null;\r\n data[\"nomeTabella\"] = this.nomeTabella !== undefined ? this.nomeTabella : null;\r\n data[\"tabellaValidaDal\"] = this.tabellaValidaDal !== undefined ? this.tabellaValidaDal : null;\r\n data[\"tabellaValidaAl\"] = this.tabellaValidaAl !== undefined ? this.tabellaValidaAl : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"nomeAccordo\"] = this.nomeAccordo !== undefined ? this.nomeAccordo : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n if (Array.isArray(this.tipologie)) {\r\n data[\"tipologie\"] = [];\r\n for (let item of this.tipologie)\r\n data[\"tipologie\"].push(item.toJSON());\r\n }\r\n data[\"selected\"] = this.selected !== undefined ? this.selected : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostiTabellaCostoRow {\r\n /** ID della tabella costi commissioni */\r\n tabellaID?: number;\r\n /** Nome localizzato della tabella costi commissioni */\r\n nomeTabella?: string;\r\n /** Data di inizio validità della tabella costi commissioni */\r\n tabellaValidaDal?: string;\r\n /** Data di fine validità della tabella costi commissioni */\r\n tabellaValidaAl?: string;\r\n /** ID dell'accordo a cui appartiene la tabella costi commissioni */\r\n accordoID?: number;\r\n /** Nome dell'accordo a cui appartiene la tabella costi commissioni */\r\n nomeAccordo?: string | null;\r\n /** Codice della valuta dell'accordo a cui appartiene la tabella costi commissioni */\r\n codiceValuta?: string | null;\r\n /** Raggruppamento per tipologie e trattamenti */\r\n tipologie?: CostiTipologiaRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n}\r\n\r\nexport class CostiTipologiaRow implements ICostiTipologiaRow {\r\n /** ID della tipologia */\r\n servizioTipologiaID?: number;\r\n /** Nome localizzato della tipologia */\r\n tipologia?: string;\r\n /** True se la tiplogia ha il \"verifica partenze\" */\r\n verificaPartenze?: boolean;\r\n /** ID del trattamento */\r\n trattamentoID?: number | null;\r\n /** Nome localizzato del trattamento */\r\n trattamento?: string | null;\r\n /** Raggruppamento per regole servizio / vendita / codice prenotazione / vincoli età / regole bambino */\r\n regole?: CostoRegolaRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n\r\n constructor(data?: ICostiTipologiaRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n this.tipologia = _data[\"tipologia\"] !== undefined ? _data[\"tipologia\"] : null;\r\n this.verificaPartenze = _data[\"verificaPartenze\"] !== undefined ? _data[\"verificaPartenze\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.trattamento = _data[\"trattamento\"] !== undefined ? _data[\"trattamento\"] : null;\r\n if (Array.isArray(_data[\"regole\"])) {\r\n this.regole = [] as any;\r\n for (let item of _data[\"regole\"])\r\n this.regole!.push(CostoRegolaRow.fromJS(item));\r\n }\r\n else {\r\n this.regole = null;\r\n }\r\n this.selected = _data[\"selected\"] !== undefined ? _data[\"selected\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostiTipologiaRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostiTipologiaRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n data[\"tipologia\"] = this.tipologia !== undefined ? this.tipologia : null;\r\n data[\"verificaPartenze\"] = this.verificaPartenze !== undefined ? this.verificaPartenze : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"trattamento\"] = this.trattamento !== undefined ? this.trattamento : null;\r\n if (Array.isArray(this.regole)) {\r\n data[\"regole\"] = [];\r\n for (let item of this.regole)\r\n data[\"regole\"].push(item.toJSON());\r\n }\r\n data[\"selected\"] = this.selected !== undefined ? this.selected : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostiTipologiaRow {\r\n /** ID della tipologia */\r\n servizioTipologiaID?: number;\r\n /** Nome localizzato della tipologia */\r\n tipologia?: string;\r\n /** True se la tiplogia ha il \"verifica partenze\" */\r\n verificaPartenze?: boolean;\r\n /** ID del trattamento */\r\n trattamentoID?: number | null;\r\n /** Nome localizzato del trattamento */\r\n trattamento?: string | null;\r\n /** Raggruppamento per regole servizio / vendita / codice prenotazione / vincoli età / regole bambino */\r\n regole?: CostoRegolaRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n}\r\n\r\nexport class CostoRegolaRow implements ICostoRegolaRow {\r\n /** Se true la regola di inserimento costi indica uno sconto percentuale sull'omologo costo adulto invece di una cifra */\r\n scontoBambinoPercentuale?: boolean;\r\n /** Regola servizio */\r\n regolaServizio?: ServizioRegola | null;\r\n /** Regola vendita, se c'è */\r\n regolaVendita?: ServizioRegolaVendita | null;\r\n /** Nome localizzato della regola vendita */\r\n nomeRegolaVendita?: string | null;\r\n /** Età massima bambino, se questo è un costo bambino */\r\n etaMassima?: number | null;\r\n /** Tipo di applicazione costi bambino, se sono costi bambino */\r\n regolaCostiBambino?: ERegolaCostiBambino | null;\r\n /** Codice di prenotazione facoltativo */\r\n codicePrenotazione?: string | null;\r\n /** Raggruppamento per validità */\r\n validita?: CostoValiditaRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n\r\n constructor(data?: ICostoRegolaRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.scontoBambinoPercentuale = _data[\"scontoBambinoPercentuale\"] !== undefined ? _data[\"scontoBambinoPercentuale\"] : null;\r\n this.regolaServizio = _data[\"regolaServizio\"] ? ServizioRegola.fromJS(_data[\"regolaServizio\"]) : null;\r\n this.regolaVendita = _data[\"regolaVendita\"] ? ServizioRegolaVendita.fromJS(_data[\"regolaVendita\"]) : null;\r\n this.nomeRegolaVendita = _data[\"nomeRegolaVendita\"] !== undefined ? _data[\"nomeRegolaVendita\"] : null;\r\n this.etaMassima = _data[\"etaMassima\"] !== undefined ? _data[\"etaMassima\"] : null;\r\n this.regolaCostiBambino = _data[\"regolaCostiBambino\"] !== undefined ? _data[\"regolaCostiBambino\"] : null;\r\n this.codicePrenotazione = _data[\"codicePrenotazione\"] !== undefined ? _data[\"codicePrenotazione\"] : null;\r\n if (Array.isArray(_data[\"validita\"])) {\r\n this.validita = [] as any;\r\n for (let item of _data[\"validita\"])\r\n this.validita!.push(CostoValiditaRow.fromJS(item));\r\n }\r\n else {\r\n this.validita = null;\r\n }\r\n this.selected = _data[\"selected\"] !== undefined ? _data[\"selected\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostoRegolaRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostoRegolaRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"scontoBambinoPercentuale\"] = this.scontoBambinoPercentuale !== undefined ? this.scontoBambinoPercentuale : null;\r\n data[\"regolaServizio\"] = this.regolaServizio ? this.regolaServizio.toJSON() : null;\r\n data[\"regolaVendita\"] = this.regolaVendita ? this.regolaVendita.toJSON() : null;\r\n data[\"nomeRegolaVendita\"] = this.nomeRegolaVendita !== undefined ? this.nomeRegolaVendita : null;\r\n data[\"etaMassima\"] = this.etaMassima !== undefined ? this.etaMassima : null;\r\n data[\"regolaCostiBambino\"] = this.regolaCostiBambino !== undefined ? this.regolaCostiBambino : null;\r\n data[\"codicePrenotazione\"] = this.codicePrenotazione !== undefined ? this.codicePrenotazione : null;\r\n if (Array.isArray(this.validita)) {\r\n data[\"validita\"] = [];\r\n for (let item of this.validita)\r\n data[\"validita\"].push(item.toJSON());\r\n }\r\n data[\"selected\"] = this.selected !== undefined ? this.selected : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostoRegolaRow {\r\n /** Se true la regola di inserimento costi indica uno sconto percentuale sull'omologo costo adulto invece di una cifra */\r\n scontoBambinoPercentuale?: boolean;\r\n /** Regola servizio */\r\n regolaServizio?: ServizioRegola | null;\r\n /** Regola vendita, se c'è */\r\n regolaVendita?: ServizioRegolaVendita | null;\r\n /** Nome localizzato della regola vendita */\r\n nomeRegolaVendita?: string | null;\r\n /** Età massima bambino, se questo è un costo bambino */\r\n etaMassima?: number | null;\r\n /** Tipo di applicazione costi bambino, se sono costi bambino */\r\n regolaCostiBambino?: ERegolaCostiBambino | null;\r\n /** Codice di prenotazione facoltativo */\r\n codicePrenotazione?: string | null;\r\n /** Raggruppamento per validità */\r\n validita?: CostoValiditaRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n}\r\n\r\nexport class CostoValiditaRow implements ICostoValiditaRow {\r\n /** ID della validità */\r\n validitaID?: number;\r\n /** True se la validità associata ha i prezzi indicativi */\r\n prezziIndicativi?: boolean;\r\n /** Elenco dei giorni della settimana della validità associata */\r\n giorni?: EGiornoSettimana[];\r\n /** True se la regola è valida tutti i giorni */\r\n tuttiIGiorni?: boolean;\r\n /** Data di inizio della validità */\r\n dataInizio?: string;\r\n /** Data di fine della validità */\r\n dataFine?: string;\r\n /** True se le date di validità sono nel passato */\r\n scaduta?: boolean;\r\n /** Raggruppamento per sistemazione */\r\n beddings?: CostoBeddingRow[];\r\n /** Flag ad uso della UI */\r\n selected?: boolean;\r\n\r\n constructor(data?: ICostoValiditaRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.validitaID = _data[\"validitaID\"] !== undefined ? _data[\"validitaID\"] : null;\r\n this.prezziIndicativi = _data[\"prezziIndicativi\"] !== undefined ? _data[\"prezziIndicativi\"] : null;\r\n if (Array.isArray(_data[\"giorni\"])) {\r\n this.giorni = [] as any;\r\n for (let item of _data[\"giorni\"])\r\n this.giorni!.push(item);\r\n }\r\n else {\r\n this.giorni = null;\r\n }\r\n this.tuttiIGiorni = _data[\"tuttiIGiorni\"] !== undefined ? _data[\"tuttiIGiorni\"] : null;\r\n this.dataInizio = _data[\"dataInizio\"] !== undefined ? _data[\"dataInizio\"] : null;\r\n this.dataFine = _data[\"dataFine\"] !== undefined ? _data[\"dataFine\"] : null;\r\n this.scaduta = _data[\"scaduta\"] !== undefined ? _data[\"scaduta\"] : null;\r\n if (Array.isArray(_data[\"beddings\"])) {\r\n this.beddings = [] as any;\r\n for (let item of _data[\"beddings\"])\r\n this.beddings!.push(CostoBeddingRow.fromJS(item));\r\n }\r\n else {\r\n this.beddings = null;\r\n }\r\n this.selected = _data[\"selected\"] !== undefined ? _data[\"selected\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostoValiditaRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostoValiditaRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"validitaID\"] = this.validitaID !== undefined ? this.validitaID : null;\r\n data[\"prezziIndicativi\"] = this.prezziIndicativi !== undefined ? this.prezziIndicativi : null;\r\n if (Array.isArray(this.giorni)) {\r\n data[\"giorni\"] = [];\r\n for (let item of this.giorni)\r\n data[\"giorni\"].push(item);\r\n }\r\n data[\"tuttiIGiorni\"] = this.tuttiIGiorni !== undefined ? this.tuttiIGiorni : null;\r\n data[\"dataInizio\"] = this.dataInizio !== undefined ? this.dataInizio : null;\r\n data[\"dataFine\"] = this.dataFine !== undefined ? this.dataFine : null;\r\n data[\"scaduta\"] = this.scaduta !== undefined ? this.scaduta : null;\r\n if (Array.isArray(this.beddings)) {\r\n data[\"beddings\"] = [];\r\n for (let item of this.beddings)\r\n data[\"beddings\"].push(item.toJSON());\r\n }\r\n data[\"selected\"] = this.selected !== undefined ? this.selected : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostoValiditaRow {\r\n /** ID della validità */\r\n validitaID?: number;\r\n /** True se la validità associata ha i prezzi indicativi */\r\n prezziIndicativi?: boolean;\r\n /** Elenco dei giorni della settimana della validità associata */\r\n giorni?: EGiornoSettimana[];\r\n /** True se la regola è valida tutti i giorni */\r\n tuttiIGiorni?: boolean;\r\n /** Data di inizio della validità */\r\n dataInizio?: string;\r\n /** Data di fine della validità */\r\n dataFine?: string;\r\n /** True se le date di validità sono nel passato */\r\n scaduta?: boolean;\r\n /** Raggruppamento per sistemazione */\r\n beddings?: CostoBeddingRow[];\r\n /** Flag ad uso della UI */\r\n selected?: boolean;\r\n}\r\n\r\nexport class CostoBeddingRow implements ICostoBeddingRow {\r\n /** Questa voce è un segnaposto (vuoto) per creare la griglia */\r\n placeholder?: boolean;\r\n /** ID della riga di costo */\r\n costoID?: number;\r\n /** ID del bedding associato. Null se corrispondente a \"nessuno\" */\r\n beddingID?: number | null;\r\n /** Sigla del tipo di bedding (S1, D2, D3, ecc) */\r\n codice?: string | null;\r\n /** Prezzo associato in EURO */\r\n prezzo?: number | null;\r\n /** Ad uso della UI */\r\n prezzoOriginale?: number | null;\r\n /** Costo associato nella valuta dell'accordo */\r\n costo?: number;\r\n /** Ad uso della UI */\r\n costoOriginale?: number;\r\n /** Margine personalizzato, se diverso da quello previsto da accordo e tabella costi */\r\n margine?: number | null;\r\n /** True se questo costo è molteplice. E non dovrebbe esserlo... */\r\n haConflitti?: boolean;\r\n /** True se si tratta di uno sconto percentuale. Da capire se serve davvero. */\r\n scontoBambinoPercentuale?: boolean;\r\n /** Lista dei conflitti */\r\n conflitti?: CostoBeddingRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n\r\n constructor(data?: ICostoBeddingRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.placeholder = _data[\"placeholder\"] !== undefined ? _data[\"placeholder\"] : null;\r\n this.costoID = _data[\"costoID\"] !== undefined ? _data[\"costoID\"] : null;\r\n this.beddingID = _data[\"beddingID\"] !== undefined ? _data[\"beddingID\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.prezzo = _data[\"prezzo\"] !== undefined ? _data[\"prezzo\"] : null;\r\n this.prezzoOriginale = _data[\"prezzoOriginale\"] !== undefined ? _data[\"prezzoOriginale\"] : null;\r\n this.costo = _data[\"costo\"] !== undefined ? _data[\"costo\"] : null;\r\n this.costoOriginale = _data[\"costoOriginale\"] !== undefined ? _data[\"costoOriginale\"] : null;\r\n this.margine = _data[\"margine\"] !== undefined ? _data[\"margine\"] : null;\r\n this.haConflitti = _data[\"haConflitti\"] !== undefined ? _data[\"haConflitti\"] : null;\r\n this.scontoBambinoPercentuale = _data[\"scontoBambinoPercentuale\"] !== undefined ? _data[\"scontoBambinoPercentuale\"] : null;\r\n if (Array.isArray(_data[\"conflitti\"])) {\r\n this.conflitti = [] as any;\r\n for (let item of _data[\"conflitti\"])\r\n this.conflitti!.push(CostoBeddingRow.fromJS(item));\r\n }\r\n else {\r\n this.conflitti = null;\r\n }\r\n this.selected = _data[\"selected\"] !== undefined ? _data[\"selected\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostoBeddingRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostoBeddingRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"placeholder\"] = this.placeholder !== undefined ? this.placeholder : null;\r\n data[\"costoID\"] = this.costoID !== undefined ? this.costoID : null;\r\n data[\"beddingID\"] = this.beddingID !== undefined ? this.beddingID : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"prezzo\"] = this.prezzo !== undefined ? this.prezzo : null;\r\n data[\"prezzoOriginale\"] = this.prezzoOriginale !== undefined ? this.prezzoOriginale : null;\r\n data[\"costo\"] = this.costo !== undefined ? this.costo : null;\r\n data[\"costoOriginale\"] = this.costoOriginale !== undefined ? this.costoOriginale : null;\r\n data[\"margine\"] = this.margine !== undefined ? this.margine : null;\r\n data[\"haConflitti\"] = this.haConflitti !== undefined ? this.haConflitti : null;\r\n data[\"scontoBambinoPercentuale\"] = this.scontoBambinoPercentuale !== undefined ? this.scontoBambinoPercentuale : null;\r\n if (Array.isArray(this.conflitti)) {\r\n data[\"conflitti\"] = [];\r\n for (let item of this.conflitti)\r\n data[\"conflitti\"].push(item.toJSON());\r\n }\r\n data[\"selected\"] = this.selected !== undefined ? this.selected : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostoBeddingRow {\r\n /** Questa voce è un segnaposto (vuoto) per creare la griglia */\r\n placeholder?: boolean;\r\n /** ID della riga di costo */\r\n costoID?: number;\r\n /** ID del bedding associato. Null se corrispondente a \"nessuno\" */\r\n beddingID?: number | null;\r\n /** Sigla del tipo di bedding (S1, D2, D3, ecc) */\r\n codice?: string | null;\r\n /** Prezzo associato in EURO */\r\n prezzo?: number | null;\r\n /** Ad uso della UI */\r\n prezzoOriginale?: number | null;\r\n /** Costo associato nella valuta dell'accordo */\r\n costo?: number;\r\n /** Ad uso della UI */\r\n costoOriginale?: number;\r\n /** Margine personalizzato, se diverso da quello previsto da accordo e tabella costi */\r\n margine?: number | null;\r\n /** True se questo costo è molteplice. E non dovrebbe esserlo... */\r\n haConflitti?: boolean;\r\n /** True se si tratta di uno sconto percentuale. Da capire se serve davvero. */\r\n scontoBambinoPercentuale?: boolean;\r\n /** Lista dei conflitti */\r\n conflitti?: CostoBeddingRow[];\r\n /** Campo ad uso della UI, per selezionare i valori */\r\n selected?: boolean;\r\n}\r\n\r\nexport class DeleteCostiRequest extends ServizioGetRequest implements IDeleteCostiRequest {\r\n costiIDs?: number[] | null;\r\n\r\n constructor(data?: IDeleteCostiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"costiIDs\"])) {\r\n this.costiIDs = [] as any;\r\n for (let item of _data[\"costiIDs\"])\r\n this.costiIDs!.push(item);\r\n }\r\n else {\r\n this.costiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteCostiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteCostiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.costiIDs)) {\r\n data[\"costiIDs\"] = [];\r\n for (let item of this.costiIDs)\r\n data[\"costiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteCostiRequest extends IServizioGetRequest {\r\n costiIDs?: number[] | null;\r\n}\r\n\r\nexport class GetDynamicPackageRulesResponse extends OkApiResponse implements IGetDynamicPackageRulesResponse {\r\n regole?: ServizioRegolaScontoPacchetto[] | null;\r\n\r\n constructor(data?: IGetDynamicPackageRulesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"regole\"])) {\r\n this.regole = [] as any;\r\n for (let item of _data[\"regole\"])\r\n this.regole!.push(ServizioRegolaScontoPacchetto.fromJS(item));\r\n }\r\n else {\r\n this.regole = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDynamicPackageRulesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDynamicPackageRulesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.regole)) {\r\n data[\"regole\"] = [];\r\n for (let item of this.regole)\r\n data[\"regole\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDynamicPackageRulesResponse extends IOkApiResponse {\r\n regole?: ServizioRegolaScontoPacchetto[] | null;\r\n}\r\n\r\nexport class GetDynamicPackageRulesRequest extends ServizioGetRequest implements IGetDynamicPackageRulesRequest {\r\n\r\n constructor(data?: IGetDynamicPackageRulesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetDynamicPackageRulesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDynamicPackageRulesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDynamicPackageRulesRequest extends IServizioGetRequest {\r\n}\r\n\r\nexport class DeleteDynamicPackageRuleRequest extends GetDynamicPackageRulesRequest implements IDeleteDynamicPackageRuleRequest {\r\n regolaPacchettoID?: number;\r\n\r\n constructor(data?: IDeleteDynamicPackageRuleRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regolaPacchettoID = _data[\"regolaPacchettoID\"] !== undefined ? _data[\"regolaPacchettoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteDynamicPackageRuleRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteDynamicPackageRuleRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regolaPacchettoID\"] = this.regolaPacchettoID !== undefined ? this.regolaPacchettoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteDynamicPackageRuleRequest extends IGetDynamicPackageRulesRequest {\r\n regolaPacchettoID?: number;\r\n}\r\n\r\nexport class DeleteDynamicPackageRulesRequest extends GetDynamicPackageRulesRequest implements IDeleteDynamicPackageRulesRequest {\r\n regolePacchettoIDs?: number[] | null;\r\n\r\n constructor(data?: IDeleteDynamicPackageRulesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"regolePacchettoIDs\"])) {\r\n this.regolePacchettoIDs = [] as any;\r\n for (let item of _data[\"regolePacchettoIDs\"])\r\n this.regolePacchettoIDs!.push(item);\r\n }\r\n else {\r\n this.regolePacchettoIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteDynamicPackageRulesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteDynamicPackageRulesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.regolePacchettoIDs)) {\r\n data[\"regolePacchettoIDs\"] = [];\r\n for (let item of this.regolePacchettoIDs)\r\n data[\"regolePacchettoIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteDynamicPackageRulesRequest extends IGetDynamicPackageRulesRequest {\r\n regolePacchettoIDs?: number[] | null;\r\n}\r\n\r\nexport class GetItinerariResponse extends OkApiResponse implements IGetItinerariResponse {\r\n itinerari?: ItinerarioListRow[] | null;\r\n\r\n constructor(data?: IGetItinerariResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"itinerari\"])) {\r\n this.itinerari = [] as any;\r\n for (let item of _data[\"itinerari\"])\r\n this.itinerari!.push(ItinerarioListRow.fromJS(item));\r\n }\r\n else {\r\n this.itinerari = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetItinerariResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetItinerariResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.itinerari)) {\r\n data[\"itinerari\"] = [];\r\n for (let item of this.itinerari)\r\n data[\"itinerari\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetItinerariResponse extends IOkApiResponse {\r\n itinerari?: ItinerarioListRow[] | null;\r\n}\r\n\r\nexport class ItinerarioListRow implements IItinerarioListRow {\r\n id?: number;\r\n nome?: string | null;\r\n giorni?: number;\r\n notti?: number;\r\n origine?: string | null;\r\n destinazione?: string | null;\r\n compagniaAerea?: string | null;\r\n itinerario?: ServizioItinerario | null;\r\n tappe?: ServizioItinerarioGiornoRow[] | null;\r\n\r\n constructor(data?: IItinerarioListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.origine = _data[\"origine\"] !== undefined ? _data[\"origine\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n this.itinerario = _data[\"itinerario\"] ? ServizioItinerario.fromJS(_data[\"itinerario\"]) : null;\r\n if (Array.isArray(_data[\"tappe\"])) {\r\n this.tappe = [] as any;\r\n for (let item of _data[\"tappe\"])\r\n this.tappe!.push(ServizioItinerarioGiornoRow.fromJS(item));\r\n }\r\n else {\r\n this.tappe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ItinerarioListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ItinerarioListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"origine\"] = this.origine !== undefined ? this.origine : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n if (Array.isArray(this.tappe)) {\r\n data[\"tappe\"] = [];\r\n for (let item of this.tappe)\r\n data[\"tappe\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IItinerarioListRow {\r\n id?: number;\r\n nome?: string | null;\r\n giorni?: number;\r\n notti?: number;\r\n origine?: string | null;\r\n destinazione?: string | null;\r\n compagniaAerea?: string | null;\r\n itinerario?: ServizioItinerario | null;\r\n tappe?: ServizioItinerarioGiornoRow[] | null;\r\n}\r\n\r\nexport class ServizioItinerarioGiornoRow implements IServizioItinerarioGiornoRow {\r\n tappa?: ServizioItinerarioGiorno | null;\r\n luogo?: string | null;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean;\r\n servizi?: ServizioItinerarioGiornoServizioRow[] | null;\r\n\r\n constructor(data?: IServizioItinerarioGiornoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tappa = _data[\"tappa\"] ? ServizioItinerarioGiorno.fromJS(_data[\"tappa\"]) : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.compagniaAerea = _data[\"compagniaAerea\"] !== undefined ? _data[\"compagniaAerea\"] : null;\r\n this.classe = _data[\"classe\"] !== undefined ? _data[\"classe\"] : null;\r\n this.compagniaAerea2 = _data[\"compagniaAerea2\"] !== undefined ? _data[\"compagniaAerea2\"] : null;\r\n this.classe2 = _data[\"classe2\"] !== undefined ? _data[\"classe2\"] : null;\r\n this.cambioHotel = _data[\"cambioHotel\"] !== undefined ? _data[\"cambioHotel\"] : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServizioItinerarioGiornoServizioRow.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerarioGiornoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerarioGiornoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tappa\"] = this.tappa ? this.tappa.toJSON() : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"compagniaAerea\"] = this.compagniaAerea !== undefined ? this.compagniaAerea : null;\r\n data[\"classe\"] = this.classe !== undefined ? this.classe : null;\r\n data[\"compagniaAerea2\"] = this.compagniaAerea2 !== undefined ? this.compagniaAerea2 : null;\r\n data[\"classe2\"] = this.classe2 !== undefined ? this.classe2 : null;\r\n data[\"cambioHotel\"] = this.cambioHotel !== undefined ? this.cambioHotel : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerarioGiornoRow {\r\n tappa?: ServizioItinerarioGiorno | null;\r\n luogo?: string | null;\r\n compagniaAerea?: string | null;\r\n classe?: string | null;\r\n compagniaAerea2?: string | null;\r\n classe2?: string | null;\r\n cambioHotel?: boolean;\r\n servizi?: ServizioItinerarioGiornoServizioRow[] | null;\r\n}\r\n\r\nexport class ServizioItinerarioGiornoServizioRow implements IServizioItinerarioGiornoServizioRow {\r\n servizio?: ServizioItinerarioGiornoServizio | null;\r\n tipoServizio?: ETipoServizio;\r\n nomeServizio?: string | null;\r\n nomeTipologia?: string | null;\r\n\r\n constructor(data?: IServizioItinerarioGiornoServizioRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? ServizioItinerarioGiornoServizio.fromJS(_data[\"servizio\"]) : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.nomeServizio = _data[\"nomeServizio\"] !== undefined ? _data[\"nomeServizio\"] : null;\r\n this.nomeTipologia = _data[\"nomeTipologia\"] !== undefined ? _data[\"nomeTipologia\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioItinerarioGiornoServizioRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioItinerarioGiornoServizioRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"nomeServizio\"] = this.nomeServizio !== undefined ? this.nomeServizio : null;\r\n data[\"nomeTipologia\"] = this.nomeTipologia !== undefined ? this.nomeTipologia : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioItinerarioGiornoServizioRow {\r\n servizio?: ServizioItinerarioGiornoServizio | null;\r\n tipoServizio?: ETipoServizio;\r\n nomeServizio?: string | null;\r\n nomeTipologia?: string | null;\r\n}\r\n\r\nexport class DeleteItinerarioRequest extends ServizioGetRequest implements IDeleteItinerarioRequest {\r\n servizioItinerarioID?: number;\r\n\r\n constructor(data?: IDeleteItinerarioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioItinerarioID = _data[\"servizioItinerarioID\"] !== undefined ? _data[\"servizioItinerarioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteItinerarioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteItinerarioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioItinerarioID\"] = this.servizioItinerarioID !== undefined ? this.servizioItinerarioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteItinerarioRequest extends IServizioGetRequest {\r\n servizioItinerarioID?: number;\r\n}\r\n\r\nexport class DeletePartenzeRequest extends ServizioGetRequest implements IDeletePartenzeRequest {\r\n /** Data iniziale */\r\n start?: string;\r\n /** Data finale */\r\n stop?: string;\r\n\r\n constructor(data?: IDeletePartenzeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.start = _data[\"start\"] !== undefined ? _data[\"start\"] : null;\r\n this.stop = _data[\"stop\"] !== undefined ? _data[\"stop\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeletePartenzeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeletePartenzeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"start\"] = this.start !== undefined ? this.start : null;\r\n data[\"stop\"] = this.stop !== undefined ? this.stop : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeletePartenzeRequest extends IServizioGetRequest {\r\n /** Data iniziale */\r\n start?: string;\r\n /** Data finale */\r\n stop?: string;\r\n}\r\n\r\nexport class GetRegoleServizioResponse extends OkApiResponse implements IGetRegoleServizioResponse {\r\n regole?: ServizioRegola[] | null;\r\n\r\n constructor(data?: IGetRegoleServizioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"regole\"])) {\r\n this.regole = [] as any;\r\n for (let item of _data[\"regole\"])\r\n this.regole!.push(ServizioRegola.fromJS(item));\r\n }\r\n else {\r\n this.regole = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRegoleServizioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRegoleServizioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.regole)) {\r\n data[\"regole\"] = [];\r\n for (let item of this.regole)\r\n data[\"regole\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetRegoleServizioResponse extends IOkApiResponse {\r\n regole?: ServizioRegola[] | null;\r\n}\r\n\r\nexport class DeleteRegolaServizioRequest extends ServizioGetRequest implements IDeleteRegolaServizioRequest {\r\n regolaServizioID?: number;\r\n\r\n constructor(data?: IDeleteRegolaServizioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regolaServizioID = _data[\"regolaServizioID\"] !== undefined ? _data[\"regolaServizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteRegolaServizioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteRegolaServizioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regolaServizioID\"] = this.regolaServizioID !== undefined ? this.regolaServizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteRegolaServizioRequest extends IServizioGetRequest {\r\n regolaServizioID?: number;\r\n}\r\n\r\nexport class GetRegoleVenditaResponse extends OkApiResponse implements IGetRegoleVenditaResponse {\r\n regole?: RegolaVenditaRow[];\r\n\r\n constructor(data?: IGetRegoleVenditaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"regole\"])) {\r\n this.regole = [] as any;\r\n for (let item of _data[\"regole\"])\r\n this.regole!.push(RegolaVenditaRow.fromJS(item));\r\n }\r\n else {\r\n this.regole = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetRegoleVenditaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetRegoleVenditaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.regole)) {\r\n data[\"regole\"] = [];\r\n for (let item of this.regole)\r\n data[\"regole\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetRegoleVenditaResponse extends IOkApiResponse {\r\n regole?: RegolaVenditaRow[];\r\n}\r\n\r\nexport class RegolaVenditaRow implements IRegolaVenditaRow {\r\n id?: number;\r\n nome?: string | null;\r\n regola?: ServizioRegolaVendita;\r\n testoPenale?: TripTextHtml | null;\r\n\r\n constructor(data?: IRegolaVenditaRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.regola = _data[\"regola\"] ? ServizioRegolaVendita.fromJS(_data[\"regola\"]) : null;\r\n this.testoPenale = _data[\"testoPenale\"] ? TripTextHtml.fromJS(_data[\"testoPenale\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RegolaVenditaRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RegolaVenditaRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n data[\"testoPenale\"] = this.testoPenale ? this.testoPenale.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRegolaVenditaRow {\r\n id?: number;\r\n nome?: string | null;\r\n regola?: ServizioRegolaVendita;\r\n testoPenale?: TripTextHtml | null;\r\n}\r\n\r\nexport class DeleteRegolaVenditaRequest extends ServizioGetRequest implements IDeleteRegolaVenditaRequest {\r\n regolaVenditaID?: number;\r\n\r\n constructor(data?: IDeleteRegolaVenditaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteRegolaVenditaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteRegolaVenditaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteRegolaVenditaRequest extends IServizioGetRequest {\r\n regolaVenditaID?: number;\r\n}\r\n\r\nexport class DeleteRegoleServizioRequest extends ServizioGetRequest implements IDeleteRegoleServizioRequest {\r\n regoleServizioIDs?: number[] | null;\r\n\r\n constructor(data?: IDeleteRegoleServizioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"regoleServizioIDs\"])) {\r\n this.regoleServizioIDs = [] as any;\r\n for (let item of _data[\"regoleServizioIDs\"])\r\n this.regoleServizioIDs!.push(item);\r\n }\r\n else {\r\n this.regoleServizioIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteRegoleServizioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteRegoleServizioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.regoleServizioIDs)) {\r\n data[\"regoleServizioIDs\"] = [];\r\n for (let item of this.regoleServizioIDs)\r\n data[\"regoleServizioIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteRegoleServizioRequest extends IServizioGetRequest {\r\n regoleServizioIDs?: number[] | null;\r\n}\r\n\r\nexport class DeleteRegoleVenditaRequest extends ServizioGetRequest implements IDeleteRegoleVenditaRequest {\r\n regoleVenditaIDs?: number[] | null;\r\n\r\n constructor(data?: IDeleteRegoleVenditaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"regoleVenditaIDs\"])) {\r\n this.regoleVenditaIDs = [] as any;\r\n for (let item of _data[\"regoleVenditaIDs\"])\r\n this.regoleVenditaIDs!.push(item);\r\n }\r\n else {\r\n this.regoleVenditaIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteRegoleVenditaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteRegoleVenditaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.regoleVenditaIDs)) {\r\n data[\"regoleVenditaIDs\"] = [];\r\n for (let item of this.regoleVenditaIDs)\r\n data[\"regoleVenditaIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteRegoleVenditaRequest extends IServizioGetRequest {\r\n regoleVenditaIDs?: number[] | null;\r\n}\r\n\r\nexport class GetTipologieResponse extends OkApiResponse implements IGetTipologieResponse {\r\n tipologie?: TipologiaListRow[] | null;\r\n\r\n constructor(data?: IGetTipologieResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tipologie\"])) {\r\n this.tipologie = [] as any;\r\n for (let item of _data[\"tipologie\"])\r\n this.tipologie!.push(TipologiaListRow.fromJS(item));\r\n }\r\n else {\r\n this.tipologie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTipologieResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTipologieResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tipologie)) {\r\n data[\"tipologie\"] = [];\r\n for (let item of this.tipologie)\r\n data[\"tipologie\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTipologieResponse extends IOkApiResponse {\r\n tipologie?: TipologiaListRow[] | null;\r\n}\r\n\r\nexport class TipologiaListRow implements ITipologiaListRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipologia?: ServizioTipologia | null;\r\n\r\n constructor(data?: ITipologiaListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologia.fromJS(_data[\"tipologia\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TipologiaListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TipologiaListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITipologiaListRow {\r\n id?: number;\r\n nome?: string | null;\r\n tipologia?: ServizioTipologia | null;\r\n}\r\n\r\nexport class GetTipologieRequest extends ServizioGetRequest implements IGetTipologieRequest {\r\n showDeleted?: boolean;\r\n\r\n constructor(data?: IGetTipologieRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTipologieRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTipologieRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTipologieRequest extends IServizioGetRequest {\r\n showDeleted?: boolean;\r\n}\r\n\r\nexport class DeleteTipologiaRequest extends GetTipologieRequest implements IDeleteTipologiaRequest {\r\n servizioTipologiaID?: number;\r\n\r\n constructor(data?: IDeleteTipologiaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteTipologiaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteTipologiaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteTipologiaRequest extends IGetTipologieRequest {\r\n servizioTipologiaID?: number;\r\n}\r\n\r\nexport class DeleteTipologieRequest extends GetTipologieRequest implements IDeleteTipologieRequest {\r\n tipologieIDs?: number[] | null;\r\n\r\n constructor(data?: IDeleteTipologieRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tipologieIDs\"])) {\r\n this.tipologieIDs = [] as any;\r\n for (let item of _data[\"tipologieIDs\"])\r\n this.tipologieIDs!.push(item);\r\n }\r\n else {\r\n this.tipologieIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteTipologieRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteTipologieRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tipologieIDs)) {\r\n data[\"tipologieIDs\"] = [];\r\n for (let item of this.tipologieIDs)\r\n data[\"tipologieIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteTipologieRequest extends IGetTipologieRequest {\r\n tipologieIDs?: number[] | null;\r\n}\r\n\r\nexport class DeleteValiditaRequest extends ServizioGetRequest implements IDeleteValiditaRequest {\r\n validitaID?: number;\r\n\r\n constructor(data?: IDeleteValiditaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.validitaID = _data[\"validitaID\"] !== undefined ? _data[\"validitaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteValiditaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteValiditaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"validitaID\"] = this.validitaID !== undefined ? this.validitaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteValiditaRequest extends IServizioGetRequest {\r\n validitaID?: number;\r\n}\r\n\r\nexport class GetAccordiServizioResponse extends OkApiResponse implements IGetAccordiServizioResponse {\r\n accordi?: ServizioAccordoRow[];\r\n\r\n constructor(data?: IGetAccordiServizioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"accordi\"])) {\r\n this.accordi = [] as any;\r\n for (let item of _data[\"accordi\"])\r\n this.accordi!.push(ServizioAccordoRow.fromJS(item));\r\n }\r\n else {\r\n this.accordi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetAccordiServizioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetAccordiServizioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.accordi)) {\r\n data[\"accordi\"] = [];\r\n for (let item of this.accordi)\r\n data[\"accordi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetAccordiServizioResponse extends IOkApiResponse {\r\n accordi?: ServizioAccordoRow[];\r\n}\r\n\r\nexport class ServizioAccordoRow implements IServizioAccordoRow {\r\n /** ID dell'accordo */\r\n accordoID?: number;\r\n /** Nome dell'accordo */\r\n nome?: string;\r\n /** True se l'accordo è scaduto */\r\n scaduto?: boolean;\r\n\r\n constructor(data?: IServizioAccordoRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.scaduto = _data[\"scaduto\"] !== undefined ? _data[\"scaduto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioAccordoRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioAccordoRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"scaduto\"] = this.scaduto !== undefined ? this.scaduto : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioAccordoRow {\r\n /** ID dell'accordo */\r\n accordoID?: number;\r\n /** Nome dell'accordo */\r\n nome?: string;\r\n /** True se l'accordo è scaduto */\r\n scaduto?: boolean;\r\n}\r\n\r\nexport class GetArticoliServizioResponse extends OkApiResponse implements IGetArticoliServizioResponse {\r\n articoli?: ArticoloServizio[];\r\n\r\n constructor(data?: IGetArticoliServizioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"articoli\"])) {\r\n this.articoli = [] as any;\r\n for (let item of _data[\"articoli\"])\r\n this.articoli!.push(ArticoloServizio.fromJS(item));\r\n }\r\n else {\r\n this.articoli = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetArticoliServizioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetArticoliServizioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.articoli)) {\r\n data[\"articoli\"] = [];\r\n for (let item of this.articoli)\r\n data[\"articoli\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetArticoliServizioResponse extends IOkApiResponse {\r\n articoli?: ArticoloServizio[];\r\n}\r\n\r\nexport class ArticoloServizio implements IArticoloServizio {\r\n id?: number;\r\n /** Titolo nella lingua dell'utente */\r\n titolo?: string | null;\r\n /** Sunto nella lingua dell'utente */\r\n sunto?: string | null;\r\n /** Testo nella lingua dell'utente */\r\n testo?: string;\r\n giorno?: number;\r\n ordine?: number;\r\n /** Concatenazione ordinabile di giorno / ordine / priorità */\r\n ordineAssoluto?: string;\r\n /** Data di inizio pubblicazione se prevista */\r\n pubblicatoDal?: string | null;\r\n /** Data di fine pubblicazione se prevista */\r\n pubblicatoAl?: string | null;\r\n pubblicaWeb?: boolean;\r\n pubblicaOfferta?: boolean;\r\n pubblicaPreventivo?: boolean;\r\n pubblicaProgramma?: boolean;\r\n pubblicaVoucher?: boolean;\r\n pubblicaEstrattoConto?: boolean;\r\n categoria?: ECategoriaArticolo | null;\r\n intestazione?: string | null;\r\n articolo?: Articolo;\r\n\r\n constructor(data?: IArticoloServizio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.sunto = _data[\"sunto\"] !== undefined ? _data[\"sunto\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.giorno = _data[\"giorno\"] !== undefined ? _data[\"giorno\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.ordineAssoluto = _data[\"ordineAssoluto\"] !== undefined ? _data[\"ordineAssoluto\"] : null;\r\n this.pubblicatoDal = _data[\"pubblicatoDal\"] !== undefined ? _data[\"pubblicatoDal\"] : null;\r\n this.pubblicatoAl = _data[\"pubblicatoAl\"] !== undefined ? _data[\"pubblicatoAl\"] : null;\r\n this.pubblicaWeb = _data[\"pubblicaWeb\"] !== undefined ? _data[\"pubblicaWeb\"] : null;\r\n this.pubblicaOfferta = _data[\"pubblicaOfferta\"] !== undefined ? _data[\"pubblicaOfferta\"] : null;\r\n this.pubblicaPreventivo = _data[\"pubblicaPreventivo\"] !== undefined ? _data[\"pubblicaPreventivo\"] : null;\r\n this.pubblicaProgramma = _data[\"pubblicaProgramma\"] !== undefined ? _data[\"pubblicaProgramma\"] : null;\r\n this.pubblicaVoucher = _data[\"pubblicaVoucher\"] !== undefined ? _data[\"pubblicaVoucher\"] : null;\r\n this.pubblicaEstrattoConto = _data[\"pubblicaEstrattoConto\"] !== undefined ? _data[\"pubblicaEstrattoConto\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.intestazione = _data[\"intestazione\"] !== undefined ? _data[\"intestazione\"] : null;\r\n this.articolo = _data[\"articolo\"] ? Articolo.fromJS(_data[\"articolo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ArticoloServizio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ArticoloServizio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"sunto\"] = this.sunto !== undefined ? this.sunto : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"giorno\"] = this.giorno !== undefined ? this.giorno : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"ordineAssoluto\"] = this.ordineAssoluto !== undefined ? this.ordineAssoluto : null;\r\n data[\"pubblicatoDal\"] = this.pubblicatoDal !== undefined ? this.pubblicatoDal : null;\r\n data[\"pubblicatoAl\"] = this.pubblicatoAl !== undefined ? this.pubblicatoAl : null;\r\n data[\"pubblicaWeb\"] = this.pubblicaWeb !== undefined ? this.pubblicaWeb : null;\r\n data[\"pubblicaOfferta\"] = this.pubblicaOfferta !== undefined ? this.pubblicaOfferta : null;\r\n data[\"pubblicaPreventivo\"] = this.pubblicaPreventivo !== undefined ? this.pubblicaPreventivo : null;\r\n data[\"pubblicaProgramma\"] = this.pubblicaProgramma !== undefined ? this.pubblicaProgramma : null;\r\n data[\"pubblicaVoucher\"] = this.pubblicaVoucher !== undefined ? this.pubblicaVoucher : null;\r\n data[\"pubblicaEstrattoConto\"] = this.pubblicaEstrattoConto !== undefined ? this.pubblicaEstrattoConto : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"intestazione\"] = this.intestazione !== undefined ? this.intestazione : null;\r\n data[\"articolo\"] = this.articolo ? this.articolo.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IArticoloServizio {\r\n id?: number;\r\n /** Titolo nella lingua dell'utente */\r\n titolo?: string | null;\r\n /** Sunto nella lingua dell'utente */\r\n sunto?: string | null;\r\n /** Testo nella lingua dell'utente */\r\n testo?: string;\r\n giorno?: number;\r\n ordine?: number;\r\n /** Concatenazione ordinabile di giorno / ordine / priorità */\r\n ordineAssoluto?: string;\r\n /** Data di inizio pubblicazione se prevista */\r\n pubblicatoDal?: string | null;\r\n /** Data di fine pubblicazione se prevista */\r\n pubblicatoAl?: string | null;\r\n pubblicaWeb?: boolean;\r\n pubblicaOfferta?: boolean;\r\n pubblicaPreventivo?: boolean;\r\n pubblicaProgramma?: boolean;\r\n pubblicaVoucher?: boolean;\r\n pubblicaEstrattoConto?: boolean;\r\n categoria?: ECategoriaArticolo | null;\r\n intestazione?: string | null;\r\n articolo?: Articolo;\r\n}\r\n\r\nexport class GetDatiAggiuntiviResponse extends OkApiResponse implements IGetDatiAggiuntiviResponse {\r\n /** Elenco dei valori di dati aggiuntivi */\r\n dati?: DatoAggiuntivoServizioValoreRow[];\r\n\r\n constructor(data?: IGetDatiAggiuntiviResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"dati\"])) {\r\n this.dati = [] as any;\r\n for (let item of _data[\"dati\"])\r\n this.dati!.push(DatoAggiuntivoServizioValoreRow.fromJS(item));\r\n }\r\n else {\r\n this.dati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDatiAggiuntiviResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDatiAggiuntiviResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.dati)) {\r\n data[\"dati\"] = [];\r\n for (let item of this.dati)\r\n data[\"dati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDatiAggiuntiviResponse extends IOkApiResponse {\r\n /** Elenco dei valori di dati aggiuntivi */\r\n dati?: DatoAggiuntivoServizioValoreRow[];\r\n}\r\n\r\nexport class DatoAggiuntivoServizioValoreRow implements IDatoAggiuntivoServizioValoreRow {\r\n /** ID del tipo di dato, per recuperare l'intestazione e fare raggruppamento */\r\n tipoDatoID?: number;\r\n /** Entità con i valori specifici */\r\n valore?: ServizioDatoAggiuntivo;\r\n\r\n constructor(data?: IDatoAggiuntivoServizioValoreRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoDatoID = _data[\"tipoDatoID\"] !== undefined ? _data[\"tipoDatoID\"] : null;\r\n this.valore = _data[\"valore\"] ? ServizioDatoAggiuntivo.fromJS(_data[\"valore\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatoAggiuntivoServizioValoreRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatoAggiuntivoServizioValoreRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoDatoID\"] = this.tipoDatoID !== undefined ? this.tipoDatoID : null;\r\n data[\"valore\"] = this.valore ? this.valore.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatoAggiuntivoServizioValoreRow {\r\n /** ID del tipo di dato, per recuperare l'intestazione e fare raggruppamento */\r\n tipoDatoID?: number;\r\n /** Entità con i valori specifici */\r\n valore?: ServizioDatoAggiuntivo;\r\n}\r\n\r\nexport class GetInsurancesResponse extends OkApiResponse implements IGetInsurancesResponse {\r\n assicurazioni?: Insurance[] | null;\r\n\r\n constructor(data?: IGetInsurancesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"assicurazioni\"])) {\r\n this.assicurazioni = [] as any;\r\n for (let item of _data[\"assicurazioni\"])\r\n this.assicurazioni!.push(Insurance.fromJS(item));\r\n }\r\n else {\r\n this.assicurazioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetInsurancesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetInsurancesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.assicurazioni)) {\r\n data[\"assicurazioni\"] = [];\r\n for (let item of this.assicurazioni)\r\n data[\"assicurazioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetInsurancesResponse extends IOkApiResponse {\r\n assicurazioni?: Insurance[] | null;\r\n}\r\n\r\nexport class Insurance implements IInsurance {\r\n servizio?: EServizioAutomatico;\r\n nome?: string | null;\r\n descrizione?: string | null;\r\n allegati?: ArticoloAllegato[] | null;\r\n consentiSceltaAbbinamento?: boolean;\r\n\r\n constructor(data?: IInsurance) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n if (Array.isArray(_data[\"allegati\"])) {\r\n this.allegati = [] as any;\r\n for (let item of _data[\"allegati\"])\r\n this.allegati!.push(ArticoloAllegato.fromJS(item));\r\n }\r\n else {\r\n this.allegati = null;\r\n }\r\n this.consentiSceltaAbbinamento = _data[\"consentiSceltaAbbinamento\"] !== undefined ? _data[\"consentiSceltaAbbinamento\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Insurance {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Insurance();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n if (Array.isArray(this.allegati)) {\r\n data[\"allegati\"] = [];\r\n for (let item of this.allegati)\r\n data[\"allegati\"].push(item.toJSON());\r\n }\r\n data[\"consentiSceltaAbbinamento\"] = this.consentiSceltaAbbinamento !== undefined ? this.consentiSceltaAbbinamento : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsurance {\r\n servizio?: EServizioAutomatico;\r\n nome?: string | null;\r\n descrizione?: string | null;\r\n allegati?: ArticoloAllegato[] | null;\r\n consentiSceltaAbbinamento?: boolean;\r\n}\r\n\r\nexport class GetItinerariRequest extends ServizioGetRequest implements IGetItinerariRequest {\r\n includiDati?: boolean;\r\n\r\n constructor(data?: IGetItinerariRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.includiDati = _data[\"includiDati\"] !== undefined ? _data[\"includiDati\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetItinerariRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetItinerariRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"includiDati\"] = this.includiDati !== undefined ? this.includiDati : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetItinerariRequest extends IServizioGetRequest {\r\n includiDati?: boolean;\r\n}\r\n\r\nexport class GetLuoghiServizioResponse extends OkApiResponse implements IGetLuoghiServizioResponse {\r\n /** Elenco dei luoghi del servizio */\r\n luoghi?: ServizioLuogoView[];\r\n\r\n constructor(data?: IGetLuoghiServizioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"luoghi\"])) {\r\n this.luoghi = [] as any;\r\n for (let item of _data[\"luoghi\"])\r\n this.luoghi!.push(ServizioLuogoView.fromJS(item));\r\n }\r\n else {\r\n this.luoghi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetLuoghiServizioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetLuoghiServizioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.luoghi)) {\r\n data[\"luoghi\"] = [];\r\n for (let item of this.luoghi)\r\n data[\"luoghi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetLuoghiServizioResponse extends IOkApiResponse {\r\n /** Elenco dei luoghi del servizio */\r\n luoghi?: ServizioLuogoView[];\r\n}\r\n\r\nexport class ServizioLuogoView implements IServizioLuogoView {\r\n /** ID del luogo associato */\r\n luogoID?: number;\r\n /** Nome del luogo associato */\r\n luogo?: string;\r\n /** Nome della regione del luogo associato */\r\n regione?: string | null;\r\n /** Nome del paese del luogo associato */\r\n paese?: string | null;\r\n\r\n constructor(data?: IServizioLuogoView) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioLuogoView {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioLuogoView();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioLuogoView {\r\n /** ID del luogo associato */\r\n luogoID?: number;\r\n /** Nome del luogo associato */\r\n luogo?: string;\r\n /** Nome della regione del luogo associato */\r\n regione?: string | null;\r\n /** Nome del paese del luogo associato */\r\n paese?: string | null;\r\n}\r\n\r\nexport class GetPublishedServiceResponse extends OkApiResponse implements IGetPublishedServiceResponse {\r\n servizio?: ServiceData | null;\r\n\r\n constructor(data?: IGetPublishedServiceResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? ServiceData.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPublishedServiceResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPublishedServiceResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPublishedServiceResponse extends IOkApiResponse {\r\n servizio?: ServiceData | null;\r\n}\r\n\r\nexport class GetPublishedServiceRequest extends SiteRequest implements IGetPublishedServiceRequest {\r\n /** ID del servizio Naar (se Esterno è false) oppure del servizio hh */\r\n servizioID?: number;\r\n /** Se true è un servizio hh, altrimenti un servizio Naar */\r\n esterno?: boolean;\r\n /** Tipo di articoli da utilizzare */\r\n tipoArticoliRichiesti?: ETipoArticoliRichiesti;\r\n\r\n constructor(data?: IGetPublishedServiceRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.esterno = _data[\"esterno\"] !== undefined ? _data[\"esterno\"] : null;\r\n this.tipoArticoliRichiesti = _data[\"tipoArticoliRichiesti\"] !== undefined ? _data[\"tipoArticoliRichiesti\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetPublishedServiceRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetPublishedServiceRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"esterno\"] = this.esterno !== undefined ? this.esterno : null;\r\n data[\"tipoArticoliRichiesti\"] = this.tipoArticoliRichiesti !== undefined ? this.tipoArticoliRichiesti : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetPublishedServiceRequest extends ISiteRequest {\r\n /** ID del servizio Naar (se Esterno è false) oppure del servizio hh */\r\n servizioID?: number;\r\n /** Se true è un servizio hh, altrimenti un servizio Naar */\r\n esterno?: boolean;\r\n /** Tipo di articoli da utilizzare */\r\n tipoArticoliRichiesti?: ETipoArticoliRichiesti;\r\n}\r\n\r\nexport enum ETipoArticoliRichiesti {\r\n PreferTraducibili = \"preferTraducibili\",\r\n SoloTraducibili = \"soloTraducibili\",\r\n SoloCanonici = \"soloCanonici\",\r\n Tutti = \"tutti\",\r\n}\r\n\r\nexport class GetTabelleCostiAssociateResponse extends OkApiResponse implements IGetTabelleCostiAssociateResponse {\r\n tabelle?: TabellaCostoListRow[];\r\n\r\n constructor(data?: IGetTabelleCostiAssociateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tabelle\"])) {\r\n this.tabelle = [] as any;\r\n for (let item of _data[\"tabelle\"])\r\n this.tabelle!.push(TabellaCostoListRow.fromJS(item));\r\n }\r\n else {\r\n this.tabelle = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTabelleCostiAssociateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTabelleCostiAssociateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tabelle)) {\r\n data[\"tabelle\"] = [];\r\n for (let item of this.tabelle)\r\n data[\"tabelle\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTabelleCostiAssociateResponse extends IOkApiResponse {\r\n tabelle?: TabellaCostoListRow[];\r\n}\r\n\r\nexport class TabellaCostoListRow implements ITabellaCostoListRow {\r\n id?: number;\r\n accordoID?: number;\r\n accordo?: string;\r\n accordoScaduto?: boolean;\r\n tabella?: string;\r\n tabellaScaduta?: boolean;\r\n dal?: string;\r\n al?: string;\r\n codiceValuta?: string | null;\r\n ordine?: number | null;\r\n\r\n constructor(data?: ITabellaCostoListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.accordoID = _data[\"accordoID\"] !== undefined ? _data[\"accordoID\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.accordoScaduto = _data[\"accordoScaduto\"] !== undefined ? _data[\"accordoScaduto\"] : null;\r\n this.tabella = _data[\"tabella\"] !== undefined ? _data[\"tabella\"] : null;\r\n this.tabellaScaduta = _data[\"tabellaScaduta\"] !== undefined ? _data[\"tabellaScaduta\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.codiceValuta = _data[\"codiceValuta\"] !== undefined ? _data[\"codiceValuta\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TabellaCostoListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TabellaCostoListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"accordoID\"] = this.accordoID !== undefined ? this.accordoID : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"accordoScaduto\"] = this.accordoScaduto !== undefined ? this.accordoScaduto : null;\r\n data[\"tabella\"] = this.tabella !== undefined ? this.tabella : null;\r\n data[\"tabellaScaduta\"] = this.tabellaScaduta !== undefined ? this.tabellaScaduta : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"codiceValuta\"] = this.codiceValuta !== undefined ? this.codiceValuta : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITabellaCostoListRow {\r\n id?: number;\r\n accordoID?: number;\r\n accordo?: string;\r\n accordoScaduto?: boolean;\r\n tabella?: string;\r\n tabellaScaduta?: boolean;\r\n dal?: string;\r\n al?: string;\r\n codiceValuta?: string | null;\r\n ordine?: number | null;\r\n}\r\n\r\nexport class GetTypesResponse extends OkApiResponse implements IGetTypesResponse {\r\n tipologie?: TipologiaTradotta[] | null;\r\n\r\n constructor(data?: IGetTypesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tipologie\"])) {\r\n this.tipologie = [] as any;\r\n for (let item of _data[\"tipologie\"])\r\n this.tipologie!.push(TipologiaTradotta.fromJS(item));\r\n }\r\n else {\r\n this.tipologie = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTypesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTypesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tipologie)) {\r\n data[\"tipologie\"] = [];\r\n for (let item of this.tipologie)\r\n data[\"tipologie\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTypesResponse extends IOkApiResponse {\r\n tipologie?: TipologiaTradotta[] | null;\r\n}\r\n\r\nexport class TipologiaTradotta implements ITipologiaTradotta {\r\n tipologia?: ServizioTipologia | null;\r\n nome?: string | null;\r\n\r\n constructor(data?: ITipologiaTradotta) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologia.fromJS(_data[\"tipologia\"]) : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TipologiaTradotta {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TipologiaTradotta();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITipologiaTradotta {\r\n tipologia?: ServizioTipologia | null;\r\n nome?: string | null;\r\n}\r\n\r\nexport class GetTypesRequest extends SiteRequest implements IGetTypesRequest {\r\n servizioID?: number;\r\n\r\n constructor(data?: IGetTypesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTypesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTypesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTypesRequest extends ISiteRequest {\r\n servizioID?: number;\r\n}\r\n\r\nexport class InsertCostiRequest extends ServizioGetRequest implements IInsertCostiRequest {\r\n /** Regola di inserimento dei costi per maneggiare i dati */\r\n regola?: ERegolaInserimentoCosti;\r\n /** ID del trattamento, se specificato */\r\n trattamentoID?: number | null;\r\n /** ID della regola servizio, se specificata */\r\n regolaServizioID?: number | null;\r\n /** ID della regola vendita, se specificata */\r\n regolaVenditaID?: number | null;\r\n /** Codice prenotazione facoltativo */\r\n codicePrenotazione?: string | null;\r\n /** Regola inserimento costi bambino, se richiesta */\r\n regolaCostiBambino?: ERegolaCostiBambino;\r\n /** Età bambino. Obbligatoria se presente la regola costi bambino, ignorata altrimenti */\r\n etaChild?: number | null;\r\n /** Se si stanno inserendo i costi bambino considera i valori come sconti percentuali sulle corrispondenti tipologie */\r\n scontoChildPercentuale?: boolean;\r\n /** ID delle tabelle costo da associare. Almeno una */\r\n tabelleCostoIDs?: number[];\r\n /** ID delle tipologie da associare. Almeno una */\r\n tipologieIDs?: number[];\r\n /** ID delle validità da associare. Almeno una */\r\n validitaIDs?: number[];\r\n /** ID bedding associato al costo 1 */\r\n beddingID1?: number | null;\r\n /** Costo associato al bedding 1, obbligatorio se presente */\r\n costo1?: number | null;\r\n /** ID bedding associato al costo 2 */\r\n beddingID2?: number | null;\r\n /** Costo associato al bedding 2, obbligatorio se presente */\r\n costo2?: number | null;\r\n /** ID bedding associato al costo 3 */\r\n beddingID3?: number | null;\r\n /** Costo associato al bedding 3, obbligatorio se presente */\r\n costo3?: number | null;\r\n /** ID bedding associato al costo 4 */\r\n beddingID4?: number | null;\r\n /** Costo associato al bedding 4, obbligatorio se presente */\r\n costo4?: number | null;\r\n /** ID bedding associato al costo 5 */\r\n beddingID5?: number | null;\r\n /** Costo associato al bedding 1. Viene inserito comunque indipendentemente dal bedding */\r\n costo5?: number | null;\r\n /** ID aggiuntivo per la gestione delle regole di inserimento costi 9, 10 e 12 */\r\n extraID?: number | null;\r\n\r\n constructor(data?: IInsertCostiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regola = _data[\"regola\"] !== undefined ? _data[\"regola\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.regolaServizioID = _data[\"regolaServizioID\"] !== undefined ? _data[\"regolaServizioID\"] : null;\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n this.codicePrenotazione = _data[\"codicePrenotazione\"] !== undefined ? _data[\"codicePrenotazione\"] : null;\r\n this.regolaCostiBambino = _data[\"regolaCostiBambino\"] !== undefined ? _data[\"regolaCostiBambino\"] : null;\r\n this.etaChild = _data[\"etaChild\"] !== undefined ? _data[\"etaChild\"] : null;\r\n this.scontoChildPercentuale = _data[\"scontoChildPercentuale\"] !== undefined ? _data[\"scontoChildPercentuale\"] : null;\r\n if (Array.isArray(_data[\"tabelleCostoIDs\"])) {\r\n this.tabelleCostoIDs = [] as any;\r\n for (let item of _data[\"tabelleCostoIDs\"])\r\n this.tabelleCostoIDs!.push(item);\r\n }\r\n else {\r\n this.tabelleCostoIDs = null;\r\n }\r\n if (Array.isArray(_data[\"tipologieIDs\"])) {\r\n this.tipologieIDs = [] as any;\r\n for (let item of _data[\"tipologieIDs\"])\r\n this.tipologieIDs!.push(item);\r\n }\r\n else {\r\n this.tipologieIDs = null;\r\n }\r\n if (Array.isArray(_data[\"validitaIDs\"])) {\r\n this.validitaIDs = [] as any;\r\n for (let item of _data[\"validitaIDs\"])\r\n this.validitaIDs!.push(item);\r\n }\r\n else {\r\n this.validitaIDs = null;\r\n }\r\n this.beddingID1 = _data[\"beddingID1\"] !== undefined ? _data[\"beddingID1\"] : null;\r\n this.costo1 = _data[\"costo1\"] !== undefined ? _data[\"costo1\"] : null;\r\n this.beddingID2 = _data[\"beddingID2\"] !== undefined ? _data[\"beddingID2\"] : null;\r\n this.costo2 = _data[\"costo2\"] !== undefined ? _data[\"costo2\"] : null;\r\n this.beddingID3 = _data[\"beddingID3\"] !== undefined ? _data[\"beddingID3\"] : null;\r\n this.costo3 = _data[\"costo3\"] !== undefined ? _data[\"costo3\"] : null;\r\n this.beddingID4 = _data[\"beddingID4\"] !== undefined ? _data[\"beddingID4\"] : null;\r\n this.costo4 = _data[\"costo4\"] !== undefined ? _data[\"costo4\"] : null;\r\n this.beddingID5 = _data[\"beddingID5\"] !== undefined ? _data[\"beddingID5\"] : null;\r\n this.costo5 = _data[\"costo5\"] !== undefined ? _data[\"costo5\"] : null;\r\n this.extraID = _data[\"extraID\"] !== undefined ? _data[\"extraID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InsertCostiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsertCostiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regola\"] = this.regola !== undefined ? this.regola : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"regolaServizioID\"] = this.regolaServizioID !== undefined ? this.regolaServizioID : null;\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n data[\"codicePrenotazione\"] = this.codicePrenotazione !== undefined ? this.codicePrenotazione : null;\r\n data[\"regolaCostiBambino\"] = this.regolaCostiBambino !== undefined ? this.regolaCostiBambino : null;\r\n data[\"etaChild\"] = this.etaChild !== undefined ? this.etaChild : null;\r\n data[\"scontoChildPercentuale\"] = this.scontoChildPercentuale !== undefined ? this.scontoChildPercentuale : null;\r\n if (Array.isArray(this.tabelleCostoIDs)) {\r\n data[\"tabelleCostoIDs\"] = [];\r\n for (let item of this.tabelleCostoIDs)\r\n data[\"tabelleCostoIDs\"].push(item);\r\n }\r\n if (Array.isArray(this.tipologieIDs)) {\r\n data[\"tipologieIDs\"] = [];\r\n for (let item of this.tipologieIDs)\r\n data[\"tipologieIDs\"].push(item);\r\n }\r\n if (Array.isArray(this.validitaIDs)) {\r\n data[\"validitaIDs\"] = [];\r\n for (let item of this.validitaIDs)\r\n data[\"validitaIDs\"].push(item);\r\n }\r\n data[\"beddingID1\"] = this.beddingID1 !== undefined ? this.beddingID1 : null;\r\n data[\"costo1\"] = this.costo1 !== undefined ? this.costo1 : null;\r\n data[\"beddingID2\"] = this.beddingID2 !== undefined ? this.beddingID2 : null;\r\n data[\"costo2\"] = this.costo2 !== undefined ? this.costo2 : null;\r\n data[\"beddingID3\"] = this.beddingID3 !== undefined ? this.beddingID3 : null;\r\n data[\"costo3\"] = this.costo3 !== undefined ? this.costo3 : null;\r\n data[\"beddingID4\"] = this.beddingID4 !== undefined ? this.beddingID4 : null;\r\n data[\"costo4\"] = this.costo4 !== undefined ? this.costo4 : null;\r\n data[\"beddingID5\"] = this.beddingID5 !== undefined ? this.beddingID5 : null;\r\n data[\"costo5\"] = this.costo5 !== undefined ? this.costo5 : null;\r\n data[\"extraID\"] = this.extraID !== undefined ? this.extraID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsertCostiRequest extends IServizioGetRequest {\r\n /** Regola di inserimento dei costi per maneggiare i dati */\r\n regola?: ERegolaInserimentoCosti;\r\n /** ID del trattamento, se specificato */\r\n trattamentoID?: number | null;\r\n /** ID della regola servizio, se specificata */\r\n regolaServizioID?: number | null;\r\n /** ID della regola vendita, se specificata */\r\n regolaVenditaID?: number | null;\r\n /** Codice prenotazione facoltativo */\r\n codicePrenotazione?: string | null;\r\n /** Regola inserimento costi bambino, se richiesta */\r\n regolaCostiBambino?: ERegolaCostiBambino;\r\n /** Età bambino. Obbligatoria se presente la regola costi bambino, ignorata altrimenti */\r\n etaChild?: number | null;\r\n /** Se si stanno inserendo i costi bambino considera i valori come sconti percentuali sulle corrispondenti tipologie */\r\n scontoChildPercentuale?: boolean;\r\n /** ID delle tabelle costo da associare. Almeno una */\r\n tabelleCostoIDs?: number[];\r\n /** ID delle tipologie da associare. Almeno una */\r\n tipologieIDs?: number[];\r\n /** ID delle validità da associare. Almeno una */\r\n validitaIDs?: number[];\r\n /** ID bedding associato al costo 1 */\r\n beddingID1?: number | null;\r\n /** Costo associato al bedding 1, obbligatorio se presente */\r\n costo1?: number | null;\r\n /** ID bedding associato al costo 2 */\r\n beddingID2?: number | null;\r\n /** Costo associato al bedding 2, obbligatorio se presente */\r\n costo2?: number | null;\r\n /** ID bedding associato al costo 3 */\r\n beddingID3?: number | null;\r\n /** Costo associato al bedding 3, obbligatorio se presente */\r\n costo3?: number | null;\r\n /** ID bedding associato al costo 4 */\r\n beddingID4?: number | null;\r\n /** Costo associato al bedding 4, obbligatorio se presente */\r\n costo4?: number | null;\r\n /** ID bedding associato al costo 5 */\r\n beddingID5?: number | null;\r\n /** Costo associato al bedding 1. Viene inserito comunque indipendentemente dal bedding */\r\n costo5?: number | null;\r\n /** ID aggiuntivo per la gestione delle regole di inserimento costi 9, 10 e 12 */\r\n extraID?: number | null;\r\n}\r\n\r\nexport enum ERegolaInserimentoCosti {\r\n Nessuna = \"Nessuna\",\r\n SingolaDoppiaTriplaQuadruplaPerPax = \"SingolaDoppiaTriplaQuadruplaPerPax\",\r\n SingolaDoppiaPerCameraSupplementoTriplaQuadruplaPerPax = \"SingolaDoppiaPerCameraSupplementoTriplaQuadruplaPerPax\",\r\n DoppiaPerPaxSupplementoSingolaRiduzioneTriplaQuadruplaPerPax = \"DoppiaPerPaxSupplementoSingolaRiduzioneTriplaQuadruplaPerPax\",\r\n DoppiaTriplaQuadruplaPerPaxSupplementoSingolaPerPax = \"DoppiaTriplaQuadruplaPerPaxSupplementoSingolaPerPax\",\r\n DoppiaPerPaxSupplementoSingolaPerTriplaQuadruplaPerPax = \"DoppiaPerPaxSupplementoSingolaPerTriplaQuadruplaPerPax\",\r\n DoppiaPerPaxSupplementoSingolaTriplaQuadruplaPerPax = \"DoppiaPerPaxSupplementoSingolaTriplaQuadruplaPerPax\",\r\n DoppiaPerPaxSupplementoSingolaGlobaleRiduzioneTerzoQuartoLettoPerc = \"DoppiaPerPaxSupplementoSingolaGlobaleRiduzioneTerzoQuartoLettoPerc\",\r\n DoppiaPerPaxSupplementoSingolaPercRiduzioneTerzoQuartoLettoPerc = \"DoppiaPerPaxSupplementoSingolaPercRiduzioneTerzoQuartoLettoPerc\",\r\n SupplementoSuTipologiaGlobale = \"SupplementoSuTipologiaGlobale\",\r\n SupplementoSuTipologiaPerPax = \"SupplementoSuTipologiaPerPax\",\r\n DoppiaPerPaxSupplementoSingolaRiduzioneTerzoQuartoLetto = \"DoppiaPerPaxSupplementoSingolaRiduzioneTerzoQuartoLetto\",\r\n SupplementoSuTrattamentoBasePerPax = \"SupplementoSuTrattamentoBasePerPax\",\r\n DoppiaPerPaxSupplementoSingolaTriplaQuadruplaGlobale = \"DoppiaPerPaxSupplementoSingolaTriplaQuadruplaGlobale\",\r\n SingolaDoppiaPerPaxSupplementoTriplaQuadruplaGlobale = \"SingolaDoppiaPerPaxSupplementoTriplaQuadruplaGlobale\",\r\n}\r\n\r\nexport class InsertTipologiaStandardRequest extends ApiRequest implements IInsertTipologiaStandardRequest {\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n eTipoServizio?: ETipoServizio;\r\n\r\n constructor(data?: IInsertTipologiaStandardRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.eTipoServizio = _data[\"eTipoServizio\"] !== undefined ? _data[\"eTipoServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InsertTipologiaStandardRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InsertTipologiaStandardRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"eTipoServizio\"] = this.eTipoServizio !== undefined ? this.eTipoServizio : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInsertTipologiaStandardRequest extends IApiRequest {\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n eTipoServizio?: ETipoServizio;\r\n}\r\n\r\nexport class NrTableResponseOfAPI_ServiceGetRow extends OkApiResponse implements INrTableResponseOfAPI_ServiceGetRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: API_ServiceGetRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAPI_ServiceGetRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(API_ServiceGetRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAPI_ServiceGetRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAPI_ServiceGetRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAPI_ServiceGetRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: API_ServiceGetRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class API_ServiceGetRow implements IAPI_ServiceGetRow {\r\n idServizio?: number;\r\n category?: string | null;\r\n englishName?: string | null;\r\n languageName?: string | null;\r\n productName?: string | null;\r\n supplier?: string | null;\r\n city?: string | null;\r\n region?: string | null;\r\n country?: string | null;\r\n publish?: EStatoPubblicazioneServizio | null;\r\n publishFR?: EStatoPubblicazioneServizio | null;\r\n publishDE?: EStatoPubblicazioneServizio | null;\r\n publishBE?: EStatoPubblicazioneServizio | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n lastUpdate?: string | null;\r\n deleted?: boolean;\r\n publishes?: PublishData[];\r\n\r\n constructor(data?: IAPI_ServiceGetRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.idServizio = _data[\"idServizio\"] !== undefined ? _data[\"idServizio\"] : null;\r\n this.category = _data[\"category\"] !== undefined ? _data[\"category\"] : null;\r\n this.englishName = _data[\"englishName\"] !== undefined ? _data[\"englishName\"] : null;\r\n this.languageName = _data[\"languageName\"] !== undefined ? _data[\"languageName\"] : null;\r\n this.productName = _data[\"productName\"] !== undefined ? _data[\"productName\"] : null;\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.city = _data[\"city\"] !== undefined ? _data[\"city\"] : null;\r\n this.region = _data[\"region\"] !== undefined ? _data[\"region\"] : null;\r\n this.country = _data[\"country\"] !== undefined ? _data[\"country\"] : null;\r\n this.publish = _data[\"publish\"] !== undefined ? _data[\"publish\"] : null;\r\n this.publishFR = _data[\"publishFR\"] !== undefined ? _data[\"publishFR\"] : null;\r\n this.publishDE = _data[\"publishDE\"] !== undefined ? _data[\"publishDE\"] : null;\r\n this.publishBE = _data[\"publishBE\"] !== undefined ? _data[\"publishBE\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n if (Array.isArray(_data[\"publishes\"])) {\r\n this.publishes = [] as any;\r\n for (let item of _data[\"publishes\"])\r\n this.publishes!.push(PublishData.fromJS(item));\r\n }\r\n else {\r\n this.publishes = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): API_ServiceGetRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new API_ServiceGetRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"idServizio\"] = this.idServizio !== undefined ? this.idServizio : null;\r\n data[\"category\"] = this.category !== undefined ? this.category : null;\r\n data[\"englishName\"] = this.englishName !== undefined ? this.englishName : null;\r\n data[\"languageName\"] = this.languageName !== undefined ? this.languageName : null;\r\n data[\"productName\"] = this.productName !== undefined ? this.productName : null;\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"city\"] = this.city !== undefined ? this.city : null;\r\n data[\"region\"] = this.region !== undefined ? this.region : null;\r\n data[\"country\"] = this.country !== undefined ? this.country : null;\r\n data[\"publish\"] = this.publish !== undefined ? this.publish : null;\r\n data[\"publishFR\"] = this.publishFR !== undefined ? this.publishFR : null;\r\n data[\"publishDE\"] = this.publishDE !== undefined ? this.publishDE : null;\r\n data[\"publishBE\"] = this.publishBE !== undefined ? this.publishBE : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n if (Array.isArray(this.publishes)) {\r\n data[\"publishes\"] = [];\r\n for (let item of this.publishes)\r\n data[\"publishes\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAPI_ServiceGetRow {\r\n idServizio?: number;\r\n category?: string | null;\r\n englishName?: string | null;\r\n languageName?: string | null;\r\n productName?: string | null;\r\n supplier?: string | null;\r\n city?: string | null;\r\n region?: string | null;\r\n country?: string | null;\r\n publish?: EStatoPubblicazioneServizio | null;\r\n publishFR?: EStatoPubblicazioneServizio | null;\r\n publishDE?: EStatoPubblicazioneServizio | null;\r\n publishBE?: EStatoPubblicazioneServizio | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n lastUpdate?: string | null;\r\n deleted?: boolean;\r\n publishes?: PublishData[];\r\n}\r\n\r\nexport class PublishData implements IPublishData {\r\n id?: number;\r\n name?: string;\r\n status?: EStatoPubblicazioneServizio | null;\r\n\r\n constructor(data?: IPublishData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PublishData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PublishData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPublishData {\r\n id?: number;\r\n name?: string;\r\n status?: EStatoPubblicazioneServizio | null;\r\n}\r\n\r\nexport class ListServicesRequest extends NrTableRequest implements IListServicesRequest {\r\n term?: string | null;\r\n luogoID?: number | null;\r\n luogoPaeseID?: number | null;\r\n tipo?: ETipoServizio | null;\r\n showDeleted?: boolean | null;\r\n language?: ELingua | null;\r\n statoUtilizzo?: EStatoUtilizzoServizio | null;\r\n sitoPubblicazioneID?: number | null;\r\n statoPubblicazione?: EStatoPubblicazioneServizio | null;\r\n fornitoreTerziID?: number | null;\r\n showOnlyPublished?: boolean | null;\r\n nomiStatiUtilizzo?: { [key in keyof typeof EStatoUtilizzoServizio]?: string; } | null;\r\n nomiStatiPubblicazione?: { [key in keyof typeof EStatoPubblicazioneServizio]?: string; } | null;\r\n\r\n constructor(data?: IListServicesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoPaeseID = _data[\"luogoPaeseID\"] !== undefined ? _data[\"luogoPaeseID\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n this.statoUtilizzo = _data[\"statoUtilizzo\"] !== undefined ? _data[\"statoUtilizzo\"] : null;\r\n this.sitoPubblicazioneID = _data[\"sitoPubblicazioneID\"] !== undefined ? _data[\"sitoPubblicazioneID\"] : null;\r\n this.statoPubblicazione = _data[\"statoPubblicazione\"] !== undefined ? _data[\"statoPubblicazione\"] : null;\r\n this.fornitoreTerziID = _data[\"fornitoreTerziID\"] !== undefined ? _data[\"fornitoreTerziID\"] : null;\r\n this.showOnlyPublished = _data[\"showOnlyPublished\"] !== undefined ? _data[\"showOnlyPublished\"] : null;\r\n if (_data[\"nomiStatiUtilizzo\"]) {\r\n this.nomiStatiUtilizzo = {} as any;\r\n for (let key in _data[\"nomiStatiUtilizzo\"]) {\r\n if (_data[\"nomiStatiUtilizzo\"].hasOwnProperty(key))\r\n (this.nomiStatiUtilizzo)![key] = _data[\"nomiStatiUtilizzo\"][key] !== undefined ? _data[\"nomiStatiUtilizzo\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomiStatiUtilizzo = null;\r\n }\r\n if (_data[\"nomiStatiPubblicazione\"]) {\r\n this.nomiStatiPubblicazione = {} as any;\r\n for (let key in _data[\"nomiStatiPubblicazione\"]) {\r\n if (_data[\"nomiStatiPubblicazione\"].hasOwnProperty(key))\r\n (this.nomiStatiPubblicazione)![key] = _data[\"nomiStatiPubblicazione\"][key] !== undefined ? _data[\"nomiStatiPubblicazione\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomiStatiPubblicazione = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListServicesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListServicesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoPaeseID\"] = this.luogoPaeseID !== undefined ? this.luogoPaeseID : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n data[\"statoUtilizzo\"] = this.statoUtilizzo !== undefined ? this.statoUtilizzo : null;\r\n data[\"sitoPubblicazioneID\"] = this.sitoPubblicazioneID !== undefined ? this.sitoPubblicazioneID : null;\r\n data[\"statoPubblicazione\"] = this.statoPubblicazione !== undefined ? this.statoPubblicazione : null;\r\n data[\"fornitoreTerziID\"] = this.fornitoreTerziID !== undefined ? this.fornitoreTerziID : null;\r\n data[\"showOnlyPublished\"] = this.showOnlyPublished !== undefined ? this.showOnlyPublished : null;\r\n if (this.nomiStatiUtilizzo) {\r\n data[\"nomiStatiUtilizzo\"] = {};\r\n for (let key in this.nomiStatiUtilizzo) {\r\n if (this.nomiStatiUtilizzo.hasOwnProperty(key))\r\n (data[\"nomiStatiUtilizzo\"])[key] = this.nomiStatiUtilizzo[key] !== undefined ? this.nomiStatiUtilizzo[key] : null;\r\n }\r\n }\r\n if (this.nomiStatiPubblicazione) {\r\n data[\"nomiStatiPubblicazione\"] = {};\r\n for (let key in this.nomiStatiPubblicazione) {\r\n if (this.nomiStatiPubblicazione.hasOwnProperty(key))\r\n (data[\"nomiStatiPubblicazione\"])[key] = this.nomiStatiPubblicazione[key] !== undefined ? this.nomiStatiPubblicazione[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListServicesRequest extends INrTableRequest {\r\n term?: string | null;\r\n luogoID?: number | null;\r\n luogoPaeseID?: number | null;\r\n tipo?: ETipoServizio | null;\r\n showDeleted?: boolean | null;\r\n language?: ELingua | null;\r\n statoUtilizzo?: EStatoUtilizzoServizio | null;\r\n sitoPubblicazioneID?: number | null;\r\n statoPubblicazione?: EStatoPubblicazioneServizio | null;\r\n fornitoreTerziID?: number | null;\r\n showOnlyPublished?: boolean | null;\r\n nomiStatiUtilizzo?: { [key in keyof typeof EStatoUtilizzoServizio]?: string; } | null;\r\n nomiStatiPubblicazione?: { [key in keyof typeof EStatoPubblicazioneServizio]?: string; } | null;\r\n}\r\n\r\nexport class ListPublishedServicesResponse extends OkApiResponse implements IListPublishedServicesResponse {\r\n filters?: ServiceFilter[] | null;\r\n services?: { [key: string]: ServiceData; } | null;\r\n location?: string | null;\r\n locationUrlPart?: string | null;\r\n unmappedMode?: EModalitaNonMappati;\r\n idsByName?: string[] | null;\r\n idsByPopularity?: string[] | null;\r\n idsShown?: string[] | null;\r\n idsExternal?: string[] | null;\r\n destinazioni?: ServiceDestination[] | null;\r\n luoghiTappe?: ServiceDestination[] | null;\r\n abilitaFiltroDurata?: boolean;\r\n abilitaFiltroCittaTappa?: boolean;\r\n nascondiNrf?: boolean;\r\n deleted?: boolean;\r\n\r\n constructor(data?: IListPublishedServicesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"filters\"])) {\r\n this.filters = [] as any;\r\n for (let item of _data[\"filters\"])\r\n this.filters!.push(ServiceFilter.fromJS(item));\r\n }\r\n else {\r\n this.filters = null;\r\n }\r\n if (_data[\"services\"]) {\r\n this.services = {} as any;\r\n for (let key in _data[\"services\"]) {\r\n if (_data[\"services\"].hasOwnProperty(key))\r\n (this.services)![key] = _data[\"services\"][key] ? ServiceData.fromJS(_data[\"services\"][key]) : new ServiceData();\r\n }\r\n }\r\n else {\r\n this.services = null;\r\n }\r\n this.location = _data[\"location\"] !== undefined ? _data[\"location\"] : null;\r\n this.locationUrlPart = _data[\"locationUrlPart\"] !== undefined ? _data[\"locationUrlPart\"] : null;\r\n this.unmappedMode = _data[\"unmappedMode\"] !== undefined ? _data[\"unmappedMode\"] : null;\r\n if (Array.isArray(_data[\"idsByName\"])) {\r\n this.idsByName = [] as any;\r\n for (let item of _data[\"idsByName\"])\r\n this.idsByName!.push(item);\r\n }\r\n else {\r\n this.idsByName = null;\r\n }\r\n if (Array.isArray(_data[\"idsByPopularity\"])) {\r\n this.idsByPopularity = [] as any;\r\n for (let item of _data[\"idsByPopularity\"])\r\n this.idsByPopularity!.push(item);\r\n }\r\n else {\r\n this.idsByPopularity = null;\r\n }\r\n if (Array.isArray(_data[\"idsShown\"])) {\r\n this.idsShown = [] as any;\r\n for (let item of _data[\"idsShown\"])\r\n this.idsShown!.push(item);\r\n }\r\n else {\r\n this.idsShown = null;\r\n }\r\n if (Array.isArray(_data[\"idsExternal\"])) {\r\n this.idsExternal = [] as any;\r\n for (let item of _data[\"idsExternal\"])\r\n this.idsExternal!.push(item);\r\n }\r\n else {\r\n this.idsExternal = null;\r\n }\r\n if (Array.isArray(_data[\"destinazioni\"])) {\r\n this.destinazioni = [] as any;\r\n for (let item of _data[\"destinazioni\"])\r\n this.destinazioni!.push(ServiceDestination.fromJS(item));\r\n }\r\n else {\r\n this.destinazioni = null;\r\n }\r\n if (Array.isArray(_data[\"luoghiTappe\"])) {\r\n this.luoghiTappe = [] as any;\r\n for (let item of _data[\"luoghiTappe\"])\r\n this.luoghiTappe!.push(ServiceDestination.fromJS(item));\r\n }\r\n else {\r\n this.luoghiTappe = null;\r\n }\r\n this.abilitaFiltroDurata = _data[\"abilitaFiltroDurata\"] !== undefined ? _data[\"abilitaFiltroDurata\"] : null;\r\n this.abilitaFiltroCittaTappa = _data[\"abilitaFiltroCittaTappa\"] !== undefined ? _data[\"abilitaFiltroCittaTappa\"] : null;\r\n this.nascondiNrf = _data[\"nascondiNrf\"] !== undefined ? _data[\"nascondiNrf\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListPublishedServicesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListPublishedServicesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.filters)) {\r\n data[\"filters\"] = [];\r\n for (let item of this.filters)\r\n data[\"filters\"].push(item.toJSON());\r\n }\r\n if (this.services) {\r\n data[\"services\"] = {};\r\n for (let key in this.services) {\r\n if (this.services.hasOwnProperty(key))\r\n (data[\"services\"])[key] = this.services[key] ? this.services[key].toJSON() : null;\r\n }\r\n }\r\n data[\"location\"] = this.location !== undefined ? this.location : null;\r\n data[\"locationUrlPart\"] = this.locationUrlPart !== undefined ? this.locationUrlPart : null;\r\n data[\"unmappedMode\"] = this.unmappedMode !== undefined ? this.unmappedMode : null;\r\n if (Array.isArray(this.idsByName)) {\r\n data[\"idsByName\"] = [];\r\n for (let item of this.idsByName)\r\n data[\"idsByName\"].push(item);\r\n }\r\n if (Array.isArray(this.idsByPopularity)) {\r\n data[\"idsByPopularity\"] = [];\r\n for (let item of this.idsByPopularity)\r\n data[\"idsByPopularity\"].push(item);\r\n }\r\n if (Array.isArray(this.idsShown)) {\r\n data[\"idsShown\"] = [];\r\n for (let item of this.idsShown)\r\n data[\"idsShown\"].push(item);\r\n }\r\n if (Array.isArray(this.idsExternal)) {\r\n data[\"idsExternal\"] = [];\r\n for (let item of this.idsExternal)\r\n data[\"idsExternal\"].push(item);\r\n }\r\n if (Array.isArray(this.destinazioni)) {\r\n data[\"destinazioni\"] = [];\r\n for (let item of this.destinazioni)\r\n data[\"destinazioni\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.luoghiTappe)) {\r\n data[\"luoghiTappe\"] = [];\r\n for (let item of this.luoghiTappe)\r\n data[\"luoghiTappe\"].push(item.toJSON());\r\n }\r\n data[\"abilitaFiltroDurata\"] = this.abilitaFiltroDurata !== undefined ? this.abilitaFiltroDurata : null;\r\n data[\"abilitaFiltroCittaTappa\"] = this.abilitaFiltroCittaTappa !== undefined ? this.abilitaFiltroCittaTappa : null;\r\n data[\"nascondiNrf\"] = this.nascondiNrf !== undefined ? this.nascondiNrf : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListPublishedServicesResponse extends IOkApiResponse {\r\n filters?: ServiceFilter[] | null;\r\n services?: { [key: string]: ServiceData; } | null;\r\n location?: string | null;\r\n locationUrlPart?: string | null;\r\n unmappedMode?: EModalitaNonMappati;\r\n idsByName?: string[] | null;\r\n idsByPopularity?: string[] | null;\r\n idsShown?: string[] | null;\r\n idsExternal?: string[] | null;\r\n destinazioni?: ServiceDestination[] | null;\r\n luoghiTappe?: ServiceDestination[] | null;\r\n abilitaFiltroDurata?: boolean;\r\n abilitaFiltroCittaTappa?: boolean;\r\n nascondiNrf?: boolean;\r\n deleted?: boolean;\r\n}\r\n\r\nexport class ServiceFilter implements IServiceFilter {\r\n id?: number;\r\n name?: string | null;\r\n logic?: EServiceFilterLogic;\r\n primary?: boolean;\r\n values?: ServiceFilterValue[] | null;\r\n sortOrder?: number;\r\n\r\n constructor(data?: IServiceFilter) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.logic = _data[\"logic\"] !== undefined ? _data[\"logic\"] : null;\r\n this.primary = _data[\"primary\"] !== undefined ? _data[\"primary\"] : null;\r\n if (Array.isArray(_data[\"values\"])) {\r\n this.values = [] as any;\r\n for (let item of _data[\"values\"])\r\n this.values!.push(ServiceFilterValue.fromJS(item));\r\n }\r\n else {\r\n this.values = null;\r\n }\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceFilter {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceFilter();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"logic\"] = this.logic !== undefined ? this.logic : null;\r\n data[\"primary\"] = this.primary !== undefined ? this.primary : null;\r\n if (Array.isArray(this.values)) {\r\n data[\"values\"] = [];\r\n for (let item of this.values)\r\n data[\"values\"].push(item.toJSON());\r\n }\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceFilter {\r\n id?: number;\r\n name?: string | null;\r\n logic?: EServiceFilterLogic;\r\n primary?: boolean;\r\n values?: ServiceFilterValue[] | null;\r\n sortOrder?: number;\r\n}\r\n\r\nexport enum EServiceFilterLogic {\r\n AND = \"AND\",\r\n OR = \"OR\",\r\n}\r\n\r\nexport class ServiceFilterValue implements IServiceFilterValue {\r\n id?: number;\r\n name?: string | null;\r\n sortOrder?: number;\r\n\r\n constructor(data?: IServiceFilterValue) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceFilterValue {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceFilterValue();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceFilterValue {\r\n id?: number;\r\n name?: string | null;\r\n sortOrder?: number;\r\n}\r\n\r\nexport class ServiceDestination implements IServiceDestination {\r\n destinazioneID?: number;\r\n nome?: string | null;\r\n regione?: string | null;\r\n paese?: string | null;\r\n\r\n constructor(data?: IServiceDestination) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.destinazioneID = _data[\"destinazioneID\"] !== undefined ? _data[\"destinazioneID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.paese = _data[\"paese\"] !== undefined ? _data[\"paese\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceDestination {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceDestination();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"destinazioneID\"] = this.destinazioneID !== undefined ? this.destinazioneID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"paese\"] = this.paese !== undefined ? this.paese : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceDestination {\r\n destinazioneID?: number;\r\n nome?: string | null;\r\n regione?: string | null;\r\n paese?: string | null;\r\n}\r\n\r\nexport class ListPublishedServicesRequest extends SiteRequest implements IListPublishedServicesRequest {\r\n luogoID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n tipoServizio?: ETipoServizio;\r\n filtroCatalogoTour?: boolean;\r\n filtriAttributo?: number[] | null;\r\n showValid?: boolean | null;\r\n page?: number;\r\n pageSize?: number;\r\n\r\n constructor(data?: IListPublishedServicesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogoDestinazioneID = _data[\"luogoDestinazioneID\"] !== undefined ? _data[\"luogoDestinazioneID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.filtroCatalogoTour = _data[\"filtroCatalogoTour\"] !== undefined ? _data[\"filtroCatalogoTour\"] : null;\r\n if (Array.isArray(_data[\"filtriAttributo\"])) {\r\n this.filtriAttributo = [] as any;\r\n for (let item of _data[\"filtriAttributo\"])\r\n this.filtriAttributo!.push(item);\r\n }\r\n else {\r\n this.filtriAttributo = null;\r\n }\r\n this.showValid = _data[\"showValid\"] !== undefined ? _data[\"showValid\"] : null;\r\n this.page = _data[\"page\"] !== undefined ? _data[\"page\"] : null;\r\n this.pageSize = _data[\"pageSize\"] !== undefined ? _data[\"pageSize\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListPublishedServicesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListPublishedServicesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogoDestinazioneID\"] = this.luogoDestinazioneID !== undefined ? this.luogoDestinazioneID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"filtroCatalogoTour\"] = this.filtroCatalogoTour !== undefined ? this.filtroCatalogoTour : null;\r\n if (Array.isArray(this.filtriAttributo)) {\r\n data[\"filtriAttributo\"] = [];\r\n for (let item of this.filtriAttributo)\r\n data[\"filtriAttributo\"].push(item);\r\n }\r\n data[\"showValid\"] = this.showValid !== undefined ? this.showValid : null;\r\n data[\"page\"] = this.page !== undefined ? this.page : null;\r\n data[\"pageSize\"] = this.pageSize !== undefined ? this.pageSize : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListPublishedServicesRequest extends ISiteRequest {\r\n luogoID?: number | null;\r\n luogoDestinazioneID?: number | null;\r\n tipoServizio?: ETipoServizio;\r\n filtroCatalogoTour?: boolean;\r\n filtriAttributo?: number[] | null;\r\n showValid?: boolean | null;\r\n page?: number;\r\n pageSize?: number;\r\n}\r\n\r\nexport class RestoreTipologiaRequest extends GetTipologieRequest implements IRestoreTipologiaRequest {\r\n servizioTipologiaID?: number;\r\n\r\n constructor(data?: IRestoreTipologiaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioTipologiaID = _data[\"servizioTipologiaID\"] !== undefined ? _data[\"servizioTipologiaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RestoreTipologiaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreTipologiaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioTipologiaID\"] = this.servizioTipologiaID !== undefined ? this.servizioTipologiaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRestoreTipologiaRequest extends IGetTipologieRequest {\r\n servizioTipologiaID?: number;\r\n}\r\n\r\nexport class RestoreTipologieRequest extends GetTipologieRequest implements IRestoreTipologieRequest {\r\n tipologieIDs?: number[] | null;\r\n\r\n constructor(data?: IRestoreTipologieRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tipologieIDs\"])) {\r\n this.tipologieIDs = [] as any;\r\n for (let item of _data[\"tipologieIDs\"])\r\n this.tipologieIDs!.push(item);\r\n }\r\n else {\r\n this.tipologieIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): RestoreTipologieRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreTipologieRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tipologieIDs)) {\r\n data[\"tipologieIDs\"] = [];\r\n for (let item of this.tipologieIDs)\r\n data[\"tipologieIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRestoreTipologieRequest extends IGetTipologieRequest {\r\n tipologieIDs?: number[] | null;\r\n}\r\n\r\nexport class SetAccordiServizioRequest extends ServizioGetRequest implements ISetAccordiServizioRequest {\r\n /** Elenco degli ID degli accordi da associare */\r\n accordiIDs?: number[];\r\n\r\n constructor(data?: ISetAccordiServizioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"accordiIDs\"])) {\r\n this.accordiIDs = [] as any;\r\n for (let item of _data[\"accordiIDs\"])\r\n this.accordiIDs!.push(item);\r\n }\r\n else {\r\n this.accordiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetAccordiServizioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetAccordiServizioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.accordiIDs)) {\r\n data[\"accordiIDs\"] = [];\r\n for (let item of this.accordiIDs)\r\n data[\"accordiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetAccordiServizioRequest extends IServizioGetRequest {\r\n /** Elenco degli ID degli accordi da associare */\r\n accordiIDs?: number[];\r\n}\r\n\r\nexport class SetDatiAggiuntiviRequest extends ServizioGetRequest implements ISetDatiAggiuntiviRequest {\r\n /** Elenco dei dati aggiuntivi da impostare */\r\n dati?: ServizioDatoAggiuntivoBase[];\r\n\r\n constructor(data?: ISetDatiAggiuntiviRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"dati\"])) {\r\n this.dati = [] as any;\r\n for (let item of _data[\"dati\"])\r\n this.dati!.push(ServizioDatoAggiuntivoBase.fromJS(item));\r\n }\r\n else {\r\n this.dati = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetDatiAggiuntiviRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetDatiAggiuntiviRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.dati)) {\r\n data[\"dati\"] = [];\r\n for (let item of this.dati)\r\n data[\"dati\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetDatiAggiuntiviRequest extends IServizioGetRequest {\r\n /** Elenco dei dati aggiuntivi da impostare */\r\n dati?: ServizioDatoAggiuntivoBase[];\r\n}\r\n\r\nexport abstract class ServizioDatoAggiuntivoBase implements IServizioDatoAggiuntivoBase {\r\n id?: number;\r\n servizioID?: number;\r\n datoAggiuntivoID?: number;\r\n tipoServizio?: ETipoServizio | null;\r\n valore?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n valore_fr?: string | null;\r\n valore_de?: string | null;\r\n valore_es?: string | null;\r\n valore_en?: string | null;\r\n\r\n constructor(data?: IServizioDatoAggiuntivoBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.datoAggiuntivoID = _data[\"datoAggiuntivoID\"] !== undefined ? _data[\"datoAggiuntivoID\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.valore_fr = _data[\"valore_fr\"] !== undefined ? _data[\"valore_fr\"] : null;\r\n this.valore_de = _data[\"valore_de\"] !== undefined ? _data[\"valore_de\"] : null;\r\n this.valore_es = _data[\"valore_es\"] !== undefined ? _data[\"valore_es\"] : null;\r\n this.valore_en = _data[\"valore_en\"] !== undefined ? _data[\"valore_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioDatoAggiuntivoBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ServizioDatoAggiuntivoBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"datoAggiuntivoID\"] = this.datoAggiuntivoID !== undefined ? this.datoAggiuntivoID : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"valore_fr\"] = this.valore_fr !== undefined ? this.valore_fr : null;\r\n data[\"valore_de\"] = this.valore_de !== undefined ? this.valore_de : null;\r\n data[\"valore_es\"] = this.valore_es !== undefined ? this.valore_es : null;\r\n data[\"valore_en\"] = this.valore_en !== undefined ? this.valore_en : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioDatoAggiuntivoBase {\r\n id?: number;\r\n servizioID?: number;\r\n datoAggiuntivoID?: number;\r\n tipoServizio?: ETipoServizio | null;\r\n valore?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n valore_fr?: string | null;\r\n valore_de?: string | null;\r\n valore_es?: string | null;\r\n valore_en?: string | null;\r\n}\r\n\r\nexport class SetLuoghiServizioRequest extends ServizioGetRequest implements ISetLuoghiServizioRequest {\r\n /** Elenco degli ID dei luoghi */\r\n luoghiIDs?: number[];\r\n\r\n constructor(data?: ISetLuoghiServizioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"luoghiIDs\"])) {\r\n this.luoghiIDs = [] as any;\r\n for (let item of _data[\"luoghiIDs\"])\r\n this.luoghiIDs!.push(item);\r\n }\r\n else {\r\n this.luoghiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetLuoghiServizioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetLuoghiServizioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.luoghiIDs)) {\r\n data[\"luoghiIDs\"] = [];\r\n for (let item of this.luoghiIDs)\r\n data[\"luoghiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetLuoghiServizioRequest extends IServizioGetRequest {\r\n /** Elenco degli ID dei luoghi */\r\n luoghiIDs?: number[];\r\n}\r\n\r\nexport class SetPartenzeRequest extends ServizioGetRequest implements ISetPartenzeRequest {\r\n /** Elenco delle partenze da impostare */\r\n partenze?: PartenzaBase[];\r\n\r\n constructor(data?: ISetPartenzeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"partenze\"])) {\r\n this.partenze = [] as any;\r\n for (let item of _data[\"partenze\"])\r\n this.partenze!.push(PartenzaBase.fromJS(item));\r\n }\r\n else {\r\n this.partenze = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetPartenzeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetPartenzeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.partenze)) {\r\n data[\"partenze\"] = [];\r\n for (let item of this.partenze)\r\n data[\"partenze\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetPartenzeRequest extends IServizioGetRequest {\r\n /** Elenco delle partenze da impostare */\r\n partenze?: PartenzaBase[];\r\n}\r\n\r\nexport class UpdateCostiRequest extends ServizioGetRequest implements IUpdateCostiRequest {\r\n /** Costi da aggiornare */\r\n costi?: Costo[];\r\n /** Lista di ID di costi doppi che vanno eliminati */\r\n doppioniDaEliminareIDs?: number[] | null;\r\n\r\n constructor(data?: IUpdateCostiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"costi\"])) {\r\n this.costi = [] as any;\r\n for (let item of _data[\"costi\"])\r\n this.costi!.push(Costo.fromJS(item));\r\n }\r\n else {\r\n this.costi = null;\r\n }\r\n if (Array.isArray(_data[\"doppioniDaEliminareIDs\"])) {\r\n this.doppioniDaEliminareIDs = [] as any;\r\n for (let item of _data[\"doppioniDaEliminareIDs\"])\r\n this.doppioniDaEliminareIDs!.push(item);\r\n }\r\n else {\r\n this.doppioniDaEliminareIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateCostiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateCostiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.costi)) {\r\n data[\"costi\"] = [];\r\n for (let item of this.costi)\r\n data[\"costi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.doppioniDaEliminareIDs)) {\r\n data[\"doppioniDaEliminareIDs\"] = [];\r\n for (let item of this.doppioniDaEliminareIDs)\r\n data[\"doppioniDaEliminareIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateCostiRequest extends IServizioGetRequest {\r\n /** Costi da aggiornare */\r\n costi?: Costo[];\r\n /** Lista di ID di costi doppi che vanno eliminati */\r\n doppioniDaEliminareIDs?: number[] | null;\r\n}\r\n\r\nexport class UpdateDatiCostiRequest extends ServizioGetRequest implements IUpdateDatiCostiRequest {\r\n /** Lista degli ID dei costi da modificare */\r\n costiIDs?: number[];\r\n /** Dati da aggiornare */\r\n dati?: CostiUpdateData;\r\n\r\n constructor(data?: IUpdateDatiCostiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"costiIDs\"])) {\r\n this.costiIDs = [] as any;\r\n for (let item of _data[\"costiIDs\"])\r\n this.costiIDs!.push(item);\r\n }\r\n else {\r\n this.costiIDs = null;\r\n }\r\n this.dati = _data[\"dati\"] ? CostiUpdateData.fromJS(_data[\"dati\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateDatiCostiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDatiCostiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.costiIDs)) {\r\n data[\"costiIDs\"] = [];\r\n for (let item of this.costiIDs)\r\n data[\"costiIDs\"].push(item);\r\n }\r\n data[\"dati\"] = this.dati ? this.dati.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDatiCostiRequest extends IServizioGetRequest {\r\n /** Lista degli ID dei costi da modificare */\r\n costiIDs?: number[];\r\n /** Dati da aggiornare */\r\n dati?: CostiUpdateData;\r\n}\r\n\r\nexport class CostiUpdateData implements ICostiUpdateData {\r\n tabellaCostiID?: number | null;\r\n tipologiaID?: number | null;\r\n validitaID?: number | null;\r\n updateRegolaServizio?: boolean;\r\n regolaServizioID?: number | null;\r\n updateRegolaVendita?: boolean;\r\n regolaVenditaID?: number | null;\r\n updateTrattamento?: boolean;\r\n trattamentoID?: number | null;\r\n updateCodicePrenotazione?: boolean;\r\n codicePrenotazione?: string | null;\r\n updateRegolaCostiBambino?: boolean;\r\n regolaCostiBambino?: ERegolaCostiBambino | null;\r\n updateEtaChild?: boolean;\r\n etaChild?: number | null;\r\n\r\n constructor(data?: ICostiUpdateData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tabellaCostiID = _data[\"tabellaCostiID\"] !== undefined ? _data[\"tabellaCostiID\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.validitaID = _data[\"validitaID\"] !== undefined ? _data[\"validitaID\"] : null;\r\n this.updateRegolaServizio = _data[\"updateRegolaServizio\"] !== undefined ? _data[\"updateRegolaServizio\"] : null;\r\n this.regolaServizioID = _data[\"regolaServizioID\"] !== undefined ? _data[\"regolaServizioID\"] : null;\r\n this.updateRegolaVendita = _data[\"updateRegolaVendita\"] !== undefined ? _data[\"updateRegolaVendita\"] : null;\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n this.updateTrattamento = _data[\"updateTrattamento\"] !== undefined ? _data[\"updateTrattamento\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.updateCodicePrenotazione = _data[\"updateCodicePrenotazione\"] !== undefined ? _data[\"updateCodicePrenotazione\"] : null;\r\n this.codicePrenotazione = _data[\"codicePrenotazione\"] !== undefined ? _data[\"codicePrenotazione\"] : null;\r\n this.updateRegolaCostiBambino = _data[\"updateRegolaCostiBambino\"] !== undefined ? _data[\"updateRegolaCostiBambino\"] : null;\r\n this.regolaCostiBambino = _data[\"regolaCostiBambino\"] !== undefined ? _data[\"regolaCostiBambino\"] : null;\r\n this.updateEtaChild = _data[\"updateEtaChild\"] !== undefined ? _data[\"updateEtaChild\"] : null;\r\n this.etaChild = _data[\"etaChild\"] !== undefined ? _data[\"etaChild\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CostiUpdateData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CostiUpdateData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tabellaCostiID\"] = this.tabellaCostiID !== undefined ? this.tabellaCostiID : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"validitaID\"] = this.validitaID !== undefined ? this.validitaID : null;\r\n data[\"updateRegolaServizio\"] = this.updateRegolaServizio !== undefined ? this.updateRegolaServizio : null;\r\n data[\"regolaServizioID\"] = this.regolaServizioID !== undefined ? this.regolaServizioID : null;\r\n data[\"updateRegolaVendita\"] = this.updateRegolaVendita !== undefined ? this.updateRegolaVendita : null;\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n data[\"updateTrattamento\"] = this.updateTrattamento !== undefined ? this.updateTrattamento : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"updateCodicePrenotazione\"] = this.updateCodicePrenotazione !== undefined ? this.updateCodicePrenotazione : null;\r\n data[\"codicePrenotazione\"] = this.codicePrenotazione !== undefined ? this.codicePrenotazione : null;\r\n data[\"updateRegolaCostiBambino\"] = this.updateRegolaCostiBambino !== undefined ? this.updateRegolaCostiBambino : null;\r\n data[\"regolaCostiBambino\"] = this.regolaCostiBambino !== undefined ? this.regolaCostiBambino : null;\r\n data[\"updateEtaChild\"] = this.updateEtaChild !== undefined ? this.updateEtaChild : null;\r\n data[\"etaChild\"] = this.etaChild !== undefined ? this.etaChild : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICostiUpdateData {\r\n tabellaCostiID?: number | null;\r\n tipologiaID?: number | null;\r\n validitaID?: number | null;\r\n updateRegolaServizio?: boolean;\r\n regolaServizioID?: number | null;\r\n updateRegolaVendita?: boolean;\r\n regolaVenditaID?: number | null;\r\n updateTrattamento?: boolean;\r\n trattamentoID?: number | null;\r\n updateCodicePrenotazione?: boolean;\r\n codicePrenotazione?: string | null;\r\n updateRegolaCostiBambino?: boolean;\r\n regolaCostiBambino?: ERegolaCostiBambino | null;\r\n updateEtaChild?: boolean;\r\n etaChild?: number | null;\r\n}\r\n\r\nexport class UpdateMargineRequest extends ServizioGetRequest implements IUpdateMargineRequest {\r\n /** Costi da aggiornare */\r\n costi?: Costo[];\r\n /** Margine da impostare */\r\n margine?: number;\r\n\r\n constructor(data?: IUpdateMargineRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"costi\"])) {\r\n this.costi = [] as any;\r\n for (let item of _data[\"costi\"])\r\n this.costi!.push(Costo.fromJS(item));\r\n }\r\n else {\r\n this.costi = null;\r\n }\r\n this.margine = _data[\"margine\"] !== undefined ? _data[\"margine\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateMargineRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateMargineRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.costi)) {\r\n data[\"costi\"] = [];\r\n for (let item of this.costi)\r\n data[\"costi\"].push(item.toJSON());\r\n }\r\n data[\"margine\"] = this.margine !== undefined ? this.margine : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateMargineRequest extends IServizioGetRequest {\r\n /** Costi da aggiornare */\r\n costi?: Costo[];\r\n /** Margine da impostare */\r\n margine?: number;\r\n}\r\n\r\nexport class UpdatePublishingRequest extends ApiRequest implements IUpdatePublishingRequest {\r\n servizioId?: number;\r\n siteId?: number;\r\n status?: EStatoPubblicazioneServizio;\r\n\r\n constructor(data?: IUpdatePublishingRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioId = _data[\"servizioId\"] !== undefined ? _data[\"servizioId\"] : null;\r\n this.siteId = _data[\"siteId\"] !== undefined ? _data[\"siteId\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdatePublishingRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdatePublishingRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioId\"] = this.servizioId !== undefined ? this.servizioId : null;\r\n data[\"siteId\"] = this.siteId !== undefined ? this.siteId : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdatePublishingRequest extends IApiRequest {\r\n servizioId?: number;\r\n siteId?: number;\r\n status?: EStatoPubblicazioneServizio;\r\n}\r\n\r\nexport class ServizioUpsertRequest extends ServizioGetRequest implements IServizioUpsertRequest {\r\n servizio?: Servizio | null;\r\n\r\n constructor(data?: IServizioUpsertRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? Servizio.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioUpsertRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioUpsertRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioUpsertRequest extends IServizioGetRequest {\r\n servizio?: Servizio | null;\r\n}\r\n\r\nexport class UpsertAssociazioneResponse extends GetAssociazioniResponse implements IUpsertAssociazioneResponse {\r\n associazione?: ServizioAssociazione;\r\n offerta?: OffertaComponibile | null;\r\n\r\n constructor(data?: IUpsertAssociazioneResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.associazione = _data[\"associazione\"] ? ServizioAssociazione.fromJS(_data[\"associazione\"]) : null;\r\n this.offerta = _data[\"offerta\"] ? OffertaComponibile.fromJS(_data[\"offerta\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertAssociazioneResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertAssociazioneResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"associazione\"] = this.associazione ? this.associazione.toJSON() : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertAssociazioneResponse extends IGetAssociazioniResponse {\r\n associazione?: ServizioAssociazione;\r\n offerta?: OffertaComponibile | null;\r\n}\r\n\r\nexport class UpsertAssociazioneRequest extends ServizioGetRequest implements IUpsertAssociazioneRequest {\r\n /** Entità dell'associazione */\r\n associazione!: ServizioAssociazione;\r\n /** Entità dell'offerta componibile. Compilare se l'associazione è di tipo Offerta */\r\n offerta?: OffertaComponibile | null;\r\n /** Lista delle configurazioni delle precondizioni di un'offerta componibile */\r\n configurazionePrecondizioni?: ConfigValue[] | null;\r\n /** Configurazione dell'eventuale algorirmo dell'offerta componibile */\r\n configurazioneAlgoritmo?: ConfigValue | null;\r\n\r\n constructor(data?: IUpsertAssociazioneRequest) {\r\n super(data);\r\n if (!data) {\r\n this.associazione = new ServizioAssociazione();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.associazione = _data[\"associazione\"] ? ServizioAssociazione.fromJS(_data[\"associazione\"]) : new ServizioAssociazione();\r\n this.offerta = _data[\"offerta\"] ? OffertaComponibile.fromJS(_data[\"offerta\"]) : null;\r\n if (Array.isArray(_data[\"configurazionePrecondizioni\"])) {\r\n this.configurazionePrecondizioni = [] as any;\r\n for (let item of _data[\"configurazionePrecondizioni\"])\r\n this.configurazionePrecondizioni!.push(ConfigValue.fromJS(item));\r\n }\r\n else {\r\n this.configurazionePrecondizioni = null;\r\n }\r\n this.configurazioneAlgoritmo = _data[\"configurazioneAlgoritmo\"] ? ConfigValue.fromJS(_data[\"configurazioneAlgoritmo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertAssociazioneRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertAssociazioneRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"associazione\"] = this.associazione ? this.associazione.toJSON() : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n if (Array.isArray(this.configurazionePrecondizioni)) {\r\n data[\"configurazionePrecondizioni\"] = [];\r\n for (let item of this.configurazionePrecondizioni)\r\n data[\"configurazionePrecondizioni\"].push(item.toJSON());\r\n }\r\n data[\"configurazioneAlgoritmo\"] = this.configurazioneAlgoritmo ? this.configurazioneAlgoritmo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertAssociazioneRequest extends IServizioGetRequest {\r\n /** Entità dell'associazione */\r\n associazione: ServizioAssociazione;\r\n /** Entità dell'offerta componibile. Compilare se l'associazione è di tipo Offerta */\r\n offerta?: OffertaComponibile | null;\r\n /** Lista delle configurazioni delle precondizioni di un'offerta componibile */\r\n configurazionePrecondizioni?: ConfigValue[] | null;\r\n /** Configurazione dell'eventuale algorirmo dell'offerta componibile */\r\n configurazioneAlgoritmo?: ConfigValue | null;\r\n}\r\n\r\nexport class ConfigValue implements IConfigValue {\r\n codice?: string;\r\n configurazione?: any;\r\n\r\n constructor(data?: IConfigValue) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.configurazione = _data[\"configurazione\"] !== undefined ? _data[\"configurazione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfigValue {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfigValue();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"configurazione\"] = this.configurazione !== undefined ? this.configurazione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfigValue {\r\n codice?: string;\r\n configurazione?: any;\r\n}\r\n\r\nexport class UpsertDynamicPackageRulesResponse extends GetDynamicPackageRulesResponse implements IUpsertDynamicPackageRulesResponse {\r\n regola?: ServizioRegolaScontoPacchetto | null;\r\n\r\n constructor(data?: IUpsertDynamicPackageRulesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regola = _data[\"regola\"] ? ServizioRegolaScontoPacchetto.fromJS(_data[\"regola\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertDynamicPackageRulesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertDynamicPackageRulesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertDynamicPackageRulesResponse extends IGetDynamicPackageRulesResponse {\r\n regola?: ServizioRegolaScontoPacchetto | null;\r\n}\r\n\r\nexport class UpsertDynamicPackageRulesRequest extends GetDynamicPackageRulesRequest implements IUpsertDynamicPackageRulesRequest {\r\n regola?: ServizioRegolaScontoPacchetto | null;\r\n\r\n constructor(data?: IUpsertDynamicPackageRulesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regola = _data[\"regola\"] ? ServizioRegolaScontoPacchetto.fromJS(_data[\"regola\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertDynamicPackageRulesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertDynamicPackageRulesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertDynamicPackageRulesRequest extends IGetDynamicPackageRulesRequest {\r\n regola?: ServizioRegolaScontoPacchetto | null;\r\n}\r\n\r\nexport class UpsertItinerarioResponse extends GetItinerariResponse implements IUpsertItinerarioResponse {\r\n itinerario?: ServizioItinerario | null;\r\n\r\n constructor(data?: IUpsertItinerarioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.itinerario = _data[\"itinerario\"] ? ServizioItinerario.fromJS(_data[\"itinerario\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertItinerarioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertItinerarioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertItinerarioResponse extends IGetItinerariResponse {\r\n itinerario?: ServizioItinerario | null;\r\n}\r\n\r\nexport class UpsertItinerarioRequest extends ServizioGetRequest implements IUpsertItinerarioRequest {\r\n itinerario?: ServizioItinerario | null;\r\n tappe?: ItinerioGiornoServizi[] | null;\r\n\r\n constructor(data?: IUpsertItinerarioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.itinerario = _data[\"itinerario\"] ? ServizioItinerario.fromJS(_data[\"itinerario\"]) : null;\r\n if (Array.isArray(_data[\"tappe\"])) {\r\n this.tappe = [] as any;\r\n for (let item of _data[\"tappe\"])\r\n this.tappe!.push(ItinerioGiornoServizi.fromJS(item));\r\n }\r\n else {\r\n this.tappe = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertItinerarioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertItinerarioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n if (Array.isArray(this.tappe)) {\r\n data[\"tappe\"] = [];\r\n for (let item of this.tappe)\r\n data[\"tappe\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertItinerarioRequest extends IServizioGetRequest {\r\n itinerario?: ServizioItinerario | null;\r\n tappe?: ItinerioGiornoServizi[] | null;\r\n}\r\n\r\nexport class ItinerioGiornoServizi implements IItinerioGiornoServizi {\r\n giorno?: ServizioItinerarioGiorno | null;\r\n servizi?: ServizioItinerarioGiornoServizio[] | null;\r\n\r\n constructor(data?: IItinerioGiornoServizi) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giorno = _data[\"giorno\"] ? ServizioItinerarioGiorno.fromJS(_data[\"giorno\"]) : null;\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(ServizioItinerarioGiornoServizio.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ItinerioGiornoServizi {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ItinerioGiornoServizi();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorno\"] = this.giorno ? this.giorno.toJSON() : null;\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IItinerioGiornoServizi {\r\n giorno?: ServizioItinerarioGiorno | null;\r\n servizi?: ServizioItinerarioGiornoServizio[] | null;\r\n}\r\n\r\nexport class UpsertRegolaServizioResponse extends GetRegoleServizioResponse implements IUpsertRegolaServizioResponse {\r\n regola?: ServizioRegola | null;\r\n\r\n constructor(data?: IUpsertRegolaServizioResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regola = _data[\"regola\"] ? ServizioRegola.fromJS(_data[\"regola\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertRegolaServizioResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertRegolaServizioResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertRegolaServizioResponse extends IGetRegoleServizioResponse {\r\n regola?: ServizioRegola | null;\r\n}\r\n\r\nexport class UpsertRegolaServizioRequest extends ServizioGetRequest implements IUpsertRegolaServizioRequest {\r\n regola?: ServizioRegola | null;\r\n\r\n constructor(data?: IUpsertRegolaServizioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regola = _data[\"regola\"] ? ServizioRegola.fromJS(_data[\"regola\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertRegolaServizioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertRegolaServizioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertRegolaServizioRequest extends IServizioGetRequest {\r\n regola?: ServizioRegola | null;\r\n}\r\n\r\nexport class UpsertRegolaVenditaResponse extends GetRegoleVenditaResponse implements IUpsertRegolaVenditaResponse {\r\n regola?: ServizioRegolaVendita | null;\r\n\r\n constructor(data?: IUpsertRegolaVenditaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regola = _data[\"regola\"] ? ServizioRegolaVendita.fromJS(_data[\"regola\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertRegolaVenditaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertRegolaVenditaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertRegolaVenditaResponse extends IGetRegoleVenditaResponse {\r\n regola?: ServizioRegolaVendita | null;\r\n}\r\n\r\nexport class UpsertRegolaVenditaRequest extends ServizioGetRequest implements IUpsertRegolaVenditaRequest {\r\n regola?: ServizioRegolaVenditaBase | null;\r\n\r\n constructor(data?: IUpsertRegolaVenditaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.regola = _data[\"regola\"] ? ServizioRegolaVenditaBase.fromJS(_data[\"regola\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertRegolaVenditaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertRegolaVenditaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"regola\"] = this.regola ? this.regola.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertRegolaVenditaRequest extends IServizioGetRequest {\r\n regola?: ServizioRegolaVenditaBase | null;\r\n}\r\n\r\nexport abstract class ServizioRegolaVenditaBase implements IServizioRegolaVenditaBase {\r\n id?: number;\r\n servizioID?: number;\r\n nome?: string | null;\r\n numeroGiorni?: number | null;\r\n minimoGiorni?: number | null;\r\n massimoGiorni?: number | null;\r\n etaMinima?: number | null;\r\n etaMassima?: number | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n commissioniAgenzia?: number | null;\r\n commissioniTourOperator?: number | null;\r\n minimoNottiPeriodo?: number | null;\r\n giorniEntrata?: string | null;\r\n giorniUscita?: string | null;\r\n prenotaEntroData?: string | null;\r\n prenotaEntroGiorni?: number | null;\r\n deregolamentaSuRichiesta?: boolean | null;\r\n penaleID?: number | null;\r\n giorniPenale?: number | null;\r\n percentualePenale?: number | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n articoloID?: number | null;\r\n\r\n constructor(data?: IServizioRegolaVenditaBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.numeroGiorni = _data[\"numeroGiorni\"] !== undefined ? _data[\"numeroGiorni\"] : null;\r\n this.minimoGiorni = _data[\"minimoGiorni\"] !== undefined ? _data[\"minimoGiorni\"] : null;\r\n this.massimoGiorni = _data[\"massimoGiorni\"] !== undefined ? _data[\"massimoGiorni\"] : null;\r\n this.etaMinima = _data[\"etaMinima\"] !== undefined ? _data[\"etaMinima\"] : null;\r\n this.etaMassima = _data[\"etaMassima\"] !== undefined ? _data[\"etaMassima\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.commissioniAgenzia = _data[\"commissioniAgenzia\"] !== undefined ? _data[\"commissioniAgenzia\"] : null;\r\n this.commissioniTourOperator = _data[\"commissioniTourOperator\"] !== undefined ? _data[\"commissioniTourOperator\"] : null;\r\n this.minimoNottiPeriodo = _data[\"minimoNottiPeriodo\"] !== undefined ? _data[\"minimoNottiPeriodo\"] : null;\r\n this.giorniEntrata = _data[\"giorniEntrata\"] !== undefined ? _data[\"giorniEntrata\"] : null;\r\n this.giorniUscita = _data[\"giorniUscita\"] !== undefined ? _data[\"giorniUscita\"] : null;\r\n this.prenotaEntroData = _data[\"prenotaEntroData\"] !== undefined ? _data[\"prenotaEntroData\"] : null;\r\n this.prenotaEntroGiorni = _data[\"prenotaEntroGiorni\"] !== undefined ? _data[\"prenotaEntroGiorni\"] : null;\r\n this.deregolamentaSuRichiesta = _data[\"deregolamentaSuRichiesta\"] !== undefined ? _data[\"deregolamentaSuRichiesta\"] : null;\r\n this.penaleID = _data[\"penaleID\"] !== undefined ? _data[\"penaleID\"] : null;\r\n this.giorniPenale = _data[\"giorniPenale\"] !== undefined ? _data[\"giorniPenale\"] : null;\r\n this.percentualePenale = _data[\"percentualePenale\"] !== undefined ? _data[\"percentualePenale\"] : null;\r\n this.nome_fr = _data[\"nome_fr\"] !== undefined ? _data[\"nome_fr\"] : null;\r\n this.nome_de = _data[\"nome_de\"] !== undefined ? _data[\"nome_de\"] : null;\r\n this.nome_es = _data[\"nome_es\"] !== undefined ? _data[\"nome_es\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioRegolaVenditaBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'ServizioRegolaVenditaBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"numeroGiorni\"] = this.numeroGiorni !== undefined ? this.numeroGiorni : null;\r\n data[\"minimoGiorni\"] = this.minimoGiorni !== undefined ? this.minimoGiorni : null;\r\n data[\"massimoGiorni\"] = this.massimoGiorni !== undefined ? this.massimoGiorni : null;\r\n data[\"etaMinima\"] = this.etaMinima !== undefined ? this.etaMinima : null;\r\n data[\"etaMassima\"] = this.etaMassima !== undefined ? this.etaMassima : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"commissioniAgenzia\"] = this.commissioniAgenzia !== undefined ? this.commissioniAgenzia : null;\r\n data[\"commissioniTourOperator\"] = this.commissioniTourOperator !== undefined ? this.commissioniTourOperator : null;\r\n data[\"minimoNottiPeriodo\"] = this.minimoNottiPeriodo !== undefined ? this.minimoNottiPeriodo : null;\r\n data[\"giorniEntrata\"] = this.giorniEntrata !== undefined ? this.giorniEntrata : null;\r\n data[\"giorniUscita\"] = this.giorniUscita !== undefined ? this.giorniUscita : null;\r\n data[\"prenotaEntroData\"] = this.prenotaEntroData !== undefined ? this.prenotaEntroData : null;\r\n data[\"prenotaEntroGiorni\"] = this.prenotaEntroGiorni !== undefined ? this.prenotaEntroGiorni : null;\r\n data[\"deregolamentaSuRichiesta\"] = this.deregolamentaSuRichiesta !== undefined ? this.deregolamentaSuRichiesta : null;\r\n data[\"penaleID\"] = this.penaleID !== undefined ? this.penaleID : null;\r\n data[\"giorniPenale\"] = this.giorniPenale !== undefined ? this.giorniPenale : null;\r\n data[\"percentualePenale\"] = this.percentualePenale !== undefined ? this.percentualePenale : null;\r\n data[\"nome_fr\"] = this.nome_fr !== undefined ? this.nome_fr : null;\r\n data[\"nome_de\"] = this.nome_de !== undefined ? this.nome_de : null;\r\n data[\"nome_es\"] = this.nome_es !== undefined ? this.nome_es : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioRegolaVenditaBase {\r\n id?: number;\r\n servizioID?: number;\r\n nome?: string | null;\r\n numeroGiorni?: number | null;\r\n minimoGiorni?: number | null;\r\n massimoGiorni?: number | null;\r\n etaMinima?: number | null;\r\n etaMassima?: number | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n commissioniAgenzia?: number | null;\r\n commissioniTourOperator?: number | null;\r\n minimoNottiPeriodo?: number | null;\r\n giorniEntrata?: string | null;\r\n giorniUscita?: string | null;\r\n prenotaEntroData?: string | null;\r\n prenotaEntroGiorni?: number | null;\r\n deregolamentaSuRichiesta?: boolean | null;\r\n penaleID?: number | null;\r\n giorniPenale?: number | null;\r\n percentualePenale?: number | null;\r\n nome_fr?: string | null;\r\n nome_de?: string | null;\r\n nome_es?: string | null;\r\n nome_en?: string | null;\r\n articoloID?: number | null;\r\n}\r\n\r\nexport class UpsertTipologiaResponse extends GetTipologieResponse implements IUpsertTipologiaResponse {\r\n tipologia?: ServizioTipologia | null;\r\n nome?: string | null;\r\n\r\n constructor(data?: IUpsertTipologiaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologia.fromJS(_data[\"tipologia\"]) : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertTipologiaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertTipologiaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertTipologiaResponse extends IGetTipologieResponse {\r\n tipologia?: ServizioTipologia | null;\r\n nome?: string | null;\r\n}\r\n\r\nexport class UpsertTiplogiaRequest extends GetTipologieRequest implements IUpsertTiplogiaRequest {\r\n tipologia?: ServizioTipologia | null;\r\n\r\n constructor(data?: IUpsertTiplogiaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipologia = _data[\"tipologia\"] ? ServizioTipologia.fromJS(_data[\"tipologia\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertTiplogiaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertTiplogiaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipologia\"] = this.tipologia ? this.tipologia.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertTiplogiaRequest extends IGetTipologieRequest {\r\n tipologia?: ServizioTipologia | null;\r\n}\r\n\r\nexport class UpsertValiditaResponse extends GetValiditaResponse implements IUpsertValiditaResponse {\r\n validitaEdit?: Validita | null;\r\n\r\n constructor(data?: IUpsertValiditaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.validitaEdit = _data[\"validitaEdit\"] ? Validita.fromJS(_data[\"validitaEdit\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertValiditaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertValiditaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"validitaEdit\"] = this.validitaEdit ? this.validitaEdit.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertValiditaResponse extends IGetValiditaResponse {\r\n validitaEdit?: Validita | null;\r\n}\r\n\r\nexport class UpsertValiditaRequest extends ServizioGetRequest implements IUpsertValiditaRequest {\r\n validita?: Validita | null;\r\n\r\n constructor(data?: IUpsertValiditaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.validita = _data[\"validita\"] ? Validita.fromJS(_data[\"validita\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertValiditaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertValiditaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"validita\"] = this.validita ? this.validita.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertValiditaRequest extends IServizioGetRequest {\r\n validita?: Validita | null;\r\n}\r\n\r\nexport class ChangeMacroTypeRequest extends LocalizedRequest implements IChangeMacroTypeRequest {\r\n servizioHHID?: number;\r\n tipologiaHHID?: number;\r\n newMacroTypeID?: number;\r\n\r\n constructor(data?: IChangeMacroTypeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHID = _data[\"servizioHHID\"] !== undefined ? _data[\"servizioHHID\"] : null;\r\n this.tipologiaHHID = _data[\"tipologiaHHID\"] !== undefined ? _data[\"tipologiaHHID\"] : null;\r\n this.newMacroTypeID = _data[\"newMacroTypeID\"] !== undefined ? _data[\"newMacroTypeID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ChangeMacroTypeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ChangeMacroTypeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHID\"] = this.servizioHHID !== undefined ? this.servizioHHID : null;\r\n data[\"tipologiaHHID\"] = this.tipologiaHHID !== undefined ? this.tipologiaHHID : null;\r\n data[\"newMacroTypeID\"] = this.newMacroTypeID !== undefined ? this.newMacroTypeID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IChangeMacroTypeRequest extends ILocalizedRequest {\r\n servizioHHID?: number;\r\n tipologiaHHID?: number;\r\n newMacroTypeID?: number;\r\n}\r\n\r\nexport class ConfirmAutomatchServizioH2HRequest extends ApiRequest implements IConfirmAutomatchServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IConfirmAutomatchServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfirmAutomatchServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfirmAutomatchServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfirmAutomatchServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class ConfirmMappingServizioH2HRequest extends ApiRequest implements IConfirmMappingServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IConfirmMappingServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfirmMappingServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfirmMappingServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfirmMappingServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class ConfirmTypeMappingResponse extends OkApiResponse implements IConfirmTypeMappingResponse {\r\n codice?: HHCodice | null;\r\n\r\n constructor(data?: IConfirmTypeMappingResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.codice = _data[\"codice\"] ? HHCodice.fromJS(_data[\"codice\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfirmTypeMappingResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfirmTypeMappingResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice ? this.codice.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfirmTypeMappingResponse extends IOkApiResponse {\r\n codice?: HHCodice | null;\r\n}\r\n\r\nexport class ConfirmTypeMappingRequest extends ApiRequest implements IConfirmTypeMappingRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n\r\n constructor(data?: IConfirmTypeMappingRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.tipologiaHHID = _data[\"tipologiaHHID\"] !== undefined ? _data[\"tipologiaHHID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfirmTypeMappingRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfirmTypeMappingRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"tipologiaHHID\"] = this.tipologiaHHID !== undefined ? this.tipologiaHHID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfirmTypeMappingRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n}\r\n\r\nexport class CreateServizioH2HResponse extends OkApiResponse implements ICreateServizioH2HResponse {\r\n servizio?: HHServizioAggregato | null;\r\n luogo?: string | null;\r\n\r\n constructor(data?: ICreateServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizioAggregato.fromJS(_data[\"servizio\"]) : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateServizioH2HResponse extends IOkApiResponse {\r\n servizio?: HHServizioAggregato | null;\r\n luogo?: string | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class CreateServizioH2HRequest extends ApiRequest implements ICreateServizioH2HRequest {\r\n servizioHH?: HHServizioAggregato | null;\r\n createNaarService?: boolean;\r\n servizioNaar?: CreateServizioNaarRequest | null;\r\n mappa?: CreateMappaRequest | null;\r\n\r\n constructor(data?: ICreateServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHH = _data[\"servizioHH\"] ? HHServizioAggregato.fromJS(_data[\"servizioHH\"]) : null;\r\n this.createNaarService = _data[\"createNaarService\"] !== undefined ? _data[\"createNaarService\"] : null;\r\n this.servizioNaar = _data[\"servizioNaar\"] ? CreateServizioNaarRequest.fromJS(_data[\"servizioNaar\"]) : null;\r\n this.mappa = _data[\"mappa\"] ? CreateMappaRequest.fromJS(_data[\"mappa\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHH\"] = this.servizioHH ? this.servizioHH.toJSON() : null;\r\n data[\"createNaarService\"] = this.createNaarService !== undefined ? this.createNaarService : null;\r\n data[\"servizioNaar\"] = this.servizioNaar ? this.servizioNaar.toJSON() : null;\r\n data[\"mappa\"] = this.mappa ? this.mappa.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface ICreateServizioH2HRequest extends IApiRequest {\r\n servizioHH?: HHServizioAggregato | null;\r\n createNaarService?: boolean;\r\n servizioNaar?: CreateServizioNaarRequest | null;\r\n mappa?: CreateMappaRequest | null;\r\n}\r\n\r\nexport class CreateServizioNaarRequest implements ICreateServizioNaarRequest {\r\n ordine?: number | null;\r\n preferito?: boolean;\r\n pubblicazione?: EStatoPubblicazioneServizio | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n attributiIDs?: number[] | null;\r\n\r\n constructor(data?: ICreateServizioNaarRequest) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.preferito = _data[\"preferito\"] !== undefined ? _data[\"preferito\"] : null;\r\n this.pubblicazione = _data[\"pubblicazione\"] !== undefined ? _data[\"pubblicazione\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n if (Array.isArray(_data[\"attributiIDs\"])) {\r\n this.attributiIDs = [] as any;\r\n for (let item of _data[\"attributiIDs\"])\r\n this.attributiIDs!.push(item);\r\n }\r\n else {\r\n this.attributiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateServizioNaarRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateServizioNaarRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"preferito\"] = this.preferito !== undefined ? this.preferito : null;\r\n data[\"pubblicazione\"] = this.pubblicazione !== undefined ? this.pubblicazione : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n if (Array.isArray(this.attributiIDs)) {\r\n data[\"attributiIDs\"] = [];\r\n for (let item of this.attributiIDs)\r\n data[\"attributiIDs\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateServizioNaarRequest {\r\n ordine?: number | null;\r\n preferito?: boolean;\r\n pubblicazione?: EStatoPubblicazioneServizio | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n attributiIDs?: number[] | null;\r\n}\r\n\r\nexport class CreateMappaRequest implements ICreateMappaRequest {\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n zoom?: number | null;\r\n\r\n constructor(data?: ICreateMappaRequest) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.latitude = _data[\"latitude\"] !== undefined ? _data[\"latitude\"] : null;\r\n this.longitude = _data[\"longitude\"] !== undefined ? _data[\"longitude\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateMappaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateMappaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"latitude\"] = this.latitude !== undefined ? this.latitude : null;\r\n data[\"longitude\"] = this.longitude !== undefined ? this.longitude : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateMappaRequest {\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n zoom?: number | null;\r\n}\r\n\r\nexport class CreateServiceResponse extends OkApiResponse implements ICreateServiceResponse {\r\n servizio?: Servizio | null;\r\n\r\n constructor(data?: ICreateServiceResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? Servizio.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateServiceResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateServiceResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateServiceResponse extends IOkApiResponse {\r\n servizio?: Servizio | null;\r\n}\r\n\r\nexport class CreateServiceRequest extends ApiRequest implements ICreateServiceRequest {\r\n nome!: string;\r\n nomeInglese?: string | null;\r\n luogoID!: number;\r\n giataID?: number | null;\r\n ordine?: number | null;\r\n preferito?: boolean;\r\n pubblicazione?: EStatoPubblicazioneServizio | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n cap?: string | null;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n zoom?: number | null;\r\n attributiIDs?: number[] | null;\r\n\r\n constructor(data?: ICreateServiceRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.ordine = _data[\"ordine\"] !== undefined ? _data[\"ordine\"] : null;\r\n this.preferito = _data[\"preferito\"] !== undefined ? _data[\"preferito\"] : null;\r\n this.pubblicazione = _data[\"pubblicazione\"] !== undefined ? _data[\"pubblicazione\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.indirizzo = _data[\"indirizzo\"] !== undefined ? _data[\"indirizzo\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.latitudine = _data[\"latitudine\"] !== undefined ? _data[\"latitudine\"] : null;\r\n this.longitudine = _data[\"longitudine\"] !== undefined ? _data[\"longitudine\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n if (Array.isArray(_data[\"attributiIDs\"])) {\r\n this.attributiIDs = [] as any;\r\n for (let item of _data[\"attributiIDs\"])\r\n this.attributiIDs!.push(item);\r\n }\r\n else {\r\n this.attributiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateServiceRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateServiceRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"ordine\"] = this.ordine !== undefined ? this.ordine : null;\r\n data[\"preferito\"] = this.preferito !== undefined ? this.preferito : null;\r\n data[\"pubblicazione\"] = this.pubblicazione !== undefined ? this.pubblicazione : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"indirizzo\"] = this.indirizzo !== undefined ? this.indirizzo : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"latitudine\"] = this.latitudine !== undefined ? this.latitudine : null;\r\n data[\"longitudine\"] = this.longitudine !== undefined ? this.longitudine : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n if (Array.isArray(this.attributiIDs)) {\r\n data[\"attributiIDs\"] = [];\r\n for (let item of this.attributiIDs)\r\n data[\"attributiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateServiceRequest extends IApiRequest {\r\n nome: string;\r\n nomeInglese?: string | null;\r\n luogoID: number;\r\n giataID?: number | null;\r\n ordine?: number | null;\r\n preferito?: boolean;\r\n pubblicazione?: EStatoPubblicazioneServizio | null;\r\n status?: EStatoUtilizzoServizio | null;\r\n cap?: string | null;\r\n indirizzo?: string | null;\r\n telefono?: string | null;\r\n latitudine?: number | null;\r\n longitudine?: number | null;\r\n zoom?: number | null;\r\n attributiIDs?: number[] | null;\r\n}\r\n\r\nexport class DeleteServizioH2HRequest extends ApiRequest implements IDeleteServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IDeleteServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class DeleteServizioAggregatoH2HRequest extends ApiRequest implements IDeleteServizioAggregatoH2HRequest {\r\n servizioAggregatoHHId?: number;\r\n\r\n constructor(data?: IDeleteServizioAggregatoH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAggregatoHHId = _data[\"servizioAggregatoHHId\"] !== undefined ? _data[\"servizioAggregatoHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteServizioAggregatoH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteServizioAggregatoH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAggregatoHHId\"] = this.servizioAggregatoHHId !== undefined ? this.servizioAggregatoHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteServizioAggregatoH2HRequest extends IApiRequest {\r\n servizioAggregatoHHId?: number;\r\n}\r\n\r\nexport class DeleteMapH2HRequest extends ApiRequest implements IDeleteMapH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IDeleteMapH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteMapH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteMapH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteMapH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class DisableServizioH2HResponse extends OkApiResponse implements IDisableServizioH2HResponse {\r\n servizio?: HHServizioAggregato | null;\r\n\r\n constructor(data?: IDisableServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizioAggregato.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisableServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisableServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisableServizioH2HResponse extends IOkApiResponse {\r\n servizio?: HHServizioAggregato | null;\r\n}\r\n\r\nexport class DisableServizioH2HRequest extends ApiRequest implements IDisableServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IDisableServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisableServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisableServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisableServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class DisableDescriptionH2HResponse extends OkApiResponse implements IDisableDescriptionH2HResponse {\r\n description?: HHDescrizione | null;\r\n\r\n constructor(data?: IDisableDescriptionH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.description = _data[\"description\"] ? HHDescrizione.fromJS(_data[\"description\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisableDescriptionH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisableDescriptionH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"description\"] = this.description ? this.description.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisableDescriptionH2HResponse extends IOkApiResponse {\r\n description?: HHDescrizione | null;\r\n}\r\n\r\nexport class HHDescrizione implements IHHDescrizione {\r\n id?: number;\r\n servizioAggregatoID?: number;\r\n fornitore?: EFornitore;\r\n sourceRef?: string | null;\r\n lingua?: ELingua;\r\n title?: string | null;\r\n text!: string;\r\n html?: boolean;\r\n sortOrder?: number;\r\n disabled?: boolean;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n translated?: boolean;\r\n\r\n constructor(data?: IHHDescrizione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.sourceRef = _data[\"sourceRef\"] !== undefined ? _data[\"sourceRef\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.html = _data[\"html\"] !== undefined ? _data[\"html\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n this.disabled = _data[\"disabled\"] !== undefined ? _data[\"disabled\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.translated = _data[\"translated\"] !== undefined ? _data[\"translated\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHDescrizione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHDescrizione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"sourceRef\"] = this.sourceRef !== undefined ? this.sourceRef : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"html\"] = this.html !== undefined ? this.html : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n data[\"disabled\"] = this.disabled !== undefined ? this.disabled : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"translated\"] = this.translated !== undefined ? this.translated : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHDescrizione {\r\n id?: number;\r\n servizioAggregatoID?: number;\r\n fornitore?: EFornitore;\r\n sourceRef?: string | null;\r\n lingua?: ELingua;\r\n title?: string | null;\r\n text: string;\r\n html?: boolean;\r\n sortOrder?: number;\r\n disabled?: boolean;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n translated?: boolean;\r\n}\r\n\r\nexport class DisableDescriptionH2HRequest extends ApiRequest implements IDisableDescriptionH2HRequest {\r\n descriptionH2HId?: number;\r\n\r\n constructor(data?: IDisableDescriptionH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.descriptionH2HId = _data[\"descriptionH2HId\"] !== undefined ? _data[\"descriptionH2HId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisableDescriptionH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisableDescriptionH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"descriptionH2HId\"] = this.descriptionH2HId !== undefined ? this.descriptionH2HId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisableDescriptionH2HRequest extends IApiRequest {\r\n descriptionH2HId?: number;\r\n}\r\n\r\nexport class DisableImageH2HResponse extends OkApiResponse implements IDisableImageH2HResponse {\r\n image?: HHImmagine | null;\r\n\r\n constructor(data?: IDisableImageH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.image = _data[\"image\"] ? HHImmagine.fromJS(_data[\"image\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisableImageH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisableImageH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"image\"] = this.image ? this.image.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisableImageH2HResponse extends IOkApiResponse {\r\n image?: HHImmagine | null;\r\n}\r\n\r\nexport class HHImmagine implements IHHImmagine {\r\n id?: number;\r\n servizioAggregatoID?: number;\r\n fornitore?: EFornitore;\r\n sourceRef?: string | null;\r\n imageUrl!: string;\r\n thumbUrl?: string | null;\r\n sortOrder?: number;\r\n disabled?: boolean;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n ordineNaar?: number | null;\r\n\r\n constructor(data?: IHHImmagine) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.sourceRef = _data[\"sourceRef\"] !== undefined ? _data[\"sourceRef\"] : null;\r\n this.imageUrl = _data[\"imageUrl\"] !== undefined ? _data[\"imageUrl\"] : null;\r\n this.thumbUrl = _data[\"thumbUrl\"] !== undefined ? _data[\"thumbUrl\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n this.disabled = _data[\"disabled\"] !== undefined ? _data[\"disabled\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.ordineNaar = _data[\"ordineNaar\"] !== undefined ? _data[\"ordineNaar\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): HHImmagine {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new HHImmagine();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"sourceRef\"] = this.sourceRef !== undefined ? this.sourceRef : null;\r\n data[\"imageUrl\"] = this.imageUrl !== undefined ? this.imageUrl : null;\r\n data[\"thumbUrl\"] = this.thumbUrl !== undefined ? this.thumbUrl : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n data[\"disabled\"] = this.disabled !== undefined ? this.disabled : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"ordineNaar\"] = this.ordineNaar !== undefined ? this.ordineNaar : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IHHImmagine {\r\n id?: number;\r\n servizioAggregatoID?: number;\r\n fornitore?: EFornitore;\r\n sourceRef?: string | null;\r\n imageUrl: string;\r\n thumbUrl?: string | null;\r\n sortOrder?: number;\r\n disabled?: boolean;\r\n createdAt?: string;\r\n updatedAt?: string;\r\n ordineNaar?: number | null;\r\n}\r\n\r\nexport class DisableImageH2HRequest extends ApiRequest implements IDisableImageH2HRequest {\r\n imageH2HId?: number;\r\n\r\n constructor(data?: IDisableImageH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.imageH2HId = _data[\"imageH2HId\"] !== undefined ? _data[\"imageH2HId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DisableImageH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DisableImageH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"imageH2HId\"] = this.imageH2HId !== undefined ? this.imageH2HId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDisableImageH2HRequest extends IApiRequest {\r\n imageH2HId?: number;\r\n}\r\n\r\nexport class EnableServizioH2HResponse extends OkApiResponse implements IEnableServizioH2HResponse {\r\n servizio?: HHServizioAggregato | null;\r\n\r\n constructor(data?: IEnableServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizioAggregato.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EnableServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EnableServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEnableServizioH2HResponse extends IOkApiResponse {\r\n servizio?: HHServizioAggregato | null;\r\n}\r\n\r\nexport class EnableServizioH2HRequest extends ApiRequest implements IEnableServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IEnableServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EnableServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EnableServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEnableServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class EnableDescriptionH2HResponse extends OkApiResponse implements IEnableDescriptionH2HResponse {\r\n description?: HHDescrizione | null;\r\n\r\n constructor(data?: IEnableDescriptionH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.description = _data[\"description\"] ? HHDescrizione.fromJS(_data[\"description\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EnableDescriptionH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EnableDescriptionH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"description\"] = this.description ? this.description.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEnableDescriptionH2HResponse extends IOkApiResponse {\r\n description?: HHDescrizione | null;\r\n}\r\n\r\nexport class EnableDescriptionH2HRequest extends ApiRequest implements IEnableDescriptionH2HRequest {\r\n descriptionH2HId?: number;\r\n\r\n constructor(data?: IEnableDescriptionH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.descriptionH2HId = _data[\"descriptionH2HId\"] !== undefined ? _data[\"descriptionH2HId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EnableDescriptionH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EnableDescriptionH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"descriptionH2HId\"] = this.descriptionH2HId !== undefined ? this.descriptionH2HId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEnableDescriptionH2HRequest extends IApiRequest {\r\n descriptionH2HId?: number;\r\n}\r\n\r\nexport class EnableImageH2HResponse extends OkApiResponse implements IEnableImageH2HResponse {\r\n image?: HHImmagine | null;\r\n\r\n constructor(data?: IEnableImageH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.image = _data[\"image\"] ? HHImmagine.fromJS(_data[\"image\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EnableImageH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EnableImageH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"image\"] = this.image ? this.image.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEnableImageH2HResponse extends IOkApiResponse {\r\n image?: HHImmagine | null;\r\n}\r\n\r\nexport class EnableImageH2HRequest extends ApiRequest implements IEnableImageH2HRequest {\r\n imageH2HId?: number;\r\n\r\n constructor(data?: IEnableImageH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.imageH2HId = _data[\"imageH2HId\"] !== undefined ? _data[\"imageH2HId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EnableImageH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EnableImageH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"imageH2HId\"] = this.imageH2HId !== undefined ? this.imageH2HId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEnableImageH2HRequest extends IApiRequest {\r\n imageH2HId?: number;\r\n}\r\n\r\nexport class GetServizioFornitoreResponse extends OkApiResponse implements IGetServizioFornitoreResponse {\r\n servizioFornitore?: SVCRow | null;\r\n\r\n constructor(data?: IGetServizioFornitoreResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioFornitore = _data[\"servizioFornitore\"] ? SVCRow.fromJS(_data[\"servizioFornitore\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServizioFornitoreResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServizioFornitoreResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioFornitore\"] = this.servizioFornitore ? this.servizioFornitore.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServizioFornitoreResponse extends IOkApiResponse {\r\n servizioFornitore?: SVCRow | null;\r\n}\r\n\r\nexport class SVCRow implements ISVCRow {\r\n id?: number;\r\n giataID?: number | null;\r\n codiceRicercaGiata?: string | null;\r\n codiceGiataFornitore?: string | null;\r\n luogoNaar?: string | null;\r\n luogoNaarID?: number | null;\r\n luogoFornitore?: string | null;\r\n codiceLuogoFornitore?: string | null;\r\n fornitore?: string | null;\r\n codiceFornitore?: string | null;\r\n nomeServizioFornitore?: string | null;\r\n servizioNaarID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n haServizioAggregato?: boolean;\r\n svcAggregatoMappato?: boolean;\r\n aggregatoDaConfermare?: boolean;\r\n indirizzoAggregato?: string | null;\r\n servizioNaar?: string | null;\r\n rating?: number | null;\r\n daConfermare?: boolean;\r\n indirizzoFornitore?: string | null;\r\n lat?: number | null;\r\n lon?: number | null;\r\n indirizzoNaar?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n servizio?: HHServizio | null;\r\n deleted?: boolean;\r\n agreementId?: number | null;\r\n\r\n constructor(data?: ISVCRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.codiceRicercaGiata = _data[\"codiceRicercaGiata\"] !== undefined ? _data[\"codiceRicercaGiata\"] : null;\r\n this.codiceGiataFornitore = _data[\"codiceGiataFornitore\"] !== undefined ? _data[\"codiceGiataFornitore\"] : null;\r\n this.luogoNaar = _data[\"luogoNaar\"] !== undefined ? _data[\"luogoNaar\"] : null;\r\n this.luogoNaarID = _data[\"luogoNaarID\"] !== undefined ? _data[\"luogoNaarID\"] : null;\r\n this.luogoFornitore = _data[\"luogoFornitore\"] !== undefined ? _data[\"luogoFornitore\"] : null;\r\n this.codiceLuogoFornitore = _data[\"codiceLuogoFornitore\"] !== undefined ? _data[\"codiceLuogoFornitore\"] : null;\r\n this.fornitore = _data[\"fornitore\"] !== undefined ? _data[\"fornitore\"] : null;\r\n this.codiceFornitore = _data[\"codiceFornitore\"] !== undefined ? _data[\"codiceFornitore\"] : null;\r\n this.nomeServizioFornitore = _data[\"nomeServizioFornitore\"] !== undefined ? _data[\"nomeServizioFornitore\"] : null;\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n this.haServizioAggregato = _data[\"haServizioAggregato\"] !== undefined ? _data[\"haServizioAggregato\"] : null;\r\n this.svcAggregatoMappato = _data[\"svcAggregatoMappato\"] !== undefined ? _data[\"svcAggregatoMappato\"] : null;\r\n this.aggregatoDaConfermare = _data[\"aggregatoDaConfermare\"] !== undefined ? _data[\"aggregatoDaConfermare\"] : null;\r\n this.indirizzoAggregato = _data[\"indirizzoAggregato\"] !== undefined ? _data[\"indirizzoAggregato\"] : null;\r\n this.servizioNaar = _data[\"servizioNaar\"] !== undefined ? _data[\"servizioNaar\"] : null;\r\n this.rating = _data[\"rating\"] !== undefined ? _data[\"rating\"] : null;\r\n this.daConfermare = _data[\"daConfermare\"] !== undefined ? _data[\"daConfermare\"] : null;\r\n this.indirizzoFornitore = _data[\"indirizzoFornitore\"] !== undefined ? _data[\"indirizzoFornitore\"] : null;\r\n this.lat = _data[\"lat\"] !== undefined ? _data[\"lat\"] : null;\r\n this.lon = _data[\"lon\"] !== undefined ? _data[\"lon\"] : null;\r\n this.indirizzoNaar = _data[\"indirizzoNaar\"] !== undefined ? _data[\"indirizzoNaar\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.servizio = _data[\"servizio\"] ? HHServizio.fromJS(_data[\"servizio\"]) : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n this.agreementId = _data[\"agreementId\"] !== undefined ? _data[\"agreementId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SVCRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SVCRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"codiceRicercaGiata\"] = this.codiceRicercaGiata !== undefined ? this.codiceRicercaGiata : null;\r\n data[\"codiceGiataFornitore\"] = this.codiceGiataFornitore !== undefined ? this.codiceGiataFornitore : null;\r\n data[\"luogoNaar\"] = this.luogoNaar !== undefined ? this.luogoNaar : null;\r\n data[\"luogoNaarID\"] = this.luogoNaarID !== undefined ? this.luogoNaarID : null;\r\n data[\"luogoFornitore\"] = this.luogoFornitore !== undefined ? this.luogoFornitore : null;\r\n data[\"codiceLuogoFornitore\"] = this.codiceLuogoFornitore !== undefined ? this.codiceLuogoFornitore : null;\r\n data[\"fornitore\"] = this.fornitore !== undefined ? this.fornitore : null;\r\n data[\"codiceFornitore\"] = this.codiceFornitore !== undefined ? this.codiceFornitore : null;\r\n data[\"nomeServizioFornitore\"] = this.nomeServizioFornitore !== undefined ? this.nomeServizioFornitore : null;\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n data[\"haServizioAggregato\"] = this.haServizioAggregato !== undefined ? this.haServizioAggregato : null;\r\n data[\"svcAggregatoMappato\"] = this.svcAggregatoMappato !== undefined ? this.svcAggregatoMappato : null;\r\n data[\"aggregatoDaConfermare\"] = this.aggregatoDaConfermare !== undefined ? this.aggregatoDaConfermare : null;\r\n data[\"indirizzoAggregato\"] = this.indirizzoAggregato !== undefined ? this.indirizzoAggregato : null;\r\n data[\"servizioNaar\"] = this.servizioNaar !== undefined ? this.servizioNaar : null;\r\n data[\"rating\"] = this.rating !== undefined ? this.rating : null;\r\n data[\"daConfermare\"] = this.daConfermare !== undefined ? this.daConfermare : null;\r\n data[\"indirizzoFornitore\"] = this.indirizzoFornitore !== undefined ? this.indirizzoFornitore : null;\r\n data[\"lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"lon\"] = this.lon !== undefined ? this.lon : null;\r\n data[\"indirizzoNaar\"] = this.indirizzoNaar !== undefined ? this.indirizzoNaar : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n data[\"agreementId\"] = this.agreementId !== undefined ? this.agreementId : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISVCRow {\r\n id?: number;\r\n giataID?: number | null;\r\n codiceRicercaGiata?: string | null;\r\n codiceGiataFornitore?: string | null;\r\n luogoNaar?: string | null;\r\n luogoNaarID?: number | null;\r\n luogoFornitore?: string | null;\r\n codiceLuogoFornitore?: string | null;\r\n fornitore?: string | null;\r\n codiceFornitore?: string | null;\r\n nomeServizioFornitore?: string | null;\r\n servizioNaarID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n haServizioAggregato?: boolean;\r\n svcAggregatoMappato?: boolean;\r\n aggregatoDaConfermare?: boolean;\r\n indirizzoAggregato?: string | null;\r\n servizioNaar?: string | null;\r\n rating?: number | null;\r\n daConfermare?: boolean;\r\n indirizzoFornitore?: string | null;\r\n lat?: number | null;\r\n lon?: number | null;\r\n indirizzoNaar?: string | null;\r\n ultimoAggiornamento?: string | null;\r\n servizio?: HHServizio | null;\r\n deleted?: boolean;\r\n agreementId?: number | null;\r\n}\r\n\r\nexport class GetServizioFornitoreRequest extends ApiRequest implements IGetServizioFornitoreRequest {\r\n servizioFornitoreID?: number;\r\n\r\n constructor(data?: IGetServizioFornitoreRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioFornitoreID = _data[\"servizioFornitoreID\"] !== undefined ? _data[\"servizioFornitoreID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServizioFornitoreRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServizioFornitoreRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioFornitoreID\"] = this.servizioFornitoreID !== undefined ? this.servizioFornitoreID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServizioFornitoreRequest extends IApiRequest {\r\n servizioFornitoreID?: number;\r\n}\r\n\r\nexport class GetDescriptionsServiziH2HResponse extends OkApiResponse implements IGetDescriptionsServiziH2HResponse {\r\n rows?: DescrizioneServizioH2HRow[] | null;\r\n\r\n constructor(data?: IGetDescriptionsServiziH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(DescrizioneServizioH2HRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDescriptionsServiziH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDescriptionsServiziH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDescriptionsServiziH2HResponse extends IOkApiResponse {\r\n rows?: DescrizioneServizioH2HRow[] | null;\r\n}\r\n\r\nexport class DescrizioneServizioH2HRow implements IDescrizioneServizioH2HRow {\r\n id?: number;\r\n supplier?: string | null;\r\n sortOrder?: number;\r\n lang?: ELingua;\r\n enabled?: boolean;\r\n title?: string | null;\r\n text?: string | null;\r\n html?: boolean;\r\n updatedAt?: string;\r\n\r\n constructor(data?: IDescrizioneServizioH2HRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n this.lang = _data[\"lang\"] !== undefined ? _data[\"lang\"] : null;\r\n this.enabled = _data[\"enabled\"] !== undefined ? _data[\"enabled\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.html = _data[\"html\"] !== undefined ? _data[\"html\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DescrizioneServizioH2HRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DescrizioneServizioH2HRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n data[\"lang\"] = this.lang !== undefined ? this.lang : null;\r\n data[\"enabled\"] = this.enabled !== undefined ? this.enabled : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"html\"] = this.html !== undefined ? this.html : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDescrizioneServizioH2HRow {\r\n id?: number;\r\n supplier?: string | null;\r\n sortOrder?: number;\r\n lang?: ELingua;\r\n enabled?: boolean;\r\n title?: string | null;\r\n text?: string | null;\r\n html?: boolean;\r\n updatedAt?: string;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetDescriptionsServiziH2HRequest extends ApiRequest implements IGetDescriptionsServiziH2HRequest {\r\n servizioAggregatoID?: number;\r\n\r\n constructor(data?: IGetDescriptionsServiziH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDescriptionsServiziH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDescriptionsServiziH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetDescriptionsServiziH2HRequest extends IApiRequest {\r\n servizioAggregatoID?: number;\r\n}\r\n\r\nexport class GetGiataCodesResponse extends OkApiResponse implements IGetGiataCodesResponse {\r\n giataCity?: string | null;\r\n giataCityId?: string | null;\r\n giataCountryCode?: string | null;\r\n giataCountry?: string | null;\r\n giataId?: number;\r\n mapped?: boolean;\r\n suppliers?: SupplierRow2[] | null;\r\n\r\n constructor(data?: IGetGiataCodesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.giataCity = _data[\"giataCity\"] !== undefined ? _data[\"giataCity\"] : null;\r\n this.giataCityId = _data[\"giataCityId\"] !== undefined ? _data[\"giataCityId\"] : null;\r\n this.giataCountryCode = _data[\"giataCountryCode\"] !== undefined ? _data[\"giataCountryCode\"] : null;\r\n this.giataCountry = _data[\"giataCountry\"] !== undefined ? _data[\"giataCountry\"] : null;\r\n this.giataId = _data[\"giataId\"] !== undefined ? _data[\"giataId\"] : null;\r\n this.mapped = _data[\"mapped\"] !== undefined ? _data[\"mapped\"] : null;\r\n if (Array.isArray(_data[\"suppliers\"])) {\r\n this.suppliers = [] as any;\r\n for (let item of _data[\"suppliers\"])\r\n this.suppliers!.push(SupplierRow2.fromJS(item));\r\n }\r\n else {\r\n this.suppliers = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetGiataCodesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetGiataCodesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giataCity\"] = this.giataCity !== undefined ? this.giataCity : null;\r\n data[\"giataCityId\"] = this.giataCityId !== undefined ? this.giataCityId : null;\r\n data[\"giataCountryCode\"] = this.giataCountryCode !== undefined ? this.giataCountryCode : null;\r\n data[\"giataCountry\"] = this.giataCountry !== undefined ? this.giataCountry : null;\r\n data[\"giataId\"] = this.giataId !== undefined ? this.giataId : null;\r\n data[\"mapped\"] = this.mapped !== undefined ? this.mapped : null;\r\n if (Array.isArray(this.suppliers)) {\r\n data[\"suppliers\"] = [];\r\n for (let item of this.suppliers)\r\n data[\"suppliers\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetGiataCodesResponse extends IOkApiResponse {\r\n giataCity?: string | null;\r\n giataCityId?: string | null;\r\n giataCountryCode?: string | null;\r\n giataCountry?: string | null;\r\n giataId?: number;\r\n mapped?: boolean;\r\n suppliers?: SupplierRow2[] | null;\r\n}\r\n\r\nexport class SupplierRow2 implements ISupplierRow2 {\r\n supplier?: EFornitore;\r\n codici?: CodiceGiataRow[] | null;\r\n\r\n constructor(data?: ISupplierRow2) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n if (Array.isArray(_data[\"codici\"])) {\r\n this.codici = [] as any;\r\n for (let item of _data[\"codici\"])\r\n this.codici!.push(CodiceGiataRow.fromJS(item));\r\n }\r\n else {\r\n this.codici = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SupplierRow2 {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SupplierRow2();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n if (Array.isArray(this.codici)) {\r\n data[\"codici\"] = [];\r\n for (let item of this.codici)\r\n data[\"codici\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISupplierRow2 {\r\n supplier?: EFornitore;\r\n codici?: CodiceGiataRow[] | null;\r\n}\r\n\r\nexport class CodiceGiataRow implements ICodiceGiataRow {\r\n giataCode?: GiataCode | null;\r\n servizioH2H?: HHServizio | null;\r\n servizioID?: number | null;\r\n nomeServizio?: string | null;\r\n\r\n constructor(data?: ICodiceGiataRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giataCode = _data[\"giataCode\"] ? GiataCode.fromJS(_data[\"giataCode\"]) : null;\r\n this.servizioH2H = _data[\"servizioH2H\"] ? HHServizio.fromJS(_data[\"servizioH2H\"]) : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.nomeServizio = _data[\"nomeServizio\"] !== undefined ? _data[\"nomeServizio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CodiceGiataRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CodiceGiataRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giataCode\"] = this.giataCode ? this.giataCode.toJSON() : null;\r\n data[\"servizioH2H\"] = this.servizioH2H ? this.servizioH2H.toJSON() : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"nomeServizio\"] = this.nomeServizio !== undefined ? this.nomeServizio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICodiceGiataRow {\r\n giataCode?: GiataCode | null;\r\n servizioH2H?: HHServizio | null;\r\n servizioID?: number | null;\r\n nomeServizio?: string | null;\r\n}\r\n\r\nexport class GiataCode implements IGiataCode {\r\n cityCode?: string | null;\r\n propertyCode?: string | null;\r\n\r\n constructor(data?: IGiataCode) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.cityCode = _data[\"cityCode\"] !== undefined ? _data[\"cityCode\"] : null;\r\n this.propertyCode = _data[\"propertyCode\"] !== undefined ? _data[\"propertyCode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GiataCode {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GiataCode();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"cityCode\"] = this.cityCode !== undefined ? this.cityCode : null;\r\n data[\"propertyCode\"] = this.propertyCode !== undefined ? this.propertyCode : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGiataCode {\r\n cityCode?: string | null;\r\n propertyCode?: string | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetGiataCodesRequest extends ApiRequest implements IGetGiataCodesRequest {\r\n supplierGiataCode?: string | null;\r\n supplier?: EFornitore;\r\n\r\n constructor(data?: IGetGiataCodesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.supplierGiataCode = _data[\"supplierGiataCode\"] !== undefined ? _data[\"supplierGiataCode\"] : null;\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetGiataCodesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetGiataCodesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplierGiataCode\"] = this.supplierGiataCode !== undefined ? this.supplierGiataCode : null;\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetGiataCodesRequest extends IApiRequest {\r\n supplierGiataCode?: string | null;\r\n supplier?: EFornitore;\r\n}\r\n\r\nexport abstract class IGiataService implements IIGiataService {\r\n\r\n constructor(data?: IIGiataService) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n }\r\n\r\n static fromJS(data: any): IGiataService {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'IGiataService' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IIGiataService {\r\n}\r\n\r\nexport class GetGroupedServizioH2HResponse extends OkApiResponse implements IGetGroupedServizioH2HResponse {\r\n servizio?: ServizioH2HRow | null;\r\n\r\n constructor(data?: IGetGroupedServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? ServizioH2HRow.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetGroupedServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetGroupedServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetGroupedServizioH2HResponse extends IOkApiResponse {\r\n servizio?: ServizioH2HRow | null;\r\n}\r\n\r\nexport class ServizioH2HRow implements IServizioH2HRow {\r\n id?: number;\r\n giataID?: number | null;\r\n luogoNaar?: string | null;\r\n luogoNaarID?: number;\r\n nomeServizioFornitore?: string | null;\r\n servizioNaarID?: number | null;\r\n servizioNaar?: string | null;\r\n attivo?: boolean;\r\n completo?: boolean;\r\n indirizzoFornitore?: string | null;\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n ultimoAggiornamento?: string;\r\n servizio?: HHServizioAggregato | null;\r\n\r\n constructor(data?: IServizioH2HRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.luogoNaar = _data[\"luogoNaar\"] !== undefined ? _data[\"luogoNaar\"] : null;\r\n this.luogoNaarID = _data[\"luogoNaarID\"] !== undefined ? _data[\"luogoNaarID\"] : null;\r\n this.nomeServizioFornitore = _data[\"nomeServizioFornitore\"] !== undefined ? _data[\"nomeServizioFornitore\"] : null;\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n this.servizioNaar = _data[\"servizioNaar\"] !== undefined ? _data[\"servizioNaar\"] : null;\r\n this.attivo = _data[\"attivo\"] !== undefined ? _data[\"attivo\"] : null;\r\n this.completo = _data[\"completo\"] !== undefined ? _data[\"completo\"] : null;\r\n this.indirizzoFornitore = _data[\"indirizzoFornitore\"] !== undefined ? _data[\"indirizzoFornitore\"] : null;\r\n this.latitude = _data[\"latitude\"] !== undefined ? _data[\"latitude\"] : null;\r\n this.longitude = _data[\"longitude\"] !== undefined ? _data[\"longitude\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.servizio = _data[\"servizio\"] ? HHServizioAggregato.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioH2HRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioH2HRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"luogoNaar\"] = this.luogoNaar !== undefined ? this.luogoNaar : null;\r\n data[\"luogoNaarID\"] = this.luogoNaarID !== undefined ? this.luogoNaarID : null;\r\n data[\"nomeServizioFornitore\"] = this.nomeServizioFornitore !== undefined ? this.nomeServizioFornitore : null;\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n data[\"servizioNaar\"] = this.servizioNaar !== undefined ? this.servizioNaar : null;\r\n data[\"attivo\"] = this.attivo !== undefined ? this.attivo : null;\r\n data[\"completo\"] = this.completo !== undefined ? this.completo : null;\r\n data[\"indirizzoFornitore\"] = this.indirizzoFornitore !== undefined ? this.indirizzoFornitore : null;\r\n data[\"latitude\"] = this.latitude !== undefined ? this.latitude : null;\r\n data[\"longitude\"] = this.longitude !== undefined ? this.longitude : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioH2HRow {\r\n id?: number;\r\n giataID?: number | null;\r\n luogoNaar?: string | null;\r\n luogoNaarID?: number;\r\n nomeServizioFornitore?: string | null;\r\n servizioNaarID?: number | null;\r\n servizioNaar?: string | null;\r\n attivo?: boolean;\r\n completo?: boolean;\r\n indirizzoFornitore?: string | null;\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n ultimoAggiornamento?: string;\r\n servizio?: HHServizioAggregato | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetGroupedServizioH2HRequest extends ApiRequest implements IGetGroupedServizioH2HRequest {\r\n servizioAggregatoID?: number;\r\n\r\n constructor(data?: IGetGroupedServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetGroupedServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetGroupedServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetGroupedServizioH2HRequest extends IApiRequest {\r\n servizioAggregatoID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfServizioH2HRow extends OkApiResponse implements INrTableResponseOfServizioH2HRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ServizioH2HRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfServizioH2HRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ServizioH2HRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfServizioH2HRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfServizioH2HRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfServizioH2HRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ServizioH2HRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetServiziH2HResponse extends NrTableResponseOfServizioH2HRow implements IGetServiziH2HResponse {\r\n\r\n constructor(data?: IGetServiziH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetServiziH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServiziH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServiziH2HResponse extends INrTableResponseOfServizioH2HRow {\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetServiziH2HRequest extends NrTableRequest implements IGetServiziH2HRequest {\r\n supplier?: number | null;\r\n svcType?: ETipoServizio | null;\r\n luogoNaarID?: number | null;\r\n mapped?: boolean | null;\r\n confirmed?: boolean | null;\r\n enabled?: boolean | null;\r\n complete?: boolean | null;\r\n withoutRank?: boolean | null;\r\n excludeLowerRating?: boolean;\r\n hideLowerRating?: boolean;\r\n servizioNaarID?: number | null;\r\n nomeServizioFornitore?: string | null;\r\n luogoFornitoreID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n giataID?: number | null;\r\n withoutGrouped?: boolean | null;\r\n luoghiVicini?: boolean;\r\n\r\n constructor(data?: IGetServiziH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.svcType = _data[\"svcType\"] !== undefined ? _data[\"svcType\"] : null;\r\n this.luogoNaarID = _data[\"luogoNaarID\"] !== undefined ? _data[\"luogoNaarID\"] : null;\r\n this.mapped = _data[\"mapped\"] !== undefined ? _data[\"mapped\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.enabled = _data[\"enabled\"] !== undefined ? _data[\"enabled\"] : null;\r\n this.complete = _data[\"complete\"] !== undefined ? _data[\"complete\"] : null;\r\n this.withoutRank = _data[\"withoutRank\"] !== undefined ? _data[\"withoutRank\"] : null;\r\n this.excludeLowerRating = _data[\"excludeLowerRating\"] !== undefined ? _data[\"excludeLowerRating\"] : null;\r\n this.hideLowerRating = _data[\"hideLowerRating\"] !== undefined ? _data[\"hideLowerRating\"] : null;\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n this.nomeServizioFornitore = _data[\"nomeServizioFornitore\"] !== undefined ? _data[\"nomeServizioFornitore\"] : null;\r\n this.luogoFornitoreID = _data[\"luogoFornitoreID\"] !== undefined ? _data[\"luogoFornitoreID\"] : null;\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.withoutGrouped = _data[\"withoutGrouped\"] !== undefined ? _data[\"withoutGrouped\"] : null;\r\n this.luoghiVicini = _data[\"luoghiVicini\"] !== undefined ? _data[\"luoghiVicini\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServiziH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServiziH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"svcType\"] = this.svcType !== undefined ? this.svcType : null;\r\n data[\"luogoNaarID\"] = this.luogoNaarID !== undefined ? this.luogoNaarID : null;\r\n data[\"mapped\"] = this.mapped !== undefined ? this.mapped : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"enabled\"] = this.enabled !== undefined ? this.enabled : null;\r\n data[\"complete\"] = this.complete !== undefined ? this.complete : null;\r\n data[\"withoutRank\"] = this.withoutRank !== undefined ? this.withoutRank : null;\r\n data[\"excludeLowerRating\"] = this.excludeLowerRating !== undefined ? this.excludeLowerRating : null;\r\n data[\"hideLowerRating\"] = this.hideLowerRating !== undefined ? this.hideLowerRating : null;\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n data[\"nomeServizioFornitore\"] = this.nomeServizioFornitore !== undefined ? this.nomeServizioFornitore : null;\r\n data[\"luogoFornitoreID\"] = this.luogoFornitoreID !== undefined ? this.luogoFornitoreID : null;\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"withoutGrouped\"] = this.withoutGrouped !== undefined ? this.withoutGrouped : null;\r\n data[\"luoghiVicini\"] = this.luoghiVicini !== undefined ? this.luoghiVicini : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetServiziH2HRequest extends INrTableRequest {\r\n supplier?: number | null;\r\n svcType?: ETipoServizio | null;\r\n luogoNaarID?: number | null;\r\n mapped?: boolean | null;\r\n confirmed?: boolean | null;\r\n enabled?: boolean | null;\r\n complete?: boolean | null;\r\n withoutRank?: boolean | null;\r\n excludeLowerRating?: boolean;\r\n hideLowerRating?: boolean;\r\n servizioNaarID?: number | null;\r\n nomeServizioFornitore?: string | null;\r\n luogoFornitoreID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n giataID?: number | null;\r\n withoutGrouped?: boolean | null;\r\n luoghiVicini?: boolean;\r\n}\r\n\r\nexport class GetImmaginiServiziH2HResponse extends OkApiResponse implements IGetImmaginiServiziH2HResponse {\r\n rows?: ImmagineServizioH2HRow[] | null;\r\n\r\n constructor(data?: IGetImmaginiServiziH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ImmagineServizioH2HRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetImmaginiServiziH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetImmaginiServiziH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetImmaginiServiziH2HResponse extends IOkApiResponse {\r\n rows?: ImmagineServizioH2HRow[] | null;\r\n}\r\n\r\nexport class ImmagineServizioH2HRow implements IImmagineServizioH2HRow {\r\n id?: number;\r\n thumbUrl?: string | null;\r\n imageUrl?: string | null;\r\n sortOrder?: number;\r\n ordineNaar?: number | null;\r\n enabled?: boolean;\r\n updatedAt?: string;\r\n supplier?: string | null;\r\n descrizioni?: DescrizioneImmagineServizioH2H[] | null;\r\n\r\n constructor(data?: IImmagineServizioH2HRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.thumbUrl = _data[\"thumbUrl\"] !== undefined ? _data[\"thumbUrl\"] : null;\r\n this.imageUrl = _data[\"imageUrl\"] !== undefined ? _data[\"imageUrl\"] : null;\r\n this.sortOrder = _data[\"sortOrder\"] !== undefined ? _data[\"sortOrder\"] : null;\r\n this.ordineNaar = _data[\"ordineNaar\"] !== undefined ? _data[\"ordineNaar\"] : null;\r\n this.enabled = _data[\"enabled\"] !== undefined ? _data[\"enabled\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n if (Array.isArray(_data[\"descrizioni\"])) {\r\n this.descrizioni = [] as any;\r\n for (let item of _data[\"descrizioni\"])\r\n this.descrizioni!.push(DescrizioneImmagineServizioH2H.fromJS(item));\r\n }\r\n else {\r\n this.descrizioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ImmagineServizioH2HRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ImmagineServizioH2HRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"thumbUrl\"] = this.thumbUrl !== undefined ? this.thumbUrl : null;\r\n data[\"imageUrl\"] = this.imageUrl !== undefined ? this.imageUrl : null;\r\n data[\"sortOrder\"] = this.sortOrder !== undefined ? this.sortOrder : null;\r\n data[\"ordineNaar\"] = this.ordineNaar !== undefined ? this.ordineNaar : null;\r\n data[\"enabled\"] = this.enabled !== undefined ? this.enabled : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n if (Array.isArray(this.descrizioni)) {\r\n data[\"descrizioni\"] = [];\r\n for (let item of this.descrizioni)\r\n data[\"descrizioni\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImmagineServizioH2HRow {\r\n id?: number;\r\n thumbUrl?: string | null;\r\n imageUrl?: string | null;\r\n sortOrder?: number;\r\n ordineNaar?: number | null;\r\n enabled?: boolean;\r\n updatedAt?: string;\r\n supplier?: string | null;\r\n descrizioni?: DescrizioneImmagineServizioH2H[] | null;\r\n}\r\n\r\nexport class DescrizioneImmagineServizioH2H implements IDescrizioneImmagineServizioH2H {\r\n lang?: ELingua;\r\n descrizione?: string | null;\r\n\r\n constructor(data?: IDescrizioneImmagineServizioH2H) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.lang = _data[\"lang\"] !== undefined ? _data[\"lang\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DescrizioneImmagineServizioH2H {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DescrizioneImmagineServizioH2H();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"lang\"] = this.lang !== undefined ? this.lang : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDescrizioneImmagineServizioH2H {\r\n lang?: ELingua;\r\n descrizione?: string | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetImmaginiServiziH2HRequest extends ApiRequest implements IGetImmaginiServiziH2HRequest {\r\n servizioAggregatoID?: number;\r\n\r\n constructor(data?: IGetImmaginiServiziH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetImmaginiServiziH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetImmaginiServiziH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetImmaginiServiziH2HRequest extends IApiRequest {\r\n servizioAggregatoID?: number;\r\n}\r\n\r\nexport class GetServiceAttrsResponse extends OkApiResponse implements IGetServiceAttrsResponse {\r\n categories?: ServiceAttrRow[] | null;\r\n stars?: ServiceAttrRow[] | null;\r\n positions?: ServiceAttrRow[] | null;\r\n classifications?: ServiceAttrRow[] | null;\r\n penalties?: ServiceAttrRow[] | null;\r\n\r\n constructor(data?: IGetServiceAttrsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"categories\"])) {\r\n this.categories = [] as any;\r\n for (let item of _data[\"categories\"])\r\n this.categories!.push(ServiceAttrRow.fromJS(item));\r\n }\r\n else {\r\n this.categories = null;\r\n }\r\n if (Array.isArray(_data[\"stars\"])) {\r\n this.stars = [] as any;\r\n for (let item of _data[\"stars\"])\r\n this.stars!.push(ServiceAttrRow.fromJS(item));\r\n }\r\n else {\r\n this.stars = null;\r\n }\r\n if (Array.isArray(_data[\"positions\"])) {\r\n this.positions = [] as any;\r\n for (let item of _data[\"positions\"])\r\n this.positions!.push(ServiceAttrRow.fromJS(item));\r\n }\r\n else {\r\n this.positions = null;\r\n }\r\n if (Array.isArray(_data[\"classifications\"])) {\r\n this.classifications = [] as any;\r\n for (let item of _data[\"classifications\"])\r\n this.classifications!.push(ServiceAttrRow.fromJS(item));\r\n }\r\n else {\r\n this.classifications = null;\r\n }\r\n if (Array.isArray(_data[\"penalties\"])) {\r\n this.penalties = [] as any;\r\n for (let item of _data[\"penalties\"])\r\n this.penalties!.push(ServiceAttrRow.fromJS(item));\r\n }\r\n else {\r\n this.penalties = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServiceAttrsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServiceAttrsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.categories)) {\r\n data[\"categories\"] = [];\r\n for (let item of this.categories)\r\n data[\"categories\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.stars)) {\r\n data[\"stars\"] = [];\r\n for (let item of this.stars)\r\n data[\"stars\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.positions)) {\r\n data[\"positions\"] = [];\r\n for (let item of this.positions)\r\n data[\"positions\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.classifications)) {\r\n data[\"classifications\"] = [];\r\n for (let item of this.classifications)\r\n data[\"classifications\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.penalties)) {\r\n data[\"penalties\"] = [];\r\n for (let item of this.penalties)\r\n data[\"penalties\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServiceAttrsResponse extends IOkApiResponse {\r\n categories?: ServiceAttrRow[] | null;\r\n stars?: ServiceAttrRow[] | null;\r\n positions?: ServiceAttrRow[] | null;\r\n classifications?: ServiceAttrRow[] | null;\r\n penalties?: ServiceAttrRow[] | null;\r\n}\r\n\r\nexport class ServiceAttrRow implements IServiceAttrRow {\r\n id?: number;\r\n nome?: string | null;\r\n mostraDescrizione?: boolean;\r\n luogoID?: number | null;\r\n\r\n constructor(data?: IServiceAttrRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.mostraDescrizione = _data[\"mostraDescrizione\"] !== undefined ? _data[\"mostraDescrizione\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServiceAttrRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServiceAttrRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"mostraDescrizione\"] = this.mostraDescrizione !== undefined ? this.mostraDescrizione : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServiceAttrRow {\r\n id?: number;\r\n nome?: string | null;\r\n mostraDescrizione?: boolean;\r\n luogoID?: number | null;\r\n}\r\n\r\nexport class NrTableResponseOfSVCRow extends OkApiResponse implements INrTableResponseOfSVCRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SVCRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfSVCRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SVCRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfSVCRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfSVCRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfSVCRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SVCRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetSVCListResponse extends NrTableResponseOfSVCRow implements IGetSVCListResponse {\r\n\r\n constructor(data?: IGetSVCListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetSVCListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSVCListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSVCListResponse extends INrTableResponseOfSVCRow {\r\n}\r\n\r\nexport class GetSVCListRequest extends NrTableRequest implements IGetSVCListRequest {\r\n supplier?: number | null;\r\n svcType?: ETipoServizio | null;\r\n luogoNaarID?: number | null;\r\n mapped?: boolean | null;\r\n confirmed?: boolean | null;\r\n enabled?: boolean | null;\r\n complete?: boolean | null;\r\n withoutRank?: boolean | null;\r\n excludeLowerRating?: boolean;\r\n hideLowerRating?: boolean;\r\n servizioNaarID?: number | null;\r\n nomeServizioFornitore?: string | null;\r\n luogoFornitoreID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n giataID?: number | null;\r\n withoutGrouped?: boolean | null;\r\n luoghiVicini?: boolean;\r\n showDeleted?: boolean;\r\n\r\n constructor(data?: IGetSVCListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.svcType = _data[\"svcType\"] !== undefined ? _data[\"svcType\"] : null;\r\n this.luogoNaarID = _data[\"luogoNaarID\"] !== undefined ? _data[\"luogoNaarID\"] : null;\r\n this.mapped = _data[\"mapped\"] !== undefined ? _data[\"mapped\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.enabled = _data[\"enabled\"] !== undefined ? _data[\"enabled\"] : null;\r\n this.complete = _data[\"complete\"] !== undefined ? _data[\"complete\"] : null;\r\n this.withoutRank = _data[\"withoutRank\"] !== undefined ? _data[\"withoutRank\"] : null;\r\n this.excludeLowerRating = _data[\"excludeLowerRating\"] !== undefined ? _data[\"excludeLowerRating\"] : null;\r\n this.hideLowerRating = _data[\"hideLowerRating\"] !== undefined ? _data[\"hideLowerRating\"] : null;\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n this.nomeServizioFornitore = _data[\"nomeServizioFornitore\"] !== undefined ? _data[\"nomeServizioFornitore\"] : null;\r\n this.luogoFornitoreID = _data[\"luogoFornitoreID\"] !== undefined ? _data[\"luogoFornitoreID\"] : null;\r\n this.servizioAggregatoID = _data[\"servizioAggregatoID\"] !== undefined ? _data[\"servizioAggregatoID\"] : null;\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n this.withoutGrouped = _data[\"withoutGrouped\"] !== undefined ? _data[\"withoutGrouped\"] : null;\r\n this.luoghiVicini = _data[\"luoghiVicini\"] !== undefined ? _data[\"luoghiVicini\"] : null;\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSVCListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSVCListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"svcType\"] = this.svcType !== undefined ? this.svcType : null;\r\n data[\"luogoNaarID\"] = this.luogoNaarID !== undefined ? this.luogoNaarID : null;\r\n data[\"mapped\"] = this.mapped !== undefined ? this.mapped : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"enabled\"] = this.enabled !== undefined ? this.enabled : null;\r\n data[\"complete\"] = this.complete !== undefined ? this.complete : null;\r\n data[\"withoutRank\"] = this.withoutRank !== undefined ? this.withoutRank : null;\r\n data[\"excludeLowerRating\"] = this.excludeLowerRating !== undefined ? this.excludeLowerRating : null;\r\n data[\"hideLowerRating\"] = this.hideLowerRating !== undefined ? this.hideLowerRating : null;\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n data[\"nomeServizioFornitore\"] = this.nomeServizioFornitore !== undefined ? this.nomeServizioFornitore : null;\r\n data[\"luogoFornitoreID\"] = this.luogoFornitoreID !== undefined ? this.luogoFornitoreID : null;\r\n data[\"servizioAggregatoID\"] = this.servizioAggregatoID !== undefined ? this.servizioAggregatoID : null;\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n data[\"withoutGrouped\"] = this.withoutGrouped !== undefined ? this.withoutGrouped : null;\r\n data[\"luoghiVicini\"] = this.luoghiVicini !== undefined ? this.luoghiVicini : null;\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSVCListRequest extends INrTableRequest {\r\n supplier?: number | null;\r\n svcType?: ETipoServizio | null;\r\n luogoNaarID?: number | null;\r\n mapped?: boolean | null;\r\n confirmed?: boolean | null;\r\n enabled?: boolean | null;\r\n complete?: boolean | null;\r\n withoutRank?: boolean | null;\r\n excludeLowerRating?: boolean;\r\n hideLowerRating?: boolean;\r\n servizioNaarID?: number | null;\r\n nomeServizioFornitore?: string | null;\r\n luogoFornitoreID?: number | null;\r\n servizioAggregatoID?: number | null;\r\n giataID?: number | null;\r\n withoutGrouped?: boolean | null;\r\n luoghiVicini?: boolean;\r\n showDeleted?: boolean;\r\n}\r\n\r\nexport class NrTableResponseOfTypeRow extends OkApiResponse implements INrTableResponseOfTypeRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TypeRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTypeRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TypeRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTypeRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTypeRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTypeRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TypeRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetTypesListResponse extends NrTableResponseOfTypeRow implements IGetTypesListResponse {\r\n\r\n constructor(data?: IGetTypesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetTypesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTypesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTypesListResponse extends INrTableResponseOfTypeRow {\r\n}\r\n\r\nexport class TypeRow implements ITypeRow {\r\n id?: number;\r\n codice?: string | null;\r\n nome?: string | null;\r\n tipologiaNaar?: string | null;\r\n tipologiaNaarID?: number | null;\r\n regolaVenditaID?: number | null;\r\n nrf?: boolean | null;\r\n ultimoAggiornamento?: string | null;\r\n hashCodeID?: number | null;\r\n\r\n constructor(data?: ITypeRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.tipologiaNaar = _data[\"tipologiaNaar\"] !== undefined ? _data[\"tipologiaNaar\"] : null;\r\n this.tipologiaNaarID = _data[\"tipologiaNaarID\"] !== undefined ? _data[\"tipologiaNaarID\"] : null;\r\n this.regolaVenditaID = _data[\"regolaVenditaID\"] !== undefined ? _data[\"regolaVenditaID\"] : null;\r\n this.nrf = _data[\"nrf\"] !== undefined ? _data[\"nrf\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.hashCodeID = _data[\"hashCodeID\"] !== undefined ? _data[\"hashCodeID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TypeRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TypeRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"tipologiaNaar\"] = this.tipologiaNaar !== undefined ? this.tipologiaNaar : null;\r\n data[\"tipologiaNaarID\"] = this.tipologiaNaarID !== undefined ? this.tipologiaNaarID : null;\r\n data[\"regolaVenditaID\"] = this.regolaVenditaID !== undefined ? this.regolaVenditaID : null;\r\n data[\"nrf\"] = this.nrf !== undefined ? this.nrf : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"hashCodeID\"] = this.hashCodeID !== undefined ? this.hashCodeID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITypeRow {\r\n id?: number;\r\n codice?: string | null;\r\n nome?: string | null;\r\n tipologiaNaar?: string | null;\r\n tipologiaNaarID?: number | null;\r\n regolaVenditaID?: number | null;\r\n nrf?: boolean | null;\r\n ultimoAggiornamento?: string | null;\r\n hashCodeID?: number | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class GetTypesListRequest extends NrTableRequest implements IGetTypesListRequest {\r\n hhSvcID?: number;\r\n\r\n constructor(data?: IGetTypesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.hhSvcID = _data[\"hhSvcID\"] !== undefined ? _data[\"hhSvcID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTypesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTypesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"hhSvcID\"] = this.hhSvcID !== undefined ? this.hhSvcID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IGetTypesListRequest extends INrTableRequest {\r\n hhSvcID?: number;\r\n}\r\n\r\nexport class LinkServizioH2HResponse extends OkApiResponse implements ILinkServizioH2HResponse {\r\n servizioAggregato?: HHServizioAggregato | null;\r\n address?: string | null;\r\n\r\n constructor(data?: ILinkServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAggregato = _data[\"servizioAggregato\"] ? HHServizioAggregato.fromJS(_data[\"servizioAggregato\"]) : null;\r\n this.address = _data[\"address\"] !== undefined ? _data[\"address\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LinkServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LinkServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAggregato\"] = this.servizioAggregato ? this.servizioAggregato.toJSON() : null;\r\n data[\"address\"] = this.address !== undefined ? this.address : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILinkServizioH2HResponse extends IOkApiResponse {\r\n servizioAggregato?: HHServizioAggregato | null;\r\n address?: string | null;\r\n}\r\n\r\nexport class LinkServizioH2HRequest extends ApiRequest implements ILinkServizioH2HRequest {\r\n servizioHHId?: number;\r\n servizioAggregatoHHID?: number | null;\r\n\r\n constructor(data?: ILinkServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.servizioAggregatoHHID = _data[\"servizioAggregatoHHID\"] !== undefined ? _data[\"servizioAggregatoHHID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): LinkServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new LinkServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"servizioAggregatoHHID\"] = this.servizioAggregatoHHID !== undefined ? this.servizioAggregatoHHID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ILinkServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n servizioAggregatoHHID?: number | null;\r\n}\r\n\r\nexport class MigrateServizioH2HRequest extends ApiRequest implements IMigrateServizioH2HRequest {\r\n sourceId?: number;\r\n destinationId?: number;\r\n\r\n constructor(data?: IMigrateServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.sourceId = _data[\"sourceId\"] !== undefined ? _data[\"sourceId\"] : null;\r\n this.destinationId = _data[\"destinationId\"] !== undefined ? _data[\"destinationId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MigrateServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MigrateServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sourceId\"] = this.sourceId !== undefined ? this.sourceId : null;\r\n data[\"destinationId\"] = this.destinationId !== undefined ? this.destinationId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMigrateServizioH2HRequest extends IApiRequest {\r\n sourceId?: number;\r\n destinationId?: number;\r\n}\r\n\r\nexport class RestoreServizioH2HRequest extends ApiRequest implements IRestoreServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IRestoreServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RestoreServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RestoreServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRestoreServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class SetAgreementServizioH2HResponse extends OkApiResponse implements ISetAgreementServizioH2HResponse {\r\n servizio?: HHServizio | null;\r\n\r\n constructor(data?: ISetAgreementServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizio.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetAgreementServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetAgreementServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetAgreementServizioH2HResponse extends IOkApiResponse {\r\n servizio?: HHServizio | null;\r\n}\r\n\r\nexport class SetAgreementServizioH2HRequest extends ApiRequest implements ISetAgreementServizioH2HRequest {\r\n servizioHHId?: number;\r\n agreementId?: number;\r\n\r\n constructor(data?: ISetAgreementServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.agreementId = _data[\"agreementId\"] !== undefined ? _data[\"agreementId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetAgreementServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetAgreementServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"agreementId\"] = this.agreementId !== undefined ? this.agreementId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetAgreementServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n agreementId?: number;\r\n}\r\n\r\nexport class SetGiataIdResponse extends OkApiResponse implements ISetGiataIdResponse {\r\n servizi?: HHServizio[] | null;\r\n\r\n constructor(data?: ISetGiataIdResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(HHServizio.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetGiataIdResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetGiataIdResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetGiataIdResponse extends IOkApiResponse {\r\n servizi?: HHServizio[] | null;\r\n}\r\n\r\nexport class SetGiataIdRequest extends ApiRequest implements ISetGiataIdRequest {\r\n giataID?: number;\r\n hhServIDs?: number[] | null;\r\n\r\n constructor(data?: ISetGiataIdRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.giataID = _data[\"giataID\"] !== undefined ? _data[\"giataID\"] : null;\r\n if (Array.isArray(_data[\"hhServIDs\"])) {\r\n this.hhServIDs = [] as any;\r\n for (let item of _data[\"hhServIDs\"])\r\n this.hhServIDs!.push(item);\r\n }\r\n else {\r\n this.hhServIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetGiataIdRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetGiataIdRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giataID\"] = this.giataID !== undefined ? this.giataID : null;\r\n if (Array.isArray(this.hhServIDs)) {\r\n data[\"hhServIDs\"] = [];\r\n for (let item of this.hhServIDs)\r\n data[\"hhServIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetGiataIdRequest extends IApiRequest {\r\n giataID?: number;\r\n hhServIDs?: number[] | null;\r\n}\r\n\r\nexport class SetGroupedMappingServizioH2HResponse extends OkApiResponse implements ISetGroupedMappingServizioH2HResponse {\r\n servizio?: HHServizioAggregato | null;\r\n other?: HHServizio[] | null;\r\n address?: string | null;\r\n\r\n constructor(data?: ISetGroupedMappingServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizioAggregato.fromJS(_data[\"servizio\"]) : null;\r\n if (Array.isArray(_data[\"other\"])) {\r\n this.other = [] as any;\r\n for (let item of _data[\"other\"])\r\n this.other!.push(HHServizio.fromJS(item));\r\n }\r\n else {\r\n this.other = null;\r\n }\r\n this.address = _data[\"address\"] !== undefined ? _data[\"address\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetGroupedMappingServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetGroupedMappingServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n if (Array.isArray(this.other)) {\r\n data[\"other\"] = [];\r\n for (let item of this.other)\r\n data[\"other\"].push(item.toJSON());\r\n }\r\n data[\"address\"] = this.address !== undefined ? this.address : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetGroupedMappingServizioH2HResponse extends IOkApiResponse {\r\n servizio?: HHServizioAggregato | null;\r\n other?: HHServizio[] | null;\r\n address?: string | null;\r\n}\r\n\r\nexport class SetGroupedMappingServizioH2HRequest extends ApiRequest implements ISetGroupedMappingServizioH2HRequest {\r\n servizioHHId?: number;\r\n servizioNaarID?: number;\r\n\r\n constructor(data?: ISetGroupedMappingServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetGroupedMappingServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetGroupedMappingServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetGroupedMappingServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n servizioNaarID?: number;\r\n}\r\n\r\nexport class SetMapH2HResponse extends OkApiResponse implements ISetMapH2HResponse {\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n zoom?: number | null;\r\n\r\n constructor(data?: ISetMapH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.latitude = _data[\"latitude\"] !== undefined ? _data[\"latitude\"] : null;\r\n this.longitude = _data[\"longitude\"] !== undefined ? _data[\"longitude\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMapH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMapH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"latitude\"] = this.latitude !== undefined ? this.latitude : null;\r\n data[\"longitude\"] = this.longitude !== undefined ? this.longitude : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMapH2HResponse extends IOkApiResponse {\r\n latitude?: number | null;\r\n longitude?: number | null;\r\n zoom?: number | null;\r\n}\r\n\r\nexport class SetMapH2HRequest extends ApiRequest implements ISetMapH2HRequest {\r\n servizio?: HHServizioAggregato | null;\r\n\r\n constructor(data?: ISetMapH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizioAggregato.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMapH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMapH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMapH2HRequest extends IApiRequest {\r\n servizio?: HHServizioAggregato | null;\r\n}\r\n\r\nexport class SetMappingServizioH2HResponse extends OkApiResponse implements ISetMappingServizioH2HResponse {\r\n servizio?: HHServizio | null;\r\n other?: HHServizio[] | null;\r\n address?: string | null;\r\n\r\n constructor(data?: ISetMappingServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizio.fromJS(_data[\"servizio\"]) : null;\r\n if (Array.isArray(_data[\"other\"])) {\r\n this.other = [] as any;\r\n for (let item of _data[\"other\"])\r\n this.other!.push(HHServizio.fromJS(item));\r\n }\r\n else {\r\n this.other = null;\r\n }\r\n this.address = _data[\"address\"] !== undefined ? _data[\"address\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappingServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappingServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n if (Array.isArray(this.other)) {\r\n data[\"other\"] = [];\r\n for (let item of this.other)\r\n data[\"other\"].push(item.toJSON());\r\n }\r\n data[\"address\"] = this.address !== undefined ? this.address : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappingServizioH2HResponse extends IOkApiResponse {\r\n servizio?: HHServizio | null;\r\n other?: HHServizio[] | null;\r\n address?: string | null;\r\n}\r\n\r\nexport class SetMappingServizioH2HRequest extends ApiRequest implements ISetMappingServizioH2HRequest {\r\n servizioHHId?: number;\r\n servizioNaarID?: number;\r\n\r\n constructor(data?: ISetMappingServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappingServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappingServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappingServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n servizioNaarID?: number;\r\n}\r\n\r\nexport class SetMappingMultiResponse extends OkApiResponse implements ISetMappingMultiResponse {\r\n servizi?: HHServizio[] | null;\r\n\r\n constructor(data?: ISetMappingMultiResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(HHServizio.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappingMultiResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappingMultiResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappingMultiResponse extends IOkApiResponse {\r\n servizi?: HHServizio[] | null;\r\n}\r\n\r\nexport class SetMappingMultiRequest extends ApiRequest implements ISetMappingMultiRequest {\r\n servizioNaarID?: number;\r\n hhServIDs?: number[] | null;\r\n\r\n constructor(data?: ISetMappingMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioNaarID = _data[\"servizioNaarID\"] !== undefined ? _data[\"servizioNaarID\"] : null;\r\n if (Array.isArray(_data[\"hhServIDs\"])) {\r\n this.hhServIDs = [] as any;\r\n for (let item of _data[\"hhServIDs\"])\r\n this.hhServIDs!.push(item);\r\n }\r\n else {\r\n this.hhServIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetMappingMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetMappingMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioNaarID\"] = this.servizioNaarID !== undefined ? this.servizioNaarID : null;\r\n if (Array.isArray(this.hhServIDs)) {\r\n data[\"hhServIDs\"] = [];\r\n for (let item of this.hhServIDs)\r\n data[\"hhServIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetMappingMultiRequest extends IApiRequest {\r\n servizioNaarID?: number;\r\n hhServIDs?: number[] | null;\r\n}\r\n\r\nexport class SetRuleMappingResponse extends OkApiResponse implements ISetRuleMappingResponse {\r\n codice?: HHCodice | null;\r\n\r\n constructor(data?: ISetRuleMappingResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.codice = _data[\"codice\"] ? HHCodice.fromJS(_data[\"codice\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetRuleMappingResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetRuleMappingResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice ? this.codice.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetRuleMappingResponse extends IOkApiResponse {\r\n codice?: HHCodice | null;\r\n}\r\n\r\nexport class SetRuleMappingRequest extends ApiRequest implements ISetRuleMappingRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n servizioRegolaVenditaID?: number | null;\r\n\r\n constructor(data?: ISetRuleMappingRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.tipologiaHHID = _data[\"tipologiaHHID\"] !== undefined ? _data[\"tipologiaHHID\"] : null;\r\n this.servizioRegolaVenditaID = _data[\"servizioRegolaVenditaID\"] !== undefined ? _data[\"servizioRegolaVenditaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetRuleMappingRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetRuleMappingRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"tipologiaHHID\"] = this.tipologiaHHID !== undefined ? this.tipologiaHHID : null;\r\n data[\"servizioRegolaVenditaID\"] = this.servizioRegolaVenditaID !== undefined ? this.servizioRegolaVenditaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetRuleMappingRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n servizioRegolaVenditaID?: number | null;\r\n}\r\n\r\nexport class SetTypeMappingResponse extends OkApiResponse implements ISetTypeMappingResponse {\r\n codice?: HHCodice | null;\r\n\r\n constructor(data?: ISetTypeMappingResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.codice = _data[\"codice\"] ? HHCodice.fromJS(_data[\"codice\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetTypeMappingResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetTypeMappingResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice ? this.codice.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetTypeMappingResponse extends IOkApiResponse {\r\n codice?: HHCodice | null;\r\n}\r\n\r\nexport class SetTypeMappingRequest extends ApiRequest implements ISetTypeMappingRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n servizioTipologiaNaarID?: number | null;\r\n\r\n constructor(data?: ISetTypeMappingRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.tipologiaHHID = _data[\"tipologiaHHID\"] !== undefined ? _data[\"tipologiaHHID\"] : null;\r\n this.servizioTipologiaNaarID = _data[\"servizioTipologiaNaarID\"] !== undefined ? _data[\"servizioTipologiaNaarID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetTypeMappingRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetTypeMappingRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"tipologiaHHID\"] = this.tipologiaHHID !== undefined ? this.tipologiaHHID : null;\r\n data[\"servizioTipologiaNaarID\"] = this.servizioTipologiaNaarID !== undefined ? this.servizioTipologiaNaarID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetTypeMappingRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n servizioTipologiaNaarID?: number | null;\r\n}\r\n\r\nexport class UnConfirmMappingServizioH2HRequest extends ApiRequest implements IUnConfirmMappingServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IUnConfirmMappingServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UnConfirmMappingServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UnConfirmMappingServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUnConfirmMappingServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class UnConfirmTypeMappingResponse extends OkApiResponse implements IUnConfirmTypeMappingResponse {\r\n codice?: HHCodice | null;\r\n\r\n constructor(data?: IUnConfirmTypeMappingResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.codice = _data[\"codice\"] ? HHCodice.fromJS(_data[\"codice\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UnConfirmTypeMappingResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UnConfirmTypeMappingResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice ? this.codice.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUnConfirmTypeMappingResponse extends IOkApiResponse {\r\n codice?: HHCodice | null;\r\n}\r\n\r\nexport class UnConfirmTypeMappingRequest extends ApiRequest implements IUnConfirmTypeMappingRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n\r\n constructor(data?: IUnConfirmTypeMappingRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n this.tipologiaHHID = _data[\"tipologiaHHID\"] !== undefined ? _data[\"tipologiaHHID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UnConfirmTypeMappingRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UnConfirmTypeMappingRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n data[\"tipologiaHHID\"] = this.tipologiaHHID !== undefined ? this.tipologiaHHID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUnConfirmTypeMappingRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n tipologiaHHID?: number;\r\n}\r\n\r\nexport class UnlinkServizioH2HRequest extends ApiRequest implements IUnlinkServizioH2HRequest {\r\n servizioHHId?: number;\r\n\r\n constructor(data?: IUnlinkServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHHId = _data[\"servizioHHId\"] !== undefined ? _data[\"servizioHHId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UnlinkServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UnlinkServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHHId\"] = this.servizioHHId !== undefined ? this.servizioHHId : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUnlinkServizioH2HRequest extends IApiRequest {\r\n servizioHHId?: number;\r\n}\r\n\r\nexport class UpdateServizioH2HResponse extends OkApiResponse implements IUpdateServizioH2HResponse {\r\n servizio?: HHServizioAggregato | null;\r\n luogo?: string | null;\r\n\r\n constructor(data?: IUpdateServizioH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] ? HHServizioAggregato.fromJS(_data[\"servizio\"]) : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateServizioH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateServizioH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateServizioH2HResponse extends IOkApiResponse {\r\n servizio?: HHServizioAggregato | null;\r\n luogo?: string | null;\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport class UpdateServizioH2HRequest extends ApiRequest implements IUpdateServizioH2HRequest {\r\n servizioHH?: HHServizioAggregato | null;\r\n\r\n constructor(data?: IUpdateServizioH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioHH = _data[\"servizioHH\"] ? HHServizioAggregato.fromJS(_data[\"servizioHH\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateServizioH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateServizioH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioHH\"] = this.servizioHH ? this.servizioHH.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe che rappresenta i parametri di ricerca della lista contatti */\r\nexport interface IUpdateServizioH2HRequest extends IApiRequest {\r\n servizioHH?: HHServizioAggregato | null;\r\n}\r\n\r\nexport class UpdateDescriptionH2HResponse extends OkApiResponse implements IUpdateDescriptionH2HResponse {\r\n description?: HHDescrizione | null;\r\n\r\n constructor(data?: IUpdateDescriptionH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.description = _data[\"description\"] ? HHDescrizione.fromJS(_data[\"description\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateDescriptionH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDescriptionH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"description\"] = this.description ? this.description.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDescriptionH2HResponse extends IOkApiResponse {\r\n description?: HHDescrizione | null;\r\n}\r\n\r\nexport class UpdateDescriptionH2HRequest extends ApiRequest implements IUpdateDescriptionH2HRequest {\r\n description?: HHDescrizione | null;\r\n\r\n constructor(data?: IUpdateDescriptionH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.description = _data[\"description\"] ? HHDescrizione.fromJS(_data[\"description\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateDescriptionH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDescriptionH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"description\"] = this.description ? this.description.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDescriptionH2HRequest extends IApiRequest {\r\n description?: HHDescrizione | null;\r\n}\r\n\r\nexport class UpdateImageH2HResponse extends OkApiResponse implements IUpdateImageH2HResponse {\r\n image?: HHImmagine | null;\r\n\r\n constructor(data?: IUpdateImageH2HResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.image = _data[\"image\"] ? HHImmagine.fromJS(_data[\"image\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateImageH2HResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateImageH2HResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"image\"] = this.image ? this.image.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateImageH2HResponse extends IOkApiResponse {\r\n image?: HHImmagine | null;\r\n}\r\n\r\nexport class UpdateImageH2HRequest extends ApiRequest implements IUpdateImageH2HRequest {\r\n image?: HHImmagine | null;\r\n\r\n constructor(data?: IUpdateImageH2HRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.image = _data[\"image\"] ? HHImmagine.fromJS(_data[\"image\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateImageH2HRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateImageH2HRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"image\"] = this.image ? this.image.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateImageH2HRequest extends IApiRequest {\r\n image?: HHImmagine | null;\r\n}\r\n\r\nexport class GetSharedDocumentResponse extends OkApiResponse implements IGetSharedDocumentResponse {\r\n /** Entità del documento condiviso */\r\n documento?: DocumentoCondiviso;\r\n\r\n constructor(data?: IGetSharedDocumentResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documento = _data[\"documento\"] ? DocumentoCondiviso.fromJS(_data[\"documento\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSharedDocumentResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSharedDocumentResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documento\"] = this.documento ? this.documento.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSharedDocumentResponse extends IOkApiResponse {\r\n /** Entità del documento condiviso */\r\n documento?: DocumentoCondiviso;\r\n}\r\n\r\nexport class GetSharedDocumentRequest extends LocalizedRequest implements IGetSharedDocumentRequest {\r\n /** ID del documento condiviso */\r\n documentoCondivisoID?: number;\r\n\r\n constructor(data?: IGetSharedDocumentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoCondivisoID = _data[\"documentoCondivisoID\"] !== undefined ? _data[\"documentoCondivisoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSharedDocumentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSharedDocumentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoCondivisoID\"] = this.documentoCondivisoID !== undefined ? this.documentoCondivisoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSharedDocumentRequest extends ILocalizedRequest {\r\n /** ID del documento condiviso */\r\n documentoCondivisoID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfSharedDocumentRow extends OkApiResponse implements INrTableResponseOfSharedDocumentRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SharedDocumentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfSharedDocumentRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SharedDocumentRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfSharedDocumentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfSharedDocumentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfSharedDocumentRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SharedDocumentRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class GetSharedDocumentsListResponse extends NrTableResponseOfSharedDocumentRow implements IGetSharedDocumentsListResponse {\r\n\r\n constructor(data?: IGetSharedDocumentsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetSharedDocumentsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSharedDocumentsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSharedDocumentsListResponse extends INrTableResponseOfSharedDocumentRow {\r\n}\r\n\r\n/** Rappresentazione di un documento allegato */\r\nexport class SharedDocumentRow implements ISharedDocumentRow {\r\n /** ID del documento */\r\n id?: number;\r\n /** True se l'allegato esiste (ancora...) */\r\n exists?: boolean;\r\n /** Nome dell'allegato */\r\n name?: string;\r\n /** Nome del servizio associato */\r\n servizio?: string | null;\r\n /** Nome del luogo associato */\r\n luogo?: string | null;\r\n /** Nome del luogo di destinazione associato */\r\n luogoDestinazione?: string | null;\r\n /** Nome del contatto associato */\r\n contatto?: string | null;\r\n /** Nome dell'accordo associato */\r\n accordo?: string | null;\r\n /** Se true è fuori range per data di pubblicazione / partenza */\r\n scaduto?: boolean;\r\n /** Dimensione del file associato */\r\n dimensioneFile?: number;\r\n /** Nome del file */\r\n nomeFile?: string | null;\r\n /** Content Type del file */\r\n contentType?: string | null;\r\n /** Url per il download (solo intranet!) */\r\n downloadUrl?: string | null;\r\n\r\n constructor(data?: ISharedDocumentRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.exists = _data[\"exists\"] !== undefined ? _data[\"exists\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.luogoDestinazione = _data[\"luogoDestinazione\"] !== undefined ? _data[\"luogoDestinazione\"] : null;\r\n this.contatto = _data[\"contatto\"] !== undefined ? _data[\"contatto\"] : null;\r\n this.accordo = _data[\"accordo\"] !== undefined ? _data[\"accordo\"] : null;\r\n this.scaduto = _data[\"scaduto\"] !== undefined ? _data[\"scaduto\"] : null;\r\n this.dimensioneFile = _data[\"dimensioneFile\"] !== undefined ? _data[\"dimensioneFile\"] : null;\r\n this.nomeFile = _data[\"nomeFile\"] !== undefined ? _data[\"nomeFile\"] : null;\r\n this.contentType = _data[\"contentType\"] !== undefined ? _data[\"contentType\"] : null;\r\n this.downloadUrl = _data[\"downloadUrl\"] !== undefined ? _data[\"downloadUrl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SharedDocumentRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SharedDocumentRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"exists\"] = this.exists !== undefined ? this.exists : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"luogoDestinazione\"] = this.luogoDestinazione !== undefined ? this.luogoDestinazione : null;\r\n data[\"contatto\"] = this.contatto !== undefined ? this.contatto : null;\r\n data[\"accordo\"] = this.accordo !== undefined ? this.accordo : null;\r\n data[\"scaduto\"] = this.scaduto !== undefined ? this.scaduto : null;\r\n data[\"dimensioneFile\"] = this.dimensioneFile !== undefined ? this.dimensioneFile : null;\r\n data[\"nomeFile\"] = this.nomeFile !== undefined ? this.nomeFile : null;\r\n data[\"contentType\"] = this.contentType !== undefined ? this.contentType : null;\r\n data[\"downloadUrl\"] = this.downloadUrl !== undefined ? this.downloadUrl : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Rappresentazione di un documento allegato */\r\nexport interface ISharedDocumentRow {\r\n /** ID del documento */\r\n id?: number;\r\n /** True se l'allegato esiste (ancora...) */\r\n exists?: boolean;\r\n /** Nome dell'allegato */\r\n name?: string;\r\n /** Nome del servizio associato */\r\n servizio?: string | null;\r\n /** Nome del luogo associato */\r\n luogo?: string | null;\r\n /** Nome del luogo di destinazione associato */\r\n luogoDestinazione?: string | null;\r\n /** Nome del contatto associato */\r\n contatto?: string | null;\r\n /** Nome dell'accordo associato */\r\n accordo?: string | null;\r\n /** Se true è fuori range per data di pubblicazione / partenza */\r\n scaduto?: boolean;\r\n /** Dimensione del file associato */\r\n dimensioneFile?: number;\r\n /** Nome del file */\r\n nomeFile?: string | null;\r\n /** Content Type del file */\r\n contentType?: string | null;\r\n /** Url per il download (solo intranet!) */\r\n downloadUrl?: string | null;\r\n}\r\n\r\nexport class GetSharedDocumentsListRequest extends NrTableRequest implements IGetSharedDocumentsListRequest {\r\n /** Termine di ricerca oppure ID */\r\n term?: string | null;\r\n\r\n constructor(data?: IGetSharedDocumentsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetSharedDocumentsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetSharedDocumentsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetSharedDocumentsListRequest extends INrTableRequest {\r\n /** Termine di ricerca oppure ID */\r\n term?: string | null;\r\n}\r\n\r\nexport class StatisticMonthSalesResponse extends OkApiResponse implements IStatisticMonthSalesResponse {\r\n table?: StatisticTable;\r\n preventiviPerc?: number;\r\n venditePerc?: number;\r\n partitoPerc?: number;\r\n\r\n constructor(data?: IStatisticMonthSalesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.table = _data[\"table\"] ? StatisticTable.fromJS(_data[\"table\"]) : null;\r\n this.preventiviPerc = _data[\"preventiviPerc\"] !== undefined ? _data[\"preventiviPerc\"] : null;\r\n this.venditePerc = _data[\"venditePerc\"] !== undefined ? _data[\"venditePerc\"] : null;\r\n this.partitoPerc = _data[\"partitoPerc\"] !== undefined ? _data[\"partitoPerc\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticMonthSalesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticMonthSalesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"table\"] = this.table ? this.table.toJSON() : null;\r\n data[\"preventiviPerc\"] = this.preventiviPerc !== undefined ? this.preventiviPerc : null;\r\n data[\"venditePerc\"] = this.venditePerc !== undefined ? this.venditePerc : null;\r\n data[\"partitoPerc\"] = this.partitoPerc !== undefined ? this.partitoPerc : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticMonthSalesResponse extends IOkApiResponse {\r\n table?: StatisticTable;\r\n preventiviPerc?: number;\r\n venditePerc?: number;\r\n partitoPerc?: number;\r\n}\r\n\r\nexport class StatisticMonthSalesRequest extends LocalizedRequest implements IStatisticMonthSalesRequest {\r\n operator?: EOperatore;\r\n dateLimit?: string;\r\n export?: boolean | null;\r\n\r\n constructor(data?: IStatisticMonthSalesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n this.dateLimit = _data[\"dateLimit\"] !== undefined ? _data[\"dateLimit\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticMonthSalesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticMonthSalesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n data[\"dateLimit\"] = this.dateLimit !== undefined ? this.dateLimit : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticMonthSalesRequest extends ILocalizedRequest {\r\n operator?: EOperatore;\r\n dateLimit?: string;\r\n export?: boolean | null;\r\n}\r\n\r\nexport class QuotationsGetResponse extends OkApiResponse implements IQuotationsGetResponse {\r\n rows?: QuotationsRow[];\r\n totalSales?: number | null;\r\n totalQuotation?: number | null;\r\n percentage?: number | null;\r\n\r\n constructor(data?: IQuotationsGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(QuotationsRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.totalSales = _data[\"totalSales\"] !== undefined ? _data[\"totalSales\"] : null;\r\n this.totalQuotation = _data[\"totalQuotation\"] !== undefined ? _data[\"totalQuotation\"] : null;\r\n this.percentage = _data[\"percentage\"] !== undefined ? _data[\"percentage\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): QuotationsGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new QuotationsGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"totalSales\"] = this.totalSales !== undefined ? this.totalSales : null;\r\n data[\"totalQuotation\"] = this.totalQuotation !== undefined ? this.totalQuotation : null;\r\n data[\"percentage\"] = this.percentage !== undefined ? this.percentage : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IQuotationsGetResponse extends IOkApiResponse {\r\n rows?: QuotationsRow[];\r\n totalSales?: number | null;\r\n totalQuotation?: number | null;\r\n percentage?: number | null;\r\n}\r\n\r\nexport class QuotationsRow implements IQuotationsRow {\r\n id?: number;\r\n network?: string | null;\r\n regione?: string | null;\r\n citta?: string | null;\r\n provincia?: string | null;\r\n agenzia?: string | null;\r\n pax?: number | null;\r\n destinazione?: string | null;\r\n idOfferta?: number | null;\r\n descrizione?: string | null;\r\n creazione?: string | null;\r\n partenza?: string | null;\r\n conferma?: string | null;\r\n cancellazioneADV?: string | null;\r\n pag?: string | null;\r\n totale?: number | null;\r\n dirittiAgenzia?: number | null;\r\n commissioneAgenzia?: number | null;\r\n percentualeCommissione?: number | null;\r\n margineNetto?: number | null;\r\n tipoV?: string | null;\r\n catADV?: string | null;\r\n mailSpedizioneADV?: string | null;\r\n qtApPr?: number | null;\r\n wcys?: number | null;\r\n wcysPlus?: number | null;\r\n int100K?: number | null;\r\n int300K?: number | null;\r\n int500K?: number | null;\r\n int1000K?: number | null;\r\n blcPrz?: number | null;\r\n intComm?: number | null;\r\n tipoPrev?: string | null;\r\n sGruppo?: string | null;\r\n gestPreventivo?: string | null;\r\n gestConferma?: string | null;\r\n accVoucher?: number | null;\r\n\r\n constructor(data?: IQuotationsRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.network = _data[\"network\"] !== undefined ? _data[\"network\"] : null;\r\n this.regione = _data[\"regione\"] !== undefined ? _data[\"regione\"] : null;\r\n this.citta = _data[\"citta\"] !== undefined ? _data[\"citta\"] : null;\r\n this.provincia = _data[\"provincia\"] !== undefined ? _data[\"provincia\"] : null;\r\n this.agenzia = _data[\"agenzia\"] !== undefined ? _data[\"agenzia\"] : null;\r\n this.pax = _data[\"pax\"] !== undefined ? _data[\"pax\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.idOfferta = _data[\"idOfferta\"] !== undefined ? _data[\"idOfferta\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.conferma = _data[\"conferma\"] !== undefined ? _data[\"conferma\"] : null;\r\n this.cancellazioneADV = _data[\"cancellazioneADV\"] !== undefined ? _data[\"cancellazioneADV\"] : null;\r\n this.pag = _data[\"pag\"] !== undefined ? _data[\"pag\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.dirittiAgenzia = _data[\"dirittiAgenzia\"] !== undefined ? _data[\"dirittiAgenzia\"] : null;\r\n this.commissioneAgenzia = _data[\"commissioneAgenzia\"] !== undefined ? _data[\"commissioneAgenzia\"] : null;\r\n this.percentualeCommissione = _data[\"percentualeCommissione\"] !== undefined ? _data[\"percentualeCommissione\"] : null;\r\n this.margineNetto = _data[\"margineNetto\"] !== undefined ? _data[\"margineNetto\"] : null;\r\n this.tipoV = _data[\"tipoV\"] !== undefined ? _data[\"tipoV\"] : null;\r\n this.catADV = _data[\"catADV\"] !== undefined ? _data[\"catADV\"] : null;\r\n this.mailSpedizioneADV = _data[\"mailSpedizioneADV\"] !== undefined ? _data[\"mailSpedizioneADV\"] : null;\r\n this.qtApPr = _data[\"qtApPr\"] !== undefined ? _data[\"qtApPr\"] : null;\r\n this.wcys = _data[\"wcys\"] !== undefined ? _data[\"wcys\"] : null;\r\n this.wcysPlus = _data[\"wcysPlus\"] !== undefined ? _data[\"wcysPlus\"] : null;\r\n this.int100K = _data[\"int100K\"] !== undefined ? _data[\"int100K\"] : null;\r\n this.int300K = _data[\"int300K\"] !== undefined ? _data[\"int300K\"] : null;\r\n this.int500K = _data[\"int500K\"] !== undefined ? _data[\"int500K\"] : null;\r\n this.int1000K = _data[\"int1000K\"] !== undefined ? _data[\"int1000K\"] : null;\r\n this.blcPrz = _data[\"blcPrz\"] !== undefined ? _data[\"blcPrz\"] : null;\r\n this.intComm = _data[\"intComm\"] !== undefined ? _data[\"intComm\"] : null;\r\n this.tipoPrev = _data[\"tipoPrev\"] !== undefined ? _data[\"tipoPrev\"] : null;\r\n this.sGruppo = _data[\"sGruppo\"] !== undefined ? _data[\"sGruppo\"] : null;\r\n this.gestPreventivo = _data[\"gestPreventivo\"] !== undefined ? _data[\"gestPreventivo\"] : null;\r\n this.gestConferma = _data[\"gestConferma\"] !== undefined ? _data[\"gestConferma\"] : null;\r\n this.accVoucher = _data[\"accVoucher\"] !== undefined ? _data[\"accVoucher\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): QuotationsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new QuotationsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"network\"] = this.network !== undefined ? this.network : null;\r\n data[\"regione\"] = this.regione !== undefined ? this.regione : null;\r\n data[\"citta\"] = this.citta !== undefined ? this.citta : null;\r\n data[\"provincia\"] = this.provincia !== undefined ? this.provincia : null;\r\n data[\"agenzia\"] = this.agenzia !== undefined ? this.agenzia : null;\r\n data[\"pax\"] = this.pax !== undefined ? this.pax : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"idOfferta\"] = this.idOfferta !== undefined ? this.idOfferta : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"conferma\"] = this.conferma !== undefined ? this.conferma : null;\r\n data[\"cancellazioneADV\"] = this.cancellazioneADV !== undefined ? this.cancellazioneADV : null;\r\n data[\"pag\"] = this.pag !== undefined ? this.pag : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"dirittiAgenzia\"] = this.dirittiAgenzia !== undefined ? this.dirittiAgenzia : null;\r\n data[\"commissioneAgenzia\"] = this.commissioneAgenzia !== undefined ? this.commissioneAgenzia : null;\r\n data[\"percentualeCommissione\"] = this.percentualeCommissione !== undefined ? this.percentualeCommissione : null;\r\n data[\"margineNetto\"] = this.margineNetto !== undefined ? this.margineNetto : null;\r\n data[\"tipoV\"] = this.tipoV !== undefined ? this.tipoV : null;\r\n data[\"catADV\"] = this.catADV !== undefined ? this.catADV : null;\r\n data[\"mailSpedizioneADV\"] = this.mailSpedizioneADV !== undefined ? this.mailSpedizioneADV : null;\r\n data[\"qtApPr\"] = this.qtApPr !== undefined ? this.qtApPr : null;\r\n data[\"wcys\"] = this.wcys !== undefined ? this.wcys : null;\r\n data[\"wcysPlus\"] = this.wcysPlus !== undefined ? this.wcysPlus : null;\r\n data[\"int100K\"] = this.int100K !== undefined ? this.int100K : null;\r\n data[\"int300K\"] = this.int300K !== undefined ? this.int300K : null;\r\n data[\"int500K\"] = this.int500K !== undefined ? this.int500K : null;\r\n data[\"int1000K\"] = this.int1000K !== undefined ? this.int1000K : null;\r\n data[\"blcPrz\"] = this.blcPrz !== undefined ? this.blcPrz : null;\r\n data[\"intComm\"] = this.intComm !== undefined ? this.intComm : null;\r\n data[\"tipoPrev\"] = this.tipoPrev !== undefined ? this.tipoPrev : null;\r\n data[\"sGruppo\"] = this.sGruppo !== undefined ? this.sGruppo : null;\r\n data[\"gestPreventivo\"] = this.gestPreventivo !== undefined ? this.gestPreventivo : null;\r\n data[\"gestConferma\"] = this.gestConferma !== undefined ? this.gestConferma : null;\r\n data[\"accVoucher\"] = this.accVoucher !== undefined ? this.accVoucher : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IQuotationsRow {\r\n id?: number;\r\n network?: string | null;\r\n regione?: string | null;\r\n citta?: string | null;\r\n provincia?: string | null;\r\n agenzia?: string | null;\r\n pax?: number | null;\r\n destinazione?: string | null;\r\n idOfferta?: number | null;\r\n descrizione?: string | null;\r\n creazione?: string | null;\r\n partenza?: string | null;\r\n conferma?: string | null;\r\n cancellazioneADV?: string | null;\r\n pag?: string | null;\r\n totale?: number | null;\r\n dirittiAgenzia?: number | null;\r\n commissioneAgenzia?: number | null;\r\n percentualeCommissione?: number | null;\r\n margineNetto?: number | null;\r\n tipoV?: string | null;\r\n catADV?: string | null;\r\n mailSpedizioneADV?: string | null;\r\n qtApPr?: number | null;\r\n wcys?: number | null;\r\n wcysPlus?: number | null;\r\n int100K?: number | null;\r\n int300K?: number | null;\r\n int500K?: number | null;\r\n int1000K?: number | null;\r\n blcPrz?: number | null;\r\n intComm?: number | null;\r\n tipoPrev?: string | null;\r\n sGruppo?: string | null;\r\n gestPreventivo?: string | null;\r\n gestConferma?: string | null;\r\n accVoucher?: number | null;\r\n}\r\n\r\nexport class QuotationsGetRequest extends ApiRequest implements IQuotationsGetRequest {\r\n operator!: EOperatore;\r\n departFrom!: string;\r\n departTo!: string;\r\n creationFrom!: string;\r\n creationTo!: string;\r\n confirmFrom?: string | null;\r\n confirmTo?: string | null;\r\n export?: boolean;\r\n\r\n constructor(data?: IQuotationsGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n this.departFrom = _data[\"departFrom\"] !== undefined ? _data[\"departFrom\"] : null;\r\n this.departTo = _data[\"departTo\"] !== undefined ? _data[\"departTo\"] : null;\r\n this.creationFrom = _data[\"creationFrom\"] !== undefined ? _data[\"creationFrom\"] : null;\r\n this.creationTo = _data[\"creationTo\"] !== undefined ? _data[\"creationTo\"] : null;\r\n this.confirmFrom = _data[\"confirmFrom\"] !== undefined ? _data[\"confirmFrom\"] : null;\r\n this.confirmTo = _data[\"confirmTo\"] !== undefined ? _data[\"confirmTo\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): QuotationsGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new QuotationsGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n data[\"departFrom\"] = this.departFrom !== undefined ? this.departFrom : null;\r\n data[\"departTo\"] = this.departTo !== undefined ? this.departTo : null;\r\n data[\"creationFrom\"] = this.creationFrom !== undefined ? this.creationFrom : null;\r\n data[\"creationTo\"] = this.creationTo !== undefined ? this.creationTo : null;\r\n data[\"confirmFrom\"] = this.confirmFrom !== undefined ? this.confirmFrom : null;\r\n data[\"confirmTo\"] = this.confirmTo !== undefined ? this.confirmTo : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IQuotationsGetRequest extends IApiRequest {\r\n operator: EOperatore;\r\n departFrom: string;\r\n departTo: string;\r\n creationFrom: string;\r\n creationTo: string;\r\n confirmFrom?: string | null;\r\n confirmTo?: string | null;\r\n export?: boolean;\r\n}\r\n\r\nexport class DeleteReportValuesResponse extends OkApiResponse implements IDeleteReportValuesResponse {\r\n savedValues?: ReportValoreSalvato[];\r\n\r\n constructor(data?: IDeleteReportValuesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"savedValues\"])) {\r\n this.savedValues = [] as any;\r\n for (let item of _data[\"savedValues\"])\r\n this.savedValues!.push(ReportValoreSalvato.fromJS(item));\r\n }\r\n else {\r\n this.savedValues = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteReportValuesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteReportValuesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.savedValues)) {\r\n data[\"savedValues\"] = [];\r\n for (let item of this.savedValues)\r\n data[\"savedValues\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteReportValuesResponse extends IOkApiResponse {\r\n savedValues?: ReportValoreSalvato[];\r\n}\r\n\r\nexport class ReportValoreSalvato implements IReportValoreSalvato {\r\n id?: number;\r\n reportID?: number;\r\n nome!: string;\r\n valori!: string;\r\n\r\n constructor(data?: IReportValoreSalvato) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.reportID = _data[\"reportID\"] !== undefined ? _data[\"reportID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.valori = _data[\"valori\"] !== undefined ? _data[\"valori\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportValoreSalvato {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportValoreSalvato();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"reportID\"] = this.reportID !== undefined ? this.reportID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"valori\"] = this.valori !== undefined ? this.valori : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportValoreSalvato {\r\n id?: number;\r\n reportID?: number;\r\n nome: string;\r\n valori: string;\r\n}\r\n\r\nexport class DeleteReportValuesRequest extends ApiRequest implements IDeleteReportValuesRequest {\r\n reportID?: number;\r\n valuesID?: number;\r\n\r\n constructor(data?: IDeleteReportValuesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.reportID = _data[\"reportID\"] !== undefined ? _data[\"reportID\"] : null;\r\n this.valuesID = _data[\"valuesID\"] !== undefined ? _data[\"valuesID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteReportValuesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteReportValuesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"reportID\"] = this.reportID !== undefined ? this.reportID : null;\r\n data[\"valuesID\"] = this.valuesID !== undefined ? this.valuesID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteReportValuesRequest extends IApiRequest {\r\n reportID?: number;\r\n valuesID?: number;\r\n}\r\n\r\nexport class ReportExportRequest extends ApiRequest implements IReportExportRequest {\r\n reportID?: number;\r\n parameters?: ReportExportParameters[] | null;\r\n\r\n constructor(data?: IReportExportRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.reportID = _data[\"reportID\"] !== undefined ? _data[\"reportID\"] : null;\r\n if (Array.isArray(_data[\"parameters\"])) {\r\n this.parameters = [] as any;\r\n for (let item of _data[\"parameters\"])\r\n this.parameters!.push(ReportExportParameters.fromJS(item));\r\n }\r\n else {\r\n this.parameters = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportExportRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportExportRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"reportID\"] = this.reportID !== undefined ? this.reportID : null;\r\n if (Array.isArray(this.parameters)) {\r\n data[\"parameters\"] = [];\r\n for (let item of this.parameters)\r\n data[\"parameters\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportExportRequest extends IApiRequest {\r\n reportID?: number;\r\n parameters?: ReportExportParameters[] | null;\r\n}\r\n\r\nexport class ReportExportParameters implements IReportExportParameters {\r\n name?: string;\r\n value?: string | null;\r\n isArray?: boolean | null;\r\n\r\n constructor(data?: IReportExportParameters) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.value = _data[\"value\"] !== undefined ? _data[\"value\"] : null;\r\n this.isArray = _data[\"isArray\"] !== undefined ? _data[\"isArray\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportExportParameters {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportExportParameters();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"value\"] = this.value !== undefined ? this.value : null;\r\n data[\"isArray\"] = this.isArray !== undefined ? this.isArray : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportExportParameters {\r\n name?: string;\r\n value?: string | null;\r\n isArray?: boolean | null;\r\n}\r\n\r\nexport class NrTableResponseOfReportRow extends OkApiResponse implements INrTableResponseOfReportRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ReportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfReportRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(ReportRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfReportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfReportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfReportRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: ReportRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class ReportsResponse extends NrTableResponseOfReportRow implements IReportsResponse {\r\n\r\n constructor(data?: IReportsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): ReportsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportsResponse extends INrTableResponseOfReportRow {\r\n}\r\n\r\nexport class ReportRow implements IReportRow {\r\n id?: number;\r\n name?: string | null;\r\n enabled?: boolean;\r\n sentTime?: string | null;\r\n lastSent?: ReportSend | null;\r\n parameters?: any | null;\r\n savedValues?: ReportValoreSalvato[] | null;\r\n calendarMode?: EModalitaCalendarioAssicurazione;\r\n report?: Report | null;\r\n\r\n constructor(data?: IReportRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.enabled = _data[\"enabled\"] !== undefined ? _data[\"enabled\"] : null;\r\n this.sentTime = _data[\"sentTime\"] !== undefined ? _data[\"sentTime\"] : null;\r\n this.lastSent = _data[\"lastSent\"] ? ReportSend.fromJS(_data[\"lastSent\"]) : null;\r\n this.parameters = _data[\"parameters\"] !== undefined ? _data[\"parameters\"] : null;\r\n if (Array.isArray(_data[\"savedValues\"])) {\r\n this.savedValues = [] as any;\r\n for (let item of _data[\"savedValues\"])\r\n this.savedValues!.push(ReportValoreSalvato.fromJS(item));\r\n }\r\n else {\r\n this.savedValues = null;\r\n }\r\n this.calendarMode = _data[\"calendarMode\"] !== undefined ? _data[\"calendarMode\"] : null;\r\n this.report = _data[\"report\"] ? Report.fromJS(_data[\"report\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"enabled\"] = this.enabled !== undefined ? this.enabled : null;\r\n data[\"sentTime\"] = this.sentTime !== undefined ? this.sentTime : null;\r\n data[\"lastSent\"] = this.lastSent ? this.lastSent.toJSON() : null;\r\n data[\"parameters\"] = this.parameters !== undefined ? this.parameters : null;\r\n if (Array.isArray(this.savedValues)) {\r\n data[\"savedValues\"] = [];\r\n for (let item of this.savedValues)\r\n data[\"savedValues\"].push(item.toJSON());\r\n }\r\n data[\"calendarMode\"] = this.calendarMode !== undefined ? this.calendarMode : null;\r\n data[\"report\"] = this.report ? this.report.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportRow {\r\n id?: number;\r\n name?: string | null;\r\n enabled?: boolean;\r\n sentTime?: string | null;\r\n lastSent?: ReportSend | null;\r\n parameters?: any | null;\r\n savedValues?: ReportValoreSalvato[] | null;\r\n calendarMode?: EModalitaCalendarioAssicurazione;\r\n report?: Report | null;\r\n}\r\n\r\nexport class ReportInvio implements IReportInvio {\r\n id?: number;\r\n reportID?: number;\r\n data?: string;\r\n esito?: EEsitoInvioAssicurazione;\r\n jsonData?: string | null;\r\n messaggio?: string | null;\r\n\r\n constructor(data?: IReportInvio) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.reportID = _data[\"reportID\"] !== undefined ? _data[\"reportID\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.esito = _data[\"esito\"] !== undefined ? _data[\"esito\"] : null;\r\n this.jsonData = _data[\"jsonData\"] !== undefined ? _data[\"jsonData\"] : null;\r\n this.messaggio = _data[\"messaggio\"] !== undefined ? _data[\"messaggio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportInvio {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportInvio();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"reportID\"] = this.reportID !== undefined ? this.reportID : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"esito\"] = this.esito !== undefined ? this.esito : null;\r\n data[\"jsonData\"] = this.jsonData !== undefined ? this.jsonData : null;\r\n data[\"messaggio\"] = this.messaggio !== undefined ? this.messaggio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportInvio {\r\n id?: number;\r\n reportID?: number;\r\n data?: string;\r\n esito?: EEsitoInvioAssicurazione;\r\n jsonData?: string | null;\r\n messaggio?: string | null;\r\n}\r\n\r\nexport class ReportSend extends ReportInvio implements IReportSend {\r\n reportEmails?: ReportSendEmail[] | null;\r\n\r\n constructor(data?: IReportSend) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"reportEmails\"])) {\r\n this.reportEmails = [] as any;\r\n for (let item of _data[\"reportEmails\"])\r\n this.reportEmails!.push(ReportSendEmail.fromJS(item));\r\n }\r\n else {\r\n this.reportEmails = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportSend {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportSend();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.reportEmails)) {\r\n data[\"reportEmails\"] = [];\r\n for (let item of this.reportEmails)\r\n data[\"reportEmails\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportSend extends IReportInvio {\r\n reportEmails?: ReportSendEmail[] | null;\r\n}\r\n\r\nexport class ReportSendEmail implements IReportSendEmail {\r\n emailID?: number;\r\n recipients?: ReportSendEmailRecipient[];\r\n\r\n constructor(data?: IReportSendEmail) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.emailID = _data[\"emailID\"] !== undefined ? _data[\"emailID\"] : null;\r\n if (Array.isArray(_data[\"recipients\"])) {\r\n this.recipients = [] as any;\r\n for (let item of _data[\"recipients\"])\r\n this.recipients!.push(ReportSendEmailRecipient.fromJS(item));\r\n }\r\n else {\r\n this.recipients = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportSendEmail {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportSendEmail();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"emailID\"] = this.emailID !== undefined ? this.emailID : null;\r\n if (Array.isArray(this.recipients)) {\r\n data[\"recipients\"] = [];\r\n for (let item of this.recipients)\r\n data[\"recipients\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportSendEmail {\r\n emailID?: number;\r\n recipients?: ReportSendEmailRecipient[];\r\n}\r\n\r\nexport class ReportSendEmailRecipient implements IReportSendEmailRecipient {\r\n address?: string | null;\r\n name?: string | null;\r\n\r\n constructor(data?: IReportSendEmailRecipient) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.address = _data[\"address\"] !== undefined ? _data[\"address\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportSendEmailRecipient {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportSendEmailRecipient();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"address\"] = this.address !== undefined ? this.address : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportSendEmailRecipient {\r\n address?: string | null;\r\n name?: string | null;\r\n}\r\n\r\nexport class Report implements IReport {\r\n id?: number;\r\n codice!: string;\r\n codiceTemplateEmail!: string;\r\n nome!: string;\r\n abilitato?: boolean;\r\n modalitaCalendario?: EModalitaCalendarioAssicurazione;\r\n permissions?: string | null;\r\n query?: string | null;\r\n parametri?: string | null;\r\n orarioInvio!: string;\r\n oraInvio?: number;\r\n minutoInvio?: number;\r\n\r\n constructor(data?: IReport) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.codiceTemplateEmail = _data[\"codiceTemplateEmail\"] !== undefined ? _data[\"codiceTemplateEmail\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.abilitato = _data[\"abilitato\"] !== undefined ? _data[\"abilitato\"] : null;\r\n this.modalitaCalendario = _data[\"modalitaCalendario\"] !== undefined ? _data[\"modalitaCalendario\"] : null;\r\n this.permissions = _data[\"permissions\"] !== undefined ? _data[\"permissions\"] : null;\r\n this.query = _data[\"query\"] !== undefined ? _data[\"query\"] : null;\r\n this.parametri = _data[\"parametri\"] !== undefined ? _data[\"parametri\"] : null;\r\n this.orarioInvio = _data[\"orarioInvio\"] !== undefined ? _data[\"orarioInvio\"] : null;\r\n this.oraInvio = _data[\"oraInvio\"] !== undefined ? _data[\"oraInvio\"] : null;\r\n this.minutoInvio = _data[\"minutoInvio\"] !== undefined ? _data[\"minutoInvio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Report {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Report();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"codiceTemplateEmail\"] = this.codiceTemplateEmail !== undefined ? this.codiceTemplateEmail : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"abilitato\"] = this.abilitato !== undefined ? this.abilitato : null;\r\n data[\"modalitaCalendario\"] = this.modalitaCalendario !== undefined ? this.modalitaCalendario : null;\r\n data[\"permissions\"] = this.permissions !== undefined ? this.permissions : null;\r\n data[\"query\"] = this.query !== undefined ? this.query : null;\r\n data[\"parametri\"] = this.parametri !== undefined ? this.parametri : null;\r\n data[\"orarioInvio\"] = this.orarioInvio !== undefined ? this.orarioInvio : null;\r\n data[\"oraInvio\"] = this.oraInvio !== undefined ? this.oraInvio : null;\r\n data[\"minutoInvio\"] = this.minutoInvio !== undefined ? this.minutoInvio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReport {\r\n id?: number;\r\n codice: string;\r\n codiceTemplateEmail: string;\r\n nome: string;\r\n abilitato?: boolean;\r\n modalitaCalendario?: EModalitaCalendarioAssicurazione;\r\n permissions?: string | null;\r\n query?: string | null;\r\n parametri?: string | null;\r\n orarioInvio: string;\r\n oraInvio?: number;\r\n minutoInvio?: number;\r\n}\r\n\r\nexport class ReportsRequest extends NrTableRequest implements IReportsRequest {\r\n name?: string | null;\r\n\r\n constructor(data?: IReportsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ReportsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ReportsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReportsRequest extends INrTableRequest {\r\n name?: string | null;\r\n}\r\n\r\nexport class SaveReportValuesResponse extends OkApiResponse implements ISaveReportValuesResponse {\r\n savedValues?: ReportValoreSalvato[];\r\n\r\n constructor(data?: ISaveReportValuesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"savedValues\"])) {\r\n this.savedValues = [] as any;\r\n for (let item of _data[\"savedValues\"])\r\n this.savedValues!.push(ReportValoreSalvato.fromJS(item));\r\n }\r\n else {\r\n this.savedValues = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SaveReportValuesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SaveReportValuesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.savedValues)) {\r\n data[\"savedValues\"] = [];\r\n for (let item of this.savedValues)\r\n data[\"savedValues\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISaveReportValuesResponse extends IOkApiResponse {\r\n savedValues?: ReportValoreSalvato[];\r\n}\r\n\r\nexport class SaveReportValuesRequest extends ApiRequest implements ISaveReportValuesRequest {\r\n reportID?: number;\r\n valuesID?: number | null;\r\n name?: string | null;\r\n values?: string | null;\r\n\r\n constructor(data?: ISaveReportValuesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.reportID = _data[\"reportID\"] !== undefined ? _data[\"reportID\"] : null;\r\n this.valuesID = _data[\"valuesID\"] !== undefined ? _data[\"valuesID\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.values = _data[\"values\"] !== undefined ? _data[\"values\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SaveReportValuesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SaveReportValuesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"reportID\"] = this.reportID !== undefined ? this.reportID : null;\r\n data[\"valuesID\"] = this.valuesID !== undefined ? this.valuesID : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"values\"] = this.values !== undefined ? this.values : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISaveReportValuesRequest extends IApiRequest {\r\n reportID?: number;\r\n valuesID?: number | null;\r\n name?: string | null;\r\n values?: string | null;\r\n}\r\n\r\nexport class StatisticResultResponse extends OkApiResponse implements IStatisticResultResponse {\r\n table?: StatisticTable;\r\n\r\n constructor(data?: IStatisticResultResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.table = _data[\"table\"] ? StatisticTable.fromJS(_data[\"table\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticResultResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticResultResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"table\"] = this.table ? this.table.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticResultResponse extends IOkApiResponse {\r\n table?: StatisticTable;\r\n}\r\n\r\nexport class StatisticResultRequest extends LocalizedRequest implements IStatisticResultRequest {\r\n statisticID?: number;\r\n parameters?: string | null;\r\n export?: boolean | null;\r\n\r\n constructor(data?: IStatisticResultRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statisticID = _data[\"statisticID\"] !== undefined ? _data[\"statisticID\"] : null;\r\n this.parameters = _data[\"parameters\"] !== undefined ? _data[\"parameters\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticResultRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticResultRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statisticID\"] = this.statisticID !== undefined ? this.statisticID : null;\r\n data[\"parameters\"] = this.parameters !== undefined ? this.parameters : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticResultRequest extends ILocalizedRequest {\r\n statisticID?: number;\r\n parameters?: string | null;\r\n export?: boolean | null;\r\n}\r\n\r\nexport class NrTableResponseOfSalesDetailsRow extends OkApiResponse implements INrTableResponseOfSalesDetailsRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SalesDetailsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfSalesDetailsRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SalesDetailsRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfSalesDetailsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfSalesDetailsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfSalesDetailsRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SalesDetailsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class SalesDetailsResponse extends NrTableResponseOfSalesDetailsRow implements ISalesDetailsResponse {\r\n\r\n constructor(data?: ISalesDetailsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SalesDetailsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SalesDetailsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISalesDetailsResponse extends INrTableResponseOfSalesDetailsRow {\r\n}\r\n\r\nexport class SalesDetailsRow implements ISalesDetailsRow {\r\n id?: number;\r\n descrizione?: string | null;\r\n totale?: number | null;\r\n riferimento?: number;\r\n creazione?: string | null;\r\n partenza?: string | null;\r\n conferma?: string | null;\r\n impiegato?: string | null;\r\n addetto?: string | null;\r\n\r\n constructor(data?: ISalesDetailsRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.riferimento = _data[\"riferimento\"] !== undefined ? _data[\"riferimento\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.conferma = _data[\"conferma\"] !== undefined ? _data[\"conferma\"] : null;\r\n this.impiegato = _data[\"impiegato\"] !== undefined ? _data[\"impiegato\"] : null;\r\n this.addetto = _data[\"addetto\"] !== undefined ? _data[\"addetto\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SalesDetailsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SalesDetailsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"riferimento\"] = this.riferimento !== undefined ? this.riferimento : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"conferma\"] = this.conferma !== undefined ? this.conferma : null;\r\n data[\"impiegato\"] = this.impiegato !== undefined ? this.impiegato : null;\r\n data[\"addetto\"] = this.addetto !== undefined ? this.addetto : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISalesDetailsRow {\r\n id?: number;\r\n descrizione?: string | null;\r\n totale?: number | null;\r\n riferimento?: number;\r\n creazione?: string | null;\r\n partenza?: string | null;\r\n conferma?: string | null;\r\n impiegato?: string | null;\r\n addetto?: string | null;\r\n}\r\n\r\nexport class SalesDetailsRequest extends NrTableRequest implements ISalesDetailsRequest {\r\n agencyID?: number;\r\n departFrom?: string | null;\r\n departTo?: string | null;\r\n quotationFrom?: string | null;\r\n quotationTo?: string | null;\r\n\r\n constructor(data?: ISalesDetailsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.agencyID = _data[\"agencyID\"] !== undefined ? _data[\"agencyID\"] : null;\r\n this.departFrom = _data[\"departFrom\"] !== undefined ? _data[\"departFrom\"] : null;\r\n this.departTo = _data[\"departTo\"] !== undefined ? _data[\"departTo\"] : null;\r\n this.quotationFrom = _data[\"quotationFrom\"] !== undefined ? _data[\"quotationFrom\"] : null;\r\n this.quotationTo = _data[\"quotationTo\"] !== undefined ? _data[\"quotationTo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SalesDetailsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SalesDetailsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"agencyID\"] = this.agencyID !== undefined ? this.agencyID : null;\r\n data[\"departFrom\"] = this.departFrom !== undefined ? this.departFrom : null;\r\n data[\"departTo\"] = this.departTo !== undefined ? this.departTo : null;\r\n data[\"quotationFrom\"] = this.quotationFrom !== undefined ? this.quotationFrom : null;\r\n data[\"quotationTo\"] = this.quotationTo !== undefined ? this.quotationTo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISalesDetailsRequest extends INrTableRequest {\r\n agencyID?: number;\r\n departFrom?: string | null;\r\n departTo?: string | null;\r\n quotationFrom?: string | null;\r\n quotationTo?: string | null;\r\n}\r\n\r\nexport class SalesGetResponse extends OkApiResponse implements ISalesGetResponse {\r\n table?: StatisticTable;\r\n totalQuotation?: number | null;\r\n totalSales?: number | null;\r\n avaragePercent?: number | null;\r\n totalNQuotation?: number | null;\r\n totalNSales?: number | null;\r\n avarageNPercent?: number | null;\r\n\r\n constructor(data?: ISalesGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.table = _data[\"table\"] ? StatisticTable.fromJS(_data[\"table\"]) : null;\r\n this.totalQuotation = _data[\"totalQuotation\"] !== undefined ? _data[\"totalQuotation\"] : null;\r\n this.totalSales = _data[\"totalSales\"] !== undefined ? _data[\"totalSales\"] : null;\r\n this.avaragePercent = _data[\"avaragePercent\"] !== undefined ? _data[\"avaragePercent\"] : null;\r\n this.totalNQuotation = _data[\"totalNQuotation\"] !== undefined ? _data[\"totalNQuotation\"] : null;\r\n this.totalNSales = _data[\"totalNSales\"] !== undefined ? _data[\"totalNSales\"] : null;\r\n this.avarageNPercent = _data[\"avarageNPercent\"] !== undefined ? _data[\"avarageNPercent\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SalesGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SalesGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"table\"] = this.table ? this.table.toJSON() : null;\r\n data[\"totalQuotation\"] = this.totalQuotation !== undefined ? this.totalQuotation : null;\r\n data[\"totalSales\"] = this.totalSales !== undefined ? this.totalSales : null;\r\n data[\"avaragePercent\"] = this.avaragePercent !== undefined ? this.avaragePercent : null;\r\n data[\"totalNQuotation\"] = this.totalNQuotation !== undefined ? this.totalNQuotation : null;\r\n data[\"totalNSales\"] = this.totalNSales !== undefined ? this.totalNSales : null;\r\n data[\"avarageNPercent\"] = this.avarageNPercent !== undefined ? this.avarageNPercent : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISalesGetResponse extends IOkApiResponse {\r\n table?: StatisticTable;\r\n totalQuotation?: number | null;\r\n totalSales?: number | null;\r\n avaragePercent?: number | null;\r\n totalNQuotation?: number | null;\r\n totalNSales?: number | null;\r\n avarageNPercent?: number | null;\r\n}\r\n\r\nexport class SalesGetRequest extends ApiRequest implements ISalesGetRequest {\r\n operator!: EOperatore;\r\n name?: string | null;\r\n region?: string | null;\r\n city?: string | null;\r\n cap?: string | null;\r\n province?: string | null;\r\n departFrom!: string;\r\n departTo!: string;\r\n quotationFrom!: string;\r\n quotationTo!: string;\r\n export?: boolean;\r\n\r\n constructor(data?: ISalesGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.region = _data[\"region\"] !== undefined ? _data[\"region\"] : null;\r\n this.city = _data[\"city\"] !== undefined ? _data[\"city\"] : null;\r\n this.cap = _data[\"cap\"] !== undefined ? _data[\"cap\"] : null;\r\n this.province = _data[\"province\"] !== undefined ? _data[\"province\"] : null;\r\n this.departFrom = _data[\"departFrom\"] !== undefined ? _data[\"departFrom\"] : null;\r\n this.departTo = _data[\"departTo\"] !== undefined ? _data[\"departTo\"] : null;\r\n this.quotationFrom = _data[\"quotationFrom\"] !== undefined ? _data[\"quotationFrom\"] : null;\r\n this.quotationTo = _data[\"quotationTo\"] !== undefined ? _data[\"quotationTo\"] : null;\r\n this.export = _data[\"export\"] !== undefined ? _data[\"export\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SalesGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SalesGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"region\"] = this.region !== undefined ? this.region : null;\r\n data[\"city\"] = this.city !== undefined ? this.city : null;\r\n data[\"cap\"] = this.cap !== undefined ? this.cap : null;\r\n data[\"province\"] = this.province !== undefined ? this.province : null;\r\n data[\"departFrom\"] = this.departFrom !== undefined ? this.departFrom : null;\r\n data[\"departTo\"] = this.departTo !== undefined ? this.departTo : null;\r\n data[\"quotationFrom\"] = this.quotationFrom !== undefined ? this.quotationFrom : null;\r\n data[\"quotationTo\"] = this.quotationTo !== undefined ? this.quotationTo : null;\r\n data[\"export\"] = this.export !== undefined ? this.export : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISalesGetRequest extends IApiRequest {\r\n operator: EOperatore;\r\n name?: string | null;\r\n region?: string | null;\r\n city?: string | null;\r\n cap?: string | null;\r\n province?: string | null;\r\n departFrom: string;\r\n departTo: string;\r\n quotationFrom: string;\r\n quotationTo: string;\r\n export?: boolean;\r\n}\r\n\r\nexport class StatisticsAllResponse extends OkApiResponse implements IStatisticsAllResponse {\r\n statistics?: StatisticsRow[];\r\n\r\n constructor(data?: IStatisticsAllResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"statistics\"])) {\r\n this.statistics = [] as any;\r\n for (let item of _data[\"statistics\"])\r\n this.statistics!.push(StatisticsRow.fromJS(item));\r\n }\r\n else {\r\n this.statistics = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticsAllResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticsAllResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.statistics)) {\r\n data[\"statistics\"] = [];\r\n for (let item of this.statistics)\r\n data[\"statistics\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticsAllResponse extends IOkApiResponse {\r\n statistics?: StatisticsRow[];\r\n}\r\n\r\nexport class StatisticsRow implements IStatisticsRow {\r\n id?: number;\r\n name?: string;\r\n alias?: string;\r\n statistica?: Statistica | null;\r\n\r\n constructor(data?: IStatisticsRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.alias = _data[\"alias\"] !== undefined ? _data[\"alias\"] : null;\r\n this.statistica = _data[\"statistica\"] ? Statistica.fromJS(_data[\"statistica\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"alias\"] = this.alias !== undefined ? this.alias : null;\r\n data[\"statistica\"] = this.statistica ? this.statistica.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticsRow {\r\n id?: number;\r\n name?: string;\r\n alias?: string;\r\n statistica?: Statistica | null;\r\n}\r\n\r\nexport class Statistica implements IStatistica {\r\n id?: number;\r\n nome!: string;\r\n alias?: string;\r\n query?: string;\r\n tipo?: number | null;\r\n\r\n constructor(data?: IStatistica) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.alias = _data[\"alias\"] !== undefined ? _data[\"alias\"] : null;\r\n this.query = _data[\"query\"] !== undefined ? _data[\"query\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Statistica {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Statistica();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"alias\"] = this.alias !== undefined ? this.alias : null;\r\n data[\"query\"] = this.query !== undefined ? this.query : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatistica {\r\n id?: number;\r\n nome: string;\r\n alias?: string;\r\n query?: string;\r\n tipo?: number | null;\r\n}\r\n\r\nexport class StatisticsAllRequest extends LocalizedRequest implements IStatisticsAllRequest {\r\n\r\n constructor(data?: IStatisticsAllRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): StatisticsAllRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticsAllRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticsAllRequest extends ILocalizedRequest {\r\n}\r\n\r\nexport class StatisticGetResponse extends OkApiResponse implements IStatisticGetResponse {\r\n statistic?: Statistica | null;\r\n\r\n constructor(data?: IStatisticGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statistic = _data[\"statistic\"] ? Statistica.fromJS(_data[\"statistic\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statistic\"] = this.statistic ? this.statistic.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticGetResponse extends IOkApiResponse {\r\n statistic?: Statistica | null;\r\n}\r\n\r\nexport class StatisticGetRequest extends LocalizedRequest implements IStatisticGetRequest {\r\n statisticID?: number;\r\n\r\n constructor(data?: IStatisticGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statisticID = _data[\"statisticID\"] !== undefined ? _data[\"statisticID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statisticID\"] = this.statisticID !== undefined ? this.statisticID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticGetRequest extends ILocalizedRequest {\r\n statisticID?: number;\r\n}\r\n\r\nexport class StatisticUpdateRequest extends StatisticGetRequest implements IStatisticUpdateRequest {\r\n statistic?: Statistica | null;\r\n\r\n constructor(data?: IStatisticUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statistic = _data[\"statistic\"] ? Statistica.fromJS(_data[\"statistic\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statistic\"] = this.statistic ? this.statistic.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticUpdateRequest extends IStatisticGetRequest {\r\n statistic?: Statistica | null;\r\n}\r\n\r\nexport class StatisticDeleteRequest extends LocalizedRequest implements IStatisticDeleteRequest {\r\n statisticID?: number;\r\n\r\n constructor(data?: IStatisticDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statisticID = _data[\"statisticID\"] !== undefined ? _data[\"statisticID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statisticID\"] = this.statisticID !== undefined ? this.statisticID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticDeleteRequest extends ILocalizedRequest {\r\n statisticID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfStatisticsRow extends OkApiResponse implements INrTableResponseOfStatisticsRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: StatisticsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfStatisticsRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(StatisticsRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfStatisticsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfStatisticsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfStatisticsRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: StatisticsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class StatisticsListResponse extends NrTableResponseOfStatisticsRow implements IStatisticsListResponse {\r\n\r\n constructor(data?: IStatisticsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): StatisticsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticsListResponse extends INrTableResponseOfStatisticsRow {\r\n}\r\n\r\nexport class StatisticsListRequest extends NrTableRequest implements IStatisticsListRequest {\r\n name?: string | null;\r\n\r\n constructor(data?: IStatisticsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): StatisticsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new StatisticsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStatisticsListRequest extends INrTableRequest {\r\n name?: string | null;\r\n}\r\n\r\nexport class SystemEmailGetResponse extends OkApiResponse implements ISystemEmailGetResponse {\r\n email?: SystemEmailRow2 | null;\r\n\r\n constructor(data?: ISystemEmailGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.email = _data[\"email\"] ? SystemEmailRow2.fromJS(_data[\"email\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"email\"] = this.email ? this.email.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailGetResponse extends IOkApiResponse {\r\n email?: SystemEmailRow2 | null;\r\n}\r\n\r\nexport class SystemEmailRow2 implements ISystemEmailRow2 {\r\n id?: number;\r\n code?: string;\r\n operator?: EOperatore;\r\n hasDynamicBody?: boolean;\r\n hasDynamicRecipient?: boolean;\r\n isHtmlBody?: boolean;\r\n name?: string;\r\n texts?: SystemEmailTextRow2[];\r\n deleted?: boolean;\r\n\r\n constructor(data?: ISystemEmailRow2) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.code = _data[\"code\"] !== undefined ? _data[\"code\"] : null;\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n this.hasDynamicBody = _data[\"hasDynamicBody\"] !== undefined ? _data[\"hasDynamicBody\"] : null;\r\n this.hasDynamicRecipient = _data[\"hasDynamicRecipient\"] !== undefined ? _data[\"hasDynamicRecipient\"] : null;\r\n this.isHtmlBody = _data[\"isHtmlBody\"] !== undefined ? _data[\"isHtmlBody\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n if (Array.isArray(_data[\"texts\"])) {\r\n this.texts = [] as any;\r\n for (let item of _data[\"texts\"])\r\n this.texts!.push(SystemEmailTextRow2.fromJS(item));\r\n }\r\n else {\r\n this.texts = null;\r\n }\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailRow2 {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailRow2();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"code\"] = this.code !== undefined ? this.code : null;\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n data[\"hasDynamicBody\"] = this.hasDynamicBody !== undefined ? this.hasDynamicBody : null;\r\n data[\"hasDynamicRecipient\"] = this.hasDynamicRecipient !== undefined ? this.hasDynamicRecipient : null;\r\n data[\"isHtmlBody\"] = this.isHtmlBody !== undefined ? this.isHtmlBody : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n if (Array.isArray(this.texts)) {\r\n data[\"texts\"] = [];\r\n for (let item of this.texts)\r\n data[\"texts\"].push(item.toJSON());\r\n }\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailRow2 {\r\n id?: number;\r\n code?: string;\r\n operator?: EOperatore;\r\n hasDynamicBody?: boolean;\r\n hasDynamicRecipient?: boolean;\r\n isHtmlBody?: boolean;\r\n name?: string;\r\n texts?: SystemEmailTextRow2[];\r\n deleted?: boolean;\r\n}\r\n\r\nexport class SystemEmailTextRow2 implements ISystemEmailTextRow2 {\r\n id?: number;\r\n body?: string | null;\r\n language?: ELingua;\r\n senderAddress?: string | null;\r\n senderName?: string | null;\r\n subject?: string | null;\r\n addresses?: SystemEmailAddress[];\r\n\r\n constructor(data?: ISystemEmailTextRow2) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.body = _data[\"body\"] !== undefined ? _data[\"body\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n this.senderAddress = _data[\"senderAddress\"] !== undefined ? _data[\"senderAddress\"] : null;\r\n this.senderName = _data[\"senderName\"] !== undefined ? _data[\"senderName\"] : null;\r\n this.subject = _data[\"subject\"] !== undefined ? _data[\"subject\"] : null;\r\n if (Array.isArray(_data[\"addresses\"])) {\r\n this.addresses = [] as any;\r\n for (let item of _data[\"addresses\"])\r\n this.addresses!.push(SystemEmailAddress.fromJS(item));\r\n }\r\n else {\r\n this.addresses = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailTextRow2 {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailTextRow2();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"body\"] = this.body !== undefined ? this.body : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n data[\"senderAddress\"] = this.senderAddress !== undefined ? this.senderAddress : null;\r\n data[\"senderName\"] = this.senderName !== undefined ? this.senderName : null;\r\n data[\"subject\"] = this.subject !== undefined ? this.subject : null;\r\n if (Array.isArray(this.addresses)) {\r\n data[\"addresses\"] = [];\r\n for (let item of this.addresses)\r\n data[\"addresses\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailTextRow2 {\r\n id?: number;\r\n body?: string | null;\r\n language?: ELingua;\r\n senderAddress?: string | null;\r\n senderName?: string | null;\r\n subject?: string | null;\r\n addresses?: SystemEmailAddress[];\r\n}\r\n\r\nexport class SystemEmailGetRequest extends ApiRequest implements ISystemEmailGetRequest {\r\n emailID?: number;\r\n\r\n constructor(data?: ISystemEmailGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.emailID = _data[\"emailID\"] !== undefined ? _data[\"emailID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"emailID\"] = this.emailID !== undefined ? this.emailID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailGetRequest extends IApiRequest {\r\n emailID?: number;\r\n}\r\n\r\nexport class SystemEmailUpdateRequest extends SystemEmailGetRequest implements ISystemEmailUpdateRequest {\r\n email?: SystemEmailRow2 | null;\r\n\r\n constructor(data?: ISystemEmailUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.email = _data[\"email\"] ? SystemEmailRow2.fromJS(_data[\"email\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"email\"] = this.email ? this.email.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailUpdateRequest extends ISystemEmailGetRequest {\r\n email?: SystemEmailRow2 | null;\r\n}\r\n\r\nexport class SystemEmailCreateRequest extends SystemEmailUpdateRequest implements ISystemEmailCreateRequest {\r\n\r\n constructor(data?: ISystemEmailCreateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SystemEmailCreateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailCreateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailCreateRequest extends ISystemEmailUpdateRequest {\r\n}\r\n\r\nexport class SystemEmailDeleteRequest extends SystemEmailGetRequest implements ISystemEmailDeleteRequest {\r\n\r\n constructor(data?: ISystemEmailDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SystemEmailDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailDeleteRequest extends ISystemEmailGetRequest {\r\n}\r\n\r\nexport class NrTableResponseOfSystemEmailRow extends OkApiResponse implements INrTableResponseOfSystemEmailRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SystemEmailRow2[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfSystemEmailRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(SystemEmailRow2.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfSystemEmailRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfSystemEmailRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfSystemEmailRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: SystemEmailRow2[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class SystemEmailListResponse extends NrTableResponseOfSystemEmailRow implements ISystemEmailListResponse {\r\n\r\n constructor(data?: ISystemEmailListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SystemEmailListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailListResponse extends INrTableResponseOfSystemEmailRow {\r\n}\r\n\r\nexport class SystemEmailListRequest extends NrTableRequest implements ISystemEmailListRequest {\r\n showDeleted?: boolean;\r\n term?: string | null;\r\n name?: string | null;\r\n operator?: EOperatore | null;\r\n\r\n constructor(data?: ISystemEmailListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.showDeleted = _data[\"showDeleted\"] !== undefined ? _data[\"showDeleted\"] : null;\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.operator = _data[\"operator\"] !== undefined ? _data[\"operator\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SystemEmailListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"showDeleted\"] = this.showDeleted !== undefined ? this.showDeleted : null;\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"operator\"] = this.operator !== undefined ? this.operator : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailListRequest extends INrTableRequest {\r\n showDeleted?: boolean;\r\n term?: string | null;\r\n name?: string | null;\r\n operator?: EOperatore | null;\r\n}\r\n\r\nexport class SystemEmailRestoreRequest extends SystemEmailGetRequest implements ISystemEmailRestoreRequest {\r\n\r\n constructor(data?: ISystemEmailRestoreRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SystemEmailRestoreRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailRestoreRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailRestoreRequest extends ISystemEmailGetRequest {\r\n}\r\n\r\nexport class SystemEmailUpdateResponse extends SystemEmailGetResponse implements ISystemEmailUpdateResponse {\r\n\r\n constructor(data?: ISystemEmailUpdateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SystemEmailUpdateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SystemEmailUpdateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISystemEmailUpdateResponse extends ISystemEmailGetResponse {\r\n}\r\n\r\nexport class TicketCreateResponse extends OkApiResponse implements ITicketCreateResponse {\r\n ticket?: ImportTicket | null;\r\n created?: boolean;\r\n\r\n constructor(data?: ITicketCreateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ticket = _data[\"ticket\"] ? ImportTicket.fromJS(_data[\"ticket\"]) : null;\r\n this.created = _data[\"created\"] !== undefined ? _data[\"created\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TicketCreateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TicketCreateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ticket\"] = this.ticket ? this.ticket.toJSON() : null;\r\n data[\"created\"] = this.created !== undefined ? this.created : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITicketCreateResponse extends IOkApiResponse {\r\n ticket?: ImportTicket | null;\r\n created?: boolean;\r\n}\r\n\r\nexport class TicketCreateRequest extends ApiRequest implements ITicketCreateRequest {\r\n ticket?: ImportTicket | null;\r\n\r\n constructor(data?: ITicketCreateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ticket = _data[\"ticket\"] ? ImportTicket.fromJS(_data[\"ticket\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TicketCreateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TicketCreateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ticket\"] = this.ticket ? this.ticket.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITicketCreateRequest extends IApiRequest {\r\n ticket?: ImportTicket | null;\r\n}\r\n\r\nexport class TranslationsAllResponse extends OkApiResponse implements ITranslationsAllResponse {\r\n total?: number;\r\n totalToTranslate?: number;\r\n totalTranslated?: number;\r\n\r\n constructor(data?: ITranslationsAllResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n this.totalToTranslate = _data[\"totalToTranslate\"] !== undefined ? _data[\"totalToTranslate\"] : null;\r\n this.totalTranslated = _data[\"totalTranslated\"] !== undefined ? _data[\"totalTranslated\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsAllResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsAllResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n data[\"totalToTranslate\"] = this.totalToTranslate !== undefined ? this.totalToTranslate : null;\r\n data[\"totalTranslated\"] = this.totalTranslated !== undefined ? this.totalTranslated : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsAllResponse extends IOkApiResponse {\r\n total?: number;\r\n totalToTranslate?: number;\r\n totalTranslated?: number;\r\n}\r\n\r\nexport class TranslationsAllRequest extends ApiRequest implements ITranslationsAllRequest {\r\n from?: ELingua;\r\n to?: ELingua;\r\n\r\n constructor(data?: ITranslationsAllRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsAllRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsAllRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsAllRequest extends IApiRequest {\r\n from?: ELingua;\r\n to?: ELingua;\r\n}\r\n\r\nexport class NrTableResponseOfTranslationsArticleRow extends OkApiResponse implements INrTableResponseOfTranslationsArticleRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsArticleRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTranslationsArticleRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TranslationsArticleRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTranslationsArticleRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTranslationsArticleRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTranslationsArticleRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsArticleRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\n/** Classe base per la RESPONSE della lista di traduzioni */\r\nexport class TranslationsListRow implements ITranslationsListRow {\r\n id?: number;\r\n title?: string | null;\r\n translations?: TranslationsListRowTranslation[];\r\n lastUpdate?: string | null;\r\n\r\n constructor(data?: ITranslationsListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n if (Array.isArray(_data[\"translations\"])) {\r\n this.translations = [] as any;\r\n for (let item of _data[\"translations\"])\r\n this.translations!.push(TranslationsListRowTranslation.fromJS(item));\r\n }\r\n else {\r\n this.translations = null;\r\n }\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n if (Array.isArray(this.translations)) {\r\n data[\"translations\"] = [];\r\n for (let item of this.translations)\r\n data[\"translations\"].push(item.toJSON());\r\n }\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe base per la RESPONSE della lista di traduzioni */\r\nexport interface ITranslationsListRow {\r\n id?: number;\r\n title?: string | null;\r\n translations?: TranslationsListRowTranslation[];\r\n lastUpdate?: string | null;\r\n}\r\n\r\nexport class TranslationsArticleRow extends TranslationsListRow implements ITranslationsArticleRow {\r\n originalTitle?: string | null;\r\n\r\n constructor(data?: ITranslationsArticleRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.originalTitle = _data[\"originalTitle\"] !== undefined ? _data[\"originalTitle\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsArticleRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsArticleRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"originalTitle\"] = this.originalTitle !== undefined ? this.originalTitle : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsArticleRow extends ITranslationsListRow {\r\n originalTitle?: string | null;\r\n}\r\n\r\n/** Traduzione di una riga della lista di traduzioni */\r\nexport class TranslationsListRowTranslation implements ITranslationsListRowTranslation {\r\n language?: ELingua;\r\n value?: string;\r\n update?: string | null;\r\n\r\n constructor(data?: ITranslationsListRowTranslation) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n this.value = _data[\"value\"] !== undefined ? _data[\"value\"] : null;\r\n this.update = _data[\"update\"] !== undefined ? _data[\"update\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsListRowTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsListRowTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n data[\"value\"] = this.value !== undefined ? this.value : null;\r\n data[\"update\"] = this.update !== undefined ? this.update : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Traduzione di una riga della lista di traduzioni */\r\nexport interface ITranslationsListRowTranslation {\r\n language?: ELingua;\r\n value?: string;\r\n update?: string | null;\r\n}\r\n\r\n/** Classe base per la REQUEST della lista di traduzioni */\r\nexport class TranslationsListRequest extends NrTableRequest implements ITranslationsListRequest {\r\n term?: string | null;\r\n notTranslatedIn?: ELingua | null;\r\n lastLanguageUpdate?: TranslationsLastLanguageUpdate | null;\r\n automated?: boolean | null;\r\n toBeUpdatedIn?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.notTranslatedIn = _data[\"notTranslatedIn\"] !== undefined ? _data[\"notTranslatedIn\"] : null;\r\n this.lastLanguageUpdate = _data[\"lastLanguageUpdate\"] ? TranslationsLastLanguageUpdate.fromJS(_data[\"lastLanguageUpdate\"]) : null;\r\n this.automated = _data[\"automated\"] !== undefined ? _data[\"automated\"] : null;\r\n this.toBeUpdatedIn = _data[\"toBeUpdatedIn\"] !== undefined ? _data[\"toBeUpdatedIn\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"notTranslatedIn\"] = this.notTranslatedIn !== undefined ? this.notTranslatedIn : null;\r\n data[\"lastLanguageUpdate\"] = this.lastLanguageUpdate ? this.lastLanguageUpdate.toJSON() : null;\r\n data[\"automated\"] = this.automated !== undefined ? this.automated : null;\r\n data[\"toBeUpdatedIn\"] = this.toBeUpdatedIn !== undefined ? this.toBeUpdatedIn : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe base per la REQUEST della lista di traduzioni */\r\nexport interface ITranslationsListRequest extends INrTableRequest {\r\n term?: string | null;\r\n notTranslatedIn?: ELingua | null;\r\n lastLanguageUpdate?: TranslationsLastLanguageUpdate | null;\r\n automated?: boolean | null;\r\n toBeUpdatedIn?: ELingua | null;\r\n}\r\n\r\n/** Ultimo aggiornamento lingua per la REQUEST */\r\nexport class TranslationsLastLanguageUpdate implements ITranslationsLastLanguageUpdate {\r\n language?: ELingua | null;\r\n lastModify?: string | null;\r\n\r\n constructor(data?: ITranslationsLastLanguageUpdate) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n this.lastModify = _data[\"lastModify\"] !== undefined ? _data[\"lastModify\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsLastLanguageUpdate {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsLastLanguageUpdate();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n data[\"lastModify\"] = this.lastModify !== undefined ? this.lastModify : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Ultimo aggiornamento lingua per la REQUEST */\r\nexport interface ITranslationsLastLanguageUpdate {\r\n language?: ELingua | null;\r\n lastModify?: string | null;\r\n}\r\n\r\nexport class TranslationsArticlesTranslateResponse extends OkApiResponse implements ITranslationsArticlesTranslateResponse {\r\n translatedText?: string | null;\r\n translatedTitle?: string | null;\r\n language?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsArticlesTranslateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.translatedText = _data[\"translatedText\"] !== undefined ? _data[\"translatedText\"] : null;\r\n this.translatedTitle = _data[\"translatedTitle\"] !== undefined ? _data[\"translatedTitle\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsArticlesTranslateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsArticlesTranslateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"translatedText\"] = this.translatedText !== undefined ? this.translatedText : null;\r\n data[\"translatedTitle\"] = this.translatedTitle !== undefined ? this.translatedTitle : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsArticlesTranslateResponse extends IOkApiResponse {\r\n translatedText?: string | null;\r\n translatedTitle?: string | null;\r\n language?: ELingua | null;\r\n}\r\n\r\nexport class TranslationsArticlesTranslateRequest extends ApiRequest implements ITranslationsArticlesTranslateRequest {\r\n articleID?: number;\r\n from?: ELingua;\r\n to?: ELingua;\r\n\r\n constructor(data?: ITranslationsArticlesTranslateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articleID = _data[\"articleID\"] !== undefined ? _data[\"articleID\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsArticlesTranslateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsArticlesTranslateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articleID\"] = this.articleID !== undefined ? this.articleID : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsArticlesTranslateRequest extends IApiRequest {\r\n articleID?: number;\r\n from?: ELingua;\r\n to?: ELingua;\r\n}\r\n\r\nexport class TranslationsArticlesTranslateTextResponse extends OkApiResponse implements ITranslationsArticlesTranslateTextResponse {\r\n translatedText?: string | null;\r\n translatedTitle?: string | null;\r\n language?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsArticlesTranslateTextResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.translatedText = _data[\"translatedText\"] !== undefined ? _data[\"translatedText\"] : null;\r\n this.translatedTitle = _data[\"translatedTitle\"] !== undefined ? _data[\"translatedTitle\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsArticlesTranslateTextResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsArticlesTranslateTextResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"translatedText\"] = this.translatedText !== undefined ? this.translatedText : null;\r\n data[\"translatedTitle\"] = this.translatedTitle !== undefined ? this.translatedTitle : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsArticlesTranslateTextResponse extends IOkApiResponse {\r\n translatedText?: string | null;\r\n translatedTitle?: string | null;\r\n language?: ELingua | null;\r\n}\r\n\r\nexport class TranslationsArticlesTranslateTextRequest extends ApiRequest implements ITranslationsArticlesTranslateTextRequest {\r\n title?: string;\r\n text?: string;\r\n from?: ELingua;\r\n to?: ELingua;\r\n\r\n constructor(data?: ITranslationsArticlesTranslateTextRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsArticlesTranslateTextRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsArticlesTranslateTextRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsArticlesTranslateTextRequest extends IApiRequest {\r\n title?: string;\r\n text?: string;\r\n from?: ELingua;\r\n to?: ELingua;\r\n}\r\n\r\nexport class NrTableResponseOfTranslationsLocationRow extends OkApiResponse implements INrTableResponseOfTranslationsLocationRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsLocationRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTranslationsLocationRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TranslationsLocationRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTranslationsLocationRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTranslationsLocationRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTranslationsLocationRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsLocationRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class TranslationsLocationsListResponse extends NrTableResponseOfTranslationsLocationRow implements ITranslationsLocationsListResponse {\r\n\r\n constructor(data?: ITranslationsLocationsListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): TranslationsLocationsListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsLocationsListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsLocationsListResponse extends INrTableResponseOfTranslationsLocationRow {\r\n}\r\n\r\nexport class TranslationsLocationRow implements ITranslationsLocationRow {\r\n luogoID?: number;\r\n ultimoAggiornamento?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n lingueDisponibili?: ELingua[] | null;\r\n traduzioni?: IWebTranslationEntity[];\r\n\r\n constructor(data?: ITranslationsLocationRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n if (Array.isArray(_data[\"lingueDisponibili\"])) {\r\n this.lingueDisponibili = [] as any;\r\n for (let item of _data[\"lingueDisponibili\"])\r\n this.lingueDisponibili!.push(item);\r\n }\r\n else {\r\n this.lingueDisponibili = null;\r\n }\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsLocationRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsLocationRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n if (Array.isArray(this.lingueDisponibili)) {\r\n data[\"lingueDisponibili\"] = [];\r\n for (let item of this.lingueDisponibili)\r\n data[\"lingueDisponibili\"].push(item);\r\n }\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsLocationRow {\r\n luogoID?: number;\r\n ultimoAggiornamento?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n lingueDisponibili?: ELingua[] | null;\r\n traduzioni?: IWebTranslationEntity[];\r\n}\r\n\r\nexport class TranslationsLocationsListRequest extends NrTableRequest implements ITranslationsLocationsListRequest {\r\n term?: string | null;\r\n lastModify?: string | null;\r\n automated?: boolean | null;\r\n languageLastUpdate?: TranslationsLastLanguageUpdate | null;\r\n notTranslated?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsLocationsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.lastModify = _data[\"lastModify\"] !== undefined ? _data[\"lastModify\"] : null;\r\n this.automated = _data[\"automated\"] !== undefined ? _data[\"automated\"] : null;\r\n this.languageLastUpdate = _data[\"languageLastUpdate\"] ? TranslationsLastLanguageUpdate.fromJS(_data[\"languageLastUpdate\"]) : null;\r\n this.notTranslated = _data[\"notTranslated\"] !== undefined ? _data[\"notTranslated\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsLocationsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsLocationsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"lastModify\"] = this.lastModify !== undefined ? this.lastModify : null;\r\n data[\"automated\"] = this.automated !== undefined ? this.automated : null;\r\n data[\"languageLastUpdate\"] = this.languageLastUpdate ? this.languageLastUpdate.toJSON() : null;\r\n data[\"notTranslated\"] = this.notTranslated !== undefined ? this.notTranslated : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsLocationsListRequest extends INrTableRequest {\r\n term?: string | null;\r\n lastModify?: string | null;\r\n automated?: boolean | null;\r\n languageLastUpdate?: TranslationsLastLanguageUpdate | null;\r\n notTranslated?: ELingua | null;\r\n}\r\n\r\nexport class NrTableResponseOfTranslationsPhraseRow extends OkApiResponse implements INrTableResponseOfTranslationsPhraseRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsPhraseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTranslationsPhraseRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TranslationsPhraseRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTranslationsPhraseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTranslationsPhraseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTranslationsPhraseRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsPhraseRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class TranslationsPhraseRow extends TranslationsListRow implements ITranslationsPhraseRow {\r\n text?: string | null;\r\n\r\n constructor(data?: ITranslationsPhraseRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsPhraseRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsPhraseRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsPhraseRow extends ITranslationsListRow {\r\n text?: string | null;\r\n}\r\n\r\nexport class TranslationsPhrasesTranslateResponse extends OkApiResponse implements ITranslationsPhrasesTranslateResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsPhrasesTranslateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.translation = _data[\"translation\"] !== undefined ? _data[\"translation\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsPhrasesTranslateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsPhrasesTranslateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"translation\"] = this.translation !== undefined ? this.translation : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsPhrasesTranslateResponse extends IOkApiResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n}\r\n\r\nexport class TranslationsPhrasesTranslateRequest extends ApiRequest implements ITranslationsPhrasesTranslateRequest {\r\n phraseID?: number;\r\n from?: ELingua;\r\n to?: ELingua;\r\n\r\n constructor(data?: ITranslationsPhrasesTranslateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.phraseID = _data[\"phraseID\"] !== undefined ? _data[\"phraseID\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsPhrasesTranslateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsPhrasesTranslateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"phraseID\"] = this.phraseID !== undefined ? this.phraseID : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsPhrasesTranslateRequest extends IApiRequest {\r\n phraseID?: number;\r\n from?: ELingua;\r\n to?: ELingua;\r\n}\r\n\r\nexport class TranslationsPhrasesTranslateTextResponse extends OkApiResponse implements ITranslationsPhrasesTranslateTextResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsPhrasesTranslateTextResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.translation = _data[\"translation\"] !== undefined ? _data[\"translation\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsPhrasesTranslateTextResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsPhrasesTranslateTextResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"translation\"] = this.translation !== undefined ? this.translation : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsPhrasesTranslateTextResponse extends IOkApiResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n}\r\n\r\nexport class TranslationsPhrasesTranslateTextRequest extends ApiRequest implements ITranslationsPhrasesTranslateTextRequest {\r\n text?: string;\r\n from?: ELingua;\r\n to?: ELingua;\r\n\r\n constructor(data?: ITranslationsPhrasesTranslateTextRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsPhrasesTranslateTextRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsPhrasesTranslateTextRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsPhrasesTranslateTextRequest extends IApiRequest {\r\n text?: string;\r\n from?: ELingua;\r\n to?: ELingua;\r\n}\r\n\r\nexport class NrTableResponseOfTranslationsServicesRow extends OkApiResponse implements INrTableResponseOfTranslationsServicesRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsServicesRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTranslationsServicesRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TranslationsServicesRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTranslationsServicesRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTranslationsServicesRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTranslationsServicesRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TranslationsServicesRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class TranslationsServicesListResponse extends NrTableResponseOfTranslationsServicesRow implements ITranslationsServicesListResponse {\r\n\r\n constructor(data?: ITranslationsServicesListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): TranslationsServicesListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsServicesListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsServicesListResponse extends INrTableResponseOfTranslationsServicesRow {\r\n}\r\n\r\nexport class TranslationsServicesRow implements ITranslationsServicesRow {\r\n servizioID?: number;\r\n ultimoAggiornamento?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n lingueDisponibili?: ELingua[] | null;\r\n traduzioni?: IWebTranslationEntity[];\r\n\r\n constructor(data?: ITranslationsServicesRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.ultimoAggiornamento = _data[\"ultimoAggiornamento\"] !== undefined ? _data[\"ultimoAggiornamento\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n if (Array.isArray(_data[\"lingueDisponibili\"])) {\r\n this.lingueDisponibili = [] as any;\r\n for (let item of _data[\"lingueDisponibili\"])\r\n this.lingueDisponibili!.push(item);\r\n }\r\n else {\r\n this.lingueDisponibili = null;\r\n }\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsServicesRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsServicesRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"ultimoAggiornamento\"] = this.ultimoAggiornamento !== undefined ? this.ultimoAggiornamento : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n if (Array.isArray(this.lingueDisponibili)) {\r\n data[\"lingueDisponibili\"] = [];\r\n for (let item of this.lingueDisponibili)\r\n data[\"lingueDisponibili\"].push(item);\r\n }\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsServicesRow {\r\n servizioID?: number;\r\n ultimoAggiornamento?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n lingueDisponibili?: ELingua[] | null;\r\n traduzioni?: IWebTranslationEntity[];\r\n}\r\n\r\nexport class TranslationsServicesListRequest extends NrTableRequest implements ITranslationsServicesListRequest {\r\n term?: string | null;\r\n lastModify?: string | null;\r\n automated?: boolean | null;\r\n languageLastUpdate?: TranslationsLastLanguageUpdate | null;\r\n notTranslated?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsServicesListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.lastModify = _data[\"lastModify\"] !== undefined ? _data[\"lastModify\"] : null;\r\n this.automated = _data[\"automated\"] !== undefined ? _data[\"automated\"] : null;\r\n this.languageLastUpdate = _data[\"languageLastUpdate\"] ? TranslationsLastLanguageUpdate.fromJS(_data[\"languageLastUpdate\"]) : null;\r\n this.notTranslated = _data[\"notTranslated\"] !== undefined ? _data[\"notTranslated\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsServicesListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsServicesListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"lastModify\"] = this.lastModify !== undefined ? this.lastModify : null;\r\n data[\"automated\"] = this.automated !== undefined ? this.automated : null;\r\n data[\"languageLastUpdate\"] = this.languageLastUpdate ? this.languageLastUpdate.toJSON() : null;\r\n data[\"notTranslated\"] = this.notTranslated !== undefined ? this.notTranslated : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsServicesListRequest extends INrTableRequest {\r\n term?: string | null;\r\n lastModify?: string | null;\r\n automated?: boolean | null;\r\n languageLastUpdate?: TranslationsLastLanguageUpdate | null;\r\n notTranslated?: ELingua | null;\r\n}\r\n\r\nexport class TranslationsServiceTranslateResponse extends OkApiResponse implements ITranslationsServiceTranslateResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsServiceTranslateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.translation = _data[\"translation\"] !== undefined ? _data[\"translation\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsServiceTranslateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsServiceTranslateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"translation\"] = this.translation !== undefined ? this.translation : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsServiceTranslateResponse extends IOkApiResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n}\r\n\r\nexport class TranslationsServiceTranslateRequest extends ApiRequest implements ITranslationsServiceTranslateRequest {\r\n serviceID?: number;\r\n from?: ELingua;\r\n to?: ELingua;\r\n\r\n constructor(data?: ITranslationsServiceTranslateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsServiceTranslateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsServiceTranslateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsServiceTranslateRequest extends IApiRequest {\r\n serviceID?: number;\r\n from?: ELingua;\r\n to?: ELingua;\r\n}\r\n\r\nexport class TranslationsTranslateResponse extends OkApiResponse implements ITranslationsTranslateResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n\r\n constructor(data?: ITranslationsTranslateResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.translation = _data[\"translation\"] !== undefined ? _data[\"translation\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsTranslateResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsTranslateResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"translation\"] = this.translation !== undefined ? this.translation : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsTranslateResponse extends IOkApiResponse {\r\n translation?: string | null;\r\n language?: ELingua | null;\r\n}\r\n\r\nexport class TranslationsTranslateRequest extends ApiRequest implements ITranslationsTranslateRequest {\r\n message?: string;\r\n from?: ELingua;\r\n to?: ELingua;\r\n\r\n constructor(data?: ITranslationsTranslateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n this.from = _data[\"from\"] !== undefined ? _data[\"from\"] : null;\r\n this.to = _data[\"to\"] !== undefined ? _data[\"to\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TranslationsTranslateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TranslationsTranslateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n data[\"from\"] = this.from !== undefined ? this.from : null;\r\n data[\"to\"] = this.to !== undefined ? this.to : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITranslationsTranslateRequest extends IApiRequest {\r\n message?: string;\r\n from?: ELingua;\r\n to?: ELingua;\r\n}\r\n\r\nexport class WebTranslatableGetResponse extends OkApiResponse implements IWebTranslatableGetResponse {\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n\r\n constructor(data?: IWebTranslatableGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(IWebTranslationEntity.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n this.lastUpdate = _data[\"lastUpdate\"] !== undefined ? _data[\"lastUpdate\"] : null;\r\n this.lastUpdate_en = _data[\"lastUpdate_en\"] !== undefined ? _data[\"lastUpdate_en\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebTranslatableGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebTranslatableGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n data[\"lastUpdate\"] = this.lastUpdate !== undefined ? this.lastUpdate : null;\r\n data[\"lastUpdate_en\"] = this.lastUpdate_en !== undefined ? this.lastUpdate_en : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebTranslatableGetResponse extends IOkApiResponse {\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n traduzioni?: IWebTranslationEntity[] | null;\r\n lastUpdate?: string | null;\r\n lastUpdate_en?: string | null;\r\n confirmed?: boolean | null;\r\n confirmed_en?: boolean | null;\r\n}\r\n\r\nexport class WebTranslatableGetRequest extends LocalizedRequest implements IWebTranslatableGetRequest {\r\n id?: number;\r\n table?: string | null;\r\n\r\n constructor(data?: IWebTranslatableGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebTranslatableGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebTranslatableGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebTranslatableGetRequest extends ILocalizedRequest {\r\n id?: number;\r\n table?: string | null;\r\n}\r\n\r\nexport class NrTableResponseOfAPI_Website_translationsGetRow extends OkApiResponse implements INrTableResponseOfAPI_Website_translationsGetRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: API_Website_translationsGetRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfAPI_Website_translationsGetRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(API_Website_translationsGetRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfAPI_Website_translationsGetRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfAPI_Website_translationsGetRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfAPI_Website_translationsGetRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: API_Website_translationsGetRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class API_Website_translationsGetRow implements IAPI_Website_translationsGetRow {\r\n id?: number;\r\n category?: string | null;\r\n englishName?: string | null;\r\n translated?: number;\r\n languageName?: string | null;\r\n info?: string | null;\r\n dateUpdated?: string | null;\r\n dateUpdatedLingua?: string | null;\r\n isTranslated?: boolean;\r\n\r\n constructor(data?: IAPI_Website_translationsGetRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.category = _data[\"category\"] !== undefined ? _data[\"category\"] : null;\r\n this.englishName = _data[\"englishName\"] !== undefined ? _data[\"englishName\"] : null;\r\n this.translated = _data[\"translated\"] !== undefined ? _data[\"translated\"] : null;\r\n this.languageName = _data[\"languageName\"] !== undefined ? _data[\"languageName\"] : null;\r\n this.info = _data[\"info\"] !== undefined ? _data[\"info\"] : null;\r\n this.dateUpdated = _data[\"dateUpdated\"] !== undefined ? _data[\"dateUpdated\"] : null;\r\n this.dateUpdatedLingua = _data[\"dateUpdatedLingua\"] !== undefined ? _data[\"dateUpdatedLingua\"] : null;\r\n this.isTranslated = _data[\"isTranslated\"] !== undefined ? _data[\"isTranslated\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): API_Website_translationsGetRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new API_Website_translationsGetRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"category\"] = this.category !== undefined ? this.category : null;\r\n data[\"englishName\"] = this.englishName !== undefined ? this.englishName : null;\r\n data[\"translated\"] = this.translated !== undefined ? this.translated : null;\r\n data[\"languageName\"] = this.languageName !== undefined ? this.languageName : null;\r\n data[\"info\"] = this.info !== undefined ? this.info : null;\r\n data[\"dateUpdated\"] = this.dateUpdated !== undefined ? this.dateUpdated : null;\r\n data[\"dateUpdatedLingua\"] = this.dateUpdatedLingua !== undefined ? this.dateUpdatedLingua : null;\r\n data[\"isTranslated\"] = this.isTranslated !== undefined ? this.isTranslated : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAPI_Website_translationsGetRow {\r\n id?: number;\r\n category?: string | null;\r\n englishName?: string | null;\r\n translated?: number;\r\n languageName?: string | null;\r\n info?: string | null;\r\n dateUpdated?: string | null;\r\n dateUpdatedLingua?: string | null;\r\n isTranslated?: boolean;\r\n}\r\n\r\n/** for LUOGHI, SERVIZI, DATI_AGG_SERVIZI show places entity and set @idluogo for LUOGHI, SERVIZI show countries entities and set @idpaese for LUOGHI show placetypes entities and set @idcategory for SERVIZI show servicetype entities and set @idcategory */\r\nexport class WebTranslatableListRequest extends NrTableRequest implements IWebTranslatableListRequest {\r\n tableName?: string;\r\n text?: string;\r\n language?: ELingua;\r\n toBeUpdated?: boolean;\r\n idLocation?: number | null;\r\n idCountry?: number | null;\r\n idCategory?: number | null;\r\n\r\n constructor(data?: IWebTranslatableListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tableName = _data[\"tableName\"] !== undefined ? _data[\"tableName\"] : null;\r\n this.text = _data[\"text\"] !== undefined ? _data[\"text\"] : null;\r\n this.language = _data[\"language\"] !== undefined ? _data[\"language\"] : null;\r\n this.toBeUpdated = _data[\"toBeUpdated\"] !== undefined ? _data[\"toBeUpdated\"] : null;\r\n this.idLocation = _data[\"idLocation\"] !== undefined ? _data[\"idLocation\"] : null;\r\n this.idCountry = _data[\"idCountry\"] !== undefined ? _data[\"idCountry\"] : null;\r\n this.idCategory = _data[\"idCategory\"] !== undefined ? _data[\"idCategory\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebTranslatableListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebTranslatableListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tableName\"] = this.tableName !== undefined ? this.tableName : null;\r\n data[\"text\"] = this.text !== undefined ? this.text : null;\r\n data[\"language\"] = this.language !== undefined ? this.language : null;\r\n data[\"toBeUpdated\"] = this.toBeUpdated !== undefined ? this.toBeUpdated : null;\r\n data[\"idLocation\"] = this.idLocation !== undefined ? this.idLocation : null;\r\n data[\"idCountry\"] = this.idCountry !== undefined ? this.idCountry : null;\r\n data[\"idCategory\"] = this.idCategory !== undefined ? this.idCategory : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\n/** for LUOGHI, SERVIZI, DATI_AGG_SERVIZI show places entity and set @idluogo for LUOGHI, SERVIZI show countries entities and set @idpaese for LUOGHI show placetypes entities and set @idcategory for SERVIZI show servicetype entities and set @idcategory */\r\nexport interface IWebTranslatableListRequest extends INrTableRequest {\r\n tableName?: string;\r\n text?: string;\r\n language?: ELingua;\r\n toBeUpdated?: boolean;\r\n idLocation?: number | null;\r\n idCountry?: number | null;\r\n idCategory?: number | null;\r\n}\r\n\r\nexport class WebTranslatableUpdateRequest extends LocalizedRequest implements IWebTranslatableUpdateRequest {\r\n id?: number;\r\n table?: string | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n confirmed_en?: boolean | null;\r\n traduzioni?: WebTranslation[] | null;\r\n\r\n constructor(data?: IWebTranslatableUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.table = _data[\"table\"] !== undefined ? _data[\"table\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nome_en = _data[\"nome_en\"] !== undefined ? _data[\"nome_en\"] : null;\r\n this.confirmed_en = _data[\"confirmed_en\"] !== undefined ? _data[\"confirmed_en\"] : null;\r\n if (Array.isArray(_data[\"traduzioni\"])) {\r\n this.traduzioni = [] as any;\r\n for (let item of _data[\"traduzioni\"])\r\n this.traduzioni!.push(WebTranslation.fromJS(item));\r\n }\r\n else {\r\n this.traduzioni = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebTranslatableUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebTranslatableUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"table\"] = this.table !== undefined ? this.table : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nome_en\"] = this.nome_en !== undefined ? this.nome_en : null;\r\n data[\"confirmed_en\"] = this.confirmed_en !== undefined ? this.confirmed_en : null;\r\n if (Array.isArray(this.traduzioni)) {\r\n data[\"traduzioni\"] = [];\r\n for (let item of this.traduzioni)\r\n data[\"traduzioni\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebTranslatableUpdateRequest extends ILocalizedRequest {\r\n id?: number;\r\n table?: string | null;\r\n nome?: string | null;\r\n nome_en?: string | null;\r\n confirmed_en?: boolean | null;\r\n traduzioni?: WebTranslation[] | null;\r\n}\r\n\r\nexport class AddCameraHashcodeRequest extends TripGetRequest implements IAddCameraHashcodeRequest {\r\n dati!: string;\r\n /** ID della tappa */\r\n stepID?: number;\r\n\r\n constructor(data?: IAddCameraHashcodeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.dati = _data[\"dati\"] !== undefined ? _data[\"dati\"] : null;\r\n this.stepID = _data[\"stepID\"] !== undefined ? _data[\"stepID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddCameraHashcodeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddCameraHashcodeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dati\"] = this.dati !== undefined ? this.dati : null;\r\n data[\"stepID\"] = this.stepID !== undefined ? this.stepID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddCameraHashcodeRequest extends ITripGetRequest {\r\n dati: string;\r\n /** ID della tappa */\r\n stepID?: number;\r\n}\r\n\r\nexport class AddServiziRequest extends TripGetRequest implements IAddServiziRequest {\r\n /** Servizi i cui search data sono da recuperare dal pricer */\r\n servizi?: DatiServizioAdd[] | null;\r\n /** Servizi i cui search data siano già noti */\r\n serviziSearch?: ServizioDaAggiungere[] | null;\r\n\r\n constructor(data?: IAddServiziRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(DatiServizioAdd.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n if (Array.isArray(_data[\"serviziSearch\"])) {\r\n this.serviziSearch = [] as any;\r\n for (let item of _data[\"serviziSearch\"])\r\n this.serviziSearch!.push(ServizioDaAggiungere.fromJS(item));\r\n }\r\n else {\r\n this.serviziSearch = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddServiziRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddServiziRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.serviziSearch)) {\r\n data[\"serviziSearch\"] = [];\r\n for (let item of this.serviziSearch)\r\n data[\"serviziSearch\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddServiziRequest extends ITripGetRequest {\r\n /** Servizi i cui search data sono da recuperare dal pricer */\r\n servizi?: DatiServizioAdd[] | null;\r\n /** Servizi i cui search data siano già noti */\r\n serviziSearch?: ServizioDaAggiungere[] | null;\r\n}\r\n\r\nexport class DatiServizioAdd implements IDatiServizioAdd {\r\n jobID!: string;\r\n resultID!: string;\r\n serviceID!: number;\r\n typeID!: number;\r\n supplierID?: number;\r\n departureID?: number | null;\r\n optionID?: number | null;\r\n optionItemID?: number | null;\r\n clienteID?: number | null;\r\n tappaID?: number;\r\n supplementi?: DatiOpzioneAdd[] | null;\r\n paxIds?: number[] | null;\r\n nomeGruppoCustom?: string | null;\r\n usaHashcode?: boolean;\r\n\r\n constructor(data?: IDatiServizioAdd) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n this.typeID = _data[\"typeID\"] !== undefined ? _data[\"typeID\"] : null;\r\n this.supplierID = _data[\"supplierID\"] !== undefined ? _data[\"supplierID\"] : null;\r\n this.departureID = _data[\"departureID\"] !== undefined ? _data[\"departureID\"] : null;\r\n this.optionID = _data[\"optionID\"] !== undefined ? _data[\"optionID\"] : null;\r\n this.optionItemID = _data[\"optionItemID\"] !== undefined ? _data[\"optionItemID\"] : null;\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n this.tappaID = _data[\"tappaID\"] !== undefined ? _data[\"tappaID\"] : null;\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(DatiOpzioneAdd.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n if (Array.isArray(_data[\"paxIds\"])) {\r\n this.paxIds = [] as any;\r\n for (let item of _data[\"paxIds\"])\r\n this.paxIds!.push(item);\r\n }\r\n else {\r\n this.paxIds = null;\r\n }\r\n this.nomeGruppoCustom = _data[\"nomeGruppoCustom\"] !== undefined ? _data[\"nomeGruppoCustom\"] : null;\r\n this.usaHashcode = _data[\"usaHashcode\"] !== undefined ? _data[\"usaHashcode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatiServizioAdd {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatiServizioAdd();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n data[\"typeID\"] = this.typeID !== undefined ? this.typeID : null;\r\n data[\"supplierID\"] = this.supplierID !== undefined ? this.supplierID : null;\r\n data[\"departureID\"] = this.departureID !== undefined ? this.departureID : null;\r\n data[\"optionID\"] = this.optionID !== undefined ? this.optionID : null;\r\n data[\"optionItemID\"] = this.optionItemID !== undefined ? this.optionItemID : null;\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n data[\"tappaID\"] = this.tappaID !== undefined ? this.tappaID : null;\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.paxIds)) {\r\n data[\"paxIds\"] = [];\r\n for (let item of this.paxIds)\r\n data[\"paxIds\"].push(item);\r\n }\r\n data[\"nomeGruppoCustom\"] = this.nomeGruppoCustom !== undefined ? this.nomeGruppoCustom : null;\r\n data[\"usaHashcode\"] = this.usaHashcode !== undefined ? this.usaHashcode : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatiServizioAdd {\r\n jobID: string;\r\n resultID: string;\r\n serviceID: number;\r\n typeID: number;\r\n supplierID?: number;\r\n departureID?: number | null;\r\n optionID?: number | null;\r\n optionItemID?: number | null;\r\n clienteID?: number | null;\r\n tappaID?: number;\r\n supplementi?: DatiOpzioneAdd[] | null;\r\n paxIds?: number[] | null;\r\n nomeGruppoCustom?: string | null;\r\n usaHashcode?: boolean;\r\n}\r\n\r\nexport class DatiOpzioneAdd implements IDatiOpzioneAdd {\r\n optionID?: number;\r\n optionItemID?: number;\r\n\r\n constructor(data?: IDatiOpzioneAdd) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.optionID = _data[\"optionID\"] !== undefined ? _data[\"optionID\"] : null;\r\n this.optionItemID = _data[\"optionItemID\"] !== undefined ? _data[\"optionItemID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DatiOpzioneAdd {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DatiOpzioneAdd();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"optionID\"] = this.optionID !== undefined ? this.optionID : null;\r\n data[\"optionItemID\"] = this.optionItemID !== undefined ? this.optionItemID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDatiOpzioneAdd {\r\n optionID?: number;\r\n optionItemID?: number;\r\n}\r\n\r\nexport class ServizioDaAggiungere implements IServizioDaAggiungere {\r\n dati?: ServiceSearchData | null;\r\n tappaID?: number;\r\n clienteID?: number | null;\r\n supplementi?: ServizioDaAggiungere[] | null;\r\n paxIds?: number[] | null;\r\n nomeGruppoCustom?: string | null;\r\n usaHashcode?: boolean;\r\n\r\n constructor(data?: IServizioDaAggiungere) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dati = _data[\"dati\"] ? ServiceSearchData.fromJS(_data[\"dati\"]) : null;\r\n this.tappaID = _data[\"tappaID\"] !== undefined ? _data[\"tappaID\"] : null;\r\n this.clienteID = _data[\"clienteID\"] !== undefined ? _data[\"clienteID\"] : null;\r\n if (Array.isArray(_data[\"supplementi\"])) {\r\n this.supplementi = [] as any;\r\n for (let item of _data[\"supplementi\"])\r\n this.supplementi!.push(ServizioDaAggiungere.fromJS(item));\r\n }\r\n else {\r\n this.supplementi = null;\r\n }\r\n if (Array.isArray(_data[\"paxIds\"])) {\r\n this.paxIds = [] as any;\r\n for (let item of _data[\"paxIds\"])\r\n this.paxIds!.push(item);\r\n }\r\n else {\r\n this.paxIds = null;\r\n }\r\n this.nomeGruppoCustom = _data[\"nomeGruppoCustom\"] !== undefined ? _data[\"nomeGruppoCustom\"] : null;\r\n this.usaHashcode = _data[\"usaHashcode\"] !== undefined ? _data[\"usaHashcode\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ServizioDaAggiungere {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ServizioDaAggiungere();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dati\"] = this.dati ? this.dati.toJSON() : null;\r\n data[\"tappaID\"] = this.tappaID !== undefined ? this.tappaID : null;\r\n data[\"clienteID\"] = this.clienteID !== undefined ? this.clienteID : null;\r\n if (Array.isArray(this.supplementi)) {\r\n data[\"supplementi\"] = [];\r\n for (let item of this.supplementi)\r\n data[\"supplementi\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.paxIds)) {\r\n data[\"paxIds\"] = [];\r\n for (let item of this.paxIds)\r\n data[\"paxIds\"].push(item);\r\n }\r\n data[\"nomeGruppoCustom\"] = this.nomeGruppoCustom !== undefined ? this.nomeGruppoCustom : null;\r\n data[\"usaHashcode\"] = this.usaHashcode !== undefined ? this.usaHashcode : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IServizioDaAggiungere {\r\n dati?: ServiceSearchData | null;\r\n tappaID?: number;\r\n clienteID?: number | null;\r\n supplementi?: ServizioDaAggiungere[] | null;\r\n paxIds?: number[] | null;\r\n nomeGruppoCustom?: string | null;\r\n usaHashcode?: boolean;\r\n}\r\n\r\nexport class AddServizioAutomaticoRequest extends TripGetRequest implements IAddServizioAutomaticoRequest {\r\n servizioAutomatico?: EServizioAutomatico;\r\n importo?: number | null;\r\n abbinamentoID?: number | null;\r\n paxIDs?: number[] | null;\r\n /** Se true per i servizi che lo supportano richiede che l'aggiornamento sia manuale */\r\n aggiornamentoManuale?: boolean;\r\n\r\n constructor(data?: IAddServizioAutomaticoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioAutomatico = _data[\"servizioAutomatico\"] !== undefined ? _data[\"servizioAutomatico\"] : null;\r\n this.importo = _data[\"importo\"] !== undefined ? _data[\"importo\"] : null;\r\n this.abbinamentoID = _data[\"abbinamentoID\"] !== undefined ? _data[\"abbinamentoID\"] : null;\r\n if (Array.isArray(_data[\"paxIDs\"])) {\r\n this.paxIDs = [] as any;\r\n for (let item of _data[\"paxIDs\"])\r\n this.paxIDs!.push(item);\r\n }\r\n else {\r\n this.paxIDs = null;\r\n }\r\n this.aggiornamentoManuale = _data[\"aggiornamentoManuale\"] !== undefined ? _data[\"aggiornamentoManuale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddServizioAutomaticoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddServizioAutomaticoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioAutomatico\"] = this.servizioAutomatico !== undefined ? this.servizioAutomatico : null;\r\n data[\"importo\"] = this.importo !== undefined ? this.importo : null;\r\n data[\"abbinamentoID\"] = this.abbinamentoID !== undefined ? this.abbinamentoID : null;\r\n if (Array.isArray(this.paxIDs)) {\r\n data[\"paxIDs\"] = [];\r\n for (let item of this.paxIDs)\r\n data[\"paxIDs\"].push(item);\r\n }\r\n data[\"aggiornamentoManuale\"] = this.aggiornamentoManuale !== undefined ? this.aggiornamentoManuale : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddServizioAutomaticoRequest extends ITripGetRequest {\r\n servizioAutomatico?: EServizioAutomatico;\r\n importo?: number | null;\r\n abbinamentoID?: number | null;\r\n paxIDs?: number[] | null;\r\n /** Se true per i servizi che lo supportano richiede che l'aggiornamento sia manuale */\r\n aggiornamentoManuale?: boolean;\r\n}\r\n\r\nexport class AddServizioMacroRequest extends TripGetRequest implements IAddServizioMacroRequest {\r\n jobID!: string;\r\n resultID!: string;\r\n serviceID!: number;\r\n typeID!: number;\r\n tappaID!: number;\r\n nomeGruppoCustom?: string | null;\r\n\r\n constructor(data?: IAddServizioMacroRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.resultID = _data[\"resultID\"] !== undefined ? _data[\"resultID\"] : null;\r\n this.serviceID = _data[\"serviceID\"] !== undefined ? _data[\"serviceID\"] : null;\r\n this.typeID = _data[\"typeID\"] !== undefined ? _data[\"typeID\"] : null;\r\n this.tappaID = _data[\"tappaID\"] !== undefined ? _data[\"tappaID\"] : null;\r\n this.nomeGruppoCustom = _data[\"nomeGruppoCustom\"] !== undefined ? _data[\"nomeGruppoCustom\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddServizioMacroRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddServizioMacroRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"resultID\"] = this.resultID !== undefined ? this.resultID : null;\r\n data[\"serviceID\"] = this.serviceID !== undefined ? this.serviceID : null;\r\n data[\"typeID\"] = this.typeID !== undefined ? this.typeID : null;\r\n data[\"tappaID\"] = this.tappaID !== undefined ? this.tappaID : null;\r\n data[\"nomeGruppoCustom\"] = this.nomeGruppoCustom !== undefined ? this.nomeGruppoCustom : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddServizioMacroRequest extends ITripGetRequest {\r\n jobID: string;\r\n resultID: string;\r\n serviceID: number;\r\n typeID: number;\r\n tappaID: number;\r\n nomeGruppoCustom?: string | null;\r\n}\r\n\r\nexport class AvviaCompletamentoResponse extends OkApiResponse implements IAvviaCompletamentoResponse {\r\n autofillResponse?: AutofillResponse;\r\n\r\n constructor(data?: IAvviaCompletamentoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.autofillResponse = _data[\"autofillResponse\"] ? AutofillResponse.fromJS(_data[\"autofillResponse\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AvviaCompletamentoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AvviaCompletamentoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"autofillResponse\"] = this.autofillResponse ? this.autofillResponse.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAvviaCompletamentoResponse extends IOkApiResponse {\r\n autofillResponse?: AutofillResponse;\r\n}\r\n\r\nexport class AutofillResponse implements IAutofillResponse {\r\n ok?: boolean;\r\n error?: string | null;\r\n jobID?: string | null;\r\n\r\n constructor(data?: IAutofillResponse) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.ok = _data[\"ok\"] !== undefined ? _data[\"ok\"] : null;\r\n this.error = _data[\"error\"] !== undefined ? _data[\"error\"] : null;\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutofillResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutofillResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ok\"] = this.ok !== undefined ? this.ok : null;\r\n data[\"error\"] = this.error !== undefined ? this.error : null;\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutofillResponse {\r\n ok?: boolean;\r\n error?: string | null;\r\n jobID?: string | null;\r\n}\r\n\r\nexport class AvviaCompletamentoRequest extends TripGetRequest implements IAvviaCompletamentoRequest {\r\n completaLand?: boolean;\r\n completaVoli?: boolean;\r\n\r\n constructor(data?: IAvviaCompletamentoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.completaLand = _data[\"completaLand\"] !== undefined ? _data[\"completaLand\"] : null;\r\n this.completaVoli = _data[\"completaVoli\"] !== undefined ? _data[\"completaVoli\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AvviaCompletamentoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AvviaCompletamentoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"completaLand\"] = this.completaLand !== undefined ? this.completaLand : null;\r\n data[\"completaVoli\"] = this.completaVoli !== undefined ? this.completaVoli : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAvviaCompletamentoRequest extends ITripGetRequest {\r\n completaLand?: boolean;\r\n completaVoli?: boolean;\r\n}\r\n\r\nexport class AvviaVerificaPrezziResponse extends OkApiResponse implements IAvviaVerificaPrezziResponse {\r\n priceVerifyRequestResult?: PriceVerifyRequestResult | null;\r\n\r\n constructor(data?: IAvviaVerificaPrezziResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.priceVerifyRequestResult = _data[\"priceVerifyRequestResult\"] ? PriceVerifyRequestResult.fromJS(_data[\"priceVerifyRequestResult\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AvviaVerificaPrezziResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AvviaVerificaPrezziResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"priceVerifyRequestResult\"] = this.priceVerifyRequestResult ? this.priceVerifyRequestResult.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAvviaVerificaPrezziResponse extends IOkApiResponse {\r\n priceVerifyRequestResult?: PriceVerifyRequestResult | null;\r\n}\r\n\r\nexport class PriceVerifyRequestResult implements IPriceVerifyRequestResult {\r\n result?: EPriceVerifyRequestResult;\r\n jobID?: string | null;\r\n error?: string | null;\r\n\r\n constructor(data?: IPriceVerifyRequestResult) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.result = _data[\"result\"] !== undefined ? _data[\"result\"] : null;\r\n this.jobID = _data[\"jobID\"] !== undefined ? _data[\"jobID\"] : null;\r\n this.error = _data[\"error\"] !== undefined ? _data[\"error\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PriceVerifyRequestResult {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PriceVerifyRequestResult();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"result\"] = this.result !== undefined ? this.result : null;\r\n data[\"jobID\"] = this.jobID !== undefined ? this.jobID : null;\r\n data[\"error\"] = this.error !== undefined ? this.error : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPriceVerifyRequestResult {\r\n result?: EPriceVerifyRequestResult;\r\n jobID?: string | null;\r\n error?: string | null;\r\n}\r\n\r\nexport enum EPriceVerifyRequestResult {\r\n OK = \"OK\",\r\n ALREADY_RUNNING = \"ALREADY_RUNNING\",\r\n AUTOCOMPLETE_RUNNING = \"AUTOCOMPLETE_RUNNING\",\r\n ERROR = \"ERROR\",\r\n TIMEOUT = \"TIMEOUT\",\r\n}\r\n\r\nexport class AvviaVerificaPrezziRequest extends TripGetRequest implements IAvviaVerificaPrezziRequest {\r\n /** Se true è richiesta una contestuale conferma */\r\n confirming?: boolean;\r\n /** Lista opzionale di righe singole */\r\n rowIDs?: number[] | null;\r\n\r\n constructor(data?: IAvviaVerificaPrezziRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.confirming = _data[\"confirming\"] !== undefined ? _data[\"confirming\"] : null;\r\n if (Array.isArray(_data[\"rowIDs\"])) {\r\n this.rowIDs = [] as any;\r\n for (let item of _data[\"rowIDs\"])\r\n this.rowIDs!.push(item);\r\n }\r\n else {\r\n this.rowIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AvviaVerificaPrezziRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AvviaVerificaPrezziRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"confirming\"] = this.confirming !== undefined ? this.confirming : null;\r\n if (Array.isArray(this.rowIDs)) {\r\n data[\"rowIDs\"] = [];\r\n for (let item of this.rowIDs)\r\n data[\"rowIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAvviaVerificaPrezziRequest extends ITripGetRequest {\r\n /** Se true è richiesta una contestuale conferma */\r\n confirming?: boolean;\r\n /** Lista opzionale di righe singole */\r\n rowIDs?: number[] | null;\r\n}\r\n\r\nexport class CheckTripStatusResponse extends OkApiResponse implements ICheckTripStatusResponse {\r\n status?: TripBatch | null;\r\n priceVerifyStatus?: UiPriceVerifyStatus | null;\r\n\r\n constructor(data?: ICheckTripStatusResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.status = _data[\"status\"] ? TripBatch.fromJS(_data[\"status\"]) : null;\r\n this.priceVerifyStatus = _data[\"priceVerifyStatus\"] ? UiPriceVerifyStatus.fromJS(_data[\"priceVerifyStatus\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckTripStatusResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckTripStatusResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"status\"] = this.status ? this.status.toJSON() : null;\r\n data[\"priceVerifyStatus\"] = this.priceVerifyStatus ? this.priceVerifyStatus.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckTripStatusResponse extends IOkApiResponse {\r\n status?: TripBatch | null;\r\n priceVerifyStatus?: UiPriceVerifyStatus | null;\r\n}\r\n\r\nexport class TripBatch implements ITripBatch {\r\n offertaID?: number;\r\n batchType?: EBatchType;\r\n status?: EBatchStatus;\r\n autofillStatus?: AutofillStatus | null;\r\n priceVerifyStatus?: PriceVerifyStatus | null;\r\n statusJson?: string | null;\r\n\r\n constructor(data?: ITripBatch) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.batchType = _data[\"batchType\"] !== undefined ? _data[\"batchType\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.autofillStatus = _data[\"autofillStatus\"] ? AutofillStatus.fromJS(_data[\"autofillStatus\"]) : null;\r\n this.priceVerifyStatus = _data[\"priceVerifyStatus\"] ? PriceVerifyStatus.fromJS(_data[\"priceVerifyStatus\"]) : null;\r\n this.statusJson = _data[\"statusJson\"] !== undefined ? _data[\"statusJson\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripBatch {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripBatch();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"batchType\"] = this.batchType !== undefined ? this.batchType : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"autofillStatus\"] = this.autofillStatus ? this.autofillStatus.toJSON() : null;\r\n data[\"priceVerifyStatus\"] = this.priceVerifyStatus ? this.priceVerifyStatus.toJSON() : null;\r\n data[\"statusJson\"] = this.statusJson !== undefined ? this.statusJson : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripBatch {\r\n offertaID?: number;\r\n batchType?: EBatchType;\r\n status?: EBatchStatus;\r\n autofillStatus?: AutofillStatus | null;\r\n priceVerifyStatus?: PriceVerifyStatus | null;\r\n statusJson?: string | null;\r\n}\r\n\r\nexport enum EBatchType {\r\n VerificaPrezzi = \"VerificaPrezzi\",\r\n Autofill = \"Autofill\",\r\n}\r\n\r\nexport enum EBatchStatus {\r\n Missing = \"Missing\",\r\n Running = \"Running\",\r\n Done = \"Done\",\r\n Error = \"Error\",\r\n}\r\n\r\nexport class TripBatchStatus implements ITripBatchStatus {\r\n status?: EBatchStatus;\r\n batchType?: EBatchType;\r\n lingua?: ELingua;\r\n offertaID?: number;\r\n rigaID?: number | null;\r\n total?: number;\r\n current?: number;\r\n errorCode?: string | null;\r\n errorMessage?: string | null;\r\n errorValues?: { [key: string]: string; } | null;\r\n\r\n constructor(data?: ITripBatchStatus) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.batchType = _data[\"batchType\"] !== undefined ? _data[\"batchType\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n this.current = _data[\"current\"] !== undefined ? _data[\"current\"] : null;\r\n this.errorCode = _data[\"errorCode\"] !== undefined ? _data[\"errorCode\"] : null;\r\n this.errorMessage = _data[\"errorMessage\"] !== undefined ? _data[\"errorMessage\"] : null;\r\n if (_data[\"errorValues\"]) {\r\n this.errorValues = {} as any;\r\n for (let key in _data[\"errorValues\"]) {\r\n if (_data[\"errorValues\"].hasOwnProperty(key))\r\n (this.errorValues)![key] = _data[\"errorValues\"][key] !== undefined ? _data[\"errorValues\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.errorValues = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripBatchStatus {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripBatchStatus();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"batchType\"] = this.batchType !== undefined ? this.batchType : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n data[\"current\"] = this.current !== undefined ? this.current : null;\r\n data[\"errorCode\"] = this.errorCode !== undefined ? this.errorCode : null;\r\n data[\"errorMessage\"] = this.errorMessage !== undefined ? this.errorMessage : null;\r\n if (this.errorValues) {\r\n data[\"errorValues\"] = {};\r\n for (let key in this.errorValues) {\r\n if (this.errorValues.hasOwnProperty(key))\r\n (data[\"errorValues\"])[key] = this.errorValues[key] !== undefined ? this.errorValues[key] : null;\r\n }\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripBatchStatus {\r\n status?: EBatchStatus;\r\n batchType?: EBatchType;\r\n lingua?: ELingua;\r\n offertaID?: number;\r\n rigaID?: number | null;\r\n total?: number;\r\n current?: number;\r\n errorCode?: string | null;\r\n errorMessage?: string | null;\r\n errorValues?: { [key: string]: string; } | null;\r\n}\r\n\r\nexport class AutofillStatus extends TripBatchStatus implements IAutofillStatus {\r\n exists?: boolean;\r\n done?: boolean;\r\n startedAt?: string;\r\n tasks?: AutofillTask[];\r\n\r\n constructor(data?: IAutofillStatus) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.exists = _data[\"exists\"] !== undefined ? _data[\"exists\"] : null;\r\n this.done = _data[\"done\"] !== undefined ? _data[\"done\"] : null;\r\n this.startedAt = _data[\"startedAt\"] !== undefined ? _data[\"startedAt\"] : null;\r\n if (Array.isArray(_data[\"tasks\"])) {\r\n this.tasks = [] as any;\r\n for (let item of _data[\"tasks\"])\r\n this.tasks!.push(AutofillTask.fromJS(item));\r\n }\r\n else {\r\n this.tasks = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutofillStatus {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutofillStatus();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"exists\"] = this.exists !== undefined ? this.exists : null;\r\n data[\"done\"] = this.done !== undefined ? this.done : null;\r\n data[\"startedAt\"] = this.startedAt !== undefined ? this.startedAt : null;\r\n if (Array.isArray(this.tasks)) {\r\n data[\"tasks\"] = [];\r\n for (let item of this.tasks)\r\n data[\"tasks\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutofillStatus extends ITripBatchStatus {\r\n exists?: boolean;\r\n done?: boolean;\r\n startedAt?: string;\r\n tasks?: AutofillTask[];\r\n}\r\n\r\nexport class AutofillTask implements IAutofillTask {\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n tipoServizio?: ETipoServizio;\r\n status?: EAutofillTaskStatus;\r\n warnings?: AutofillTaskWarning[];\r\n errors?: string[];\r\n\r\n constructor(data?: IAutofillTask) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.tipoServizio = _data[\"tipoServizio\"] !== undefined ? _data[\"tipoServizio\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n if (Array.isArray(_data[\"warnings\"])) {\r\n this.warnings = [] as any;\r\n for (let item of _data[\"warnings\"])\r\n this.warnings!.push(AutofillTaskWarning.fromJS(item));\r\n }\r\n else {\r\n this.warnings = null;\r\n }\r\n if (Array.isArray(_data[\"errors\"])) {\r\n this.errors = [] as any;\r\n for (let item of _data[\"errors\"])\r\n this.errors!.push(item);\r\n }\r\n else {\r\n this.errors = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutofillTask {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutofillTask();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"tipoServizio\"] = this.tipoServizio !== undefined ? this.tipoServizio : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n if (Array.isArray(this.warnings)) {\r\n data[\"warnings\"] = [];\r\n for (let item of this.warnings)\r\n data[\"warnings\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.errors)) {\r\n data[\"errors\"] = [];\r\n for (let item of this.errors)\r\n data[\"errors\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutofillTask {\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n tipoServizio?: ETipoServizio;\r\n status?: EAutofillTaskStatus;\r\n warnings?: AutofillTaskWarning[];\r\n errors?: string[];\r\n}\r\n\r\nexport enum EAutofillTaskStatus {\r\n Queued = \"Queued\",\r\n Running = \"Running\",\r\n Ok = \"Ok\",\r\n Warning = \"Warning\",\r\n Error = \"Error\",\r\n}\r\n\r\nexport class AutofillTaskWarning implements IAutofillTaskWarning {\r\n gruppoID?: number;\r\n gruppo?: string | null;\r\n tipo?: EAutofillWarningType;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n servizioUrl?: string | null;\r\n rigaID?: number | null;\r\n\r\n constructor(data?: IAutofillTaskWarning) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.gruppoID = _data[\"gruppoID\"] !== undefined ? _data[\"gruppoID\"] : null;\r\n this.gruppo = _data[\"gruppo\"] !== undefined ? _data[\"gruppo\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.dal = _data[\"dal\"] !== undefined ? _data[\"dal\"] : null;\r\n this.al = _data[\"al\"] !== undefined ? _data[\"al\"] : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.servizioUrl = _data[\"servizioUrl\"] !== undefined ? _data[\"servizioUrl\"] : null;\r\n this.rigaID = _data[\"rigaID\"] !== undefined ? _data[\"rigaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AutofillTaskWarning {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AutofillTaskWarning();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"gruppoID\"] = this.gruppoID !== undefined ? this.gruppoID : null;\r\n data[\"gruppo\"] = this.gruppo !== undefined ? this.gruppo : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"dal\"] = this.dal !== undefined ? this.dal : null;\r\n data[\"al\"] = this.al !== undefined ? this.al : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"servizioUrl\"] = this.servizioUrl !== undefined ? this.servizioUrl : null;\r\n data[\"rigaID\"] = this.rigaID !== undefined ? this.rigaID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAutofillTaskWarning {\r\n gruppoID?: number;\r\n gruppo?: string | null;\r\n tipo?: EAutofillWarningType;\r\n luogoID?: number | null;\r\n luogo?: string | null;\r\n dal?: string | null;\r\n al?: string | null;\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n servizioUrl?: string | null;\r\n rigaID?: number | null;\r\n}\r\n\r\nexport enum EAutofillWarningType {\r\n VoliNonTrovati = \"VoliNonTrovati\",\r\n TappeModificatePerInserimentoVoli = \"TappeModificatePerInserimentoVoli\",\r\n HotelNonTrovato = \"HotelNonTrovato\",\r\n HotelNonCorrispondenteAiCriteri = \"HotelNonCorrispondenteAiCriteri\",\r\n TrasferimentoNonTrovato = \"TrasferimentoNonTrovato\",\r\n}\r\n\r\nexport class PriceVerifyStatus extends TripBatchStatus implements IPriceVerifyStatus {\r\n confirming?: boolean;\r\n canConfirm?: boolean;\r\n result?: EPriceVerifyResult;\r\n rowResults?: PriceVerifyRowStatus[] | null;\r\n percentage?: number;\r\n\r\n constructor(data?: IPriceVerifyStatus) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.confirming = _data[\"confirming\"] !== undefined ? _data[\"confirming\"] : null;\r\n this.canConfirm = _data[\"canConfirm\"] !== undefined ? _data[\"canConfirm\"] : null;\r\n this.result = _data[\"result\"] !== undefined ? _data[\"result\"] : null;\r\n if (Array.isArray(_data[\"rowResults\"])) {\r\n this.rowResults = [] as any;\r\n for (let item of _data[\"rowResults\"])\r\n this.rowResults!.push(PriceVerifyRowStatus.fromJS(item));\r\n }\r\n else {\r\n this.rowResults = null;\r\n }\r\n this.percentage = _data[\"percentage\"] !== undefined ? _data[\"percentage\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PriceVerifyStatus {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PriceVerifyStatus();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"confirming\"] = this.confirming !== undefined ? this.confirming : null;\r\n data[\"canConfirm\"] = this.canConfirm !== undefined ? this.canConfirm : null;\r\n data[\"result\"] = this.result !== undefined ? this.result : null;\r\n if (Array.isArray(this.rowResults)) {\r\n data[\"rowResults\"] = [];\r\n for (let item of this.rowResults)\r\n data[\"rowResults\"].push(item.toJSON());\r\n }\r\n data[\"percentage\"] = this.percentage !== undefined ? this.percentage : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPriceVerifyStatus extends ITripBatchStatus {\r\n confirming?: boolean;\r\n canConfirm?: boolean;\r\n result?: EPriceVerifyResult;\r\n rowResults?: PriceVerifyRowStatus[] | null;\r\n percentage?: number;\r\n}\r\n\r\nexport enum EPriceVerifyResult {\r\n NONE = \"NONE\",\r\n OK = \"OK\",\r\n PRICE_AVAIL_CHANGED = \"PRICE_AVAIL_CHANGED\",\r\n INVALID = \"INVALID\",\r\n ERROR = \"ERROR\",\r\n NOT_AVAILABLE = \"NOT_AVAILABLE\",\r\n RUNNING = \"RUNNING\",\r\n}\r\n\r\nexport class PriceVerifyRowStatus implements IPriceVerifyRowStatus {\r\n id?: number;\r\n date?: string;\r\n group?: string | null;\r\n description?: string | null;\r\n verifyError?: boolean;\r\n priceChanged?: boolean;\r\n previousPrice?: number;\r\n newPrice?: number | null;\r\n availabilityChanged?: boolean;\r\n previousAvailability?: EStatoDisponibilita;\r\n newAvailability?: EStatoDisponibilita | null;\r\n result?: EPriceVerifyResult;\r\n\r\n constructor(data?: IPriceVerifyRowStatus) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.group = _data[\"group\"] !== undefined ? _data[\"group\"] : null;\r\n this.description = _data[\"description\"] !== undefined ? _data[\"description\"] : null;\r\n this.verifyError = _data[\"verifyError\"] !== undefined ? _data[\"verifyError\"] : null;\r\n this.priceChanged = _data[\"priceChanged\"] !== undefined ? _data[\"priceChanged\"] : null;\r\n this.previousPrice = _data[\"previousPrice\"] !== undefined ? _data[\"previousPrice\"] : null;\r\n this.newPrice = _data[\"newPrice\"] !== undefined ? _data[\"newPrice\"] : null;\r\n this.availabilityChanged = _data[\"availabilityChanged\"] !== undefined ? _data[\"availabilityChanged\"] : null;\r\n this.previousAvailability = _data[\"previousAvailability\"] !== undefined ? _data[\"previousAvailability\"] : null;\r\n this.newAvailability = _data[\"newAvailability\"] !== undefined ? _data[\"newAvailability\"] : null;\r\n this.result = _data[\"result\"] !== undefined ? _data[\"result\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PriceVerifyRowStatus {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PriceVerifyRowStatus();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"group\"] = this.group !== undefined ? this.group : null;\r\n data[\"description\"] = this.description !== undefined ? this.description : null;\r\n data[\"verifyError\"] = this.verifyError !== undefined ? this.verifyError : null;\r\n data[\"priceChanged\"] = this.priceChanged !== undefined ? this.priceChanged : null;\r\n data[\"previousPrice\"] = this.previousPrice !== undefined ? this.previousPrice : null;\r\n data[\"newPrice\"] = this.newPrice !== undefined ? this.newPrice : null;\r\n data[\"availabilityChanged\"] = this.availabilityChanged !== undefined ? this.availabilityChanged : null;\r\n data[\"previousAvailability\"] = this.previousAvailability !== undefined ? this.previousAvailability : null;\r\n data[\"newAvailability\"] = this.newAvailability !== undefined ? this.newAvailability : null;\r\n data[\"result\"] = this.result !== undefined ? this.result : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPriceVerifyRowStatus {\r\n id?: number;\r\n date?: string;\r\n group?: string | null;\r\n description?: string | null;\r\n verifyError?: boolean;\r\n priceChanged?: boolean;\r\n previousPrice?: number;\r\n newPrice?: number | null;\r\n availabilityChanged?: boolean;\r\n previousAvailability?: EStatoDisponibilita;\r\n newAvailability?: EStatoDisponibilita | null;\r\n result?: EPriceVerifyResult;\r\n}\r\n\r\nexport class UiPriceVerifyStatus extends PriceVerifyStatus implements IUiPriceVerifyStatus {\r\n\r\n constructor(data?: IUiPriceVerifyStatus) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UiPriceVerifyStatus {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UiPriceVerifyStatus();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUiPriceVerifyStatus extends IPriceVerifyStatus {\r\n}\r\n\r\nexport class CheckTripStatusRequest extends LocalizedRequest implements ICheckTripStatusRequest {\r\n offertaID?: number;\r\n\r\n constructor(data?: ICheckTripStatusRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CheckTripStatusRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CheckTripStatusRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICheckTripStatusRequest extends ILocalizedRequest {\r\n offertaID?: number;\r\n}\r\n\r\nexport class ConfermaRequest extends TripGetRequest implements IConfermaRequest {\r\n manuale?: boolean;\r\n inviaEmailConferma?: boolean;\r\n recipientUserID?: number | null;\r\n\r\n constructor(data?: IConfermaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.manuale = _data[\"manuale\"] !== undefined ? _data[\"manuale\"] : null;\r\n this.inviaEmailConferma = _data[\"inviaEmailConferma\"] !== undefined ? _data[\"inviaEmailConferma\"] : null;\r\n this.recipientUserID = _data[\"recipientUserID\"] !== undefined ? _data[\"recipientUserID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ConfermaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ConfermaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"manuale\"] = this.manuale !== undefined ? this.manuale : null;\r\n data[\"inviaEmailConferma\"] = this.inviaEmailConferma !== undefined ? this.inviaEmailConferma : null;\r\n data[\"recipientUserID\"] = this.recipientUserID !== undefined ? this.recipientUserID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IConfermaRequest extends ITripGetRequest {\r\n manuale?: boolean;\r\n inviaEmailConferma?: boolean;\r\n recipientUserID?: number | null;\r\n}\r\n\r\nexport class CopiaDocumentoResponse extends TripGetResponse implements ICopiaDocumentoResponse {\r\n documentoCopia?: Documento | null;\r\n\r\n constructor(data?: ICopiaDocumentoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoCopia = _data[\"documentoCopia\"] ? Documento.fromJS(_data[\"documentoCopia\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CopiaDocumentoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CopiaDocumentoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoCopia\"] = this.documentoCopia ? this.documentoCopia.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICopiaDocumentoResponse extends ITripGetResponse {\r\n documentoCopia?: Documento | null;\r\n}\r\n\r\nexport class CopiaDocumentoRequest extends TripGetRequest implements ICopiaDocumentoRequest {\r\n documentoID?: number;\r\n\r\n constructor(data?: ICopiaDocumentoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CopiaDocumentoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CopiaDocumentoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICopiaDocumentoRequest extends ITripGetRequest {\r\n documentoID?: number;\r\n}\r\n\r\nexport class CopiaRigaResponse extends TripGetResponse implements ICopiaRigaResponse {\r\n rigaCopiata?: OffertaDato | null;\r\n\r\n constructor(data?: ICopiaRigaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.rigaCopiata = _data[\"rigaCopiata\"] ? OffertaDato.fromJS(_data[\"rigaCopiata\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CopiaRigaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CopiaRigaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rigaCopiata\"] = this.rigaCopiata ? this.rigaCopiata.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICopiaRigaResponse extends ITripGetResponse {\r\n rigaCopiata?: OffertaDato | null;\r\n}\r\n\r\nexport class CopiaRigaRequest extends TripGetRequest implements ICopiaRigaRequest {\r\n offertaDatoID?: number;\r\n\r\n constructor(data?: ICopiaRigaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaDatoID = _data[\"offertaDatoID\"] !== undefined ? _data[\"offertaDatoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CopiaRigaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CopiaRigaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaDatoID\"] = this.offertaDatoID !== undefined ? this.offertaDatoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICopiaRigaRequest extends ITripGetRequest {\r\n offertaDatoID?: number;\r\n}\r\n\r\nexport class CopiaVoucherResponse extends TripGetResponse implements ICopiaVoucherResponse {\r\n voucherCopia?: Voucher | null;\r\n\r\n constructor(data?: ICopiaVoucherResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.voucherCopia = _data[\"voucherCopia\"] ? Voucher.fromJS(_data[\"voucherCopia\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CopiaVoucherResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CopiaVoucherResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voucherCopia\"] = this.voucherCopia ? this.voucherCopia.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICopiaVoucherResponse extends ITripGetResponse {\r\n voucherCopia?: Voucher | null;\r\n}\r\n\r\nexport class CopiaVoucherRequest extends TripGetRequest implements ICopiaVoucherRequest {\r\n voucherID?: number;\r\n\r\n constructor(data?: ICopiaVoucherRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.voucherID = _data[\"voucherID\"] !== undefined ? _data[\"voucherID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CopiaVoucherRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CopiaVoucherRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voucherID\"] = this.voucherID !== undefined ? this.voucherID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICopiaVoucherRequest extends ITripGetRequest {\r\n voucherID?: number;\r\n}\r\n\r\nexport class CreateDocumentiAllegatiRequest extends TripGetRequest implements ICreateDocumentiAllegatiRequest {\r\n allegatiIds?: number[] | null;\r\n\r\n constructor(data?: ICreateDocumentiAllegatiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"allegatiIds\"])) {\r\n this.allegatiIds = [] as any;\r\n for (let item of _data[\"allegatiIds\"])\r\n this.allegatiIds!.push(item);\r\n }\r\n else {\r\n this.allegatiIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateDocumentiAllegatiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateDocumentiAllegatiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.allegatiIds)) {\r\n data[\"allegatiIds\"] = [];\r\n for (let item of this.allegatiIds)\r\n data[\"allegatiIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateDocumentiAllegatiRequest extends ITripGetRequest {\r\n allegatiIds?: number[] | null;\r\n}\r\n\r\nexport class CreateDocumentoResponse extends TripGetResponse implements ICreateDocumentoResponse {\r\n documentoID?: number;\r\n\r\n constructor(data?: ICreateDocumentoResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateDocumentoResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateDocumentoResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateDocumentoResponse extends ITripGetResponse {\r\n documentoID?: number;\r\n}\r\n\r\nexport class CreateDocumentoRequest extends TripGetRequest implements ICreateDocumentoRequest {\r\n tipoDocumento?: ETipoDocumento;\r\n extraArgs?: string | null;\r\n\r\n constructor(data?: ICreateDocumentoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.extraArgs = _data[\"extraArgs\"] !== undefined ? _data[\"extraArgs\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateDocumentoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateDocumentoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"extraArgs\"] = this.extraArgs !== undefined ? this.extraArgs : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateDocumentoRequest extends ITripGetRequest {\r\n tipoDocumento?: ETipoDocumento;\r\n extraArgs?: string | null;\r\n}\r\n\r\nexport class EditNotaResponse extends TripGetResponse implements IEditNotaResponse {\r\n /** Entità della nota creata / modificata */\r\n nota?: OffertaNota;\r\n /** Dati aggiuntivi ad uso della UI */\r\n tripNote?: TripNote;\r\n\r\n constructor(data?: IEditNotaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nota = _data[\"nota\"] ? OffertaNota.fromJS(_data[\"nota\"]) : null;\r\n this.tripNote = _data[\"tripNote\"] ? TripNote.fromJS(_data[\"tripNote\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EditNotaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EditNotaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nota\"] = this.nota ? this.nota.toJSON() : null;\r\n data[\"tripNote\"] = this.tripNote ? this.tripNote.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEditNotaResponse extends ITripGetResponse {\r\n /** Entità della nota creata / modificata */\r\n nota?: OffertaNota;\r\n /** Dati aggiuntivi ad uso della UI */\r\n tripNote?: TripNote;\r\n}\r\n\r\nexport class EditNotaRequest extends TripGetRequest implements IEditNotaRequest {\r\n nota?: OffertaNota;\r\n\r\n constructor(data?: IEditNotaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nota = _data[\"nota\"] ? OffertaNota.fromJS(_data[\"nota\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): EditNotaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EditNotaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nota\"] = this.nota ? this.nota.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEditNotaRequest extends ITripGetRequest {\r\n nota?: OffertaNota;\r\n}\r\n\r\nexport class UpdateWebRequest extends TripGetRequest implements IUpdateWebRequest {\r\n /** Nome interno del viaggio */\r\n descrizione!: string;\r\n /** Note o meglio descrizione */\r\n note?: string | null;\r\n /** Titolo facoltativo da usare nei documenti */\r\n titolo?: string | null;\r\n\r\n constructor(data?: IUpdateWebRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateWebRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateWebRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateWebRequest extends ITripGetRequest {\r\n /** Nome interno del viaggio */\r\n descrizione: string;\r\n /** Note o meglio descrizione */\r\n note?: string | null;\r\n /** Titolo facoltativo da usare nei documenti */\r\n titolo?: string | null;\r\n}\r\n\r\nexport class CreateTripRequest extends UpdateWebRequest implements ICreateTripRequest {\r\n viaggioDiNozze?: boolean;\r\n fatturazioneAlNetto?: boolean;\r\n tipoViaggio?: ETipoViaggio;\r\n operatoreID?: number;\r\n contattoAgenziaID?: number;\r\n utenteID?: number | null;\r\n partenza?: string;\r\n tipologiaID?: number | null;\r\n /** Se true la tipologia usa le descrizioni macro */\r\n usaTipologieMacro?: boolean;\r\n itinerario!: OffertaItinerario[];\r\n clienti!: ClienteDatoUpdate[];\r\n servizi?: DatiServizioAdd[] | null;\r\n /** Se presente è una singola camera da cache */\r\n cameraCache?: string | null;\r\n /** ID della tappa per la camera cache */\r\n tappaCameraCache?: number | null;\r\n\r\n constructor(data?: ICreateTripRequest) {\r\n super(data);\r\n if (!data) {\r\n this.itinerario = [];\r\n this.clienti = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.viaggioDiNozze = _data[\"viaggioDiNozze\"] !== undefined ? _data[\"viaggioDiNozze\"] : null;\r\n this.fatturazioneAlNetto = _data[\"fatturazioneAlNetto\"] !== undefined ? _data[\"fatturazioneAlNetto\"] : null;\r\n this.tipoViaggio = _data[\"tipoViaggio\"] !== undefined ? _data[\"tipoViaggio\"] : null;\r\n this.operatoreID = _data[\"operatoreID\"] !== undefined ? _data[\"operatoreID\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.utenteID = _data[\"utenteID\"] !== undefined ? _data[\"utenteID\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.usaTipologieMacro = _data[\"usaTipologieMacro\"] !== undefined ? _data[\"usaTipologieMacro\"] : null;\r\n if (Array.isArray(_data[\"itinerario\"])) {\r\n this.itinerario = [] as any;\r\n for (let item of _data[\"itinerario\"])\r\n this.itinerario!.push(OffertaItinerario.fromJS(item));\r\n }\r\n else {\r\n this.itinerario = null;\r\n }\r\n if (Array.isArray(_data[\"clienti\"])) {\r\n this.clienti = [] as any;\r\n for (let item of _data[\"clienti\"])\r\n this.clienti!.push(ClienteDatoUpdate.fromJS(item));\r\n }\r\n else {\r\n this.clienti = null;\r\n }\r\n if (Array.isArray(_data[\"servizi\"])) {\r\n this.servizi = [] as any;\r\n for (let item of _data[\"servizi\"])\r\n this.servizi!.push(DatiServizioAdd.fromJS(item));\r\n }\r\n else {\r\n this.servizi = null;\r\n }\r\n this.cameraCache = _data[\"cameraCache\"] !== undefined ? _data[\"cameraCache\"] : null;\r\n this.tappaCameraCache = _data[\"tappaCameraCache\"] !== undefined ? _data[\"tappaCameraCache\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateTripRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateTripRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"viaggioDiNozze\"] = this.viaggioDiNozze !== undefined ? this.viaggioDiNozze : null;\r\n data[\"fatturazioneAlNetto\"] = this.fatturazioneAlNetto !== undefined ? this.fatturazioneAlNetto : null;\r\n data[\"tipoViaggio\"] = this.tipoViaggio !== undefined ? this.tipoViaggio : null;\r\n data[\"operatoreID\"] = this.operatoreID !== undefined ? this.operatoreID : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"utenteID\"] = this.utenteID !== undefined ? this.utenteID : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"usaTipologieMacro\"] = this.usaTipologieMacro !== undefined ? this.usaTipologieMacro : null;\r\n if (Array.isArray(this.itinerario)) {\r\n data[\"itinerario\"] = [];\r\n for (let item of this.itinerario)\r\n data[\"itinerario\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.clienti)) {\r\n data[\"clienti\"] = [];\r\n for (let item of this.clienti)\r\n data[\"clienti\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.servizi)) {\r\n data[\"servizi\"] = [];\r\n for (let item of this.servizi)\r\n data[\"servizi\"].push(item.toJSON());\r\n }\r\n data[\"cameraCache\"] = this.cameraCache !== undefined ? this.cameraCache : null;\r\n data[\"tappaCameraCache\"] = this.tappaCameraCache !== undefined ? this.tappaCameraCache : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateTripRequest extends IUpdateWebRequest {\r\n viaggioDiNozze?: boolean;\r\n fatturazioneAlNetto?: boolean;\r\n tipoViaggio?: ETipoViaggio;\r\n operatoreID?: number;\r\n contattoAgenziaID?: number;\r\n utenteID?: number | null;\r\n partenza?: string;\r\n tipologiaID?: number | null;\r\n /** Se true la tipologia usa le descrizioni macro */\r\n usaTipologieMacro?: boolean;\r\n itinerario: OffertaItinerario[];\r\n clienti: ClienteDatoUpdate[];\r\n servizi?: DatiServizioAdd[] | null;\r\n /** Se presente è una singola camera da cache */\r\n cameraCache?: string | null;\r\n /** ID della tappa per la camera cache */\r\n tappaCameraCache?: number | null;\r\n}\r\n\r\nexport class CreateQuotationRequest extends CreateTripRequest implements ICreateQuotationRequest {\r\n /** Tipo di viaggio, combina tipo e nozze */\r\n tipoViaggioPreventivo!: ETipoViaggioPreventivo;\r\n /** ID del luogo di partenza */\r\n luogoPartenzaID?: number | null;\r\n /** Data di rientro */\r\n ritorno!: string;\r\n /** Data dell'appuntamento dell'ADV con il cliente */\r\n dataAppuntamentoADV?: string | null;\r\n /** Note abbinate all'appuntamento ADV */\r\n noteAppuntamento?: string | null;\r\n /** Descrizione testuale della destinazione */\r\n destinazione!: string;\r\n teamID?: number;\r\n /** Descrizione testuale delle opzioni di volo */\r\n opzioniVolo!: string;\r\n /** Descrizione testuale del budget */\r\n budget!: string;\r\n /** Descrizione testuale dei trasferimenti */\r\n trasferimenti?: string | null;\r\n /** Descrizione testuale dei noleggi */\r\n noleggi?: string | null;\r\n /** Descrizione testuale della categoria hotel */\r\n categoriaHotel?: string | null;\r\n /** Tolleranza della data di partenza in giorni */\r\n tolleranzaPartenza?: number | null;\r\n\r\n constructor(data?: ICreateQuotationRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoViaggioPreventivo = _data[\"tipoViaggioPreventivo\"] !== undefined ? _data[\"tipoViaggioPreventivo\"] : null;\r\n this.luogoPartenzaID = _data[\"luogoPartenzaID\"] !== undefined ? _data[\"luogoPartenzaID\"] : null;\r\n this.ritorno = _data[\"ritorno\"] !== undefined ? _data[\"ritorno\"] : null;\r\n this.dataAppuntamentoADV = _data[\"dataAppuntamentoADV\"] !== undefined ? _data[\"dataAppuntamentoADV\"] : null;\r\n this.noteAppuntamento = _data[\"noteAppuntamento\"] !== undefined ? _data[\"noteAppuntamento\"] : null;\r\n this.destinazione = _data[\"destinazione\"] !== undefined ? _data[\"destinazione\"] : null;\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.opzioniVolo = _data[\"opzioniVolo\"] !== undefined ? _data[\"opzioniVolo\"] : null;\r\n this.budget = _data[\"budget\"] !== undefined ? _data[\"budget\"] : null;\r\n this.trasferimenti = _data[\"trasferimenti\"] !== undefined ? _data[\"trasferimenti\"] : null;\r\n this.noleggi = _data[\"noleggi\"] !== undefined ? _data[\"noleggi\"] : null;\r\n this.categoriaHotel = _data[\"categoriaHotel\"] !== undefined ? _data[\"categoriaHotel\"] : null;\r\n this.tolleranzaPartenza = _data[\"tolleranzaPartenza\"] !== undefined ? _data[\"tolleranzaPartenza\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateQuotationRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateQuotationRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoViaggioPreventivo\"] = this.tipoViaggioPreventivo !== undefined ? this.tipoViaggioPreventivo : null;\r\n data[\"luogoPartenzaID\"] = this.luogoPartenzaID !== undefined ? this.luogoPartenzaID : null;\r\n data[\"ritorno\"] = this.ritorno !== undefined ? this.ritorno : null;\r\n data[\"dataAppuntamentoADV\"] = this.dataAppuntamentoADV !== undefined ? this.dataAppuntamentoADV : null;\r\n data[\"noteAppuntamento\"] = this.noteAppuntamento !== undefined ? this.noteAppuntamento : null;\r\n data[\"destinazione\"] = this.destinazione !== undefined ? this.destinazione : null;\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"opzioniVolo\"] = this.opzioniVolo !== undefined ? this.opzioniVolo : null;\r\n data[\"budget\"] = this.budget !== undefined ? this.budget : null;\r\n data[\"trasferimenti\"] = this.trasferimenti !== undefined ? this.trasferimenti : null;\r\n data[\"noleggi\"] = this.noleggi !== undefined ? this.noleggi : null;\r\n data[\"categoriaHotel\"] = this.categoriaHotel !== undefined ? this.categoriaHotel : null;\r\n data[\"tolleranzaPartenza\"] = this.tolleranzaPartenza !== undefined ? this.tolleranzaPartenza : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateQuotationRequest extends ICreateTripRequest {\r\n /** Tipo di viaggio, combina tipo e nozze */\r\n tipoViaggioPreventivo: ETipoViaggioPreventivo;\r\n /** ID del luogo di partenza */\r\n luogoPartenzaID?: number | null;\r\n /** Data di rientro */\r\n ritorno: string;\r\n /** Data dell'appuntamento dell'ADV con il cliente */\r\n dataAppuntamentoADV?: string | null;\r\n /** Note abbinate all'appuntamento ADV */\r\n noteAppuntamento?: string | null;\r\n /** Descrizione testuale della destinazione */\r\n destinazione: string;\r\n teamID?: number;\r\n /** Descrizione testuale delle opzioni di volo */\r\n opzioniVolo: string;\r\n /** Descrizione testuale del budget */\r\n budget: string;\r\n /** Descrizione testuale dei trasferimenti */\r\n trasferimenti?: string | null;\r\n /** Descrizione testuale dei noleggi */\r\n noleggi?: string | null;\r\n /** Descrizione testuale della categoria hotel */\r\n categoriaHotel?: string | null;\r\n /** Tolleranza della data di partenza in giorni */\r\n tolleranzaPartenza?: number | null;\r\n}\r\n\r\nexport enum ETipoViaggioPreventivo {\r\n Indefinito = \"Indefinito\",\r\n Nozze = \"Nozze\",\r\n Gruppo = \"Gruppo\",\r\n}\r\n\r\nexport class CreateRigaResponse extends TripGetResponse implements ICreateRigaResponse {\r\n rigaCreata?: TripService;\r\n\r\n constructor(data?: ICreateRigaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.rigaCreata = _data[\"rigaCreata\"] ? TripService.fromJS(_data[\"rigaCreata\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateRigaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateRigaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rigaCreata\"] = this.rigaCreata ? this.rigaCreata.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateRigaResponse extends ITripGetResponse {\r\n rigaCreata?: TripService;\r\n}\r\n\r\nexport class CreateRigaRequest extends TripGetRequest implements ICreateRigaRequest {\r\n riga?: OffertaDato;\r\n stato?: OffertaDatoStato | null;\r\n\r\n constructor(data?: ICreateRigaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n this.stato = _data[\"stato\"] ? OffertaDatoStato.fromJS(_data[\"stato\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateRigaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateRigaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateRigaRequest extends ITripGetRequest {\r\n riga?: OffertaDato;\r\n stato?: OffertaDatoStato | null;\r\n}\r\n\r\nexport class CreateSegnapostoPagamentoRequest extends TripGetRequest implements ICreateSegnapostoPagamentoRequest {\r\n rigaOriginaleID?: number;\r\n\r\n constructor(data?: ICreateSegnapostoPagamentoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.rigaOriginaleID = _data[\"rigaOriginaleID\"] !== undefined ? _data[\"rigaOriginaleID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateSegnapostoPagamentoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateSegnapostoPagamentoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rigaOriginaleID\"] = this.rigaOriginaleID !== undefined ? this.rigaOriginaleID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateSegnapostoPagamentoRequest extends ITripGetRequest {\r\n rigaOriginaleID?: number;\r\n}\r\n\r\nexport class CreateTripFromQuotationRequest extends CreateTripRequest implements ICreateTripFromQuotationRequest {\r\n\r\n constructor(data?: ICreateTripFromQuotationRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): CreateTripFromQuotationRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateTripFromQuotationRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateTripFromQuotationRequest extends ICreateTripRequest {\r\n}\r\n\r\nexport class DeleteDocumentoRequest extends TripGetRequest implements IDeleteDocumentoRequest {\r\n documentoID?: number;\r\n\r\n constructor(data?: IDeleteDocumentoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.documentoID = _data[\"documentoID\"] !== undefined ? _data[\"documentoID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteDocumentoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteDocumentoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"documentoID\"] = this.documentoID !== undefined ? this.documentoID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteDocumentoRequest extends ITripGetRequest {\r\n documentoID?: number;\r\n}\r\n\r\nexport class DeleteDocumentoMultiRequest extends TripGetRequest implements IDeleteDocumentoMultiRequest {\r\n documentiIds?: number[] | null;\r\n\r\n constructor(data?: IDeleteDocumentoMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"documentiIds\"])) {\r\n this.documentiIds = [] as any;\r\n for (let item of _data[\"documentiIds\"])\r\n this.documentiIds!.push(item);\r\n }\r\n else {\r\n this.documentiIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteDocumentoMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteDocumentoMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.documentiIds)) {\r\n data[\"documentiIds\"] = [];\r\n for (let item of this.documentiIds)\r\n data[\"documentiIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteDocumentoMultiRequest extends ITripGetRequest {\r\n documentiIds?: number[] | null;\r\n}\r\n\r\nexport class DeleteNotaMultiRequest extends TripGetRequest implements IDeleteNotaMultiRequest {\r\n noteIds?: number[] | null;\r\n\r\n constructor(data?: IDeleteNotaMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"noteIds\"])) {\r\n this.noteIds = [] as any;\r\n for (let item of _data[\"noteIds\"])\r\n this.noteIds!.push(item);\r\n }\r\n else {\r\n this.noteIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteNotaMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteNotaMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.noteIds)) {\r\n data[\"noteIds\"] = [];\r\n for (let item of this.noteIds)\r\n data[\"noteIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteNotaMultiRequest extends ITripGetRequest {\r\n noteIds?: number[] | null;\r\n}\r\n\r\nexport class DeleteServiziRequest extends TripGetRequest implements IDeleteServiziRequest {\r\n righeIds?: number[] | null;\r\n eliminaItinerariTour?: boolean;\r\n\r\n constructor(data?: IDeleteServiziRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"righeIds\"])) {\r\n this.righeIds = [] as any;\r\n for (let item of _data[\"righeIds\"])\r\n this.righeIds!.push(item);\r\n }\r\n else {\r\n this.righeIds = null;\r\n }\r\n this.eliminaItinerariTour = _data[\"eliminaItinerariTour\"] !== undefined ? _data[\"eliminaItinerariTour\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteServiziRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteServiziRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.righeIds)) {\r\n data[\"righeIds\"] = [];\r\n for (let item of this.righeIds)\r\n data[\"righeIds\"].push(item);\r\n }\r\n data[\"eliminaItinerariTour\"] = this.eliminaItinerariTour !== undefined ? this.eliminaItinerariTour : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteServiziRequest extends ITripGetRequest {\r\n righeIds?: number[] | null;\r\n eliminaItinerariTour?: boolean;\r\n}\r\n\r\nexport class UpdateVoloRequest extends TripGetRequest implements IUpdateVoloRequest {\r\n volo?: Volo | null;\r\n segmenti?: VoloTratta[] | null;\r\n\r\n constructor(data?: IUpdateVoloRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.volo = _data[\"volo\"] ? Volo.fromJS(_data[\"volo\"]) : null;\r\n if (Array.isArray(_data[\"segmenti\"])) {\r\n this.segmenti = [] as any;\r\n for (let item of _data[\"segmenti\"])\r\n this.segmenti!.push(VoloTratta.fromJS(item));\r\n }\r\n else {\r\n this.segmenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateVoloRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateVoloRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"volo\"] = this.volo ? this.volo.toJSON() : null;\r\n if (Array.isArray(this.segmenti)) {\r\n data[\"segmenti\"] = [];\r\n for (let item of this.segmenti)\r\n data[\"segmenti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateVoloRequest extends ITripGetRequest {\r\n volo?: Volo | null;\r\n segmenti?: VoloTratta[] | null;\r\n}\r\n\r\nexport class DeleteVoucherRequest extends TripGetRequest implements IDeleteVoucherRequest {\r\n voucherID?: number;\r\n\r\n constructor(data?: IDeleteVoucherRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.voucherID = _data[\"voucherID\"] !== undefined ? _data[\"voucherID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteVoucherRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteVoucherRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voucherID\"] = this.voucherID !== undefined ? this.voucherID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteVoucherRequest extends ITripGetRequest {\r\n voucherID?: number;\r\n}\r\n\r\nexport class DeleteVoucherMultiRequest extends TripGetRequest implements IDeleteVoucherMultiRequest {\r\n voucherIds?: number[] | null;\r\n\r\n constructor(data?: IDeleteVoucherMultiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"voucherIds\"])) {\r\n this.voucherIds = [] as any;\r\n for (let item of _data[\"voucherIds\"])\r\n this.voucherIds!.push(item);\r\n }\r\n else {\r\n this.voucherIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteVoucherMultiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteVoucherMultiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.voucherIds)) {\r\n data[\"voucherIds\"] = [];\r\n for (let item of this.voucherIds)\r\n data[\"voucherIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteVoucherMultiRequest extends ITripGetRequest {\r\n voucherIds?: number[] | null;\r\n}\r\n\r\nexport class NrTableResponseOfTripActivityLogRow extends OkApiResponse implements INrTableResponseOfTripActivityLogRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TripActivityLogRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfTripActivityLogRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(TripActivityLogRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfTripActivityLogRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfTripActivityLogRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfTripActivityLogRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: TripActivityLogRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class TripActivityLogRow implements ITripActivityLogRow {\r\n log?: SqlTripActivityLogItem | null;\r\n username?: string | null;\r\n agency?: string | null;\r\n\r\n constructor(data?: ITripActivityLogRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.log = _data[\"log\"] ? SqlTripActivityLogItem.fromJS(_data[\"log\"]) : null;\r\n this.username = _data[\"username\"] !== undefined ? _data[\"username\"] : null;\r\n this.agency = _data[\"agency\"] !== undefined ? _data[\"agency\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripActivityLogRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripActivityLogRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"log\"] = this.log ? this.log.toJSON() : null;\r\n data[\"username\"] = this.username !== undefined ? this.username : null;\r\n data[\"agency\"] = this.agency !== undefined ? this.agency : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripActivityLogRow {\r\n log?: SqlTripActivityLogItem | null;\r\n username?: string | null;\r\n agency?: string | null;\r\n}\r\n\r\nexport class GetActivityLogsRequest extends NrTableRequest implements IGetActivityLogsRequest {\r\n offertaID?: number;\r\n date?: string | null;\r\n username?: string | null;\r\n message?: string | null;\r\n\r\n constructor(data?: IGetActivityLogsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.username = _data[\"username\"] !== undefined ? _data[\"username\"] : null;\r\n this.message = _data[\"message\"] !== undefined ? _data[\"message\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetActivityLogsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetActivityLogsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"username\"] = this.username !== undefined ? this.username : null;\r\n data[\"message\"] = this.message !== undefined ? this.message : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetActivityLogsRequest extends INrTableRequest {\r\n offertaID?: number;\r\n date?: string | null;\r\n username?: string | null;\r\n message?: string | null;\r\n}\r\n\r\nexport class GetFlightsTicketsResponse extends OkApiResponse implements IGetFlightsTicketsResponse {\r\n tickets?: VoloTickets[] | null;\r\n\r\n constructor(data?: IGetFlightsTicketsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tickets\"])) {\r\n this.tickets = [] as any;\r\n for (let item of _data[\"tickets\"])\r\n this.tickets!.push(VoloTickets.fromJS(item));\r\n }\r\n else {\r\n this.tickets = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetFlightsTicketsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetFlightsTicketsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tickets)) {\r\n data[\"tickets\"] = [];\r\n for (let item of this.tickets)\r\n data[\"tickets\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetFlightsTicketsResponse extends IOkApiResponse {\r\n tickets?: VoloTickets[] | null;\r\n}\r\n\r\nexport class GetFlightsTicketsRequest extends ApiRequest implements IGetFlightsTicketsRequest {\r\n offertaID?: number;\r\n\r\n constructor(data?: IGetFlightsTicketsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetFlightsTicketsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetFlightsTicketsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetFlightsTicketsRequest extends IApiRequest {\r\n offertaID?: number;\r\n}\r\n\r\nexport class GetQuotesResponse extends OkApiResponse implements IGetQuotesResponse {\r\n quotes?: string[];\r\n\r\n constructor(data?: IGetQuotesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"quotes\"])) {\r\n this.quotes = [] as any;\r\n for (let item of _data[\"quotes\"])\r\n this.quotes!.push(item);\r\n }\r\n else {\r\n this.quotes = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetQuotesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetQuotesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.quotes)) {\r\n data[\"quotes\"] = [];\r\n for (let item of this.quotes)\r\n data[\"quotes\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetQuotesResponse extends IOkApiResponse {\r\n quotes?: string[];\r\n}\r\n\r\nexport class GetQuotesRequest extends SiteRequest implements IGetQuotesRequest {\r\n\r\n constructor(data?: IGetQuotesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetQuotesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetQuotesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetQuotesRequest extends ISiteRequest {\r\n}\r\n\r\nexport class GetServiziOffertaResponse extends OkApiResponse implements IGetServiziOffertaResponse {\r\n services?: TripService[] | null;\r\n\r\n constructor(data?: IGetServiziOffertaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"services\"])) {\r\n this.services = [] as any;\r\n for (let item of _data[\"services\"])\r\n this.services!.push(TripService.fromJS(item));\r\n }\r\n else {\r\n this.services = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServiziOffertaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServiziOffertaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.services)) {\r\n data[\"services\"] = [];\r\n for (let item of this.services)\r\n data[\"services\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServiziOffertaResponse extends IOkApiResponse {\r\n services?: TripService[] | null;\r\n}\r\n\r\nexport class GetServiziOffertaRequest extends TripGetRequest implements IGetServiziOffertaRequest {\r\n\r\n constructor(data?: IGetServiziOffertaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): GetServiziOffertaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServiziOffertaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServiziOffertaRequest extends ITripGetRequest {\r\n}\r\n\r\nexport class GetServizioManualeResponse extends TripGetResponse implements IGetServizioManualeResponse {\r\n rigaServizioManuale?: OffertaDato | null;\r\n\r\n constructor(data?: IGetServizioManualeResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.rigaServizioManuale = _data[\"rigaServizioManuale\"] ? OffertaDato.fromJS(_data[\"rigaServizioManuale\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServizioManualeResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServizioManualeResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"rigaServizioManuale\"] = this.rigaServizioManuale ? this.rigaServizioManuale.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServizioManualeResponse extends ITripGetResponse {\r\n rigaServizioManuale?: OffertaDato | null;\r\n}\r\n\r\nexport class GetServizioManualeRequest extends TripGetRequest implements IGetServizioManualeRequest {\r\n servizio?: EServizioManuale;\r\n itinerarioID?: number | null;\r\n\r\n constructor(data?: IGetServizioManualeRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetServizioManualeRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetServizioManualeRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetServizioManualeRequest extends ITripGetRequest {\r\n servizio?: EServizioManuale;\r\n itinerarioID?: number | null;\r\n}\r\n\r\nexport enum EServizioManuale {\r\n ServizioManuale = \"ServizioManuale\",\r\n TariffaAerea = \"TariffaAerea\",\r\n TariffaAereaInstantPurchase = \"TariffaAereaInstantPurchase\",\r\n TasseAeroportuali = \"TasseAeroportuali\",\r\n InterventoCommerciale = \"InterventoCommerciale\",\r\n InterventoOperativo = \"InterventoOperativo\",\r\n RettificaPrezzi = \"RettificaPrezzi\",\r\n DirittiAgenzia = \"DirittiAgenzia\",\r\n Traghetti = \"Traghetti\",\r\n}\r\n\r\nexport class GetTripSkelethonResponse extends TripGetResponse implements IGetTripSkelethonResponse {\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n tipologiaID?: number | null;\r\n trattamentoID?: number | null;\r\n tipologiaKey?: string | null;\r\n partenza?: string | null;\r\n luogoServizioTappaID?: number | null;\r\n tipologieDisponibili?: TripCreateType[] | null;\r\n richiediQuotazione?: boolean;\r\n roomsDef?: string;\r\n roomsDefDefault?: boolean;\r\n fromQuotationID?: number | null;\r\n\r\n constructor(data?: IGetTripSkelethonResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.servizio = _data[\"servizio\"] !== undefined ? _data[\"servizio\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.tipologiaKey = _data[\"tipologiaKey\"] !== undefined ? _data[\"tipologiaKey\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.luogoServizioTappaID = _data[\"luogoServizioTappaID\"] !== undefined ? _data[\"luogoServizioTappaID\"] : null;\r\n if (Array.isArray(_data[\"tipologieDisponibili\"])) {\r\n this.tipologieDisponibili = [] as any;\r\n for (let item of _data[\"tipologieDisponibili\"])\r\n this.tipologieDisponibili!.push(TripCreateType.fromJS(item));\r\n }\r\n else {\r\n this.tipologieDisponibili = null;\r\n }\r\n this.richiediQuotazione = _data[\"richiediQuotazione\"] !== undefined ? _data[\"richiediQuotazione\"] : null;\r\n this.roomsDef = _data[\"roomsDef\"] !== undefined ? _data[\"roomsDef\"] : null;\r\n this.roomsDefDefault = _data[\"roomsDefDefault\"] !== undefined ? _data[\"roomsDefDefault\"] : null;\r\n this.fromQuotationID = _data[\"fromQuotationID\"] !== undefined ? _data[\"fromQuotationID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripSkelethonResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripSkelethonResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"servizio\"] = this.servizio !== undefined ? this.servizio : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"tipologiaKey\"] = this.tipologiaKey !== undefined ? this.tipologiaKey : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"luogoServizioTappaID\"] = this.luogoServizioTappaID !== undefined ? this.luogoServizioTappaID : null;\r\n if (Array.isArray(this.tipologieDisponibili)) {\r\n data[\"tipologieDisponibili\"] = [];\r\n for (let item of this.tipologieDisponibili)\r\n data[\"tipologieDisponibili\"].push(item.toJSON());\r\n }\r\n data[\"richiediQuotazione\"] = this.richiediQuotazione !== undefined ? this.richiediQuotazione : null;\r\n data[\"roomsDef\"] = this.roomsDef !== undefined ? this.roomsDef : null;\r\n data[\"roomsDefDefault\"] = this.roomsDefDefault !== undefined ? this.roomsDefDefault : null;\r\n data[\"fromQuotationID\"] = this.fromQuotationID !== undefined ? this.fromQuotationID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripSkelethonResponse extends ITripGetResponse {\r\n servizioID?: number | null;\r\n servizio?: string | null;\r\n tipologiaID?: number | null;\r\n trattamentoID?: number | null;\r\n tipologiaKey?: string | null;\r\n partenza?: string | null;\r\n luogoServizioTappaID?: number | null;\r\n tipologieDisponibili?: TripCreateType[] | null;\r\n richiediQuotazione?: boolean;\r\n roomsDef?: string;\r\n roomsDefDefault?: boolean;\r\n fromQuotationID?: number | null;\r\n}\r\n\r\nexport class TripCreateType implements ITripCreateType {\r\n key?: string;\r\n tipologiaID?: number;\r\n nome?: string;\r\n trattamentoID?: number | null;\r\n trattamento?: string | null;\r\n aPartireDa?: number | null;\r\n\r\n constructor(data?: ITripCreateType) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.key = _data[\"key\"] !== undefined ? _data[\"key\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.trattamentoID = _data[\"trattamentoID\"] !== undefined ? _data[\"trattamentoID\"] : null;\r\n this.trattamento = _data[\"trattamento\"] !== undefined ? _data[\"trattamento\"] : null;\r\n this.aPartireDa = _data[\"aPartireDa\"] !== undefined ? _data[\"aPartireDa\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripCreateType {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripCreateType();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"key\"] = this.key !== undefined ? this.key : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"trattamentoID\"] = this.trattamentoID !== undefined ? this.trattamentoID : null;\r\n data[\"trattamento\"] = this.trattamento !== undefined ? this.trattamento : null;\r\n data[\"aPartireDa\"] = this.aPartireDa !== undefined ? this.aPartireDa : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripCreateType {\r\n key?: string;\r\n tipologiaID?: number;\r\n nome?: string;\r\n trattamentoID?: number | null;\r\n trattamento?: string | null;\r\n aPartireDa?: number | null;\r\n}\r\n\r\nexport class GetTripSkelethonRequest extends SiteRequest implements IGetTripSkelethonRequest {\r\n nomeCameraFormat!: string;\r\n nomeAdultoFormat!: string;\r\n nomeBambinoFormat!: string;\r\n offerta?: OffertaBase;\r\n servizioID?: number | null;\r\n tipologiaID?: number | null;\r\n itinerarioID?: number | null;\r\n quotationID?: number | null;\r\n partenza?: string | null;\r\n notti?: number | null;\r\n soloItinerario?: boolean;\r\n luogoID?: number | null;\r\n roomsDef?: string | null;\r\n\r\n constructor(data?: IGetTripSkelethonRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.nomeCameraFormat = _data[\"nomeCameraFormat\"] !== undefined ? _data[\"nomeCameraFormat\"] : null;\r\n this.nomeAdultoFormat = _data[\"nomeAdultoFormat\"] !== undefined ? _data[\"nomeAdultoFormat\"] : null;\r\n this.nomeBambinoFormat = _data[\"nomeBambinoFormat\"] !== undefined ? _data[\"nomeBambinoFormat\"] : null;\r\n this.offerta = _data[\"offerta\"] ? OffertaBase.fromJS(_data[\"offerta\"]) : null;\r\n this.servizioID = _data[\"servizioID\"] !== undefined ? _data[\"servizioID\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.itinerarioID = _data[\"itinerarioID\"] !== undefined ? _data[\"itinerarioID\"] : null;\r\n this.quotationID = _data[\"quotationID\"] !== undefined ? _data[\"quotationID\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.notti = _data[\"notti\"] !== undefined ? _data[\"notti\"] : null;\r\n this.soloItinerario = _data[\"soloItinerario\"] !== undefined ? _data[\"soloItinerario\"] : null;\r\n this.luogoID = _data[\"luogoID\"] !== undefined ? _data[\"luogoID\"] : null;\r\n this.roomsDef = _data[\"roomsDef\"] !== undefined ? _data[\"roomsDef\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetTripSkelethonRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetTripSkelethonRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"nomeCameraFormat\"] = this.nomeCameraFormat !== undefined ? this.nomeCameraFormat : null;\r\n data[\"nomeAdultoFormat\"] = this.nomeAdultoFormat !== undefined ? this.nomeAdultoFormat : null;\r\n data[\"nomeBambinoFormat\"] = this.nomeBambinoFormat !== undefined ? this.nomeBambinoFormat : null;\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n data[\"servizioID\"] = this.servizioID !== undefined ? this.servizioID : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"itinerarioID\"] = this.itinerarioID !== undefined ? this.itinerarioID : null;\r\n data[\"quotationID\"] = this.quotationID !== undefined ? this.quotationID : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"notti\"] = this.notti !== undefined ? this.notti : null;\r\n data[\"soloItinerario\"] = this.soloItinerario !== undefined ? this.soloItinerario : null;\r\n data[\"luogoID\"] = this.luogoID !== undefined ? this.luogoID : null;\r\n data[\"roomsDef\"] = this.roomsDef !== undefined ? this.roomsDef : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetTripSkelethonRequest extends ISiteRequest {\r\n nomeCameraFormat: string;\r\n nomeAdultoFormat: string;\r\n nomeBambinoFormat: string;\r\n offerta?: OffertaBase;\r\n servizioID?: number | null;\r\n tipologiaID?: number | null;\r\n itinerarioID?: number | null;\r\n quotationID?: number | null;\r\n partenza?: string | null;\r\n notti?: number | null;\r\n soloItinerario?: boolean;\r\n luogoID?: number | null;\r\n roomsDef?: string | null;\r\n}\r\n\r\nexport abstract class OffertaBase implements IOffertaBase {\r\n offertaID?: number;\r\n riferimento?: number;\r\n descrizione?: string | null;\r\n destinazioneID?: number | null;\r\n creazione?: string;\r\n partenza?: string;\r\n tipo?: ETipoViaggio | null;\r\n impiegatoUtenteID?: number;\r\n totale?: number | null;\r\n totaleCommissione?: number | null;\r\n totaleCommissioneCee?: number | null;\r\n totaleCosto?: number | null;\r\n operatore?: EOperatore;\r\n codiceAeroportoPartenza?: string | null;\r\n note?: string | null;\r\n numeroPax?: number | null;\r\n versione?: number;\r\n cookie?: string | null;\r\n nozze?: boolean;\r\n templateID?: number | null;\r\n tipologiaID?: number | null;\r\n offertaOrigineID?: number | null;\r\n titoloViaggio?: string | null;\r\n\r\n constructor(data?: IOffertaBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.riferimento = _data[\"riferimento\"] !== undefined ? _data[\"riferimento\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.destinazioneID = _data[\"destinazioneID\"] !== undefined ? _data[\"destinazioneID\"] : null;\r\n this.creazione = _data[\"creazione\"] !== undefined ? _data[\"creazione\"] : null;\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n this.tipo = _data[\"tipo\"] !== undefined ? _data[\"tipo\"] : null;\r\n this.impiegatoUtenteID = _data[\"impiegatoUtenteID\"] !== undefined ? _data[\"impiegatoUtenteID\"] : null;\r\n this.totale = _data[\"totale\"] !== undefined ? _data[\"totale\"] : null;\r\n this.totaleCommissione = _data[\"totaleCommissione\"] !== undefined ? _data[\"totaleCommissione\"] : null;\r\n this.totaleCommissioneCee = _data[\"totaleCommissioneCee\"] !== undefined ? _data[\"totaleCommissioneCee\"] : null;\r\n this.totaleCosto = _data[\"totaleCosto\"] !== undefined ? _data[\"totaleCosto\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.codiceAeroportoPartenza = _data[\"codiceAeroportoPartenza\"] !== undefined ? _data[\"codiceAeroportoPartenza\"] : null;\r\n this.note = _data[\"note\"] !== undefined ? _data[\"note\"] : null;\r\n this.numeroPax = _data[\"numeroPax\"] !== undefined ? _data[\"numeroPax\"] : null;\r\n this.versione = _data[\"versione\"] !== undefined ? _data[\"versione\"] : null;\r\n this.cookie = _data[\"cookie\"] !== undefined ? _data[\"cookie\"] : null;\r\n this.nozze = _data[\"nozze\"] !== undefined ? _data[\"nozze\"] : null;\r\n this.templateID = _data[\"templateID\"] !== undefined ? _data[\"templateID\"] : null;\r\n this.tipologiaID = _data[\"tipologiaID\"] !== undefined ? _data[\"tipologiaID\"] : null;\r\n this.offertaOrigineID = _data[\"offertaOrigineID\"] !== undefined ? _data[\"offertaOrigineID\"] : null;\r\n this.titoloViaggio = _data[\"titoloViaggio\"] !== undefined ? _data[\"titoloViaggio\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): OffertaBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'OffertaBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"riferimento\"] = this.riferimento !== undefined ? this.riferimento : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"destinazioneID\"] = this.destinazioneID !== undefined ? this.destinazioneID : null;\r\n data[\"creazione\"] = this.creazione !== undefined ? this.creazione : null;\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n data[\"tipo\"] = this.tipo !== undefined ? this.tipo : null;\r\n data[\"impiegatoUtenteID\"] = this.impiegatoUtenteID !== undefined ? this.impiegatoUtenteID : null;\r\n data[\"totale\"] = this.totale !== undefined ? this.totale : null;\r\n data[\"totaleCommissione\"] = this.totaleCommissione !== undefined ? this.totaleCommissione : null;\r\n data[\"totaleCommissioneCee\"] = this.totaleCommissioneCee !== undefined ? this.totaleCommissioneCee : null;\r\n data[\"totaleCosto\"] = this.totaleCosto !== undefined ? this.totaleCosto : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"codiceAeroportoPartenza\"] = this.codiceAeroportoPartenza !== undefined ? this.codiceAeroportoPartenza : null;\r\n data[\"note\"] = this.note !== undefined ? this.note : null;\r\n data[\"numeroPax\"] = this.numeroPax !== undefined ? this.numeroPax : null;\r\n data[\"versione\"] = this.versione !== undefined ? this.versione : null;\r\n data[\"cookie\"] = this.cookie !== undefined ? this.cookie : null;\r\n data[\"nozze\"] = this.nozze !== undefined ? this.nozze : null;\r\n data[\"templateID\"] = this.templateID !== undefined ? this.templateID : null;\r\n data[\"tipologiaID\"] = this.tipologiaID !== undefined ? this.tipologiaID : null;\r\n data[\"offertaOrigineID\"] = this.offertaOrigineID !== undefined ? this.offertaOrigineID : null;\r\n data[\"titoloViaggio\"] = this.titoloViaggio !== undefined ? this.titoloViaggio : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IOffertaBase {\r\n offertaID?: number;\r\n riferimento?: number;\r\n descrizione?: string | null;\r\n destinazioneID?: number | null;\r\n creazione?: string;\r\n partenza?: string;\r\n tipo?: ETipoViaggio | null;\r\n impiegatoUtenteID?: number;\r\n totale?: number | null;\r\n totaleCommissione?: number | null;\r\n totaleCommissioneCee?: number | null;\r\n totaleCosto?: number | null;\r\n operatore?: EOperatore;\r\n codiceAeroportoPartenza?: string | null;\r\n note?: string | null;\r\n numeroPax?: number | null;\r\n versione?: number;\r\n cookie?: string | null;\r\n nozze?: boolean;\r\n templateID?: number | null;\r\n tipologiaID?: number | null;\r\n offertaOrigineID?: number | null;\r\n titoloViaggio?: string | null;\r\n}\r\n\r\nexport class InviaDocumentiRequest extends TripGetRequest implements IInviaDocumentiRequest {\r\n recipient?: string | null;\r\n documentiId?: number[] | null;\r\n testo?: string | null;\r\n nomiDocumenti?: { [key in keyof typeof ETipoDocumento]?: string; } | null;\r\n\r\n constructor(data?: IInviaDocumentiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.recipient = _data[\"recipient\"] !== undefined ? _data[\"recipient\"] : null;\r\n if (Array.isArray(_data[\"documentiId\"])) {\r\n this.documentiId = [] as any;\r\n for (let item of _data[\"documentiId\"])\r\n this.documentiId!.push(item);\r\n }\r\n else {\r\n this.documentiId = null;\r\n }\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n if (_data[\"nomiDocumenti\"]) {\r\n this.nomiDocumenti = {} as any;\r\n for (let key in _data[\"nomiDocumenti\"]) {\r\n if (_data[\"nomiDocumenti\"].hasOwnProperty(key))\r\n (this.nomiDocumenti)![key] = _data[\"nomiDocumenti\"][key] !== undefined ? _data[\"nomiDocumenti\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomiDocumenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InviaDocumentiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InviaDocumentiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"recipient\"] = this.recipient !== undefined ? this.recipient : null;\r\n if (Array.isArray(this.documentiId)) {\r\n data[\"documentiId\"] = [];\r\n for (let item of this.documentiId)\r\n data[\"documentiId\"].push(item);\r\n }\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n if (this.nomiDocumenti) {\r\n data[\"nomiDocumenti\"] = {};\r\n for (let key in this.nomiDocumenti) {\r\n if (this.nomiDocumenti.hasOwnProperty(key))\r\n (data[\"nomiDocumenti\"])[key] = this.nomiDocumenti[key] !== undefined ? this.nomiDocumenti[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInviaDocumentiRequest extends ITripGetRequest {\r\n recipient?: string | null;\r\n documentiId?: number[] | null;\r\n testo?: string | null;\r\n nomiDocumenti?: { [key in keyof typeof ETipoDocumento]?: string; } | null;\r\n}\r\n\r\nexport class InviaDocumentoAgenziaRequest extends TripGetRequest implements IInviaDocumentoAgenziaRequest {\r\n tipoDocumento?: ETipoDocumento;\r\n recipient?: string | null;\r\n cc?: string | null;\r\n testo?: string | null;\r\n nomiDocumenti?: { [key in keyof typeof ETipoDocumento]?: string; } | null;\r\n\r\n constructor(data?: IInviaDocumentoAgenziaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.tipoDocumento = _data[\"tipoDocumento\"] !== undefined ? _data[\"tipoDocumento\"] : null;\r\n this.recipient = _data[\"recipient\"] !== undefined ? _data[\"recipient\"] : null;\r\n this.cc = _data[\"cc\"] !== undefined ? _data[\"cc\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n if (_data[\"nomiDocumenti\"]) {\r\n this.nomiDocumenti = {} as any;\r\n for (let key in _data[\"nomiDocumenti\"]) {\r\n if (_data[\"nomiDocumenti\"].hasOwnProperty(key))\r\n (this.nomiDocumenti)![key] = _data[\"nomiDocumenti\"][key] !== undefined ? _data[\"nomiDocumenti\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomiDocumenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): InviaDocumentoAgenziaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InviaDocumentoAgenziaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoDocumento\"] = this.tipoDocumento !== undefined ? this.tipoDocumento : null;\r\n data[\"recipient\"] = this.recipient !== undefined ? this.recipient : null;\r\n data[\"cc\"] = this.cc !== undefined ? this.cc : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n if (this.nomiDocumenti) {\r\n data[\"nomiDocumenti\"] = {};\r\n for (let key in this.nomiDocumenti) {\r\n if (this.nomiDocumenti.hasOwnProperty(key))\r\n (data[\"nomiDocumenti\"])[key] = this.nomiDocumenti[key] !== undefined ? this.nomiDocumenti[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInviaDocumentoAgenziaRequest extends ITripGetRequest {\r\n tipoDocumento?: ETipoDocumento;\r\n recipient?: string | null;\r\n cc?: string | null;\r\n testo?: string | null;\r\n nomiDocumenti?: { [key in keyof typeof ETipoDocumento]?: string; } | null;\r\n}\r\n\r\nexport class InviaQuotationReadyRequest extends SiteRequest implements IInviaQuotationReadyRequest {\r\n offertaID!: number;\r\n recipient!: string;\r\n recipientID!: number;\r\n quotationLink!: string;\r\n checkFileExistence?: boolean;\r\n\r\n constructor(data?: IInviaQuotationReadyRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.recipient = _data[\"recipient\"] !== undefined ? _data[\"recipient\"] : null;\r\n this.recipientID = _data[\"recipientID\"] !== undefined ? _data[\"recipientID\"] : null;\r\n this.quotationLink = _data[\"quotationLink\"] !== undefined ? _data[\"quotationLink\"] : null;\r\n this.checkFileExistence = _data[\"checkFileExistence\"] !== undefined ? _data[\"checkFileExistence\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InviaQuotationReadyRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InviaQuotationReadyRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"recipient\"] = this.recipient !== undefined ? this.recipient : null;\r\n data[\"recipientID\"] = this.recipientID !== undefined ? this.recipientID : null;\r\n data[\"quotationLink\"] = this.quotationLink !== undefined ? this.quotationLink : null;\r\n data[\"checkFileExistence\"] = this.checkFileExistence !== undefined ? this.checkFileExistence : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInviaQuotationReadyRequest extends ISiteRequest {\r\n offertaID: number;\r\n recipient: string;\r\n recipientID: number;\r\n quotationLink: string;\r\n checkFileExistence?: boolean;\r\n}\r\n\r\nexport class InviaVoucherRequest extends TripGetRequest implements IInviaVoucherRequest {\r\n recipient?: string | null;\r\n voucherIds?: number[] | null;\r\n testo?: string | null;\r\n\r\n constructor(data?: IInviaVoucherRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.recipient = _data[\"recipient\"] !== undefined ? _data[\"recipient\"] : null;\r\n if (Array.isArray(_data[\"voucherIds\"])) {\r\n this.voucherIds = [] as any;\r\n for (let item of _data[\"voucherIds\"])\r\n this.voucherIds!.push(item);\r\n }\r\n else {\r\n this.voucherIds = null;\r\n }\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InviaVoucherRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InviaVoucherRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"recipient\"] = this.recipient !== undefined ? this.recipient : null;\r\n if (Array.isArray(this.voucherIds)) {\r\n data[\"voucherIds\"] = [];\r\n for (let item of this.voucherIds)\r\n data[\"voucherIds\"].push(item);\r\n }\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInviaVoucherRequest extends ITripGetRequest {\r\n recipient?: string | null;\r\n voucherIds?: number[] | null;\r\n testo?: string | null;\r\n}\r\n\r\nexport class RecalcAnticipoFornitoreResponse extends OkApiResponse implements IRecalcAnticipoFornitoreResponse {\r\n riga?: OffertaDato;\r\n stato?: OffertaDatoStato;\r\n nomeRegola?: string | null;\r\n\r\n constructor(data?: IRecalcAnticipoFornitoreResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n this.stato = _data[\"stato\"] ? OffertaDatoStato.fromJS(_data[\"stato\"]) : null;\r\n this.nomeRegola = _data[\"nomeRegola\"] !== undefined ? _data[\"nomeRegola\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RecalcAnticipoFornitoreResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RecalcAnticipoFornitoreResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"nomeRegola\"] = this.nomeRegola !== undefined ? this.nomeRegola : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRecalcAnticipoFornitoreResponse extends IOkApiResponse {\r\n riga?: OffertaDato;\r\n stato?: OffertaDatoStato;\r\n nomeRegola?: string | null;\r\n}\r\n\r\nexport class RecalcAnticipoFornitoreRequest extends SiteRequest implements IRecalcAnticipoFornitoreRequest {\r\n riga!: OffertaDato;\r\n stato!: OffertaDatoStato;\r\n\r\n constructor(data?: IRecalcAnticipoFornitoreRequest) {\r\n super(data);\r\n if (!data) {\r\n this.riga = new OffertaDato();\r\n this.stato = new OffertaDatoStato();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : new OffertaDato();\r\n this.stato = _data[\"stato\"] ? OffertaDatoStato.fromJS(_data[\"stato\"]) : new OffertaDatoStato();\r\n }\r\n }\r\n\r\n static fromJS(data: any): RecalcAnticipoFornitoreRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RecalcAnticipoFornitoreRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRecalcAnticipoFornitoreRequest extends ISiteRequest {\r\n riga: OffertaDato;\r\n stato: OffertaDatoStato;\r\n}\r\n\r\nexport class RecalcPricesResponse extends OkApiResponse implements IRecalcPricesResponse {\r\n riga?: OffertaDato | null;\r\n\r\n constructor(data?: IRecalcPricesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RecalcPricesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RecalcPricesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRecalcPricesResponse extends IOkApiResponse {\r\n riga?: OffertaDato | null;\r\n}\r\n\r\nexport class RecalcPricesRequest extends SiteRequest implements IRecalcPricesRequest {\r\n riga?: OffertaDato | null;\r\n moltiplicaPax?: boolean;\r\n\r\n constructor(data?: IRecalcPricesRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n this.moltiplicaPax = _data[\"moltiplicaPax\"] !== undefined ? _data[\"moltiplicaPax\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RecalcPricesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RecalcPricesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"moltiplicaPax\"] = this.moltiplicaPax !== undefined ? this.moltiplicaPax : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRecalcPricesRequest extends ISiteRequest {\r\n riga?: OffertaDato | null;\r\n moltiplicaPax?: boolean;\r\n}\r\n\r\nexport class ResetVerificaPaxVoloRequest extends TripGetRequest implements IResetVerificaPaxVoloRequest {\r\n /** ID del volo del quale resettare il flag */\r\n voloID?: number;\r\n\r\n constructor(data?: IResetVerificaPaxVoloRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.voloID = _data[\"voloID\"] !== undefined ? _data[\"voloID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ResetVerificaPaxVoloRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ResetVerificaPaxVoloRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voloID\"] = this.voloID !== undefined ? this.voloID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IResetVerificaPaxVoloRequest extends ITripGetRequest {\r\n /** ID del volo del quale resettare il flag */\r\n voloID?: number;\r\n}\r\n\r\nexport class RichiestaSupportoBookingRequest extends TripGetRequest implements IRichiestaSupportoBookingRequest {\r\n messaggio!: string;\r\n teamID?: number | null;\r\n\r\n constructor(data?: IRichiestaSupportoBookingRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.messaggio = _data[\"messaggio\"] !== undefined ? _data[\"messaggio\"] : null;\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): RichiestaSupportoBookingRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RichiestaSupportoBookingRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"messaggio\"] = this.messaggio !== undefined ? this.messaggio : null;\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRichiestaSupportoBookingRequest extends ITripGetRequest {\r\n messaggio: string;\r\n teamID?: number | null;\r\n}\r\n\r\nexport class SbloccaConfermaRequest extends TripGetRequest implements ISbloccaConfermaRequest {\r\n righeDaSbloccareIDs?: number[];\r\n\r\n constructor(data?: ISbloccaConfermaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"righeDaSbloccareIDs\"])) {\r\n this.righeDaSbloccareIDs = [] as any;\r\n for (let item of _data[\"righeDaSbloccareIDs\"])\r\n this.righeDaSbloccareIDs!.push(item);\r\n }\r\n else {\r\n this.righeDaSbloccareIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SbloccaConfermaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SbloccaConfermaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.righeDaSbloccareIDs)) {\r\n data[\"righeDaSbloccareIDs\"] = [];\r\n for (let item of this.righeDaSbloccareIDs)\r\n data[\"righeDaSbloccareIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISbloccaConfermaRequest extends ITripGetRequest {\r\n righeDaSbloccareIDs?: number[];\r\n}\r\n\r\nexport class SbloccaItinerarioRequest extends TripGetRequest implements ISbloccaItinerarioRequest {\r\n\r\n constructor(data?: ISbloccaItinerarioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): SbloccaItinerarioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SbloccaItinerarioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISbloccaItinerarioRequest extends ITripGetRequest {\r\n}\r\n\r\nexport class UpdateRequest extends TripGetRequest implements IUpdateRequest {\r\n offerta?: OffertaBase | null;\r\n\r\n constructor(data?: IUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offerta = _data[\"offerta\"] ? OffertaBase.fromJS(_data[\"offerta\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offerta\"] = this.offerta ? this.offerta.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateRequest extends ITripGetRequest {\r\n offerta?: OffertaBase | null;\r\n}\r\n\r\nexport class UpdateAgenziaRequest extends TripGetRequest implements IUpdateAgenziaRequest {\r\n /** Entità dell'offerta agenzia */\r\n offertaAgenzia?: OffertaAgenzia | null;\r\n /** Elenco degli id dei tag da assegnare */\r\n tagIds?: number[] | null;\r\n\r\n constructor(data?: IUpdateAgenziaRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaAgenzia = _data[\"offertaAgenzia\"] ? OffertaAgenzia.fromJS(_data[\"offertaAgenzia\"]) : null;\r\n if (Array.isArray(_data[\"tagIds\"])) {\r\n this.tagIds = [] as any;\r\n for (let item of _data[\"tagIds\"])\r\n this.tagIds!.push(item);\r\n }\r\n else {\r\n this.tagIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateAgenziaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateAgenziaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaAgenzia\"] = this.offertaAgenzia ? this.offertaAgenzia.toJSON() : null;\r\n if (Array.isArray(this.tagIds)) {\r\n data[\"tagIds\"] = [];\r\n for (let item of this.tagIds)\r\n data[\"tagIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateAgenziaRequest extends ITripGetRequest {\r\n /** Entità dell'offerta agenzia */\r\n offertaAgenzia?: OffertaAgenzia | null;\r\n /** Elenco degli id dei tag da assegnare */\r\n tagIds?: number[] | null;\r\n}\r\n\r\nexport class UpdateCamereSempliciRequest extends TripGetRequest implements IUpdateCamereSempliciRequest {\r\n camere?: CameraConClienti[] | null;\r\n\r\n constructor(data?: IUpdateCamereSempliciRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"camere\"])) {\r\n this.camere = [] as any;\r\n for (let item of _data[\"camere\"])\r\n this.camere!.push(CameraConClienti.fromJS(item));\r\n }\r\n else {\r\n this.camere = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateCamereSempliciRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateCamereSempliciRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.camere)) {\r\n data[\"camere\"] = [];\r\n for (let item of this.camere)\r\n data[\"camere\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateCamereSempliciRequest extends ITripGetRequest {\r\n camere?: CameraConClienti[] | null;\r\n}\r\n\r\nexport class UpdateCamereCompletoRequest extends UpdateCamereSempliciRequest implements IUpdateCamereCompletoRequest {\r\n\r\n constructor(data?: IUpdateCamereCompletoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UpdateCamereCompletoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateCamereCompletoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateCamereCompletoRequest extends IUpdateCamereSempliciRequest {\r\n}\r\n\r\nexport class CameraConClienti implements ICameraConClienti {\r\n abbinamento?: Abbinamento | null;\r\n clienti?: Cliente[] | null;\r\n\r\n constructor(data?: ICameraConClienti) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.abbinamento = _data[\"abbinamento\"] ? Abbinamento.fromJS(_data[\"abbinamento\"]) : null;\r\n if (Array.isArray(_data[\"clienti\"])) {\r\n this.clienti = [] as any;\r\n for (let item of _data[\"clienti\"])\r\n this.clienti!.push(Cliente.fromJS(item));\r\n }\r\n else {\r\n this.clienti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): CameraConClienti {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CameraConClienti();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"abbinamento\"] = this.abbinamento ? this.abbinamento.toJSON() : null;\r\n if (Array.isArray(this.clienti)) {\r\n data[\"clienti\"] = [];\r\n for (let item of this.clienti)\r\n data[\"clienti\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICameraConClienti {\r\n abbinamento?: Abbinamento | null;\r\n clienti?: Cliente[] | null;\r\n}\r\n\r\nexport class UpdateClientiRequest extends TripGetRequest implements IUpdateClientiRequest {\r\n clienti?: ClienteDatoUpdate[] | null;\r\n\r\n constructor(data?: IUpdateClientiRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"clienti\"])) {\r\n this.clienti = [] as any;\r\n for (let item of _data[\"clienti\"])\r\n this.clienti!.push(ClienteDatoUpdate.fromJS(item));\r\n }\r\n else {\r\n this.clienti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateClientiRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateClientiRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.clienti)) {\r\n data[\"clienti\"] = [];\r\n for (let item of this.clienti)\r\n data[\"clienti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateClientiRequest extends ITripGetRequest {\r\n clienti?: ClienteDatoUpdate[] | null;\r\n}\r\n\r\nexport class UpdateConfirmDataRequest extends TripGetRequest implements IUpdateConfirmDataRequest {\r\n datiConferme!: DatiConfermaRiga[];\r\n\r\n constructor(data?: IUpdateConfirmDataRequest) {\r\n super(data);\r\n if (!data) {\r\n this.datiConferme = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"datiConferme\"])) {\r\n this.datiConferme = [] as any;\r\n for (let item of _data[\"datiConferme\"])\r\n this.datiConferme!.push(DatiConfermaRiga.fromJS(item));\r\n }\r\n else {\r\n this.datiConferme = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateConfirmDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateConfirmDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.datiConferme)) {\r\n data[\"datiConferme\"] = [];\r\n for (let item of this.datiConferme)\r\n data[\"datiConferme\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateConfirmDataRequest extends ITripGetRequest {\r\n datiConferme: DatiConfermaRiga[];\r\n}\r\n\r\nexport class UpdateDocumentDataRequest extends TripGetRequest implements IUpdateDocumentDataRequest {\r\n datiDocumenti!: DatiDocumentoRiga[];\r\n\r\n constructor(data?: IUpdateDocumentDataRequest) {\r\n super(data);\r\n if (!data) {\r\n this.datiDocumenti = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"datiDocumenti\"])) {\r\n this.datiDocumenti = [] as any;\r\n for (let item of _data[\"datiDocumenti\"])\r\n this.datiDocumenti!.push(DatiDocumentoRiga.fromJS(item));\r\n }\r\n else {\r\n this.datiDocumenti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateDocumentDataRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateDocumentDataRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.datiDocumenti)) {\r\n data[\"datiDocumenti\"] = [];\r\n for (let item of this.datiDocumenti)\r\n data[\"datiDocumenti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateDocumentDataRequest extends ITripGetRequest {\r\n datiDocumenti: DatiDocumentoRiga[];\r\n}\r\n\r\nexport class UpdateFlightsTicketsRequest extends GetFlightsTicketsRequest implements IUpdateFlightsTicketsRequest {\r\n tickets!: VoloTickets[];\r\n\r\n constructor(data?: IUpdateFlightsTicketsRequest) {\r\n super(data);\r\n if (!data) {\r\n this.tickets = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"tickets\"])) {\r\n this.tickets = [] as any;\r\n for (let item of _data[\"tickets\"])\r\n this.tickets!.push(VoloTickets.fromJS(item));\r\n }\r\n else {\r\n this.tickets = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateFlightsTicketsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateFlightsTicketsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.tickets)) {\r\n data[\"tickets\"] = [];\r\n for (let item of this.tickets)\r\n data[\"tickets\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateFlightsTicketsRequest extends IGetFlightsTicketsRequest {\r\n tickets: VoloTickets[];\r\n}\r\n\r\nexport class UpdateItinerarioCompletoRequest extends TripGetRequest implements IUpdateItinerarioCompletoRequest {\r\n partenza?: string;\r\n itinerario?: OffertaItinerario[] | null;\r\n eliminaServiziSuCambioLuogo?: boolean;\r\n aggiustaServizi?: boolean;\r\n\r\n constructor(data?: IUpdateItinerarioCompletoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.partenza = _data[\"partenza\"] !== undefined ? _data[\"partenza\"] : null;\r\n if (Array.isArray(_data[\"itinerario\"])) {\r\n this.itinerario = [] as any;\r\n for (let item of _data[\"itinerario\"])\r\n this.itinerario!.push(OffertaItinerario.fromJS(item));\r\n }\r\n else {\r\n this.itinerario = null;\r\n }\r\n this.eliminaServiziSuCambioLuogo = _data[\"eliminaServiziSuCambioLuogo\"] !== undefined ? _data[\"eliminaServiziSuCambioLuogo\"] : null;\r\n this.aggiustaServizi = _data[\"aggiustaServizi\"] !== undefined ? _data[\"aggiustaServizi\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateItinerarioCompletoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateItinerarioCompletoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"partenza\"] = this.partenza !== undefined ? this.partenza : null;\r\n if (Array.isArray(this.itinerario)) {\r\n data[\"itinerario\"] = [];\r\n for (let item of this.itinerario)\r\n data[\"itinerario\"].push(item.toJSON());\r\n }\r\n data[\"eliminaServiziSuCambioLuogo\"] = this.eliminaServiziSuCambioLuogo !== undefined ? this.eliminaServiziSuCambioLuogo : null;\r\n data[\"aggiustaServizi\"] = this.aggiustaServizi !== undefined ? this.aggiustaServizi : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateItinerarioCompletoRequest extends ITripGetRequest {\r\n partenza?: string;\r\n itinerario?: OffertaItinerario[] | null;\r\n eliminaServiziSuCambioLuogo?: boolean;\r\n aggiustaServizi?: boolean;\r\n}\r\n\r\nexport class UpdateRigaResponse extends TripGetResponse implements IUpdateRigaResponse {\r\n /** Entità della riga salvata */\r\n riga?: OffertaDato | null;\r\n /** Entità dello status salvato */\r\n stato?: OffertaDatoStato | null;\r\n /** Dati Host-2-Host e aggiuntivi */\r\n datiH2H?: OffertaDatoH2H | null;\r\n /** Dati del servizio utili alla UI */\r\n servizio?: TripService | null;\r\n\r\n constructor(data?: IUpdateRigaResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : null;\r\n this.stato = _data[\"stato\"] ? OffertaDatoStato.fromJS(_data[\"stato\"]) : null;\r\n this.datiH2H = _data[\"datiH2H\"] ? OffertaDatoH2H.fromJS(_data[\"datiH2H\"]) : null;\r\n this.servizio = _data[\"servizio\"] ? TripService.fromJS(_data[\"servizio\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateRigaResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateRigaResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"datiH2H\"] = this.datiH2H ? this.datiH2H.toJSON() : null;\r\n data[\"servizio\"] = this.servizio ? this.servizio.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateRigaResponse extends ITripGetResponse {\r\n /** Entità della riga salvata */\r\n riga?: OffertaDato | null;\r\n /** Entità dello status salvato */\r\n stato?: OffertaDatoStato | null;\r\n /** Dati Host-2-Host e aggiuntivi */\r\n datiH2H?: OffertaDatoH2H | null;\r\n /** Dati del servizio utili alla UI */\r\n servizio?: TripService | null;\r\n}\r\n\r\nexport class UpdateRigaRequest extends TripGetRequest implements IUpdateRigaRequest {\r\n riga!: OffertaDato;\r\n stato?: OffertaDatoStato | null;\r\n datiH2H?: OffertaDatoH2H | null;\r\n\r\n constructor(data?: IUpdateRigaRequest) {\r\n super(data);\r\n if (!data) {\r\n this.riga = new OffertaDato();\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.riga = _data[\"riga\"] ? OffertaDato.fromJS(_data[\"riga\"]) : new OffertaDato();\r\n this.stato = _data[\"stato\"] ? OffertaDatoStato.fromJS(_data[\"stato\"]) : null;\r\n this.datiH2H = _data[\"datiH2H\"] ? OffertaDatoH2H.fromJS(_data[\"datiH2H\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateRigaRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateRigaRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"riga\"] = this.riga ? this.riga.toJSON() : null;\r\n data[\"stato\"] = this.stato ? this.stato.toJSON() : null;\r\n data[\"datiH2H\"] = this.datiH2H ? this.datiH2H.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateRigaRequest extends ITripGetRequest {\r\n riga: OffertaDato;\r\n stato?: OffertaDatoStato | null;\r\n datiH2H?: OffertaDatoH2H | null;\r\n}\r\n\r\nexport class UpdateStatoRequest extends TripGetRequest implements IUpdateStatoRequest {\r\n offertaAgenziaStato?: OffertaAgenziaStato | null;\r\n\r\n constructor(data?: IUpdateStatoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaAgenziaStato = _data[\"offertaAgenziaStato\"] ? OffertaAgenziaStato.fromJS(_data[\"offertaAgenziaStato\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateStatoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateStatoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaAgenziaStato\"] = this.offertaAgenziaStato ? this.offertaAgenziaStato.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateStatoRequest extends ITripGetRequest {\r\n offertaAgenziaStato?: OffertaAgenziaStato | null;\r\n}\r\n\r\nexport class UpdateStatoPreventivoRequest extends TripGetRequest implements IUpdateStatoPreventivoRequest {\r\n statusPreventivo?: EStatusPreventivo;\r\n\r\n constructor(data?: IUpdateStatoPreventivoRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.statusPreventivo = _data[\"statusPreventivo\"] !== undefined ? _data[\"statusPreventivo\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateStatoPreventivoRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateStatoPreventivoRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"statusPreventivo\"] = this.statusPreventivo !== undefined ? this.statusPreventivo : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateStatoPreventivoRequest extends ITripGetRequest {\r\n statusPreventivo?: EStatusPreventivo;\r\n}\r\n\r\nexport class UpdateItinerarioRequest extends TripGetRequest implements IUpdateItinerarioRequest {\r\n itinerario?: OffertaItinerario | null;\r\n eliminaServiziSuCambioLuogo?: boolean;\r\n aggiustaServizi?: boolean;\r\n\r\n constructor(data?: IUpdateItinerarioRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.itinerario = _data[\"itinerario\"] ? OffertaItinerario.fromJS(_data[\"itinerario\"]) : null;\r\n this.eliminaServiziSuCambioLuogo = _data[\"eliminaServiziSuCambioLuogo\"] !== undefined ? _data[\"eliminaServiziSuCambioLuogo\"] : null;\r\n this.aggiustaServizi = _data[\"aggiustaServizi\"] !== undefined ? _data[\"aggiustaServizi\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateItinerarioRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateItinerarioRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"itinerario\"] = this.itinerario ? this.itinerario.toJSON() : null;\r\n data[\"eliminaServiziSuCambioLuogo\"] = this.eliminaServiziSuCambioLuogo !== undefined ? this.eliminaServiziSuCambioLuogo : null;\r\n data[\"aggiustaServizi\"] = this.aggiustaServizi !== undefined ? this.aggiustaServizi : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateItinerarioRequest extends ITripGetRequest {\r\n itinerario?: OffertaItinerario | null;\r\n eliminaServiziSuCambioLuogo?: boolean;\r\n aggiustaServizi?: boolean;\r\n}\r\n\r\nexport class UpdateVoucherResponse extends TripGetResponse implements IUpdateVoucherResponse {\r\n voucher?: Voucher | null;\r\n\r\n constructor(data?: IUpdateVoucherResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.voucher = _data[\"voucher\"] ? Voucher.fromJS(_data[\"voucher\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateVoucherResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateVoucherResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voucher\"] = this.voucher ? this.voucher.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateVoucherResponse extends ITripGetResponse {\r\n voucher?: Voucher | null;\r\n}\r\n\r\nexport class UpdateVoucherRequest extends TripGetRequest implements IUpdateVoucherRequest {\r\n voucher?: Voucher | null;\r\n\r\n constructor(data?: IUpdateVoucherRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.voucher = _data[\"voucher\"] ? Voucher.fromJS(_data[\"voucher\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateVoucherRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateVoucherRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"voucher\"] = this.voucher ? this.voucher.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateVoucherRequest extends ITripGetRequest {\r\n voucher?: Voucher | null;\r\n}\r\n\r\nexport class GetDashboardInfosResponse extends OkApiResponse implements IGetDashboardInfosResponse {\r\n infos?: InformazioneRow[] | null;\r\n\r\n constructor(data?: IGetDashboardInfosResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"infos\"])) {\r\n this.infos = [] as any;\r\n for (let item of _data[\"infos\"])\r\n this.infos!.push(InformazioneRow.fromJS(item));\r\n }\r\n else {\r\n this.infos = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetDashboardInfosResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetDashboardInfosResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.infos)) {\r\n data[\"infos\"] = [];\r\n for (let item of this.infos)\r\n data[\"infos\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetDashboardInfosResponse extends IOkApiResponse {\r\n infos?: InformazioneRow[] | null;\r\n}\r\n\r\nexport class InformazioneRow implements IInformazioneRow {\r\n id?: number;\r\n categoria?: string | null;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n haAllegato?: boolean;\r\n urlAllegato?: string | null;\r\n nomeAllegato?: string | null;\r\n dimAllegato?: number | null;\r\n tipoAllegato?: string | null;\r\n creatoDa?: string | null;\r\n creatoIl?: string;\r\n aggiornatoDa?: string | null;\r\n aggiornatoIl?: string;\r\n\r\n constructor(data?: IInformazioneRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.categoria = _data[\"categoria\"] !== undefined ? _data[\"categoria\"] : null;\r\n this.titolo = _data[\"titolo\"] !== undefined ? _data[\"titolo\"] : null;\r\n this.testo = _data[\"testo\"] !== undefined ? _data[\"testo\"] : null;\r\n this.haAllegato = _data[\"haAllegato\"] !== undefined ? _data[\"haAllegato\"] : null;\r\n this.urlAllegato = _data[\"urlAllegato\"] !== undefined ? _data[\"urlAllegato\"] : null;\r\n this.nomeAllegato = _data[\"nomeAllegato\"] !== undefined ? _data[\"nomeAllegato\"] : null;\r\n this.dimAllegato = _data[\"dimAllegato\"] !== undefined ? _data[\"dimAllegato\"] : null;\r\n this.tipoAllegato = _data[\"tipoAllegato\"] !== undefined ? _data[\"tipoAllegato\"] : null;\r\n this.creatoDa = _data[\"creatoDa\"] !== undefined ? _data[\"creatoDa\"] : null;\r\n this.creatoIl = _data[\"creatoIl\"] !== undefined ? _data[\"creatoIl\"] : null;\r\n this.aggiornatoDa = _data[\"aggiornatoDa\"] !== undefined ? _data[\"aggiornatoDa\"] : null;\r\n this.aggiornatoIl = _data[\"aggiornatoIl\"] !== undefined ? _data[\"aggiornatoIl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): InformazioneRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new InformazioneRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"categoria\"] = this.categoria !== undefined ? this.categoria : null;\r\n data[\"titolo\"] = this.titolo !== undefined ? this.titolo : null;\r\n data[\"testo\"] = this.testo !== undefined ? this.testo : null;\r\n data[\"haAllegato\"] = this.haAllegato !== undefined ? this.haAllegato : null;\r\n data[\"urlAllegato\"] = this.urlAllegato !== undefined ? this.urlAllegato : null;\r\n data[\"nomeAllegato\"] = this.nomeAllegato !== undefined ? this.nomeAllegato : null;\r\n data[\"dimAllegato\"] = this.dimAllegato !== undefined ? this.dimAllegato : null;\r\n data[\"tipoAllegato\"] = this.tipoAllegato !== undefined ? this.tipoAllegato : null;\r\n data[\"creatoDa\"] = this.creatoDa !== undefined ? this.creatoDa : null;\r\n data[\"creatoIl\"] = this.creatoIl !== undefined ? this.creatoIl : null;\r\n data[\"aggiornatoDa\"] = this.aggiornatoDa !== undefined ? this.aggiornatoDa : null;\r\n data[\"aggiornatoIl\"] = this.aggiornatoIl !== undefined ? this.aggiornatoIl : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IInformazioneRow {\r\n id?: number;\r\n categoria?: string | null;\r\n titolo?: string | null;\r\n testo?: string | null;\r\n haAllegato?: boolean;\r\n urlAllegato?: string | null;\r\n nomeAllegato?: string | null;\r\n dimAllegato?: number | null;\r\n tipoAllegato?: string | null;\r\n creatoDa?: string | null;\r\n creatoIl?: string;\r\n aggiornatoDa?: string | null;\r\n aggiornatoIl?: string;\r\n}\r\n\r\nexport class ChangePasswordRequest extends ApiRequest implements IChangePasswordRequest {\r\n /** Password attuale */\r\n currentPassword!: string;\r\n /** Nuova password */\r\n newPassword!: string;\r\n\r\n constructor(data?: IChangePasswordRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.currentPassword = _data[\"currentPassword\"] !== undefined ? _data[\"currentPassword\"] : null;\r\n this.newPassword = _data[\"newPassword\"] !== undefined ? _data[\"newPassword\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ChangePasswordRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ChangePasswordRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"currentPassword\"] = this.currentPassword !== undefined ? this.currentPassword : null;\r\n data[\"newPassword\"] = this.newPassword !== undefined ? this.newPassword : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IChangePasswordRequest extends IApiRequest {\r\n /** Password attuale */\r\n currentPassword: string;\r\n /** Nuova password */\r\n newPassword: string;\r\n}\r\n\r\nexport class CreateCrossLoginResponse extends OkApiResponse implements ICreateCrossLoginResponse {\r\n /** Codice univoco monouso */\r\n codice?: string;\r\n\r\n constructor(data?: ICreateCrossLoginResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateCrossLoginResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateCrossLoginResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateCrossLoginResponse extends IOkApiResponse {\r\n /** Codice univoco monouso */\r\n codice?: string;\r\n}\r\n\r\nexport class CreateCrossLoginRequest extends ApiRequest implements ICreateCrossLoginRequest {\r\n /** ID dell'utente da impersonare */\r\n targetUserID!: number;\r\n\r\n constructor(data?: ICreateCrossLoginRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.targetUserID = _data[\"targetUserID\"] !== undefined ? _data[\"targetUserID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CreateCrossLoginRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CreateCrossLoginRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"targetUserID\"] = this.targetUserID !== undefined ? this.targetUserID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICreateCrossLoginRequest extends IApiRequest {\r\n /** ID dell'utente da impersonare */\r\n targetUserID: number;\r\n}\r\n\r\nexport class ListTeamsResponse extends OkApiResponse implements IListTeamsResponse {\r\n teams?: Team[];\r\n\r\n constructor(data?: IListTeamsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"teams\"])) {\r\n this.teams = [] as any;\r\n for (let item of _data[\"teams\"])\r\n this.teams!.push(Team.fromJS(item));\r\n }\r\n else {\r\n this.teams = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListTeamsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListTeamsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.teams)) {\r\n data[\"teams\"] = [];\r\n for (let item of this.teams)\r\n data[\"teams\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListTeamsResponse extends IOkApiResponse {\r\n teams?: Team[];\r\n}\r\n\r\nexport class UpdateTeamResponse extends ListTeamsResponse implements IUpdateTeamResponse {\r\n /** Entità Team modificata */\r\n team?: Team;\r\n\r\n constructor(data?: IUpdateTeamResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.team = _data[\"team\"] ? Team.fromJS(_data[\"team\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateTeamResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateTeamResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"team\"] = this.team ? this.team.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateTeamResponse extends IListTeamsResponse {\r\n /** Entità Team modificata */\r\n team?: Team;\r\n}\r\n\r\nexport class UpdateTeamRequest extends ApiRequest implements IUpdateTeamRequest {\r\n team!: TeamBase;\r\n\r\n constructor(data?: IUpdateTeamRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.team = _data[\"team\"] ? TeamBase.fromJS(_data[\"team\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpdateTeamRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpdateTeamRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"team\"] = this.team ? this.team.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpdateTeamRequest extends IApiRequest {\r\n team: TeamBase;\r\n}\r\n\r\nexport abstract class TeamBase implements ITeamBase {\r\n teamID?: string;\r\n nome?: string;\r\n email?: string | null;\r\n visibilita?: EVisibilitaTeam;\r\n\r\n constructor(data?: ITeamBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.visibilita = _data[\"visibilita\"] !== undefined ? _data[\"visibilita\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): TeamBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'TeamBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"visibilita\"] = this.visibilita !== undefined ? this.visibilita : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITeamBase {\r\n teamID?: string;\r\n nome?: string;\r\n email?: string | null;\r\n visibilita?: EVisibilitaTeam;\r\n}\r\n\r\nexport class UserGetRequest extends LocalizedRequest implements IUserGetRequest {\r\n /** ID dell'utente di cui chiedere i dati */\r\n id!: number;\r\n\r\n constructor(data?: IUserGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserGetRequest extends ILocalizedRequest {\r\n /** ID dell'utente di cui chiedere i dati */\r\n id: number;\r\n}\r\n\r\nexport class UserDeleteRequest extends UserGetRequest implements IUserDeleteRequest {\r\n\r\n constructor(data?: IUserDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UserDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserDeleteRequest extends IUserGetRequest {\r\n}\r\n\r\nexport class DeleteMultiUserRequest extends ApiRequest implements IDeleteMultiUserRequest {\r\n /** Lista degli ID da eliminare */\r\n userIDs!: number[];\r\n\r\n constructor(data?: IDeleteMultiUserRequest) {\r\n super(data);\r\n if (!data) {\r\n this.userIDs = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"userIDs\"])) {\r\n this.userIDs = [] as any;\r\n for (let item of _data[\"userIDs\"])\r\n this.userIDs!.push(item);\r\n }\r\n else {\r\n this.userIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): DeleteMultiUserRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DeleteMultiUserRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.userIDs)) {\r\n data[\"userIDs\"] = [];\r\n for (let item of this.userIDs)\r\n data[\"userIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDeleteMultiUserRequest extends IApiRequest {\r\n /** Lista degli ID da eliminare */\r\n userIDs: number[];\r\n}\r\n\r\nexport class EnableFastLoginFromExcelResponse extends OkApiResponse implements IEnableFastLoginFromExcelResponse {\r\n\r\n constructor(data?: IEnableFastLoginFromExcelResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): EnableFastLoginFromExcelResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new EnableFastLoginFromExcelResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEnableFastLoginFromExcelResponse extends IOkApiResponse {\r\n}\r\n\r\nexport class UserGetResponse extends OkApiResponse implements IUserGetResponse {\r\n /** Dati dell'utente con l'ID richiesto oppure null */\r\n row?: UsersListRow | null;\r\n\r\n constructor(data?: IUserGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.row = _data[\"row\"] ? UsersListRow.fromJS(_data[\"row\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UserGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"row\"] = this.row ? this.row.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserGetResponse extends IOkApiResponse {\r\n /** Dati dell'utente con l'ID richiesto oppure null */\r\n row?: UsersListRow | null;\r\n}\r\n\r\n/** Classe di visualizzazione della riga nella lista utenti */\r\nexport class UsersListRow implements IUsersListRow {\r\n /** ID dell'utente */\r\n id?: number;\r\n /** Indirizzo email dell'utente */\r\n email?: string | null;\r\n /** Nome completo */\r\n nomeVisualizzato?: string;\r\n /** Tipo di utente */\r\n tipoUtente?: ETipoUtente;\r\n /** Data e ora di creazione dell'utente */\r\n dataRegistrazione?: string;\r\n /** Nome dell'eventuale agenzia associata all'utente */\r\n nomeAgenzia?: string | null;\r\n /** Entità dell'utente (evita un roundtrip sul server quando si apre l'editor) */\r\n utente?: Utente;\r\n fastLoginTokenIsValid?: boolean;\r\n emailLoginEnabled?: boolean;\r\n\r\n constructor(data?: IUsersListRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.nomeVisualizzato = _data[\"nomeVisualizzato\"] !== undefined ? _data[\"nomeVisualizzato\"] : null;\r\n this.tipoUtente = _data[\"tipoUtente\"] !== undefined ? _data[\"tipoUtente\"] : null;\r\n this.dataRegistrazione = _data[\"dataRegistrazione\"] !== undefined ? _data[\"dataRegistrazione\"] : null;\r\n this.nomeAgenzia = _data[\"nomeAgenzia\"] !== undefined ? _data[\"nomeAgenzia\"] : null;\r\n this.utente = _data[\"utente\"] ? Utente.fromJS(_data[\"utente\"]) : null;\r\n this.fastLoginTokenIsValid = _data[\"fastLoginTokenIsValid\"] !== undefined ? _data[\"fastLoginTokenIsValid\"] : null;\r\n this.emailLoginEnabled = _data[\"emailLoginEnabled\"] !== undefined ? _data[\"emailLoginEnabled\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UsersListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UsersListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"nomeVisualizzato\"] = this.nomeVisualizzato !== undefined ? this.nomeVisualizzato : null;\r\n data[\"tipoUtente\"] = this.tipoUtente !== undefined ? this.tipoUtente : null;\r\n data[\"dataRegistrazione\"] = this.dataRegistrazione !== undefined ? this.dataRegistrazione : null;\r\n data[\"nomeAgenzia\"] = this.nomeAgenzia !== undefined ? this.nomeAgenzia : null;\r\n data[\"utente\"] = this.utente ? this.utente.toJSON() : null;\r\n data[\"fastLoginTokenIsValid\"] = this.fastLoginTokenIsValid !== undefined ? this.fastLoginTokenIsValid : null;\r\n data[\"emailLoginEnabled\"] = this.emailLoginEnabled !== undefined ? this.emailLoginEnabled : null;\r\n return data;\r\n }\r\n}\r\n\r\n/** Classe di visualizzazione della riga nella lista utenti */\r\nexport interface IUsersListRow {\r\n /** ID dell'utente */\r\n id?: number;\r\n /** Indirizzo email dell'utente */\r\n email?: string | null;\r\n /** Nome completo */\r\n nomeVisualizzato?: string;\r\n /** Tipo di utente */\r\n tipoUtente?: ETipoUtente;\r\n /** Data e ora di creazione dell'utente */\r\n dataRegistrazione?: string;\r\n /** Nome dell'eventuale agenzia associata all'utente */\r\n nomeAgenzia?: string | null;\r\n /** Entità dell'utente (evita un roundtrip sul server quando si apre l'editor) */\r\n utente?: Utente;\r\n fastLoginTokenIsValid?: boolean;\r\n emailLoginEnabled?: boolean;\r\n}\r\n\r\nexport class GetUserRolesResponse extends OkApiResponse implements IGetUserRolesResponse {\r\n /** Lista degli ID degli ruoli assegnati a questo utente */\r\n rolesIds?: number[];\r\n\r\n constructor(data?: IGetUserRolesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rolesIds\"])) {\r\n this.rolesIds = [] as any;\r\n for (let item of _data[\"rolesIds\"])\r\n this.rolesIds!.push(item);\r\n }\r\n else {\r\n this.rolesIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetUserRolesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetUserRolesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rolesIds)) {\r\n data[\"rolesIds\"] = [];\r\n for (let item of this.rolesIds)\r\n data[\"rolesIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetUserRolesResponse extends IOkApiResponse {\r\n /** Lista degli ID degli ruoli assegnati a questo utente */\r\n rolesIds?: number[];\r\n}\r\n\r\nexport class NrTableResponseOfUsersListRow extends OkApiResponse implements INrTableResponseOfUsersListRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: UsersListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfUsersListRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(UsersListRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfUsersListRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfUsersListRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfUsersListRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: UsersListRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class UsersListResponse extends NrTableResponseOfUsersListRow implements IUsersListResponse {\r\n\r\n constructor(data?: IUsersListResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UsersListResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UsersListResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUsersListResponse extends INrTableResponseOfUsersListRow {\r\n}\r\n\r\nexport class UsersListRequest extends NrTableRequest implements IUsersListRequest {\r\n /** True show only valid, false show also the deleted users */\r\n showValid?: boolean;\r\n /** Termine di ricerca / ID facoltativo */\r\n term?: string | null;\r\n /** ID di un'agenzia alla quale restringere la ricerca */\r\n agencyContactID?: number | null;\r\n /** Dizionario per tradurre i tipi utente (solo export) */\r\n nomiTipoUtente?: { [key in keyof typeof ETipoUtente]?: string; } | null;\r\n\r\n constructor(data?: IUsersListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.showValid = _data[\"showValid\"] !== undefined ? _data[\"showValid\"] : null;\r\n this.term = _data[\"term\"] !== undefined ? _data[\"term\"] : null;\r\n this.agencyContactID = _data[\"agencyContactID\"] !== undefined ? _data[\"agencyContactID\"] : null;\r\n if (_data[\"nomiTipoUtente\"]) {\r\n this.nomiTipoUtente = {} as any;\r\n for (let key in _data[\"nomiTipoUtente\"]) {\r\n if (_data[\"nomiTipoUtente\"].hasOwnProperty(key))\r\n (this.nomiTipoUtente)![key] = _data[\"nomiTipoUtente\"][key] !== undefined ? _data[\"nomiTipoUtente\"][key] : null;\r\n }\r\n }\r\n else {\r\n this.nomiTipoUtente = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UsersListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UsersListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"showValid\"] = this.showValid !== undefined ? this.showValid : null;\r\n data[\"term\"] = this.term !== undefined ? this.term : null;\r\n data[\"agencyContactID\"] = this.agencyContactID !== undefined ? this.agencyContactID : null;\r\n if (this.nomiTipoUtente) {\r\n data[\"nomiTipoUtente\"] = {};\r\n for (let key in this.nomiTipoUtente) {\r\n if (this.nomiTipoUtente.hasOwnProperty(key))\r\n (data[\"nomiTipoUtente\"])[key] = this.nomiTipoUtente[key] !== undefined ? this.nomiTipoUtente[key] : null;\r\n }\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUsersListRequest extends INrTableRequest {\r\n /** True show only valid, false show also the deleted users */\r\n showValid?: boolean;\r\n /** Termine di ricerca / ID facoltativo */\r\n term?: string | null;\r\n /** ID di un'agenzia alla quale restringere la ricerca */\r\n agencyContactID?: number | null;\r\n /** Dizionario per tradurre i tipi utente (solo export) */\r\n nomiTipoUtente?: { [key in keyof typeof ETipoUtente]?: string; } | null;\r\n}\r\n\r\nexport class ListRolesResponse extends OkApiResponse implements IListRolesResponse {\r\n /** Elenco degli ruoli */\r\n roles?: RoleListData[];\r\n\r\n constructor(data?: IListRolesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"roles\"])) {\r\n this.roles = [] as any;\r\n for (let item of _data[\"roles\"])\r\n this.roles!.push(RoleListData.fromJS(item));\r\n }\r\n else {\r\n this.roles = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): ListRolesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ListRolesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.roles)) {\r\n data[\"roles\"] = [];\r\n for (let item of this.roles)\r\n data[\"roles\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IListRolesResponse extends IOkApiResponse {\r\n /** Elenco degli ruoli */\r\n roles?: RoleListData[];\r\n}\r\n\r\nexport class RoleListData implements IRoleListData {\r\n /** ID del ruolo */\r\n id?: number;\r\n /** Nome del ruolo */\r\n name?: string;\r\n /** Entità del ruolo */\r\n ruolo?: Ruolo;\r\n /** Lista degli ID dei permessi associati */\r\n permissionsIDs?: number[];\r\n\r\n constructor(data?: IRoleListData) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.name = _data[\"name\"] !== undefined ? _data[\"name\"] : null;\r\n this.ruolo = _data[\"ruolo\"] ? Ruolo.fromJS(_data[\"ruolo\"]) : null;\r\n if (Array.isArray(_data[\"permissionsIDs\"])) {\r\n this.permissionsIDs = [] as any;\r\n for (let item of _data[\"permissionsIDs\"])\r\n this.permissionsIDs!.push(item);\r\n }\r\n else {\r\n this.permissionsIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): RoleListData {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new RoleListData();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"name\"] = this.name !== undefined ? this.name : null;\r\n data[\"ruolo\"] = this.ruolo ? this.ruolo.toJSON() : null;\r\n if (Array.isArray(this.permissionsIDs)) {\r\n data[\"permissionsIDs\"] = [];\r\n for (let item of this.permissionsIDs)\r\n data[\"permissionsIDs\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRoleListData {\r\n /** ID del ruolo */\r\n id?: number;\r\n /** Nome del ruolo */\r\n name?: string;\r\n /** Entità del ruolo */\r\n ruolo?: Ruolo;\r\n /** Lista degli ID dei permessi associati */\r\n permissionsIDs?: number[];\r\n}\r\n\r\nexport class Ruolo implements IRuolo {\r\n id?: number;\r\n nome!: string;\r\n\r\n constructor(data?: IRuolo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Ruolo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Ruolo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IRuolo {\r\n id?: number;\r\n nome: string;\r\n}\r\n\r\nexport class PasswordResetRequest extends ApiRequest implements IPasswordResetRequest {\r\n /** Codice monouso di cambio password */\r\n codice!: string;\r\n /** Nuova password */\r\n password!: string;\r\n\r\n constructor(data?: IPasswordResetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.codice = _data[\"codice\"] !== undefined ? _data[\"codice\"] : null;\r\n this.password = _data[\"password\"] !== undefined ? _data[\"password\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PasswordResetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PasswordResetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"codice\"] = this.codice !== undefined ? this.codice : null;\r\n data[\"password\"] = this.password !== undefined ? this.password : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPasswordResetRequest extends IApiRequest {\r\n /** Codice monouso di cambio password */\r\n codice: string;\r\n /** Nuova password */\r\n password: string;\r\n}\r\n\r\nexport class UserRestoreRequest extends UserGetRequest implements IUserRestoreRequest {\r\n\r\n constructor(data?: IUserRestoreRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): UserRestoreRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UserRestoreRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUserRestoreRequest extends IUserGetRequest {\r\n}\r\n\r\nexport class SendPasswordRecoveryRequest extends LocalizedRequest implements ISendPasswordRecoveryRequest {\r\n /** Email dell'utente che vuole recuperare la password */\r\n email!: string;\r\n /** Stringa di formato con la url per il recupero password.\r\nDeve essere nel formato\r\nhttps://itb2b.naar.com/auth/reset/{0}\r\ndove il segnaposto {0} è il codice univoco monouso */\r\n passwordResetUrl!: string;\r\n\r\n constructor(data?: ISendPasswordRecoveryRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.passwordResetUrl = _data[\"passwordResetUrl\"] !== undefined ? _data[\"passwordResetUrl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SendPasswordRecoveryRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SendPasswordRecoveryRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"passwordResetUrl\"] = this.passwordResetUrl !== undefined ? this.passwordResetUrl : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISendPasswordRecoveryRequest extends ILocalizedRequest {\r\n /** Email dell'utente che vuole recuperare la password */\r\n email: string;\r\n /** Stringa di formato con la url per il recupero password.\r\nDeve essere nel formato\r\nhttps://itb2b.naar.com/auth/reset/{0}\r\ndove il segnaposto {0} è il codice univoco monouso */\r\n passwordResetUrl: string;\r\n}\r\n\r\nexport class SetRolesRequest extends UserGetRequest implements ISetRolesRequest {\r\n rolesIds!: number[];\r\n\r\n constructor(data?: ISetRolesRequest) {\r\n super(data);\r\n if (!data) {\r\n this.rolesIds = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rolesIds\"])) {\r\n this.rolesIds = [] as any;\r\n for (let item of _data[\"rolesIds\"])\r\n this.rolesIds!.push(item);\r\n }\r\n else {\r\n this.rolesIds = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): SetRolesRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SetRolesRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rolesIds)) {\r\n data[\"rolesIds\"] = [];\r\n for (let item of this.rolesIds)\r\n data[\"rolesIds\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISetRolesRequest extends IUserGetRequest {\r\n rolesIds: number[];\r\n}\r\n\r\nexport class UpsertUserRequest extends ApiRequest implements IUpsertUserRequest {\r\n utente!: UtenteBase;\r\n\r\n constructor(data?: IUpsertUserRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.utente = _data[\"utente\"] ? UtenteBase.fromJS(_data[\"utente\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertUserRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertUserRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"utente\"] = this.utente ? this.utente.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertUserRequest extends IApiRequest {\r\n utente: UtenteBase;\r\n}\r\n\r\nexport abstract class UtenteBase implements IUtenteBase {\r\n id?: number;\r\n contattoAgenziaID?: number | null;\r\n contattoUtenteID?: number | null;\r\n tipoUtente?: ETipoUtente | null;\r\n registrationDate?: string;\r\n email?: string | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n passwordInChiaro?: string | null;\r\n passwordCifrata?: string | null;\r\n abilitato?: boolean;\r\n eliminato?: boolean;\r\n deleted?: string | null;\r\n operatoreID?: number | null;\r\n abilitazioneCrs?: number | null;\r\n telefono?: string | null;\r\n teamID?: string | null;\r\n npr?: boolean;\r\n uiOptions?: string | null;\r\n fuorisede?: boolean;\r\n emailFuorisede?: string | null;\r\n categoriaContattoID?: number | null;\r\n utentePadreID?: number | null;\r\n fastLoginEnabled?: boolean | null;\r\n fastLogingEnabledDate?: string | null;\r\n fastLoginTokenValidityDays?: number | null;\r\n fastLoginToken?: string | null;\r\n emailLoginEnabled?: boolean | null;\r\n\r\n constructor(data?: IUtenteBase) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.contattoAgenziaID = _data[\"contattoAgenziaID\"] !== undefined ? _data[\"contattoAgenziaID\"] : null;\r\n this.contattoUtenteID = _data[\"contattoUtenteID\"] !== undefined ? _data[\"contattoUtenteID\"] : null;\r\n this.tipoUtente = _data[\"tipoUtente\"] !== undefined ? _data[\"tipoUtente\"] : null;\r\n this.registrationDate = _data[\"registrationDate\"] !== undefined ? _data[\"registrationDate\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.cognome = _data[\"cognome\"] !== undefined ? _data[\"cognome\"] : null;\r\n this.passwordInChiaro = _data[\"passwordInChiaro\"] !== undefined ? _data[\"passwordInChiaro\"] : null;\r\n this.passwordCifrata = _data[\"passwordCifrata\"] !== undefined ? _data[\"passwordCifrata\"] : null;\r\n this.abilitato = _data[\"abilitato\"] !== undefined ? _data[\"abilitato\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n this.deleted = _data[\"deleted\"] !== undefined ? _data[\"deleted\"] : null;\r\n this.operatoreID = _data[\"operatoreID\"] !== undefined ? _data[\"operatoreID\"] : null;\r\n this.abilitazioneCrs = _data[\"abilitazioneCrs\"] !== undefined ? _data[\"abilitazioneCrs\"] : null;\r\n this.telefono = _data[\"telefono\"] !== undefined ? _data[\"telefono\"] : null;\r\n this.teamID = _data[\"teamID\"] !== undefined ? _data[\"teamID\"] : null;\r\n this.npr = _data[\"npr\"] !== undefined ? _data[\"npr\"] : null;\r\n this.uiOptions = _data[\"uiOptions\"] !== undefined ? _data[\"uiOptions\"] : null;\r\n this.fuorisede = _data[\"fuorisede\"] !== undefined ? _data[\"fuorisede\"] : null;\r\n this.emailFuorisede = _data[\"emailFuorisede\"] !== undefined ? _data[\"emailFuorisede\"] : null;\r\n this.categoriaContattoID = _data[\"categoriaContattoID\"] !== undefined ? _data[\"categoriaContattoID\"] : null;\r\n this.utentePadreID = _data[\"utentePadreID\"] !== undefined ? _data[\"utentePadreID\"] : null;\r\n this.fastLoginEnabled = _data[\"fastLoginEnabled\"] !== undefined ? _data[\"fastLoginEnabled\"] : null;\r\n this.fastLogingEnabledDate = _data[\"fastLogingEnabledDate\"] !== undefined ? _data[\"fastLogingEnabledDate\"] : null;\r\n this.fastLoginTokenValidityDays = _data[\"fastLoginTokenValidityDays\"] !== undefined ? _data[\"fastLoginTokenValidityDays\"] : null;\r\n this.fastLoginToken = _data[\"fastLoginToken\"] !== undefined ? _data[\"fastLoginToken\"] : null;\r\n this.emailLoginEnabled = _data[\"emailLoginEnabled\"] !== undefined ? _data[\"emailLoginEnabled\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UtenteBase {\r\n data = typeof data === 'object' ? data : {};\r\n throw new Error(\"The abstract class 'UtenteBase' cannot be instantiated.\");\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"contattoAgenziaID\"] = this.contattoAgenziaID !== undefined ? this.contattoAgenziaID : null;\r\n data[\"contattoUtenteID\"] = this.contattoUtenteID !== undefined ? this.contattoUtenteID : null;\r\n data[\"tipoUtente\"] = this.tipoUtente !== undefined ? this.tipoUtente : null;\r\n data[\"registrationDate\"] = this.registrationDate !== undefined ? this.registrationDate : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"cognome\"] = this.cognome !== undefined ? this.cognome : null;\r\n data[\"passwordInChiaro\"] = this.passwordInChiaro !== undefined ? this.passwordInChiaro : null;\r\n data[\"passwordCifrata\"] = this.passwordCifrata !== undefined ? this.passwordCifrata : null;\r\n data[\"abilitato\"] = this.abilitato !== undefined ? this.abilitato : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n data[\"deleted\"] = this.deleted !== undefined ? this.deleted : null;\r\n data[\"operatoreID\"] = this.operatoreID !== undefined ? this.operatoreID : null;\r\n data[\"abilitazioneCrs\"] = this.abilitazioneCrs !== undefined ? this.abilitazioneCrs : null;\r\n data[\"telefono\"] = this.telefono !== undefined ? this.telefono : null;\r\n data[\"teamID\"] = this.teamID !== undefined ? this.teamID : null;\r\n data[\"npr\"] = this.npr !== undefined ? this.npr : null;\r\n data[\"uiOptions\"] = this.uiOptions !== undefined ? this.uiOptions : null;\r\n data[\"fuorisede\"] = this.fuorisede !== undefined ? this.fuorisede : null;\r\n data[\"emailFuorisede\"] = this.emailFuorisede !== undefined ? this.emailFuorisede : null;\r\n data[\"categoriaContattoID\"] = this.categoriaContattoID !== undefined ? this.categoriaContattoID : null;\r\n data[\"utentePadreID\"] = this.utentePadreID !== undefined ? this.utentePadreID : null;\r\n data[\"fastLoginEnabled\"] = this.fastLoginEnabled !== undefined ? this.fastLoginEnabled : null;\r\n data[\"fastLogingEnabledDate\"] = this.fastLogingEnabledDate !== undefined ? this.fastLogingEnabledDate : null;\r\n data[\"fastLoginTokenValidityDays\"] = this.fastLoginTokenValidityDays !== undefined ? this.fastLoginTokenValidityDays : null;\r\n data[\"fastLoginToken\"] = this.fastLoginToken !== undefined ? this.fastLoginToken : null;\r\n data[\"emailLoginEnabled\"] = this.emailLoginEnabled !== undefined ? this.emailLoginEnabled : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUtenteBase {\r\n id?: number;\r\n contattoAgenziaID?: number | null;\r\n contattoUtenteID?: number | null;\r\n tipoUtente?: ETipoUtente | null;\r\n registrationDate?: string;\r\n email?: string | null;\r\n nome?: string | null;\r\n cognome?: string | null;\r\n passwordInChiaro?: string | null;\r\n passwordCifrata?: string | null;\r\n abilitato?: boolean;\r\n eliminato?: boolean;\r\n deleted?: string | null;\r\n operatoreID?: number | null;\r\n abilitazioneCrs?: number | null;\r\n telefono?: string | null;\r\n teamID?: string | null;\r\n npr?: boolean;\r\n uiOptions?: string | null;\r\n fuorisede?: boolean;\r\n emailFuorisede?: string | null;\r\n categoriaContattoID?: number | null;\r\n utentePadreID?: number | null;\r\n fastLoginEnabled?: boolean | null;\r\n fastLogingEnabledDate?: string | null;\r\n fastLoginTokenValidityDays?: number | null;\r\n fastLoginToken?: string | null;\r\n emailLoginEnabled?: boolean | null;\r\n}\r\n\r\nexport class UpsertRoleResponse extends ListRolesResponse implements IUpsertRoleResponse {\r\n /** Ruolo modificato */\r\n ruolo?: Ruolo;\r\n\r\n constructor(data?: IUpsertRoleResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ruolo = _data[\"ruolo\"] ? Ruolo.fromJS(_data[\"ruolo\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertRoleResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertRoleResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ruolo\"] = this.ruolo ? this.ruolo.toJSON() : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertRoleResponse extends IListRolesResponse {\r\n /** Ruolo modificato */\r\n ruolo?: Ruolo;\r\n}\r\n\r\nexport class UpsertRoleRequest extends LocalizedRequest implements IUpsertRoleRequest {\r\n /** Entità ruolo */\r\n ruolo!: Ruolo;\r\n /** ID dei permessi associati */\r\n permessiIDs!: number[];\r\n\r\n constructor(data?: IUpsertRoleRequest) {\r\n super(data);\r\n if (!data) {\r\n this.ruolo = new Ruolo();\r\n this.permessiIDs = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.ruolo = _data[\"ruolo\"] ? Ruolo.fromJS(_data[\"ruolo\"]) : new Ruolo();\r\n if (Array.isArray(_data[\"permessiIDs\"])) {\r\n this.permessiIDs = [] as any;\r\n for (let item of _data[\"permessiIDs\"])\r\n this.permessiIDs!.push(item);\r\n }\r\n else {\r\n this.permessiIDs = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): UpsertRoleRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new UpsertRoleRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ruolo\"] = this.ruolo ? this.ruolo.toJSON() : null;\r\n if (Array.isArray(this.permessiIDs)) {\r\n data[\"permessiIDs\"] = [];\r\n for (let item of this.permessiIDs)\r\n data[\"permessiIDs\"].push(item);\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IUpsertRoleRequest extends ILocalizedRequest {\r\n /** Entità ruolo */\r\n ruolo: Ruolo;\r\n /** ID dei permessi associati */\r\n permessiIDs: number[];\r\n}\r\n\r\nexport class ClientAppSettings implements IClientAppSettings {\r\n applicationName?: string | null;\r\n naarDomain?: string | null;\r\n commonPathsSettings?: CommonPathsSettings | null;\r\n\r\n constructor(data?: IClientAppSettings) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.applicationName = _data[\"applicationName\"] !== undefined ? _data[\"applicationName\"] : null;\r\n this.naarDomain = _data[\"naarDomain\"] !== undefined ? _data[\"naarDomain\"] : null;\r\n this.commonPathsSettings = _data[\"commonPathsSettings\"] ? CommonPathsSettings.fromJS(_data[\"commonPathsSettings\"]) : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ClientAppSettings {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ClientAppSettings();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"applicationName\"] = this.applicationName !== undefined ? this.applicationName : null;\r\n data[\"naarDomain\"] = this.naarDomain !== undefined ? this.naarDomain : null;\r\n data[\"commonPathsSettings\"] = this.commonPathsSettings ? this.commonPathsSettings.toJSON() : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IClientAppSettings {\r\n applicationName?: string | null;\r\n naarDomain?: string | null;\r\n commonPathsSettings?: CommonPathsSettings | null;\r\n}\r\n\r\nexport class CommonPathsSettings implements ICommonPathsSettings {\r\n logoAgenziaPath?: string | null;\r\n logoAgenziaURL?: string | null;\r\n infoAttachmentsRoot?: string | null;\r\n infoAttachmentsBaseUrl?: string | null;\r\n articleAttachmentsRoot?: string | null;\r\n imagesBaseUrl?: string | null;\r\n imagesBasePath?: string | null;\r\n imagesOldBaseUrl?: string | null;\r\n imagesOldBasePath?: string | null;\r\n generalVoidImage?: string | null;\r\n mediaBaseUrl?: string | null;\r\n downloadPath?: string | null;\r\n articleUrlFormatString?: string | null;\r\n pdfBaseUrl?: string | null;\r\n\r\n constructor(data?: ICommonPathsSettings) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.logoAgenziaPath = _data[\"logoAgenziaPath\"] !== undefined ? _data[\"logoAgenziaPath\"] : null;\r\n this.logoAgenziaURL = _data[\"logoAgenziaURL\"] !== undefined ? _data[\"logoAgenziaURL\"] : null;\r\n this.infoAttachmentsRoot = _data[\"infoAttachmentsRoot\"] !== undefined ? _data[\"infoAttachmentsRoot\"] : null;\r\n this.infoAttachmentsBaseUrl = _data[\"infoAttachmentsBaseUrl\"] !== undefined ? _data[\"infoAttachmentsBaseUrl\"] : null;\r\n this.articleAttachmentsRoot = _data[\"articleAttachmentsRoot\"] !== undefined ? _data[\"articleAttachmentsRoot\"] : null;\r\n this.imagesBaseUrl = _data[\"imagesBaseUrl\"] !== undefined ? _data[\"imagesBaseUrl\"] : null;\r\n this.imagesBasePath = _data[\"imagesBasePath\"] !== undefined ? _data[\"imagesBasePath\"] : null;\r\n this.imagesOldBaseUrl = _data[\"imagesOldBaseUrl\"] !== undefined ? _data[\"imagesOldBaseUrl\"] : null;\r\n this.imagesOldBasePath = _data[\"imagesOldBasePath\"] !== undefined ? _data[\"imagesOldBasePath\"] : null;\r\n this.generalVoidImage = _data[\"generalVoidImage\"] !== undefined ? _data[\"generalVoidImage\"] : null;\r\n this.mediaBaseUrl = _data[\"mediaBaseUrl\"] !== undefined ? _data[\"mediaBaseUrl\"] : null;\r\n this.downloadPath = _data[\"downloadPath\"] !== undefined ? _data[\"downloadPath\"] : null;\r\n this.articleUrlFormatString = _data[\"articleUrlFormatString\"] !== undefined ? _data[\"articleUrlFormatString\"] : null;\r\n this.pdfBaseUrl = _data[\"pdfBaseUrl\"] !== undefined ? _data[\"pdfBaseUrl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): CommonPathsSettings {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new CommonPathsSettings();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"logoAgenziaPath\"] = this.logoAgenziaPath !== undefined ? this.logoAgenziaPath : null;\r\n data[\"logoAgenziaURL\"] = this.logoAgenziaURL !== undefined ? this.logoAgenziaURL : null;\r\n data[\"infoAttachmentsRoot\"] = this.infoAttachmentsRoot !== undefined ? this.infoAttachmentsRoot : null;\r\n data[\"infoAttachmentsBaseUrl\"] = this.infoAttachmentsBaseUrl !== undefined ? this.infoAttachmentsBaseUrl : null;\r\n data[\"articleAttachmentsRoot\"] = this.articleAttachmentsRoot !== undefined ? this.articleAttachmentsRoot : null;\r\n data[\"imagesBaseUrl\"] = this.imagesBaseUrl !== undefined ? this.imagesBaseUrl : null;\r\n data[\"imagesBasePath\"] = this.imagesBasePath !== undefined ? this.imagesBasePath : null;\r\n data[\"imagesOldBaseUrl\"] = this.imagesOldBaseUrl !== undefined ? this.imagesOldBaseUrl : null;\r\n data[\"imagesOldBasePath\"] = this.imagesOldBasePath !== undefined ? this.imagesOldBasePath : null;\r\n data[\"generalVoidImage\"] = this.generalVoidImage !== undefined ? this.generalVoidImage : null;\r\n data[\"mediaBaseUrl\"] = this.mediaBaseUrl !== undefined ? this.mediaBaseUrl : null;\r\n data[\"downloadPath\"] = this.downloadPath !== undefined ? this.downloadPath : null;\r\n data[\"articleUrlFormatString\"] = this.articleUrlFormatString !== undefined ? this.articleUrlFormatString : null;\r\n data[\"pdfBaseUrl\"] = this.pdfBaseUrl !== undefined ? this.pdfBaseUrl : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ICommonPathsSettings {\r\n logoAgenziaPath?: string | null;\r\n logoAgenziaURL?: string | null;\r\n infoAttachmentsRoot?: string | null;\r\n infoAttachmentsBaseUrl?: string | null;\r\n articleAttachmentsRoot?: string | null;\r\n imagesBaseUrl?: string | null;\r\n imagesBasePath?: string | null;\r\n imagesOldBaseUrl?: string | null;\r\n imagesOldBasePath?: string | null;\r\n generalVoidImage?: string | null;\r\n mediaBaseUrl?: string | null;\r\n downloadPath?: string | null;\r\n articleUrlFormatString?: string | null;\r\n pdfBaseUrl?: string | null;\r\n}\r\n\r\nexport class SwaggerUrlRequest extends ApiRequest implements ISwaggerUrlRequest {\r\n /** Url of Swagger API to Generate the Typescript Client */\r\n url!: string;\r\n /** The Generated Client ClassName -> {ClassName}{controller}Client */\r\n clientClassName!: string;\r\n\r\n constructor(data?: ISwaggerUrlRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.clientClassName = _data[\"clientClassName\"] !== undefined ? _data[\"clientClassName\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): SwaggerUrlRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new SwaggerUrlRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"clientClassName\"] = this.clientClassName !== undefined ? this.clientClassName : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISwaggerUrlRequest extends IApiRequest {\r\n /** Url of Swagger API to Generate the Typescript Client */\r\n url: string;\r\n /** The Generated Client ClassName -> {ClassName}{controller}Client */\r\n clientClassName: string;\r\n}\r\n\r\nexport class VoidContainer implements IVoidContainer {\r\n tripsBatches?: TripsBatches | null;\r\n priceVerifyStatus?: PriceVerifyStatus | null;\r\n uiPriceVerifyStatus?: UiPriceVerifyStatus | null;\r\n autofillStatus?: AutofillStatus | null;\r\n addAttachmentRequest?: AddAttachmentRequest | null;\r\n giorniGratis?: GiorniGratis | null;\r\n scontoPercentuale?: ScontoPercentuale | null;\r\n scontoValore?: ScontoValore | null;\r\n abbinamentoSettimana?: AbbinamentoSettimana | null;\r\n composizioneGruppo?: ComposizioneGruppo | null;\r\n dataPartenza?: DataPartenza | null;\r\n dataPrenotazione?: DataPrenotazione | null;\r\n durataSoggiorno?: DurataSoggiorno | null;\r\n giorniEntrataUscita?: GiorniEntrataUscita | null;\r\n presenzaQuoteBambino?: PresenzaQuoteBambino | null;\r\n permesso?: EPermesso;\r\n\r\n constructor(data?: IVoidContainer) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tripsBatches = _data[\"tripsBatches\"] ? TripsBatches.fromJS(_data[\"tripsBatches\"]) : null;\r\n this.priceVerifyStatus = _data[\"priceVerifyStatus\"] ? PriceVerifyStatus.fromJS(_data[\"priceVerifyStatus\"]) : null;\r\n this.uiPriceVerifyStatus = _data[\"uiPriceVerifyStatus\"] ? UiPriceVerifyStatus.fromJS(_data[\"uiPriceVerifyStatus\"]) : null;\r\n this.autofillStatus = _data[\"autofillStatus\"] ? AutofillStatus.fromJS(_data[\"autofillStatus\"]) : null;\r\n this.addAttachmentRequest = _data[\"addAttachmentRequest\"] ? AddAttachmentRequest.fromJS(_data[\"addAttachmentRequest\"]) : null;\r\n this.giorniGratis = _data[\"giorniGratis\"] ? GiorniGratis.fromJS(_data[\"giorniGratis\"]) : null;\r\n this.scontoPercentuale = _data[\"scontoPercentuale\"] ? ScontoPercentuale.fromJS(_data[\"scontoPercentuale\"]) : null;\r\n this.scontoValore = _data[\"scontoValore\"] ? ScontoValore.fromJS(_data[\"scontoValore\"]) : null;\r\n this.abbinamentoSettimana = _data[\"abbinamentoSettimana\"] ? AbbinamentoSettimana.fromJS(_data[\"abbinamentoSettimana\"]) : null;\r\n this.composizioneGruppo = _data[\"composizioneGruppo\"] ? ComposizioneGruppo.fromJS(_data[\"composizioneGruppo\"]) : null;\r\n this.dataPartenza = _data[\"dataPartenza\"] ? DataPartenza.fromJS(_data[\"dataPartenza\"]) : null;\r\n this.dataPrenotazione = _data[\"dataPrenotazione\"] ? DataPrenotazione.fromJS(_data[\"dataPrenotazione\"]) : null;\r\n this.durataSoggiorno = _data[\"durataSoggiorno\"] ? DurataSoggiorno.fromJS(_data[\"durataSoggiorno\"]) : null;\r\n this.giorniEntrataUscita = _data[\"giorniEntrataUscita\"] ? GiorniEntrataUscita.fromJS(_data[\"giorniEntrataUscita\"]) : null;\r\n this.presenzaQuoteBambino = _data[\"presenzaQuoteBambino\"] ? PresenzaQuoteBambino.fromJS(_data[\"presenzaQuoteBambino\"]) : null;\r\n this.permesso = _data[\"permesso\"] !== undefined ? _data[\"permesso\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoidContainer {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoidContainer();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tripsBatches\"] = this.tripsBatches ? this.tripsBatches.toJSON() : null;\r\n data[\"priceVerifyStatus\"] = this.priceVerifyStatus ? this.priceVerifyStatus.toJSON() : null;\r\n data[\"uiPriceVerifyStatus\"] = this.uiPriceVerifyStatus ? this.uiPriceVerifyStatus.toJSON() : null;\r\n data[\"autofillStatus\"] = this.autofillStatus ? this.autofillStatus.toJSON() : null;\r\n data[\"addAttachmentRequest\"] = this.addAttachmentRequest ? this.addAttachmentRequest.toJSON() : null;\r\n data[\"giorniGratis\"] = this.giorniGratis ? this.giorniGratis.toJSON() : null;\r\n data[\"scontoPercentuale\"] = this.scontoPercentuale ? this.scontoPercentuale.toJSON() : null;\r\n data[\"scontoValore\"] = this.scontoValore ? this.scontoValore.toJSON() : null;\r\n data[\"abbinamentoSettimana\"] = this.abbinamentoSettimana ? this.abbinamentoSettimana.toJSON() : null;\r\n data[\"composizioneGruppo\"] = this.composizioneGruppo ? this.composizioneGruppo.toJSON() : null;\r\n data[\"dataPartenza\"] = this.dataPartenza ? this.dataPartenza.toJSON() : null;\r\n data[\"dataPrenotazione\"] = this.dataPrenotazione ? this.dataPrenotazione.toJSON() : null;\r\n data[\"durataSoggiorno\"] = this.durataSoggiorno ? this.durataSoggiorno.toJSON() : null;\r\n data[\"giorniEntrataUscita\"] = this.giorniEntrataUscita ? this.giorniEntrataUscita.toJSON() : null;\r\n data[\"presenzaQuoteBambino\"] = this.presenzaQuoteBambino ? this.presenzaQuoteBambino.toJSON() : null;\r\n data[\"permesso\"] = this.permesso !== undefined ? this.permesso : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoidContainer {\r\n tripsBatches?: TripsBatches | null;\r\n priceVerifyStatus?: PriceVerifyStatus | null;\r\n uiPriceVerifyStatus?: UiPriceVerifyStatus | null;\r\n autofillStatus?: AutofillStatus | null;\r\n addAttachmentRequest?: AddAttachmentRequest | null;\r\n giorniGratis?: GiorniGratis | null;\r\n scontoPercentuale?: ScontoPercentuale | null;\r\n scontoValore?: ScontoValore | null;\r\n abbinamentoSettimana?: AbbinamentoSettimana | null;\r\n composizioneGruppo?: ComposizioneGruppo | null;\r\n dataPartenza?: DataPartenza | null;\r\n dataPrenotazione?: DataPrenotazione | null;\r\n durataSoggiorno?: DurataSoggiorno | null;\r\n giorniEntrataUscita?: GiorniEntrataUscita | null;\r\n presenzaQuoteBambino?: PresenzaQuoteBambino | null;\r\n permesso?: EPermesso;\r\n}\r\n\r\nexport class TripsBatches implements ITripsBatches {\r\n ok?: boolean;\r\n batches?: TripBatch[] | null;\r\n\r\n constructor(data?: ITripsBatches) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.ok = _data[\"ok\"] !== undefined ? _data[\"ok\"] : null;\r\n if (Array.isArray(_data[\"batches\"])) {\r\n this.batches = [] as any;\r\n for (let item of _data[\"batches\"])\r\n this.batches!.push(TripBatch.fromJS(item));\r\n }\r\n else {\r\n this.batches = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): TripsBatches {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new TripsBatches();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"ok\"] = this.ok !== undefined ? this.ok : null;\r\n if (Array.isArray(this.batches)) {\r\n data[\"batches\"] = [];\r\n for (let item of this.batches)\r\n data[\"batches\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITripsBatches {\r\n ok?: boolean;\r\n batches?: TripBatch[] | null;\r\n}\r\n\r\nexport class AddAttachmentRequest extends ApiRequest implements IAddAttachmentRequest {\r\n articoloID?: number;\r\n descrizione?: string | null;\r\n\r\n constructor(data?: IAddAttachmentRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.articoloID = _data[\"articoloID\"] !== undefined ? _data[\"articoloID\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AddAttachmentRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AddAttachmentRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"articoloID\"] = this.articoloID !== undefined ? this.articoloID : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAddAttachmentRequest extends IApiRequest {\r\n articoloID?: number;\r\n descrizione?: string | null;\r\n}\r\n\r\nexport class GiorniGratis implements IGiorniGratis {\r\n giorniDaScontare?: number;\r\n percentualeSconto?: number;\r\n periodo?: EPeriodoGiorniGratis;\r\n gruppoApplicazione?: EGruppoApplicazione;\r\n applicaMulipliPeriodo?: boolean;\r\n maxQuoteDaTogliere?: number;\r\n\r\n constructor(data?: IGiorniGratis) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giorniDaScontare = _data[\"giorniDaScontare\"] !== undefined ? _data[\"giorniDaScontare\"] : null;\r\n this.percentualeSconto = _data[\"percentualeSconto\"] !== undefined ? _data[\"percentualeSconto\"] : null;\r\n this.periodo = _data[\"periodo\"] !== undefined ? _data[\"periodo\"] : null;\r\n this.gruppoApplicazione = _data[\"gruppoApplicazione\"] !== undefined ? _data[\"gruppoApplicazione\"] : null;\r\n this.applicaMulipliPeriodo = _data[\"applicaMulipliPeriodo\"] !== undefined ? _data[\"applicaMulipliPeriodo\"] : null;\r\n this.maxQuoteDaTogliere = _data[\"maxQuoteDaTogliere\"] !== undefined ? _data[\"maxQuoteDaTogliere\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GiorniGratis {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GiorniGratis();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorniDaScontare\"] = this.giorniDaScontare !== undefined ? this.giorniDaScontare : null;\r\n data[\"percentualeSconto\"] = this.percentualeSconto !== undefined ? this.percentualeSconto : null;\r\n data[\"periodo\"] = this.periodo !== undefined ? this.periodo : null;\r\n data[\"gruppoApplicazione\"] = this.gruppoApplicazione !== undefined ? this.gruppoApplicazione : null;\r\n data[\"applicaMulipliPeriodo\"] = this.applicaMulipliPeriodo !== undefined ? this.applicaMulipliPeriodo : null;\r\n data[\"maxQuoteDaTogliere\"] = this.maxQuoteDaTogliere !== undefined ? this.maxQuoteDaTogliere : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGiorniGratis {\r\n giorniDaScontare?: number;\r\n percentualeSconto?: number;\r\n periodo?: EPeriodoGiorniGratis;\r\n gruppoApplicazione?: EGruppoApplicazione;\r\n applicaMulipliPeriodo?: boolean;\r\n maxQuoteDaTogliere?: number;\r\n}\r\n\r\nexport enum EPeriodoGiorniGratis {\r\n PrimaNotte = \"PrimaNotte\",\r\n UltimaNotte = \"UltimaNotte\",\r\n GiornoPiuCostoso = \"GiornoPiuCostoso\",\r\n GiornoMenoCostoso = \"GiornoMenoCostoso\",\r\n PrimaSettimana = \"PrimaSettimana\",\r\n SecondaSettimana = \"SecondaSettimana\",\r\n SecondaSettimanaESuccessive = \"SecondaSettimanaESuccessive\",\r\n SettimanaMenoCostosa = \"SettimanaMenoCostosa\",\r\n}\r\n\r\nexport enum EGruppoApplicazione {\r\n Tutti = \"Tutti\",\r\n SottoEta1 = \"SottoEta1\",\r\n TraEta1e2 = \"TraEta1e2\",\r\n OltreEta2 = \"OltreEta2\",\r\n}\r\n\r\nexport class ScontoPercentuale implements IScontoPercentuale {\r\n percentuale?: number;\r\n applicaSuMezzaDoppia?: boolean;\r\n moltiplicaMezzaDoppiaPerPax?: boolean;\r\n gruppoApplicazione?: EGruppoApplicazione;\r\n soloQuoteBambino?: boolean;\r\n maxQuoteDaTogliere?: number;\r\n applicazioneSuSettimaneAbbinate?: EApplSettAbbinata;\r\n\r\n constructor(data?: IScontoPercentuale) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.percentuale = _data[\"percentuale\"] !== undefined ? _data[\"percentuale\"] : null;\r\n this.applicaSuMezzaDoppia = _data[\"applicaSuMezzaDoppia\"] !== undefined ? _data[\"applicaSuMezzaDoppia\"] : null;\r\n this.moltiplicaMezzaDoppiaPerPax = _data[\"moltiplicaMezzaDoppiaPerPax\"] !== undefined ? _data[\"moltiplicaMezzaDoppiaPerPax\"] : null;\r\n this.gruppoApplicazione = _data[\"gruppoApplicazione\"] !== undefined ? _data[\"gruppoApplicazione\"] : null;\r\n this.soloQuoteBambino = _data[\"soloQuoteBambino\"] !== undefined ? _data[\"soloQuoteBambino\"] : null;\r\n this.maxQuoteDaTogliere = _data[\"maxQuoteDaTogliere\"] !== undefined ? _data[\"maxQuoteDaTogliere\"] : null;\r\n this.applicazioneSuSettimaneAbbinate = _data[\"applicazioneSuSettimaneAbbinate\"] !== undefined ? _data[\"applicazioneSuSettimaneAbbinate\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ScontoPercentuale {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ScontoPercentuale();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"percentuale\"] = this.percentuale !== undefined ? this.percentuale : null;\r\n data[\"applicaSuMezzaDoppia\"] = this.applicaSuMezzaDoppia !== undefined ? this.applicaSuMezzaDoppia : null;\r\n data[\"moltiplicaMezzaDoppiaPerPax\"] = this.moltiplicaMezzaDoppiaPerPax !== undefined ? this.moltiplicaMezzaDoppiaPerPax : null;\r\n data[\"gruppoApplicazione\"] = this.gruppoApplicazione !== undefined ? this.gruppoApplicazione : null;\r\n data[\"soloQuoteBambino\"] = this.soloQuoteBambino !== undefined ? this.soloQuoteBambino : null;\r\n data[\"maxQuoteDaTogliere\"] = this.maxQuoteDaTogliere !== undefined ? this.maxQuoteDaTogliere : null;\r\n data[\"applicazioneSuSettimaneAbbinate\"] = this.applicazioneSuSettimaneAbbinate !== undefined ? this.applicazioneSuSettimaneAbbinate : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IScontoPercentuale {\r\n percentuale?: number;\r\n applicaSuMezzaDoppia?: boolean;\r\n moltiplicaMezzaDoppiaPerPax?: boolean;\r\n gruppoApplicazione?: EGruppoApplicazione;\r\n soloQuoteBambino?: boolean;\r\n maxQuoteDaTogliere?: number;\r\n applicazioneSuSettimaneAbbinate?: EApplSettAbbinata;\r\n}\r\n\r\nexport enum EApplSettAbbinata {\r\n Tutto = \"Tutto\",\r\n SettimanaIndicata = \"SettimanaIndicata\",\r\n SettimanaAbbinata = \"SettimanaAbbinata\",\r\n}\r\n\r\nexport class ScontoValore implements IScontoValore {\r\n valorePrezzo?: number;\r\n valoreCosto?: number;\r\n perGiorno?: boolean;\r\n perPersona?: boolean;\r\n quotaBambiniProporzionale?: boolean;\r\n applicaMulipliPeriodo?: boolean;\r\n gruppoApplicazione?: EGruppoApplicazione;\r\n ricostruisciTariffaAdultiSuMezzeDoppie?: boolean;\r\n maxQuoteDaTogliere?: number;\r\n\r\n constructor(data?: IScontoValore) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.valorePrezzo = _data[\"valorePrezzo\"] !== undefined ? _data[\"valorePrezzo\"] : null;\r\n this.valoreCosto = _data[\"valoreCosto\"] !== undefined ? _data[\"valoreCosto\"] : null;\r\n this.perGiorno = _data[\"perGiorno\"] !== undefined ? _data[\"perGiorno\"] : null;\r\n this.perPersona = _data[\"perPersona\"] !== undefined ? _data[\"perPersona\"] : null;\r\n this.quotaBambiniProporzionale = _data[\"quotaBambiniProporzionale\"] !== undefined ? _data[\"quotaBambiniProporzionale\"] : null;\r\n this.applicaMulipliPeriodo = _data[\"applicaMulipliPeriodo\"] !== undefined ? _data[\"applicaMulipliPeriodo\"] : null;\r\n this.gruppoApplicazione = _data[\"gruppoApplicazione\"] !== undefined ? _data[\"gruppoApplicazione\"] : null;\r\n this.ricostruisciTariffaAdultiSuMezzeDoppie = _data[\"ricostruisciTariffaAdultiSuMezzeDoppie\"] !== undefined ? _data[\"ricostruisciTariffaAdultiSuMezzeDoppie\"] : null;\r\n this.maxQuoteDaTogliere = _data[\"maxQuoteDaTogliere\"] !== undefined ? _data[\"maxQuoteDaTogliere\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ScontoValore {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ScontoValore();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"valorePrezzo\"] = this.valorePrezzo !== undefined ? this.valorePrezzo : null;\r\n data[\"valoreCosto\"] = this.valoreCosto !== undefined ? this.valoreCosto : null;\r\n data[\"perGiorno\"] = this.perGiorno !== undefined ? this.perGiorno : null;\r\n data[\"perPersona\"] = this.perPersona !== undefined ? this.perPersona : null;\r\n data[\"quotaBambiniProporzionale\"] = this.quotaBambiniProporzionale !== undefined ? this.quotaBambiniProporzionale : null;\r\n data[\"applicaMulipliPeriodo\"] = this.applicaMulipliPeriodo !== undefined ? this.applicaMulipliPeriodo : null;\r\n data[\"gruppoApplicazione\"] = this.gruppoApplicazione !== undefined ? this.gruppoApplicazione : null;\r\n data[\"ricostruisciTariffaAdultiSuMezzeDoppie\"] = this.ricostruisciTariffaAdultiSuMezzeDoppie !== undefined ? this.ricostruisciTariffaAdultiSuMezzeDoppie : null;\r\n data[\"maxQuoteDaTogliere\"] = this.maxQuoteDaTogliere !== undefined ? this.maxQuoteDaTogliere : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IScontoValore {\r\n valorePrezzo?: number;\r\n valoreCosto?: number;\r\n perGiorno?: boolean;\r\n perPersona?: boolean;\r\n quotaBambiniProporzionale?: boolean;\r\n applicaMulipliPeriodo?: boolean;\r\n gruppoApplicazione?: EGruppoApplicazione;\r\n ricostruisciTariffaAdultiSuMezzeDoppie?: boolean;\r\n maxQuoteDaTogliere?: number;\r\n}\r\n\r\nexport class AbbinamentoSettimana implements IAbbinamentoSettimana {\r\n tipoAbbinamento?: EAbbinamentoSettimana;\r\n giornoIniziale?: string;\r\n\r\n constructor(data?: IAbbinamentoSettimana) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoAbbinamento = _data[\"tipoAbbinamento\"] !== undefined ? _data[\"tipoAbbinamento\"] : null;\r\n this.giornoIniziale = _data[\"giornoIniziale\"] !== undefined ? _data[\"giornoIniziale\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): AbbinamentoSettimana {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new AbbinamentoSettimana();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoAbbinamento\"] = this.tipoAbbinamento !== undefined ? this.tipoAbbinamento : null;\r\n data[\"giornoIniziale\"] = this.giornoIniziale !== undefined ? this.giornoIniziale : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAbbinamentoSettimana {\r\n tipoAbbinamento?: EAbbinamentoSettimana;\r\n giornoIniziale?: string;\r\n}\r\n\r\nexport enum EAbbinamentoSettimana {\r\n SettimanaPrecedente = \"SettimanaPrecedente\",\r\n SettimanaSuccessiva = \"SettimanaSuccessiva\",\r\n SettimanaPrimaODopo = \"SettimanaPrimaODopo\",\r\n}\r\n\r\nexport class ComposizioneGruppo implements IComposizioneGruppo {\r\n sottoEta1?: number;\r\n operatoreEta1?: EOperatoreDisuguaglianza;\r\n eta1?: number;\r\n traEta1e2?: number;\r\n operatoreEta1e2?: EOperatoreDisuguaglianza;\r\n eta2?: number;\r\n oltreEta2?: number;\r\n operatoreEta2?: EOperatoreDisuguaglianza;\r\n\r\n constructor(data?: IComposizioneGruppo) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.sottoEta1 = _data[\"sottoEta1\"] !== undefined ? _data[\"sottoEta1\"] : null;\r\n this.operatoreEta1 = _data[\"operatoreEta1\"] !== undefined ? _data[\"operatoreEta1\"] : null;\r\n this.eta1 = _data[\"eta1\"] !== undefined ? _data[\"eta1\"] : null;\r\n this.traEta1e2 = _data[\"traEta1e2\"] !== undefined ? _data[\"traEta1e2\"] : null;\r\n this.operatoreEta1e2 = _data[\"operatoreEta1e2\"] !== undefined ? _data[\"operatoreEta1e2\"] : null;\r\n this.eta2 = _data[\"eta2\"] !== undefined ? _data[\"eta2\"] : null;\r\n this.oltreEta2 = _data[\"oltreEta2\"] !== undefined ? _data[\"oltreEta2\"] : null;\r\n this.operatoreEta2 = _data[\"operatoreEta2\"] !== undefined ? _data[\"operatoreEta2\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ComposizioneGruppo {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ComposizioneGruppo();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"sottoEta1\"] = this.sottoEta1 !== undefined ? this.sottoEta1 : null;\r\n data[\"operatoreEta1\"] = this.operatoreEta1 !== undefined ? this.operatoreEta1 : null;\r\n data[\"eta1\"] = this.eta1 !== undefined ? this.eta1 : null;\r\n data[\"traEta1e2\"] = this.traEta1e2 !== undefined ? this.traEta1e2 : null;\r\n data[\"operatoreEta1e2\"] = this.operatoreEta1e2 !== undefined ? this.operatoreEta1e2 : null;\r\n data[\"eta2\"] = this.eta2 !== undefined ? this.eta2 : null;\r\n data[\"oltreEta2\"] = this.oltreEta2 !== undefined ? this.oltreEta2 : null;\r\n data[\"operatoreEta2\"] = this.operatoreEta2 !== undefined ? this.operatoreEta2 : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IComposizioneGruppo {\r\n sottoEta1?: number;\r\n operatoreEta1?: EOperatoreDisuguaglianza;\r\n eta1?: number;\r\n traEta1e2?: number;\r\n operatoreEta1e2?: EOperatoreDisuguaglianza;\r\n eta2?: number;\r\n oltreEta2?: number;\r\n operatoreEta2?: EOperatoreDisuguaglianza;\r\n}\r\n\r\nexport enum EOperatoreDisuguaglianza {\r\n Esattamente = \"Esattamente\",\r\n Minimo = \"Minimo\",\r\n Massimo = \"Massimo\",\r\n}\r\n\r\nexport class DataPartenza implements IDataPartenza {\r\n dataDal?: string | null;\r\n dataAl?: string | null;\r\n\r\n constructor(data?: IDataPartenza) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.dataDal = _data[\"dataDal\"] !== undefined ? _data[\"dataDal\"] : null;\r\n this.dataAl = _data[\"dataAl\"] !== undefined ? _data[\"dataAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DataPartenza {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DataPartenza();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"dataDal\"] = this.dataDal !== undefined ? this.dataDal : null;\r\n data[\"dataAl\"] = this.dataAl !== undefined ? this.dataAl : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDataPartenza {\r\n dataDal?: string | null;\r\n dataAl?: string | null;\r\n}\r\n\r\nexport class DataPrenotazione implements IDataPrenotazione {\r\n tipoRaffronto?: EPrenotaEntro;\r\n giorni?: number;\r\n dataDal?: string | null;\r\n dataAl?: string | null;\r\n\r\n constructor(data?: IDataPrenotazione) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.tipoRaffronto = _data[\"tipoRaffronto\"] !== undefined ? _data[\"tipoRaffronto\"] : null;\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.dataDal = _data[\"dataDal\"] !== undefined ? _data[\"dataDal\"] : null;\r\n this.dataAl = _data[\"dataAl\"] !== undefined ? _data[\"dataAl\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DataPrenotazione {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DataPrenotazione();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"tipoRaffronto\"] = this.tipoRaffronto !== undefined ? this.tipoRaffronto : null;\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"dataDal\"] = this.dataDal !== undefined ? this.dataDal : null;\r\n data[\"dataAl\"] = this.dataAl !== undefined ? this.dataAl : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDataPrenotazione {\r\n tipoRaffronto?: EPrenotaEntro;\r\n giorni?: number;\r\n dataDal?: string | null;\r\n dataAl?: string | null;\r\n}\r\n\r\nexport enum EPrenotaEntro {\r\n Giorni = \"Giorni\",\r\n Periodo = \"Periodo\",\r\n}\r\n\r\nexport class DurataSoggiorno implements IDurataSoggiorno {\r\n operatore?: EOperatoreDisuguaglianza;\r\n valore?: number;\r\n accettaMultipli?: boolean;\r\n ignoraEsclusioni?: boolean;\r\n\r\n constructor(data?: IDurataSoggiorno) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.valore = _data[\"valore\"] !== undefined ? _data[\"valore\"] : null;\r\n this.accettaMultipli = _data[\"accettaMultipli\"] !== undefined ? _data[\"accettaMultipli\"] : null;\r\n this.ignoraEsclusioni = _data[\"ignoraEsclusioni\"] !== undefined ? _data[\"ignoraEsclusioni\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): DurataSoggiorno {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new DurataSoggiorno();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"valore\"] = this.valore !== undefined ? this.valore : null;\r\n data[\"accettaMultipli\"] = this.accettaMultipli !== undefined ? this.accettaMultipli : null;\r\n data[\"ignoraEsclusioni\"] = this.ignoraEsclusioni !== undefined ? this.ignoraEsclusioni : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDurataSoggiorno {\r\n operatore?: EOperatoreDisuguaglianza;\r\n valore?: number;\r\n accettaMultipli?: boolean;\r\n ignoraEsclusioni?: boolean;\r\n}\r\n\r\nexport class GiorniEntrataUscita implements IGiorniEntrataUscita {\r\n giorni?: string;\r\n tipoGiorni?: EEntrataUscita;\r\n\r\n constructor(data?: IGiorniEntrataUscita) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.giorni = _data[\"giorni\"] !== undefined ? _data[\"giorni\"] : null;\r\n this.tipoGiorni = _data[\"tipoGiorni\"] !== undefined ? _data[\"tipoGiorni\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): GiorniEntrataUscita {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GiorniEntrataUscita();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"giorni\"] = this.giorni !== undefined ? this.giorni : null;\r\n data[\"tipoGiorni\"] = this.tipoGiorni !== undefined ? this.tipoGiorni : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGiorniEntrataUscita {\r\n giorni?: string;\r\n tipoGiorni?: EEntrataUscita;\r\n}\r\n\r\nexport enum EEntrataUscita {\r\n Entrata = \"Entrata\",\r\n Uscita = \"Uscita\",\r\n InOut = \"InOut\",\r\n}\r\n\r\nexport class PresenzaQuoteBambino implements IPresenzaQuoteBambino {\r\n operatore?: EOperatoreDisuguaglianza;\r\n numeroQuoteBambino?: number;\r\n\r\n constructor(data?: IPresenzaQuoteBambino) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n this.numeroQuoteBambino = _data[\"numeroQuoteBambino\"] !== undefined ? _data[\"numeroQuoteBambino\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): PresenzaQuoteBambino {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new PresenzaQuoteBambino();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n data[\"numeroQuoteBambino\"] = this.numeroQuoteBambino !== undefined ? this.numeroQuoteBambino : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPresenzaQuoteBambino {\r\n operatore?: EOperatoreDisuguaglianza;\r\n numeroQuoteBambino?: number;\r\n}\r\n\r\nexport enum EPermesso {\r\n Dev = \"dev\",\r\n Services_advance_payments_read = \"services_advance_payments_read\",\r\n Services_advance_payments_readwrite = \"services_advance_payments_readwrite\",\r\n Services_advance_payments = \"services_advance_payments\",\r\n Contab_fatture = \"contab_fatture\",\r\n Contab_fatture_read = \"contab_fatture_read\",\r\n Contab_fatture_readwrite = \"contab_fatture_readwrite\",\r\n Contab_fatture_creazione = \"contab_fatture_creazione\",\r\n Payments = \"payments\",\r\n Payments_read = \"payments_read\",\r\n Payments_readwrite = \"payments_readwrite\",\r\n Contab_ciclopassivo = \"contab_ciclopassivo\",\r\n Services_margins = \"services_margins\",\r\n Services_margins_read = \"services_margins_read\",\r\n Services_margins_readwrite = \"services_margins_readwrite\",\r\n Contacts = \"contacts\",\r\n Contacts_read = \"contacts_read\",\r\n Contacts_readwrite = \"contacts_readwrite\",\r\n Contacts_contracts_read = \"contacts_contracts_read\",\r\n Contacts_contracts_readwrite = \"contacts_contracts_readwrite\",\r\n Contacts_relations_read = \"contacts_relations_read\",\r\n Contacts_relations_readwrite = \"contacts_relations_readwrite\",\r\n Contacts_data_read = \"contacts_data_read\",\r\n Contacts_data_readwrite = \"contacts_data_readwrite\",\r\n Contacts_addresses_read = \"contacts_addresses_read\",\r\n Contacts_addresses_readwrite = \"contacts_addresses_readwrite\",\r\n Contacts_maps_read = \"contacts_maps_read\",\r\n Contacts_users_read = \"contacts_users_read\",\r\n Contacts_users_readwrite = \"contacts_users_readwrite\",\r\n Contacts_maps_readwrite = \"contacts_maps_readwrite\",\r\n Places = \"places\",\r\n Places_read = \"places_read\",\r\n Places_readwrite = \"places_readwrite\",\r\n Places_maps_readwrite = \"places_maps_readwrite\",\r\n Places_relations_read = \"places_relations_read\",\r\n Places_relations_readwrite = \"places_relations_readwrite\",\r\n Places_near_read = \"places_near_read\",\r\n Places_near_readwrite = \"places_near_readwrite\",\r\n H2hsvcs_read = \"h2hsvcs_read\",\r\n H2hsvcs_readwrite = \"h2hsvcs_readwrite\",\r\n Attacheddocs = \"attacheddocs\",\r\n Attacheddocs_read = \"attacheddocs_read\",\r\n Attacheddocs_readwrite = \"attacheddocs_readwrite\",\r\n Offert_optimize_hotel = \"offert_optimize_hotel\",\r\n Currencies_read = \"currencies_read\",\r\n Currencies_readwrite = \"currencies_readwrite\",\r\n Operators = \"operators\",\r\n Operators_read = \"operators_read\",\r\n Operators_readwrite = \"operators_readwrite\",\r\n Operators_quoteoptions_read = \"operators_quoteoptions_read\",\r\n Operators_quoteoptions_readwrite = \"operators_quoteoptions_readwrite\",\r\n Agency_users = \"agency_users\",\r\n Agency_users_read = \"agency_users_read\",\r\n Agency_users_readwrite = \"agency_users_readwrite\",\r\n Users = \"users\",\r\n Users_read = \"users_read\",\r\n Users_readwrite = \"users_readwrite\",\r\n Users_impersonate = \"users_impersonate\",\r\n}\r\n\r\nexport class ValidateTripExistsResponse extends OkApiResponse implements IValidateTripExistsResponse {\r\n exists?: boolean;\r\n\r\n constructor(data?: IValidateTripExistsResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.exists = _data[\"exists\"] !== undefined ? _data[\"exists\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ValidateTripExistsResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ValidateTripExistsResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"exists\"] = this.exists !== undefined ? this.exists : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValidateTripExistsResponse extends IOkApiResponse {\r\n exists?: boolean;\r\n}\r\n\r\nexport class ValidateTripExistsRequest extends ApiRequest implements IValidateTripExistsRequest {\r\n offertaID?: number;\r\n\r\n constructor(data?: IValidateTripExistsRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): ValidateTripExistsRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new ValidateTripExistsRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IValidateTripExistsRequest extends IApiRequest {\r\n offertaID?: number;\r\n}\r\n\r\nexport class NrTableResponseOfVoucherRow extends OkApiResponse implements INrTableResponseOfVoucherRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: VoucherRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfVoucherRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(VoucherRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfVoucherRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfVoucherRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfVoucherRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: VoucherRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class VoucherRow implements IVoucherRow {\r\n id?: number;\r\n luogo?: string;\r\n abbinamento?: string | null;\r\n descrizione?: string;\r\n nomeContatto?: string;\r\n data?: string;\r\n tipoEmissione?: string;\r\n cumulativeVouchers?: VoucherRow[] | null;\r\n\r\n constructor(data?: IVoucherRow) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.luogo = _data[\"luogo\"] !== undefined ? _data[\"luogo\"] : null;\r\n this.abbinamento = _data[\"abbinamento\"] !== undefined ? _data[\"abbinamento\"] : null;\r\n this.descrizione = _data[\"descrizione\"] !== undefined ? _data[\"descrizione\"] : null;\r\n this.nomeContatto = _data[\"nomeContatto\"] !== undefined ? _data[\"nomeContatto\"] : null;\r\n this.data = _data[\"data\"] !== undefined ? _data[\"data\"] : null;\r\n this.tipoEmissione = _data[\"tipoEmissione\"] !== undefined ? _data[\"tipoEmissione\"] : null;\r\n if (Array.isArray(_data[\"cumulativeVouchers\"])) {\r\n this.cumulativeVouchers = [] as any;\r\n for (let item of _data[\"cumulativeVouchers\"])\r\n this.cumulativeVouchers!.push(VoucherRow.fromJS(item));\r\n }\r\n else {\r\n this.cumulativeVouchers = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): VoucherRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VoucherRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"luogo\"] = this.luogo !== undefined ? this.luogo : null;\r\n data[\"abbinamento\"] = this.abbinamento !== undefined ? this.abbinamento : null;\r\n data[\"descrizione\"] = this.descrizione !== undefined ? this.descrizione : null;\r\n data[\"nomeContatto\"] = this.nomeContatto !== undefined ? this.nomeContatto : null;\r\n data[\"data\"] = this.data !== undefined ? this.data : null;\r\n data[\"tipoEmissione\"] = this.tipoEmissione !== undefined ? this.tipoEmissione : null;\r\n if (Array.isArray(this.cumulativeVouchers)) {\r\n data[\"cumulativeVouchers\"] = [];\r\n for (let item of this.cumulativeVouchers)\r\n data[\"cumulativeVouchers\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVoucherRow {\r\n id?: number;\r\n luogo?: string;\r\n abbinamento?: string | null;\r\n descrizione?: string;\r\n nomeContatto?: string;\r\n data?: string;\r\n tipoEmissione?: string;\r\n cumulativeVouchers?: VoucherRow[] | null;\r\n}\r\n\r\nexport class VouchersCreateRequest extends LocalizedRequest implements IVouchersCreateRequest {\r\n offertaID?: number;\r\n quantity?: number;\r\n\r\n constructor(data?: IVouchersCreateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n this.quantity = _data[\"quantity\"] !== undefined ? _data[\"quantity\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VouchersCreateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VouchersCreateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n data[\"quantity\"] = this.quantity !== undefined ? this.quantity : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVouchersCreateRequest extends ILocalizedRequest {\r\n offertaID?: number;\r\n quantity?: number;\r\n}\r\n\r\nexport class VouchersListRequest extends NrTableRequest implements IVouchersListRequest {\r\n offertaID?: number;\r\n\r\n constructor(data?: IVouchersListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.offertaID = _data[\"offertaID\"] !== undefined ? _data[\"offertaID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): VouchersListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new VouchersListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"offertaID\"] = this.offertaID !== undefined ? this.offertaID : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IVouchersListRequest extends INrTableRequest {\r\n offertaID?: number;\r\n}\r\n\r\nexport class WebsiteLabelsGetResponse extends OkApiResponse implements IWebsiteLabelsGetResponse {\r\n id?: number;\r\n website?: string | null;\r\n label?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n translations?: WebsiteLabelTranslation[] | null;\r\n\r\n constructor(data?: IWebsiteLabelsGetResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.website = _data[\"website\"] !== undefined ? _data[\"website\"] : null;\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n if (Array.isArray(_data[\"translations\"])) {\r\n this.translations = [] as any;\r\n for (let item of _data[\"translations\"])\r\n this.translations!.push(WebsiteLabelTranslation.fromJS(item));\r\n }\r\n else {\r\n this.translations = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelsGetResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelsGetResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"website\"] = this.website !== undefined ? this.website : null;\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n if (Array.isArray(this.translations)) {\r\n data[\"translations\"] = [];\r\n for (let item of this.translations)\r\n data[\"translations\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelsGetResponse extends IOkApiResponse {\r\n id?: number;\r\n website?: string | null;\r\n label?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n translations?: WebsiteLabelTranslation[] | null;\r\n}\r\n\r\nexport class WebsiteLabelTranslation implements IWebsiteLabelTranslation {\r\n id?: number;\r\n labelID?: number;\r\n lingua?: ELingua;\r\n translation?: string | null;\r\n confirmed?: boolean | null;\r\n aggiornato?: string | null;\r\n eliminato?: string | null;\r\n\r\n constructor(data?: IWebsiteLabelTranslation) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.labelID = _data[\"labelID\"] !== undefined ? _data[\"labelID\"] : null;\r\n this.lingua = _data[\"lingua\"] !== undefined ? _data[\"lingua\"] : null;\r\n this.translation = _data[\"translation\"] !== undefined ? _data[\"translation\"] : null;\r\n this.confirmed = _data[\"confirmed\"] !== undefined ? _data[\"confirmed\"] : null;\r\n this.aggiornato = _data[\"aggiornato\"] !== undefined ? _data[\"aggiornato\"] : null;\r\n this.eliminato = _data[\"eliminato\"] !== undefined ? _data[\"eliminato\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelTranslation {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelTranslation();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"labelID\"] = this.labelID !== undefined ? this.labelID : null;\r\n data[\"lingua\"] = this.lingua !== undefined ? this.lingua : null;\r\n data[\"translation\"] = this.translation !== undefined ? this.translation : null;\r\n data[\"confirmed\"] = this.confirmed !== undefined ? this.confirmed : null;\r\n data[\"aggiornato\"] = this.aggiornato !== undefined ? this.aggiornato : null;\r\n data[\"eliminato\"] = this.eliminato !== undefined ? this.eliminato : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelTranslation {\r\n id?: number;\r\n labelID?: number;\r\n lingua?: ELingua;\r\n translation?: string | null;\r\n confirmed?: boolean | null;\r\n aggiornato?: string | null;\r\n eliminato?: string | null;\r\n}\r\n\r\nexport class WebsiteLabelsGetRequest extends ApiRequest implements IWebsiteLabelsGetRequest {\r\n id?: number;\r\n\r\n constructor(data?: IWebsiteLabelsGetRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelsGetRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelsGetRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelsGetRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class WebsiteLabelsCreateRequest extends WebsiteLabelsGetRequest implements IWebsiteLabelsCreateRequest {\r\n label?: string | null;\r\n website?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n translations?: WebsiteLabelTranslation[] | null;\r\n\r\n constructor(data?: IWebsiteLabelsCreateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.website = _data[\"website\"] !== undefined ? _data[\"website\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n this.nomeInglese = _data[\"nomeInglese\"] !== undefined ? _data[\"nomeInglese\"] : null;\r\n if (Array.isArray(_data[\"translations\"])) {\r\n this.translations = [] as any;\r\n for (let item of _data[\"translations\"])\r\n this.translations!.push(WebsiteLabelTranslation.fromJS(item));\r\n }\r\n else {\r\n this.translations = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelsCreateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelsCreateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"website\"] = this.website !== undefined ? this.website : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n data[\"nomeInglese\"] = this.nomeInglese !== undefined ? this.nomeInglese : null;\r\n if (Array.isArray(this.translations)) {\r\n data[\"translations\"] = [];\r\n for (let item of this.translations)\r\n data[\"translations\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelsCreateRequest extends IWebsiteLabelsGetRequest {\r\n label?: string | null;\r\n website?: string | null;\r\n nome?: string | null;\r\n nomeInglese?: string | null;\r\n translations?: WebsiteLabelTranslation[] | null;\r\n}\r\n\r\nexport class WebsiteLabelsDeleteRequest extends ApiRequest implements IWebsiteLabelsDeleteRequest {\r\n id?: number;\r\n\r\n constructor(data?: IWebsiteLabelsDeleteRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelsDeleteRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelsDeleteRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelsDeleteRequest extends IApiRequest {\r\n id?: number;\r\n}\r\n\r\nexport class NrTableResponseOfWebsiteLabelsRow extends OkApiResponse implements INrTableResponseOfWebsiteLabelsRow {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: WebsiteLabelsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n\r\n constructor(data?: INrTableResponseOfWebsiteLabelsRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"rows\"])) {\r\n this.rows = [] as any;\r\n for (let item of _data[\"rows\"])\r\n this.rows!.push(WebsiteLabelsRow.fromJS(item));\r\n }\r\n else {\r\n this.rows = null;\r\n }\r\n this.total = _data[\"total\"] !== undefined ? _data[\"total\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): NrTableResponseOfWebsiteLabelsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new NrTableResponseOfWebsiteLabelsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.rows)) {\r\n data[\"rows\"] = [];\r\n for (let item of this.rows)\r\n data[\"rows\"].push(item.toJSON());\r\n }\r\n data[\"total\"] = this.total !== undefined ? this.total : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface INrTableResponseOfWebsiteLabelsRow extends IOkApiResponse {\r\n /** Array delle righe della pagina richiesta */\r\n rows?: WebsiteLabelsRow[] | null;\r\n /** Numero totale dei record presenti */\r\n total?: number;\r\n}\r\n\r\nexport class WebsiteLabelsRow extends TranslationsListRow implements IWebsiteLabelsRow {\r\n website?: string | null;\r\n\r\n constructor(data?: IWebsiteLabelsRow) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.website = _data[\"website\"] !== undefined ? _data[\"website\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelsRow {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelsRow();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"website\"] = this.website !== undefined ? this.website : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelsRow extends ITranslationsListRow {\r\n website?: string | null;\r\n}\r\n\r\nexport class WebsiteLabelsListRequest extends TranslationsListRequest implements IWebsiteLabelsListRequest {\r\n website?: string | null;\r\n\r\n constructor(data?: IWebsiteLabelsListRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.website = _data[\"website\"] !== undefined ? _data[\"website\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelsListRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelsListRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"website\"] = this.website !== undefined ? this.website : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelsListRequest extends ITranslationsListRequest {\r\n website?: string | null;\r\n}\r\n\r\nexport class MissingLabelRequest extends ApiRequest implements IMissingLabelRequest {\r\n label?: string | null;\r\n website?: string | null;\r\n langCode?: string | null;\r\n url?: string | null;\r\n\r\n constructor(data?: IMissingLabelRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.website = _data[\"website\"] !== undefined ? _data[\"website\"] : null;\r\n this.langCode = _data[\"langCode\"] !== undefined ? _data[\"langCode\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MissingLabelRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MissingLabelRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"website\"] = this.website !== undefined ? this.website : null;\r\n data[\"langCode\"] = this.langCode !== undefined ? this.langCode : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMissingLabelRequest extends IApiRequest {\r\n label?: string | null;\r\n website?: string | null;\r\n langCode?: string | null;\r\n url?: string | null;\r\n}\r\n\r\nexport class WebsiteLabelsUpdateRequest extends WebsiteLabelsCreateRequest implements IWebsiteLabelsUpdateRequest {\r\n\r\n constructor(data?: IWebsiteLabelsUpdateRequest) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n }\r\n\r\n static fromJS(data: any): WebsiteLabelsUpdateRequest {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteLabelsUpdateRequest();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteLabelsUpdateRequest extends IWebsiteLabelsCreateRequest {\r\n}\r\n\r\nexport class GetWebsitesResponse extends OkApiResponse implements IGetWebsitesResponse {\r\n websites?: WebsiteDef[] | null;\r\n siti?: Site[] | null;\r\n\r\n constructor(data?: IGetWebsitesResponse) {\r\n super(data);\r\n }\r\n\r\n init(_data?: any) {\r\n super.init(_data);\r\n if (_data) {\r\n if (Array.isArray(_data[\"websites\"])) {\r\n this.websites = [] as any;\r\n for (let item of _data[\"websites\"])\r\n this.websites!.push(WebsiteDef.fromJS(item));\r\n }\r\n else {\r\n this.websites = null;\r\n }\r\n if (Array.isArray(_data[\"siti\"])) {\r\n this.siti = [] as any;\r\n for (let item of _data[\"siti\"])\r\n this.siti!.push(Site.fromJS(item));\r\n }\r\n else {\r\n this.siti = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): GetWebsitesResponse {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new GetWebsitesResponse();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n if (Array.isArray(this.websites)) {\r\n data[\"websites\"] = [];\r\n for (let item of this.websites)\r\n data[\"websites\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.siti)) {\r\n data[\"siti\"] = [];\r\n for (let item of this.siti)\r\n data[\"siti\"].push(item.toJSON());\r\n }\r\n super.toJSON(data);\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IGetWebsitesResponse extends IOkApiResponse {\r\n websites?: WebsiteDef[] | null;\r\n siti?: Site[] | null;\r\n}\r\n\r\nexport class WebsiteDef implements IWebsiteDef {\r\n id?: number;\r\n host?: string | null;\r\n defaultLangCode?: string | null;\r\n operatore?: EOperatore;\r\n availableLanguages?: WebsiteLanguage[] | null;\r\n\r\n constructor(data?: IWebsiteDef) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.host = _data[\"host\"] !== undefined ? _data[\"host\"] : null;\r\n this.defaultLangCode = _data[\"defaultLangCode\"] !== undefined ? _data[\"defaultLangCode\"] : null;\r\n this.operatore = _data[\"operatore\"] !== undefined ? _data[\"operatore\"] : null;\r\n if (Array.isArray(_data[\"availableLanguages\"])) {\r\n this.availableLanguages = [] as any;\r\n for (let item of _data[\"availableLanguages\"])\r\n this.availableLanguages!.push(WebsiteLanguage.fromJS(item));\r\n }\r\n else {\r\n this.availableLanguages = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): WebsiteDef {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new WebsiteDef();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"host\"] = this.host !== undefined ? this.host : null;\r\n data[\"defaultLangCode\"] = this.defaultLangCode !== undefined ? this.defaultLangCode : null;\r\n data[\"operatore\"] = this.operatore !== undefined ? this.operatore : null;\r\n if (Array.isArray(this.availableLanguages)) {\r\n data[\"availableLanguages\"] = [];\r\n for (let item of this.availableLanguages)\r\n data[\"availableLanguages\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IWebsiteDef {\r\n id?: number;\r\n host?: string | null;\r\n defaultLangCode?: string | null;\r\n operatore?: EOperatore;\r\n availableLanguages?: WebsiteLanguage[] | null;\r\n}\r\n\r\nexport class Site implements ISite {\r\n id?: number;\r\n nome?: string | null;\r\n\r\n constructor(data?: ISite) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.nome = _data[\"nome\"] !== undefined ? _data[\"nome\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Site {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Site();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"nome\"] = this.nome !== undefined ? this.nome : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ISite {\r\n id?: number;\r\n nome?: string | null;\r\n}\r\n\r\nexport class Trip implements ITrip {\r\n tripID?: string;\r\n tripName!: string;\r\n tourOperatorID!: string;\r\n tourOperatorTripID!: string;\r\n quoteUUID?: string;\r\n previewUUID?: string;\r\n desc?: string;\r\n dateStart!: string;\r\n dateEnd!: string;\r\n locale!: string;\r\n status!: TripStatus2;\r\n generalContacts?: number[];\r\n featuredImage?: number;\r\n agency!: Agency;\r\n itinerary!: Step2[];\r\n images?: Image[];\r\n documents?: Document[];\r\n contacts!: Contact[];\r\n services!: Service[];\r\n paxList!: Pax[];\r\n mobiles?: MobileTuple[];\r\n prices?: Price[];\r\n updatedAt?: string;\r\n createdAt?: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: ITrip) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n if (!data) {\r\n this.agency = new Agency();\r\n this.itinerary = [];\r\n this.contacts = [];\r\n this.services = [];\r\n this.paxList = [];\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.tripID = _data[\"tripID\"] !== undefined ? _data[\"tripID\"] : null;\r\n this.tripName = _data[\"tripName\"] !== undefined ? _data[\"tripName\"] : null;\r\n this.tourOperatorID = _data[\"tourOperatorID\"] !== undefined ? _data[\"tourOperatorID\"] : null;\r\n this.tourOperatorTripID = _data[\"tourOperatorTripID\"] !== undefined ? _data[\"tourOperatorTripID\"] : null;\r\n this.quoteUUID = _data[\"quoteUUID\"] !== undefined ? _data[\"quoteUUID\"] : null;\r\n this.previewUUID = _data[\"previewUUID\"] !== undefined ? _data[\"previewUUID\"] : null;\r\n this.desc = _data[\"desc\"] !== undefined ? _data[\"desc\"] : null;\r\n this.dateStart = _data[\"dateStart\"] !== undefined ? _data[\"dateStart\"] : null;\r\n this.dateEnd = _data[\"dateEnd\"] !== undefined ? _data[\"dateEnd\"] : null;\r\n this.locale = _data[\"locale\"] !== undefined ? _data[\"locale\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n if (Array.isArray(_data[\"generalContacts\"])) {\r\n this.generalContacts = [] as any;\r\n for (let item of _data[\"generalContacts\"])\r\n this.generalContacts!.push(item);\r\n }\r\n else {\r\n this.generalContacts = null;\r\n }\r\n this.featuredImage = _data[\"featuredImage\"] !== undefined ? _data[\"featuredImage\"] : null;\r\n this.agency = _data[\"agency\"] ? Agency.fromJS(_data[\"agency\"]) : new Agency();\r\n if (Array.isArray(_data[\"itinerary\"])) {\r\n this.itinerary = [] as any;\r\n for (let item of _data[\"itinerary\"])\r\n this.itinerary!.push(Step2.fromJS(item));\r\n }\r\n else {\r\n this.itinerary = null;\r\n }\r\n if (Array.isArray(_data[\"images\"])) {\r\n this.images = [] as any;\r\n for (let item of _data[\"images\"])\r\n this.images!.push(Image.fromJS(item));\r\n }\r\n else {\r\n this.images = null;\r\n }\r\n if (Array.isArray(_data[\"documents\"])) {\r\n this.documents = [] as any;\r\n for (let item of _data[\"documents\"])\r\n this.documents!.push(Document.fromJS(item));\r\n }\r\n else {\r\n this.documents = null;\r\n }\r\n if (Array.isArray(_data[\"contacts\"])) {\r\n this.contacts = [] as any;\r\n for (let item of _data[\"contacts\"])\r\n this.contacts!.push(Contact.fromJS(item));\r\n }\r\n else {\r\n this.contacts = null;\r\n }\r\n if (Array.isArray(_data[\"services\"])) {\r\n this.services = [] as any;\r\n for (let item of _data[\"services\"])\r\n this.services!.push(Service.fromJS(item));\r\n }\r\n else {\r\n this.services = null;\r\n }\r\n if (Array.isArray(_data[\"paxList\"])) {\r\n this.paxList = [] as any;\r\n for (let item of _data[\"paxList\"])\r\n this.paxList!.push(Pax.fromJS(item));\r\n }\r\n else {\r\n this.paxList = null;\r\n }\r\n if (Array.isArray(_data[\"mobiles\"])) {\r\n this.mobiles = [] as any;\r\n for (let item of _data[\"mobiles\"])\r\n this.mobiles!.push(MobileTuple.fromJS(item));\r\n }\r\n else {\r\n this.mobiles = null;\r\n }\r\n if (Array.isArray(_data[\"prices\"])) {\r\n this.prices = [] as any;\r\n for (let item of _data[\"prices\"])\r\n this.prices!.push(Price.fromJS(item));\r\n }\r\n else {\r\n this.prices = null;\r\n }\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n this.createdAt = _data[\"createdAt\"] !== undefined ? _data[\"createdAt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Trip {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Trip();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"tripID\"] = this.tripID !== undefined ? this.tripID : null;\r\n data[\"tripName\"] = this.tripName !== undefined ? this.tripName : null;\r\n data[\"tourOperatorID\"] = this.tourOperatorID !== undefined ? this.tourOperatorID : null;\r\n data[\"tourOperatorTripID\"] = this.tourOperatorTripID !== undefined ? this.tourOperatorTripID : null;\r\n data[\"quoteUUID\"] = this.quoteUUID !== undefined ? this.quoteUUID : null;\r\n data[\"previewUUID\"] = this.previewUUID !== undefined ? this.previewUUID : null;\r\n data[\"desc\"] = this.desc !== undefined ? this.desc : null;\r\n data[\"dateStart\"] = this.dateStart !== undefined ? this.dateStart : null;\r\n data[\"dateEnd\"] = this.dateEnd !== undefined ? this.dateEnd : null;\r\n data[\"locale\"] = this.locale !== undefined ? this.locale : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n if (Array.isArray(this.generalContacts)) {\r\n data[\"generalContacts\"] = [];\r\n for (let item of this.generalContacts)\r\n data[\"generalContacts\"].push(item);\r\n }\r\n data[\"featuredImage\"] = this.featuredImage !== undefined ? this.featuredImage : null;\r\n data[\"agency\"] = this.agency ? this.agency.toJSON() : null;\r\n if (Array.isArray(this.itinerary)) {\r\n data[\"itinerary\"] = [];\r\n for (let item of this.itinerary)\r\n data[\"itinerary\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.images)) {\r\n data[\"images\"] = [];\r\n for (let item of this.images)\r\n data[\"images\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.documents)) {\r\n data[\"documents\"] = [];\r\n for (let item of this.documents)\r\n data[\"documents\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.contacts)) {\r\n data[\"contacts\"] = [];\r\n for (let item of this.contacts)\r\n data[\"contacts\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.services)) {\r\n data[\"services\"] = [];\r\n for (let item of this.services)\r\n data[\"services\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.paxList)) {\r\n data[\"paxList\"] = [];\r\n for (let item of this.paxList)\r\n data[\"paxList\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.mobiles)) {\r\n data[\"mobiles\"] = [];\r\n for (let item of this.mobiles)\r\n data[\"mobiles\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.prices)) {\r\n data[\"prices\"] = [];\r\n for (let item of this.prices)\r\n data[\"prices\"].push(item.toJSON());\r\n }\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n data[\"createdAt\"] = this.createdAt !== undefined ? this.createdAt : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface ITrip {\r\n tripID?: string;\r\n tripName: string;\r\n tourOperatorID: string;\r\n tourOperatorTripID: string;\r\n quoteUUID?: string;\r\n previewUUID?: string;\r\n desc?: string;\r\n dateStart: string;\r\n dateEnd: string;\r\n locale: string;\r\n status: TripStatus2;\r\n generalContacts?: number[];\r\n featuredImage?: number;\r\n agency: Agency;\r\n itinerary: Step2[];\r\n images?: Image[];\r\n documents?: Document[];\r\n contacts: Contact[];\r\n services: Service[];\r\n paxList: Pax[];\r\n mobiles?: MobileTuple[];\r\n prices?: Price[];\r\n updatedAt?: string;\r\n createdAt?: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum TripStatus2 {\r\n CONFIRMED = \"CONFIRMED\",\r\n PENDING = \"PENDING\",\r\n CANCELED = \"CANCELED\",\r\n QUOTE = \"QUOTE\",\r\n}\r\n\r\nexport class Agency implements IAgency {\r\n id!: number;\r\n title!: string;\r\n desc?: string;\r\n image?: number;\r\n contacts?: number[];\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IAgency) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.desc = _data[\"desc\"] !== undefined ? _data[\"desc\"] : null;\r\n this.image = _data[\"image\"] !== undefined ? _data[\"image\"] : null;\r\n if (Array.isArray(_data[\"contacts\"])) {\r\n this.contacts = [] as any;\r\n for (let item of _data[\"contacts\"])\r\n this.contacts!.push(item);\r\n }\r\n else {\r\n this.contacts = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): Agency {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Agency();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"desc\"] = this.desc !== undefined ? this.desc : null;\r\n data[\"image\"] = this.image !== undefined ? this.image : null;\r\n if (Array.isArray(this.contacts)) {\r\n data[\"contacts\"] = [];\r\n for (let item of this.contacts)\r\n data[\"contacts\"].push(item);\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IAgency {\r\n id: number;\r\n title: string;\r\n desc?: string;\r\n image?: number;\r\n contacts?: number[];\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport class Step2 implements IStep2 {\r\n stepID!: number;\r\n type!: StepType;\r\n cityID?: string;\r\n cityCode?: string;\r\n cityName!: string;\r\n cityDesc?: string;\r\n dateStart!: string;\r\n dateEnd!: string;\r\n autoGuide?: boolean;\r\n map?: Map;\r\n images?: number[];\r\n services?: number[];\r\n contacts?: number[];\r\n documents?: number[];\r\n references?: Reference[];\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IStep2) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.stepID = _data[\"stepID\"] !== undefined ? _data[\"stepID\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.cityID = _data[\"cityID\"] !== undefined ? _data[\"cityID\"] : null;\r\n this.cityCode = _data[\"cityCode\"] !== undefined ? _data[\"cityCode\"] : null;\r\n this.cityName = _data[\"cityName\"] !== undefined ? _data[\"cityName\"] : null;\r\n this.cityDesc = _data[\"cityDesc\"] !== undefined ? _data[\"cityDesc\"] : null;\r\n this.dateStart = _data[\"dateStart\"] !== undefined ? _data[\"dateStart\"] : null;\r\n this.dateEnd = _data[\"dateEnd\"] !== undefined ? _data[\"dateEnd\"] : null;\r\n this.autoGuide = _data[\"autoGuide\"] !== undefined ? _data[\"autoGuide\"] : null;\r\n this.map = _data[\"map\"] ? Map.fromJS(_data[\"map\"]) : null;\r\n if (Array.isArray(_data[\"images\"])) {\r\n this.images = [] as any;\r\n for (let item of _data[\"images\"])\r\n this.images!.push(item);\r\n }\r\n else {\r\n this.images = null;\r\n }\r\n if (Array.isArray(_data[\"services\"])) {\r\n this.services = [] as any;\r\n for (let item of _data[\"services\"])\r\n this.services!.push(item);\r\n }\r\n else {\r\n this.services = null;\r\n }\r\n if (Array.isArray(_data[\"contacts\"])) {\r\n this.contacts = [] as any;\r\n for (let item of _data[\"contacts\"])\r\n this.contacts!.push(item);\r\n }\r\n else {\r\n this.contacts = null;\r\n }\r\n if (Array.isArray(_data[\"documents\"])) {\r\n this.documents = [] as any;\r\n for (let item of _data[\"documents\"])\r\n this.documents!.push(item);\r\n }\r\n else {\r\n this.documents = null;\r\n }\r\n if (Array.isArray(_data[\"references\"])) {\r\n this.references = [] as any;\r\n for (let item of _data[\"references\"])\r\n this.references!.push(Reference.fromJS(item));\r\n }\r\n else {\r\n this.references = null;\r\n }\r\n }\r\n }\r\n\r\n static fromJS(data: any): Step2 {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Step2();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"stepID\"] = this.stepID !== undefined ? this.stepID : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"cityID\"] = this.cityID !== undefined ? this.cityID : null;\r\n data[\"cityCode\"] = this.cityCode !== undefined ? this.cityCode : null;\r\n data[\"cityName\"] = this.cityName !== undefined ? this.cityName : null;\r\n data[\"cityDesc\"] = this.cityDesc !== undefined ? this.cityDesc : null;\r\n data[\"dateStart\"] = this.dateStart !== undefined ? this.dateStart : null;\r\n data[\"dateEnd\"] = this.dateEnd !== undefined ? this.dateEnd : null;\r\n data[\"autoGuide\"] = this.autoGuide !== undefined ? this.autoGuide : null;\r\n data[\"map\"] = this.map ? this.map.toJSON() : null;\r\n if (Array.isArray(this.images)) {\r\n data[\"images\"] = [];\r\n for (let item of this.images)\r\n data[\"images\"].push(item);\r\n }\r\n if (Array.isArray(this.services)) {\r\n data[\"services\"] = [];\r\n for (let item of this.services)\r\n data[\"services\"].push(item);\r\n }\r\n if (Array.isArray(this.contacts)) {\r\n data[\"contacts\"] = [];\r\n for (let item of this.contacts)\r\n data[\"contacts\"].push(item);\r\n }\r\n if (Array.isArray(this.documents)) {\r\n data[\"documents\"] = [];\r\n for (let item of this.documents)\r\n data[\"documents\"].push(item);\r\n }\r\n if (Array.isArray(this.references)) {\r\n data[\"references\"] = [];\r\n for (let item of this.references)\r\n data[\"references\"].push(item.toJSON());\r\n }\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IStep2 {\r\n stepID: number;\r\n type: StepType;\r\n cityID?: string;\r\n cityCode?: string;\r\n cityName: string;\r\n cityDesc?: string;\r\n dateStart: string;\r\n dateEnd: string;\r\n autoGuide?: boolean;\r\n map?: Map;\r\n images?: number[];\r\n services?: number[];\r\n contacts?: number[];\r\n documents?: number[];\r\n references?: Reference[];\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum StepType {\r\n START = \"START\",\r\n TRANSFERT = \"TRANSFERT\",\r\n STEP = \"STEP\",\r\n END = \"END\",\r\n}\r\n\r\nexport class Map implements IMap {\r\n lat!: number;\r\n lng!: number;\r\n zoom?: number;\r\n minZoom?: number;\r\n maxZoom?: number;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IMap) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.lat = _data[\"lat\"] !== undefined ? _data[\"lat\"] : null;\r\n this.lng = _data[\"lng\"] !== undefined ? _data[\"lng\"] : null;\r\n this.zoom = _data[\"zoom\"] !== undefined ? _data[\"zoom\"] : null;\r\n this.minZoom = _data[\"minZoom\"] !== undefined ? _data[\"minZoom\"] : null;\r\n this.maxZoom = _data[\"maxZoom\"] !== undefined ? _data[\"maxZoom\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Map {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Map();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"lng\"] = this.lng !== undefined ? this.lng : null;\r\n data[\"zoom\"] = this.zoom !== undefined ? this.zoom : null;\r\n data[\"minZoom\"] = this.minZoom !== undefined ? this.minZoom : null;\r\n data[\"maxZoom\"] = this.maxZoom !== undefined ? this.maxZoom : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMap {\r\n lat: number;\r\n lng: number;\r\n zoom?: number;\r\n minZoom?: number;\r\n maxZoom?: number;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport class Reference implements IReference {\r\n id?: number;\r\n title?: string;\r\n type?: string;\r\n languageId?: string;\r\n url?: string;\r\n supplier?: string;\r\n enabled?: boolean;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IReference) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.languageId = _data[\"languageId\"] !== undefined ? _data[\"languageId\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.supplier = _data[\"supplier\"] !== undefined ? _data[\"supplier\"] : null;\r\n this.enabled = _data[\"enabled\"] !== undefined ? _data[\"enabled\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Reference {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Reference();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"languageId\"] = this.languageId !== undefined ? this.languageId : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"supplier\"] = this.supplier !== undefined ? this.supplier : null;\r\n data[\"enabled\"] = this.enabled !== undefined ? this.enabled : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IReference {\r\n id?: number;\r\n title?: string;\r\n type?: string;\r\n languageId?: string;\r\n url?: string;\r\n supplier?: string;\r\n enabled?: boolean;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport class Image implements IImage {\r\n id!: number;\r\n type!: ImageType;\r\n isFeatured!: boolean;\r\n url!: string;\r\n source!: ImageSource;\r\n updatedAt?: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IImage) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.isFeatured = _data[\"isFeatured\"] !== undefined ? _data[\"isFeatured\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.source = _data[\"source\"] !== undefined ? _data[\"source\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Image {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Image();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"isFeatured\"] = this.isFeatured !== undefined ? this.isFeatured : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"source\"] = this.source !== undefined ? this.source : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IImage {\r\n id: number;\r\n type: ImageType;\r\n isFeatured: boolean;\r\n url: string;\r\n source: ImageSource;\r\n updatedAt?: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum ImageType {\r\n CITY = \"CITY\",\r\n SERVICE = \"SERVICE\",\r\n AGENCY = \"AGENCY\",\r\n OTHER = \"OTHER\",\r\n}\r\n\r\nexport enum ImageSource {\r\n WEELLGODRIVE = \"WEELLGODRIVE\",\r\n PUBLIC = \"PUBLIC\",\r\n}\r\n\r\nexport class Document implements IDocument {\r\n id!: number;\r\n type!: DocumentType2;\r\n title!: string;\r\n desc?: string;\r\n url!: string;\r\n source!: DocumentSource;\r\n updatedAt?: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IDocument) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.desc = _data[\"desc\"] !== undefined ? _data[\"desc\"] : null;\r\n this.url = _data[\"url\"] !== undefined ? _data[\"url\"] : null;\r\n this.source = _data[\"source\"] !== undefined ? _data[\"source\"] : null;\r\n this.updatedAt = _data[\"updatedAt\"] !== undefined ? _data[\"updatedAt\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Document {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Document();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"desc\"] = this.desc !== undefined ? this.desc : null;\r\n data[\"url\"] = this.url !== undefined ? this.url : null;\r\n data[\"source\"] = this.source !== undefined ? this.source : null;\r\n data[\"updatedAt\"] = this.updatedAt !== undefined ? this.updatedAt : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IDocument {\r\n id: number;\r\n type: DocumentType2;\r\n title: string;\r\n desc?: string;\r\n url: string;\r\n source: DocumentSource;\r\n updatedAt?: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum DocumentType2 {\r\n VOUCHER = \"VOUCHER\",\r\n GUIDE = \"GUIDE\",\r\n INFO = \"INFO\",\r\n EXTRA = \"EXTRA\",\r\n TICKET = \"TICKET\",\r\n BOARDING_PASS = \"BOARDING_PASS\",\r\n PROGRAM = \"PROGRAM\",\r\n INSURANCE = \"INSURANCE\",\r\n}\r\n\r\nexport enum DocumentSource {\r\n WEELLGODRIVE = \"WEELLGODRIVE\",\r\n PUBLIC = \"PUBLIC\",\r\n}\r\n\r\nexport class Contact implements IContact {\r\n id!: number;\r\n type!: ContactType;\r\n title!: string;\r\n desc?: string;\r\n phones?: Phone2[];\r\n emails?: Email2[];\r\n address?: string;\r\n website?: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IContact) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.desc = _data[\"desc\"] !== undefined ? _data[\"desc\"] : null;\r\n if (Array.isArray(_data[\"phones\"])) {\r\n this.phones = [] as any;\r\n for (let item of _data[\"phones\"])\r\n this.phones!.push(Phone2.fromJS(item));\r\n }\r\n else {\r\n this.phones = null;\r\n }\r\n if (Array.isArray(_data[\"emails\"])) {\r\n this.emails = [] as any;\r\n for (let item of _data[\"emails\"])\r\n this.emails!.push(Email2.fromJS(item));\r\n }\r\n else {\r\n this.emails = null;\r\n }\r\n this.address = _data[\"address\"] !== undefined ? _data[\"address\"] : null;\r\n this.website = _data[\"website\"] !== undefined ? _data[\"website\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Contact {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Contact();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"desc\"] = this.desc !== undefined ? this.desc : null;\r\n if (Array.isArray(this.phones)) {\r\n data[\"phones\"] = [];\r\n for (let item of this.phones)\r\n data[\"phones\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.emails)) {\r\n data[\"emails\"] = [];\r\n for (let item of this.emails)\r\n data[\"emails\"].push(item.toJSON());\r\n }\r\n data[\"address\"] = this.address !== undefined ? this.address : null;\r\n data[\"website\"] = this.website !== undefined ? this.website : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IContact {\r\n id: number;\r\n type: ContactType;\r\n title: string;\r\n desc?: string;\r\n phones?: Phone2[];\r\n emails?: Email2[];\r\n address?: string;\r\n website?: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum ContactType {\r\n AGENCY = \"AGENCY\",\r\n TO = \"TO\",\r\n HOTEL = \"HOTEL\",\r\n POLICE = \"POLICE\",\r\n HOSPITAL = \"HOSPITAL\",\r\n SERVICE = \"SERVICE\",\r\n OTHER = \"OTHER\",\r\n INSURANCE = \"INSURANCE\",\r\n GUIDE = \"GUIDE\",\r\n CORRESPONDING = \"CORRESPONDING\",\r\n EMERGENCY = \"EMERGENCY\",\r\n CONSULATE_EMBASSY = \"CONSULATE_EMBASSY\",\r\n}\r\n\r\nexport class Phone2 implements IPhone2 {\r\n title!: string;\r\n phone!: string;\r\n type?: PhoneType;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IPhone2) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.phone = _data[\"phone\"] !== undefined ? _data[\"phone\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Phone2 {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Phone2();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"phone\"] = this.phone !== undefined ? this.phone : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPhone2 {\r\n title: string;\r\n phone: string;\r\n type?: PhoneType;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum PhoneType {\r\n WHATSAPP = \"WHATSAPP\",\r\n}\r\n\r\nexport class Email2 implements IEmail2 {\r\n title!: string;\r\n email!: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IEmail2) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Email2 {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Email2();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IEmail2 {\r\n title: string;\r\n email: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport class Service implements IService {\r\n id!: number;\r\n type!: ServiceType;\r\n title!: string;\r\n desc?: string;\r\n images?: number[];\r\n documents?: number[];\r\n serviceData?: any;\r\n servicePaxList?: number[];\r\n markers?: Marker[];\r\n contacts?: number[];\r\n date!: string;\r\n status!: ServiceStatus;\r\n price?: Price;\r\n parentID?: number;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IService) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n this.desc = _data[\"desc\"] !== undefined ? _data[\"desc\"] : null;\r\n if (Array.isArray(_data[\"images\"])) {\r\n this.images = [] as any;\r\n for (let item of _data[\"images\"])\r\n this.images!.push(item);\r\n }\r\n else {\r\n this.images = null;\r\n }\r\n if (Array.isArray(_data[\"documents\"])) {\r\n this.documents = [] as any;\r\n for (let item of _data[\"documents\"])\r\n this.documents!.push(item);\r\n }\r\n else {\r\n this.documents = null;\r\n }\r\n this.serviceData = _data[\"serviceData\"] !== undefined ? _data[\"serviceData\"] : null;\r\n if (Array.isArray(_data[\"servicePaxList\"])) {\r\n this.servicePaxList = [] as any;\r\n for (let item of _data[\"servicePaxList\"])\r\n this.servicePaxList!.push(item);\r\n }\r\n else {\r\n this.servicePaxList = null;\r\n }\r\n if (Array.isArray(_data[\"markers\"])) {\r\n this.markers = [] as any;\r\n for (let item of _data[\"markers\"])\r\n this.markers!.push(Marker.fromJS(item));\r\n }\r\n else {\r\n this.markers = null;\r\n }\r\n if (Array.isArray(_data[\"contacts\"])) {\r\n this.contacts = [] as any;\r\n for (let item of _data[\"contacts\"])\r\n this.contacts!.push(item);\r\n }\r\n else {\r\n this.contacts = null;\r\n }\r\n this.date = _data[\"date\"] !== undefined ? _data[\"date\"] : null;\r\n this.status = _data[\"status\"] !== undefined ? _data[\"status\"] : null;\r\n this.price = _data[\"price\"] ? Price.fromJS(_data[\"price\"]) : null;\r\n this.parentID = _data[\"parentID\"] !== undefined ? _data[\"parentID\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Service {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Service();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n data[\"desc\"] = this.desc !== undefined ? this.desc : null;\r\n if (Array.isArray(this.images)) {\r\n data[\"images\"] = [];\r\n for (let item of this.images)\r\n data[\"images\"].push(item);\r\n }\r\n if (Array.isArray(this.documents)) {\r\n data[\"documents\"] = [];\r\n for (let item of this.documents)\r\n data[\"documents\"].push(item);\r\n }\r\n data[\"serviceData\"] = this.serviceData !== undefined ? this.serviceData : null;\r\n if (Array.isArray(this.servicePaxList)) {\r\n data[\"servicePaxList\"] = [];\r\n for (let item of this.servicePaxList)\r\n data[\"servicePaxList\"].push(item);\r\n }\r\n if (Array.isArray(this.markers)) {\r\n data[\"markers\"] = [];\r\n for (let item of this.markers)\r\n data[\"markers\"].push(item.toJSON());\r\n }\r\n if (Array.isArray(this.contacts)) {\r\n data[\"contacts\"] = [];\r\n for (let item of this.contacts)\r\n data[\"contacts\"].push(item);\r\n }\r\n data[\"date\"] = this.date !== undefined ? this.date : null;\r\n data[\"status\"] = this.status !== undefined ? this.status : null;\r\n data[\"price\"] = this.price ? this.price.toJSON() : null;\r\n data[\"parentID\"] = this.parentID !== undefined ? this.parentID : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IService {\r\n id: number;\r\n type: ServiceType;\r\n title: string;\r\n desc?: string;\r\n images?: number[];\r\n documents?: number[];\r\n serviceData?: any;\r\n servicePaxList?: number[];\r\n markers?: Marker[];\r\n contacts?: number[];\r\n date: string;\r\n status: ServiceStatus;\r\n price?: Price;\r\n parentID?: number;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum ServiceType {\r\n FLIGHT = \"FLIGHT\",\r\n TRANSFER = \"TRANSFER\",\r\n EXCURSION = \"EXCURSION\",\r\n TOUR = \"TOUR\",\r\n HOTEL = \"HOTEL\",\r\n PARKING = \"PARKING\",\r\n CAR_RENT = \"CAR_RENT\",\r\n TRAIN = \"TRAIN\",\r\n FERRY = \"FERRY\",\r\n LUNCH_DINNER = \"LUNCH_DINNER\",\r\n OTHER = \"OTHER\",\r\n}\r\n\r\nexport class Marker implements IMarker {\r\n lat!: number;\r\n lng!: number;\r\n title?: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IMarker) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.lat = _data[\"lat\"] !== undefined ? _data[\"lat\"] : null;\r\n this.lng = _data[\"lng\"] !== undefined ? _data[\"lng\"] : null;\r\n this.title = _data[\"title\"] !== undefined ? _data[\"title\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Marker {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Marker();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"lat\"] = this.lat !== undefined ? this.lat : null;\r\n data[\"lng\"] = this.lng !== undefined ? this.lng : null;\r\n data[\"title\"] = this.title !== undefined ? this.title : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMarker {\r\n lat: number;\r\n lng: number;\r\n title?: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum ServiceStatus {\r\n CONFIRMED = \"CONFIRMED\",\r\n PENDING = \"PENDING\",\r\n CANCELED = \"CANCELED\",\r\n QUOTE = \"QUOTE\",\r\n}\r\n\r\nexport class Price implements IPrice {\r\n label?: string;\r\n amount?: number;\r\n currency?: PriceCurrency;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IPrice) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.label = _data[\"label\"] !== undefined ? _data[\"label\"] : null;\r\n this.amount = _data[\"amount\"] !== undefined ? _data[\"amount\"] : null;\r\n this.currency = _data[\"currency\"] !== undefined ? _data[\"currency\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Price {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Price();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"label\"] = this.label !== undefined ? this.label : null;\r\n data[\"amount\"] = this.amount !== undefined ? this.amount : null;\r\n data[\"currency\"] = this.currency !== undefined ? this.currency : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPrice {\r\n label?: string;\r\n amount?: number;\r\n currency?: PriceCurrency;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum PriceCurrency {\r\n EUR = \"EUR\",\r\n USD = \"USD\",\r\n CHF = \"CHF\",\r\n}\r\n\r\nexport class Pax implements IPax {\r\n id!: number;\r\n lastname!: string;\r\n firstname!: string;\r\n type!: PaxType;\r\n birthday?: string;\r\n isMainPax?: boolean;\r\n email?: string;\r\n phone?: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IPax) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.lastname = _data[\"lastname\"] !== undefined ? _data[\"lastname\"] : null;\r\n this.firstname = _data[\"firstname\"] !== undefined ? _data[\"firstname\"] : null;\r\n this.type = _data[\"type\"] !== undefined ? _data[\"type\"] : null;\r\n this.birthday = _data[\"birthday\"] !== undefined ? _data[\"birthday\"] : null;\r\n this.isMainPax = _data[\"isMainPax\"] !== undefined ? _data[\"isMainPax\"] : null;\r\n this.email = _data[\"email\"] !== undefined ? _data[\"email\"] : null;\r\n this.phone = _data[\"phone\"] !== undefined ? _data[\"phone\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): Pax {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new Pax();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"lastname\"] = this.lastname !== undefined ? this.lastname : null;\r\n data[\"firstname\"] = this.firstname !== undefined ? this.firstname : null;\r\n data[\"type\"] = this.type !== undefined ? this.type : null;\r\n data[\"birthday\"] = this.birthday !== undefined ? this.birthday : null;\r\n data[\"isMainPax\"] = this.isMainPax !== undefined ? this.isMainPax : null;\r\n data[\"email\"] = this.email !== undefined ? this.email : null;\r\n data[\"phone\"] = this.phone !== undefined ? this.phone : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IPax {\r\n id: number;\r\n lastname: string;\r\n firstname: string;\r\n type: PaxType;\r\n birthday?: string;\r\n isMainPax?: boolean;\r\n email?: string;\r\n phone?: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport enum PaxType {\r\n ADULT = \"ADULT\",\r\n CHILD = \"CHILD\",\r\n INFANT = \"INFANT\",\r\n}\r\n\r\nexport class MobileTuple implements IMobileTuple {\r\n id?: string;\r\n token!: string;\r\n os!: string;\r\n identityId?: string;\r\n\r\n [key: string]: any;\r\n\r\n constructor(data?: IMobileTuple) {\r\n if (data) {\r\n for (var property in data) {\r\n if (data.hasOwnProperty(property))\r\n (this)[property] = (data)[property];\r\n }\r\n }\r\n }\r\n\r\n init(_data?: any) {\r\n if (_data) {\r\n for (var property in _data) {\r\n if (_data.hasOwnProperty(property))\r\n this[property] = _data[property];\r\n }\r\n this.id = _data[\"id\"] !== undefined ? _data[\"id\"] : null;\r\n this.token = _data[\"token\"] !== undefined ? _data[\"token\"] : null;\r\n this.os = _data[\"os\"] !== undefined ? _data[\"os\"] : null;\r\n this.identityId = _data[\"identityId\"] !== undefined ? _data[\"identityId\"] : null;\r\n }\r\n }\r\n\r\n static fromJS(data: any): MobileTuple {\r\n data = typeof data === 'object' ? data : {};\r\n let result = new MobileTuple();\r\n result.init(data);\r\n return result;\r\n }\r\n\r\n toJSON(data?: any) {\r\n data = typeof data === 'object' ? data : {};\r\n for (var property in this) {\r\n if (this.hasOwnProperty(property))\r\n data[property] = this[property];\r\n }\r\n data[\"id\"] = this.id !== undefined ? this.id : null;\r\n data[\"token\"] = this.token !== undefined ? this.token : null;\r\n data[\"os\"] = this.os !== undefined ? this.os : null;\r\n data[\"identityId\"] = this.identityId !== undefined ? this.identityId : null;\r\n return data;\r\n }\r\n}\r\n\r\nexport interface IMobileTuple {\r\n id?: string;\r\n token: string;\r\n os: string;\r\n identityId?: string;\r\n\r\n [key: string]: any;\r\n}\r\n\r\nexport interface FileParameter {\r\n data: any;\r\n fileName: string;\r\n}\r\n\r\nexport interface FileResponse {\r\n data: Blob;\r\n status: number;\r\n fileName?: string;\r\n headers?: { [name: string]: any };\r\n}\r\n\r\nexport class ApiException extends Error {\r\n message: string;\r\n status: number;\r\n response: string;\r\n headers: { [key: string]: any; };\r\n result: any;\r\n\r\n constructor(message: string, status: number, response: string, headers: { [key: string]: any; }, result: any) {\r\n super();\r\n\r\n this.message = message;\r\n this.status = status;\r\n this.response = response;\r\n this.headers = headers;\r\n this.result = result;\r\n }\r\n\r\n protected isApiException = true;\r\n\r\n static isApiException(obj: any): obj is ApiException {\r\n return obj.isApiException === true;\r\n }\r\n}\r\n\r\nfunction throwException(message: string, status: number, response: string, headers: { [key: string]: any; }, result?: any): Observable {\r\n if (result !== null && result !== undefined)\r\n return _observableThrow(result);\r\n else\r\n return _observableThrow(new ApiException(message, status, response, headers, null));\r\n}\r\n\r\nfunction blobToText(blob: any): Observable {\r\n return new Observable((observer: any) => {\r\n if (!blob) {\r\n observer.next(\"\");\r\n observer.complete();\r\n } else {\r\n let reader = new FileReader();\r\n reader.onload = event => {\r\n observer.next((event.target as any).result);\r\n observer.complete();\r\n };\r\n reader.readAsText(blob);\r\n }\r\n });\r\n}","import {Injectable} from '@angular/core';\r\nimport {Observable} from 'rxjs';\r\nimport {map, shareReplay} from 'rxjs/operators';\r\nimport {TranslateService} from '@ngx-translate/core';\r\n\r\nimport {\r\n\tAeroporto,\r\n\tArticoloTestataRow,\r\n\tBanca,\r\n\tCompagniaAerea,\r\n\tContactCategory,\r\n\tDatoAggiuntivoTipoRow,\r\n\tAdditionalDataTypeRow,\r\n\tDocumentType,\r\n\tELingua,\r\n\tETipoDocumento,\r\n\tEVisibilitaTeam,\r\n\tFornitore,\r\n\tGetAllSectionsResponse,\r\n\tGetAllTemplatesResponse,\r\n\tGetArticleHeadsResponse,\r\n\tGetContactCategoriesResponse,\r\n\tGetDatiAggiuntiviServiziResponse,\r\n\tGetDocumentTypesResponse,\r\n\tGetExtraDocumentsResponse,\r\n\tGetMiniguideResponse,\r\n\tGetNearbyPlacesResponse,\r\n\tGetOperatorsResponse,\r\n\tGetOrdersTagsResponse,\r\n\tGetPackageRulesResponse,\r\n\tGetPermissionsResponse,\r\n\tGetPhraseTagsResponse,\r\n\tGetPoliciesListResponse,\r\n\tGetRolesResponse,\r\n\tGetServicesOffersTypesResponse,\r\n\tGetTeamsResponse,\r\n\tGetWebsitesResponse,\r\n\tIApiRequest,\r\n\tIGetNearbyPlacesRequest,\r\n\tIGetPublishedServiceRequest,\r\n\tIGetPublishedServiceResponse,\r\n\tIGetTemplatesRequest,\r\n\tILocalizedRequest,\r\n\tIMiniguideRequest,\r\n\tImmaginePubblicitaria,\r\n\tIOrderTagData,\r\n\tISiteRequest,\r\n\tIStatisticsAllRequest,\r\n\tIStatisticsAllResponse,\r\n\tITextsGetFrasiDefaultRequest,\r\n\tITextsGetItinerarioRequest,\r\n\tLuogoTop,\r\n\tLuogoVicino,\r\n\tModalitaPagamento,\r\n\tOperatorData,\r\n\tPenaleRow,\r\n\tRegolaPacchettoRow,\r\n\tRoleData,\r\n\tSectionsRow,\r\n\tServiceData,\r\n\tServiceOfferTypeRow,\r\n\tSistemazioneListRow,\r\n\tSite,\r\n\tStatisticsRow,\r\n\tStatoVolo,\r\n\tSystemEmailRow,\r\n\tTagView,\r\n\tTeamData,\r\n\tTemplatesRow,\r\n\tTextsGetFrasiDefaultResponse,\r\n\tTextsGetItinerarioResponse,\r\n\tTranslateArticleSection,\r\n\tTrattamentoTradotto,\r\n\tValutaCorrente,\r\n\tIGetFlightsTicketsRequest,\r\n\tIGetFlightsTicketsResponse,\r\n\tVoloTickets,\r\n\tIServizioGetRequest,\r\n\tIGetTipologieResponse,\r\n\tTipologiaListRow,\r\n\tEOperatore,\r\n\tGetPagamentiDocumentoContabileResponse,\r\n\tGetTipologiaStandardResponse,\r\n\tServizioTipologiaStandard,\r\n\tPricing,\r\n\tGetPricingResponse,\r\n\tIGetAmadeusMarketsRequest,\r\n\tIGetAmadeusMarketsResponse,\r\n\tCrypticMarket, PricingItem,\r\n\tGetContattoTipiDatoResponse,\r\n\tContattoTipoDatoRow,\r\n} from '../backend/naar-api-client';\r\nimport {BackendService} from '../backend/backend.service';\r\nimport {TextAndValue} from '../../../../../nr-intranet/src/app/pages/intranet/common/types';\r\n\r\n/**\r\n * Opzioni UI dei tag\r\n */\r\nexport interface TagUiOptions {\r\n\t/**\r\n\t * Colore del testo, formato accettato dal css\r\n\t */\r\n\tcolor?: string,\r\n\r\n\t/**\r\n\t * Colore dello sfondo\r\n\t */\r\n\tbackgroundColor?: string,\r\n\r\n\t/**\r\n\t * Classe CSS dell'icona\r\n\t */\r\n\ticonClass?: string\r\n}\r\n\r\n/**\r\n * Tag offerte con i suoi dati esposti\r\n */\r\nexport type UiOrdersTagData = IOrderTagData & TagUiOptions;\r\n\r\nexport interface OrderTagsDictionary {\r\n\t[id: number]: UiOrdersTagData\r\n}\r\n\r\n@Injectable()\r\nexport class BaseDataService {\r\n\tpublic readonly LUOGO_SERVIZI_ACCESSORI_ID = 5;\r\n\tpublic readonly LUOGO_IN_VOLO_ID = 3909;\r\n\tpublic readonly SERVIZIO_MANUALE_ID = 30345;\r\n\tpublic readonly TIPOLOGIA_NON_MAPPATA_ID = 80038;\r\n\r\n\tpublic readonly GIORNO_DEFAULT_INIZIO_TAPPA = 0;\r\n\tpublic readonly GIORNO_DEFAULT_FINE_TAPPA = 255;\r\n\r\n\tpublic readonly OFFERTA_COMPONIBILE_ID = 7;\r\n\r\n\tprivate _currencies$: Observable = null;\r\n\tprivate _contractPayments$: Observable = null;\r\n\tprivate _banks$: Observable = null;\r\n\tprivate _fornitori$: Observable = null;\r\n\tprivate _systemEmails$: Observable = null;\r\n\tprivate _beddings$: Observable = null;\r\n\tprivate _companies$: Observable = null;\r\n\tprivate _airports$: Observable = null;\r\n\tprivate _flightStatues$: Observable = null;\r\n\tprivate _mealPlans$: Observable = null;\r\n\tprivate _advertiseImages$: Observable = null;\r\n\tprivate _topLocations$: Observable = null;\r\n\tprivate _articleHeads$: Observable = null;\r\n\tprivate _sites$: Observable = null;\r\n\tprivate _packageRules$: Observable = null;\r\n\tprivate _servicesStandardTypes$: Observable = null;\r\n\tprivate _policies$: Observable = null;\r\n\tprivate _servicesOffersTypes$: Observable = null;\r\n\tprivate _serviceAdditionalData$: Observable = null;\r\n\tprivate _serviceAdditionalDataType: Observable = null;\r\n\tprivate _extraDocs$: Observable = null;\r\n\tprivate _phraseTags$: Observable = null;\r\n\tprivate _articlesSections$: Observable = null;\r\n\tprivate _allTemplates$: Observable = null;\r\n\tprivate _templatesByService$: Observable = null;\r\n\tprivate _pricings$: Observable = null;\r\n\r\n\t#operators: Observable = null;\r\n\t#teams$: Observable = null;\r\n\t#roles$: Observable = null;\r\n\t#permissions$: Observable = null;\r\n\t#contactCategories$: Observable = null;\r\n\t#contactDataTypes$: Observable = null;\r\n\t#ordersTags$: Observable = null;\r\n\t#ordersTagsDictionary$: Observable = null;\r\n\t#documentsTypes$: Observable<{ [key in keyof typeof ETipoDocumento]?: DocumentType }> = null;\r\n\r\n\t#siteID: number;\r\n\t#operator: EOperatore;\r\n\r\n\tconstructor(private backend: BackendService, private translate: TranslateService) {\r\n\t\ttranslate.onLangChange.subscribe((_) => {\r\n\t\t\tthis._contractPayments$ = null;\r\n\t\t\tthis._mealPlans$ = null;\r\n\t\t\tthis._topLocations$ = null;\r\n\t\t\tthis._packageRules$ = null;\r\n\t\t\tthis._policies$ = null;\r\n\t\t\tthis._beddings$ = null;\r\n\t\t\tthis._servicesOffersTypes$ = null;\r\n\t\t\tthis._serviceAdditionalData$ = null;\r\n\t\t\tthis._serviceAdditionalDataType = null;\r\n\t\t\tthis._extraDocs$ = null;\r\n\t\t\tthis._phraseTags$ = null;\r\n\t\t\tthis.#ordersTags$ = null;\r\n\t\t\tthis.#ordersTagsDictionary$ = null;\r\n\t\t\tthis._articlesSections$ = null;\r\n\t\t\tthis._allTemplates$ = null;\r\n\t\t\tthis._templatesByService$ = null;\r\n\t\t\tthis._pricings$ = null;\r\n\t\t\tthis.#contactDataTypes$ = null;\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Impostazione one-shot dell'ID del sito\r\n\t * @param siteID ID del sito\r\n\t */\r\n\tpublic setSite(siteID: number) {\r\n\t\tif (!this.#siteID && this.#siteID !== 0) this.#siteID = siteID;\r\n\t}\r\n\r\n\t/**\r\n\t * ID del sito attuale\r\n\t */\r\n\tpublic get siteID(): number {\r\n\t\treturn this.#siteID;\r\n\t}\r\n\r\n\tpublic setOperator(operator: EOperatore) {\r\n\t\tif (!this.#operator) this.#operator = operator;\r\n\t}\r\n\r\n\tpublic get actualOperator() {\r\n\t\treturn this.#operator;\r\n\t}\r\n\r\n\tpublic getLingua(): ELingua {\r\n\t\tswitch (this.translate.currentLang) {\r\n\t\t\tcase 'en':\r\n\t\t\t\treturn ELingua.English;\r\n\t\t\tcase 'fr':\r\n\t\t\t\treturn ELingua.Francais;\r\n\t\t\tcase 'de':\r\n\t\t\t\treturn ELingua.Deutsch;\r\n\t\t\tcase 'nl':\r\n\t\t\t\treturn ELingua.Dutch;\r\n\t\t\tcase 'es':\r\n\t\t\t\treturn ELingua.Spanish;\r\n\t\t\tcase 'pt':\r\n\t\t\t\treturn ELingua.Portuguese;\r\n\t\t}\r\n\t\treturn ELingua.Italiano;\r\n\t}\r\n\r\n\t/**\r\n\t * Ottiene la stringa ISO della lingua correntemente selezionata\r\n\t * @param lang Codice a 2 lettere opzionale della lingua. Se omesso usa quello corrente di TranslateService\r\n\t */\r\n\tpublic getIsoLang(lang?: string): string {\r\n\t\tswitch (lang ?? this.translate.currentLang) {\r\n\t\t\tcase 'en':\r\n\t\t\t\treturn 'en-GB';\r\n\t\t\tcase 'fr':\r\n\t\t\t\treturn 'fr-FR';\r\n\t\t\tcase 'de':\r\n\t\t\t\treturn 'de-DE';\r\n\t\t\tcase 'nl':\r\n\t\t\t\treturn 'nl-BE';\r\n\t\t}\r\n\t\treturn 'it-IT';\r\n\t}\r\n\r\n\t/**\r\n\t * Ottiene il codice lingua a 2 lettere dall'enumeratore\r\n\t * @param lang Lingua (enum) da decodificare\r\n\t */\r\n\tpublic getLangCodeFromLingua(lang: ELingua): string {\r\n\t\tswitch (lang) {\r\n\t\t\tcase ELingua.Deutsch:\r\n\t\t\t\treturn 'de';\r\n\t\t\tcase ELingua.Dutch:\r\n\t\t\t\treturn 'nl';\r\n\t\t\tcase ELingua.Francais:\r\n\t\t\t\treturn 'fr';\r\n\t\t\tcase ELingua.Italiano:\r\n\t\t\t\treturn 'it';\r\n\t\t\tcase ELingua.Portuguese:\r\n\t\t\t\treturn 'pt';\r\n\t\t\tcase ELingua.Spanish:\r\n\t\t\t\treturn 'es';\r\n\t\t\tcase ELingua.English:\r\n\t\t\tdefault:\r\n\t\t\t\treturn 'en';\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Dizionario dei tipi di documento con relativi metadati\r\n\t */\r\n\tpublic get documentsTypes$(): Observable<{ [key in keyof typeof ETipoDocumento]?: DocumentType }> {\r\n\t\tif (!this.#documentsTypes$) {\r\n\t\t\tthis.#documentsTypes$ = this.backend.call('data/doctypes').pipe(\r\n\t\t\t\tmap((data: GetDocumentTypesResponse) => data.documentTypes),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#documentsTypes$;\r\n\t}\r\n\r\n\t/**\r\n\t * Dizionario dei tag delle offerte\r\n\t */\r\n\tpublic get ordersTagsDictionary$(): Observable {\r\n\t\tif (!this.#ordersTagsDictionary$) {\r\n\t\t\tthis.#ordersTagsDictionary$ = this.ordersTags$.pipe(\r\n\t\t\t\tmap((ot) => {\r\n\t\t\t\t\tconst result: OrderTagsDictionary = {};\r\n\t\t\t\t\tot.forEach((t) => {\r\n\t\t\t\t\t\tresult[t.id] = t;\r\n\t\t\t\t\t});\r\n\t\t\t\t\treturn result;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#ordersTagsDictionary$;\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco dei tag delle offerte\r\n\t */\r\n\tpublic get ordersTags$(): Observable {\r\n\t\tif (!this.#ordersTags$) {\r\n\t\t\tthis.#ordersTags$ = this.backend.call('data/orders_tags').pipe(\r\n\t\t\t\tmap((data: GetOrdersTagsResponse) => {\r\n\t\t\t\t\treturn (data.tags || []).map((t) => {\r\n\t\t\t\t\t\tconst uiOptions = t.uiOptions ? (JSON.parse(t.uiOptions) as TagUiOptions) : null;\r\n\t\t\t\t\t\treturn {\r\n\t\t\t\t\t\t\tid: t.id,\r\n\t\t\t\t\t\t\ttag: t.tag,\r\n\t\t\t\t\t\t\tbackgroundColor: uiOptions?.backgroundColor,\r\n\t\t\t\t\t\t\tcolor: uiOptions?.color,\r\n\t\t\t\t\t\t\ticonClass: uiOptions?.iconClass,\r\n\t\t\t\t\t\t} as UiOrdersTagData;\r\n\t\t\t\t\t});\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#ordersTags$;\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco dei permessi utente\r\n\t */\r\n\tpublic get permissions$(): Observable {\r\n\t\tif (!this.#permissions$) {\r\n\t\t\tthis.#permissions$ = this.backend.call('data/permissions').pipe(shareReplay(1));\r\n\t\t}\r\n\t\treturn this.#permissions$;\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco delle categorie dei contatti\r\n\t */\r\n\tpublic get contactCategories$(): Observable {\r\n\t\tif (!this.#contactCategories$) {\r\n\t\t\tconst request: ISiteRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t\tsiteID: this.siteID,\r\n\t\t\t};\r\n\t\t\tthis.#contactCategories$ = this.backend.call('data/contact_categories', request).pipe(\r\n\t\t\t\tmap((data: GetContactCategoriesResponse) => {\r\n\t\t\t\t\treturn data.categories;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#contactCategories$;\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco dei tipi dati dei contatti\r\n\t */\r\n\tpublic get contactDataTypes$(): Observable {\r\n\t\tif (!this.#contactDataTypes$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\t\t\tthis.#contactDataTypes$ = this.backend.call('data/tipi_dato_contatto', request).pipe(\r\n\t\t\t\tmap((data: GetContattoTipiDatoResponse) => {\r\n\t\t\t\t\treturn data.contattoTipiDato;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#contactDataTypes$;\r\n\t}\r\n\r\n\tpublic get roles$(): Observable {\r\n\t\tif (!this.#roles$) {\r\n\t\t\tthis.#roles$ = this.backend.call('data/roles').pipe(\r\n\t\t\t\tmap((data: GetRolesResponse) => {\r\n\t\t\t\t\treturn data.roles;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#roles$;\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco completo dei team\r\n\t */\r\n\tpublic get teams$(): Observable {\r\n\t\tif (!this.#teams$) {\r\n\t\t\tthis.#teams$ = this.backend.call('data/teams').pipe(\r\n\t\t\t\tmap((data: GetTeamsResponse) => {\r\n\t\t\t\t\treturn data.teams;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#teams$;\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco dei team attivi (Privati o Pubblici)\r\n\t */\r\n\tpublic get activeTeams$(): Observable {\r\n\t\treturn this.teams$.pipe(\r\n\t\t\tmap((teams) =>\r\n\t\t\t\tteams.filter(\r\n\t\t\t\t\t(t) => t.visibilita === EVisibilitaTeam.Privato || t.visibilita === EVisibilitaTeam.Pubblico\r\n\t\t\t\t)\r\n\t\t\t)\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Elenco dei team pubblici\r\n\t */\r\n\tpublic get publicTeams$(): Observable {\r\n\t\tif (this.#operator == null) {\r\n\t\t\treturn this.teams$.pipe(map((teams) => teams.filter((t) => t.visibilita === EVisibilitaTeam.Pubblico)));\r\n\t\t} else {\r\n\t\t\treturn this.teams$.pipe(map((teams) => teams.filter((t) => t.visibilita === EVisibilitaTeam.Pubblico && t.operatore === this.#operator)));\r\n\t\t}\r\n\t}\r\n\r\n\tpublic get operators$(): Observable {\r\n\t\tif (!this.#operators) {\r\n\t\t\tthis.#operators = this.backend.call('data/operators').pipe(\r\n\t\t\t\tmap((data: GetOperatorsResponse) => {\r\n\t\t\t\t\treturn data.operators;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this.#operators;\r\n\t}\r\n\r\n\t/**\r\n\t * Ottieni la lista degli operatori pronta per essere usata in un dropdown, comprese le traduzioni\r\n\t * @param addEmpty Aggiungi un elemento vuoto, utile per i dropdown facoltativi\r\n\t * @param addUndefined Aggiungi l'opzione \"Indefinito\"\r\n\t */\r\n\tpublic getOperatorsDropdown$(addEmpty = false, addUndefined = false): Observable {\r\n\t\treturn this.operators$.pipe(\r\n\t\t\tmap((opd: OperatorData[]) => {\r\n\t\t\t\tconst toRet = opd.map(operatorData => ({\r\n\t\t\t\t\ttext: this.translate.instant(`ENUMS.EOperatore.${operatorData.operatore}`),\r\n\t\t\t\t\tvalue: operatorData.operatore\r\n\t\t\t\t}));\r\n\r\n\t\t\t\tif (addUndefined) {\r\n\t\t\t\t\ttoRet.unshift({text: this.translate.instant('ENUMS.EOperatore.Indefinito'), value: EOperatore.Indefinito});\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (addEmpty) {\r\n\t\t\t\t\ttoRet.unshift({text: '', value: null});\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn toRet;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic get currencies$(): Observable {\r\n\t\tif (!this._currencies$) {\r\n\t\t\tthis._currencies$ = this.backend.call('data/valute').pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.valute;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this._currencies$;\r\n\t}\r\n\r\n\tpublic get contractPayments$(): Observable {\r\n\t\tif (!this._contractPayments$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\t\t\tthis._contractPayments$ = this.backend.call('data/modalitapagamento', request).pipe(\r\n\t\t\t\tmap((data: GetPagamentiDocumentoContabileResponse) => {\r\n\t\t\t\t\treturn data.modalitaPagamento;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this._contractPayments$;\r\n\t}\r\n\r\n\t/**\r\n\t * Ottieni la lista delle modalità di pagamento pronta per essere usata in un dropdown, comprese le traduzioni\r\n\t * @param addEmpty Aggiungi un elemento vuoto, utile per i dropdown facoltativi\r\n\t */\r\n\tpublic getContractPaymentsDropdown$(addEmpty = false): Observable {\r\n\t\treturn this.contractPayments$.pipe(\r\n\t\t\tmap((cp: ModalitaPagamento[]) => {\r\n\t\t\t\tconst toRet = cp.map(cpd => ({\r\n\t\t\t\t\ttext: cpd.nome,\r\n\t\t\t\t\tvalue: cpd.id\r\n\t\t\t\t}));\r\n\r\n\t\t\t\tif (addEmpty) {\r\n\t\t\t\t\ttoRet.unshift({text: this.translate.instant('COMMON.QUALSIASI'), value: null});\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn toRet;\r\n\t\t\t})\r\n\t\t);\r\n\t}\r\n\r\n\tpublic get banks$(): Observable {\r\n\t\tif (!this._banks$) {\r\n\t\t\tthis._banks$ = this.backend.call('data/banche').pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.banche;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn this._banks$;\r\n\t}\r\n\r\n\tpublic get fornitori$(): Observable {\r\n\t\tif (!this._fornitori$) {\r\n\t\t\tthis._fornitori$ = this.backend.call('data/fornitori').pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.fornitori;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._fornitori$;\r\n\t}\r\n\r\n\tpublic get systemEmails$(): Observable {\r\n\t\tif (!this._systemEmails$) {\r\n\t\t\tthis._systemEmails$ = this.backend.call('data/email').pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.emails;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._systemEmails$;\r\n\t}\r\n\r\n\tpublic get beddings$(): Observable {\r\n\t\tif (!this._beddings$) {\r\n\t\t\tconst request: ISiteRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\t\t\tthis._beddings$ = this.backend.call('data/sistemazioni', request).pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.sistemazioni;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._beddings$;\r\n\t}\r\n\r\n\tpublic get companies$(): Observable {\r\n\t\tif (!this._companies$) {\r\n\t\t\tthis._companies$ = this.backend.call('data/compagnie').pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.compagnie;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._companies$;\r\n\t}\r\n\r\n\tpublic get airports$(): Observable {\r\n\t\tif (!this._airports$) {\r\n\t\t\tthis._airports$ = this.backend.call('data/aeroporti').pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.aeroporti;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._airports$;\r\n\t}\r\n\r\n\tpublic get flightStatues$(): Observable {\r\n\t\tif (!this._flightStatues$) {\r\n\t\t\tthis._flightStatues$ = this.backend.call('data/stativolo').pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.stati;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._flightStatues$;\r\n\t}\r\n\r\n\tpublic get mealPlans$(): Observable {\r\n\t\tif (!this._mealPlans$) {\r\n\t\t\tconst request: ISiteRequest = {\r\n\t\t\t\tsiteID: 0,\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._mealPlans$ = this.backend.call('data/trattamenti', request).pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.trattamenti;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._mealPlans$;\r\n\t}\r\n\r\n\tpublic get advertiseImages$(): Observable {\r\n\t\tif (!this._advertiseImages$) {\r\n\t\t\tconst request: ISiteRequest = {\r\n\t\t\t\tsiteID: 1,\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._advertiseImages$ = this.backend.call('data/immaginipubblicitarie', request).pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.immagini;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._advertiseImages$;\r\n\t}\r\n\r\n\tpublic get topLocations$(): Observable {\r\n\t\tif (!this._topLocations$) {\r\n\t\t\tconst request: ISiteRequest = {\r\n\t\t\t\tsiteID: 1,\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._topLocations$ = this.backend.call('data/luoghitop', request).pipe(\r\n\t\t\t\tmap((data) => {\r\n\t\t\t\t\treturn data.luoghiTop;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._topLocations$;\r\n\t}\r\n\r\n\tpublic async getNearbyLocations(siteID: number, luogoID: number): Promise {\r\n\t\tconst request: IGetNearbyPlacesRequest = {\r\n\t\t\tsiteID,\r\n\t\t\tlingua: this.getLingua(),\r\n\t\t\tluogoID,\r\n\t\t};\r\n\t\tconst response: GetNearbyPlacesResponse = await this.backend.post('maps/nearby', request);\r\n\t\treturn response.luoghiVicini;\r\n\t}\r\n\r\n\tpublic get articleHeads$(): Observable {\r\n\t\tif (!this._articleHeads$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._articleHeads$ = this.backend.call('data/intestazioniarticoli', request).pipe(\r\n\t\t\t\tmap((data: GetArticleHeadsResponse) => {\r\n\t\t\t\t\treturn data.intestazioni;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._articleHeads$;\r\n\t}\r\n\r\n\tpublic get sites$(): Observable {\r\n\t\tif (!this._sites$) {\r\n\t\t\tconst request: IApiRequest = {};\r\n\r\n\t\t\tthis._sites$ = this.backend.call('websites/get', request).pipe(\r\n\t\t\t\tmap((data: GetWebsitesResponse) => {\r\n\t\t\t\t\treturn data.siti;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._sites$;\r\n\t}\r\n\r\n\tpublic get packageRules$(): Observable {\r\n\t\tif (!this._packageRules$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._packageRules$ = this.backend.call('data/regolepacchetti', request).pipe(\r\n\t\t\t\tmap((data: GetPackageRulesResponse) => {\r\n\t\t\t\t\treturn data.regole;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._packageRules$;\r\n\t}\r\n\r\n\tpublic resetServicesStandardTypes() {\r\n\t\tthis._servicesStandardTypes$ = null\r\n\t};\r\n\r\n\tpublic get servicesStandardTypes$(): Observable {\r\n\t\tif (!this._servicesStandardTypes$) {\r\n\t\t\tconst request: IApiRequest = {};\r\n\r\n\t\t\tthis._servicesStandardTypes$ = this.backend.call('data/tipologie_standard', request).pipe(\r\n\t\t\t\tmap((data: GetTipologiaStandardResponse) => {\r\n\t\t\t\t\treturn data.tipologieStandard;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._servicesStandardTypes$;\r\n\t}\r\n\r\n\tpublic get policies$(): Observable {\r\n\t\tif (!this._policies$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._policies$ = this.backend.call('data/policies', request).pipe(\r\n\t\t\t\tmap((data: GetPoliciesListResponse) => {\r\n\t\t\t\t\treturn data.penali;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._policies$;\r\n\t}\r\n\r\n\tpublic get servicesOffersTypes$(): Observable {\r\n\t\tif (!this._servicesOffersTypes$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._servicesOffersTypes$ = this.backend.call('data/services/offerstypes', request).pipe(\r\n\t\t\t\tmap((data: GetServicesOffersTypesResponse) => {\r\n\t\t\t\t\treturn data.offersTypes;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._servicesOffersTypes$;\r\n\t}\r\n\r\n\tpublic get serviceAdditionalData$(): Observable {\r\n\t\tif (!this._serviceAdditionalData$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._serviceAdditionalData$ = this.backend.call('data/svcdata', request).pipe(\r\n\t\t\t\tmap((data: GetDatiAggiuntiviServiziResponse) => {\r\n\t\t\t\t\treturn data.tipiDatoAggiuntivo;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._serviceAdditionalData$;\r\n\t}\r\n\r\n\t// public get serviceAdditionalDataType$(): Observable {\r\n\t// \tif (!this.serviceAdditionalDataType$) {\r\n\t// \t\tconst request: ILocalizedRequest = {\r\n\t// \t\t\tlingua: this.getLingua(),\r\n\t// \t\t};\r\n\r\n\t// \t\tthis._serviceAdditionalDataType$ = this.backend.call('data/svcdata', request).pipe(\r\n\t// \t\t\tmap((data: AdditionalsDataTypesGetResponse) => {\r\n\t// \t\t\t\treturn data.additionalDataType;\r\n\t// \t\t\t}),\r\n\t// \t\t\tshareReplay(1)\r\n\t// \t\t);\r\n\t// \t}\r\n\r\n\t// \treturn this._serviceAdditionalDataType$;\r\n\t// }\r\n\r\n\tpublic get extraDocs$(): Observable {\r\n\t\tif (!this._extraDocs$) {\r\n\t\t\tconst request: ISiteRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t\tsiteID: 1,\r\n\t\t\t};\r\n\r\n\t\t\tthis._extraDocs$ = this.backend.call('data/extradocs', request).pipe(\r\n\t\t\t\tmap((data: GetExtraDocumentsResponse) => {\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._extraDocs$;\r\n\t}\r\n\r\n\tprivate _miniguide$: Observable = null;\r\n\tpublic get miniguide$(): Observable {\r\n\t\treturn this.getMiniguideByOfferta();\r\n\t}\r\n\r\n\tpublic getMiniguideByOfferta(offertaId: number = 0): Observable {\r\n\t\tif (!this._miniguide$) {\r\n\t\t\tconst request: IMiniguideRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t\toffertaId: offertaId,\r\n\t\t\t};\r\n\r\n\t\t\tthis._miniguide$ = this.backend.call('data/miniguide', request).pipe(\r\n\t\t\t\tmap((data: GetMiniguideResponse) => {\r\n\t\t\t\t\treturn data;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._miniguide$;\r\n\t}\r\n\r\n\tpublic get phraseTags$(): Observable {\r\n\t\tif (!this._phraseTags$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._phraseTags$ = this.backend.call('data/tags/phrases', request).pipe(\r\n\t\t\t\tmap((data: GetPhraseTagsResponse) => {\r\n\t\t\t\t\treturn data.tags;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._phraseTags$;\r\n\t}\r\n\r\n\tpublic get articlesSections$(): Observable {\r\n\t\tif (!this._articlesSections$) {\r\n\t\t\tconst request: ILocalizedRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t};\r\n\r\n\t\t\tthis._articlesSections$ = this.backend.call('articles/get/sections', request).pipe(\r\n\t\t\t\tmap((data: GetAllSectionsResponse) => {\r\n\t\t\t\t\treturn data.sezioni;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._articlesSections$;\r\n\t}\r\n\r\n\tpublic get allTemplates$(): Observable {\r\n\t\tif (!this._allTemplates$) {\r\n\t\t\tconst request: IGetTemplatesRequest = {\r\n\t\t\t\tlingua: this.getLingua(),\r\n\t\t\t\tservizioID: null,\r\n\t\t\t};\r\n\r\n\t\t\tthis._allTemplates$ = this.backend.call('articolitemplate/templates/getall', request).pipe(\r\n\t\t\t\tmap((data: GetAllTemplatesResponse) => {\r\n\t\t\t\t\treturn data.template;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._allTemplates$;\r\n\t}\r\n\r\n\tpublic templatesByService$(serviceId: number): Observable {\r\n\t\tconst request: IGetTemplatesRequest = {\r\n\t\t\tlingua: this.getLingua(),\r\n\t\t\tservizioID: serviceId,\r\n\t\t};\r\n\r\n\t\tthis._templatesByService$ = this.backend.call('articolitemplate/templates/getall', request).pipe(\r\n\t\t\tmap((data: GetAllTemplatesResponse) => {\r\n\t\t\t\treturn data.template;\r\n\t\t\t}),\r\n\t\t\tshareReplay(1)\r\n\t\t);\r\n\r\n\t\treturn this._templatesByService$;\r\n\t}\r\n\r\n\tpublic getDefaultSectionPhrases$(sectionId: number, serviceId?: number): Observable {\r\n\t\tconst request: ITextsGetFrasiDefaultRequest = {\r\n\t\t\tlingua: this.getLingua(),\r\n\t\t\tsezioneID: sectionId,\r\n\t\t\tluogoID: null,\r\n\t\t\tservizioID: serviceId,\r\n\t\t};\r\n\r\n\t\tconst sub = this.backend.call('ArticoliTraducibili/texts/getfrasidefaultsezione', request).pipe(\r\n\t\t\tmap((data: TextsGetFrasiDefaultResponse) => {\r\n\t\t\t\treturn data.section;\r\n\t\t\t}),\r\n\t\t\tshareReplay(1)\r\n\t\t);\r\n\r\n\t\treturn sub;\r\n\t}\r\n\r\n\tpublic getDefaultSectionItinerary$(serviceId?: number): Observable {\r\n\t\tconst request: ITextsGetItinerarioRequest = {\r\n\t\t\tlingua: this.getLingua(),\r\n\t\t\tservizioID: serviceId,\r\n\t\t};\r\n\r\n\t\tconst sub = this.backend.call('ArticoliTraducibili/texts/getitinerary', request).pipe(\r\n\t\t\tmap((data: TextsGetItinerarioResponse) => {\r\n\t\t\t\treturn data.section;\r\n\t\t\t}),\r\n\t\t\tshareReplay(1)\r\n\t\t);\r\n\r\n\t\treturn sub;\r\n\t}\r\n\r\n\tpublic async getServiceById$(serviceId?: number): Promise {\r\n\t\tconst request: IGetPublishedServiceRequest = {\r\n\t\t\tlingua: this.getLingua(),\r\n\t\t\tsiteID: 1,\r\n\t\t\tservizioID: serviceId,\r\n\t\t};\r\n\r\n\t\tconst response: IGetPublishedServiceResponse = await this.backend.post('services/get', request);\r\n\t\treturn response.servizio;\r\n\t}\r\n\r\n\tpublic getAllStatistics$(): Observable {\r\n\t\tconst request: IStatisticsAllRequest = {\r\n\t\t\tlingua: this.getLingua(),\r\n\t\t};\r\n\r\n\t\tconst sub = this.backend.call('statistics/all', request).pipe(\r\n\t\t\tmap((data: IStatisticsAllResponse) => {\r\n\t\t\t\treturn data.statistics;\r\n\t\t\t}),\r\n\t\t\tshareReplay(1)\r\n\t\t);\r\n\r\n\t\treturn sub;\r\n\t}\r\n\r\n\tpublic async getFlightTicketsOfferta$(offertaID: number): Promise {\r\n\t\tconst request: IGetFlightsTicketsRequest = {\r\n\t\t\toffertaID: offertaID\r\n\t\t};\r\n\t\tconst response: IGetFlightsTicketsResponse = await this.backend.post('trip/getflighttickets', request);\r\n\t\treturn response.tickets;\r\n\t}\r\n\r\n\tpublic async getTipologieServizio(servizioID: number): Promise {\r\n\t\tconst request: IServizioGetRequest = {\r\n\t\t\tlingua: this.getLingua(),\r\n\t\t\tservizioID: servizioID\r\n\t\t};\r\n\r\n\t\tconst response: IGetTipologieResponse = await this.backend.post('services/intranet/tipologie/get', request);\r\n\t\treturn response.tipologie;\r\n\t}\r\n\r\n\tpublic get pricings$(): Observable {\r\n\t\tif (!this._pricings$) {\r\n\t\t\tconst request: IApiRequest = {}\r\n\r\n\t\t\tthis._pricings$ = this.backend.call('data/pricings', request).pipe(\r\n\t\t\t\tmap((data: GetPricingResponse) => {\r\n\t\t\t\t\treturn data.pricings;\r\n\t\t\t\t}),\r\n\t\t\t\tshareReplay(1)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn this._pricings$;\r\n\t}\r\n\r\n\tpublic async getAmadeusMarkets(operator: EOperatore = null): Promise {\r\n\t\tconst request: IGetAmadeusMarketsRequest = {\r\n\t\t\toperator: operator\r\n\t\t};\r\n\t\tconst response: IGetAmadeusMarketsResponse = await this.backend.post('cryptic/markets', request);\r\n\t\treturn response.markets;\r\n\t}\r\n}\r\n\r\n","import {Injectable} from '@angular/core';\r\nimport {HttpClient} from '@angular/common/http';\r\nimport {IHelpDocumentsIndex} from './help-documents-index.interface';\r\nimport {Observable} from 'rxjs';\r\nimport {map, shareReplay, take} from 'rxjs/operators';\r\nimport {IHelpDocument} from './help-document.interface';\r\n\r\n@Injectable({providedIn: 'root'})\r\nexport class RtfmService {\r\n\r\n\t/**\r\n\t * Path assoluto di puntamento agli asset dei documenti\r\n\t */\r\n\tpublic static readonly docsRoot = '/assets/docs';\r\n\tprivate static readonly docsIndex = `${RtfmService.docsRoot}/index.json`;\r\n\r\n\tprivate _documents$: Observable = null;\r\n\t/**\r\n\t * Elenco completo dei documenti disponibili\r\n\t */\r\n\tpublic get documents$(): Observable {\r\n\t\tif (!this._documents$) {\r\n\t\t\tthis._documents$ = this\r\n\t\t\t\t.http\r\n\t\t\t\t.get(RtfmService.docsIndex)\r\n\t\t\t\t.pipe(\r\n\t\t\t\t\tmap(res => res as IHelpDocumentsIndex),\r\n\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t);\r\n\t\t}\r\n\t\treturn this._documents$;\r\n\t}\r\n\r\n\tconstructor(private http: HttpClient) {\r\n\t}\r\n\r\n\t/**\r\n\t * Ottiene un singolo documento in base al codice\r\n\t * @param code codice del documento\r\n\t */\r\n\tpublic getByCode(code: string): Observable {\r\n\t\treturn this\r\n\t\t\t.documents$\r\n\t\t\t.pipe(\r\n\t\t\t\tmap(index => index.documenti.find(d => d.codice === code)),\r\n\t\t\t\ttake(1)\r\n\t\t\t);\r\n\t}\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgSelectModule } from '@ng-select/ng-select';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { DropDownsModule } from '@progress/kendo-angular-dropdowns';\r\nimport { NgOptionHighlightModule } from '@ng-select/ng-option-highlight';\r\n\r\nimport { NrMultiSelectComponent } from './nr-multiselect/nrmultiselect.component';\r\nimport { NrMultiSelectAllComponent } from './nr-multiselect/nrmultiselectall.component';\r\nimport { NrDropdownComponent } from './nr-dropdown/nrdropdown.component';\r\nimport { NrTripExistsValidatorDirective } from './validators/nr-trip-exists/nr-trip-exists.directive';\r\nimport { NrFloatComponent } from './nr-float/nrfloat.component';\r\nimport { NrMinValueDirective } from './validators/nr-min-value/nr-min-value.directive';\r\nimport { NrEmailDirective } from './validators/nr-email/nr-email.directive';\r\nimport { NrMaxValueDirective } from './validators/nr-max-value/nr-max-value.directive';\r\nimport { TableSourceSortDirective } from './nr-table/table-source-sort.directive';\r\nimport { RtfmService } from './nr-rtfm/rtfm.service';\r\nimport { SanitizerUrlPipe } from './pipes/sanitize-url.pipe';\r\nimport { AfterValueChangedDirective } from './miscellaneous/directives/after-value-changed.directive';\r\nimport { FileSizePipe } from './pipes/file-size-pipe';\r\nimport { InputsModule, TextBoxModule } from '@progress/kendo-angular-inputs';\r\n\r\nconst KENDO = [TextBoxModule, InputsModule];\r\n\r\n@NgModule({\r\n\tdeclarations: [\r\n\t\tTableSourceSortDirective,\r\n\t\tNrMultiSelectComponent,\r\n\t\tNrMultiSelectAllComponent,\r\n\t\tNrDropdownComponent,\r\n\t\tNrTripExistsValidatorDirective,\r\n\t\tNrMinValueDirective,\r\n\t\tNrMaxValueDirective,\r\n\t\tNrFloatComponent,\r\n\t\tNrEmailDirective,\r\n\t\tSanitizerUrlPipe,\r\n\t\tAfterValueChangedDirective,\r\n\t\tFileSizePipe,\r\n\t],\r\n\timports: [\r\n\t\tCommonModule,\r\n\t\tFormsModule,\r\n\t\tNgSelectModule,\r\n\t\tNgbTooltipModule,\r\n\t\tTranslateModule,\r\n\t\tNgOptionHighlightModule,\r\n\t\tDropDownsModule, ...KENDO],\r\n\texports: [\r\n\t\tTableSourceSortDirective,\r\n\t\tNrMultiSelectComponent,\r\n\t\tNrMultiSelectAllComponent,\r\n\t\tNrDropdownComponent,\r\n\t\tNrTripExistsValidatorDirective,\r\n\t\tNrMinValueDirective,\r\n\t\tNrMaxValueDirective,\r\n\t\tNrFloatComponent,\r\n\t\tNgbTooltipModule,\r\n\t\tNrEmailDirective,\r\n\t\tSanitizerUrlPipe,\r\n\t\tAfterValueChangedDirective,\r\n\t\tFileSizePipe, ...KENDO\r\n\t],\r\n\tproviders: [RtfmService],\r\n})\r\nexport class NrCommonModule {}\r\n","import { MissingTranslationHandlerParams } from \"@ngx-translate/core\";\r\nimport { BackendService, IMissingLabelRequest } from \"nr-common\";\r\n\r\nexport async function HandleMissingLabel(\r\n\twebsite: string, \r\n\tparams: MissingTranslationHandlerParams, \r\n\tbackend: BackendService\r\n) {\r\n\treturn;\r\n\t//? Non inviare le richieste di traduzione mancanti per la lingua di debug\r\n\tif (params.translateService.currentLang == 'zu') {\r\n\t\treturn;\r\n\t}\r\n\r\n\ttry {\r\n\t\tconst req: IMissingLabelRequest = {\r\n\t\t\tlabel: params.key,\r\n\t\t\twebsite: website,\r\n\t\t\tlangCode: params.translateService.currentLang,\r\n\t\t\turl: window.location.href,\r\n\t\t};\r\n\t\tawait backend.call(`websitelabels/missing`, req).toPromise();\r\n\t} catch (error) {\r\n\t\tconsole.error(`Error while sending missing translation key: ${params.key}`, error);\r\n\t}\r\n}","export const environment = {\r\n\tproduction: true,\r\n\ti18nFiles: 'websitelabels/i18n/',\r\n servicesEndpointRoot: 'https://api.naar.com/',\r\n\twebsite: 'auto',\t//3,\r\n\tgoogleMapsApiKey: 'AIzaSyBSNG0UvbqrSdk0JPejA3_K-eDXTCbpRv4',\r\n googleAnalyticsMeasurementId: 'G-Z0XGRWD1H3',\r\n\tb2bIntranetUrl: 'https://intranet.naar.com/in/dashboard',\r\n\r\n\tb2bIntranetPwdRecover: 'https://itb2b.naar.com/auth/recovery',\r\n\tb2bIntranetUsrSignIn: 'https://itb2b.naar.com/auth/recovery',\r\n b2bIntranetAdvUrl: {\r\n it: 'https://itb2b.naar.com/agency/dashboard',\r\n fr: 'https://frb2b.naar.com/agency/dashboard',\r\n de: 'https://deb2b.naar.com/agency/dashboard',\r\n nl: 'https://beb2b.naar.com/agency/dashboard',\r\n },\r\n b2bIntranetAdvTripList: {\r\n it: 'https://itb2b.naar.com/agency/orders/advanced',\r\n fr: 'https://frb2b.naar.com/agency/orders/advanced',\r\n de: 'https://deb2b.naar.com/agency/orders/advanced',\r\n nl: 'https://beb2b.naar.com/agency/orders/advanced'\r\n },\r\n\tDINAMIC_COOKIES_ARTICLE_ID: 182068\r\n};\r\n","/*\r\n * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =\r\n * \r\n * File: operatorLink.ts\r\n * Project: sites\r\n * Created Date: Fr Aug 2024\r\n * Author: Fabio Capelletti\r\n * \r\n * Last Modified: Fri Aug 30 2024\r\n * Modified By: Fabio Capelletti\r\n * \r\n * Copyright (c) 2024 Naar Tour Operator spa\r\n * \r\n * HISTORY:\r\n * Date \tBy\tComments\r\n * --------\t---\t---------------------------------------------------------\r\n */\r\n\r\nimport { EOperatore } from \"nr-common\";\r\n\r\nexport class OperatorLink {\r\n\tidOperator: EOperatore;\r\n\tname: string;\r\n \r\n public get link() : string {\r\n switch(this.idOperator) {\r\n case EOperatore.Naar:\r\n return 'https://www.naar.com';\r\n case EOperatore.NaarFrance:\r\n return 'https://fr.naar.com';\r\n case EOperatore.NaarGermany:\r\n return 'https://de.naar.com';\r\n case EOperatore.NaarBenelux:\r\n return 'https://be.naar.com';\r\n default:\r\n return 'https://www.naar.com';\r\n } \r\n }\r\n \r\n\r\n\tconstructor(idOperator: EOperatore, name: string = '') {\r\n\t\tthis.idOperator = idOperator;\r\n\t\tthis.name = name;\r\n\t}\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, Observable } from 'rxjs';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\nimport { BackendService, BaseDataService, EOperatore, GetPagesRequest, GetPagesResponse, GetWebsitesResponse, IApiRequest, Languages, MenuData, PageLink, PageLinkDetails, UserService, WebsiteDef, WebsiteLanguage } from 'nr-common';\r\n\r\nimport { environment } from '../../environments/environment';\r\nimport { ApiService } from './api.service';\r\nimport { OperatorLink } from '../shared/models/operatorLink';\r\n\r\ntype SITE_ACRONIMS = 'IT' | 'FR' | 'DE' | 'NL';\r\n\r\n@Injectable()\r\nexport class WebsiteService {\r\n\t// Flag interni di sincronizzazione\r\n\t// public loadingMenu$: BehaviorSubject = new BehaviorSubject(false);\r\n\tpublic currentWebsite: WebsiteDef;\r\n\tpublic showAdvancedControls$: BehaviorSubject = new BehaviorSubject(false);\r\n\r\n\tprivate websites: WebsiteDef[];\r\n\tprivate _currentOperator: EOperatore = EOperatore.Indefinito;\r\n\tprivate sitePages: GetPagesResponse = null;\r\n\r\n\t//private _currentOperator$: BehaviorSubject = new BehaviorSubject(EOperatore.Indefinito);\r\n\tpublic operatorLinks: OperatorLink[] = [];\r\n\r\n\t/* \r\n public readonly CMS_PAGELINK_ID = {\r\n home: { IT: 26, FR: 49, DE: 0, NL: 0 }, // home\r\n destinations: { IT: 43, FR: 51, DE: 0, NL: 0 }, // destinations\r\n opendestpage: { IT: 44, FR: 0, DE: 0, NL: 0 }, // destinazioni aperte\r\n ideas: { IT: 34, FR: 0, DE: 0, NL: 0 }, // ideas\r\n offers: { IT: 35, FR: 0, DE: 0, NL: 0 }, // offers\r\n contacts: { IT: 36, FR: 0, DE: 0, NL: 0 }, // contacts\r\n partners: { IT: 37, FR: 0, DE: 0, NL: 0 }, // partners\r\n about: { IT: 38, FR: 0, DE: 0, NL: 0 }, // about\r\n }; \r\n */\r\n\t/* public readonly CMS_PAGELINK_ID = {\r\n home: { \"Naar\": 26, \"NaarFrance\": 49, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // home\r\n destinations: { \"Naar\": 43, \"NaarFrance\": 51, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // destinations\r\n opendestpage: { \"Naar\": 44, \"NaarFrance\": 0, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // destinazioni aperte\r\n ideas: { \"Naar\": 34, \"NaarFrance\": 0, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // ideas\r\n offers: { \"Naar\": 35, \"NaarFrance\": 0, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // offers\r\n contacts: { \"Naar\": 36, \"NaarFrance\": 0, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // contacts\r\n partners: { \"Naar\": 37, \"NaarFrance\": 0, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // partners\r\n about: { \"Naar\": 38, \"NaarFrance\": 0, \"NaarGermany\": 0, \"NaarBenelux\": 0 }, // about\r\n }; */\r\n\r\n\t/* \r\n public readonly CMS_FOOTERLINK_ID = {\r\n IT: 41,\r\n FR: 50,\r\n DE: 0,\r\n NL: 61\r\n };\r\n */\r\n\r\n\t/* public readonly CMS_FOOTERLINK_ID = {\r\n \"Naar\": 41,\r\n \"NaarFrance\": 50,\r\n \"NaarGermany\": 0,\r\n \"NaarBenelux\": 61\r\n }; */\r\n\r\n\tconstructor(\r\n\t\tprivate user: UserService,\r\n\t\tprivate backend: BackendService,\r\n\t\tprivate translate: TranslateService,\r\n\t\tprivate basedata: BaseDataService\r\n\t) {}\r\n\r\n\tpublic async init() {\r\n\t\t// Load the websites\r\n\t\tconst request: IApiRequest = {};\r\n\t\tconst response: GetWebsitesResponse = await this.backend.post('websites/get', request);\r\n\t\tthis.websites = response.websites;\r\n\r\n\t\tthis.setWebsite();\r\n\r\n\t\tthis.translate.addLangs(['it', 'en', 'fr', 'es', 'de', 'nl']);\r\n\t\t//this.translate.setDefaultLang(this.currentWebsite.defaultLangCode);\r\n\t\tthis.translate.use(this.currentWebsite.defaultLangCode);\r\n\r\n\t\tconst req = new GetPagesRequest({\r\n\t\t\tlingua: this.basedata.getLingua(),\r\n\t\t\toperator: this._currentOperator,\r\n\t\t});\r\n\t\tthis.sitePages = await this.backend.post('b2c/pages', req);\r\n\r\n\t\tthis.showAdvancedControls$.next(this.user.can(['intranet']));\r\n\r\n\t\tthis.setOperatorsAttributes();\r\n\t}\r\n\r\n\tprivate async setWebsite() {\r\n\t\t// PRODUCTION\r\n\t\tif (typeof environment.website === 'string' && environment.website === 'auto') {\r\n\t\t\t/* if (this._currentOperator == EOperatore.Indefinito) {\r\n this._currentOperator = EOperatore.Naar;\r\n } */\r\n\t\t\t//let website = this.websites.find((w) => w.operatore == this._currentOperator);\r\n\r\n\t\t\t// Get the website from the URL\r\n\t\t\tlet website = this.websites.find((w) => w.host === window.location.hostname);\r\n\t\t\tif (!website) {\r\n\t\t\t\twebsite = this.websites[0];\r\n\t\t\t}\r\n\t\t\tthis.currentWebsite = website;\r\n\t\t} else {\r\n\t\t\t// DEVELOP: website is fixed in the environment\r\n\t\t\tthis.currentWebsite = this.websites.find((ws) => ws.id == +environment.website);\r\n\t\t}\r\n\r\n\t\tthis._currentOperator = this.currentWebsite.operatore;\r\n\t}\r\n\r\n\t/* private async setOperator(op: EOperatore, redirect: boolean = false) {\r\n if (this._currentOperator == op) return;\r\n\r\n this._currentOperator = op;\r\n\r\n // Change website\r\n this.setWebsite();\r\n \r\n // Change language\r\n const lang = this.currentWebsite.defaultLangCode;\r\n this.translate.use(lang);\r\n\r\n //await this.user.setLang(lang as Languages);\r\n //console.log('setOperator', this._currentOperator, this.currentWebsite.id, this.currentWebsite.defaultLangCode, this.translate.currentLang);\r\n \r\n if (redirect) {\r\n let url = '';\r\n switch (op) {\r\n case EOperatore.NaarGermany:\r\n url = 'home/de';\r\n break;\r\n case EOperatore.NaarBenelux:\r\n url = 'home/nl';\r\n break;\r\n case EOperatore.NaarFrance:\r\n url = 'home/fr';\r\n break;\r\n default:\r\n url = 'home/it';\r\n break;\r\n }\r\n window.location.href = url;\r\n }\r\n\r\n // Getting the website structure\r\n const req = new GetPagesRequest({\r\n lingua: this.basedata.getLingua(),\r\n operator: this._currentOperator\r\n });\r\n this.sitePages = await this.backend.post('b2c/pages', req);\r\n this._currentOperator$.next(this._currentOperator);\r\n } */\r\n\r\n\t/* public get currentOperator(): Observable {\r\n return this._currentOperator$.asObservable();\r\n } */\r\n\r\n\tpublic setLanguage(language: WebsiteLanguage) {\r\n\t\tthis.translate.use(language.codice);\r\n\t}\r\n\r\n\t/* public setOperatorByUrl(url: string) {\r\n\r\n // Get the last part of the url\r\n const lang = url.split('/').pop();\r\n\r\n if (lang != this.translate.currentLang) {\r\n switch (lang) {\r\n case 'de':\r\n this.setOperator(EOperatore.NaarGermany);\r\n break;\r\n case 'nl':\r\n this.setOperator(EOperatore.NaarBenelux);\r\n break;\r\n case 'fr':\r\n this.setOperator(EOperatore.NaarFrance);\r\n break;\r\n default:\r\n this.setOperator(EOperatore.Naar);\r\n break;\r\n }\r\n }\r\n } */\r\n\r\n\tpublic formatPageTitle(pageName: string, siteName: string = null): string {\r\n\t\t// console.log(\"formatPageTitle\", `${siteName} - ${pageName}`);\r\n\t\treturn `${siteName} - ${pageName}`;\r\n\t}\r\n\r\n\t// Restituisce la chiave per il titolo della pagina in lingua\r\n\tpublic getPageTitleKey(pageName: string): string {\r\n\t\tif (!pageName || pageName === '' || pageName.length === 0) {\r\n\t\t\tconsole.warn(`Invalid pageName: \"${pageName}\".`);\r\n\t\t\treturn '';\r\n\t\t}\r\n\t\tpageName = this.getValidTranslationKey(pageName);\r\n\t\treturn `PAGES.${pageName}.TITLE`;\r\n\t}\r\n\r\n\tpublic getValidTranslationKey(keyName: string): string {\r\n\t\treturn keyName.trim().toUpperCase().replace(' ', '-');\r\n\t}\r\n\r\n\t/**\r\n\t * Traduce il nome di pagina delle rotte Angular in id numerico del CMS\r\n\t * @param pageName nome della pagina usata come route di Angular\r\n\t * @returns id numerico della tabella PageLink (per il CMS)\r\n\t */\r\n\r\n\tpublic getPageLinkId(pageName: string): number {\r\n\t\tif (this.sitePages == null || this.sitePages.pages == null) return 0;\r\n\r\n\t\tconst page = this.sitePages.pages.find((p) => p.nome.toLowerCase() === pageName.toLowerCase());\r\n\t\tif (page == null) return 0;\r\n\t\treturn page.id;\r\n\t}\r\n\r\n\t/**\r\n\t * Restituisce la lingua usata nella UI\r\n\t * \tla lingua utente \"vince\" sulla lingua di default del sito\r\n\t * @returns string della lingua in uso\r\n\t */\r\n\t/* public getUILanguage(): SITE_ACRONIMS {\r\n let lingua: string;\r\n let linguaUser: string;\r\n\r\n lingua = this.currentWebsite.defaultLangCode || 'IT';\r\n this.user.currentLang$.subscribe((o) => {\r\n linguaUser = o.toString();\r\n });\r\n\r\n return lingua.toUpperCase() as SITE_ACRONIMS;\r\n }\r\n */\r\n\t/**\r\n\t * Restituisce l'ID del footer in funzione della lingua (sito)\r\n\t * @returns id numerico della tabella PageLink afferente al footer (per il CMS)\r\n\t */\r\n\tpublic getFooterLinkId(): number {\r\n\t\tif (this.sitePages == null || this.sitePages.footer == null) return 0;\r\n\t\treturn this.sitePages.footer?.id || 0;\r\n\t}\r\n\r\n\tpublic getInfostrip(): MenuData[] {\r\n\t\tif (this.sitePages == null || this.sitePages.secondMenu == null) return [];\r\n\r\n\t\treturn this.sitePages.secondMenu?.map((m) => {\r\n\t\t\treturn new MenuData({\r\n\t\t\t\ticon: m.faIcon,\r\n\t\t\t\tnome: m.nome,\r\n\t\t\t\tidLuogo: m.luogoID,\r\n\t\t\t\tidPagelink: m.id,\r\n\t\t\t\turl: m.url,\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Gestisco la lista degli operatori disponibili (semicablone)\r\n\t * e la traduzione dei loro nomi\r\n\t */\r\n\tpublic setOperatorsAttributes() {\r\n\t\t// const _operatorNames: EOperatore[] = [\r\n\t\t// \tEOperatore.Naar,\r\n\t\t// \tEOperatore.NaarFrance,\r\n\t\t// \tEOperatore.NaarGermany,\r\n\t\t// \tEOperatore.NaarBenelux,\r\n\t\t// ];\r\n\r\n\t\t//add operators translate foreach operatorNames in _operatorNames\r\n\t\t// _operatorNames.forEach((operator) => {\r\n\t\t// \tlet _name = this.translate.instant(`ENUMS.EOperatore.${operator.toString()}`);\r\n\t\t// \tthis.operatorLinks.push(new OperatorLink(EOperatore[operator], _name));\r\n\t\t// });\r\n\r\n\t\t// uso basedataservice per ottenere la lista degli operatori\r\n\t\tthis.basedata\r\n\t\t\t.getOperatorsDropdown$()\r\n\t\t\t.subscribe((operators) => {\r\n\t\t\t\t// console.log('operators', operators);\r\n\t\t\t\toperators.map((operator) => {\r\n\t\t\t\t\tthis.operatorLinks.push(new OperatorLink(operator.value, operator.text));\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n}\r\n","/* tslint:disable:variable-name */\r\nimport {Injectable} from '@angular/core';\r\nimport {Observable} from 'rxjs';\r\nimport {map, shareReplay} from 'rxjs/operators';\r\nimport {\r\n\tBackendService,\r\n\tBaseDataService,\r\n\tDestination,\r\n\tDestinationInfo,\r\n\tGetDestinationResponse,\r\n\tGetDestinationsResponse,\r\n\tGetOpenDestinationsResponse,\r\n\tIGetDestinationRequest,\r\n\tISiteRequest,\r\n\tOpenDestination\r\n} from 'nr-common';\r\nimport {WebsiteService} from './website.service';\r\n\r\n/**\r\n * SERVIZIO PER LA GESTIONE DELLE DESTINAZIONI\r\n * --------------------------------------------------------------\r\n * Per abbattere il numero di chiamate al server.\r\n * Mantiene in cache locale:\r\n *\t- l'insieme delle destinazioni\r\n *\t- dettagli delle singole destinazioni in lazy load\r\n */\r\nconst SINGLE_ENDPOINT = 'b2c/destination';\r\nconst PLURAL_ENDPOINT = 'b2c/destinations';\r\nconst OPENDESTINATIONS_ENDPOINT = 'b2c/opendestinations';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class DestinationService {\r\n\tprivate cache_destinations$: Observable = null;\r\n\tprivate cache_destinationInfo$: Observable[] = [];\r\n\tprivate cache_openDestinations$: Observable = null;\r\n\tprivate siteRequest: ISiteRequest;\t// SiteRequest usati per chiamate server\r\n\r\n\tconstructor(\r\n\t\tprivate backend: BackendService,\r\n\t\tpublic website: WebsiteService,\r\n\t\tprivate baseData: BaseDataService\r\n\t) {\r\n\t\tthis.siteRequest = {\r\n\t\t\tsiteID: this.website.currentWebsite.id,\r\n\t\t\tlingua: this.baseData.getLingua()\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati delle destinazioni\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getDestinations(): Observable {\r\n\t\tif (this.cache_destinations$ == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.cache_destinations$ = this.backend\r\n\t\t\t\t\t.call(PLURAL_ENDPOINT, this.siteRequest)\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\tmap((data: GetDestinationsResponse) => {\r\n\t\t\t\t\t\t\treturn data.destinazioni;\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.cache_destinations$;\r\n\t}\r\n\r\n\tpublic getDestinationInfo(destinationId: number): Observable {\r\n\t\tif (!this.cache_destinationInfo$[destinationId]) {\r\n\t\t\ttry {\r\n\t\t\t\tconst localRequest: IGetDestinationRequest = {\r\n\t\t\t\t\tsiteID: this.website.currentWebsite.id,\r\n\t\t\t\t\tlingua: this.baseData.getLingua(),\r\n\t\t\t\t\tdestinationID: destinationId\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.cache_destinationInfo$[destinationId] = this\r\n\t\t\t\t\t.backend\r\n\t\t\t\t\t.call(SINGLE_ENDPOINT, localRequest)\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\tmap((data: GetDestinationResponse) => {\r\n\t\t\t\t\t\t\treturn data.destination;\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.cache_destinationInfo$[destinationId];\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati delle destinazioni\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getOpenDestinations(): Observable {\r\n\t\tif (this.cache_openDestinations$ == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.cache_openDestinations$ = this.backend\r\n\t\t\t\t\t.call(OPENDESTINATIONS_ENDPOINT, this.siteRequest)\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\tmap((data: GetOpenDestinationsResponse) => {\r\n\t\t\t\t\t\t\treturn data.destinazioni;\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.cache_openDestinations$;\r\n\t}\r\n\r\n\tpublic getOpenDestination(openDestinationId: number): OpenDestination {\r\n\t\tlet od: OpenDestination;\r\n\t\tthis.getOpenDestinations().subscribe((data) => {\r\n\t\t\tod = data[openDestinationId];\r\n\t\t});\r\n\t\treturn od;\r\n\t}\r\n}\r\n","/* tslint:disable:variable-name */\r\nimport {Injectable} from '@angular/core';\r\nimport {Observable} from 'rxjs';\r\nimport {map, shareReplay} from 'rxjs/operators';\r\nimport {BackendService, BaseDataService, GetIdeaResponse, GetIdeasResponse, Idea, IdeaInfo, IGetIdeaRequest, ISiteRequest} from 'nr-common';\r\nimport {WebsiteService} from './website.service';\r\n\r\n/**\r\n * SERVIZIO PER LA GESTIONE DELLE IDEE DI VIAGGIO\r\n * --------------------------------------------------------------\r\n * Per abbattere il numero di chiamate al server.\r\n * Mantiene in cache locale:\r\n *\t- l'insieme delle ideas\r\n *\t- dettagli delle singole idee in lazy load\r\n */\r\nconst SINGLE_ENDPOINT = 'b2c/idea';\r\nconst PLURAL_ENDPOINT = 'b2c/ideas';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class IdeaService {\r\n\tprivate cache_ideas$: Observable = null;\r\n\tprivate cache_ideaInfo$: Observable[] = [];\r\n\tprivate siteRequest: ISiteRequest;\t// SiteRequest usati per chiamate server\r\n\r\n\tconstructor(\r\n\t\tprivate backend: BackendService,\r\n\t\tpublic website: WebsiteService,\r\n\t\tprivate baseData: BaseDataService\r\n\t) {\r\n\t\tthis.siteRequest = {\r\n\t\t\tsiteID: this.website.currentWebsite.id,\r\n\t\t\tlingua: this.baseData.getLingua()\r\n\t\t};\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati delle destinazioni\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getIdeas(): Observable {\r\n\t\tif (this.cache_ideas$ == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.cache_ideas$ = this.backend\r\n\t\t\t\t\t.call(PLURAL_ENDPOINT, this.siteRequest)\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\tmap((data: GetIdeasResponse) => {\r\n\t\t\t\t\t\t\treturn data.idee;\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.cache_ideas$;\r\n\t}\r\n\r\n\tpublic getIdeaInfo(ideaId: number): Observable {\r\n\t\tif (!this.cache_ideaInfo$[ideaId]) {\r\n\t\t\ttry {\r\n\t\t\t\tconst localRequest: IGetIdeaRequest = {\r\n\t\t\t\t\tsiteID: this.website.currentWebsite.id,\r\n\t\t\t\t\tlingua: this.baseData.getLingua(),\r\n\t\t\t\t\tideaID: ideaId\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.cache_ideaInfo$[ideaId] = this\r\n\t\t\t\t\t.backend\r\n\t\t\t\t\t.call(SINGLE_ENDPOINT, localRequest)\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\tmap((data: GetIdeaResponse) => {\r\n\t\t\t\t\t\t\treturn data.idea;\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.cache_ideaInfo$[ideaId];\r\n\t}\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {Observable} from 'rxjs';\r\nimport {map, shareReplay} from 'rxjs/operators';\r\nimport {BackendService, BaseDataService, GetTripResponse, IGetTripRequest, TripInfo} from 'nr-common';\r\nimport {WebsiteService} from './website.service';\r\n\r\n/**\r\n * SERVIZIO PER LA GESTIONE DEI VIAGGI\r\n * --------------------------------------------------------------\r\n * Per abbattere il numero di chiamate al server.\r\n * Mantiene in cache locale:\r\n *\t- l'insieme dei viaggi visitati\r\n *\t- dettagli dei singoli viaggi in lazy load\r\n */\r\nconst SINGLE_ENDPOINT = 'b2c/trip';\r\nconst PLURAL_ENDPOINT = 'b2c/trips';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class TripService {\r\n\t// tslint:disable-next-line:variable-name\r\n\tprivate cache_trips$: Observable[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate backend: BackendService,\r\n\t\tpublic website: WebsiteService,\r\n\t\tprivate baseData: BaseDataService\r\n\t) { }\r\n\r\n\t// TODO getTrip()\r\n\t// TODO getDestinationTrips()\r\n\t// TODO getIdeasTrips()\r\n\r\n\t/**\r\n\t * Recupera i dati del viaggio\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getTripInfo(tripId: number): Observable {\r\n\t\tif (!this.cache_trips$[tripId]) {\r\n\t\t\ttry {\r\n\t\t\t\tconst localRequest: IGetTripRequest = {\r\n\t\t\t\t\tsiteID: this.website.currentWebsite.id,\r\n\t\t\t\t\tlingua: this.baseData.getLingua(),\r\n\t\t\t\t\ttripID: tripId\r\n\t\t\t\t};\r\n\r\n\t\t\t\tthis.cache_trips$[tripId] = this\r\n\t\t\t\t\t.backend\r\n\t\t\t\t\t.call('b2c/trip', localRequest)\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\tmap((data: GetTripResponse) => {\r\n\t\t\t\t\t\t\treturn data.trip;\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.cache_trips$[tripId];\r\n\t}\r\n}\r\n","/* tslint:disable:variable-name */\r\nimport {Injectable} from '@angular/core';\r\nimport {\r\n\tB2cArticle,\r\n\tBackendService,\r\n\tBaseDataService,\r\n\tDestination,\r\n\tELingua,\r\n\tGetB2cArticleResponse,\r\n\tGetB2cImageUrlResponse,\r\n\tGetMenuDataResponse,\r\n\tGetPageDataResponse,\r\n\tGetPageFooterResponse,\r\n\tIdea,\r\n\tIGetB2cArticleRequest,\r\n\tIGetB2cImageUrlRequest,\r\n\tIGetPageDataRequest,\r\n\tIGetPageFooterRequest,\r\n\tISiteRequest,\r\n\tMenuData,\r\n\tOpenDestination,\r\n\tPageData,\r\n\tTripInfo,\r\n} from 'nr-common';\r\nimport {BehaviorSubject, Observable, of} from 'rxjs';\r\nimport {map, shareReplay} from 'rxjs/operators';\r\nimport {DestinationService} from './destination.service';\r\nimport {IdeaService} from './idea.service';\r\nimport {TripService} from './trip.service';\r\nimport {WebsiteService} from './website.service';\r\n\r\n/**\r\n * SERVIZIO PER LE COMUNICAZIONI COL SERVER\r\n * --------------------------------------------------------------\r\n * Per abbattere il numero di chiamate al server.\r\n * Mantiene in cache locale:\r\n *\t- il menu\r\n *\t- l'insieme delle destinazioni\r\n *\t- dati della pagina\r\n */\r\nconst MENU_ENDPOINT = 'b2c/menu';\r\nconst PAGE_ENDPOINT = 'b2c/pagedata';\r\nconst FOOTER_ENDPOINT = 'b2c/footer';\r\nconst ARTICLE_ENDPOINT = 'b2c/article';\r\nconst INFOSTRIP_ENDPOINT = 'b2c/infostrip';\r\nconst IMAGE_URL_ENDPOINT = 'b2c/imageUrl';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root',\r\n})\r\nexport class ApiService {\r\n\tpublic loadingData$: BehaviorSubject = new BehaviorSubject(false);\r\n\r\n\t// cache containers\r\n\t//private siteRequest: ISiteRequest; // SiteRequest usati per chiamate server\r\n\tprivate cache_menu$: Observable = null;\r\n\tprivate cache_infostrip$: Observable = null;\r\n\tprivate cache_pageData$: Observable[] = [];\r\n\tprivate cache_pageFooter$: Observable[] = [];\r\n\tprivate cache_articles$: Observable[] = [];\r\n\r\n\tconstructor(\r\n\t\tprivate backend: BackendService,\r\n\t\tpublic website: WebsiteService,\r\n\t\tprivate baseData: BaseDataService,\r\n\t\tprivate destinationService: DestinationService,\r\n\t\tprivate ideaService: IdeaService,\r\n\t\tprivate tripService: TripService\r\n\t) {\r\n\t\t/* this.siteRequest = {\r\n\t\t\tsiteID: this.website.currentWebsite.id,\r\n\t\t\tlingua: this.baseData.getLingua(),\r\n\t\t}; */\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera le voci di menu\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getMenu(): Observable {\r\n\t\tif (this.cache_menu$ == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.loadingData$.next(true);\r\n const siteRequest: ISiteRequest = {\r\n siteID: this.website.currentWebsite.id,\r\n lingua: this.baseData.getLingua(),\r\n }\r\n\t\t\t\tthis.cache_menu$ = this.backend.call(MENU_ENDPOINT, siteRequest).pipe(\r\n\t\t\t\t\tmap((data: GetMenuDataResponse) => {\r\n\t\t\t\t\t\treturn data.menuData;\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t} finally {\r\n\t\t\t\tthis.loadingData$.next(false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this.cache_menu$;\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera le voci della info-strip\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getInfostrip(): Observable {\r\n\t\tif (this.cache_infostrip$ == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.loadingData$.next(true);\r\n const siteRequest: ISiteRequest = {\r\n siteID: this.website.currentWebsite.id,\r\n lingua: this.baseData.getLingua(),\r\n }\r\n\t\t\t\tthis.cache_infostrip$ = this.backend.call(INFOSTRIP_ENDPOINT, siteRequest).pipe(\r\n\t\t\t\t\tmap((data: GetMenuDataResponse) => {\r\n\t\t\t\t\t\treturn data.menuData;\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t} finally {\r\n\t\t\t\tthis.loadingData$.next(false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn this.cache_infostrip$;\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati della pagina\r\n\t * @param pageId ID della pagina\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getPageData(pageId: number): Observable {\r\n\t\t\r\n const actualLanguage = this.baseData.getLingua();\r\n const cacheID = `${pageId}_${actualLanguage}`;\r\n\r\n if (this.cache_pageData$[cacheID] == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.loadingData$.next(true);\r\n\t\t\t\tconst localRequest: IGetPageDataRequest = {\r\n\t\t\t\t\tsiteID: this.website.currentWebsite.id,\r\n lingua: actualLanguage,\r\n\t\t\t\t\tpageDataID: pageId,\r\n\t\t\t\t};\r\n\r\n this.cache_pageData$[cacheID] = this.backend.call(PAGE_ENDPOINT, localRequest).pipe(\r\n\t\t\t\t\tmap((data: GetPageDataResponse) => {\r\n\t\t\t\t\t\treturn data.pageData;\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t} finally {\r\n\t\t\t\tthis.loadingData$.next(false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n return this.cache_pageData$[cacheID];\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati della pagina\r\n\t * @param pageId ID della pagina\r\n\t * @returns Observable\r\n\t */\r\n public getPageFooter(pageId: number): Observable {\r\n \r\n const actualLanguage = this.baseData.getLingua();\r\n const cacheID = `${pageId}_${actualLanguage}`;\r\n\r\n if (this.cache_pageFooter$[cacheID] == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.loadingData$.next(true);\r\n\t\t\t\tconst localRequest: IGetPageFooterRequest = {\r\n\t\t\t\t\tsiteID: this.website.currentWebsite.id,\r\n lingua: actualLanguage,\r\n\t\t\t\t\tpageDataID: pageId,\r\n\t\t\t\t};\r\n\r\n this.cache_pageFooter$[cacheID] = this.backend.call(FOOTER_ENDPOINT, localRequest).pipe(\r\n\t\t\t\t\tmap((data: GetPageFooterResponse) => {\r\n\t\t\t\t\t\treturn data;\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t} finally {\r\n\t\t\t\tthis.loadingData$.next(false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n return this.cache_pageFooter$[cacheID];\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati delle destinazioni\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getDestinations(): Observable {\r\n\t\treturn this.destinationService.getDestinations();\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati delle destinazioni aperte\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getOpenDestinations(): Observable {\r\n\t\treturn this.destinationService.getOpenDestinations();\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati delle idee di viaggio\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getIdeas(): Observable {\r\n\t\treturn this.ideaService.getIdeas();\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera i dati del viaggio\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getTrip(tripId: number): Observable {\r\n\t\treturn this.tripService.getTripInfo(tripId);\r\n\t}\r\n\r\n\t/**\r\n\t * Recupera le voci di menu\r\n\t * @params\tarticleID\r\n\t * @params\tparseToken se true forza il parsing e l'espansione dei token nel testo\r\n\t * @returns Observable\r\n\t */\r\n\tpublic getArticle(articleId: number, parseToken: boolean = false): Observable {\r\n\r\n const actualLanguage = this.baseData.getLingua();\r\n const cacheID = `${articleId}_${actualLanguage}`;\r\n\r\n\r\n if (this.cache_articles$[cacheID] == null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.loadingData$.next(true);\r\n\t\t\t\tconst localRequest: IGetB2cArticleRequest = {\r\n\t\t\t\t\tarticleID: articleId,\r\n lingua: actualLanguage,\r\n\t\t\t\t\tparseToken: parseToken,\r\n\t\t\t\t};\r\n\r\n this.cache_articles$[cacheID] = this.backend.call(ARTICLE_ENDPOINT, localRequest).pipe(\r\n\t\t\t\t\tmap((data: GetB2cArticleResponse) => {\r\n\t\t\t\t\t\treturn data.article;\r\n\t\t\t\t\t}),\r\n\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t} finally {\r\n\t\t\t\tthis.loadingData$.next(false);\r\n\t\t\t}\r\n\t\t}\r\n\r\n return this.cache_articles$[cacheID];\r\n\t}\r\n\r\n\t/* public takeMeHome(lang: string = ''): string {\r\n\t\tlet result: string = `home/${lang}`;\r\n\t\treturn result;\r\n\t} */\r\n}\r\n","import { Component, OnDestroy, OnInit } from '@angular/core';\r\nimport { EOperatore, ETipoEntita, PageData, PageDataGeneric } from 'nr-common';\r\nimport { ApiService } from '../../../services/api.service';\r\nimport { WebsiteService } from '../../../services/website.service';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { environment } from 'projects/nr-b2c/src/environments/environment';\r\nimport { BehaviorSubject, Observable, Subscription } from 'rxjs';\r\n\r\n@Component({\r\n\tselector: 'nr-base-page',\r\n\ttemplateUrl: './base-page.component.html',\r\n\tstyleUrls: ['./base-page.component.scss'],\r\n})\r\nexport class BasePageComponent implements OnInit, OnDestroy {\r\n\tpublic pageLinkId: number = -1;\r\n\tpublic pageName: string = '';\r\n\tpublic pageData: PageData;\r\n\tpublic footerData: PageData;\r\n\tpublic eTipoEntita = ETipoEntita;\r\n \r\n\tpublic get isDevelop():boolean {\r\n return !environment.production;\r\n\t}\r\n \r\n private _loading: BehaviorSubject = new BehaviorSubject(false);\r\n\tpublic get isLoading(): Observable {\r\n\t\treturn this._loading.asObservable();\r\n\t}\r\n\r\n\tpublic get pageHeader() {\r\n\t\treturn this.pageData?.elencoDati[0];\r\n\t}\r\n\r\n\tpublic get pageDataBody() {\r\n\t\treturn this.pageData?.elencoDati?.slice(1);\r\n\t}\r\n\r\n\tpublic pageHeaderName(capitallizeAllWords: boolean = false) {\r\n\t\tlet name = this.pageData?.elencoDati[0]?.name || '';\r\n\t\tif (name == '') return '';\r\n\r\n\t\tconst arrayName = name.split(' ');\r\n\t\tfor (var i = 0; i < arrayName.length; i++) {\r\n\t\t\tif (arrayName[i].length < 2 && !capitallizeAllWords) continue;\r\n\t\t\tarrayName[i] = arrayName[i].charAt(0).toUpperCase() + arrayName[i].slice(1);\r\n\t\t}\r\n\t\treturn arrayName.join(' ');\r\n\t}\r\n\r\n\tpublic pageHeaderContent() {\r\n\t\tif (!this.pageData?.elencoDati[0]?.content)\r\n\t\t\treturn '';\r\n\r\n\t\tlet result: string = this.pageData?.elencoDati[0]?.content || '';\r\n\r\n\t\tif (this.isDevelop) {\r\n\t\t\tconst textId: number = this.pageData?.elencoDati[0]?.id || 0;\r\n\t\t\tconst entityType: string = this.pageData?.elencoDati[0]?.entityType.toString() || '';\r\n\r\n\t\t\tresult = `${textId} - ${entityType}` + result;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tpublic cutThePageDataBodyTail(): PageDataGeneric {\r\n\t\treturn this.pageData?.elencoDati?.pop();\r\n\t}\r\n\r\n private subscription = new Subscription();\r\n\r\n\tconstructor(\r\n\t\tpublic apiService: ApiService,\r\n\t\tpublic webSiteService: WebsiteService,\r\n\t\tpublic titleService: Title,\r\n\t\tpublic translateService: TranslateService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tif (this.pageName == '')\r\n\t\t\t// skippo l'inizializzazione per le pagine NON inizializzate\r\n\t\t\treturn;\r\n\r\n // Subscribe to the current operator change\r\n this.subscription.add(\r\n this.translateService.onLangChange.subscribe(() => {\r\n this.loadData();\r\n })\r\n ); \r\n this.loadData();\r\n\t}\r\n\r\n private loadData() {\r\n this.pageLinkId = this.webSiteService.getPageLinkId(this.pageName);\r\n //console.log(\"page\", this.pageLinkId, this.pageName);\r\n\r\n if (this.pageLinkId > 0) {\r\n this._loading.next(true);\r\n this.subscription.add(\r\n this.apiService.getPageData(this.pageLinkId).subscribe((data: PageData) => {\r\n this.pageData = data;\r\n this._loading.next(false);\r\n })\r\n );\r\n }\r\n\r\n const siteNameKey: string = this.webSiteService.getValidTranslationKey('site name');\r\n const pageNameKey: string = this.webSiteService.getPageTitleKey(this.pageName);\r\n\r\n this.subscription.add(this.translateService.get([siteNameKey, pageNameKey]).subscribe((titles) => {\r\n this.titleService.setTitle(this.webSiteService.formatPageTitle(titles[pageNameKey], titles[siteNameKey]));\r\n })\r\n );\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.subscription.unsubscribe();\r\n }\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {BackendService, Banner, BaseDataService, ELingua, GetSiteBannersResponse, ISiteRequest} from 'nr-common';\r\nimport {Observable} from 'rxjs';\r\nimport {map, shareReplay} from 'rxjs/operators';\r\nimport {WebsiteService} from './website.service';\r\n// import { HttpClient } from '@angular/common/http';\r\n\r\n/**\r\n * SERVIZIO PER LA GESTIONE DEI BANNER della HOMEPAGE\r\n * --------------------------------------------------------------\r\n * Per abbattere il numero di chiamate al server.\r\n * Mantiene in cache locale:\r\n *\t- l'insieme dei banner\r\n */\r\nconst PLURAL_ENDPOINT = 'cms/site/Banners';\r\n\r\n@Injectable()\r\nexport class BannerService {\r\n\t// tslint:disable-next-line:variable-name\r\n\tprivate cache_banners$: Observable = null;\r\n private bannerLanguage: ELingua = ELingua.Italiano;\r\n\r\n\tpublic get hasBanners(): boolean {\r\n\t\tlet result = false;\r\n\t\tif (this.cache_banners$ != null) {\r\n\t\t\tthis.cache_banners$.subscribe((data) => {\r\n\t\t\t\tresult = data.length > 0;\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n\tconstructor(\r\n\t\tpublic website: WebsiteService,\r\n\t\tprivate backend: BackendService,\r\n\t\tprivate baseData: BaseDataService\r\n\t) {\r\n this.bannerLanguage = this.baseData.getLingua();\r\n\t}\r\n\r\n\tpublic getBanners() {\r\n\t\tif (this.cache_banners$ == null || this.bannerLanguage != this.baseData.getLingua()) {\r\n\t\t\ttry {\r\n this.bannerLanguage = this.baseData.getLingua();\r\n const siteRequest: ISiteRequest = {\r\n\t\t\t\t\tsiteID: this.website.currentWebsite.id,\r\n lingua: this.bannerLanguage,\r\n\t\t\t\t};\r\n\t\t\t\tthis.cache_banners$ = this.backend\r\n\t\t\t\t\t.call(PLURAL_ENDPOINT, siteRequest)\r\n\t\t\t\t\t.pipe(\r\n\t\t\t\t\t\tmap((data: GetSiteBannersResponse) => {\r\n\t\t\t\t\t\t\treturn data.banners;\r\n\t\t\t\t\t\t}),\r\n\t\t\t\t\t\tshareReplay(1)\r\n\t\t\t\t\t);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.cache_banners$;\r\n\t}\r\n\r\n\tgetBannerById(id: number) {}\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {EOperatore, IUrlService, User} from 'nr-common';\r\nimport {environment} from 'projects/nr-b2c/src/environments/environment';\r\nimport {TranslateService} from '@ngx-translate/core';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class UrlService implements IUrlService {\r\n\tpublic PAGE_ROUTES = {\r\n\t\tABOUT: '/about',\r\n\t\tCONTACTS: '/contacts',\r\n\t\tDESTINATIONS: '/destinations',\r\n\t\tHOME: '/home',\r\n\t\tIDEAS: '/ideas',\r\n\t\tOFFERS: '/offers',\r\n\t\tPARTNERS: '/partners',\r\n\t\tTRIP: '/trips',\r\n\t\tARTICLE: '/article',\r\n\t\tOPENDESTINATION: '/opendestpagedetail'\r\n\t};\r\n\r\n\tconstructor(private translate: TranslateService) {\r\n\t}\r\n\r\n\tnavigateToDestination(destinationId: number): any {\r\n\t\treturn [this.PAGE_ROUTES.DESTINATIONS, destinationId];\r\n\t}\r\n\r\n\tnavigateToIdea(ideaId: number): any {\r\n\t\treturn [this.PAGE_ROUTES.IDEAS, ideaId];\r\n\t}\r\n\r\n\tnavigateToTrip(tripId: number): any {\r\n\t\treturn [this.PAGE_ROUTES.TRIP, tripId];\r\n\t}\r\n\r\n\tnavigateToArticle(articleId: number): any {\r\n\t\treturn [this.PAGE_ROUTES.ARTICLE, articleId];\r\n\t}\r\n\r\n\tnavigateToOpenDestination(articleId: number, openDestinationId: number): any {\r\n\t\treturn [this.PAGE_ROUTES.OPENDESTINATION, articleId, openDestinationId];\r\n\t}\r\n\r\n\tgetArticleUrl(articleId: number): any {\r\n\t\treturn `/article/${articleId}`;\r\n\t}\r\n\r\n\tpublic openExportFile(file) {\r\n\t}\r\n\r\n\t/* public getIntranetAdvHomeUrl(): any[] {\r\n\t\treturn [environment.b2bIntranetAdvUrl[this.translate.currentLang]];\r\n\t} */\r\n public getIntranetAdvHomeUrlFromUser(user: User): string {\r\n\t\tlet link = \"\";\r\n switch (user.operator) {\r\n case EOperatore.NaarFrance:\r\n link = environment.b2bIntranetAdvUrl[\"fr\"];\r\n break;\r\n case EOperatore.NaarGermany:\r\n link = environment.b2bIntranetAdvUrl[\"de\"];\r\n break;\r\n case EOperatore.NaarBenelux:\r\n link = environment.b2bIntranetAdvUrl[\"nl\"];\r\n break;\r\n default:\r\n case EOperatore.Naar:\r\n link = environment.b2bIntranetAdvUrl[\"it\"];\r\n break;\r\n }\r\n return link;\r\n\t}\r\n\r\n\t/* public getIntranetAdvTripListUrl(): any[] {\r\n\t\treturn [environment.b2bIntranetAdvTripList[this.translate.currentLang]];\r\n\t} */\r\n\r\n public getIntranetAdvTripListUrlFromUser(user: User): string {\r\n let link = \"\";\r\n switch (user.operator) {\r\n case EOperatore.NaarFrance:\r\n link = environment.b2bIntranetAdvUrl[\"fr\"];\r\n break;\r\n case EOperatore.NaarGermany:\r\n link = environment.b2bIntranetAdvUrl[\"de\"];\r\n break;\r\n case EOperatore.NaarBenelux:\r\n link = environment.b2bIntranetAdvUrl[\"nl\"];\r\n break;\r\n default:\r\n case EOperatore.Naar:\r\n link = environment.b2bIntranetAdvUrl[\"it\"];\r\n break;\r\n }\r\n return link;\r\n }\r\n\r\n\tpublic getIntranetUrl() {\r\n\t\treturn [environment.b2bIntranetUrl];\r\n\t}\r\n}\r\n","export class Slide {\r\n\tid: number;\r\n\timg: string;\r\n\tname: string;\r\n\tcaption: string;\r\n\r\n\tconstructor(img: string, name: string = '', caption: string = '', id: number = 0) {\r\n\t\tthis.id = id;\r\n\t\tthis.img = img;\r\n\t\tthis.name = name;\r\n\t\tthis.caption = caption;\r\n\t}\r\n}\r\n","/* tslint:disable:no-bitwise */\r\nimport {Injectable} from '@angular/core';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class CommonService {\r\n\treadonly INVERT_ONLY_BLACK_AND_WHITE = true;\r\n\treadonly INVERT_REAL_COLOR = false;\r\n\r\n\tconstructor() {\r\n\t}\r\n\r\n\t/**\r\n\t * restituice il colore complementare a quello passato.\r\n\t *\r\n\t * https://stackoverflow.com/questions/35969656/how-can-i-generate-the-opposite-color-according-to-current-color/35970186\r\n\t * Se il flag bw è attivo, viene restituito il bianco per colori scuri o il nero per colori chiari\r\n\t * https://stackoverflow.com/questions/3942878/how-to-decide-font-color-in-white-or-black-depending-on-background-color/3943023#3943023\r\n\t */\r\n\tpublic invertColor(col: string, bw: boolean = this.INVERT_REAL_COLOR): string {\r\n\t\tlet result = '000000';\r\n\t\tif (col) {\r\n\t\t\tif (col.indexOf('#') === 0) {\r\n\t\t\t\tcol = col.slice(1);\r\n\t\t\t}\r\n\t\t\t// convert 3-digit col to 6-digits.\r\n\t\t\tif (col.length === 3) {\r\n\t\t\t\tcol = col[0] + col[0] + col[1] + col[1] + col[2] + col[2];\r\n\t\t\t}\r\n\t\t\tif ((col.length !== 3) && (col.length !== 6) && (col.length !== 8)) {\r\n\t\t\t\tthrow new Error('Invalid HEX color.');\r\n\t\t\t}\r\n\t\t\t// invert color components\r\n\t\t\tlet r = parseInt(col.slice(0, 2), 16);\r\n\t\t\tlet g = parseInt(col.slice(2, 4), 16);\r\n\t\t\tlet b = parseInt(col.slice(4, 6), 16);\r\n\r\n\t\t\tif (bw) {\r\n\t\t\t\tr = r * 0.299;\r\n\t\t\t\tg = g * 0.587;\r\n\t\t\t\tb = b * 0.114;\r\n\t\t\t\tresult = ((r + g + b) > 186) ? '000000' : 'FFFFFF';\r\n\t\t\t} else {\r\n\t\t\t\tr = 255 ^ r;\r\n\t\t\t\tg = 255 ^ g;\r\n\t\t\t\tb = 255 ^ b;\r\n\r\n\t\t\t\t// pad each with zeros and return\r\n\t\t\t\tresult =\r\n\t\t\t\t\tr.toString(16).padStart(2, '0') +\r\n\t\t\t\t\tg.toString(16).padStart(2, '0') +\r\n\t\t\t\t\tb.toString(16).padStart(2, '0');\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn `#${result}`;\r\n\t}\r\n\r\n\t/**\r\n\t * Restituisce un colore in RGBA, con canale alpha 00..FF\r\n\t * Se omesso, alpha vale per default 'BB' (convenzionalmente una leggera trasparenza)\r\n\t */\r\n\tgetTransparentColor(col: string, alpha: string = 'BB'): string {\r\n\t\tif (col) {\r\n\t\t\tif (col.indexOf('#') === 0) {\r\n\t\t\t\tcol = col.slice(1);\r\n\t\t\t}\r\n\t\t\tif (col.length === 3) {\r\n\t\t\t\tcol = col[0] + col[0] + col[1] + col[1] + col[2] + col[2];\r\n\t\t\t}\r\n\t\t\tif (col.length !== 6) {\r\n\t\t\t\tthrow new Error('Invalid HEX color.');\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn `#${col}${alpha}`;\r\n\t}\r\n\r\n\t/**\r\n\t * Mette in maiuscolo tutte le parole di una stringa più lunghe di un carattere\r\n\t * @param name string\r\n\t * @param minLength number\tlunghezza minima della parola da capitalizzare\r\n\t * @returns string\r\n\t */\r\n\tcapitalizeAllWords(name: string, minLength: number = 1): string {\r\n\t\tname = name || '';\r\n\t\tif (name === '') return '';\r\n\r\n\t\tconst arrayName = name.split(' ');\r\n\t\tfor (let i = 0; i < arrayName.length; i++) {\r\n\t\t\tif (arrayName[i].length < minLength)\r\n\t\t\t\tcontinue;\r\n\t\t\tarrayName[i] = arrayName[i].charAt(0).toUpperCase() + arrayName[i].slice(1).toLowerCase();\r\n\t\t}\r\n\r\n\t\treturn arrayName.join(' ');\r\n\t}\r\n\r\n\tgetVoidImage(): string {\r\n\t\treturn 'assets/img/Naar-void.png'\r\n\t}\r\n}\r\n","\r\n\r\n\r\n\r\n\t\r\n\t\t
\r\n\t\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
{{ transformName(banner.destination?.nome) }}
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
{{ banner.title }}
\r\n\t\t\t\t
\r\n\t\t\t\t\t

 

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n\r\n\r\n\t
\r\n\t\t
\r\n\t\t
\r\n\t\t\r\n\t
\r\n
\r\n","import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Banner, EBannerType } from 'nr-common';\r\n\r\nimport { environment } from 'projects/nr-b2b/src/environments/environment';\r\nimport { CommonService } from '../../../services/common.service';\r\nimport { UrlService } from '../../../services/url.service';\r\n\r\nconst MAX_DESCR_LEN = 200;\r\nconst DEFAULT_BACKGROUND_COLOR = '#707479'; // '#343a40b3';\r\n\r\n@Component({\r\n\tselector: 'nr-banner-card',\r\n\ttemplateUrl: './banner-card.component.html',\r\n\tstyleUrls: ['./banner-card.component.scss'],\r\n\tencapsulation: ViewEncapsulation.None,\r\n})\r\nexport class BannerCardComponent implements OnInit {\r\n\tget invertedColor(): string {\r\n if (this.banner.destination?.gaBgColor == null) return null;\r\n\t\treturn this.commonService.invertColor(this.banner.destination.gaBgColor, this.commonService.INVERT_ONLY_BLACK_AND_WHITE);\r\n\t}\r\n\t@Input() banner: Banner;\r\n\tpublic eBannerType = EBannerType;\r\n\r\n\tconstructor(\r\n\t\tpublic translate: TranslateService,\r\n\t\tpublic urlService: UrlService,\r\n\t\tpublic commonService: CommonService) {}\r\n\r\n\tngOnInit(): void {}\r\n\r\n\tendSoftly(v: string): string {\r\n\t\tif (v && v.length > MAX_DESCR_LEN) {\r\n\t\t\tv = v.substring(0, MAX_DESCR_LEN);\r\n\t\t\tconst lastBlank = v.lastIndexOf(' ');\r\n\t\t\tv = v.substring(0, lastBlank) + '...';\r\n\t\t}\r\n\t\treturn v;\r\n\t}\r\n\r\n\tgetIcon(iconGliph: string): string {\r\n if (iconGliph == null) return null;\r\n\t\tif (!iconGliph) {\r\n\t\t\ticonGliph = 'icon-people';\r\n\t\t}\r\n\t\treturn iconGliph;\r\n\t}\r\n\r\n\tgetColor(color: string): string {\r\n\t\tif (!color) return this.invertedColor; // this.commonService.invertColor(DEFAULT_BACKGROUND_COLOR, this.commonService.INVERT_ONLY_BLACK_AND_WHITE);\r\n\t\tif (!color.startsWith('#')) {\r\n\t\t\tcolor = '#' + color;\r\n\t\t}\r\n\t\treturn this.commonService.invertColor(color, this.commonService.INVERT_ONLY_BLACK_AND_WHITE);\r\n\t}\r\n\r\n\tgetBgColor(bgColor: string): string {\r\n\t\tif (!bgColor) return DEFAULT_BACKGROUND_COLOR;\r\n\t\tif (!bgColor.startsWith('#')) {\r\n\t\t\tbgColor = '#' + bgColor;\r\n\t\t}\r\n\t\treturn bgColor;\r\n\t}\r\n\r\n\ttransformName(name: string): string {\r\n\t\treturn this.commonService.capitalizeAllWords(name);\r\n\t}\r\n\r\n\tgetSunto(sunto: string): string {\r\n\t\t/* Qui vengono modificati alcuni valori in sviluppo per testare i download */\r\n\t\t// if (!environment.production) {\r\n\t\t// \tsunto = sunto.replace('https://api.naar.com/', 'http://localhost:4201/');\r\n\t\t// \tconsole.log(`id:${this.banner.id}, EP:${environment.servicesEndpointRoot}, Sunto:${sunto}, Result:${result}`);\r\n\t\t// }\r\n\r\n\t\t/*\tinfilo un target=\"_blank\" per ogni anchor nel sunto; forzando di fatto l'apertura dei link del banner in una nuova pagina (sempre) */\r\n\t\tsunto = sunto.replace(' pagina di download allegati\r\n\t\t *\tsenza allegato è un link annegato nel testo.\r\n\t\t */\r\n\t\tlet result: string = '';\r\n\r\n\t\tif (banner.attachment) {\r\n\t\t\tconst aId: number = banner.attachmentId;\r\n\t\t\tconst attachmentFileType = banner.attachmentFileType.substring(1);\r\n\t\t\tconst attachmentRoot: string = environment.servicesEndpointRoot;\r\n\t\t\t// result = `${attachmentRoot}articles/get/${banner.id}/attachment/${aId}`\r\n\t\t\tif (attachmentFileType != null) {\r\n\t\t\t\tresult = attachmentFileType.toUpperCase(); //`assets/img/special-deal.svg?t=${attachmentFileType}`;\r\n\t\t\t} else {\r\n\t\t\t\tresult = '???'; // \"assets/img/special-deal.png\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}\r\n}\r\n","
\r\n\t\r\n
\r\n\r\n
\r\n\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n
\r\n \r\n\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n \r\n \r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t

\r\n\t\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t
\r\n
\r\n","import {Component, Inject, OnDestroy, OnInit, Renderer2, ViewEncapsulation} from '@angular/core';\r\nimport {ApiService} from '../../services/api.service';\r\nimport {WebsiteService} from '../../services/website.service';\r\nimport {BasePageComponent} from '../../shared/components/base-page/base-page.component';\r\nimport {BannerService} from '../../services/banner.service';\r\nimport {Title} from '@angular/platform-browser';\r\nimport {TranslateService} from '@ngx-translate/core';\r\nimport {Banner, EBannerType, EOperatore, ETipoEntita, Languages, PageDataGeneric, UserService} from 'nr-common';\r\nimport {UrlService} from '../../services/url.service';\r\nimport {Slide} from '../../shared/models/slide';\r\nimport {CommonService} from '../../services/common.service';\r\nimport {DOCUMENT} from '@angular/common';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Component({\r\n\tselector: \"nr-homepage\",\r\n\ttemplateUrl: \"./homepage.component.html\",\r\n\tstyleUrls: [\"./homepage.component.scss\"],\r\n\tencapsulation: ViewEncapsulation.None,\r\n})\r\nexport class HomepageComponent extends BasePageComponent implements OnInit, OnDestroy {\r\n\tpublic banners: Banner[];\r\n //public widgets: PageDataGeneric[];\r\n \r\n\tpublic readonly CONTENT_DISPLAY_POSITION_DEFAULT = 0;\r\n\tpublic readonly CONTENT_DISPLAY_POSITION_MIDDLE = 10;\r\n\tpublic readonly CONTENT_DISPLAY_POSITION_BOTTOM = 100;\r\n\r\n\tslideConfig = {\r\n\t\tslidesToShow: 1,\r\n\t\tslidesToScroll: 1,\r\n\t\tnextArrow:\r\n\t\t\t'
',\r\n\t\tprevArrow:\r\n\t\t\t'
',\r\n\t\tdots: false,\r\n\t\tinfinite: true,\r\n\t\tswipe: false,\r\n\t\tresponsive: [\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 1140, // 1024,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1,\r\n\t\t\t\t\tinfinite: true,\r\n\t\t\t\t\t// dots: true\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 600,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 480,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t],\r\n\t};\r\n\r\n\tpublic slides: Slide[] = [];\r\n\r\n\tpublic get hasSlides(): boolean {\r\n\t\treturn this.slides.length > 0;\r\n\t}\r\n\r\n private subs = new Subscription();\r\n private bannerSub = new Subscription();\r\n\r\n\t// Rimuove dal DOM della pagina lo script per i cookie dinamici\r\n\t#dinamicCookieScriptID = \"CookieDeclaration\";\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\tpublic translateService: TranslateService,\r\n\t\tpublic bannerService: BannerService,\r\n\t\tpublic urlService: UrlService,\r\n\t\tpublic commonService: CommonService,\r\n\t\tprivate renderer2: Renderer2,\r\n\t\t@Inject(DOCUMENT) private _document: Document,\r\n\t\trouter: ActivatedRoute,\r\n\t\ttranslate: TranslateService,\r\n\t\tuser: UserService,\r\n\t\tapi: ApiService\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = \"home\";\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\r\n\t\t// Carico tutti i banner disponibili\r\n this.subs.add(\r\n this.translateService.onLangChange.subscribe(() => {\r\n this.loadPageData();\r\n })\r\n );\r\n this.loadPageData();\r\n \r\n /* // Attendo che i dati della pagina siano caricati\r\n this.subs.add(\r\n this.isLoading.subscribe(isLoading => {\r\n if (!isLoading) {\r\n this.widgets = this.pageData?.elencoDati?.filter((f) => f.entityType == ETipoEntita.WidgetOffertaCard || f.entityType == ETipoEntita.WidgetServizioCard);\r\n }\r\n })\r\n ); */\r\n\t}\r\n\r\n private loadPageData() { \r\n if (!this.bannerSub.closed) {\r\n this.bannerSub.unsubscribe();\r\n }\r\n this.bannerSub = this.bannerService.getBanners().subscribe((data) => {\r\n if (data) {\r\n this.banners = data.sort((a, b) => a.ordine - b.ordine);\r\n } else {\r\n this.banners = [];\r\n }\r\n this.loadSlides();\r\n this.bannerSub.unsubscribe();\r\n });\r\n }\r\n\r\n\t/**\r\n\t * Popolo la lista delle immagini della pagina per il carousel usando quelle dei banner\r\n\t * @returns void\r\n\t */\r\n\tprivate loadSlides(): void {\r\n\t\tif (!this.banners) return;\r\n\t\tif (this.banners?.length === 0) return;\r\n\r\n const slides: Slide[] = [];\r\n\r\n\t\tthis.banners\r\n\t\t\t.filter((f) => f.bannerType === EBannerType.Offerta)\r\n\t\t\t.forEach((banner) => {\r\n slides.push(\r\n\t\t\t\t\tnew Slide(\r\n\t\t\t\t\t\tbanner.imgUrl,\r\n\t\t\t\t\t\tbanner.title,\r\n\t\t\t\t\t\tbanner.sunto,\r\n\t\t\t\t\t\tbanner.id\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t});\r\n\r\n this.slides = slides;\r\n\t}\r\n\r\n\tpublic getBackgroundImageFromSlide(slide: Slide): string {\r\n\t\tconst slideImage =\r\n\t\t\tslide?.img != null ? slide.img : this.commonService.getVoidImage();\r\n\t\treturn `url('${slideImage}')`;\r\n\t}\r\n\r\n\tpublic removeScript() {\r\n\t\tconst dynamicCookiesScripNode = this._document.getElementById(\r\n\t\t\tthis.#dinamicCookieScriptID\r\n\t\t);\r\n\t\tif (!dynamicCookiesScripNode) return;\r\n\t\t// console.log(\"RemoveScript\", dynamicCookiesScripNode);\r\n\t\tconst scriptNode = this.renderer2.removeChild(\r\n\t\t\tthis._document.body,\r\n\t\t\tdynamicCookiesScripNode\r\n\t\t);\r\n\t}\r\n\r\n\t/**\r\n\t * Isola il contenuto di elencoDati in funzione degli offset indicati\r\n\t *\tgli offset di default sono 0..100\r\n\t * @param positionTop base inferiore per isolare il contenuto\r\n\t * @param positionBot base superiore per isolare il contenuto\r\n\t * @returns elencoDati o []\r\n\t */\r\n\tpublic getPageData(\r\n\t\tpositionTop: number = this.CONTENT_DISPLAY_POSITION_DEFAULT,\r\n\t\tpositionBot: number = this.CONTENT_DISPLAY_POSITION_BOTTOM\r\n\t): PageDataGeneric[] {\r\n\t\tlet result: PageDataGeneric[] = [];\r\n\r\n\t\tif (this.pageData.elencoDati != undefined) {\r\n\t\t\tresult = this.pageData.elencoDati.filter(\r\n\t\t\t\t(item) => item.order >= positionTop && item.order <= positionBot\r\n\t\t\t);\r\n\t\t}\r\n\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tpublic getStyle(style: number = 0, prefix: string = \"\"): string {\r\n\t\tprefix = prefix + style.toString();\r\n\t\treturn prefix;\r\n\t}\r\n\r\n ngOnDestroy(): void {\r\n this.subs.unsubscribe();\r\n }\r\n}\r\n\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { Destination } from 'nr-common';\r\nimport { CommonService } from '../../../services/common.service';\r\nimport { UrlService } from '../../../services/url.service';\r\n\r\nconst MAX_DESCR_LEN = 200;\r\n\r\n@Component({\r\n\tselector: 'nr-destination-card',\r\n\ttemplateUrl: './destination-card.component.html',\r\n\tstyleUrls: ['./destination-card.component.scss']\r\n})\r\nexport class DestinationCardComponent implements OnInit {\r\n\tget invertedColor(): string {\r\n\t\treturn this.commonService.invertColor(this.destination.gaBgColor, this.commonService.INVERT_ONLY_BLACK_AND_WHITE);\r\n\t}\r\n\t@Input() destination: Destination;\r\n\r\n\tconstructor(\r\n\t\tpublic urlService: UrlService,\r\n\t\tpublic commonService: CommonService\r\n\t) { }\r\n\r\n\tngOnInit(): void {\r\n\t}\r\n\r\n\tendSoftly(v: string): string {\r\n\t\tif (v && v.length > MAX_DESCR_LEN) {\r\n\t\t\tv = v.substring(0, MAX_DESCR_LEN);\r\n\t\t\tconst lastBlank = v.lastIndexOf(' ');\r\n\t\t\tv = v.substring(0, lastBlank) + '...';\r\n\t\t}\r\n\t\treturn v;\r\n\t}\r\n\r\n\tgetIcon(iconGliph: string): string {\r\n\t\tif (!iconGliph) {\r\n\t\t\ticonGliph = 'icon-people';\r\n\t\t}\r\n\t\treturn iconGliph;\r\n\t}\r\n\r\n\tgetColor(bgColor: string): string {\r\n if (bgColor == null) return null;\r\n\t\tif (!bgColor.startsWith(\"#\")) {\r\n\t\t\tbgColor = \"#\" + bgColor;\r\n\t\t}\r\n\t\treturn bgColor;\r\n\t}\r\n\r\n\ttransformName(name: string): string {\r\n\t\treturn this.commonService.capitalizeAllWords(name);\r\n\t}\r\n}\r\n","
\r\n\t\r\n\t
\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t\t
{{ transformName(destination?.nome) }}
\r\n\t
\r\n\t
\r\n\t\t

 

\r\n\t\t{{ 'COMMON.DETTAGLI' | translate }}\r\n\t
\r\n
\r\n","
    \r\n\t
  • \r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t{{ transformName(item.nome) }}\r\n\t\t\r\n\t
  • \r\n
\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { Destination } from 'nr-common';\r\nimport { ApiService } from '../../../services/api.service';\r\nimport { CommonService } from '../../../services/common.service';\r\nimport { UrlService } from '../../../services/url.service';\r\n\r\nconst BG_COLOR_LIGHTER_ALFA_CHANNEL = \"22\";\r\n\r\n@Component({\r\n\tselector: 'nr-destinations-list',\r\n\ttemplateUrl: './destinations-list.component.html',\r\n\tstyleUrls: ['./destinations-list.component.scss']\r\n})\r\nexport class DestinationsListComponent implements OnInit {\r\n\t@Input() destinations: Destination[];\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tpublic urlService: UrlService,\r\n\t\tprivate commonService: CommonService\r\n\t) { }\r\n\r\n\tngOnInit(): void {\r\n\t\tif (!this.destinations) {\r\n\t\t\tthis.apiService.getDestinations().subscribe((data) => {\r\n\t\t\t\tthis.destinations = data;\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tgetLightBgColor(bgColor: string): string {\r\n\t\tif (!bgColor) return;\r\n\t\tif (!bgColor.startsWith(\"#\")) {\r\n\t\t\tbgColor = \"#\" + bgColor;\r\n\t\t}\r\n\t\treturn `${bgColor}${BG_COLOR_LIGHTER_ALFA_CHANNEL}`;\r\n\t}\r\n\r\n\tgetIcon(iconGliph: string): string {\r\n\t\tif (!iconGliph) {\r\n\t\t\ticonGliph = 'icon-people';\r\n\t\t}\r\n\t\treturn iconGliph;\r\n\t}\r\n\r\n\ttransformName(name: string): string {\r\n\t\treturn this.commonService.capitalizeAllWords(name);\r\n\t}\r\n}\r\n","\r\n
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName() }}

\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { BasePageComponent } from '../../shared/components/base-page/base-page.component';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Destination } \t\t from 'nr-common';\r\n\r\n\r\n@Component({\r\n\tselector: 'nr-destinationspage',\r\n\ttemplateUrl: './destinationspage.component.html',\r\n\tstyleUrls: ['./destinationspage.component.scss']\r\n})\r\nexport class DestinationspageComponent extends BasePageComponent implements OnInit {\r\n\tpublic destinations: Destination[];\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\ttranslateService: TranslateService,\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = 'destinations';\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\r\n\t\tthis.apiService.getDestinations().subscribe((data) => {\r\n\t\t\tthis.destinations = data;\r\n\t\t});\r\n\t}\r\n}\r\n","import {Banner, TripHead} from 'nr-common';\r\n\r\nexport class TripCard {\r\n\r\n\tid: number;\r\n\timgUrl: string;\r\n\ttitle: string;\r\n\tabstract: string;\r\n\tprice: number;\r\n\tlanguage = '';\r\n\tdays: number;\r\n\tnights: number;\r\n\r\n\tcompleteByBanner(banner: Banner) {\r\n\t\tthis.id = banner.id;\r\n\t\tthis.imgUrl = banner.imgUrl;\r\n\t\tthis.title = banner.title;\r\n\t\tthis.abstract = banner.sunto;\r\n\t\tthis.days = 0;\r\n\t\tthis.nights = 0;\r\n\r\n\t\tthis.price = 5000 + (Math.random() * 10000);\r\n\t}\r\n\r\n\tcompleteByTrip(trip: TripHead) {\r\n\t\tthis.id = trip.tripID;\r\n\t\tthis.imgUrl = trip.cover;\r\n\t\tthis.title = trip.nome;\r\n\t\tthis.abstract = trip.descr;\r\n\t\tthis.language = trip.lingua;\r\n\t\tthis.days = trip.durata.giorni;\r\n\t\tthis.nights = trip.durata.notti;\r\n\r\n\t\tthis.price = 5000 + (Math.random() * 10000);\r\n\t}\r\n}\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { UrlService } from '../../../services/url.service';\r\nimport { TripCard } from '../../models/trip-card';\r\n\r\n@Component({\r\n\tselector: 'nr-trip-card',\r\n\ttemplateUrl: './trip-card.component.html',\r\n\tstyleUrls: ['./trip-card.component.scss']\r\n})\r\nexport class TripCardComponent implements OnInit {\r\n\t@Input() trip: TripCard\r\n\r\n\tconstructor(\r\n\t\tpublic translate: TranslateService,\r\n\t\tpublic urlService: UrlService\r\n\t) { }\r\n\r\n\tngOnInit(): void {\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t

\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{{ trip.title }}\r\n\t\t\t\t\t\r\n\t\t\t\t

\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t{{ 'COMPONENTS.TRIPCARD.PREZZO' | translate }} {{ trip.price |\r\n\t\t\t\t\t\tcurrency:'EUR':'symbol':'4.0-0' }}\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t
\r\n
\r\n","\r\n
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName(destinationInfo?.nome) }}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t 0; else onlyCover\"\r\n\t\t\t\t\t\t#slickModal=\"slick-carousel\"\r\n\t\t\t\t\t\t[config]=\"slideConfig\">\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n\r\n
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {Component, OnInit} from '@angular/core';\r\nimport {ApiService} from '../../services/api.service';\r\nimport {TranslateService} from '@ngx-translate/core';\r\nimport {Destination, DestinationInfo} from 'nr-common';\r\nimport {ActivatedRoute} from '@angular/router';\r\nimport {DestinationService} from '../../services/destination.service';\r\nimport {UrlService} from '../../services/url.service';\r\nimport {TripCard} from '../../shared/models/trip-card';\r\n\r\nconst MAX_NUM_OF_BIG_TRIP = 2;\t// NUmero massimo di Viaggi mostrati \"grandi\" nella tripCard gallery\r\n\r\n@Component({\r\n\tselector: 'nr-destinationpage',\r\n\ttemplateUrl: './destinationpage.component.html',\r\n\tstyleUrls: ['./destinationpage.component.scss']\r\n})\r\nexport class DestinationpageComponent implements OnInit {\r\n\tpublic destinations: Destination[];\r\n\tpublic destinationInfo: DestinationInfo;\r\n\ttripCards: TripCard[] = [];\r\n\r\n\tslideConfig = {\r\n\t\tslidesToShow: 1,\r\n\t\tslidesToScroll: 1,\r\n\t\tnextArrow: '
',\r\n\t\tprevArrow: '
',\r\n\t\tdots: true,\r\n\t\tinfinite: true,\r\n\t\tswipe: false,\r\n\t\tresponsive: [\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 1024,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1,\r\n\t\t\t\t\tinfinite: true,\r\n\t\t\t\t\tdots: true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 600,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 480,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tslides = [];\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tprivate activeRoute: ActivatedRoute,\r\n\t\tprivate destinationService: DestinationService,\r\n\t\tpublic urlService: UrlService,\r\n\t\tpublic translateService: TranslateService\r\n\t) {\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.apiService\r\n\t\t\t.getDestinations()\r\n\t\t\t.subscribe((data) => {\r\n\t\t\t\tthis.destinations = data;\r\n\t\t\t});\r\n\r\n\t\tthis.activeRoute\r\n\t\t\t.params\r\n\t\t\t.subscribe(routeParams => {\r\n\t\t\t\tthis.destinationService\r\n\t\t\t\t\t.getDestinationInfo(routeParams.id)\r\n\t\t\t\t\t.subscribe((data) => {\r\n\t\t\t\t\t\tthis.destinationInfo = data;\r\n\t\t\t\t\t\tthis.clearSlides();\r\n\t\t\t\t\t\tthis.loadSlides();\r\n\t\t\t\t\t\tthis.loadTripCards();\r\n\t\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Popolo la lista delle tripCard della destinazione\r\n\t * @returns void\r\n\t */\r\n\tloadTripCards() {\r\n\t\tthis.tripCards = [];\r\n\t\tif (!(this.destinationInfo?.elencoViaggi?.length > 0))\r\n\t\t\treturn;\r\n\r\n\t\tthis.destinationInfo.elencoViaggi\r\n\t\t\t.forEach(trip => {\r\n\t\t\t\tlet _tripCard = new TripCard();\r\n\t\t\t\t_tripCard.completeByTrip(trip);\r\n\t\t\t\tthis.tripCards.push(_tripCard);\r\n\t\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Popolo la lista delle immagini della destinazione per il carousel\r\n\t * @returns void\r\n\t */\r\n\tloadSlides(): void {\r\n\t\tif (this.destinationInfo.elencoImmagini) {\r\n\t\t\tthis.destinationInfo.elencoImmagini\r\n\t\t\t\t.forEach(image => {\r\n\t\t\t\t\tif (image.url?.length > 0) {\r\n\t\t\t\t\t\tif (this.slides.find(({img}) => img === image.url) === undefined) {\r\n\t\t\t\t\t\t\tthis.slides.push({\r\n\t\t\t\t\t\t\t\timg: image.url\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t}\r\n\t\tif (this.destinationInfo.elencoViaggi) {\r\n\t\t\tthis.destinationInfo.elencoViaggi\r\n\t\t\t\t.forEach(viaggio => {\r\n\t\t\t\t\tthis.slides.push({\r\n\t\t\t\t\t\timg: viaggio.cover\r\n\t\t\t\t\t}\r\n\t\t\t\t\t)\r\n\t\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tclearSlides(): void {\r\n\t\tthis.slides = [];\r\n\t}\r\n\r\n\t/**\r\n\t * Restituisce una classe specifica in funzione dell'index della TripCard.\r\n\t * \tI primi MAX_NUM_OF_BIG_TRIP elementi vengono rappresentati più grandi rispetto agli altri.\r\n\t * @param index index della TripCard\r\n\t * @returns\r\n\t */\r\n\tgetTripCardGallerySizeClass(index: number): string {\r\n\t\tconst widthClass = (index >= MAX_NUM_OF_BIG_TRIP) ? 'col-lg-6' : '';\r\n\t\treturn `col-md-12 ${widthClass}`;\r\n\t}\r\n\r\n\tpublic pageHeaderName(name: string) {\r\n\t\tname = name || '';\r\n\t\tif (name == '') return '';\r\n\r\n\t\tconst arrayName = name.split(\" \");\r\n\t\tfor (var i = 0; i < arrayName.length; i++) {\r\n\t\t\tif (arrayName[i].length < 2)\r\n\t\t\t\tcontinue;\r\n\t\t\tarrayName[i] = arrayName[i].charAt(0).toUpperCase() + arrayName[i].slice(1);\r\n\t\t}\r\n\t\treturn arrayName.join(\" \");\r\n\t}\r\n\r\n\tgetIcon(iconGliph: string): string {\r\n\t\tif (!iconGliph) {\r\n\t\t\ticonGliph = 'icon-people';\r\n\t\t}\r\n\t\treturn iconGliph;\r\n\t}\r\n}\r\n\r\n/**\r\n * https://www.npmjs.com/package/ngx-slick-carousel\r\n */\r\n","
    \r\n\t
  • \r\n\t\t\r\n\t\t\t\r\n\t\t\t{{ item.nome }}\r\n\t\t\r\n\t
  • \r\n
\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { Idea } from 'nr-common';\r\nimport { ApiService } from '../../../services/api.service';\r\nimport { UrlService } from '../../../services/url.service';\r\n\r\nconst BG_COLOR_LIGHTER_ALFA_CHANNEL = \"22\";\r\n\r\n@Component({\r\n\tselector: 'nr-ideas-list',\r\n\ttemplateUrl: './ideas-list.component.html',\r\n\tstyleUrls: ['./ideas-list.component.scss']\r\n})\r\nexport class IdeasListComponent implements OnInit {\r\n\t@Input() ideas: Idea[];\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tpublic urlService: UrlService\r\n\t) { }\r\n\r\n\tngOnInit(): void {\r\n\t\tif (!this.ideas) {\r\n\t\t\tthis.apiService.getIdeas().subscribe((data) => {\r\n\t\t\t\tthis.ideas = data;\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tgetLightBgColor(bgColor: string): string {\r\n\t\tif (!bgColor.startsWith(\"#\")) {\r\n\t\t\tbgColor = \"#\" + bgColor;\r\n\t\t}\r\n\t\treturn `${bgColor}${BG_COLOR_LIGHTER_ALFA_CHANNEL}`;\r\n\t}\r\n\r\n\tgetIcon(iconGliph: string): string {\r\n\t\tif (!iconGliph) {\r\n\t\t\ticonGliph = 'icon-people';\r\n\t\t}\r\n\t\treturn iconGliph;\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName() }}

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

It uses utility classes for typography and spacing to space content out within the larger container.

\r\n\t\t\t\t\tTake me Home\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { BasePageComponent } from '../../shared/components/base-page/base-page.component';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'nr-ideaspage',\r\n templateUrl: './ideaspage.component.html',\r\n styleUrls: ['./ideaspage.component.scss']\r\n})\r\nexport class IdeaspageComponent extends BasePageComponent implements OnInit {\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\ttranslateService: TranslateService\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = 'ideas';\r\n\t\t// this.pageLinkId = this.webSiteService.CMS_PAGELINK_ID['ideas'];\t// 34 è il CMS-Id della pagina Idee del NAAR-B2c\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName() }}

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

It uses utility classes for typography and spacing to space content out within the larger container.

\r\n\t\t\t\t\tTake me Home\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { BasePageComponent } from '../../shared/components/base-page/base-page.component';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'nr-offerspage',\r\n templateUrl: './offerspage.component.html',\r\n styleUrls: ['./offerspage.component.scss']\r\n})\r\nexport class OfferspageComponent extends BasePageComponent implements OnInit {\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\ttranslateService: TranslateService\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = 'offers';\r\n\t\t// this.pageLinkId = this.webSiteService.CMS_PAGELINK_ID['offers'];\t// 35 è il CMS-Id della pagina Idee del NAAR-B2c\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName() }}

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

It uses utility classes for typography and spacing to space content out within the larger container.

\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t\r\n\r\n\t\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { BasePageComponent } from '../../shared/components/base-page/base-page.component';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { ETipoEntita } from 'nr-common';\r\n\r\n@Component({\r\n selector: 'nr-contactspage',\r\n templateUrl: './contactspage.component.html',\r\n styleUrls: ['./contactspage.component.scss']\r\n})\r\nexport class ContactspageComponent extends BasePageComponent implements OnInit {\r\n\t// public privacyText = \"Testo di prova privacy\";\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\ttranslateService: TranslateService\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = 'contacts';\r\n\t\t// this.pageLinkId = this.webSiteService.CMS_PAGELINK_ID['contacts'];\t// 35 è il CMS-Id della pagina Idee del NAAR-B2c\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\t\t// this.privacyText = this.getPrivacyText();\r\n\t}\r\n\r\n\tgetPrivacyText(): string {\r\n\t\treturn '';\r\n\t\t// let result = this.pageData?.elencoDati?.slice(-1)[0].content;\r\n\t\t// // this.cutThePageDataBodyTail();\r\n\t\t// return result;\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName() }}

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

It uses utility classes for typography and spacing to space content out within the larger container.

\r\n\t\t\t\t\tTake me Home\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { BasePageComponent } from '../../shared/components/base-page/base-page.component';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n selector: 'nr-partnerspage',\r\n templateUrl: './partnerspage.component.html',\r\n styleUrls: ['./partnerspage.component.scss']\r\n})\r\nexport class PartnerspageComponent extends BasePageComponent implements OnInit {\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\ttranslateService: TranslateService\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = 'partners';\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName() }}

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t

It uses utility classes for typography and spacing to space content out within the larger container.

\r\n\t\t\t\t\tTake me Home\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { BasePageComponent } from '../../shared/components/base-page/base-page.component';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\n@Component({\r\n\tselector: 'nr-aboutpage',\r\n\ttemplateUrl: './aboutpage.component.html',\r\n\tstyleUrls: ['./aboutpage.component.scss']\r\n})\r\nexport class AboutpageComponent extends BasePageComponent implements OnInit {\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\ttranslateService: TranslateService\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = 'about';\r\n\t\t// this.pageLinkId = this.webSiteService.CMS_PAGELINK_ID['about'];\t// 37 è il CMS-Id della pagina Idee del NAAR-B2c\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ ideaInfo?.nome }}

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
0\">\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t

{{ 'PAGES.IDEAS.TITLE' | translate }}

\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t\t
  • Balcony
  • \r\n\t\t\t\t\t\t\t\t
  • Outdoor Kitchen
  • \r\n\t\t\t\t\t\t\t\t
  • Cable Tv
  • \r\n\t\t\t\t\t\t\t\t
  • Deck
  • \r\n\t\t\t\t\t\t\t\t
  • Tennis Courts
  • \r\n\t\t\t\t\t\t\t\t
  • Internet
  • \r\n\t\t\t\t\t\t\t\t
  • Parking
  • \r\n\t\t\t\t\t\t\t\t
  • Sun Room
  • \r\n\t\t\t\t\t\t\t\t
  • Concrete Flooring
  • \r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {Component, OnInit} from '@angular/core';\r\nimport {ActivatedRoute} from '@angular/router';\r\nimport {TranslateService} from '@ngx-translate/core';\r\nimport {Idea, IdeaInfo} from 'nr-common';\r\nimport {ApiService} from '../../services/api.service';\r\nimport {IdeaService} from '../../services/idea.service';\r\nimport {UrlService} from '../../services/url.service';\r\nimport {TripCard} from '../../shared/models/trip-card';\r\n\r\nconst MAX_NUM_OF_BIG_TRIP = 2;\t// NUmero massimo di Viaggi mostrati \"grandi\" nella tripCard gallery\r\n\r\n@Component({\r\n\tselector: 'nr-ideapage',\r\n\ttemplateUrl: './ideapage.component.html',\r\n\tstyleUrls: ['./ideapage.component.scss']\r\n})\r\nexport class IdeapageComponent implements OnInit {\r\n\tpublic ideas: Idea[];\r\n\tpublic ideaInfo: IdeaInfo;\r\n\ttripCards: TripCard[] = [];\r\n\r\n\tslideConfig = {\r\n\t\tslidesToShow: 1,\r\n\t\tslidesToScroll: 1,\r\n\t\tnextArrow: '
',\r\n\t\tprevArrow: '
',\r\n\t\tdots: true,\r\n\t\tinfinite: true,\r\n\t\tswipe: false,\r\n\t\tresponsive: [\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 1024,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1,\r\n\t\t\t\t\tinfinite: true,\r\n\t\t\t\t\tdots: true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 600,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 480,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tslides = [];\r\n\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tprivate activeRoute: ActivatedRoute,\r\n\t\tprivate ideaService: IdeaService,\r\n\t\tpublic urlService: UrlService,\r\n\t\tpublic translateService: TranslateService\r\n\t) { }\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.apiService\r\n\t\t\t.getIdeas()\r\n\t\t\t.subscribe((data) => {\r\n\t\t\t\tthis.ideas = data;\r\n\t\t\t});\r\n\r\n\t\tthis.activeRoute\r\n\t\t\t.params\r\n\t\t\t.subscribe(routeParams => {\r\n\t\t\t\tthis.ideaService\r\n\t\t\t\t\t.getIdeaInfo(routeParams.id)\r\n\t\t\t\t\t.subscribe((data) => {\r\n\t\t\t\t\t\tthis.ideaInfo = data;\r\n\t\t\t\t\t\tthis.clearSlides();\r\n\t\t\t\t\t\tthis.loadSlides();\r\n\t\t\t\t\t\tthis.loadTripCards();\r\n\t\t\t\t\t\t// console.log(this.ideaInfo);\r\n\t\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Popolo la lista delle tripCard della destinazione\r\n\t * @returns void\r\n\t */\r\n\tloadTripCards() {\r\n\t\tif (!(this.ideaInfo?.elencoViaggi?.length > 0))\r\n\t\t\treturn;\r\n\r\n\t\tthis.tripCards = [];\r\n\t\tthis.ideaInfo.elencoViaggi\r\n\t\t\t.forEach(trip => {\r\n\t\t\t\tlet _tripCard = new TripCard();\r\n\t\t\t\t_tripCard.completeByTrip(trip);\r\n\t\t\t\tthis.tripCards.push(_tripCard);\r\n\t\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Popolo la lista delle immagini della destinazione per il carousel\r\n\t * @returns void\r\n\t */\r\n\tloadSlides(): void {\r\n\t\tif (this.ideaInfo.coverImageUrl) {\r\n\t\t\timg: this.ideaInfo.coverImageUrl;\r\n\t\t}\r\n\t\t// if (this.ideaInfo.elencoImmagini) {\r\n\t\t// \tthis.ideaInfo.elencoImmagini\r\n\t\t// \t\t.forEach(image => {\r\n\t\t// \t\t\tif (image.url?.length > 0) {\r\n\t\t// \t\t\t\tthis.slides.push({\r\n\t\t// \t\t\t\t\timg: image.url\r\n\t\t// \t\t\t\t})\r\n\t\t// \t\t\t}\r\n\t\t// \t\t});\r\n\t\t// }\r\n\t\tif (this.ideaInfo.elencoViaggi) {\r\n\t\t\tthis.ideaInfo.elencoViaggi\r\n\t\t\t\t.forEach(viaggio => {\r\n\t\t\t\t\tthis.slides.push({\r\n\t\t\t\t\t\timg: viaggio.cover\r\n\t\t\t\t\t}\r\n\t\t\t\t\t)\r\n\t\t\t\t})\r\n\t\t}\r\n\t}\r\n\r\n\tclearSlides(): void {\r\n\t\tthis.slides = [];\r\n\t}\r\n\r\n\t/**\r\n\t * Restituisce una classe specifica in funzione dell'index della TripCard.\r\n\t * \tI primi MAX_NUM_OF_BIG_TRIP elementi vengono rappresentati più grandi rispetto agli altri.\r\n\t * @param index index della TripCard\r\n\t * @returns\r\n\t */\r\n\tgetTripCardGallerySizeClass(index: number): string {\r\n\t\tconst widthClass = (index >= MAX_NUM_OF_BIG_TRIP) ? 'col-lg-6' : '';\r\n\t\treturn `col-md-12 ${widthClass}`;\r\n\t}\r\n}\r\n","import {IAgenciesListRow, TripHead} from 'nr-common';\r\n\r\n/**\r\n * Struttura dati dei contatti\r\n */\r\nexport class Contact {\r\n\tpublic Cognome: string;\r\n\tpublic Nome: string;\r\n\tpublic Email: string;\r\n\tpublic ViaggioDiNozze: boolean;\r\n\tpublic Budget: string;\r\n\tpublic Note: string;\r\n\tpublic selectedADV: IAgenciesListRow;\r\n\tpublic interestedTrip: TripHead[];\r\n\tpublic selectedTrip: number;\r\n\r\n\r\n\tconstructor() {\r\n\t\tthis.Cognome = '';\r\n\t\tthis.Nome = '';\r\n\t\tthis.Email = '';\r\n\t\tthis.ViaggioDiNozze = false;\r\n\t\tthis.Budget = 'INDEFINITO';\r\n\t\tthis.Note = '';\r\n\t\tthis.interestedTrip = new Array(0);\r\n\t\tthis.selectedTrip = 0;\r\n\t\tthis.selectedADV = {\r\n\t\t\tcontactID: 1,\r\n\t\t\tnome: 'NAAR TOUR OPERATOR',\r\n\t\t\tindirizzo: 'Via Mario Pagano, 40',\r\n\t\t\tprov: 'MI',\r\n\t\t\tluogo: 'Milano'\r\n\t\t};\r\n\t}\r\n}\r\n","import {Injectable} from '@angular/core';\r\nimport {IAgenciesListRow, TinySelectedAdv, TinyTripOfInterest, TripHead, TripInfo} from 'nr-common';\r\nimport {Contact} from '../shared/models/contact.model';\r\n\r\n@Injectable({\r\n\tprovidedIn: 'root'\r\n})\r\nexport class SherpaService {\r\n\t// Array degli indici dei viaggi visti\r\n\tpublic ContactData: Contact;\r\n\r\n\tconstructor() {\r\n\t\tthis.ContactData = new Contact();\r\n\t}\r\n\r\n\taddTripOfInterest(trip: TripHead) {\r\n\t\tif (trip === undefined) {\r\n\t\t\tconsole.error('Trip undefined!');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst found = this.ContactData.interestedTrip.some(el => el.tripID === trip.tripID);\r\n\t\tif (!found) {\r\n\t\t\tthis.ContactData.interestedTrip.push(trip);\r\n\t\t}\r\n\t}\r\n\r\n\taddTripOfInterestByCompleteTrip(trip: TripInfo) {\r\n\t\tif (trip === undefined) {\r\n\t\t\tconsole.error('Trip undefined!');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlet t: TripHead;\r\n\r\n\t\tt = new TripHead({...(trip as TripHead)});\t// Shallow Copy Using the spread operator\r\n\t\tthis.addTripOfInterest(t);\r\n\t}\r\n\r\n\tgetTripOfInterestList(): TripHead[] {\r\n\t\treturn this.ContactData.interestedTrip;\r\n\t}\r\n\r\n\tgetTripOfInterestNumber(): number {\r\n\t\treturn this.ContactData.interestedTrip.length;\r\n\t}\r\n\r\n\thasTripOfInterest() {\r\n\t\tif (this.ContactData.interestedTrip === undefined) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn this.getTripOfInterestNumber() > 0;\r\n\t}\r\n\r\n\taddSelectedADV(data: IAgenciesListRow) {\r\n\t\tthis.ContactData.selectedADV = data;\r\n\t}\r\n\r\n\tgetSelectedAdvID(): number {\r\n\t\treturn this.ContactData.selectedADV.contactID ?? 0;\r\n\t}\r\n\r\n\tgetSelectedAdv() {\r\n\t\treturn this.ContactData.selectedADV;\r\n\t}\r\n\r\n\tgetTinyTripOfInterest(): TinyTripOfInterest[] {\r\n\t\tconst arTrips: TinyTripOfInterest[] = new Array(0);\r\n\t\tthis.ContactData.interestedTrip.forEach(element => {\r\n\t\t\tarTrips.push(new TinyTripOfInterest({\r\n\t\t\t\tid: element.tripID.toString(),\r\n\t\t\t\tnome: element.nome,\r\n\t\t\t\tdurata: `${element.durata.giorni}gg/${element.durata.notti}nn`\r\n\t\t\t}));\r\n\t\t});\r\n\t\treturn arTrips;\r\n\t}\r\n\r\n\tgetTinySelectedAdv(): TinySelectedAdv {\r\n\t\treturn new TinySelectedAdv({\r\n\t\t\tcontactID: this.ContactData.selectedADV.contactID.toString(),\r\n\t\t\tnome: this.ContactData.selectedADV.nome,\r\n\t\t\ttelefono: this.ContactData.selectedADV.telefono,\r\n\t\t\tindirizzo: `${this.ContactData.selectedADV.indirizzo} - (${this.ContactData.selectedADV.prov}) - ${this.ContactData.selectedADV.luogo}`\r\n\t\t});\r\n\t}\r\n\r\n\tsetSelectedTrip(trip: TripHead) {\r\n\t\tthis.ContactData.selectedTrip = trip?.tripID;\r\n\t\t// console.log(trip);\r\n\t}\r\n\r\n\tisSelectedTrip(trip: TripHead): boolean {\r\n\t\treturn this.ContactData.selectedTrip === trip?.tripID;\r\n\t}\r\n\r\n\thasSelectedTrip(): boolean {\r\n\t\treturn this.ContactData.selectedTrip !== 0;\r\n\t}\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\n\r\nimport { UserService } from 'nr-common';\r\n\r\nimport { environment } from '../../environments/environment';\r\n\r\n// OM 08.06.2023: Google Analytics\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GoogleAnalyticsService {\r\n\r\n private _ready : boolean = false;\r\n public get ready() : boolean {\r\n return this._ready;\r\n }\r\n private set ready(v : boolean) {\r\n this._ready = v;\r\n }\r\n\r\n private userService: UserService;\r\n\r\n constructor() { \r\n this.onScriptReady = this.onScriptReady.bind(this);\r\n }\r\n\r\n public init(userService: UserService) {\r\n try {\r\n this.userService = userService;\r\n\r\n // Add custom element of script with following attributes\r\n let script: HTMLScriptElement = document.createElement(\"script\");\r\n script.addEventListener(\"load\", this.onScriptReady);\r\n script.async = true;\r\n script.src = 'https://www.googletagmanager.com/gtag/js?id=' + environment.googleAnalyticsMeasurementId;\r\n document.head.prepend(script);\r\n \r\n if (!environment.production) {\r\n console.log(\"GoogleAnalyticsService - init\", environment.googleAnalyticsMeasurementId);\r\n }\r\n\r\n } catch (err) {\r\n console.error(\"GoogleAnalyticsService - Error initializing Google Tag Manager\", err);\r\n }\r\n }\r\n\r\n public tag(pageTitle: string, pageUrl: string, pageLocation: string) {\r\n try {\r\n const tagData = {\r\n page_title: pageTitle,\r\n page_path: pageUrl,\r\n page_location: pageLocation,\r\n user_id: this.userService.isLoggedIn ? this.userService.currentUser.id : undefined,\r\n debug_mode: !environment.production ? \"true\" : undefined\r\n };\r\n \r\n // We are using a different stream for production but is better to not send data to google if not in production\r\n if(!environment.production) {\r\n console.log(\"GoogleAnalyticsService - tag\", tagData);\r\n }\r\n \r\n gtag('event', 'page_view', tagData);\r\n\r\n } catch (err) {\r\n console.error(\"GoogleAnalyticsService - Error sending tag\", err);\r\n }\r\n }\r\n\r\n private onScriptReady(event: any) {\r\n\r\n if (!environment.production) {\r\n console.log(\"GoogleAnalyticsService - onScriptReady\");\r\n }\r\n\r\n gtag('js', new Date());\r\n gtag('config', environment.googleAnalyticsMeasurementId, { send_page_view: false });\r\n\r\n this.ready = true;\r\n }\r\n}\r\n","
\r\n\t{{ 'PAGES.TRIP.LBL-TAPPE' | translate }} \r\n\t\r\n\t\t{{ tappa.luogo }} \r\n\t\r\n
\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { TripItineraryDay } from 'nr-common';\r\n\r\n@Component({\r\n\tselector: 'nr-tappe',\r\n\ttemplateUrl: './tappe.component.html',\r\n\tstyleUrls: ['./tappe.component.scss']\r\n})\r\nexport class TappeComponent implements OnInit {\r\n\t@Input() tappe: TripItineraryDay[];\r\n\r\n\tconstructor() { }\r\n\r\n\tngOnInit(): void {\r\n\t}\r\n\r\n}\r\n","import { Provider } from '@angular/core';\r\n\r\nexport class WindowRef {\r\n getNativeWindow(): any { return window; }\r\n}\r\n\r\nexport class DocumentRef {\r\n getNativeDocument(): any { return document; }\r\n}\r\n\r\nexport const BROWSER_GLOBALS_PROVIDERS: Provider[] = [WindowRef, DocumentRef];\r\n","import { Inject, Injectable, InjectionToken, LOCALE_ID, Optional } from '@angular/core';\r\n\r\nimport { DocumentRef, WindowRef } from './browser-globals';\r\n\r\nimport { Loader } from '@googlemaps/js-api-loader';\r\n\r\n/**\r\n * Token for the config of the LazyMapsAPILoader. Please provide an object of type {@link MapsAPILoaderConfig}.\r\n */\r\nexport const MAPS_API_CONFIG = new InjectionToken('nr-maps MAPS_API_CONFIG');\r\n\r\n/**\r\n * Configuration for the {@link MapsAPILoader}.\r\n */\r\nexport interface MapsAPILoaderConfig {\r\n /**\r\n * The Google Maps API Key (see:\r\n * https://developers.google.com/maps/documentation/javascript/get-api-key)\r\n */\r\n apiKey?: string;\r\n\r\n /**\r\n * The Google Maps client ID (for premium plans).\r\n * When you have a Google Maps APIs Premium Plan license, you must authenticate\r\n * your application with either an API key or a client ID.\r\n * The Google Maps API will fail to load if both a client ID and an API key are included.\r\n */\r\n clientId?: string;\r\n\r\n /**\r\n * The Google Maps channel name (for premium plans).\r\n * A channel parameter is an optional parameter that allows you to track usage under your client\r\n * ID by assigning a distinct channel to each of your applications.\r\n */\r\n channel?: string;\r\n\r\n /**\r\n * The default bias for the map behavior is US.\r\n * If you wish to alter your application to serve different map tiles or bias the\r\n * application, you can overwrite the default behavior (US) by defining a `region`.\r\n * See https://developers.google.com/maps/documentation/javascript/basics#Region\r\n */\r\n region?: string;\r\n\r\n /**\r\n * The Google Maps API uses the browser's preferred language when displaying\r\n * textual information. If you wish to overwrite this behavior and force the API\r\n * to use a given language, you can use this setting.\r\n * See https://developers.google.com/maps/documentation/javascript/basics#Language\r\n */\r\n language?: string;\r\n}\r\n\r\n@Injectable()\r\nexport class MapsAPILoader {\r\n protected _scriptLoadingPromise: Promise;\r\n protected _config: MapsAPILoaderConfig;\r\n protected _windowRef: WindowRef;\r\n protected _documentRef: DocumentRef;\r\n protected readonly _SCRIPT_ID: string = 'nrGoogleMapsApiScript';\r\n\r\n private loader: Loader;\r\n\r\n constructor(@Optional() @Inject(MAPS_API_CONFIG) \r\n config: any = null, \r\n w: WindowRef, \r\n d: DocumentRef,\r\n @Inject(LOCALE_ID) private localeId: string) {\r\n this._config = config || {};\r\n this._windowRef = w;\r\n this._documentRef = d;\r\n }\r\n\r\n load(): Promise {\r\n this.loader = new Loader({\r\n apiKey: this._config.apiKey,\r\n version: 'weekly',\r\n client: this._config.clientId,\r\n channel: this._config.channel,\r\n id: this._SCRIPT_ID,\r\n region: this._config.region,\r\n language: this._config.language || (this.localeId !== 'en-US' ? this.localeId : null),\r\n });\r\n\r\n return this.loader.importLibrary('maps');\r\n }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { MapsAPILoader } from '../utils/maps-api-loader';\r\n\r\n/**\r\n * Wrapper class that handles the communication with the Google Maps Javascript\r\n * API v3\r\n */\r\n@Injectable()\r\nexport class GoogleMapsAPIWrapper {\r\n private _map: Promise;\r\n\tprivate _mapResolver: (value?: google.maps.Map) => void;\r\n\r\n\tconstructor(private _loader: MapsAPILoader, private _zone: NgZone) {\r\n\t\tthis._map = new Promise((resolve: (value: google.maps.Map) => void) => {\r\n\t\t\tthis._mapResolver = resolve;\r\n\t\t});\r\n\t}\r\n\t\r\n\tcreateMap(el: HTMLElement, mapOptions: google.maps.MapOptions): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._loader.load().then(() => {\r\n\t\t\t\tconst map = new google.maps.Map(el, mapOptions);\r\n\t\t\t\tthis._mapResolver(map);\r\n\t\t\t\treturn;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\t\r\n\tsetMapOptions(options: google.maps.MapOptions) {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\tthis._map.then((m: google.maps.Map) => {\r\n\t\t\t\tm.setOptions(options);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\t\r\n\t/**\r\n\t * Creates a google map marker with the map context\r\n\t*/\r\n\tcreateMarker_old(options: google.maps.marker.AdvancedMarkerElementOptions = {}, addToMap: boolean = true): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => {\r\n\t\t\t\tif (addToMap) {\r\n\t\t\t\t\toptions.map = map;\r\n\t\t\t\t}\r\n\t\t\t\treturn new google.maps.marker.AdvancedMarkerElement(options);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\tcreateMarker(options: google.maps.marker.AdvancedMarkerElementOptions = {}, addToMap: boolean = true): Promise {\r\n\t\tif (google.maps.marker?.AdvancedMarkerElement ) { \r\n\t\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\t\treturn this._map.then((map: google.maps.Map) => {\r\n\t\t\t\t\tif (addToMap) {\r\n\t\t\t\t\t\toptions.map = map;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn new google.maps.marker.AdvancedMarkerElement(options);\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t} else { \r\n\t\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\t\t\treturn google.maps.importLibrary('marker').then(() => { \r\n\t\t\t\t\t\treturn this.createMarker(options, addToMap);\r\n\t\t\t\t\t});\t\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tcreateInfoWindow(options?: google.maps.InfoWindowOptions): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map) => new google.maps.InfoWindow(options));\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a google.map.Circle for the current map.\r\n\t */\r\n\tcreateCircle(options: google.maps.CircleOptions): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => {\r\n\t\t\t\toptions.map = map;\r\n\t\t\t\treturn new google.maps.Circle(options);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a google.map.Rectangle for the current map.\r\n\t */\r\n\tcreateRectangle(options: google.maps.RectangleOptions): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => {\r\n\t\t\t\toptions.map = map;\r\n\t\t\t\treturn new google.maps.Rectangle(options);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tcreatePolyline(options: google.maps.PolylineOptions): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n return this._map.then((map: google.maps.Map) => {\r\n\t\t\t\tconst line = new google.maps.Polyline(options);\r\n\t\t\t\tline.setMap(map);\r\n\t\t\t\treturn line;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tcreatePolygon(options: google.maps.PolygonOptions): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n return this._map.then((map: google.maps.Map) => {\r\n\t\t\t\tconst polygon = new google.maps.Polygon(options);\r\n\t\t\t\tpolygon.setMap(map);\r\n\t\t\t\treturn polygon;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a new google.map.Data layer for the current map\r\n\t */\r\n\tcreateDataLayer(options?: google.maps.Data.DataOptions): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((m) => {\r\n\t\t\t\tconst data = new google.maps.Data(options);\r\n\t\t\t\tdata.setMap(m);\r\n\t\t\t\treturn data;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a TransitLayer instance for a map\r\n\t * @returns a new transit layer object\r\n\t */\r\n\tcreateTransitLayer(): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => {\r\n\t\t\t\tconst newLayer: google.maps.TransitLayer = new google.maps.TransitLayer();\r\n\t\t\t\tnewLayer.setMap(map);\r\n\t\t\t\treturn newLayer;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a BicyclingLayer instance for a map\r\n\t * @returns a new bicycling layer object\r\n\t */\r\n\tcreateBicyclingLayer(): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => {\r\n\t\t\t\tconst newLayer: google.maps.BicyclingLayer = new google.maps.BicyclingLayer();\r\n\t\t\t\tnewLayer.setMap(map);\r\n\t\t\t\treturn newLayer;\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Determines if given coordinates are insite a Polygon path.\r\n\t */\r\n\tcontainsLocation(latLng: google.maps.LatLng, polygon: google.maps.Polygon): Promise {\r\n\t\treturn this._map.then(() => google.maps.geometry.poly.containsLocation(latLng, polygon));\r\n\t}\r\n\r\n\tpublic subscribeToMapEvent(eventName: string): Observable {\r\n\t\treturn new Observable((observer) => {\r\n\t\t\tthis._map.then((m) => m.addListener(eventName, (...evArgs) => this._zone.run(() => observer.next(evArgs))));\r\n\t\t});\r\n\t}\r\n\r\n\tclearInstanceListeners() {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\tthis._map.then((map: google.maps.Map) => {\r\n\t\t\t\tgoogle.maps.event.clearInstanceListeners(map);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tsetCenter(latLng: google.maps.LatLngLiteral): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => map.setCenter(latLng));\r\n\t\t});\r\n\t}\r\n\r\n\tgetZoom(): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => map.getZoom());\r\n\t\t});\r\n\t}\r\n\r\n\tgetBounds(): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => map.getBounds());\r\n\t\t});\r\n\t}\r\n\r\n\tgetMapTypeId(): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => map.getMapTypeId());\r\n\t\t});\r\n\t}\r\n\r\n\tsetZoom(zoom: number): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => map.setZoom(zoom));\r\n\t\t});\r\n\t}\r\n\r\n\tgetCenter(): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map: google.maps.Map) => map.getCenter());\r\n\t\t});\r\n\t}\r\n\r\n\tpanTo(latLng: google.maps.LatLng | google.maps.LatLngLiteral): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map) => map.panTo(latLng));\r\n\t\t});\r\n\t}\r\n\r\n\tpanBy(x: number, y: number): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map) => map.panBy(x, y));\r\n\t\t});\r\n\t}\r\n\r\n\tfitBounds(\r\n\t\tlatLng: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral,\r\n\t\tpadding?: number | google.maps.Padding\r\n\t): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map) => map.fitBounds(latLng, padding));\r\n\t\t});\r\n\t}\r\n\r\n\tpanToBounds(\r\n\t\tlatLng: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral,\r\n\t\tpadding?: number | google.maps.Padding\r\n\t): Promise {\r\n\t\treturn this._zone.runOutsideAngular(() => {\r\n\t\t\treturn this._map.then((map) => map.panToBounds(latLng, padding));\r\n\t\t});\r\n\t}\r\n\r\n\t/**\r\n\t * Returns the native Google Maps Map instance. Be careful when using this instance directly.\r\n\t */\r\n\tgetNativeMap(): Promise {\r\n\t\treturn this._map;\r\n\t}\r\n\r\n\t/**\r\n\t * Triggers the given event name on the map instance.\r\n\t */\r\n\ttriggerMapEvent(eventName: string): Promise {\r\n\t\treturn this._map.then((m) => google.maps.event.trigger(m, eventName));\r\n\t}\r\n\r\n createAerialView() {\r\n // TODO: create AerialView manager service\r\n }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\nimport { Observable, ReplaySubject } from 'rxjs';\r\n\r\nimport { GoogleMapsAPIWrapper } from './../google-maps-api-wrapper';\r\nimport { NrMarker } from '../../directives/nr-marker';\r\n\r\n@Injectable()\r\nexport class MarkerManagerService {\r\n protected _markers: Map> = new Map>();\r\n \r\n constructor(protected _mapsWrapper: GoogleMapsAPIWrapper, protected _zone: NgZone) { }\r\n\r\n async convertAnimation(uiAnim: keyof typeof google.maps.Animation | null) {\r\n if (uiAnim === null) {\r\n return null;\r\n } else {\r\n return this._mapsWrapper.getNativeMap().then(() => google.maps.Animation[uiAnim]);\r\n }\r\n }\r\n\r\n deleteMarker(markerDirective: NrMarker): Promise {\r\n const markerPromise = this._markers.get(markerDirective);\r\n if (markerPromise == null) {\r\n // marker already deleted\r\n return Promise.resolve();\r\n }\r\n return markerPromise.then((marker: google.maps.marker.AdvancedMarkerElement) => {\r\n return this._zone.run(() => {\r\n marker.map=null;\r\n this._markers.delete(markerDirective);\r\n });\r\n });\r\n }\r\n\r\n updateMarkerPosition(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then(\r\n (m: google.maps.marker.AdvancedMarkerElement) =>{m.position={ lat: marker.latitude, lng: marker.longitude }});\r\n }\r\n\r\n updateTitle(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then((m: google.maps.marker.AdvancedMarkerElement) => {m.title=marker.title});\r\n }\r\n\r\n updateLabelAndOpacityAndIconAndAnimation(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then((m: google.maps.marker.AdvancedMarkerElement) => { m.content = marker.element.nativeElement;});\r\n }\r\n\r\n updateDraggable(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then((m: google.maps.marker.AdvancedMarkerElement) => {m.gmpDraggable=marker.draggable});\r\n }\r\n\r\n\r\n updateOpacity(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then((m: google.maps.marker.AdvancedMarkerElement) => {m.style.opacity=marker.opacity.toString()});\r\n }\r\n\r\n updateVisible(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then((m: google.maps.marker.AdvancedMarkerElement) => {m.map=marker.opacity?m.map:null});\r\n }\r\n\r\n updateZIndex(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then((m: google.maps.marker.AdvancedMarkerElement) => {m.zIndex=marker.zIndex});\r\n }\r\n\r\n updateClickable(marker: NrMarker): Promise {\r\n return this._markers.get(marker).then((m: google.maps.marker.AdvancedMarkerElement) => {m.gmpClickable=marker.clickable});\r\n }\r\n\r\n\r\n async addMarker(marker: NrMarker) {\r\n \r\n const markerPromise = new Promise(async (resolve) =>\r\n this._mapsWrapper.createMarker({\r\n position: { lat: marker.latitude, lng: marker.longitude },\r\n content: marker.element.nativeElement,\r\n gmpDraggable: marker.draggable,\r\n //icon: marker.iconUrl,\r\n //opacity: marker.opacity,\r\n map: marker.visible? await this._mapsWrapper.getNativeMap():null,\r\n zIndex: marker.zIndex,\r\n title: marker.title,\r\n gmpClickable: marker.clickable,\r\n \r\n //animation: await this.convertAnimation(marker.animation),\r\n }).then(resolve));\r\n this._markers.set(marker, markerPromise); \r\n\r\n }\r\n\r\n getNativeMarker(marker: NrMarker): Promise {\r\n return this._markers.get(marker);\r\n }\r\n\r\n createEventObservable(\r\n eventName: string,\r\n marker: NrMarker): Observable {\r\n return new Observable(observer => {\r\n this._markers.get(marker).then(m =>\r\n m.addListener(eventName, e => this._zone.run(() => observer.next(e)))\r\n );\r\n });\r\n }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\nimport { Observable, Observer } from 'rxjs';\r\n\r\nimport { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';\r\nimport { MarkerManagerService } from './marker-manager.service';\r\nimport { NrInfoWindow } from '../../directives/nr-info-window';\r\n\r\n@Injectable()\r\nexport class InfoWindowManagerService {\r\n private _infoWindows: Map> =\r\n new Map>();\r\n\r\n constructor(\r\n private _mapsWrapper: GoogleMapsAPIWrapper, private _zone: NgZone,\r\n private _markerManager: MarkerManagerService) { }\r\n\r\n deleteInfoWindow(infoWindow: NrInfoWindow): Promise {\r\n const iWindow = this._infoWindows.get(infoWindow);\r\n if (iWindow == null) {\r\n // info window already deleted\r\n return Promise.resolve();\r\n }\r\n return iWindow.then((i: google.maps.InfoWindow) => {\r\n return this._zone.run(() => {\r\n i.close();\r\n this._infoWindows.delete(infoWindow);\r\n });\r\n });\r\n }\r\n\r\n setPosition(infoWindow: NrInfoWindow): Promise {\r\n return this._infoWindows.get(infoWindow).then((i: google.maps.InfoWindow) => i.setPosition({\r\n lat: infoWindow.latitude,\r\n lng: infoWindow.longitude,\r\n }));\r\n }\r\n\r\n setZIndex(infoWindow: NrInfoWindow): Promise {\r\n return this._infoWindows.get(infoWindow)\r\n .then((i: google.maps.InfoWindow) => i.setZIndex(infoWindow.zIndex));\r\n }\r\n\r\n open(infoWindow: NrInfoWindow): Promise {\r\n return this._infoWindows.get(infoWindow).then((w) => {\r\n if (infoWindow.hostMarker != null) {\r\n return this._markerManager.getNativeMarker(infoWindow.hostMarker).then((marker) => {\r\n return this._mapsWrapper.getNativeMap().then((map) => w.open(map, marker));\r\n });\r\n }\r\n return this._mapsWrapper.getNativeMap().then((map) => w.open(map));\r\n });\r\n }\r\n\r\n close(infoWindow: NrInfoWindow): Promise {\r\n return this._infoWindows.get(infoWindow).then((w) => w.close());\r\n }\r\n\r\n setOptions(infoWindow: NrInfoWindow, options: google.maps.InfoWindowOptions) {\r\n return this._infoWindows.get(infoWindow).then((i: google.maps.InfoWindow) => i.setOptions(options));\r\n }\r\n\r\n addInfoWindow(infoWindow: NrInfoWindow) {\r\n const options: google.maps.InfoWindowOptions = {\r\n content: infoWindow.content,\r\n maxWidth: infoWindow.maxWidth,\r\n zIndex: infoWindow.zIndex,\r\n disableAutoPan: infoWindow.disableAutoPan,\r\n };\r\n if (typeof infoWindow.latitude === 'number' && typeof infoWindow.longitude === 'number') {\r\n options.position = { lat: infoWindow.latitude, lng: infoWindow.longitude };\r\n }\r\n const infoWindowPromise = this._mapsWrapper.createInfoWindow(options);\r\n this._infoWindows.set(infoWindow, infoWindowPromise);\r\n }\r\n\r\n /**\r\n * Creates a Google Maps event listener for the given InfoWindow as an Observable\r\n */\r\n createEventObservable(eventName: string, infoWindow: NrInfoWindow): Observable {\r\n return new Observable((observer: Observer) => {\r\n this._infoWindows.get(infoWindow).then((i: google.maps.InfoWindow) => {\r\n i.addListener(eventName, (e: T) => this._zone.run(() => observer.next(e)));\r\n });\r\n });\r\n }\r\n}\r\n","import { fromEventPattern, Observable } from 'rxjs';\r\n\r\nexport function createMVCEventObservable(array: google.maps.MVCArray): Observable>{\r\n const eventNames = ['insert_at', 'remove_at', 'set_at'];\r\n return fromEventPattern(\r\n handler => eventNames.map(eventName => array.addListener(eventName,\r\n (index: number, previous?: T) => handler.apply(array, [ {newArr: array.getArray(), eventName, index, previous} as MVCEvent]))),\r\n (_handler, evListeners: google.maps.MapsEventListener[]) => evListeners.forEach(evListener => evListener.remove()));\r\n}\r\n\r\nexport type MvcEventType = 'insert_at' | 'remove_at' | 'set_at';\r\n\r\nexport interface MVCEvent {\r\n newArr: T[];\r\n eventName: MvcEventType;\r\n index: number;\r\n previous?: T;\r\n}\r\n\r\nexport class MvcArrayMock implements google.maps.MVCArray {\r\n private vals: T[] = [];\r\n private listeners: {\r\n 'remove_at': ((i: number, r: T) => void)[];\r\n 'insert_at': ((i: number) => void)[];\r\n 'set_at': ((i: number, val: T) => void)[];\r\n } = {\r\n remove_at: [],\r\n insert_at: [],\r\n set_at: [],\r\n };\r\n clear(): void {\r\n for (let i = this.vals.length - 1; i >= 0; i--) {\r\n this.removeAt(i);\r\n }\r\n }\r\n getArray(): T[] {\r\n return [...this.vals];\r\n }\r\n getAt(i: number): T {\r\n return this.vals[i];\r\n }\r\n getLength(): number {\r\n return this.vals.length;\r\n }\r\n insertAt(i: number, elem: T): void {\r\n this.vals.splice(i, 0, elem);\r\n this.listeners.insert_at.forEach(listener => listener(i));\r\n }\r\n pop(): T {\r\n const deleted = this.vals.pop();\r\n this.listeners.remove_at.forEach(listener => listener(this.vals.length, deleted));\r\n return deleted;\r\n }\r\n push(elem: T): number {\r\n this.vals.push(elem);\r\n this.listeners.insert_at.forEach(listener => listener(this.vals.length - 1));\r\n return this.vals.length;\r\n }\r\n removeAt(i: number): T {\r\n const deleted = this.vals.splice(i, 1)[0];\r\n this.listeners.remove_at.forEach(listener => listener(i, deleted));\r\n return deleted;\r\n }\r\n setAt(i: number, elem: T): void {\r\n const deleted = this.vals[i];\r\n this.vals[i] = elem;\r\n this.listeners.set_at.forEach(listener => listener(i, deleted));\r\n }\r\n forEach(callback: (elem: T, i: number) => void): void {\r\n this.vals.forEach(callback);\r\n }\r\n addListener(eventName: 'remove_at' | 'insert_at' | 'set_at', handler: (...args: any[]) => void): google.maps.MapsEventListener {\r\n const listenerArr = this.listeners[eventName];\r\n listenerArr.push(handler);\r\n return {\r\n remove: () => {\r\n listenerArr.splice(listenerArr.indexOf(handler), 1);\r\n },\r\n };\r\n }\r\n\r\n bindTo(): never { throw new Error('Not implemented'); }\r\n changed(): never { throw new Error('Not implemented'); }\r\n get(): never { throw new Error('Not implemented'); }\r\n notify(): never { throw new Error('Not implemented'); }\r\n set(): never { throw new Error('Not implemented'); }\r\n setValues(): never { throw new Error('Not implemented'); }\r\n unbind(): never { throw new Error('Not implemented'); }\r\n unbindAll(): never { throw new Error('Not implemented'); }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\nimport { Observable, Observer } from 'rxjs';\r\n\r\nimport { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';\r\nimport { NrPolyline } from '../../directives/nr-polyline';\r\nimport { NrPolylinePoint } from '../../directives/nr-polyline-point';\r\nimport { createMVCEventObservable, MVCEvent } from '../../utils/mvcarray-utils';\r\n\r\n@Injectable()\r\nexport class PolylineManagerService {\r\n private _polylines: Map> =\r\n new Map>();\r\n\r\n constructor(private _mapsWrapper: GoogleMapsAPIWrapper, private _zone: NgZone) { }\r\n\r\n private static _convertPoints(line: NrPolyline): google.maps.LatLngLiteral[] {\r\n const path = line._getPoints().map((point: NrPolylinePoint) => {\r\n return { lat: point.latitude, lng: point.longitude } as google.maps.LatLngLiteral;\r\n });\r\n return path;\r\n }\r\n\r\n private static _convertPath(path: keyof typeof google.maps.SymbolPath | string): google.maps.SymbolPath | string {\r\n const symbolPath = google.maps.SymbolPath[path as keyof typeof google.maps.SymbolPath];\r\n if (typeof symbolPath === 'number') {\r\n return symbolPath;\r\n } else {\r\n return path;\r\n }\r\n }\r\n\r\n private static _convertIcons(line: NrPolyline): Array {\r\n const icons = line._getIcons().map(agmIcon => ({\r\n fixedRotation: agmIcon.fixedRotation,\r\n offset: agmIcon.offset,\r\n repeat: agmIcon.repeat,\r\n icon: {\r\n anchor: new google.maps.Point(agmIcon.anchorX, agmIcon.anchorY),\r\n fillColor: agmIcon.fillColor,\r\n fillOpacity: agmIcon.fillOpacity,\r\n path: PolylineManagerService._convertPath(agmIcon.path),\r\n rotation: agmIcon.rotation,\r\n scale: agmIcon.scale,\r\n strokeColor: agmIcon.strokeColor,\r\n strokeOpacity: agmIcon.strokeOpacity,\r\n strokeWeight: agmIcon.strokeWeight,\r\n },\r\n } as google.maps.IconSequence));\r\n // prune undefineds;\r\n icons.forEach(icon => {\r\n Object.entries(icon).forEach(([key, val]) => {\r\n if (typeof val === 'undefined') {\r\n delete (icon as any)[key];\r\n }\r\n });\r\n if (typeof icon.icon.anchor.x === 'undefined' ||\r\n typeof icon.icon.anchor.y === 'undefined') {\r\n delete icon.icon.anchor;\r\n }\r\n });\r\n return icons;\r\n }\r\n\r\n addPolyline(line: NrPolyline) {\r\n const polylinePromise = this._mapsWrapper.getNativeMap()\r\n .then(() => [PolylineManagerService._convertPoints(line),\r\n PolylineManagerService._convertIcons(line)])\r\n .then(([path, icons]: [google.maps.LatLngLiteral[], google.maps.IconSequence[]]) =>\r\n this._mapsWrapper.createPolyline({\r\n clickable: line.clickable,\r\n draggable: line.draggable,\r\n editable: line.editable,\r\n geodesic: line.geodesic,\r\n strokeColor: line.strokeColor,\r\n strokeOpacity: line.strokeOpacity,\r\n strokeWeight: line.strokeWeight,\r\n visible: line.visible,\r\n zIndex: line.zIndex,\r\n path,\r\n icons,\r\n }));\r\n this._polylines.set(line, polylinePromise);\r\n }\r\n\r\n updatePolylinePoints(line: NrPolyline): Promise {\r\n const path = PolylineManagerService._convertPoints(line);\r\n const m = this._polylines.get(line);\r\n if (m == null) {\r\n return Promise.resolve();\r\n }\r\n return m.then((l) => this._zone.run(() => l.setPath(path)));\r\n }\r\n\r\n async updateIconSequences(line: NrPolyline): Promise {\r\n await this._mapsWrapper.getNativeMap();\r\n const icons = PolylineManagerService._convertIcons(line);\r\n const m = this._polylines.get(line);\r\n if (m == null) {\r\n return;\r\n }\r\n return m.then(l => this._zone.run(() => l.setOptions({ icons })));\r\n }\r\n\r\n setPolylineOptions(line: NrPolyline, options: { [propName: string]: any }):\r\n Promise {\r\n return this._polylines.get(line).then((l: google.maps.Polyline) => { l.setOptions(options); });\r\n }\r\n\r\n deletePolyline(line: NrPolyline): Promise {\r\n const m = this._polylines.get(line);\r\n if (m == null) {\r\n return Promise.resolve();\r\n }\r\n return m.then((l: google.maps.Polyline) => {\r\n return this._zone.run(() => {\r\n l.setMap(null);\r\n this._polylines.delete(line);\r\n });\r\n });\r\n }\r\n\r\n private async getMVCPath(agmPolyline: NrPolyline): Promise> {\r\n const polyline = await this._polylines.get(agmPolyline);\r\n return polyline.getPath();\r\n }\r\n\r\n async getPath(agmPolyline: NrPolyline): Promise {\r\n return (await this.getMVCPath(agmPolyline)).getArray();\r\n }\r\n\r\n createEventObservable(eventName: string, line: NrPolyline): Observable {\r\n return new Observable((observer: Observer) => {\r\n this._polylines.get(line).then((l: google.maps.Polyline) => {\r\n l.addListener(eventName, (e: T) => this._zone.run(() => observer.next(e)));\r\n });\r\n });\r\n }\r\n\r\n async createPathEventObservable(line: NrPolyline): Promise>> {\r\n const mvcPath = await this.getMVCPath(line);\r\n return createMVCEventObservable(mvcPath);\r\n }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\nimport { merge, Observable, Observer } from 'rxjs';\r\nimport { map, skip, startWith, switchMap } from 'rxjs/operators';\r\n\r\nimport { NrPolygon } from '../../directives/nr-polygon';\r\nimport { createMVCEventObservable, MVCEvent } from '../../utils/mvcarray-utils';\r\nimport { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';\r\n\r\n@Injectable()\r\nexport class PolygonManagerService {\r\n private _polygons: Map> =\r\n new Map>();\r\n\r\n constructor(private _mapsWrapper: GoogleMapsAPIWrapper, private _zone: NgZone) { }\r\n\r\n addPolygon(path: NrPolygon) {\r\n const polygonPromise = this._mapsWrapper.createPolygon({\r\n clickable: path.clickable,\r\n draggable: path.draggable,\r\n editable: path.editable,\r\n fillColor: path.fillColor,\r\n fillOpacity: path.fillOpacity,\r\n geodesic: path.geodesic,\r\n paths: path.paths,\r\n strokeColor: path.strokeColor,\r\n strokeOpacity: path.strokeOpacity,\r\n strokeWeight: path.strokeWeight,\r\n visible: path.visible,\r\n zIndex: path.zIndex,\r\n });\r\n this._polygons.set(path, polygonPromise);\r\n }\r\n\r\n updatePolygon(polygon: NrPolygon): Promise {\r\n const m = this._polygons.get(polygon);\r\n if (m == null) {\r\n return Promise.resolve();\r\n }\r\n return m.then((l: google.maps.Polygon) => this._zone.run(() => { l.setPaths(polygon.paths); }));\r\n }\r\n\r\n setPolygonOptions(path: NrPolygon, options: { [propName: string]: any }): Promise {\r\n return this._polygons.get(path).then((l: google.maps.Polygon) => { l.setOptions(options); });\r\n }\r\n\r\n deletePolygon(paths: NrPolygon): Promise {\r\n const m = this._polygons.get(paths);\r\n if (m == null) {\r\n return Promise.resolve();\r\n }\r\n return m.then((l: google.maps.Polygon) => {\r\n return this._zone.run(() => {\r\n l.setMap(null);\r\n this._polygons.delete(paths);\r\n });\r\n });\r\n }\r\n\r\n getPath(polygonDirective: NrPolygon): Promise {\r\n return this._polygons.get(polygonDirective)\r\n .then((polygon) => polygon.getPath().getArray());\r\n }\r\n\r\n getPaths(polygonDirective: NrPolygon): Promise {\r\n return this._polygons.get(polygonDirective)\r\n .then((polygon) => polygon.getPaths().getArray().map((p) => p.getArray()));\r\n }\r\n\r\n createEventObservable(eventName: string, path: NrPolygon): Observable {\r\n return new Observable((observer: Observer) => {\r\n this._polygons.get(path).then((l: google.maps.Polygon) => {\r\n l.addListener(eventName, (e: T) => this._zone.run(() => observer.next(e)));\r\n });\r\n });\r\n }\r\n\r\n async createPathEventObservable(nrPolygon: NrPolygon):\r\n Promise>> {\r\n const polygon = await this._polygons.get(nrPolygon);\r\n const paths = polygon.getPaths();\r\n const pathsChanges$ = createMVCEventObservable(paths);\r\n return pathsChanges$.pipe(\r\n startWith(({ newArr: paths.getArray() } as MVCEvent>)), // in order to subscribe to them all\r\n switchMap(parentMVEvent => merge(...// rest parameter\r\n parentMVEvent.newArr.map((chMVC, index) =>\r\n createMVCEventObservable(chMVC)\r\n .pipe(map(chMVCEvent => ({ parentMVEvent, chMVCEvent, pathIndex: index })))))\r\n .pipe( // start the merged ob with an event signinifing change to parent\r\n startWith({ parentMVEvent, chMVCEvent: null, pathIndex: null }))\r\n ),\r\n skip(1), // skip the manually added event\r\n map(({ parentMVEvent, chMVCEvent, pathIndex }) => {\r\n let retVal;\r\n if (!chMVCEvent) {\r\n retVal = {\r\n newArr: parentMVEvent.newArr.map(subArr => subArr.getArray().map(latLng => latLng.toJSON())),\r\n eventName: parentMVEvent.eventName,\r\n index: parentMVEvent.index,\r\n } as MVCEvent;\r\n if (parentMVEvent.previous) {\r\n retVal.previous = parentMVEvent.previous.getArray();\r\n }\r\n } else {\r\n retVal = {\r\n newArr: parentMVEvent.newArr.map(subArr => subArr.getArray().map(latLng => latLng.toJSON())),\r\n pathIndex,\r\n eventName: chMVCEvent.eventName,\r\n index: chMVCEvent.index,\r\n } as unknown as MVCEvent;\r\n if (chMVCEvent.previous) {\r\n retVal.previous = chMVCEvent.previous;\r\n }\r\n }\r\n return retVal;\r\n }));\r\n }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\n\r\nimport { Observable, Observer } from 'rxjs';\r\n\r\nimport { NrCircle } from '../../directives/nr-circle';\r\nimport { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';\r\n\r\n@Injectable()\r\nexport class CircleManagerService {\r\n private _circles: Map> =\r\n new Map>();\r\n\r\n constructor(private _apiWrapper: GoogleMapsAPIWrapper, private _zone: NgZone) { }\r\n\r\n addCircle(circle: NrCircle) {\r\n this._circles.set(circle, this._apiWrapper.getNativeMap().then(() =>\r\n this._apiWrapper.createCircle({\r\n center: { lat: circle.latitude, lng: circle.longitude },\r\n clickable: circle.clickable,\r\n draggable: circle.draggable,\r\n editable: circle.editable,\r\n fillColor: circle.fillColor,\r\n fillOpacity: circle.fillOpacity,\r\n radius: circle.radius,\r\n strokeColor: circle.strokeColor,\r\n strokeOpacity: circle.strokeOpacity,\r\n strokePosition: google.maps.StrokePosition[circle.strokePosition],\r\n strokeWeight: circle.strokeWeight,\r\n visible: circle.visible,\r\n zIndex: circle.zIndex,\r\n }))\r\n );\r\n }\r\n\r\n /**\r\n * Removes the given circle from the map.\r\n */\r\n removeCircle(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then((c) => {\r\n c.setMap(null);\r\n this._circles.delete(circle);\r\n });\r\n }\r\n\r\n async setOptions(circle: NrCircle, options: google.maps.CircleOptions) {\r\n return this._circles.get(circle).then((c) => {\r\n const actualParam = options.strokePosition as any as keyof typeof google.maps.StrokePosition;\r\n options.strokePosition = google.maps.StrokePosition[actualParam];\r\n c.setOptions(options);\r\n });\r\n }\r\n\r\n getBounds(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then((c) => c.getBounds());\r\n }\r\n\r\n getCenter(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then((c) => c.getCenter());\r\n }\r\n\r\n getRadius(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then((c) => c.getRadius());\r\n }\r\n\r\n setCenter(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then(\r\n c => c.setCenter({ lat: circle.latitude, lng: circle.longitude }));\r\n }\r\n\r\n setEditable(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then(c => c.setEditable(circle.editable));\r\n }\r\n\r\n setDraggable(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then(c => c.setDraggable(circle.draggable));\r\n }\r\n\r\n setVisible(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then(c => c.setVisible(circle.visible));\r\n }\r\n\r\n setRadius(circle: NrCircle): Promise {\r\n return this._circles.get(circle).then(c => c.setRadius(circle.radius));\r\n }\r\n\r\n getNativeCircle(circle: NrCircle): Promise {\r\n return this._circles.get(circle);\r\n }\r\n\r\n createEventObservable(eventName: string, circle: NrCircle): Observable {\r\n return new Observable((observer: Observer) => {\r\n let listener: google.maps.MapsEventListener = null;\r\n this._circles.get(circle).then((c) => {\r\n listener = c.addListener(eventName, (e: T) => this._zone.run(() => observer.next(e)));\r\n });\r\n\r\n return () => {\r\n if (listener !== null) {\r\n listener.remove();\r\n }\r\n };\r\n });\r\n }\r\n}\r\n","import { Injectable, NgZone } from '@angular/core';\r\n\r\nimport { Observable, Subscriber } from 'rxjs';\r\n\r\nimport { NrRectangle } from '../../directives/nr-rectangle';\r\nimport { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';\r\n\r\n@Injectable()\r\nexport class RectangleManagerService {\r\n private _rectangles: Map> =\r\n new Map>();\r\n\r\n constructor(private _apiWrapper: GoogleMapsAPIWrapper, private _zone: NgZone) { }\r\n\r\n addRectangle(rectangle: NrRectangle) {\r\n this._rectangles.set(rectangle, this._apiWrapper.getNativeMap().then(() =>\r\n this._apiWrapper.createRectangle({\r\n bounds: {\r\n north: rectangle.north,\r\n east: rectangle.east,\r\n south: rectangle.south,\r\n west: rectangle.west,\r\n },\r\n clickable: rectangle.clickable,\r\n draggable: rectangle.draggable,\r\n editable: rectangle.editable,\r\n fillColor: rectangle.fillColor,\r\n fillOpacity: rectangle.fillOpacity,\r\n strokeColor: rectangle.strokeColor,\r\n strokeOpacity: rectangle.strokeOpacity,\r\n strokePosition: google.maps.StrokePosition[rectangle.strokePosition],\r\n strokeWeight: rectangle.strokeWeight,\r\n visible: rectangle.visible,\r\n zIndex: rectangle.zIndex,\r\n }))\r\n );\r\n }\r\n\r\n /**\r\n * Removes the given rectangle from the map.\r\n */\r\n removeRectangle(rectangle: NrRectangle): Promise {\r\n return this._rectangles.get(rectangle).then((r) => {\r\n r.setMap(null);\r\n this._rectangles.delete(rectangle);\r\n });\r\n }\r\n\r\n setOptions(rectangle: NrRectangle, options: google.maps.RectangleOptions): Promise {\r\n return this._rectangles.get(rectangle).then((r) => {\r\n const actualStrokePosition = options.strokePosition as any as keyof typeof google.maps.StrokePosition;\r\n options.strokePosition = google.maps.StrokePosition[actualStrokePosition];\r\n r.setOptions(options);\r\n });\r\n }\r\n\r\n getBounds(rectangle: NrRectangle): Promise {\r\n return this._rectangles.get(rectangle).then((r) => r.getBounds());\r\n }\r\n\r\n setBounds(rectangle: NrRectangle): Promise {\r\n return this._rectangles.get(rectangle).then((r) => {\r\n return r.setBounds({\r\n north: rectangle.north,\r\n east: rectangle.east,\r\n south: rectangle.south,\r\n west: rectangle.west,\r\n });\r\n });\r\n }\r\n\r\n setEditable(rectangle: NrRectangle): Promise {\r\n return this._rectangles.get(rectangle).then((r) => {\r\n return r.setEditable(rectangle.editable);\r\n });\r\n }\r\n\r\n setDraggable(rectangle: NrRectangle): Promise {\r\n return this._rectangles.get(rectangle).then((r) => {\r\n return r.setDraggable(rectangle.draggable);\r\n });\r\n }\r\n\r\n setVisible(rectangle: NrRectangle): Promise {\r\n return this._rectangles.get(rectangle).then((r) => {\r\n return r.setVisible(rectangle.visible);\r\n });\r\n }\r\n\r\n createEventObservable(eventName: string, rectangle: NrRectangle): Observable {\r\n return new Observable((subsrciber: Subscriber) => {\r\n let listener: google.maps.MapsEventListener = null;\r\n this._rectangles.get(rectangle).then((r) => {\r\n listener = r.addListener(eventName, (e: T) => this._zone.run(() => subsrciber.next(e)));\r\n });\r\n\r\n return () => {\r\n if (listener !== null) {\r\n listener.remove();\r\n }\r\n };\r\n });\r\n }\r\n}\r\n","\r\nexport enum AerialViewStateEnum {\r\n Failed = \"FAILED\",\r\n Active = \"ACTIVE\",\r\n Processing = \"PROCESSING\",\r\n Unspecified = \"STATE_UNSPECIFIED\"\r\n}\r\n\r\nexport enum AerialMetadataFormatEnum {\r\n Image = \"IMAGE\",\r\n Mp4High = \"MP4_HIGH\",\r\n Mp4Low = \"MP4_LOW\",\r\n Mp4Medium = \"MP4_MEDIUM\",\r\n Dash = \"DASH\",\r\n Hls = \"HLS\",\r\n}\r\n\r\nexport type AerialViewUri = {\r\n landscapeUri: string,\r\n portraitUri: string\r\n}\r\n\r\nexport class AerialViewMetadata {\r\n public videoId: string;\r\n public capturedDate: { year: number, month: number, day: number };\r\n public duration: string;\r\n}\r\n\r\nexport class AerialViewGetVideoResponse {\r\n public state: AerialViewStateEnum;\r\n public metadata: AerialViewMetadata;\r\n public uris: Map;\r\n}","import { HttpClient } from '@angular/common/http';\r\nimport { Injectable } from '@angular/core';\r\n\r\nimport { environment } from 'projects/test-apps/nr-maps-test/src/environments/environment';\r\nimport { AerialMetadataFormatEnum, AerialViewGetVideoResponse, AerialViewStateEnum } from '../../models/aerial-view.model';\r\n\r\nexport type AerialViewVideoSourceType = { videoId: string, videoLink: string, videoPoster: string };\r\n\r\n@Injectable()\r\nexport class AerialViewManagerService {\r\n \r\n private _aerialViewsByAddress: Map = new Map();\r\n private _aerialViewsById: Map = new Map();\r\n\r\n public get hasAerialViews(): boolean {\r\n return this._aerialViewsByAddress.size > 0 || this._aerialViewsById.size > 0;\r\n }\r\n\r\n private API_ADDRESS = \"https://aerialview.googleapis.com/v1beta\";\r\n\r\n constructor(private httpClient: HttpClient) { }\r\n\r\n /**\r\n * Check if the aerial view exists and return the video link, if any\r\n * @param address \r\n * https://developers.google.com/maps/documentation/aerial-view/reference/rest/v1beta/videos/getVideo\r\n */\r\n public getAeriaView(address: string, videoFormat: AerialMetadataFormatEnum, videoId: string = undefined): Promise {\r\n\r\n return new Promise((resolve, reject) => {\r\n \r\n if (this._aerialViewsByAddress.has(address)) {\r\n resolve(this._aerialViewsByAddress.get(address));\r\n return;\r\n }\r\n if (videoId != null && this._aerialViewsById.has(videoId)) {\r\n resolve(this._aerialViewsById.get(videoId));\r\n return;\r\n }\r\n\r\n let httpAddress = `${this.API_ADDRESS}/videos?key=${environment.googleMapsApiKey}`;\r\n if (videoId != null) {\r\n httpAddress += `&videoId=${videoId}`;\r\n } else {\r\n httpAddress += `&address=${address}`;\r\n }\r\n\r\n return this.httpClient.get(httpAddress).subscribe( {\r\n next: data => {\r\n if (data.state != AerialViewStateEnum.Active) {\r\n reject(\"The video is not ready!\");\r\n return;\r\n }\r\n const videoSource: AerialViewVideoSourceType = {\r\n videoId: data.metadata.videoId,\r\n videoLink: data.uris[videoFormat].landscapeUri,\r\n videoPoster: data.uris[AerialMetadataFormatEnum.Image].landscapeUri\r\n };\r\n\r\n this._aerialViewsByAddress.set(address, videoSource);\r\n\r\n resolve(videoSource);\r\n },\r\n error: error => {\r\n if(error.status === 404) {\r\n this.renderNewVideo(address).then(\r\n responce => { return },\r\n error => console.error(error.error.error.message)\r\n );\r\n reject(\"The video is not ready!\");\r\n return;\r\n }\r\n reject(error);\r\n }\r\n });\r\n });\r\n }\r\n\r\n public renderNewVideo(address: string): Promise {\r\n let httpAddress = `${this.API_ADDRESS}/videos:renderVideo?key=${environment.googleMapsApiKey}&address=${address}`;\r\n\r\n return new Promise((resolve, reject) => {\r\n return this.httpClient.post(httpAddress, undefined).subscribe({\r\n next: data => {\r\n resolve(data);\r\n },\r\n error: error => {\r\n reject(error);\r\n }\r\n });\r\n });\r\n }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject, from, Observable, timer } from 'rxjs';\r\nimport {\r\n flatMap,\r\n map,\r\n sample,\r\n shareReplay,\r\n switchMap,\r\n} from 'rxjs/operators';\r\nimport { MapsAPILoader } from '../services';\r\n\r\nexport interface FitBoundsDetails {\r\n latLng: google.maps.LatLng | google.maps.LatLngLiteral;\r\n}\r\n\r\n/**\r\n * @internal\r\n */\r\nexport type BoundsMap = Map;\r\n\r\n/**\r\n * Class to implement when you what to be able to make it work with the auto fit bounds feature\r\n * of AGM.\r\n */\r\nexport abstract class FitBoundsAccessor {\r\n abstract getFitBoundsDetails$(): Observable;\r\n}\r\n\r\n/**\r\n * The FitBoundsService is responsible for computing the bounds of the a single map.\r\n */\r\n@Injectable()\r\nexport class FitBoundsService {\r\n protected readonly bounds$: Observable;\r\n protected readonly _boundsChangeSampleTime$ = new BehaviorSubject(200);\r\n protected readonly _includeInBounds$ = new BehaviorSubject(new Map());\r\n\r\n constructor(loader: MapsAPILoader) {\r\n this.bounds$ = from(loader.load()).pipe(\r\n flatMap(() => this._includeInBounds$),\r\n sample(\r\n this._boundsChangeSampleTime$.pipe(switchMap(time => timer(0, time))),\r\n ),\r\n map(includeInBounds => this._generateBounds(includeInBounds)),\r\n shareReplay(1),\r\n );\r\n }\r\n\r\n private _generateBounds(\r\n includeInBounds: Map\r\n ) {\r\n const bounds = new google.maps.LatLngBounds();\r\n includeInBounds.forEach(b => bounds.extend(b));\r\n return bounds;\r\n }\r\n\r\n addToBounds(latLng: google.maps.LatLng | google.maps.LatLngLiteral) {\r\n const id = this._createIdentifier(latLng);\r\n if (this._includeInBounds$.value.has(id)) {\r\n return;\r\n }\r\n const boundsMap = this._includeInBounds$.value;\r\n boundsMap.set(id, latLng);\r\n this._includeInBounds$.next(boundsMap);\r\n }\r\n\r\n removeFromBounds(latLng: google.maps.LatLng | google.maps.LatLngLiteral) {\r\n const boundsMap = this._includeInBounds$.value;\r\n boundsMap.delete(this._createIdentifier(latLng));\r\n this._includeInBounds$.next(boundsMap);\r\n }\r\n\r\n changeFitBoundsChangeSampleTime(timeMs: number) {\r\n this._boundsChangeSampleTime$.next(timeMs);\r\n }\r\n\r\n getBounds$(): Observable {\r\n return this.bounds$;\r\n }\r\n\r\n protected _createIdentifier(latLng: google.maps.LatLng | google.maps.LatLngLiteral): string {\r\n return `${latLng.lat}+${latLng.lng}`;\r\n }\r\n}\r\n","import { Directive, Input } from \"@angular/core\";\r\n\r\nexport type ControlPosition = keyof typeof google.maps.ControlPosition;\r\n\r\n@Directive()\r\nexport abstract class NrMapControl {\r\n @Input() position: ControlPosition;\r\n abstract getOptions(): Partial;\r\n}\r\n\r\n@Directive({\r\n selector: 'nr-maps nr-maps-fullscreen-control',\r\n providers: [{ provide: NrMapControl, useExisting: NrFullscreenControl }],\r\n})\r\nexport class NrFullscreenControl extends NrMapControl {\r\n getOptions(): Partial {\r\n return {\r\n fullscreenControl: true,\r\n fullscreenControlOptions: {\r\n position: this.position && google.maps.ControlPosition[this.position],\r\n },\r\n };\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: 'nr-maps nr-maps-type-control',\r\n providers: [{ provide: NrMapControl, useExisting: NrMapTypeControl }],\r\n})\r\nexport class NrMapTypeControl extends NrMapControl {\r\n @Input() mapTypeIds: (keyof typeof google.maps.MapTypeId)[];\r\n @Input() style: keyof typeof google.maps.MapTypeControlStyle;\r\n\r\n getOptions(): Partial {\r\n return {\r\n mapTypeControl: true,\r\n mapTypeControlOptions: {\r\n position: this.position && google.maps.ControlPosition[this.position],\r\n style: this.style && google.maps.MapTypeControlStyle[this.style],\r\n mapTypeIds: this.mapTypeIds && this.mapTypeIds.map(mapTypeId => google.maps.MapTypeId[mapTypeId]),\r\n },\r\n };\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: 'nr-maps nr-maps-pan-control',\r\n providers: [{ provide: NrMapControl, useExisting: NrPanControl }],\r\n})\r\nexport class NrPanControl extends NrMapControl {\r\n getOptions(): Partial {\r\n return {\r\n panControl: true,\r\n panControlOptions: {\r\n position: this.position && google.maps.ControlPosition[this.position],\r\n },\r\n };\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: 'nr-maps nr-maps-rotate-control',\r\n providers: [{ provide: NrMapControl, useExisting: NrRotateControl }],\r\n})\r\nexport class NrRotateControl extends NrMapControl {\r\n getOptions(): Partial {\r\n return {\r\n rotateControl: true,\r\n rotateControlOptions: {\r\n position: this.position && google.maps.ControlPosition[this.position],\r\n },\r\n };\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: 'nr-maps nr-maps-scale-control',\r\n providers: [{ provide: NrMapControl, useExisting: NrScaleControl }],\r\n})\r\nexport class NrScaleControl extends NrMapControl {\r\n getOptions(): Partial {\r\n return {\r\n scaleControl: true,\r\n };\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: 'nr-maps nr-maps-street-view-control',\r\n providers: [{ provide: NrMapControl, useExisting: NrStreetViewControl }],\r\n})\r\nexport class NrStreetViewControl extends NrMapControl {\r\n getOptions(): Partial {\r\n return {\r\n streetViewControl: true,\r\n streetViewControlOptions: {\r\n position: this.position && google.maps.ControlPosition[this.position],\r\n },\r\n };\r\n }\r\n}\r\n\r\n@Directive({\r\n selector: 'nr-maps nr-maps-zoom-control',\r\n providers: [{ provide: NrMapControl, useExisting: NrZoomControl }],\r\n})\r\nexport class NrZoomControl extends NrMapControl {\r\n //@Input() style: keyof typeof google.maps.ZoomControlStyle;\r\n getOptions(): Partial {\r\n return {\r\n zoomControl: true,\r\n zoomControlOptions: {\r\n position: this.position && google.maps.ControlPosition[this.position],\r\n /* style: this.style && google.maps.ZoomControlStyle[this.style], */\r\n\r\n },\r\n };\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { bindCallback, ConnectableObservable, Observable, of, ReplaySubject, throwError } from 'rxjs';\r\nimport { map, multicast, switchMap } from 'rxjs/operators';\r\nimport { MapsAPILoader } from '../services';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NrGeocoderService {\r\n protected readonly geocoder$: Observable;\r\n\r\n constructor(loader: MapsAPILoader) {\r\n const connectableGeocoder$ = new Observable(subscriber => {\r\n loader.load().then(() => subscriber.next());\r\n })\r\n .pipe(\r\n map(() => this._createGeocoder()),\r\n multicast(new ReplaySubject(1)),\r\n ) as ConnectableObservable;\r\n\r\n connectableGeocoder$.connect(); // ignore the subscription\r\n // since we will remain subscribed till application exits\r\n\r\n this.geocoder$ = connectableGeocoder$;\r\n }\r\n\r\n public geocode(request: google.maps.GeocoderRequest): Observable {\r\n return this.geocoder$.pipe(\r\n switchMap((geocoder) => this._getGoogleResults(geocoder, request))\r\n );\r\n }\r\n\r\n private _getGoogleResults(geocoder: google.maps.Geocoder, request: google.maps.GeocoderRequest):\r\n Observable {\r\n const geocodeObservable = bindCallback(geocoder.geocode);\r\n return geocodeObservable(request).pipe(\r\n switchMap(([results, status]) => {\r\n if (status === google.maps.GeocoderStatus.OK) {\r\n return of(results);\r\n }\r\n\r\n return throwError(status);\r\n })\r\n );\r\n }\r\n\r\n private _createGeocoder() {\r\n return new google.maps.Geocoder();\r\n }\r\n}\r\n","import { AfterViewInit, Component, Input, OnDestroy, OnInit } from '@angular/core';\r\nimport { AerialViewManagerService } from '../services/managers/aerial-view-manager.service';\r\nimport { AerialMetadataFormatEnum } from '../models/aerial-view.model';\r\nimport { NrGeocoderService } from '../services/geocoder-service';\r\nimport { finalize } from 'rxjs/operators';\r\n\r\nexport enum NrAerialQualitiEnum {\r\n High,\r\n Medium,\r\n Low\r\n}\r\n\r\n@Component({\r\n selector: 'nr-mas-aerial-view',\r\n template: `\r\n \r\n `,\r\n styles: [\r\n `\r\n \r\n `\r\n ]\r\n})\r\nexport class NrAerialView implements OnInit, AfterViewInit, OnDestroy {\r\n \r\n @Input() latitude: number;\r\n @Input() longitude: number;\r\n @Input() quality: NrAerialQualitiEnum = NrAerialQualitiEnum.Medium;\r\n @Input() loop = false;\r\n\r\n public videoImage: string;\r\n public videoSource: string;\r\n\r\n constructor(private aerialViewManager: AerialViewManagerService,\r\n private geocoderService: NrGeocoderService) { }\r\n\r\n ngOnInit() { }\r\n\r\n ngAfterViewInit() {\r\n\r\n const latLng: google.maps.LatLngLiteral = { lat: this.latitude, lng: this.longitude };\r\n const sub = this.geocoderService.geocode({ location: latLng }).pipe(\r\n finalize(() => sub.unsubscribe())\r\n )\r\n .subscribe(geocodedAddress => {\r\n if(geocodedAddress == null || geocodedAddress.length === 0) return;\r\n const address = geocodedAddress[0].formatted_address;\r\n\r\n let videoFormat = AerialMetadataFormatEnum.Mp4High;\r\n switch(this.quality) {\r\n case NrAerialQualitiEnum.Medium:\r\n videoFormat = AerialMetadataFormatEnum.Mp4Medium;\r\n break;\r\n case NrAerialQualitiEnum.Low:\r\n videoFormat = AerialMetadataFormatEnum.Mp4Low;\r\n break;\r\n case NrAerialQualitiEnum.High:\r\n default:\r\n videoFormat = AerialMetadataFormatEnum.Mp4High;\r\n break;\r\n }\r\n\r\n this.aerialViewManager.getAeriaView(address, videoFormat)\r\n .then(\r\n videoSource => {\r\n this.videoSource = videoSource.videoLink;\r\n this.videoImage = videoSource.videoPoster;\r\n }, \r\n error => console.error(error)\r\n );\r\n }); \r\n }\r\n\r\n ngOnDestroy() { }\r\n\r\n}\r\n","import { \r\n AfterViewInit, \r\n Component, \r\n ContentChildren, \r\n ElementRef, \r\n EventEmitter, \r\n Input, \r\n NgZone, \r\n OnInit, \r\n Output, \r\n QueryList, \r\n SimpleChanges, \r\n ViewChild\r\n} from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\n\r\nimport { GoogleMapsAPIWrapper } from '../services/google-maps-api-wrapper';\r\nimport { FitBoundsService } from '../services/fit-bounds.service';\r\nimport { \r\n InfoWindowManagerService, \r\n MarkerManagerService, \r\n PolylineManagerService, \r\n PolygonManagerService, \r\n CircleManagerService, \r\n RectangleManagerService,\r\n AerialViewManagerService,\r\n //RouteManagerService,\r\n} from '../services';\r\nimport { NrMapControl } from './nr-map-controls';\r\nimport { NrAerialView } from './nr-aerial-view';\r\n\r\n@Component({\r\n selector: 'nr-maps',\r\n providers: [\r\n GoogleMapsAPIWrapper,\r\n MarkerManagerService,\r\n InfoWindowManagerService,\r\n PolylineManagerService,\r\n //RouteManagerService,\r\n FitBoundsService,\r\n PolygonManagerService,\r\n CircleManagerService,\r\n RectangleManagerService,\r\n AerialViewManagerService\r\n /* ,\r\n DataLayerManager,\r\n KmlLayerManager,\r\n LayerManager,\r\n , */\r\n ],\r\n template: `\r\n
\r\n
\r\n \r\n
\r\n `,\r\n styles: [\r\n `\r\n .nr-map-container-inner {\r\n width: inherit;\r\n height: inherit;\r\n }\r\n .nr-map-content {\r\n display:none;\r\n }\r\n\r\n nr-mas-aerial-view{\r\n display: block;\r\n width: 100%;\r\n }\r\n `\r\n ],\r\n})\r\nexport class NrMaps implements OnInit, AfterViewInit {\r\n /**\r\n * The longitude that defines the center of the map.\r\n */\r\n @Input() longitude = 0;\r\n \r\n /**\r\n * The latitude that defines the center of the map.\r\n */\r\n @Input() latitude = 0;\r\n \r\n /**\r\n * The zoom level of the map. The default zoom level is 8.\r\n */\r\n @Input() zoom = 8;\r\n\r\n /**\r\n * The minimal zoom level of the map allowed. When not provided, no restrictions to the zoom level\r\n * are enforced.\r\n */\r\n @Input() minZoom?: number;\r\n\r\n /**\r\n * The maximal zoom level of the map allowed. When not provided, no restrictions to the zoom level\r\n * are enforced.\r\n */\r\n @Input() maxZoom?: number;\r\n\r\n /**\r\n * The control size for the default map controls. Only governs the controls made by the Maps API itself\r\n */\r\n @Input() controlSize?: number;\r\n\r\n /**\r\n * Enables/disables if map is draggable.\r\n */\r\n // tslint:disable-next-line:no-input-rename\r\n @Input('mapDraggable') draggable = true;\r\n\r\n /**\r\n * Enables/disables zoom and center on double click. Enabled by default.\r\n */\r\n @Input() disableDoubleClickZoom = false;\r\n\r\n /**\r\n * Enables/disables all default UI of the Google map. Please note: When the map is created, this\r\n * value cannot get updated.\r\n */\r\n @Input() disableDefaultUI = false;\r\n\r\n /**\r\n * If false, disables scrollwheel zooming on the map. The scrollwheel is enabled by default.\r\n */\r\n @Input() scrollwheel = true;\r\n\r\n /**\r\n * Color used for the background of the Map div. This color will be visible when tiles have not\r\n * yet loaded as the user pans. This option can only be set when the map is initialized.\r\n */\r\n @Input() backgroundColor?: string;\r\n\r\n /**\r\n * The name or url of the cursor to display when mousing over a draggable map. This property uses\r\n * the css * cursor attribute to change the icon. As with the css property, you must specify at\r\n * least one fallback cursor that is not a URL. For example:\r\n * [draggableCursor]=\"'url(http://www.example.com/icon.png), auto;'\"\r\n */\r\n @Input() draggableCursor?: string;\r\n\r\n /**\r\n * The name or url of the cursor to display when the map is being dragged. This property uses the\r\n * css cursor attribute to change the icon. As with the css property, you must specify at least\r\n * one fallback cursor that is not a URL. For example:\r\n * [draggingCursor]=\"'url(http://www.example.com/icon.png), auto;'\"\r\n */\r\n @Input() draggingCursor?: string;\r\n\r\n /**\r\n * If false, prevents the map from being controlled by the keyboard. Keyboard shortcuts are\r\n * enabled by default.\r\n */\r\n @Input() keyboardShortcuts = true;\r\n\r\n /**\r\n * Styles to apply to each of the default map types. Note that for Satellite/Hybrid and Terrain\r\n * modes, these styles will only apply to labels and geometry.\r\n */\r\n @Input() styles: google.maps.MapTypeStyle[] = [];\r\n\r\n /**\r\n * When true and the latitude and/or longitude values changes, the Google Maps panTo method is\r\n * used to\r\n * center the map. See: https://developers.google.com/maps/documentation/javascript/reference#Map\r\n */\r\n @Input() usePanning = false;\r\n\r\n /**\r\n * Sets the viewport to contain the given bounds.\r\n * If this option to `true`, the bounds get automatically computed from all elements that use the {@link NrFitBounds} directive.\r\n */\r\n @Input() fitBounds:\r\n | google.maps.LatLngBoundsLiteral\r\n | google.maps.LatLngBounds\r\n | boolean = false;\r\n\r\n /**\r\n * Padding amount for the bounds.\r\n */\r\n @Input() fitBoundsPadding?: number | google.maps.Padding;\r\n\r\n /**\r\n * The map mapTypeId. Defaults to 'roadmap'.\r\n */\r\n @Input() mapTypeId: keyof typeof google.maps.MapTypeId = 'ROADMAP';\r\n\r\n /**\r\n * When false, map icons are not clickable. A map icon represents a point of interest,\r\n * also known as a POI. By default map icons are clickable.\r\n */\r\n @Input() clickableIcons = true;\r\n\r\n /**\r\n * A map icon represents a point of interest, also known as a POI.\r\n * When map icons are clickable by default, an info window is displayed.\r\n * When this property is set to false, the info window will not be shown but the click event\r\n * will still fire\r\n */\r\n @Input() showDefaultInfoWindow = false;\r\n\r\n /**\r\n * This setting controls how gestures on the map are handled.\r\n * Allowed values:\r\n * - 'cooperative' (Two-finger touch gestures pan and zoom the map. One-finger touch gestures are not handled by the map.)\r\n * - 'greedy' (All touch gestures pan or zoom the map.)\r\n * - 'none' (The map cannot be panned or zoomed by user gestures.)\r\n * - 'auto' [default] (Gesture handling is either cooperative or greedy, depending on whether the page is scrollable or not.\r\n */\r\n //@Input() gestureHandling: google.maps.GestureHandlingOptions = 'auto';\r\n\r\n /**\r\n * Controls the automatic switching behavior for the angle of incidence of\r\n * the map. The only allowed values are 0 and 45. The value 0 causes the map\r\n * to always use a 0° overhead view regardless of the zoom level and\r\n * viewport. The value 45 causes the tilt angle to automatically switch to\r\n * 45 whenever 45° imagery is available for the current zoom level and\r\n * viewport, and switch back to 0 whenever 45° imagery is not available\r\n * (this is the default behavior). 45° imagery is only available for\r\n * satellite and hybrid map types, within some locations, and at some zoom\r\n * levels. Note: getTilt returns the current tilt angle, not the value\r\n * specified by this option. Because getTilt and this option refer to\r\n * different things, do not bind() the tilt property; doing so may yield\r\n * unpredictable effects. Enable it with value 45.)\r\n */\r\n @Input() tilt = 0;\r\n @Input() heading = 0;\r\n\r\n /**\r\n * Used for set the map style choosen from the Google maps platform cloud\r\n */\r\n @Input() mapId: string | null = null;\r\n \r\n /**\r\n * Options for restricting the bounds of the map.\r\n * User cannot pan or zoom away from restricted area.\r\n */\r\n @Input() restriction?: google.maps.MapRestriction;\r\n\r\n\r\n @Input() overlayView? = false;\r\n\r\n @Input() autoCenterMap = false;\r\n @Input() autoCenterMapTimeout = 2000;\r\n \r\n @ContentChildren(NrAerialView) private aerialView: NrAerialView;\r\n public get hasAerialView(): boolean {\r\n return this.aerialView != null && this._aerialManagerService.hasAerialViews;\r\n }\r\n\r\n /**\r\n * Map option attributes that can change over time\r\n */\r\n private static _mapOptionsAttributes: string[] = [\r\n 'disableDoubleClickZoom',\r\n 'scrollwheel',\r\n 'draggable',\r\n 'draggableCursor',\r\n 'draggingCursor',\r\n 'keyboardShortcuts',\r\n 'styles',\r\n 'zoom',\r\n 'minZoom',\r\n 'maxZoom',\r\n 'mapTypeId',\r\n 'clickableIcons',\r\n 'gestureHandling',\r\n 'tilt',\r\n 'restriction',\r\n ];\r\n\r\n private _observableSubscriptions: Subscription[] = [];\r\n private _fitBoundsSubscription: Subscription;\r\n\r\n /**\r\n * This event emitter gets emitted when the user clicks on the map (but not when they click on a\r\n * marker or infoWindow).\r\n */\r\n // tslint:disable-next-line: max-line-length\r\n @Output() mapClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event emitter gets emitted when the user right-clicks on the map (but not when they click\r\n * on a marker or infoWindow).\r\n */\r\n @Output() mapRightClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event emitter gets emitted when the user double-clicks on the map (but not when they click\r\n * on a marker or infoWindow).\r\n */\r\n @Output() mapDblClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event emitter is fired when the map center changes.\r\n */\r\n @Output() centerChange: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the viewport bounds have changed.\r\n */\r\n @Output() boundsChange: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the mapTypeId property changes.\r\n */\r\n @Output() mapTypeIdChange: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the map becomes idle after panning or zooming.\r\n */\r\n @Output() idle: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the zoom level has changed.\r\n */\r\n @Output() zoomChange: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the google map is fully initialized.\r\n * You get the google.maps.Map instance as a result of this EventEmitter.\r\n */\r\n @Output() mapReady: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the visible tiles have finished loading.\r\n */\r\n @Output() tilesLoaded: EventEmitter = new EventEmitter();\r\n\r\n @ContentChildren(NrMapControl) mapControls: QueryList;\r\n\r\n constructor(\r\n private _zone: NgZone,\r\n private _elem: ElementRef,\r\n private _mapsWrapper: GoogleMapsAPIWrapper,\r\n protected _fitBoundsService: FitBoundsService,\r\n private _aerialManagerService: AerialViewManagerService\r\n ) { }\r\n\r\n ngOnInit(): void { }\r\n\r\n ngAfterViewInit(): void {\r\n const container = this._elem.nativeElement.querySelector(\r\n '.nr-map-container-inner'\r\n );\r\n this._initMapInstance(container);\r\n }\r\n\r\n private _initMapInstance(el: HTMLElement) {\r\n\r\n const center = { lat: this.latitude || 0, lng: this.longitude || 0};\r\n\r\n const mapOptions: google.maps.MapOptions = {\r\n mapId: this.mapId,\r\n center: center,\r\n zoom: this.zoom,\r\n minZoom: this.minZoom,\r\n maxZoom: this.maxZoom,\r\n controlSize: this.controlSize,\r\n disableDefaultUI: this.disableDefaultUI,\r\n disableDoubleClickZoom: this.disableDoubleClickZoom,\r\n scrollwheel: this.scrollwheel,\r\n backgroundColor: this.backgroundColor,\r\n draggable: this.draggable,\r\n draggableCursor: this.draggableCursor,\r\n draggingCursor: this.draggingCursor,\r\n keyboardShortcuts: this.keyboardShortcuts,\r\n mapTypeId: this.mapTypeId.toLocaleLowerCase(),\r\n clickableIcons: this.clickableIcons,\r\n tilt: this.tilt,\r\n heading: this.heading,\r\n restriction: this.restriction,\r\n };\r\n if (this.mapId == null) {\r\n mapOptions.styles = this.styles;\r\n }\r\n\r\n this._mapsWrapper\r\n .createMap(el, mapOptions)\r\n .then(() => this._mapsWrapper.getNativeMap())\r\n .then((map) => {\r\n this.mapReady.emit(map);\r\n });\r\n\r\n // Auto-center map management\r\n this.originalCenter = center;\r\n\r\n // register event listeners\r\n this._handleMapCenterChange();\r\n this._handleMapZoomChange();\r\n this._handleMapMouseEvents();\r\n this._handleBoundsChange();\r\n this._handleMapTypeIdChange();\r\n this._handleTilesLoadedEvent();\r\n this._handleIdleEvent();\r\n this._handleControlChange(); \r\n }\r\n\r\n private _handleMapTypeIdChange() {\r\n const s = this._mapsWrapper.subscribeToMapEvent('maptypeid_changed').subscribe(() => {\r\n this._mapsWrapper.getMapTypeId().then(\r\n (mapTypeId: google.maps.MapTypeId) => { this.mapTypeIdChange.emit(mapTypeId); });\r\n });\r\n this._observableSubscriptions.push(s);\r\n }\r\n\r\n private _handleMapCenterChange() {\r\n const s = this._mapsWrapper.subscribeToMapEvent('center_changed').subscribe(() => {\r\n this._mapsWrapper.getCenter().then((center: google.maps.LatLng) => {\r\n this.latitude = center.lat();\r\n this.longitude = center.lng();\r\n this.centerChange.emit({ lat: this.latitude, lng: this.longitude } as google.maps.LatLngLiteral);\r\n\r\n this._autoCenterMap();\r\n });\r\n });\r\n this._observableSubscriptions.push(s);\r\n }\r\n\r\n private _handleBoundsChange() {\r\n const s = this._mapsWrapper.subscribeToMapEvent('bounds_changed').subscribe(() => {\r\n this._mapsWrapper.getBounds().then(\r\n (bounds: google.maps.LatLngBounds) => { this.boundsChange.emit(bounds); });\r\n });\r\n this._observableSubscriptions.push(s);\r\n }\r\n\r\n private _handleMapZoomChange() {\r\n const s = this._mapsWrapper.subscribeToMapEvent('zoom_changed').subscribe(() => {\r\n this._mapsWrapper.getZoom().then((z: number) => {\r\n this.zoom = z;\r\n this.zoomChange.emit(z);\r\n });\r\n });\r\n this._observableSubscriptions.push(s);\r\n }\r\n\r\n private _handleMapMouseEvents() {\r\n\r\n const click = this._mapsWrapper.subscribeToMapEvent('click').subscribe((event) => {\r\n // the placeId will be undefined in case the event was not an IconMouseEvent (google types)\r\n if ((event as google.maps.IconMouseEvent).placeId && !this.showDefaultInfoWindow) {\r\n event.stop();\r\n }\r\n this.mapClick.emit(event);\r\n });\r\n this._observableSubscriptions.push(click);\r\n\r\n const dblClick = this._mapsWrapper.subscribeToMapEvent('dblclick').subscribe((event) => {\r\n // the placeId will be undefined in case the event was not an IconMouseEvent (google types)\r\n if ((event as google.maps.IconMouseEvent).placeId && !this.showDefaultInfoWindow) {\r\n event.stop();\r\n }\r\n this.mapDblClick.emit(event);\r\n });\r\n this._observableSubscriptions.push(dblClick);\r\n\r\n const rightClick = this._mapsWrapper.subscribeToMapEvent('rightclick').subscribe((event) => {\r\n // the placeId will be undefined in case the event was not an IconMouseEvent (google types)\r\n if ((event as google.maps.IconMouseEvent).placeId && !this.showDefaultInfoWindow) {\r\n event.stop();\r\n }\r\n this.mapRightClick.emit(event);\r\n });\r\n this._observableSubscriptions.push(rightClick);\r\n }\r\n\r\n private _handleTilesLoadedEvent() {\r\n const s = this._mapsWrapper.subscribeToMapEvent('tilesloaded').subscribe(\r\n () => this.tilesLoaded.emit(void 0),\r\n );\r\n this._observableSubscriptions.push(s);\r\n }\r\n\r\n private _handleIdleEvent() {\r\n const s = this._mapsWrapper.subscribeToMapEvent('idle').subscribe(\r\n () => { this.idle.emit(void 0); });\r\n this._observableSubscriptions.push(s);\r\n }\r\n\r\n private _handleControlChange() {\r\n this._setControls();\r\n this.mapControls.changes.subscribe(() => this._setControls());\r\n }\r\n\r\n private _setControls() {\r\n const controlOptions: Partial = {\r\n fullscreenControl: !this.disableDefaultUI,\r\n mapTypeControl: false,\r\n panControl: false,\r\n rotateControl: false,\r\n scaleControl: false,\r\n streetViewControl: !this.disableDefaultUI,\r\n zoomControl: !this.disableDefaultUI,\r\n };\r\n this.mapControls.forEach(control => Object.assign(controlOptions, control.getOptions()));\r\n this._mapsWrapper.setMapOptions(controlOptions);\r\n }\r\n\r\n /* @internal */\r\n public ngOnChanges(changes: SimpleChanges) {\r\n this._updateMapOptionsChanges(changes);\r\n this._updatePosition(changes);\r\n }\r\n \r\n private _updateMapOptionsChanges(changes: SimpleChanges) {\r\n const options: { [propName: string]: any } = {};\r\n const optionKeys =\r\n Object.keys(changes).filter(k => NrMaps._mapOptionsAttributes.indexOf(k) !== -1);\r\n optionKeys.forEach((k) => { options[k] = changes[k].currentValue; });\r\n this._mapsWrapper.setMapOptions(options);\r\n }\r\n\r\n /**\r\n * Triggers a resize event on the google map instance.\r\n * When recenter is true, the of the google map gets called with the current lat/lng values or fitBounds value to recenter the map.\r\n * Returns a promise that gets resolved after the event was triggered.\r\n */\r\n triggerResize(recenter: boolean = true): Promise {\r\n // Note: When we would trigger the resize event and show the map in the same turn (which is a\r\n // common case for triggering a resize event), then the resize event would not\r\n // work (to show the map), so we trigger the event in a timeout.\r\n return new Promise((resolve) => {\r\n setTimeout(() => {\r\n return this._mapsWrapper.triggerMapEvent('resize').then(() => {\r\n if (recenter) {\r\n this.fitBounds != null ? this._fitBounds() : this._setCenter();\r\n }\r\n resolve();\r\n });\r\n });\r\n });\r\n }\r\n\r\n private _updatePosition(changes: SimpleChanges) {\r\n // tslint:disable: no-string-literal\r\n if (changes['latitude'] == null && changes['longitude'] == null &&\r\n !changes['fitBounds']) {\r\n // no position update needed\r\n return;\r\n }\r\n // tslint:enable: no-string-literal\r\n\r\n // we prefer fitBounds in changes\r\n if ('fitBounds' in changes) {\r\n this._fitBounds();\r\n return;\r\n }\r\n\r\n if (typeof this.latitude !== 'number' || typeof this.longitude !== 'number') {\r\n return;\r\n }\r\n this._setCenter();\r\n }\r\n\r\n private _setCenter() {\r\n const newCenter = {\r\n lat: this.latitude,\r\n lng: this.longitude,\r\n };\r\n if (this.usePanning) {\r\n this._mapsWrapper.panTo(newCenter);\r\n } else {\r\n this._mapsWrapper.setCenter(newCenter);\r\n }\r\n }\r\n\r\n private _fitBounds() {\r\n switch (this.fitBounds) {\r\n case true:\r\n this._subscribeToFitBoundsUpdates();\r\n break;\r\n case false:\r\n if (this._fitBoundsSubscription) {\r\n this._fitBoundsSubscription.unsubscribe();\r\n }\r\n break;\r\n default:\r\n if (this._fitBoundsSubscription) {\r\n this._fitBoundsSubscription.unsubscribe();\r\n }\r\n this._updateBounds(this.fitBounds, this.fitBoundsPadding);\r\n }\r\n }\r\n\r\n private _subscribeToFitBoundsUpdates() {\r\n this._zone.runOutsideAngular(() => {\r\n this._fitBoundsSubscription = this._fitBoundsService.getBounds$().subscribe(b => {\r\n this._zone.run(() => this._updateBounds(b, this.fitBoundsPadding));\r\n });\r\n });\r\n }\r\n\r\n protected _updateBounds(bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral, padding?: number | google.maps.Padding) {\r\n if (!bounds) {\r\n return;\r\n }\r\n if (this._isLatLngBoundsLiteral(bounds) && typeof google !== 'undefined' && google && google.maps && google.maps.LatLngBounds) {\r\n const newBounds = new google.maps.LatLngBounds();\r\n newBounds.union(bounds);\r\n bounds = newBounds;\r\n }\r\n if (this.usePanning) {\r\n this._mapsWrapper.panToBounds(bounds, padding);\r\n return;\r\n }\r\n this._mapsWrapper.fitBounds(bounds, padding);\r\n }\r\n\r\n private _isLatLngBoundsLiteral(bounds: google.maps.LatLngBounds | google.maps.LatLngBoundsLiteral): boolean {\r\n return bounds != null && (bounds as any).extend === undefined;\r\n }\r\n\r\n /** @internal */\r\n public ngOnDestroy() {\r\n // unsubscribe all registered observable subscriptions\r\n this._observableSubscriptions.forEach((s) => s.unsubscribe());\r\n\r\n // remove all listeners from the map instance\r\n this._mapsWrapper.clearInstanceListeners();\r\n if (this._fitBoundsSubscription) {\r\n this._fitBoundsSubscription.unsubscribe();\r\n }\r\n }\r\n\r\n private originalCenter: google.maps.LatLngLiteral = { lat: 0, lng: 0 };\r\n private moveCenterTimer: any;\r\n private _autoCenterMap() {\r\n if (!this.autoCenterMap) return;\r\n\r\n if (this.moveCenterTimer != null) {\r\n clearTimeout(this.moveCenterTimer);\r\n }\r\n this.moveCenterTimer = setTimeout(() => {\r\n if (this.usePanning) {\r\n this._mapsWrapper.panTo(this.originalCenter);\r\n } else {\r\n this._mapsWrapper.setCenter(this.originalCenter);\r\n }\r\n }, this.autoCenterMapTimeout); \r\n }\r\n\r\n\r\n\r\n\r\n}\r\n","import { Component, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChange } from '@angular/core';\r\n\r\nimport { NrMarker } from './nr-marker';\r\nimport { InfoWindowManagerService } from '../services/managers/info-window-manager.service';\r\n\r\nlet infoWindowId = 0;\r\n\r\n@Component({\r\n selector: 'nr-maps-info-window',\r\n template: `\r\n
\r\n \r\n
\r\n `,\r\n styles: [``],\r\n})\r\nexport class NrInfoWindow implements OnDestroy, OnChanges, OnInit {\r\n /**\r\n * The latitude position of the info window (only usefull if you use it ouside of a {@link\r\n * AgmMarker}).\r\n */\r\n @Input() latitude: number;\r\n\r\n /**\r\n * The longitude position of the info window (only usefull if you use it ouside of a {@link\r\n * AgmMarker}).\r\n */\r\n @Input() longitude: number;\r\n\r\n /**\r\n * Disable auto-pan on open. By default, the info window will pan the map so that it is fully\r\n * visible when it opens.\r\n */\r\n @Input() disableAutoPan: boolean;\r\n\r\n /**\r\n * All InfoWindows are displayed on the map in order of their zIndex, with higher values\r\n * displaying in front of InfoWindows with lower values. By default, InfoWindows are displayed\r\n * according to their latitude, with InfoWindows of lower latitudes appearing in front of\r\n * InfoWindows at higher latitudes. InfoWindows are always displayed in front of markers.\r\n */\r\n @Input() zIndex: number;\r\n\r\n /**\r\n * Maximum width of the infowindow, regardless of content's width. This value is only considered\r\n * if it is set before a call to open. To change the maximum width when changing content, call\r\n * close, update maxWidth, and then open.\r\n */\r\n @Input() maxWidth: number;\r\n\r\n /**\r\n * Holds the marker that is the host of the info window (if available)\r\n */\r\n hostMarker: NrMarker;\r\n\r\n /**\r\n * Holds the native element that is used for the info window content.\r\n */\r\n content: null | string | Element | Text;\r\n\r\n /**\r\n * Sets the open state for the InfoWindow. You can also call the open() and close() methods.\r\n */\r\n @Input() isOpen = false;\r\n\r\n /**\r\n * Emits an event when the info window is closed.\r\n */\r\n @Output() infoWindowClose: EventEmitter = new EventEmitter();\r\n\r\n private static _infoWindowOptionsInputs: string[] = ['disableAutoPan', 'maxWidth'];\r\n private _infoWindowAddedToManager = false;\r\n private _id: string = (infoWindowId++).toString();\r\n\r\n constructor(private _infoWindowManager: InfoWindowManagerService, private _el: ElementRef) { }\r\n\r\n ngOnInit() {\r\n this.content = this._el.nativeElement.querySelector('.nr-maps-info-window-content');\r\n this._infoWindowManager.addInfoWindow(this);\r\n this._infoWindowAddedToManager = true;\r\n this._updateOpenState();\r\n this._registerEventListeners();\r\n }\r\n\r\n /** @internal */\r\n ngOnChanges(changes: { [key: string]: SimpleChange }) {\r\n if (!this._infoWindowAddedToManager) {\r\n return;\r\n }\r\n // tslint:disable: no-string-literal\r\n if ((changes['latitude'] || changes['longitude']) && typeof this.latitude === 'number' &&\r\n typeof this.longitude === 'number') {\r\n this._infoWindowManager.setPosition(this);\r\n }\r\n if (changes['zIndex']) {\r\n this._infoWindowManager.setZIndex(this);\r\n }\r\n if (changes['isOpen']) {\r\n this._updateOpenState();\r\n }\r\n this._setInfoWindowOptions(changes);\r\n }\r\n // tslint:enable: no-string-literal\r\n\r\n private _registerEventListeners() {\r\n this._infoWindowManager.createEventObservable('closeclick', this).subscribe(() => {\r\n this.isOpen = false;\r\n this.infoWindowClose.emit();\r\n });\r\n }\r\n\r\n private _updateOpenState() {\r\n this.isOpen ? this.open() : this.close();\r\n }\r\n\r\n private _setInfoWindowOptions(changes: { [key: string]: SimpleChange }) {\r\n const options: { [propName: string]: any } = {};\r\n const optionKeys = Object.keys(changes).filter(k => NrInfoWindow._infoWindowOptionsInputs.indexOf(k) !== -1);\r\n optionKeys.forEach((k) => { options[k] = changes[k].currentValue; });\r\n this._infoWindowManager.setOptions(this, options);\r\n }\r\n\r\n /**\r\n * Opens the info window.\r\n */\r\n open(): Promise { return this._infoWindowManager.open(this); }\r\n\r\n /**\r\n * Closes the info window.\r\n */\r\n close(): Promise {\r\n return this._infoWindowManager.close(this).then(() => { this.infoWindowClose.emit(); });\r\n }\r\n\r\n /** @internal */\r\n id(): string { return this._id; }\r\n\r\n /** @internal */\r\n toString(): string { return 'NrMapsInfoWindow-' + this._id.toString(); }\r\n\r\n /** @internal */\r\n ngOnDestroy() { this._infoWindowManager.deleteInfoWindow(this); }\r\n}\r\n","import { AfterContentInit, Component, ContentChildren, Directive, ElementRef, EventEmitter, Input, NgZone, OnChanges, OnDestroy, OnInit, Output, QueryList, SimpleChange, SimpleChanges, forwardRef } from '@angular/core';\r\nimport { Observable, ReplaySubject, Subscription } from 'rxjs';\r\n\r\nimport { MarkerManagerService } from '../services/managers/marker-manager.service';\r\nimport { NrInfoWindow } from './nr-info-window';\r\nimport { FitBoundsAccessor, FitBoundsDetails } from '../services/fit-bounds.service';\r\nimport { GoogleMapsAPIWrapper } from '../services';\r\n\r\nlet markerId = 0;\r\n\r\nexport type NrMapsMarkerIcon = string | google.maps.Icon | google.maps.Symbol;\r\n@Component({\r\n selector: 'nr-maps-marker',\r\n template: `\r\n
{{this.label}}\r\n \r\n
\r\n `,\r\n styles: [`\r\n @keyframes drop {\r\n 0% {\r\n transform: translateY(-200px) scaleY(0.9);\r\n opacity: 0;\r\n }\r\n 5% {\r\n opacity: 0.7;\r\n }\r\n 50% {\r\n transform: translateY(0px) scaleY(1);\r\n opacity: 1;\r\n }\r\n 65% {\r\n transform: translateY(-17px) scaleY(0.9);\r\n opacity: 1;\r\n }\r\n 75% {\r\n transform: translateY(-22px) scaleY(0.9);\r\n opacity: 1;\r\n }\r\n 100% {\r\n transform: translateY(0px) scaleY(1);\r\n opacity: 1;\r\n }\r\n}\r\n.drop {\r\n animation: drop .3s linear forwards;\r\n}`],\r\n providers: [\r\n { provide: FitBoundsAccessor, useExisting: forwardRef(() => NrMarker) },\r\n ],\r\n})\r\nexport class NrMarker implements OnDestroy, OnChanges, AfterContentInit{\r\n /**\r\n * The latitude position of the marker.\r\n */\r\n @Input() latitude: number;\r\n\r\n /**\r\n * The longitude position of the marker.\r\n */\r\n @Input() longitude: number;\r\n\r\n /**\r\n * The title of the marker.\r\n */\r\n @Input() title: string = \"\";\r\n\r\n /**\r\n * The label (a single uppercase character) for the marker.\r\n */\r\n @Input() label: string | google.maps.MarkerLabel;\r\n\r\n /**\r\n * If true, the marker can be dragged. Default value is false.\r\n */\r\n // tslint:disable-next-line:no-input-rename\r\n @Input('markerDraggable') draggable = false;\r\n\r\n /**\r\n * Icon (the URL of the image) for the foreground.\r\n */\r\n @Input() iconUrl: NrMapsMarkerIcon;\r\n\r\n public getIconUrl(){\r\n if(!this.iconUrl){\r\n console.warn(\"iconUrl of marker not defined\");\r\n return null;\r\n }\r\n else if(typeof this.iconUrl == 'string'){\r\n return this.iconUrl;\r\n }\r\n else if(\"url\" in this.iconUrl){\r\n return this.iconUrl.url;\r\n }\r\n else if(\"path\" in this.iconUrl){\r\n return this.iconUrl.path;\r\n }\r\n else{\r\n return this.iconUrl;\r\n }\r\n }\r\n /**\r\n * If true, the marker is visible\r\n */\r\n @Input() visible = true;\r\n\r\n /**\r\n * Whether to automatically open the child info window when the marker is clicked.\r\n */\r\n @Input() openInfoWindow = true;\r\n\r\n /**\r\n * The marker's opacity between 0.0 and 1.0.\r\n */\r\n @Input() opacity = 1;\r\n\r\n /**\r\n * All markers are displayed on the map in order of their zIndex, with higher values displaying in\r\n * front of markers with lower values. By default, markers are displayed according to their\r\n * vertical position on screen, with lower markers appearing in front of markers further up the\r\n * screen.\r\n */\r\n @Input() zIndex = 1;\r\n\r\n /**\r\n * If true, the marker can be clicked. Default value is true.\r\n */\r\n // tslint:disable-next-line:no-input-rename\r\n @Input('markerClickable') clickable = true;\r\n\r\n /**\r\n * Which animation to play when marker is added to a map.\r\n */\r\n @Input() animation: string;\r\n\r\n /**\r\n * This event is fired when the marker's animation property changes.\r\n */\r\n @Output() animationChange = new EventEmitter();\r\n\r\n /**\r\n * This event emitter gets emitted when the user clicks on the marker.\r\n */\r\n @Output() markerClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event emitter gets emitted when the user clicks twice on the marker.\r\n */\r\n @Output() markerDblClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the user rightclicks on the marker.\r\n */\r\n @Output() markerRightClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the user starts dragging the marker.\r\n */\r\n @Output() dragStart: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is repeatedly fired while the user drags the marker.\r\n */\r\n // tslint:disable-next-line: no-output-native\r\n @Output() drag: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the user stops dragging the marker.\r\n */\r\n @Output() dragEnd: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the user mouses over the marker.\r\n */\r\n @Output() mouseOver: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the user mouses outside the marker.\r\n */\r\n @Output() mouseOut: EventEmitter = new EventEmitter();\r\n\r\n /** @internal */\r\n @ContentChildren(NrInfoWindow) infoWindow: QueryList = new QueryList();\r\n\r\n private _markerAddedToManger = false;\r\n private _id: string;\r\n private _observableSubscriptions: Subscription[] = [];\r\n advancedMarker: google.maps.marker.AdvancedMarkerElement;\r\n\r\n protected readonly _fitBoundsDetails$: ReplaySubject = new ReplaySubject(1);\r\n\r\n constructor(private _markerManager: MarkerManagerService, public element: ElementRef, private _ngZone:NgZone, private wrapper :GoogleMapsAPIWrapper) { this._id = (markerId++).toString(); }\r\n \r\n/* @internal */\r\n ngAfterContentInit() { \r\n this.handleInfoWindowUpdate();\r\n this.infoWindow.changes.subscribe(() => this.handleInfoWindowUpdate());\r\n }\r\n\r\n private handleInfoWindowUpdate() {\r\n if (this.infoWindow.length > 1) {\r\n throw new Error('Expected no more than one info window.');\r\n }\r\n this.infoWindow.forEach(marker => {\r\n marker.hostMarker = this;\r\n });\r\n }\r\n\r\n/** @internal */\r\n ngOnChanges(changes: { [key: string]: SimpleChange }) {\r\n if (typeof this.latitude === 'string') {\r\n this.latitude = Number(this.latitude);\r\n }\r\n if (typeof this.longitude === 'string') {\r\n this.longitude = Number(this.longitude);\r\n }\r\n if (typeof this.latitude !== 'number' || typeof this.longitude !== 'number') {\r\n return;\r\n }\r\n if (!this._markerAddedToManger) {\r\n this._markerManager.addMarker(this);\r\n this._updateFitBoundsDetails();\r\n this._markerAddedToManger = true;\r\n this._addEventListeners();\r\n return;\r\n }\r\n \r\n if (changes['latitude'] || changes['longitude']) {\r\n this._markerManager.updateMarkerPosition(this);\r\n this._updateFitBoundsDetails();\r\n }\r\n if (changes['title']) {\r\n this._markerManager.updateTitle(this);\r\n }\r\n if (changes['draggable']) {\r\n this._markerManager.updateDraggable(this);\r\n }\r\n if (changes['label']||changes['iconUrl']||changes['opacity']||changes['animation']) {\r\n this._markerManager.updateLabelAndOpacityAndIconAndAnimation(this);\r\n }\r\n if (changes['opacity']) {\r\n this._markerManager.updateOpacity(this);\r\n }\r\n if (changes['visible']) {\r\n this._markerManager.updateVisible(this);\r\n }\r\n if (changes['zIndex']) {\r\n this._markerManager.updateZIndex(this);\r\n }\r\n if (changes['clickable']) {\r\n this._markerManager.updateClickable(this);\r\n }\r\n }\r\n\r\n/** @internal */\r\n getFitBoundsDetails$(): Observable < FitBoundsDetails > {\r\n return this._fitBoundsDetails$.asObservable();\r\n }\r\n\r\n protected _updateFitBoundsDetails() {\r\n this._fitBoundsDetails$.next({ latLng: { lat: this.latitude, lng: this.longitude } });\r\n }\r\n\r\n private _addEventListeners() { \r\n const cs = this._markerManager.createEventObservable('click', this).subscribe(() => {\r\n if (this.openInfoWindow) {\r\n this.infoWindow.forEach(infoWindow => infoWindow.open());\r\n }\r\n this.markerClick.emit(this);\r\n });\r\n this._observableSubscriptions.push(cs);\r\n\r\n/* const dcs = this._markerManager.createEventObservable('dblclick', this).subscribe(() => {\r\n this.markerDblClick.emit(null);\r\n });\r\n this._observableSubscriptions.push(dcs);\r\n\r\n const rc = this._markerManager.createEventObservable('rightclick', this).subscribe(() => {\r\n this.markerRightClick.emit(null);\r\n });\r\n this._observableSubscriptions.push(rc); */\r\n\r\n const ds =this._markerManager.createEventObservable('dragstart', this)\r\n .subscribe(e => this.dragStart.emit(e));\r\n this._observableSubscriptions.push(ds);\r\n\r\n const d =\r\n this._markerManager.createEventObservable('drag', this)\r\n .subscribe(e => this.drag.emit(e));\r\n this._observableSubscriptions.push(d);\r\n\r\n const de =\r\n this._markerManager.createEventObservable('dragend', this)\r\n .subscribe(e => this.dragEnd.emit(e));\r\n this._observableSubscriptions.push(de);\r\n\r\n/* const mover =\r\n this._markerManager.createEventObservable('mouseover', this)\r\n .subscribe(e => { console.log(\"mouse over\"); this.mouseOver.emit(e); });\r\n this._observableSubscriptions.push(mover);\r\n\r\n const mout =\r\n this._markerManager.createEventObservable('mouseout', this)\r\n .subscribe(e => this.mouseOut.emit(e));\r\n this._observableSubscriptions.push(mout);\r\n */\r\n const anChng =\r\n this._markerManager.createEventObservable('animation_changed', this)\r\n .subscribe(() => {\r\n this.animationChange.emit(this.animation);\r\n });\r\n this._observableSubscriptions.push(anChng);\r\n }\r\n\r\n/** @internal */\r\n id(): string { return this._id; }\r\n\r\n/** @internal */\r\n toString(): string { return 'NrMapsMarker-' + this._id.toString(); }\r\n\r\n/** @internal */\r\n ngOnDestroy() {\r\n this._markerManager.deleteMarker(this);\r\n // unsubscribe all registered observable subscriptions\r\n this._observableSubscriptions.forEach((s) => s.unsubscribe());\r\n } \r\n\r\n}\r\n","import { Directive, Input, OnInit } from '@angular/core';\r\n\r\n@Directive({ \r\n selector: 'nr-maps-polyline nr-maps-icon-sequence' \r\n})\r\nexport class NrPolylineIcon implements OnInit {\r\n\r\n /**\r\n * If `true`, each icon in the sequence has the same fixed rotation regardless of the\r\n * angle of the edge on which it lies. Defaults to `false`, in which case each icon\r\n * in the sequence is rotated to align with its edge.\r\n */\r\n @Input() fixedRotation: boolean;\r\n\r\n /**\r\n * The distance from the start of the line at which an icon is to be rendered. This\r\n * distance may be expressed as a percentage of line's length (e.g. '50%') or in pixels\r\n * (e.g. '50px'). Defaults to '100%'.\r\n */\r\n @Input() offset: string;\r\n\r\n /**\r\n * The distance between consecutive icons on the line. This distance may be expressed as\r\n * a percentage of the line's length (e.g. '50%') or in pixels (e.g. '50px'). To disable\r\n * repeating of the icon, specify '0'. Defaults to '0'.\r\n */\r\n @Input() repeat: string;\r\n\r\n /**\r\n * The x coordinate of the position of the symbol relative to the polyline. The coordinate\r\n * of the symbol's path is translated _left_ by the anchor's x coordinate. By default, a\r\n * symbol is anchored at (0, 0). The position is expressed in the same coordinate system as the\r\n * symbol's path.\r\n */\r\n @Input() anchorX: number;\r\n\r\n /**\r\n * The y coordinate of the position of the symbol relative to the polyline. The coordinate\r\n * of the symbol's path is translated _up_ by the anchor's y coordinate. By default, a\r\n * symbol is anchored at (0, 0). The position is expressed in the same coordinate system as the\r\n * symbol's path.\r\n */\r\n @Input() anchorY: number;\r\n\r\n /**\r\n * The symbol's fill color. All CSS3 colors are supported except for extended named\r\n * colors. Defaults to the stroke color of the corresponding polyline.\r\n */\r\n @Input() fillColor: string;\r\n\r\n /**\r\n * The symbol's fill opacity. Defaults to 0.\r\n */\r\n @Input() fillOpacity: number;\r\n\r\n /**\r\n * The symbol's path, which is a built-in symbol path, or a custom path expressed using\r\n * SVG path notation. Required.\r\n */\r\n @Input() path: keyof typeof google.maps.SymbolPath | string;\r\n\r\n /**\r\n * The angle by which to rotate the symbol, expressed clockwise in degrees.\r\n * Defaults to 0. A symbol where `fixedRotation` is `false` is rotated relative to\r\n * the angle of the edge on which it lies.\r\n */\r\n @Input() rotation: number;\r\n\r\n /**\r\n * The amount by which the symbol is scaled in size. Defaults to the stroke weight\r\n * of the polyline; after scaling, the symbol must lie inside a square 22 pixels in\r\n * size centered at the symbol's anchor.\r\n */\r\n @Input() scale: number;\r\n\r\n /**\r\n * The symbol's stroke color. All CSS3 colors are supported except for extended named\r\n * colors. Defaults to the stroke color of the polyline.\r\n */\r\n @Input() strokeColor: string;\r\n\r\n /**\r\n * The symbol's stroke opacity. Defaults to the stroke opacity of the polyline.\r\n */\r\n @Input() strokeOpacity: number;\r\n\r\n /**\r\n * The symbol's stroke weight. Defaults to the scale of the symbol.\r\n */\r\n @Input() strokeWeight: number;\r\n\r\n ngOnInit(): void {\r\n if (this.path == null) {\r\n throw new Error('Icon Sequence path is required');\r\n }\r\n }\r\n}\r\n","import { Directive, EventEmitter, forwardRef, Input, OnChanges, Output, SimpleChanges } from '@angular/core';\r\nimport { Observable } from 'rxjs';\r\nimport { map, startWith } from 'rxjs/operators';\r\n\r\nimport { FitBoundsAccessor, FitBoundsDetails } from '../services/fit-bounds.service';\r\n\r\n@Directive({\r\n selector: 'nr-maps-polyline-point',\r\n providers: [\r\n { provide: FitBoundsAccessor, useExisting: forwardRef(() => NrPolylinePoint) },\r\n ],\r\n})\r\nexport class NrPolylinePoint implements OnChanges /*, FitBoundsAccessor */ {\r\n /**\r\n * The latitude position of the point.\r\n */\r\n @Input() public latitude: number;\r\n\r\n /**\r\n * The longitude position of the point;\r\n */\r\n @Input() public longitude: number;\r\n\r\n /**\r\n * This event emitter gets emitted when the position of the point changed.\r\n */\r\n @Output() positionChanged: EventEmitter = new EventEmitter();\r\n\r\n constructor() { }\r\n\r\n ngOnChanges(changes: SimpleChanges): any {\r\n if (changes['latitude'] || changes['longitude']) {\r\n this.positionChanged.emit({\r\n lat: changes['latitude'] ? changes['latitude'].currentValue : this.latitude,\r\n lng: changes['longitude'] ? changes['longitude'].currentValue : this.longitude,\r\n });\r\n }\r\n }\r\n\r\n\r\n getFitBoundsDetails$(): Observable {\r\n return this.positionChanged.pipe(\r\n startWith({ lat: this.latitude, lng: this.longitude }),\r\n map(position => ({ latLng: position }))\r\n );\r\n }\r\n}\r\n","import { AfterContentInit, ContentChildren, Directive, EventEmitter, Input, OnChanges, OnDestroy, Output, QueryList, SimpleChanges } from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\n\r\nimport { PolylineManagerService } from '../services/managers/polyline-manager.service';\r\nimport { MVCEvent } from '../utils/mvcarray-utils';\r\nimport { NrPolylineIcon } from './nr-polyline-icon';\r\nimport { NrPolylinePoint } from './nr-polyline-point';\r\n\r\nlet polylineId = 0;\r\n\r\n@Directive({\r\n selector: 'nr-maps-polyline',\r\n})\r\nexport class NrPolyline implements OnDestroy, OnChanges, AfterContentInit {\r\n /**\r\n * Indicates whether this Polyline handles mouse events. Defaults to true.\r\n */\r\n @Input() clickable = true;\r\n\r\n /**\r\n * If set to true, the user can drag this shape over the map. The geodesic property defines the\r\n * mode of dragging. Defaults to false.\r\n */\r\n // tslint:disable-next-line:no-input-rename\r\n @Input('polylineDraggable') draggable = false;\r\n\r\n /**\r\n * If set to true, the user can edit this shape by dragging the control points shown at the\r\n * vertices and on each segment. Defaults to false.\r\n */\r\n @Input() editable = false;\r\n\r\n /**\r\n * When true, edges of the polygon are interpreted as geodesic and will follow the curvature of\r\n * the Earth. When false, edges of the polygon are rendered as straight lines in screen space.\r\n * Note that the shape of a geodesic polygon may appear to change when dragged, as the dimensions\r\n * are maintained relative to the surface of the earth. Defaults to false.\r\n */\r\n @Input() geodesic = false;\r\n\r\n /**\r\n * The stroke color. All CSS3 colors are supported except for extended named colors.\r\n */\r\n @Input() strokeColor: string;\r\n\r\n /**\r\n * The stroke opacity between 0.0 and 1.0.\r\n */\r\n @Input() strokeOpacity: number;\r\n\r\n /**\r\n * The stroke width in pixels.\r\n */\r\n @Input() strokeWeight: number;\r\n\r\n /**\r\n * Whether this polyline is visible on the map. Defaults to true.\r\n */\r\n @Input() visible = true;\r\n\r\n /**\r\n * The zIndex compared to other polys.\r\n */\r\n @Input() zIndex: number;\r\n\r\n /**\r\n * This event is fired when the DOM click event is fired on the Polyline.\r\n */\r\n @Output() lineClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the DOM dblclick event is fired on the Polyline.\r\n */\r\n @Output() lineDblClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is repeatedly fired while the user drags the polyline.\r\n */\r\n @Output() lineDrag: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the user stops dragging the polyline.\r\n */\r\n @Output() lineDragEnd: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the user starts dragging the polyline.\r\n */\r\n @Output() lineDragStart: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the DOM mousedown event is fired on the Polyline.\r\n */\r\n @Output() lineMouseDown: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the DOM mousemove event is fired on the Polyline.\r\n */\r\n @Output() lineMouseMove: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired on Polyline mouseout.\r\n */\r\n @Output() lineMouseOut: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired on Polyline mouseover.\r\n */\r\n @Output() lineMouseOver: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired whe the DOM mouseup event is fired on the Polyline\r\n */\r\n @Output() lineMouseUp: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired when the Polyline is right-clicked on.\r\n */\r\n @Output() lineRightClick: EventEmitter = new EventEmitter();\r\n\r\n /**\r\n * This event is fired after Polyline's path changes.\r\n */\r\n @Output() polyPathChange = new EventEmitter>();\r\n\r\n /**\r\n * @internal\r\n */\r\n @ContentChildren(NrPolylinePoint) points: QueryList;\r\n\r\n @ContentChildren(NrPolylineIcon) iconSequences: QueryList;\r\n\r\n private static _polylineOptionsAttributes: string[] = [\r\n 'draggable', 'editable', 'visible', 'geodesic', 'strokeColor', 'strokeOpacity', 'strokeWeight',\r\n 'zIndex',\r\n ];\r\n\r\n private _id: string;\r\n private _polylineAddedToManager = false;\r\n private _subscriptions: Subscription[] = [];\r\n\r\n constructor(private _polylineManager: PolylineManagerService) { this._id = (polylineId++).toString(); }\r\n\r\n /** @internal */\r\n ngAfterContentInit() {\r\n if (this.points.length) {\r\n this.points.forEach((point: NrPolylinePoint) => {\r\n const s = point.positionChanged.subscribe(\r\n () => { this._polylineManager.updatePolylinePoints(this); });\r\n this._subscriptions.push(s);\r\n });\r\n }\r\n if (!this._polylineAddedToManager) {\r\n this._init();\r\n }\r\n const pointSub = this.points.changes.subscribe(() => this._polylineManager.updatePolylinePoints(this));\r\n this._subscriptions.push(pointSub);\r\n this._polylineManager.updatePolylinePoints(this);\r\n\r\n const iconSub = this.iconSequences.changes.subscribe(() => this._polylineManager.updateIconSequences(this));\r\n this._subscriptions.push(iconSub);\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): any {\r\n if (!this._polylineAddedToManager) {\r\n this._init();\r\n return;\r\n }\r\n\r\n const options: { [propName: string]: any } = {};\r\n const optionKeys = Object.keys(changes).filter(\r\n k => NrPolyline._polylineOptionsAttributes.indexOf(k) !== -1);\r\n optionKeys.forEach(k => options[k] = changes[k].currentValue);\r\n this._polylineManager.setPolylineOptions(this, options);\r\n }\r\n\r\n getPath(): Promise {\r\n return this._polylineManager.getPath(this);\r\n }\r\n\r\n private _init() {\r\n this._polylineManager.addPolyline(this);\r\n this._polylineAddedToManager = true;\r\n this._addEventListeners();\r\n }\r\n\r\n private _addEventListeners() {\r\n const handlers = [\r\n { name: 'click', handler: (ev: google.maps.PolyMouseEvent) => this.lineClick.emit(ev) },\r\n { name: 'dblclick', handler: (ev: google.maps.PolyMouseEvent) => this.lineDblClick.emit(ev) },\r\n { name: 'drag', handler: (ev: google.maps.MapMouseEvent) => this.lineDrag.emit(ev) },\r\n { name: 'dragend', handler: (ev: google.maps.MapMouseEvent) => this.lineDragEnd.emit(ev) },\r\n { name: 'dragstart', handler: (ev: google.maps.MapMouseEvent) => this.lineDragStart.emit(ev) },\r\n { name: 'mousedown', handler: (ev: google.maps.PolyMouseEvent) => this.lineMouseDown.emit(ev) },\r\n { name: 'mousemove', handler: (ev: google.maps.PolyMouseEvent) => this.lineMouseMove.emit(ev) },\r\n { name: 'mouseout', handler: (ev: google.maps.PolyMouseEvent) => this.lineMouseOut.emit(ev) },\r\n { name: 'mouseover', handler: (ev: google.maps.PolyMouseEvent) => this.lineMouseOver.emit(ev) },\r\n { name: 'mouseup', handler: (ev: google.maps.PolyMouseEvent) => this.lineMouseUp.emit(ev) },\r\n { name: 'rightclick', handler: (ev: google.maps.PolyMouseEvent) => this.lineRightClick.emit(ev) },\r\n ];\r\n handlers.forEach((obj) => {\r\n const os = this._polylineManager.createEventObservable(obj.name, this).subscribe(obj.handler);\r\n this._subscriptions.push(os);\r\n });\r\n\r\n this._polylineManager.createPathEventObservable(this).then((ob$) => {\r\n const os = ob$.subscribe(pathEvent => this.polyPathChange.emit(pathEvent));\r\n this._subscriptions.push(os);\r\n });\r\n }\r\n\r\n /** @internal */\r\n _getPoints(): NrPolylinePoint[] {\r\n if (this.points) {\r\n return this.points.toArray();\r\n }\r\n return [];\r\n }\r\n\r\n _getIcons(): Array {\r\n if (this.iconSequences) {\r\n return this.iconSequences.toArray();\r\n }\r\n return [];\r\n }\r\n\r\n /** @internal */\r\n id(): string { return this._id; }\r\n\r\n /** @internal */\r\n ngOnDestroy() {\r\n this._polylineManager.deletePolyline(this);\r\n // unsubscribe all registered observable subscriptions\r\n this._subscriptions.forEach((s) => s.unsubscribe());\r\n }\r\n}\r\n","\r\n\r\n
\r\n\t\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n
\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport {\r\n\tMappa,\r\n\tTripItineraryDay\r\n} from 'nr-common';\r\n\r\n@Component({\r\n\tselector: 'nr-mappa',\r\n\ttemplateUrl: './mappa.component.html',\r\n\tstyleUrls: ['./mappa.component.scss']\r\n})\r\nexport class MappaComponent implements OnInit {\r\n\t@Input() mappa: Mappa;\r\n\t@Input() tappe: TripItineraryDay[];\t// ServiceItineraryStep[];\r\n\r\n\tconstructor() { }\r\n\r\n\tngOnInit(): void {\r\n\t}\r\n\r\n\t/**\r\n\t * Imposta il titolo della tappa sulla mappa\r\n\t * @param i tappa sulla mappa\r\n\t * @returns string\r\n\t */\r\n\tgetTitle(i: TripItineraryDay): string {\r\n\t\treturn `${i.ordine} - ${i.luogo}`;\r\n\t}\r\n\r\n\tonMapReady(map?: google.maps.Map) {\r\n\t\tif (map) {\r\n\t\t\tmap.setOptions({\r\n\t\t\t\tstreetViewControl: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
{{attributo.nomeTipo}}
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
{{v}}
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { ServiceAttribute } from 'nr-common';\r\n\r\n@Component({\r\n selector: 'nr-attributi',\r\n templateUrl: './attributi.component.html',\r\n styleUrls: ['./attributi.component.scss']\r\n})\r\nexport class AttributiComponent implements OnInit {\r\n\t@Input() attributi: ServiceAttribute[];\r\n\tconstructor(public translate: TranslateService) { }\r\n\r\n\tngOnInit() {\r\n\t}\r\n\r\n\tgetIconClass(v: number): string {\r\n\t\tlet result = '';\r\n\r\n\t\tswitch (v) {\r\n\t\t\tcase 1: result = 'fa-asterisk'; break; // Categoria\r\n\t\t\tcase 2: result = 'fa-tag'; break; // Tipo servizio\r\n\t\t\tcase 3: result = 'fa-globe'; break; // Posizione\r\n\t\t\tcase 5: result = 'fa-language'; break; // Lingua\r\n\t\t\tcase 7: result = 'fa-wrench'; break; // Posizione\r\n\t\t\tcase 11: result = 'fa-info-circle'; break; // Assistenza\r\n\t\t\tcase 18: result = 'fa-utensils'; break; // Trattamento\r\n\t\t\tcase 20: result = 'fa-bus'; break; // Tipo trasferimenti\r\n\t\t\tcase 22: result = 'fa-paper-plane'; break; // Voli\r\n\t\t\tcase 26: result = 'fa-credit-card'; break; // Resort Fee\r\n\t\t\tcase 34: result = 'fa-certificate'; break; // OFFERTE / PROMO\r\n\t\t\tcase 51: result = 'fa-calendar-check'; break; // Partenze garantite\r\n\t\t\tcase 53: result = 'fa-link'; break; // Catena\r\n\t\t\tcase 64: result = 'fa-bullhorn'; break; // NOVITÀ\r\n\t\t\tcase 73: result = 'fa-share'; break; // Tipo tour\r\n\t\t\tdefault: result = 'fa-question-circle'; break;\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n\tgetExtendedAttribute(v: ServiceAttribute): string {\r\n\t\tif (!v.valori) return '';\r\n\r\n\t\tlet l = 0;\r\n\t\tif (v.valori.length === 1) {\r\n\t\t\tl = v.valori[0].length;\r\n\t\t} else {\r\n\t\t\tv.valori.forEach((fev) => {\r\n\t\t\t\tif (fev.length > l) {\r\n\t\t\t\t\tl = fev.length;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn l > 100 ? 'attribute-big' : l > 50 ? 'attribute-half' : '';\r\n\t}\r\n\r\n}\r\n\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ tripInfo?.nome }}

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {{ (tripInfo)?.itinerario.giorni }}\r\n\t\t\t\t\t\t{{ 'PAGES.TRIP.NUM-GIORNI' | translate : { gg:((tripInfo)?.itinerario.giorni) } }}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t {{ (tripInfo)?.itinerario.notti }}\r\n\t\t\t\t\t\t{{ 'PAGES.TRIP.NUM-NOTTI' | translate : { nn:((tripInfo)?.itinerario.notti) } }}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
0\">\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t
\r\n\t\t\t\t\t
{{ 'PAGES.TRIP.MAGGIORI-INFO' | translate }}
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{{allegato.descr}}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
{{ 'PAGES.TRIP.APPARTIENE-ANCHE' | translate }}
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
{{ 'PAGES.TRIP.APPARTIENE-ANCHE' | translate }}
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tInject,\r\n\tOnInit,\r\n\tViewEncapsulation\r\n} from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport {\r\n\tDestination,\r\n\tIdea,\r\n\tMappa,\r\n\tTripInfo,\r\n\tTripItineraryDay,\r\n\tMap,\r\n UserService\r\n} from 'nr-common';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { UrlService } from '../../services/url.service';\r\nimport { TripService } from '../../services/trip.service';\r\nimport { DestinationService } from '../../services/destination.service';\r\nimport { IdeaService } from '../../services/idea.service';\r\nimport { SherpaService } from '../../services/sherpa.service';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { GoogleAnalyticsService } from '../../services/google-analytics.service';\r\n\r\n@Component({\r\n\tselector: 'nr-trippage',\r\n\ttemplateUrl: './trippage.component.html',\r\n\tstyleUrls: ['./trippage.component.scss'],\r\n\tencapsulation: ViewEncapsulation.None\t// https://angular.io/guide/view-encapsulation\r\n})\r\nexport class TrippageComponent implements OnInit {\r\n\tpublic tripInfo: TripInfo;\r\n\tpublic destinations: Destination[] = [];\r\n\tpublic ideas: Idea[] = [];\r\n\tpublic mappa: Mappa;\r\n\r\n\r\n\tslideConfig = {\r\n\t\tslidesToShow: 1,\r\n\t\tslidesToScroll: 1,\r\n\t\tnextArrow: '
',\r\n\t\tprevArrow: '
',\r\n\t\tdots: true,\r\n\t\tinfinite: true,\r\n\t\tswipe: false,\r\n\t\tresponsive: [\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 1024,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1,\r\n\t\t\t\t\tinfinite: true,\r\n\t\t\t\t\tdots: true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 600,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tbreakpoint: 480,\r\n\t\t\t\tsettings: {\r\n\t\t\t\t\tslidesToShow: 1,\r\n\t\t\t\t\tslidesToScroll: 1\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t]\r\n\t};\r\n\r\n\tslides = [];\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tprivate activeRoute: ActivatedRoute,\r\n\t\tprivate tripService: TripService,\r\n\t\tpublic urlService: UrlService,\r\n\t\tpublic translate: TranslateService,\r\n\t\tprivate destinationService: DestinationService,\r\n\t\tprivate ideaService: IdeaService,\r\n\t\tprivate sherpa: SherpaService,\r\n private titleService: Title,\r\n private router: Router,\r\n @Inject(DOCUMENT) private document: Document,\r\n private user: UserService,\r\n private google: GoogleAnalyticsService\r\n\t) {\r\n\t\tthis.mappa = new Mappa();\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.activeRoute\r\n\t\t\t.params\r\n\t\t\t.subscribe(routeParams => {\r\n\t\t\t\tthis.tripService\r\n\t\t\t\t\t.getTripInfo(routeParams.id)\r\n\t\t\t\t\t.subscribe((data) => {\r\n\t\t\t\t\t\tthis.tripInfo = data;\r\n\r\n // OM 08.06.2023: update page title\r\n this.titleService.setTitle(this.tripInfo.nome);\r\n\r\n // OM 08.06.2023: Google Analytics\r\n this.google.tag(this.tripInfo.nome,\r\n this.router.url,\r\n this.document.location.href);\r\n\r\n\t\t\t\t\t\tthis.loadSlides();\r\n\t\t\t\t\t\tthis.loadDestination(this.tripInfo.destinations);\r\n\t\t\t\t\t\tthis.loadIdeas(this.tripInfo.ideas);\r\n\t\t\t\t\t\tthis.mappa = this.getMap(data);\t// this.mappa = this.getMapFromItinerary(this.tripInfo.itinerario.days);\r\n\t\t\t\t\t\tthis.sherpa.addTripOfInterestByCompleteTrip(this.tripInfo);\r\n\t\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n\r\n\tgetMapFromItinerary(giorniItinerario: TripItineraryDay[]): Mappa {\r\n\t\tconst result: Mappa = new Mappa();\r\n\t\tresult.latitudine = 0;\r\n\t\tresult.longitudine = 0;\r\n\t\tresult.zoom = 3;\r\n\r\n\r\n\t\tif (giorniItinerario && giorniItinerario.length > 0) {\r\n\t\t\tresult.latitudine = giorniItinerario[0].lat;\r\n\t\t\tresult.longitudine = giorniItinerario[0].lon;\r\n\t\t\tresult.zoom = 6;\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n\tgetMap(trip: TripInfo): Mappa {\r\n\t\tif (!trip) return null;\r\n\r\n\t\tconst result: Mappa = new Mappa();\r\n\t\tresult.latitudine = trip.map?.lat;\r\n\t\tresult.longitudine = trip.map?.long;\r\n\t\tresult.zoom = trip.map?.zoom;\r\n\r\n\t\t// console.log(result);\r\n\t\treturn result;\r\n\t}\r\n\r\n\tloadDestination(destinationIds: number[]): void {\r\n\t\tif (!(destinationIds?.length > 0)) return;\r\n\t\tdestinationIds.forEach(f => {\r\n\t\t\tthis.destinationService.getDestinationInfo(f).subscribe(destination => {\r\n\t\t\t\tthis.destinations.push(destination);\r\n\t\t\t});\r\n\t\t})\r\n\t}\r\n\r\n\tloadIdeas(ideaIds: number[]) {\r\n\t\tif (!(ideaIds?.length > 0)) return;\r\n\t\tideaIds.forEach(f => {\r\n\t\t\tthis.ideaService.getIdeaInfo(f).subscribe(idea => {\r\n\t\t\t\tthis.ideas.push(idea);\r\n\t\t\t});\r\n\t\t})\r\n\t}\r\n\r\n\t/**\r\n\t * Popolo la lista delle immagini della destinazione per il carousel\r\n\t * @returns void\r\n\t */\r\n\tloadSlides(): void {\r\n\t\tif (this.tripInfo.immagini?.length > 0) {\r\n\t\t\tthis.tripInfo.immagini\r\n\t\t\t\t.forEach(immagine => {\r\n\t\t\t\t\tthis.slides.push({\r\n\t\t\t\t\t\timg: immagine.url\r\n\t\t\t\t\t}\r\n\t\t\t\t\t)\r\n\t\t\t\t});\r\n\t\t} else {\r\n\t\t\t// Se non ci sono immagini tento almeno di recuperare la cover del viaggio\r\n\t\t\tthis.slides.push({\r\n\t\t\t\timg: this.tripInfo.cover\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tonMapReady(map?: google.maps.Map) {\r\n\t\tif (map) {\r\n\t\t\tmap.setOptions({\r\n\t\t\t\tstreetViewControl: false\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n\r\n\tcanShowDays(): boolean {\r\n\t\treturn (this.tripInfo?.itinerario?.giorni || this.tripInfo?.itinerario?.notti) > 0;\r\n\t}\r\n\r\n\thasDestinations(): boolean {\r\n\t\treturn (this.tripInfo?.destinations?.length > 0);\r\n\t}\r\n\r\n\thasIdeas(): boolean {\r\n\t\treturn (this.tripInfo?.ideas?.length > 0);\r\n\t}\r\n\r\n\thasAttachments(): boolean {\r\n\t\treturn this.tripInfo?.allegati?.length > 0;\r\n\t\t// let numOfAttachments: number = 0;\r\n\t\t// this.tripInfo?.articoli?.forEach(article => {\r\n\t\t// \tnumOfAttachments += article.attachment?.length || 0\r\n\t\t// })\r\n\t\t// return numOfAttachments > 0;\r\n\t}\r\n\r\n\tgetAttachmentUrl(relativeUrl: string): string {\r\n\t\treturn relativeUrl;\r\n\t}\r\n\r\n\thasMap(): boolean {\r\n\t\treturn this.mappa != null;\r\n\t}\r\n}\r\n\r\n/**\r\nhttps://angular-maps.com/guides/getting-started/\r\n */\r\n","
\r\n
\r\n\t
\r\n\t\t\r\n\t\t
\r\n\t\t\r\n\t
\r\n
\r\n","import { Component, ElementRef, OnInit, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { environment } from 'projects/nr-b2c/src/environments/environment';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { Renderer2, Inject } from '@angular/core';\r\nimport { DOCUMENT } from '@angular/common';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { GoogleAnalyticsService } from '../../services/google-analytics.service';\r\n\r\n@Component({\r\n\tselector: 'nr-articlepage',\r\n\ttemplateUrl: './articlepage.component.html',\r\n\tstyleUrls: ['./articlepage.component.scss'],\r\n\tencapsulation: ViewEncapsulation.None,\r\n})\r\nexport class ArticlepageComponent implements OnInit {\r\n\r\n public articleID: number = 0;\r\n\tpublic article: string; // B2cArticle;\r\n\tpublic extraArticle: string = null;\r\n\tprivate dinamicCookieScriptID: string = 'CookieDeclaration';\r\n private dinamicCookieScriptURL: string = 'https://consent.cookiebot.com/ea688d73-4a8e-4f35-9770-0f179e512a5d/cd.js';\r\n\r\n constructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tprivate activeRoute: ActivatedRoute,\r\n\t\tpublic translateService: TranslateService,\r\n\t\tprivate renderer: Renderer2,\r\n\t\t@Inject(DOCUMENT) private document: Document,\r\n private el: ElementRef,\r\n private title: Title,\r\n private google: GoogleAnalyticsService,\r\n private router: Router\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.activeRoute.params.subscribe((routeParams) => {\r\n\t\t\tthis.apiService.getArticle(routeParams.id, true).subscribe((data) => {\r\n\r\n // OM 09.06.2023: setting the title of the page\r\n this.title.setTitle(data.title ? \"Naar Tour Operator - \" + data.title : \"Naar Tour Operator\");\r\n\t\t\t\t\r\n this.article = data.text;\r\n \r\n\t\t\t\tif (this.HasDynamicCookies(routeParams.id)) {\r\n\t\t\t\t\tthis.extraArticle = 'AGGIUNGO LO SCRIPT';\r\n\t\t\t\t\tthis.injectScript();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.extraArticle = null;\r\n\t\t\t\t\tthis.removeScript();\r\n\t\t\t\t}\r\n\r\n // OM 08.06.2023: Google Analytics\r\n this.google.tag(data.title,\r\n this.router.url,\r\n this.document.location.href);\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n\r\n\tprivate HasDynamicCookies(articleId: number): boolean {\r\n\t\tconst result: boolean = articleId == environment.DINAMIC_COOKIES_ARTICLE_ID;\r\n\t\treturn result;\r\n\t}\r\n\r\n\t// Inserisce nel DOM della pagina lo script per i cookie dinamici\r\n\tprivate injectScript() {\r\n\t\tconst dynamicCookiesScripNode = this.renderer.createElement('script');\r\n\t\tdynamicCookiesScripNode.type = 'text/javascript';\r\n\t\tdynamicCookiesScripNode.id = this.dinamicCookieScriptID;\r\n\t\tdynamicCookiesScripNode.src = this.dinamicCookieScriptURL;\r\n\t\tdynamicCookiesScripNode.text = '';\r\n // OM 09.06.2023: the script was placed after the footer\r\n this.renderer.appendChild(this.el.nativeElement, dynamicCookiesScripNode);\r\n\t}\r\n\r\n\t// Rimuove dal DOM della pagina lo script per i cookie dinamici\r\n\tpublic removeScript() {\r\n\t\tconst dynamicCookiesScripNode = this.document.getElementById(this.dinamicCookieScriptID);\r\n\t\tif (!dynamicCookiesScripNode) return;\r\n\t\tconst scriptNode = this.renderer.removeChild(this.document.body, dynamicCookiesScripNode);\r\n\t}\r\n}\r\n","
\r\n\t\r\n\t
\r\n\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t\t
{{ transformName(openDestination.destinazione?.nome) }}
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t\r\n\t\t\t{{ getArticleTitle(article.title) }}\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { OpenDestination, OpenDestinationArticle } from 'nr-common';\r\nimport { CommonService } from '../../services/common.service';\r\nimport { UrlService } from '../../services/url.service';\r\n\r\nconst MAX_DESCR_LEN = 200;\r\n\r\n@Component({\r\n\tselector: 'nr-opendest-card',\r\n\ttemplateUrl: './opendest-card.component.html',\r\n\tstyleUrls: ['./opendest-card.component.scss']\r\n})\r\nexport class OpendestCardComponent implements OnInit {\r\n\tget invertedColor(): string {\r\n\t\treturn this.commonService.invertColor(this.openDestination.destinazione.gaBgColor, this.commonService.INVERT_ONLY_BLACK_AND_WHITE);\r\n\t}\r\n\t@Input() openDestination: OpenDestination;\r\n\r\n\tconstructor(\r\n\t\tpublic urlService: UrlService,\r\n\t\tpublic commonService: CommonService\r\n\t) { }\r\n\r\n\tngOnInit(): void {\r\n\t}\r\n\r\n\tgetIcon(iconGliph: string): string {\r\n\t\tif (!iconGliph) {\r\n\t\t\ticonGliph = 'icon-people';\r\n\t\t}\r\n\t\treturn iconGliph;\r\n\t}\r\n\r\n\tgetColor(bgColor: string): string {\r\n\t\tif(!bgColor) return '#999';\r\n\t\tif (!bgColor.startsWith(\"#\")) {\r\n\t\t\tbgColor = \"#\" + bgColor;\r\n\t\t}\r\n\t\treturn bgColor;\r\n\t}\r\n\r\n\ttransformName(name: string): string {\r\n\t\treturn this.commonService.capitalizeAllWords(name);\r\n\t}\r\n\r\n\tendSoftly(v: string): string {\r\n\t\tif (v && v.length > MAX_DESCR_LEN) {\r\n\t\t\tv = v.substr(0, MAX_DESCR_LEN);\r\n\t\t\tconst lastBlank = v.lastIndexOf(' ');\r\n\t\t\tv = v.substr(0, lastBlank) + '...';\r\n\t\t}\r\n\t\treturn v;\r\n\t}\r\n\r\n\tgetArticleUrl(articleId: number): string {\r\n\t\treturn this.urlService.getArticleUrl(articleId);\r\n\t}\r\n\r\n\tgetArticlesOrderByTitle(articles: OpenDestinationArticle[]): OpenDestinationArticle[] {\r\n\t\treturn articles.sort((a, b) => {\r\n\t\t\treturn (a.title > b.title) ? 1 : -1;\r\n\t\t})\r\n\t}\r\n\r\n\tnavigateToOpenDestination(id: number) {\r\n\t\treturn this.urlService.navigateToOpenDestination(id, this.openDestination.destinazione.luogoID);\r\n\t}\r\n\r\n\tgetArticleTitle(title: string) {\r\n\t\treturn this.commonService.capitalizeAllWords(title, 3);\r\n\t}\r\n\r\n\tgetCoverImage(imageUrl: string): string {\r\n\t\tif (!imageUrl || imageUrl === undefined || imageUrl.length == 0)\r\n\t\t\treturn this.commonService.getVoidImage();\r\n\t\treturn imageUrl;\r\n\t}\r\n}\r\n","\r\n
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

{{ pageHeaderName() }}

\r\n\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t
\r\n\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\r\n\t\t\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","
\r\n
\r\n\t
\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t

{{ article.title }}

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t
\r\n
\r\n","import { NgModule } from '@angular/core';\r\nimport {\r\n\tRouterModule,\r\n\tRoutes\r\n} from '@angular/router';\r\nimport { HomepageComponent } from './components/homepage/homepage.component';\r\nimport { DestinationspageComponent } from './components/destinationspage/destinationspage.component';\r\nimport { DestinationpageComponent } from './components/destinationpage/destinationpage.component';\r\nimport { IdeaspageComponent } from './components/ideaspage/ideaspage.component';\r\nimport { OfferspageComponent } from './components/offerspage/offerspage.component';\r\nimport { ContactspageComponent } from './components/contactspage/contactspage.component';\r\nimport { PartnerspageComponent } from './components/partnerspage/partnerspage.component';\r\nimport { AboutpageComponent } from './components/aboutpage/aboutpage.component';\r\nimport { IdeapageComponent } from './components/ideapage/ideapage.component';\r\nimport { TrippageComponent } from './components/trippage/trippage.component';\r\nimport { ArticlepageComponent } \t from './components/articlepage/articlepage.component';\r\nimport { OpendestpageComponent } \t from './components/opendestpage/opendestpage.component';\r\nimport { OpendestpageDetailComponent } from './components/opendestpage-detail/opendestpage-detail.component';\r\n\r\nconst routes: Routes = [\r\n\t{ path: '', component: HomepageComponent, resolve: {} },\r\n\t// { path: ':ln', component: HomepageComponent, resolve: {} },\r\n\t{ path: 'home/:ln', component: HomepageComponent, resolve: {} },\r\n\t{ path: 'destinations', component: DestinationspageComponent, resolve: {} },\r\n\t{ path: 'destinations/:id', component: DestinationpageComponent, resolve: {} },\r\n\t{ path: 'ideas', component: IdeaspageComponent, resolve: {} },\r\n\t{ path: 'ideas/:id', component: IdeapageComponent, resolve: {} },\r\n\t{ path: 'offers', component: OfferspageComponent, resolve: {} },\r\n\t{ path: 'contacts', component: ContactspageComponent, resolve: {} },\r\n\t{ path: 'partners', component: PartnerspageComponent, resolve: {} },\r\n\t{ path: 'about', component: AboutpageComponent, resolve: {} },\r\n\t{ path: 'trips/:id', component: TrippageComponent, resolve: {} },\r\n\t{ path: 'services/:id', component: TrippageComponent, resolve: {} },\r\n\t{ path: 'article/:id', component: ArticlepageComponent, resolve: {} },\r\n\t{ path: 'opendestination', component: OpendestpageComponent, resolve: {} },\r\n\t{ path: 'opendestpagedetail/:id/:ido', component: OpendestpageDetailComponent, resolve: {} }\r\n];\r\n\r\n@NgModule({\r\n\timports: [RouterModule.forRoot(routes, {\r\n\t\tscrollPositionRestoration: 'enabled',\r\n\t\trelativeLinkResolution: 'legacy'\r\n\t})],\r\n\texports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import {\r\n\tComponent,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { BasePageComponent } from '../../shared/components/base-page/base-page.component';\r\nimport {\r\n\tDestination,\r\n\tOpenDestination\r\n} from 'nr-common';\r\n\r\n@Component({\r\n\tselector: 'nr-opendestpage',\r\n\ttemplateUrl: './opendestpage.component.html',\r\n\tstyleUrls: ['./opendestpage.component.scss']\r\n})\r\nexport class OpendestpageComponent extends BasePageComponent implements OnInit {\r\n\tpublic destinations: Destination[];\r\n\tpublic openDestinations: OpenDestination[];\r\n\r\n\tconstructor(\r\n\t\tapiService: ApiService,\r\n\t\twebSiteService: WebsiteService,\r\n\t\ttitleService: Title,\r\n\t\ttranslateService: TranslateService,\r\n\t) {\r\n\t\tsuper(apiService, webSiteService, titleService, translateService);\r\n\t\tthis.pageName = 'opendestpage';\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tsuper.ngOnInit();\r\n\r\n\t\tthis.apiService.getDestinations().subscribe((data) => {\r\n\t\t\tthis.destinations = data;\r\n\t\t\t// console.log(\"opendestpage\", this.destinations);\r\n\t\t});\r\n\r\n\t\tthis.apiService.getOpenDestinations().subscribe((data) => {\r\n\t\t\tthis.openDestinations = data;\r\n\t\t\t// console.log(\"opendestpage\", this.openDestinations);\r\n\t\t});\r\n\t}\r\n\r\n}\r\n","import {\r\n\tComponent,\r\n\tInject,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\nimport {\r\n\tB2cArticle,\r\n\tOpenDestination\r\n} from 'nr-common';\r\n\r\nimport { ApiService } from '../../services/api.service';\r\nimport { DestinationService } from '../../services/destination.service';\r\nimport { GoogleAnalyticsService } from '../../services/google-analytics.service';\r\nimport { DOCUMENT } from '@angular/common';\r\n\r\n@Component({\r\n\tselector: 'nr-opendestpage-detail',\r\n\ttemplateUrl: './opendestpage-detail.component.html',\r\n\tstyleUrls: ['./opendestpage-detail.component.scss']\r\n})\r\nexport class OpendestpageDetailComponent implements OnInit {\r\n\tpublic article: B2cArticle;\r\n\t//public openDestinations: OpenDestination[];\r\n\tpublic openDestination: OpenDestination;\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tprivate activeRoute: ActivatedRoute,\r\n\t\tprivate destinationService: DestinationService,\r\n\t\tpublic translateService: TranslateService,\r\n private google: GoogleAnalyticsService,\r\n private title: Title,\r\n private router: Router,\r\n @Inject(DOCUMENT) private document: Document,\r\n\t) { }\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.activeRoute\r\n\t\t\t.params\r\n\t\t\t.subscribe(routeParams => {\r\n\t\t\t\tthis.apiService\r\n\t\t\t\t\t.getArticle(routeParams.id)\r\n\t\t\t\t\t.subscribe((data) => {\r\n\t\t\t\t\t\tthis.article = data;\r\n\r\n // OM 09.06.2023: setting the title of the page\r\n this.title.setTitle(data.title ? \"Naar Tour Operator - \" + data.title : \"Naar Tour Operator\");\r\n\r\n // OM 09.06.2023: Google Analytics\r\n this.google.tag(data.title,\r\n this.router.url,\r\n this.document.location.href);\r\n\r\n\t\t\t\t\t});\r\n\t\t\t\tthis.apiService\r\n\t\t\t\t\t.getOpenDestinations()\r\n\t\t\t\t\t.subscribe((data) => {\r\n\t\t\t\t\t\tthis.openDestination = data.find(f => f.destinazione?.luogoID == routeParams.ido);\t// this.openDestinations[this.article.luogoId];\r\n\t\t\t\t\t\t//this.openDestination = data.find(f => f.destinazione?.luogoID == this.article.luogoId);\t// this.openDestinations[this.article.luogoId];\r\n\t\t\t\t\t});\r\n\t\t\t\t//this.openDestination = this.destinationService.getOpenDestination(this.article.luogoId);\r\n\t\t\t});\r\n\t}\r\n\r\n}\r\n","
\r\n\t
\r\n\t\t\r\n\t
\r\n
\r\n","import {Component, HostListener, OnDestroy, OnInit} from '@angular/core';\r\nimport {TranslateService} from '@ngx-translate/core';\r\nimport {EOperatore, MenuData, UserService, WebsiteLanguage} from 'nr-common';\r\nimport {ApiService} from '../../../services/api.service';\r\nimport { WebsiteService } from '../../../services/website.service';\r\nimport { Subscription } from 'rxjs';\r\n\r\n//const MIN_SCROLL_THRESHOLD = 50;\r\n\r\n@Component({\r\n\tselector: 'nr-info-strip',\r\n\ttemplateUrl: './info-strip.component.html',\r\n\tstyleUrls: ['./info-strip.component.scss'],\r\n})\r\nexport class InfoStripComponent implements OnInit, OnDestroy {\r\n\tpublic hide: boolean;\r\n\tpublic menuVoices: MenuData[];\r\n\r\n //public EOperatore = EOperatore;\r\n //public currentOperator: EOperatore;\r\n\r\n public availableLanguages = [];\r\n\r\n private subscription = new Subscription();\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tpublic translate: TranslateService,\r\n\t\tpublic user: UserService,\r\n public websiteService: WebsiteService\r\n\t) {\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\r\n this.availableLanguages = this.websiteService.currentWebsite.availableLanguages;\r\n \r\n /* this.subscription.add(\r\n this.websiteService.currentOperator.subscribe((operator: EOperatore) => {\r\n this.currentOperator = operator;\r\n\r\n this.loadInfoStripContent();\r\n })\r\n ); */\r\n\r\n this.loadInfoStripContent();\r\n\t}\r\n\r\n private loadInfoStripContent() { \r\n this.menuVoices = this.websiteService.getInfostrip(); \r\n /* this.subscription.add(\r\n this.apiService.getInfostrip().subscribe((data: MenuData[]) => {\r\n this.menuVoices = data;\r\n })\r\n ); */\r\n }\r\n\r\n /* public setOperator(op: EOperatore, e: Event) {\r\n this.websiteService.setOperator(op, true);\r\n e?.preventDefault();\r\n } */\r\n\r\n public changeLanguage(language: WebsiteLanguage, event) {\r\n event.preventDefault();\r\n \r\n this.websiteService.setLanguage(language);\r\n }\r\n\r\n /* public getLaguageName(language: WebsiteLanguage): string {\r\n return this.translate.instant(\"ENUMS.ELingua.\" + language.linguaID);\r\n } */\r\n\r\n ngOnDestroy(): void {\r\n this.subscription.unsubscribe();\r\n }\r\n}\r\n","export class LoginUserData {\r\n\tpublic username: string;\r\n\tpublic password: string;\r\n}\r\n","
\r\n\t\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t
{{ 'LOGIN.UTENTE-OBBLIGATORIO'|translate }}
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
{{ 'LOGIN.PASSWORD-OBBLIGATORIA'|translate }}
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{{ 'NAV-BAR.REGISTRAZIONE-ADV' | translate }}\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t{{ 'NAV-BAR.RECUPERO-PASSWORD' | translate }}\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {Component, Input, OnInit, ViewChild} from '@angular/core';\r\nimport {ActivatedRoute, Router} from '@angular/router';\r\nimport {NgForm} from '@angular/forms';\r\nimport {TranslateService} from '@ngx-translate/core';\r\nimport {UserService} from 'nr-common';\r\nimport {Slide} from '../../shared/models/slide';\r\nimport {LoginUserData} from '../../shared/models/loginData';\r\nimport {environment} from 'projects/nr-b2c/src/environments/environment';\r\nimport {UrlService} from '../../services/url.service';\r\n\r\n@Component({\r\n\tselector: 'nr-login',\r\n\ttemplateUrl: './login.component.html',\r\n\tstyleUrls: ['./login.component.scss']\r\n})\r\nexport class LoginComponent implements OnInit {\r\n\t@Input() slides: Slide[] = [];\r\n\tmainSlide: Slide;\r\n\tpublic loginUserData: LoginUserData;\r\n\tpublic submitted = false;\r\n\tpublic working = false;\r\n\r\n\t@ViewChild('frmLogin', {static: true})\r\n\tprotected form: NgForm;\r\n\r\n\tconstructor(\r\n\t\tprivate user: UserService,\r\n\t\tprivate translate: TranslateService,\r\n\t\tprivate route: ActivatedRoute,\r\n\t\tprivate router: Router,\r\n\t\tprivate url: UrlService\r\n\t) {\r\n\t}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.mainSlide = this.getRandomSlide();\r\n\t\tthis.loginUserData = new LoginUserData();\r\n\t}\r\n\r\n\tpublic async doLogin() {\r\n\t\tthis.submitted = true;\r\n\t\tif (this.form.valid) {\r\n\t\t\tthis.working = true;\r\n\t\t\ttry {\r\n\t\t\t\tthis.form.control.disable();\r\n\t\t\t\tconst user = await this.user.login(this.loginUserData.username, this.loginUserData.password);\r\n\t\t\t\tthis.working = false;\r\n\t\t\t\tif (user) {\r\n\t\t\t\t\tif (this.route.snapshot.queryParamMap.has('returnUrl')) {\r\n\t\t\t\t\t\tawait this.router.navigate([this.route.snapshot.queryParamMap.get('returnUrl')]);\r\n\t\t\t\t\t} else {\r\n window.location.href = this.url.getIntranetAdvHomeUrlFromUser(user);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.loginUserData.password = null;\r\n\t\t\t\t\tthis.submitted = false;\r\n\t\t\t\t}\r\n\t\t\t} catch (e) {\r\n\t\t\t\tconsole.error(e);\r\n\t\t\t} finally {\r\n\t\t\t\tthis.working = false;\r\n\t\t\t\tthis.form.control.enable();\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tpublic doRegister() {\r\n\t\tlocation.href = environment.b2bIntranetUsrSignIn;\r\n\t}\r\n\r\n\tpublic doRecover() {\r\n\t\tlocation.href = environment.b2bIntranetPwdRecover;\r\n\t}\r\n\r\n\tgetRandomSlide(): Slide {\r\n\t\tif (this.slides.length === 0) return new Slide('./assets/img/logoNaar.png');\r\n\t\tconst randomIndex = Math.floor(Math.random() * this.slides.length);\r\n\t\treturn this.slides[randomIndex];\r\n\t}\r\n}\r\n","
\r\n\t\r\n\t\r\n
\r\n
\r\n\t
\r\n\t
\r\n\t\t
\r\n\t\t\t

Ricerca un viaggio

\r\n\t\t
\r\n\t\t\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n\r\n\r\n\t\r\n\r\n","import {Component, HostListener, OnInit} from '@angular/core';\r\nimport {ModalDismissReasons, NgbModal} from '@ng-bootstrap/ng-bootstrap';\r\nimport {EBannerType, EOperatore, MenuData, UserService} from 'nr-common';\r\nimport {ApiService} from '../../services/api.service';\r\nimport {BannerService} from '../../services/banner.service';\r\nimport {UrlService} from '../../services/url.service';\r\nimport {WebsiteService} from '../../services/website.service';\r\nimport {Slide} from '../../shared/models/slide';\r\nimport { OperatorLink } from '../../shared/models/operatorLink';\r\n\r\nconst MIN_SCROLL_THRESHOLD = 100;\r\n\r\n@Component({\r\n\tselector: 'nr-nav-bar',\r\n\ttemplateUrl: './nav-bar.component.html',\r\n\tstyleUrls: ['./nav-bar.component.scss'],\r\n})\r\nexport class NavBarComponent implements OnInit {\r\n\tpublic searchPanelState = false;\r\n\tpublic menuVoices: MenuData[];\r\n\tpublic closeResult = '';\r\n\tpublic solid = false;\r\n\tpublic onTop = false;\r\n\tpublic slides: Slide[] = [];\r\n\tpublic operatorPanelState: boolean = false;\r\n\tpublic currentOperator: EOperatore = EOperatore.Naar;\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tprivate modalService: NgbModal,\r\n\t\tpublic bannerService: BannerService,\r\n\t\tpublic user: UserService,\r\n\t\tpublic website: WebsiteService,\r\n\t\tpublic url: UrlService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\tthis.apiService.getMenu().subscribe((data: MenuData[]) => {\r\n\t\t\tthis.menuVoices = data;\r\n\t\t});\r\n\r\n\t\t// Carico tutti i banner disponibili\r\n\t\tthis.bannerService.getBanners().subscribe((data) => {\r\n\t\t\tif (data) {\r\n\t\t\t\tdata.filter((f) => f.bannerType === EBannerType.Offerta).forEach((banner) =>\r\n\t\t\t\t\tthis.slides.push(new Slide(banner.imgUrl, banner.title, banner.sunto, banner.id))\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.currentOperator = this.website.currentWebsite?.operatore;\r\n\t}\r\n\r\n\ttoggleSearchPanel(): void {\r\n\t\tthis.searchPanelState = !this.searchPanelState;\r\n\t}\r\n\r\n\ttoggleOperatorPanel(): void {\r\n\t\tthis.operatorPanelState = !this.operatorPanelState;\r\n\t}\r\n\r\n\tgetSearchPanelState(): string {\r\n\t\treturn this.searchPanelState ? 'box-collapse-open' : 'box-collapse-closed';\r\n\t}\r\n\r\n\tcloseSearchPanel(): void {\r\n\t\tthis.searchPanelState = false;\r\n\t}\r\n\r\n\t// getIcon(icon: string): string {\r\n\t// \tif (!icon || icon.length == 0)\r\n\t// \t\treturn 'fa fa-question';\r\n\t// \treturn icon;\r\n\t// }\r\n\r\n\topen(content) {\r\n\t\tthis.modalService\r\n\t\t\t.open(content, {\r\n\t\t\t\tariaLabelledBy: 'modal-basic-title',\r\n\t\t\t\tcentered: true,\r\n\t\t\t})\r\n\t\t\t.result.then(\r\n\t\t\t\t(result) => {\r\n\t\t\t\t\tthis.closeResult = `Closed with: ${result}`;\r\n\t\t\t\t},\r\n\t\t\t\t(reason) => {\r\n\t\t\t\t\tthis.closeResult = `Dismissed ${this.getDismissReason(reason)}`;\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t}\r\n\r\n\tprivate getDismissReason(reason: any): string {\r\n\t\tif (reason === ModalDismissReasons.ESC) {\r\n\t\t\treturn 'by pressing ESC';\r\n\t\t} else if (reason === ModalDismissReasons.BACKDROP_CLICK) {\r\n\t\t\treturn 'by clicking on a backdrop';\r\n\t\t} else {\r\n\t\t\treturn `with: ${reason}`;\r\n\t\t}\r\n\t}\r\n\r\n\tgetScrollClass(): string {\r\n\t\treturn 'navbar-solid';\r\n\t}\r\n\r\n\t@HostListener('window:scroll', ['$event'])\r\n\thandleScroll() {\r\n\t\tconst windowScroll = window.pageYOffset;\r\n\t\tthis.solid = windowScroll >= MIN_SCROLL_THRESHOLD;\r\n\t\t//this.onTop = (windowScroll >= MIN_SCROLL_THRESHOLD);\r\n\t}\r\n\r\n\tgetUserName() {\r\n\t\treturn this.user.currentUser?.displayName ? this.user.currentUser?.displayName : '';\r\n\t}\r\n\r\n\tgetUserId() {\r\n\t\treturn this.user.currentUser?.id ? this.user.currentUser.id : '';\r\n\t}\r\n\r\n\tpublic async doLogOut() {\r\n\t\tconst user = await this.user.logout();\r\n\t\t//location.href = '/';\r\n\t}\r\n\r\n\t/**\r\n\t * Restituisce il logo in HomePage con un parametro per evitare la cache\r\n\t * @returns string\r\n\t */\r\n\tgetDefaultLogo(): string {\r\n\t\tconst version = new Date();\r\n\t\tlet dateString: string =\r\n\t\t\tversion.getFullYear().toString() +\r\n\t\t\t(version.getMonth() + 1).toString().padStart(2, '0') +\r\n\t\t\tversion.getDate().toString().padStart(2, '0') +\r\n\t\t\tversion.getHours().toString().padStart(2, '0') +\r\n\t\t\tversion.getMinutes().toString().padStart(2, '0');\r\n\r\n\t\treturn `/assets/img/NAAR-Logo-HP-White.svg?v=${dateString}`;\r\n\t}\r\n}\r\n","
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

{{ 'COMPONENTS.FOOTER.CONTACTS.TITLE' | translate}}

\r\n

\r\n  {{this.footerContact.telefono}}
\r\n  {{this.footerContact.fax}}
\r\n  {{this.footerContact.email}}\r\n

\r\n

\r\n \r\n {{this.footerContact.nome}}
\r\n {{this.footerContact.indirizzo}}, {{this.footerContact.civico}}
\r\n {{this.footerContact.cap}} {{this.footerContact.citta}}, {{this.footerContact.paese}}
\r\n {{this.footerContact.note}}\r\n
\r\n

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
    \r\n\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t\t
  • \r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n
\r\n\t
\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\t© Copyright     {{ 'COMPONENTS.FOOTER.COPYRIGHT.ALL-RIGHT' | translate}}\r\n\t\t\t\t\t

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n","import {\r\n\tComponent,\r\n\tInput,\r\n\tOnDestroy,\r\n\tOnInit\r\n} from '@angular/core';\r\nimport {\r\n Contatto,\r\n EOperatore,\r\n GetPageFooterResponse,\r\n MenuData,\r\n\tPageContact,\r\n\tPageData,\r\n\tPageDataGeneric,\r\n PageLinkDetails\r\n} from 'nr-common';\r\nimport { environment } from 'projects/nr-b2c/src/environments/environment';\r\nimport { ApiService } from '../../services/api.service';\r\nimport { WebsiteService } from '../../services/website.service';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Subscription } from 'rxjs';\r\n\r\n@Component({\r\n\tselector: 'nr-footer',\r\n\ttemplateUrl: './footer.component.html',\r\n\tstyleUrls: ['./footer.component.scss'],\r\n})\r\nexport class FooterComponent implements OnInit, OnDestroy {\r\n\tpublic menuVoices: MenuData[];\r\n\tpublic footerData: PageData = null;\r\n\tpublic footerContact: PageContact = null;\r\n\r\n\tpublic readonly COLUMN_GENERAL: number = 1;\r\n\tpublic readonly COLUMN_INFO: number = 2;\r\n\r\n\tprivate footerLinkId: number = -1;\r\n\tprivate subscriptions = new Subscription();\r\n\r\n\tconstructor(\r\n\t\tprivate apiService: ApiService,\r\n\t\tpublic webSiteService: WebsiteService,\r\n\t\tprivate translateService: TranslateService\r\n\t) {}\r\n\r\n\tngOnInit(): void {\r\n\t\t// Subscribe to the current language change\r\n\t\tthis.subscriptions.add(\r\n\t\t\tthis.translateService.onLangChange.subscribe(() => {\r\n\t\t\t\t// Force reload of the footer content\r\n\t\t\t\tthis.loadFooterContent(true);\r\n\t\t\t})\r\n\t\t);\r\n\r\n\t\tthis.loadFooterContent();\r\n\t}\r\n\r\n\tprivate loadFooterContent(force: boolean = false) {\r\n\t\tconst newFooterLink = this.webSiteService.getFooterLinkId();\r\n\t\tif (force || this.footerData == null || newFooterLink != this.footerLinkId) {\r\n\t\t\tthis.footerLinkId = newFooterLink;\r\n\t\t\tif (this.footerLinkId == null || this.footerLinkId <= 0) {\r\n\t\t\t\tthis.footerData == null;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tthis.subscriptions.add(\r\n\t\t\t\tthis.apiService.getPageFooter(this.footerLinkId).subscribe((data: GetPageFooterResponse) => {\r\n\t\t\t\t\tthis.footerData = data.footerData;\r\n\t\t\t\t\tthis.footerContact = data.contactInfo;\r\n\t\t\t\t})\r\n\t\t\t);\r\n\t\t}\r\n\t}\r\n\r\n\tpublic hasFooterContact(): boolean {\r\n\t\treturn this.footerContact != null;\r\n\t}\r\n\r\n\tpublic hasFax(): boolean {\r\n\t\treturn this.footerContact != null && this.footerContact.fax != null;\r\n\t}\r\n\r\n\tpublic hasPhone(): boolean {\r\n\t\treturn this.footerContact != null && this.footerContact.telefono != null;\r\n\t}\r\n\r\n\tpublic hasEmail(): boolean {\r\n\t\treturn this.footerContact != null && this.footerContact.email != null;\r\n\t}\r\n\r\n\tpublic getArticleLink(id: number): string {\r\n\t\treturn `/article/${id}`;\r\n\t}\r\n\r\n\tpublic getArticleName(name: string): string {\r\n\t\treturn name;\r\n\t\t// Spengo la funzione che metteva in maiuscolo SOLO la prima lettera.\r\n\t\t// Lasciando TOTALMENTE in balia della stesura dell'articolo il CASE dello stesso\r\n\t\t// name = '' + name;\r\n\t\t// return name.charAt(0).toUpperCase() + name.substring(1).toLowerCase();\r\n\t}\r\n\r\n\tpublic getFooterColumn(columIndex: number): PageDataGeneric[] {\r\n\t\tif (this.footerData == null) return [];\r\n\r\n\t\tlet result: PageDataGeneric[] = [];\r\n\t\tif (this.footerData.elencoDati) {\r\n\t\t\tresult = this.footerData.elencoDati.filter((e) => {\r\n\t\t\t\tif (e.group === columIndex) {\r\n\t\t\t\t\treturn e;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}\r\n\r\n\tpublic isPrivacyLink(item: PageDataGeneric): boolean {\r\n\t\treturn item.entityId == environment.DINAMIC_COOKIES_ARTICLE_ID;\r\n\t}\r\n\r\n\t/* openPrivacyLink(item: PageDataGeneric) {\r\n\t\tconst url: string = `/article/${item.entityId}`;\r\n\t\twindow.open(url, \"_blank\");\r\n\t} */\r\n\r\n\tngOnDestroy(): void {\r\n\t\tthis.subscriptions.unsubscribe();\r\n\t}\r\n\r\n\t// Prmette la visualizzazione dei social link solo per l'operatore Naar\r\n\t// TODO: Da verificare se è possibile fare un controllo\r\n\t// TODO: che gestisca i link social dei vari operatori\r\n\t// TODO: attivabili tramite i dati aggiuntivi\r\n\t// TODO: tipoDatoAggiuntivo: 95 - Social Link\r\n\tpublic hasSocialLinks(): boolean {\r\n\t\treturn this.webSiteService.currentWebsite.operatore === EOperatore.Naar;\r\n\t}\r\n}\r\n","import { Component, Inject, OnDestroy, Renderer2 } from '@angular/core';\r\nimport { TranslateService } from '@ngx-translate/core';\r\nimport { Subscription } from 'rxjs';\r\n\r\nimport { EOperatore, Languages, UserService } from 'nr-common';\r\n\r\nimport { environment } from '../environments/environment';\r\nimport { WebsiteService } from './services/website.service';\r\nimport { GoogleAnalyticsService } from './services/google-analytics.service';\r\nimport { ActivatedRoute } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'app-root',\r\n templateUrl: './app.component.html',\r\n styleUrls: ['./app.component.scss']\r\n})\r\nexport class AppComponent implements OnDestroy {\r\n\r\n //#s1: Subscription;\r\n\r\n constructor(\r\n translate: TranslateService,\r\n private websiteService: WebsiteService,\r\n user: UserService,\r\n private google: GoogleAnalyticsService,\r\n router: ActivatedRoute\r\n ) {\r\n\r\n // OM 08.06.2023: Google Analytics\r\n this.google.init(user);\r\n\r\n translate.addLangs(['it', 'en', 'fr', 'es', 'de', 'nl']);\r\n // translate.setDefaultLang('de');\r\n // translate.setDefaultLang('es');\r\n // translate.setDefaultLang('en');\r\n // translate.setDefaultLang('fr');\r\n translate.setDefaultLang('it');\r\n\r\n /* const url = window.location.href;\r\n websiteService.setOperatorByUrl(url); */\r\n \r\n /* // Così si imposta prima che vengano caricati i contenuti\r\n this.#s1 = user\r\n .currentLang$\r\n .subscribe(lang => {\r\n translate.use(lang);\r\n }) */\r\n \r\n }\r\n \r\n ngOnDestroy(): void {\r\n //this.#s1?.unsubscribe();\r\n }\r\n}\r\n","\r\n\r\n
\r\n\t\r\n
\r\n\r\n\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { TripCardComponent } from './components/trip-card/trip-card.component';\r\nimport { BasePageComponent } from './components/base-page/base-page.component';\r\nimport { DestinationCardComponent } from './components/destination-card/destination-card.component';\r\nimport { DestinationsListComponent } from './components/destinations-list/destinations-list.component';\r\nimport { IdeasListComponent } from './components/ideas-list/ideas-list.component';\r\nimport { BannerCardComponent } from './components/banner-card/banner-card.component';\r\nimport { InfoStripComponent } from './components/info-strip/info-strip.component';\r\nimport { NrFlagsComponent } from './components/nr-flags/nr-flags.component';\r\nimport { AppRoutingModule } from '../app-routing.module';\r\nimport { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';\r\nimport { RibbonComponent } from './components/ribbon/ribbon.component';\r\n\r\n//import { WidgetCardComponent } from './components/widget-card/widget-card.component';\r\n\r\n@NgModule({\r\n\tdeclarations: [\r\n\t\tTripCardComponent,\r\n\t\tBasePageComponent,\r\n\t\tDestinationCardComponent,\r\n\t\tDestinationsListComponent,\r\n\t\tIdeasListComponent,\r\n\t\tBannerCardComponent,\r\n\t\tInfoStripComponent,\r\n\t\tNrFlagsComponent,\r\n\t\tRibbonComponent,\r\n //WidgetCardComponent\r\n\t],\r\n\timports: [\r\n\t\tCommonModule,\r\n\t\tRouterModule,\r\n\t\tTranslateModule,\r\n\t\tAppRoutingModule,\r\n\t\tNgbDropdownModule\r\n\t],\r\n\texports: [\r\n\t\tTripCardComponent,\r\n\t\tDestinationCardComponent,\r\n\t\tDestinationsListComponent,\r\n\t\tIdeasListComponent,\r\n\t\tBannerCardComponent,\r\n\t\tInfoStripComponent,\r\n\t\tNrFlagsComponent,\r\n\t\tRibbonComponent,\r\n //WidgetCardComponent\r\n\t]\r\n})\r\nexport class SharedModule { }\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { HttpClientModule } from '@angular/common/http';\r\n\r\nimport { BROWSER_GLOBALS_PROVIDERS } from './utils/browser-globals';\r\nimport { MAPS_API_CONFIG, MapsAPILoader, MapsAPILoaderConfig } from './utils/maps-api-loader';\r\n\r\nimport { NrMaps } from './directives/nr-maps';\r\nimport { NrMarker } from './directives/nr-marker';\r\nimport { NrInfoWindow } from './directives/nr-info-window';\r\nimport { \r\n NrAerialView, \r\n NrCircle, \r\n NrFitBounds, \r\n NrPolygon, \r\n NrPolyline, \r\n NrPolylineIcon, \r\n NrPolylinePoint, \r\n NrRectangle,\r\n NrFullscreenControl, \r\n NrMapTypeControl, \r\n NrPanControl, \r\n NrRotateControl, \r\n NrScaleControl, \r\n NrStreetViewControl, \r\n NrZoomControl,\r\n} from './directives';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NrMapsRoute } from './directives/nr-route';\r\n\r\nconst CORE = [\r\n NrMaps,\r\n NrMarker,\r\n NrInfoWindow,\r\n NrPolyline,\r\n NrPolylinePoint,\r\n NrPolylineIcon,\r\n NrPolygon,\r\n NrCircle,\r\n NrRectangle,\r\n NrMapsRoute,\r\n NrFitBounds,\r\n NrAerialView,\r\n NrFullscreenControl,\r\n NrMapTypeControl,\r\n NrPanControl,\r\n NrRotateControl,\r\n NrScaleControl,\r\n NrStreetViewControl,\r\n NrZoomControl\r\n]\r\n\r\n@NgModule({\r\n declarations: [\r\n ...CORE\r\n ],\r\n imports: [\r\n HttpClientModule,\r\n CommonModule\r\n ],\r\n exports: [\r\n ...CORE\r\n ],\r\n})\r\nexport class NrMapsModule {\r\n /**\r\n * Please use this method when you register the module at the root level.\r\n */\r\n static forRoot(mapsAPILoaderConfig?: MapsAPILoaderConfig): ModuleWithProviders {\r\n return {\r\n ngModule: NrMapsModule,\r\n providers: [\r\n ...BROWSER_GLOBALS_PROVIDERS,\r\n { provide: MapsAPILoader, useClass: MapsAPILoader },\r\n { provide: MAPS_API_CONFIG, useValue: mapsAPILoaderConfig }\r\n ],\r\n };\r\n }\r\n}\r\n","import { CommonModule } from \"@angular/common\";\r\nimport { NgModule } from \"@angular/core\";\r\nimport { RouterModule } from \"@angular/router\";\r\nimport {\r\n\tFormsModule,\r\n\tReactiveFormsModule\r\n} from \"@angular/forms\";\r\nimport { TranslateModule } from \"@ngx-translate/core\";\r\nimport { SlickCarouselModule } from 'ngx-slick-carousel';\r\nimport { AppRoutingModule } from \"../app-routing.module\";\r\nimport { SharedModule } from \"../shared/shared.module\";\r\nimport { AboutpageComponent } from \"./aboutpage/aboutpage.component\";\r\n// import { ContactspageComponent } from \"./contactspage/contactspage.component\";\r\nimport { DestinationpageComponent } from \"./destinationpage/destinationpage.component\";\r\nimport { DestinationspageComponent } from \"./destinationspage/destinationspage.component\";\r\nimport { FooterComponent } from \"./footer/footer.component\";\r\nimport { HomepageComponent } from \"./homepage/homepage.component\";\r\nimport { IdeaspageComponent } from \"./ideaspage/ideaspage.component\";\r\nimport { NavBarComponent } from \"./nav-bar/nav-bar.component\";\r\nimport { OfferspageComponent } from \"./offerspage/offerspage.component\";\r\nimport { PartnerspageComponent } from \"./partnerspage/partnerspage.component\";\r\nimport { IdeapageComponent } from './ideapage/ideapage.component';\r\nimport { TrippageComponent } from './trippage/trippage.component';\r\nimport { TappeComponent } from './trippage/tappe/tappe.component';\r\nimport { MappaComponent } from './trippage/mappa/mappa.component';\r\nimport { AttributiComponent } from './trippage/attributi/attributi.component';\r\n// import { ContactListComponent } from './contactspage/contact-list/contact-list.component';\r\n// import { ContactFormComponent } from \"./contactspage/contact-form/contact-form.component\";\r\nimport {\r\n\tNgbCarouselModule,\r\n\tNgbDropdownModule,\r\n\tNgbModalModule,\r\n\tNgbModule\r\n} from \"@ng-bootstrap/ng-bootstrap\";\r\nimport { ArticlepageComponent } from './articlepage/articlepage.component';\r\nimport { OpendestpageComponent } from './opendestpage/opendestpage.component';\r\nimport { OpendestCardComponent } from './opendest-card/opendest-card.component';\r\nimport { LoginComponent } from './login/login.component';\r\nimport { OpendestpageDetailComponent } from './opendestpage-detail/opendestpage-detail.component';\r\nimport { NrCommonModule } from 'nr-common';\r\nimport { NrMapsModule } from \"nr-maps\";\r\n\r\n@NgModule({\r\n\timports: [\r\n\t\tSharedModule,\r\n\t\tAppRoutingModule,\r\n\t\tCommonModule,\r\n\t\tRouterModule,\r\n\t\tTranslateModule,\r\n\t\tSlickCarouselModule,\r\n\t\tFormsModule,\r\n\t\tReactiveFormsModule,\r\n NrMapsModule,\r\n\t\tNgbCarouselModule,\r\n\t\tNgbDropdownModule,\r\n\t\tNgbModalModule,\r\n\t\tNgbModule,\r\n\t\tNrCommonModule\r\n\t],\r\n\tdeclarations: [\r\n\t\tHomepageComponent,\r\n\t\tNavBarComponent,\r\n\t\tFooterComponent,\r\n\t\tDestinationpageComponent,\r\n\t\tDestinationspageComponent,\r\n\t\tIdeaspageComponent,\r\n\t\tOfferspageComponent,\r\n\t\t// ContactspageComponent,\r\n\t\tPartnerspageComponent,\r\n\t\tAboutpageComponent,\r\n\t\tIdeapageComponent,\r\n\t\tTrippageComponent,\r\n\t\tTappeComponent,\r\n\t\tMappaComponent,\r\n\t\tAttributiComponent,\r\n\t\tArticlepageComponent,\r\n\t\tOpendestpageComponent,\r\n\t\tOpendestCardComponent,\r\n\t\tLoginComponent,\r\n OpendestpageDetailComponent,\r\n\t\t// ContactListComponent,\r\n\t\t// ContactFormComponent\r\n\t],\r\n\texports: [\r\n\t\tHomepageComponent,\r\n\t\tNavBarComponent,\r\n\t\tFooterComponent,\r\n\t\tDestinationpageComponent,\r\n\t\tDestinationspageComponent,\r\n\t\tIdeaspageComponent,\r\n\t\tOfferspageComponent,\r\n\t\t// ContactspageComponent,\r\n\t\tPartnerspageComponent,\r\n\t\tAboutpageComponent,\r\n\t\tIdeapageComponent,\r\n\t\tTrippageComponent,\r\n\t\tTranslateModule\r\n\t],\r\n\tentryComponents: [LoginComponent]\r\n})\r\nexport class ComponentsModule { }\r\n","import {APP_INITIALIZER, Injector, NgModule} from '@angular/core';\r\nimport {BrowserModule, Title} from '@angular/platform-browser';\r\nimport {NgbDropdownModule, NgbModule} from '@ng-bootstrap/ng-bootstrap';\r\nimport {AppRoutingModule} from './app-routing.module';\r\nimport {AppComponent} from './app.component';\r\nimport {MissingTranslationHandler, MissingTranslationHandlerParams, TranslateCompiler, TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core';\r\nimport {MESSAGE_FORMAT_CONFIG, TranslateMessageFormatCompiler} from 'ngx-translate-messageformat-compiler';\r\nimport {HttpClient, HttpClientModule, HttpHeaders} from '@angular/common/http';\r\nimport {environment} from '../environments/environment';\r\nimport {BackendService, BaseDataService, ConfigService, HandleMissingLabel, UserService} from 'nr-common';\r\nimport {BrowserAnimationsModule} from '@angular/platform-browser/animations';\r\nimport {ComponentsModule} from './components/components.module';\r\nimport {ApiService} from './services/api.service';\r\nimport {BannerService} from './services/banner.service';\r\nimport {DestinationService} from './services/destination.service';\r\nimport {IdeaService} from './services/idea.service';\r\nimport {TripService} from './services/trip.service';\r\nimport {WebsiteService} from './services/website.service';\r\nimport {LOCATION_INITIALIZED, registerLocaleData} from '@angular/common';\r\nimport {defineLocale} from 'ngx-bootstrap/chronos';\r\nimport {\r\n\tdeLocale,\r\n\tenGbLocale,\r\n\tesLocale,\r\n\tfrLocale,\r\n\titLocale,\r\n nlBeLocale\r\n} from 'ngx-bootstrap/locale';\r\nimport localeIt from '@angular/common/locales/it';\r\nimport localeFr from '@angular/common/locales/fr';\r\nimport localeEn from '@angular/common/locales/en';\r\nimport localeDe from '@angular/common/locales/de';\r\nimport localeEs from '@angular/common/locales/es';\r\nimport localeNl from '@angular/common/locales/nl';\r\nimport * as moment from 'moment';\r\nimport { NrMapsModule } from 'nr-maps';\r\nimport { Observable } from 'rxjs';\r\n\r\nexport function userFactory(\r\n\tconfig: ConfigService,\r\n\tuser: UserService,\r\n\twebsite: WebsiteService\r\n) {\r\n\tregisterLocaleData(localeIt, 'it');\r\n\tregisterLocaleData(localeFr, 'fr');\r\n\tregisterLocaleData(localeEn, 'en');\r\n\tregisterLocaleData(localeDe, 'de');\r\n\tregisterLocaleData(localeEs, 'es');\r\n\tregisterLocaleData(localeNl, 'nl');\r\n\tdefineLocale('it', itLocale);\r\n\tdefineLocale('de', deLocale);\r\n\tdefineLocale('es', esLocale);\r\n\tdefineLocale('fr', frLocale);\r\n\tdefineLocale('en', enGbLocale);\r\n\tdefineLocale('nl', nlBeLocale);\r\n\t\r\n moment.locale('it');\r\n\t\r\n config.from(environment);\r\n\t\r\n const p1 = user.init();\r\n const p2 = website.init();\r\n\treturn () => Promise.all([p1, p2]);\r\n}\r\n\r\n//#region Translation customization\r\n//? Aggiunta per risolvere gli errori con il translate.instant\r\nexport function appInitializerFactory(translate: TranslateService, injector: Injector) {\r\n\treturn async () => {\r\n\t\tawait injector.get(LOCATION_INITIALIZED, Promise.resolve(null));\r\n\t\t\r\n\t\tconst langToSet = translate.currentLang;\r\n\t\ttry {\r\n\t\t\tawait translate.use(langToSet).toPromise();\r\n\t\t} catch (err) {\r\n\t\t\tconsole.error(`Problem with '${langToSet}' language initialization: ${err}`);\r\n\t\t}\r\n\t};\r\n}\r\n\r\nexport class CustomTranslateLoader implements TranslateLoader {\r\n\tpublic contentHeader = new HttpHeaders({ 'Content-Type': 'application/json', 'Access-Control-Allow-Origin': '*' });\r\n\r\n\tpublic constructor(private http: HttpClient) {}\r\n\r\n\tpublic getTranslation(langCode: string): Observable {\r\n\t\tvar apiAddress = `${environment.servicesEndpointRoot}${environment.i18nFiles}b2c/${langCode}`;\r\n\t\treturn this.http.post(apiAddress, {}, { headers: this.contentHeader, withCredentials: true });\r\n\t}\r\n}\r\n\r\nexport class CustomMissingTranslationHandler implements MissingTranslationHandler {\r\n\tprivate missingKeys = new Set();\r\n\r\n\tpublic constructor(\r\n\t\tprivate backend: BackendService,\r\n\t) {\r\n\t}\r\n\r\n\thandle(params: MissingTranslationHandlerParams) {\r\n\t\tconst key = params.key;\r\n\t\tif (this.missingKeys.has(key)) {\r\n\t\t\treturn key;\r\n\t\t}\r\n\r\n\t\tthis.missingKeys.add(key);\r\n\r\n\t\tHandleMissingLabel('b2c', params, this.backend);\r\n\r\n\t\treturn key;\r\n\t}\r\n}\r\n//#endregion Translation customization\r\n\r\n@NgModule({\r\n\tdeclarations: [AppComponent],\r\n\timports: [\r\n\t\tBrowserModule,\r\n\t\tAppRoutingModule,\r\n\t\tNgbModule,\r\n\t\tNgbDropdownModule,\r\n\t\tHttpClientModule,\r\n\t\tTranslateModule.forRoot({\r\n\t\t\tloader: {\r\n\t\t\t\tprovide: TranslateLoader,\r\n\t\t\t\tuseClass: CustomTranslateLoader,\r\n\t\t\t\tdeps: [HttpClient],\r\n\t\t\t},\r\n\t\t\tcompiler: {\r\n\t\t\t\tprovide: TranslateCompiler,\r\n\t\t\t\tuseClass: TranslateMessageFormatCompiler,\r\n\t\t\t},\r\n\t\t\tmissingTranslationHandler: {\r\n\t\t\t\tprovide: MissingTranslationHandler,\r\n\t\t\t\tuseClass: CustomMissingTranslationHandler,\r\n\t\t\t\tdeps: [BackendService],\r\n\t\t\t},\r\n\t\t}),\r\n\t\tBrowserAnimationsModule,\r\n\t\tNrMapsModule.forRoot({\r\n\t\t\tapiKey: environment.googleMapsApiKey,\r\n\t\t}),\r\n\t\tComponentsModule,\r\n\t],\r\n\tproviders: [\r\n\t\tApiService,\r\n\t\tBannerService,\r\n\t\tBaseDataService,\r\n\t\tDestinationService,\r\n\t\tIdeaService,\r\n\t\tTitle,\r\n\t\tWebsiteService,\r\n //WidgetService,\r\n\t\tTripService,\r\n\t\t{\r\n\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\tuseFactory: userFactory,\r\n\t\t\t// useFactory: (\r\n\t\t\t// \tconfigService: ConfigService,\r\n\t\t\t// \tuserService: UserService,\r\n\t\t\t// \twebsite: WebsiteService\r\n\t\t\t// ) => {\r\n\t\t\t// \tconfigService.from(environment);\r\n\t\t\t// \tconst p1 = userService.init();\r\n\t\t\t// \tconst p2 = website.init();\r\n\t\t\t// \treturn () => Promise.all([p1, p2]);\r\n\t\t\t// },\r\n\t\t\tdeps: [ConfigService, UserService, WebsiteService],\r\n\t\t\tmulti: true,\r\n\t\t},\r\n\t\t{\r\n\t\t\tprovide: APP_INITIALIZER,\r\n\t\t\tuseFactory: appInitializerFactory,\r\n\t\t\tdeps: [TranslateService, Injector],\r\n\t\t\tmulti: true\r\n\t\t},\r\n\t\t{\r\n\t\t\tprovide: MESSAGE_FORMAT_CONFIG,\r\n\t\t\tuseValue: {locales: ['it', 'en', 'fr', 'de', 'es', 'nl']},\r\n\t\t},\r\n\t],\r\n\tbootstrap: [AppComponent],\r\n})\r\nexport class AppModule {\r\n}\r\n\r\n/**\r\n\thttps://github.com/ngx-translate/core#installation\r\n\thttps://www.codeandweb.com/babeledit/tutorials/how-to-translate-your-angular-app-with-ngx-translate\r\n\thttps://www.codeandweb.com/babeledit\t*** Editor che tiene sincronizzati i file multilingua\r\n */\r\n","import { enableProdMode } from '@angular/core';\r\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\r\n\r\nimport { AppModule } from './app/app.module';\r\nimport { environment } from './environments/environment';\r\n\r\nif (environment.production) {\r\n\tenableProdMode();\r\n}\r\n\r\nplatformBrowserDynamic()\r\n\t.bootstrapModule(AppModule)\r\n\t.catch((err) => console.error(err));\r\n","var map = {\n\t\"./af\": 8685,\n\t\"./af.js\": 8685,\n\t\"./ar\": 254,\n\t\"./ar-dz\": 4312,\n\t\"./ar-dz.js\": 4312,\n\t\"./ar-kw\": 2614,\n\t\"./ar-kw.js\": 2614,\n\t\"./ar-ly\": 8630,\n\t\"./ar-ly.js\": 8630,\n\t\"./ar-ma\": 8674,\n\t\"./ar-ma.js\": 8674,\n\t\"./ar-sa\": 9032,\n\t\"./ar-sa.js\": 9032,\n\t\"./ar-tn\": 4730,\n\t\"./ar-tn.js\": 4730,\n\t\"./ar.js\": 254,\n\t\"./az\": 3052,\n\t\"./az.js\": 3052,\n\t\"./be\": 150,\n\t\"./be.js\": 150,\n\t\"./bg\": 3069,\n\t\"./bg.js\": 3069,\n\t\"./bm\": 3466,\n\t\"./bm.js\": 3466,\n\t\"./bn\": 8516,\n\t\"./bn-bd\": 557,\n\t\"./bn-bd.js\": 557,\n\t\"./bn.js\": 8516,\n\t\"./bo\": 6273,\n\t\"./bo.js\": 6273,\n\t\"./br\": 9588,\n\t\"./br.js\": 9588,\n\t\"./bs\": 9815,\n\t\"./bs.js\": 9815,\n\t\"./ca\": 3331,\n\t\"./ca.js\": 3331,\n\t\"./cs\": 1320,\n\t\"./cs.js\": 1320,\n\t\"./cv\": 2219,\n\t\"./cv.js\": 2219,\n\t\"./cy\": 8266,\n\t\"./cy.js\": 8266,\n\t\"./da\": 6427,\n\t\"./da.js\": 6427,\n\t\"./de\": 7435,\n\t\"./de-at\": 2871,\n\t\"./de-at.js\": 2871,\n\t\"./de-ch\": 2994,\n\t\"./de-ch.js\": 2994,\n\t\"./de.js\": 7435,\n\t\"./dv\": 2357,\n\t\"./dv.js\": 2357,\n\t\"./el\": 5649,\n\t\"./el.js\": 5649,\n\t\"./en-au\": 9961,\n\t\"./en-au.js\": 9961,\n\t\"./en-ca\": 9878,\n\t\"./en-ca.js\": 9878,\n\t\"./en-gb\": 3924,\n\t\"./en-gb.js\": 3924,\n\t\"./en-ie\": 864,\n\t\"./en-ie.js\": 864,\n\t\"./en-il\": 1579,\n\t\"./en-il.js\": 1579,\n\t\"./en-in\": 940,\n\t\"./en-in.js\": 940,\n\t\"./en-nz\": 6181,\n\t\"./en-nz.js\": 6181,\n\t\"./en-sg\": 4301,\n\t\"./en-sg.js\": 4301,\n\t\"./eo\": 5291,\n\t\"./eo.js\": 5291,\n\t\"./es\": 4529,\n\t\"./es-do\": 3764,\n\t\"./es-do.js\": 3764,\n\t\"./es-mx\": 2584,\n\t\"./es-mx.js\": 2584,\n\t\"./es-us\": 3425,\n\t\"./es-us.js\": 3425,\n\t\"./es.js\": 4529,\n\t\"./et\": 5203,\n\t\"./et.js\": 5203,\n\t\"./eu\": 678,\n\t\"./eu.js\": 678,\n\t\"./fa\": 3483,\n\t\"./fa.js\": 3483,\n\t\"./fi\": 6262,\n\t\"./fi.js\": 6262,\n\t\"./fil\": 2521,\n\t\"./fil.js\": 2521,\n\t\"./fo\": 4555,\n\t\"./fo.js\": 4555,\n\t\"./fr\": 3131,\n\t\"./fr-ca\": 8239,\n\t\"./fr-ca.js\": 8239,\n\t\"./fr-ch\": 1702,\n\t\"./fr-ch.js\": 1702,\n\t\"./fr.js\": 3131,\n\t\"./fy\": 267,\n\t\"./fy.js\": 267,\n\t\"./ga\": 3821,\n\t\"./ga.js\": 3821,\n\t\"./gd\": 1753,\n\t\"./gd.js\": 1753,\n\t\"./gl\": 4074,\n\t\"./gl.js\": 4074,\n\t\"./gom-deva\": 2762,\n\t\"./gom-deva.js\": 2762,\n\t\"./gom-latn\": 5969,\n\t\"./gom-latn.js\": 5969,\n\t\"./gu\": 2809,\n\t\"./gu.js\": 2809,\n\t\"./he\": 5402,\n\t\"./he.js\": 5402,\n\t\"./hi\": 315,\n\t\"./hi.js\": 315,\n\t\"./hr\": 410,\n\t\"./hr.js\": 410,\n\t\"./hu\": 8288,\n\t\"./hu.js\": 8288,\n\t\"./hy-am\": 8999,\n\t\"./hy-am.js\": 8999,\n\t\"./id\": 1334,\n\t\"./id.js\": 1334,\n\t\"./is\": 6959,\n\t\"./is.js\": 6959,\n\t\"./it\": 4864,\n\t\"./it-ch\": 1124,\n\t\"./it-ch.js\": 1124,\n\t\"./it.js\": 4864,\n\t\"./ja\": 6141,\n\t\"./ja.js\": 6141,\n\t\"./jv\": 9187,\n\t\"./jv.js\": 9187,\n\t\"./ka\": 2136,\n\t\"./ka.js\": 2136,\n\t\"./kk\": 4332,\n\t\"./kk.js\": 4332,\n\t\"./km\": 8607,\n\t\"./km.js\": 8607,\n\t\"./kn\": 4305,\n\t\"./kn.js\": 4305,\n\t\"./ko\": 234,\n\t\"./ko.js\": 234,\n\t\"./ku\": 6003,\n\t\"./ku.js\": 6003,\n\t\"./ky\": 5061,\n\t\"./ky.js\": 5061,\n\t\"./lb\": 2786,\n\t\"./lb.js\": 2786,\n\t\"./lo\": 6183,\n\t\"./lo.js\": 6183,\n\t\"./lt\": 29,\n\t\"./lt.js\": 29,\n\t\"./lv\": 4169,\n\t\"./lv.js\": 4169,\n\t\"./me\": 8577,\n\t\"./me.js\": 8577,\n\t\"./mi\": 8177,\n\t\"./mi.js\": 8177,\n\t\"./mk\": 337,\n\t\"./mk.js\": 337,\n\t\"./ml\": 5260,\n\t\"./ml.js\": 5260,\n\t\"./mn\": 2325,\n\t\"./mn.js\": 2325,\n\t\"./mr\": 4695,\n\t\"./mr.js\": 4695,\n\t\"./ms\": 5334,\n\t\"./ms-my\": 7151,\n\t\"./ms-my.js\": 7151,\n\t\"./ms.js\": 5334,\n\t\"./mt\": 3570,\n\t\"./mt.js\": 3570,\n\t\"./my\": 7963,\n\t\"./my.js\": 7963,\n\t\"./nb\": 8028,\n\t\"./nb.js\": 8028,\n\t\"./ne\": 6638,\n\t\"./ne.js\": 6638,\n\t\"./nl\": 302,\n\t\"./nl-be\": 6782,\n\t\"./nl-be.js\": 6782,\n\t\"./nl.js\": 302,\n\t\"./nn\": 3501,\n\t\"./nn.js\": 3501,\n\t\"./oc-lnc\": 563,\n\t\"./oc-lnc.js\": 563,\n\t\"./pa-in\": 869,\n\t\"./pa-in.js\": 869,\n\t\"./pl\": 5302,\n\t\"./pl.js\": 5302,\n\t\"./pt\": 9687,\n\t\"./pt-br\": 4884,\n\t\"./pt-br.js\": 4884,\n\t\"./pt.js\": 9687,\n\t\"./ro\": 9107,\n\t\"./ro.js\": 9107,\n\t\"./ru\": 3627,\n\t\"./ru.js\": 3627,\n\t\"./sd\": 355,\n\t\"./sd.js\": 355,\n\t\"./se\": 3427,\n\t\"./se.js\": 3427,\n\t\"./si\": 1848,\n\t\"./si.js\": 1848,\n\t\"./sk\": 4590,\n\t\"./sk.js\": 4590,\n\t\"./sl\": 184,\n\t\"./sl.js\": 184,\n\t\"./sq\": 6361,\n\t\"./sq.js\": 6361,\n\t\"./sr\": 8965,\n\t\"./sr-cyrl\": 1287,\n\t\"./sr-cyrl.js\": 1287,\n\t\"./sr.js\": 8965,\n\t\"./ss\": 5456,\n\t\"./ss.js\": 5456,\n\t\"./sv\": 451,\n\t\"./sv.js\": 451,\n\t\"./sw\": 7558,\n\t\"./sw.js\": 7558,\n\t\"./ta\": 2702,\n\t\"./ta.js\": 2702,\n\t\"./te\": 3693,\n\t\"./te.js\": 3693,\n\t\"./tet\": 1243,\n\t\"./tet.js\": 1243,\n\t\"./tg\": 2500,\n\t\"./tg.js\": 2500,\n\t\"./th\": 5768,\n\t\"./th.js\": 5768,\n\t\"./tk\": 7761,\n\t\"./tk.js\": 7761,\n\t\"./tl-ph\": 5780,\n\t\"./tl-ph.js\": 5780,\n\t\"./tlh\": 9590,\n\t\"./tlh.js\": 9590,\n\t\"./tr\": 3807,\n\t\"./tr.js\": 3807,\n\t\"./tzl\": 3857,\n\t\"./tzl.js\": 3857,\n\t\"./tzm\": 654,\n\t\"./tzm-latn\": 8806,\n\t\"./tzm-latn.js\": 8806,\n\t\"./tzm.js\": 654,\n\t\"./ug-cn\": 845,\n\t\"./ug-cn.js\": 845,\n\t\"./uk\": 9232,\n\t\"./uk.js\": 9232,\n\t\"./ur\": 7052,\n\t\"./ur.js\": 7052,\n\t\"./uz\": 7967,\n\t\"./uz-latn\": 2233,\n\t\"./uz-latn.js\": 2233,\n\t\"./uz.js\": 7967,\n\t\"./vi\": 8615,\n\t\"./vi.js\": 8615,\n\t\"./x-pseudo\": 2320,\n\t\"./x-pseudo.js\": 2320,\n\t\"./yo\": 1313,\n\t\"./yo.js\": 1313,\n\t\"./zh-cn\": 4490,\n\t\"./zh-cn.js\": 4490,\n\t\"./zh-hk\": 5910,\n\t\"./zh-hk.js\": 5910,\n\t\"./zh-mo\": 8262,\n\t\"./zh-mo.js\": 8262,\n\t\"./zh-tw\": 4223,\n\t\"./zh-tw.js\": 4223\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 6700;"],"x_google_ignoreList":[110]}