{"version":3,"file":"app-d91a9049.47e839c4edc29ae0ca22.bundle.js","mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACJA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACHA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAgBA;AAEA;AAEA;AACA;AACA;AACA;AAvBA;AA0BA;AAAA;AACA;;AAAA;;AAAA;;;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;;;;;AACA;;AAAA;AACA;;;;;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;;;AAAA;AAEA;;;;;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;;;;;;AAEA;AAEA;AAAA;AACA;AACA;AAEA;AAAA;AACA;AACA;;;AAAA;AAEA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;;;AAAA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAAA;AAtKA;AAAA;;AAAA;AACA;AAAA;;AAAA;AAIA;AAFA;AACA;AACA;AAAA;AAAA;AAEA;AAAA;;AAAA;AAEA;AAAA;;AAAA;AAEA;AAAA;AAAA;AAAA;AACA;AAAA;;AAAA;AAEA;AAAA;;AAAA;AAmHA;AAAA;;;AA2BA;AAEA;AAAA;;;AAQA;AA9KA;AAFA;AACA;AAGA;AACA;AACA;AACA;AACA;AANA;AA+KA;AAAA;AA/KA;AAiLA;AAAA;AACA;AACA;AACA;AA2CA;AAsDA;AApDA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAzFA;AADA;;AACA;AAIA;AAFA;AACA;;AACA;AAIA;AAFA;AACA;;AACA;AAGA;AADA;;AACA;AAGA;AADA;;AACA;AAGA;AADA;;AACA;AAGA;AADA;;AACA;AAGA;AADA;;AACA;AAGA;AADA;AACA;AAAA;AAIA;AAFA;AACA;;AACA;AAMA;AAJA;AACA;AACA;AACA;;AACA;AAsDA;AAAA;AApGA;AAsGA;AAAA;AAcA;AAVA;AADA;;AACA;AASA;AADA;;AACA;AACA;AAAA;AAdA;;;;;;;;;;;;;;;;;ACrSA;AACA;AAAA;AAoOA;AAnOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AApOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACOA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AArCA;AADA;;AACA;AAsCA;AAAA;AAtCA;AAwCA;AAAA;AAoBA;AAdA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAkBA;AAbA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7HA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AApCA;AADA;;AACA;AAqCA;AAAA;AArCA;AAuCA;AAAA;AAoBA;AAdA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAgBA;AAZA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1HA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AApCA;AADA;;AACA;AAqCA;AAAA;AArCA;AAuCA;AAAA;AAsBA;AAfA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAgBA;AAZA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5HA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAqBA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAlDA;AADA;;AACA;AAmDA;AAAA;AAnDA;AAqDA;AAAA;AA0BA;AAjBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AA0CA;AAzBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AA0BA;AAlBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAoBA;AAdA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwBA;AAhBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwCA;AAzBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AA4CA;AA3BA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AA0FA;AAjDA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAsBA;AAfA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AA0CA;AA3BA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAkBA;AAbA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAoBA;AAdA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAGA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACp0BA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAWA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAxCA;AADA;;AACA;AAyCA;AAAA;AAzCA;AA2CA;AAAA;AAgBA;AAbA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwBA;AAhBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAGA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzVA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAwPA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AArRA;AADA;;AACA;AAsRA;AAAA;AAtRA;AAwRA;AAAA;AAgBA;AAZA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAgBA;AAZA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAsCA;AAzBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAoBA;AAdA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwCA;AAxBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwBA;AAhBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwBA;AAjBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAkCA;AArBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAoCA;AAtBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwFA;AAhDA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAkCA;AArBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAgCA;AApBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AA0CA;AA1BA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAwBA;AAjBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAsBA;AAfA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAsCA;AAxBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAkBA;AAbA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAGA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACroCA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AApCA;AADA;;AACA;AAqCA;AAAA;AArCA;AAuCA;AAAA;AA8BA;AAnBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAgBA;AAZA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAAA;;AAGA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC3WA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AApCA;AADA;;AACA;AAqCA;AAAA;AArCA;AAuCA;AAAA;AA0BA;AAjBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAoBA;AAfA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AAgBA;AAZA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AACA;AACA;AAAA;;AAGA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7XA;AACA;AACA;AAMA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAaA;AAEA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAzCA;AADA;;AACA;AA0CA;AAAA;AA1CA;AA4CA;AAAA;AAcA;AAXA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AAAA;;AAEA;AAAA;AA4BA;AAlBA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;AC3HA;AAAA;AA6FA;AA5FA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAEA;AAEA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AC/FA;AAAA;AAyKA;AAxKA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAzKA;;;;;;;;;;;;;;;;ACAA;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AAGA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;;;;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAEA;AAEA;AACA;AACA;AAEA;;;AACA;AACA;;;AAGA;AACA;AACA;AACA;AAEA;;;AACA;AACA;AACA;AAEA;AAAA;AACA;;;;AACA;;AAAA;AACA;AACA;AACA;;;;AACA;AACA;AAEA;AAEA;;;AACA","sources":["webpack://client-app/./src/application/application-closed.ts?1647","webpack://client-app/./src/application/application-form.ts?6606","webpack://client-app/./src/auth/auth.ts?ab00","webpack://client-app/./src/application/close-application.ts?288d","webpack://client-app/./src/files/files.ts?0fb1","webpack://client-app/./src/home/index.ts?937d","webpack://client-app/./src/application/policy.ts?4014","webpack://client-app/./src/application/submitted.ts?61b3","webpack://client-app/./src/application/components/evidence-item.html","webpack://client-app/./src/application/components/evidence-item.ts","webpack://client-app/./src/application/enums.ts","webpack://client-app/./src/application/gql/CreateCollectionEntity.tsgql.ts","webpack://client-app/./src/application/gql/RemoveCollectionEntity.tsgql.ts","webpack://client-app/./src/application/gql/approveEvidence.tsgql.ts","webpack://client-app/./src/application/gql/createUpdateApplication.tsgql.ts","webpack://client-app/./src/application/gql/postcodeLookup.tsgql.ts","webpack://client-app/./src/application/gql/retrieveApplication.tsgql.ts","webpack://client-app/./src/application/gql/updateClaimApplication.tsgql.ts","webpack://client-app/./src/application/gql/updateClaimApplicationBatch.tsgql.ts","webpack://client-app/./src/application/gql/userDetails.tsgql.ts","webpack://client-app/./src/application/helpers.ts","webpack://client-app/./src/application/lists.ts","webpack://client-app/./src/constants.ts","webpack://client-app/./src/environment.ts","webpack://client-app/./src/main.ts"],"sourcesContent":["module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./application-closed.ts\"));\n\t}, \"application-closed\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./application-form.ts\"));\n\t}, \"application-form\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./auth.ts\"));\n\t}, \"auth\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./close-application.ts\"));\n\t}, \"close-application\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./files.ts\"));\n\t}, \"files\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./index.ts\"));\n\t}, \"home\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./policy.ts\"));\n\t}, \"policy\");\n}","module.exports = function(cb) {\n\trequire.ensure([], function(require) {\n\t\tcb(require(\"!!../../node_modules/ts-loader/index.js!./submitted.ts\"));\n\t}, \"submitted\");\n}","// Module\nvar code = \"<template element.ref=\\\"elem\\\" class=\\\"sub-section block ${documentation ? '' : 'white' } ${isValid ? '' : 'invalid'}\\\">\\r\\n    <div if.bind=\\\"evidence.editing\\\">\\r\\n        <div class=\\\"form-row\\\">\\r\\n            <div class=\\\"form-col\\\">\\r\\n                <h4 if.bind=\\\"evidence.contactName\\\">${evidence.contactName}</h4>\\r\\n                <div if.bind=\\\"evidence.reportEvidence && !evidence.evidenceType\\\" class=\\\"validation-msg\\\">Please provide evidence of any reports carried out</div>\\r\\n            </div>\\r\\n            <div class=\\\"form-col right\\\">\\r\\n                <a class=\\\"help-link\\\" tabindex=\\\"0\\\" click.delegate=\\\"evidence.editing = false\\\" keydown.delegate=\\\"closeKeydown($event)\\\"><ex-icon icon=\\\"collapse\\\"></ex-icon> close</a>\\r\\n            </div>\\r\\n        </div>\\r\\n        \\r\\n        <form-input-radio if.bind=\\\"!documentation\\\" label=\\\"Type of Evidence\\\" value.bind=\\\"evidence.evidenceType & validate\\\" options.bind=\\\"evidence.reportEvidence ? issueEvidenceReportTypes : issueEvidenceTypes\\\" disabled.bind=\\\"readOnlyMode\\\"\\r\\n          help-text=\\\"If you are unable to provide evidence relating to this issue, please contact us on ${brandTelephone} working hours are 9am to 5pm.\\\" help-title=\\\"Unable to provide evidence?\\\" hide-help-title=\\\"Hide\\\"></form-input-radio>\\r\\n        <form-input-text if.bind=\\\"!documentation && evidence.evidenceType === 'Other'\\\" label=\\\"Type of Evidence (other)\\\" value.bind=\\\"evidence.evidenceTypeOther & validate\\\" disabled.bind=\\\"readOnlyMode\\\"></form-input-text>\\r\\n\\r\\n        <form-input-readonly if.bind=\\\"documentation\\\" label=\\\"Document Required\\\" value.bind=\\\"evidence.evidenceType\\\" disabled.bind=\\\"readOnlyMode\\\"></form-input-readonly>\\r\\n\\r\\n        <form-input-text label.bind=\\\"documentation ? 'Notes (optional)' : 'Description'\\\" value.bind=\\\"evidence.description & validate\\\" disabled.bind=\\\"readOnlyMode\\\"></form-input-text>\\r\\n\\r\\n        <form-input-radio if.bind=\\\"documentTypeOptions.length > 0\\\" label=\\\"Document Type\\\" value.bind=\\\"evidence.documentType & validate\\\" options.bind=\\\"documentTypeOptions & signal:'refresh-document-type-options'\\\" disabled.bind=\\\"readOnlyMode\\\"\\r\\n                          help-text.bind=\\\"helpText\\\" help-title=\\\"More information\\\"></form-input-radio>\\r\\n\\r\\n        <form-input-file label=\\\"Files\\\" value.bind=\\\"evidence.documents & validate\\\" existing-files.bind=\\\"allDocuments\\\" disabled.bind=\\\"readOnlyMode\\\"></form-input-file>\\r\\n\\r\\n        <div if.bind=\\\"user.isAdmin && evidence.requiresApproval && (evidence.approved === null || evidence.approved === undefined || decisionIsAmendable)\\\">\\r\\n          <hr/>\\r\\n          <div class=\\\"form-row\\\">\\r\\n            <h4 if.bind=\\\"!decisionIsAmendable\\\">Admin Approval Required</h4>\\r\\n            <h4 if.bind=\\\"decisionIsAmendable\\\">Admin Approval Can Be Amended</h4>\\r\\n          </div>\\r\\n          <form-input-text label=\\\"Admin Decline Notes\\\" value.bind=\\\"evidence.approvalAdminNotes\\\" multiline=\\\"true\\\"></form-input-text>\\r\\n          <div class=\\\"form-row\\\">\\r\\n            <div class=\\\"form-col ${showApprovalValidation ? 'invalid' : ''}\\\">\\r\\n              <div if.bind=\\\"decisionIsAmendable\\\">\\r\\n                You have made the decision to <strong>${evidence.approved ? 'approve' : 'decline approval for'} this evidence</strong>. If this was done in error you may\\r\\n                amend your decision within 15 minutes.\\r\\n              </div>\\r\\n              <div if.bind=\\\"showApprovalValidation\\\" class=\\\"validation-msg\\\">Notes are required to decline documents</div>\\r\\n            </div>\\r\\n            <div class=\\\"form-col right\\\">\\r\\n              <form-button icon=\\\"tick\\\" label=\\\"Approve Documents\\\" class=\\\"small\\\" click.delegate=\\\"approve(true)\\\"></form-button>\\r\\n              <form-button icon=\\\"cross\\\" label=\\\"Decline Documents\\\" class=\\\"small secondary\\\" click.delegate=\\\"approve(false)\\\"></form-button>\\r\\n            </div>\\r\\n          </div>\\r\\n        </div>\\r\\n      </div>\\r\\n\\r\\n    <div if.bind=\\\"!evidence.editing\\\" class=\\\"form-row\\\">\\r\\n      <div class=\\\"form-col\\\">\\r\\n        <h4>${evidenceType(evidence)}</h4>\\r\\n        <h5 if.bind=\\\"evidence.contactName\\\">${evidence.contactName}</h5>\\r\\n        <p>${evidence.description}</p>\\r\\n        <p>${evidence.documentType}</p>\\r\\n        <p repeat.for=\\\"doc of evidence.documents\\\"><ex-icon class=\\\"file-icon\\\" icon.bind=\\\"getFileIcon(doc)\\\"></ex-icon> ${doc.fileName}</p>\\r\\n        <h5 if.bind=\\\"user.isAdmin && evidence.requiresApproval && (evidence.approved === null || evidence.approved === undefined)\\\">Approval Required</h5>\\r\\n        <div if.bind=\\\"user.isAdmin && evidence.requiresApproval && evidence.approved === true\\\">\\r\\n          <h5>Evidence Approved</h5>\\r\\n          <h5>By ${evidence.approvalDecisionBy} on ${evidence.approvalDecisionDate | date}</h5>\\r\\n        </div>\\r\\n        \\r\\n        <div if.bind=\\\"user.isAdmin && evidence.requiresApproval && evidence.approved === false\\\">\\r\\n          <p><strong>Evidence Declined: </strong>${evidence.approvalAdminNotes}</p>\\r\\n          <h5><strong>By ${evidence.approvalDecisionBy} on ${evidence.approvalDecisionDate | date}</strong></h5>\\r\\n        </div>\\r\\n      </div>\\r\\n        <div class=\\\"form-col right\\\">\\r\\n            <form-button label.bind=\\\"readOnlyMode ? 'View' : 'Update'\\\" icon.bind=\\\"readOnlyMode ? 'photo' : 'edit'\\\" class=\\\"small secondary\\\" click.delegate=\\\"edit()\\\"></form-button>\\r\\n            <form-button if.bind=\\\"!documentation && !readOnlyMode\\\" label=\\\"Remove\\\" icon=\\\"delete\\\" class=\\\"small secondary red\\\" click.delegate=\\\"remove()\\\"></form-button>\\r\\n        </div>\\r\\n    </div>\\r\\n</template>\\r\\n\";\n// Exports\nexport default code;","import { customElement, bindable, bindingMode, autoinject, BindingEngine, Disposable, computedFrom } from 'aurelia-framework';\r\nimport { Lists } from 'application/lists';\r\nimport { validate, ValidateNested, IsNotEmpty, ValidateIf, ArrayMinSize } from 'validation';\r\nimport { Update } from 'updateService';\r\nimport { ClaimApplicationDtoResult } from 'application/gql/retrieveApplication.tsgql';\r\nimport { EvidenceDtoInput } from 'application/gql/createUpdateApplication.tsgql';\r\nimport { Helpers } from 'application/helpers';\r\nimport { CurrentUser } from '../../user';\r\nimport { ApproveEvidenceClient, ApproveEvidenceRequestInput } from '../gql/approveEvidence.tsgql';\r\nimport { BindingSignaler } from 'aurelia-templating-resources';\r\nimport { BrandService } from '../../services/brandService';\r\n\r\n@customElement('evidence-item')\r\n@autoinject()\r\nexport class EvidenceItem {\r\n    constructor(\r\n        private bindingEngine: BindingEngine,\r\n        private user: CurrentUser,\r\n        private approveEvidenceClient: ApproveEvidenceClient,\r\n        private bindingSignaler: BindingSignaler,\r\n        private brandService: BrandService) { }\r\n\r\n    @bindable applicationId: string;\r\n    @bindable ownerId: string;\r\n\r\n    @Update.UpdateNested()\r\n    @ValidateNested()\r\n    @bindable evidence: Evidence;\r\n\r\n    @bindable evidenceList: Evidence[];\r\n\r\n    @bindable({ defaultBindingMode: bindingMode.twoWay }) allDocuments: Document[];\r\n\r\n    @bindable validateParent: Function;\r\n    @bindable documentation: boolean;\r\n\r\n    @bindable readOnlyMode: boolean = false;\r\n\r\n    showApprovalValidation: boolean = false;\r\n\r\n    issueEvidenceTypes = Lists.issueEvidenceTypes;\r\n    issueEvidenceReportTypes = Lists.issueEvidenceReportTypes;\r\n    isValid = true;\r\n    subscriptions: Disposable[] = [];\r\n    elem: HTMLElement;\r\n\r\n    attached() {\r\n        this.subscriptions.push(this.bindingEngine.propertyObserver(this.evidence, 'editing').subscribe(async () => { await this.editingChanged(); }));\r\n        this.subscriptions.push(this.bindingEngine.propertyObserver(this.evidence, 'evidenceType').subscribe(() => { if (this.validateParent) { this.validateParent(); } }));\r\n        this.subscriptions.push(this.bindingEngine.propertyObserver(this.evidence, 'documentType').subscribe((n) => { this.documentTypeChanged(n); }));\r\n        if (!!this.evidence.id) {\r\n            this.editingChanged();\r\n        }\r\n    }\r\n\r\n    detached() {\r\n        this.subscriptions.forEach(x => x.dispose());\r\n    }\r\n\r\n    async editingChanged() {\r\n        const errors = await validate(this);\r\n        this.isValid = this.evidence.editing ? true : errors.length === 0;\r\n    }\r\n\r\n    documentTypeChanged(newValue: string) {\r\n        if (this.evidence.evidenceType === 'Proof of Name') {\r\n            if (newValue === 'Driving Licence') {\r\n                const proofOfAddressItem = this.evidenceList.find(x => x.evidenceType === 'Proof of Address');\r\n                if (proofOfAddressItem && proofOfAddressItem.documentType === 'Driving Licence (if address is shown)') {\r\n                    proofOfAddressItem.documentType = '';\r\n                }\r\n            }\r\n\r\n            this.bindingSignaler.signal('refresh-document-type-options');\r\n        }\r\n    }\r\n\r\n    evidenceType(evidence: Evidence) {\r\n        return (evidence.evidenceType === \"Other\" ? evidence.evidenceTypeOther : evidence.evidenceType) || \"Incomplete Evidence Item\";\r\n    }\r\n\r\n    edit() {\r\n        if (!this.documentation) {\r\n            this.evidenceList.forEach(x => x.editing = false);\r\n        }\r\n\r\n        this.evidence.editing = true;\r\n    }\r\n\r\n    remove() {\r\n        const ix = this.evidenceList.indexOf(this.evidence);\r\n        this.evidenceList.splice(ix, 1);\r\n    }\r\n\r\n    getFileIcon(file: Document) {\r\n        return Helpers.getFileIcon(file);\r\n    }\r\n\r\n    get decisionIsAmendable(){\r\n        if(!this.evidence.approvalDecisionDate){\r\n            return false;\r\n        }\r\n\r\n        if(this.user.id !== this.evidence.approvalDecisionById){\r\n            return false;\r\n        }\r\n\r\n        const now = new Date();\r\n        const approvalDecisionDate = this.evidence.approvalDecisionDate;\r\n        const deadline = new Date(approvalDecisionDate.getTime() + (15*60000) - 5000);\r\n\r\n        const res = now < deadline;\r\n        return res;       \r\n    }\r\n\r\n    async approve(decision: boolean) {\r\n        // TODO: I'm not using validation here because it will require a refactor to use groups\r\n        if (decision == false && !this.evidence.approvalAdminNotes) {\r\n            console.log('Approval admin notes required');\r\n            this.showApprovalValidation = true;\r\n        }\r\n        else {\r\n            this.showApprovalValidation = false;\r\n            var req = new ApproveEvidenceRequestInput();\r\n            req.id = this.applicationId;\r\n            req.ownerId = this.ownerId;\r\n            req.evidenceId = this.evidence.id;\r\n            req.approveDecision = decision;\r\n            req.adminNotes = this.evidence.approvalAdminNotes;\r\n\r\n            var result = await this.approveEvidenceClient.approveEvidence_approveEvidence(req);\r\n            if (result.approveEvidence.success) {\r\n                this.evidence.approved = decision;\r\n                this.evidence.documents = [];\r\n                this.evidence.approvalDecisionBy = this.user.name;\r\n                this.evidence.approvalDecisionById = this.user.id;\r\n                this.evidence.approvalDecisionDate = new Date();\r\n            }\r\n\r\n            this.evidence.editing = false;\r\n        }\r\n    }\r\n\r\n    closeKeydown(event: KeyboardEvent) {\r\n        return Helpers.keypressEnterOrSpace(event, () => this.evidence.editing = false);\r\n    }\r\n\r\n    get brandTelephone() {\r\n        return this.brandService.brandTelephone;\r\n    }\r\n\r\n    @computedFrom('evidence.evidenceType')\r\n    get documentTypeOptions() {\r\n        if (this.evidence.evidenceType === 'Proof of Name') {\r\n            return ['Passport', 'Driving Licence'];\r\n        }\r\n        else if (this.evidence.evidenceType === 'Proof of Address') {\r\n            const options = ['Utility Bill (within the last 3 months)', 'Current Tenancy Agreement'];\r\n\r\n            if (!this.evidenceList.some(x => x.evidenceType === 'Proof of Name' && x.documentType === 'Driving Licence' && x.contactId === this.evidence.contactId)) {\r\n                options.push('Driving Licence (if address is shown)');\r\n            }\r\n\r\n            return options;\r\n        }\r\n        else if (this.evidence.evidenceType === 'Proof of Ownership of property') {\r\n            return [\r\n                    'Title Deeds',\r\n                    'Mortgage Statement',\r\n                    'Sale Agreement',\r\n                    'Completion Statement',\r\n                    'Current Tenancy Agreement',\r\n                    'Signed Lease Agreement ',\r\n                    'Deed of Conditions'\r\n                ];\r\n        }\r\n\r\n        return [];\r\n    }\r\n\r\n  @computedFrom('evidence.evidenceType')\r\n  get helpText() {\r\n    if (this.evidence.evidenceType === 'Proof of Name' || this.evidence.evidenceType === 'Proof of Address') {\r\n      return \"Two different forms of identification are required for Proof of Name and Address\"\r\n    }\r\n    else {\r\n      return null;\r\n    }\r\n  }\r\n}\r\n\r\nexport class Evidence {\r\n    editing = true;\r\n    documentation = false;\r\n    reportEvidence = false;\r\n    contactName: string;\r\n\r\n    id: string;\r\n    contactId: string;\r\n\r\n    @IsNotEmpty({ message: \"Please select type of evidence\" })\r\n    evidenceType: string;\r\n\r\n    @IsNotEmpty({ message: \"Please enter type of evidence\" })\r\n    @ValidateIf((o: Evidence) => o.evidenceType === \"Other\")\r\n    evidenceTypeOther: string;\r\n\r\n    @IsNotEmpty({ message: \"Please enter a description\" })\r\n    @ValidateIf((o: Evidence) => !o.documentation)\r\n    description: string;\r\n\r\n    @Update.IgnoreUpdates()\r\n    requiresApproval: boolean;\r\n\r\n    @Update.IgnoreUpdates()\r\n    approved: boolean;\r\n\r\n    @Update.IgnoreUpdates()\r\n    approvalAdminNotes: string;\r\n\r\n    @Update.IgnoreUpdates()\r\n    approvalDecisionBy: string;\r\n\r\n    @Update.IgnoreUpdates()\r\n    approvalDecisionById: string;  \r\n\r\n    @Update.IgnoreUpdates()\r\n    approvalDecisionDate: Date;\r\n\r\n    @IsNotEmpty({ message: \"Please select a document type\"})\r\n    @ValidateIf((o: Evidence) => o.documentation && (o.evidenceType === \"Proof of Name\" || o.evidenceType === \"Proof of Address\" || o.evidenceType === \"Proof of Ownership of property\"))\r\n    documentType: string;\r\n    \r\n    @Update.UpdateNestedCollection()\r\n    @ArrayMinSize(1, { message: \"Please provide at least one file\" })\r\n    @ValidateIf((o: Evidence) => !(o.requiresApproval && o.approved))\r\n    @ValidateNested()\r\n    documents: Document[] = [];\r\n\r\n    isEmpty() {\r\n        return !this.evidenceType && !this.description && this.documents.length === 0;\r\n    }\r\n\r\n    static fromApplication(app: ClaimApplicationDtoResult, documentation: boolean) {\r\n        return app.evidence.map(x => {\r\n            const evidence = new Evidence();\r\n            evidence.documentation = documentation;\r\n            evidence.id = x.id;\r\n            evidence.evidenceType = x.evidenceType;\r\n            evidence.description = x.description;\r\n            evidence.contactId = x.contactId;\r\n            evidence.approved = x.approved;\r\n            evidence.requiresApproval = x.requiresApproval;\r\n            evidence.approvalAdminNotes = x.approvalAdminNotes;\r\n            evidence.approvalDecisionBy = x.approvalDecisionBy;\r\n            evidence.approvalDecisionById = x.approvalDecisionById;\r\n            evidence.approvalDecisionDate = new Date(x.approvalDecisionDate);\r\n            evidence.documentType = x.documentType;\r\n            evidence.documents = x.documents.map(d => {\r\n                const doc = new Document();\r\n                doc.id = d.id;\r\n                doc.fileId = d.fileId;\r\n                doc.fileName = d.fileName;\r\n                doc.fileSize = d.fileSize;\r\n                doc.fileType = d.fileType;\r\n                return doc;\r\n            });\r\n\r\n            return evidence;\r\n        });\r\n    }\r\n\r\n    toApplication() {\r\n        const evidence = new EvidenceDtoInput();\r\n        evidence.id = this.id;\r\n        evidence.evidenceType = this.evidenceType;\r\n        evidence.description = this.description;\r\n        evidence.contactId = this.contactId;\r\n        evidence.documentType = this.documentType;\r\n        evidence.documents = this.documents.map(d => {\r\n            const doc = new Document();\r\n            doc.id = d.id;\r\n            doc.fileId = d.fileId;\r\n            doc.fileName = d.fileName;\r\n            doc.fileSize = d.fileSize;\r\n            doc.fileType = d.fileType;\r\n            return doc;\r\n        });\r\n\r\n        return evidence;\r\n    }\r\n}\r\n\r\nexport class Document {\r\n    id: string;\r\n    \r\n    @IsNotEmpty({ message: 'Please provide at least one file' })\r\n    fileId: string;\r\n    \r\n    fileName: string;\r\n\r\n    fileType: string;\r\n\r\n    fileSize: number;\r\n\r\n    @Update.IgnoreUpdates()\r\n    percentUploaded: number;\r\n}\r\n","import { CountryCodeType } from \"./gql/updateClaimApplication.tsgql\";\r\nexport class Enums {\r\n    static countryCodes = [\r\n        { id: CountryCodeType.AFGHANISTAN, description: 'Afghanistan' },\r\n        { id: CountryCodeType.ALBANIA, description: 'Albania' },\r\n        { id: CountryCodeType.ALGERIA, description: 'Algeria' },\r\n        { id: CountryCodeType.AMERICANSAMOA, description: 'American Samoa' },\r\n        { id: CountryCodeType.ANDORRA, description: 'Andorra' },\r\n        { id: CountryCodeType.ANGOLA, description: 'Angola' },\r\n        { id: CountryCodeType.ANGUILLA, description: 'Anguilla' },\r\n        { id: CountryCodeType.ANTARCTICA, description: 'Antarctica' },\r\n        { id: CountryCodeType.ARGENTINA, description: 'Argentina' },\r\n        { id: CountryCodeType.ARMENIA, description: 'Armenia' },\r\n        { id: CountryCodeType.ARUBA, description: 'Aruba' },\r\n        { id: CountryCodeType.AUSTRALIA, description: 'Australia' },\r\n        { id: CountryCodeType.AUSTRIA, description: 'Austria' },\r\n        { id: CountryCodeType.AZERBAIJAN, description: 'Azerbaijan' },\r\n        { id: CountryCodeType.BAHAMAS, description: 'Bahamas' },\r\n        { id: CountryCodeType.BAHRAIN, description: 'Bahrain' },\r\n        { id: CountryCodeType.BANGLADESH, description: 'Bangladesh' },\r\n        { id: CountryCodeType.BARBADOS, description: 'Barbados' },\r\n        { id: CountryCodeType.BELARUS, description: 'Belarus' },\r\n        { id: CountryCodeType.BELGIUM, description: 'Belgium' },\r\n        { id: CountryCodeType.BELIZE, description: 'Belize' },\r\n        { id: CountryCodeType.BENIN, description: 'Benin' },\r\n        { id: CountryCodeType.BERMUDA, description: 'Bermuda' },\r\n        { id: CountryCodeType.BHUTAN, description: 'Bhutan' },\r\n        { id: CountryCodeType.BOLIVIA, description: 'Bolivia' },\r\n        { id: CountryCodeType.BOSNIAANDHERZEGOVINA, description: 'Bosnia and Herzegovina' },\r\n        { id: CountryCodeType.BOTSWANA, description: 'Botswana' },\r\n        { id: CountryCodeType.BRAZIL, description: 'Brazil' },\r\n        { id: CountryCodeType.BRITISHVIRGINISLANDS, description: 'British Virgin Islands' },\r\n        { id: CountryCodeType.BRUNEI, description: 'Brunei' },\r\n        { id: CountryCodeType.BULGARIA, description: 'Bulgaria' },\r\n        { id: CountryCodeType.BURKINAFASO, description: 'Burkina Faso' },\r\n        { id: CountryCodeType.BURUNDI, description: 'Burundi' },\r\n        { id: CountryCodeType.CAMBODIA, description: 'Cambodia' },\r\n        { id: CountryCodeType.CAMEROON, description: 'Cameroon' },\r\n        { id: CountryCodeType.CANADA, description: 'Canada' },\r\n        { id: CountryCodeType.CAPEVERDE, description: 'Cape Verde' },\r\n        { id: CountryCodeType.CAYMANISLANDS, description: 'Cayman Islands' },\r\n        { id: CountryCodeType.CENTRALAFRICANREPUBLIC, description: 'Central African Republic' },\r\n        { id: CountryCodeType.CHILE, description: 'Chile' },\r\n        { id: CountryCodeType.CHINA, description: 'China' },\r\n        { id: CountryCodeType.COLOMBIA, description: 'Colombia' },\r\n        { id: CountryCodeType.COMOROS, description: 'Comoros' },\r\n        { id: CountryCodeType.COOKISLANDS, description: 'Cook Islands' },\r\n        { id: CountryCodeType.COSTARICA, description: 'Costa Rica' },\r\n        { id: CountryCodeType.CROATIA, description: 'Croatia' },\r\n        { id: CountryCodeType.CUBA, description: 'Cuba' },\r\n        { id: CountryCodeType.CURACAO, description: 'Curacao' },\r\n        { id: CountryCodeType.CYPRUS, description: 'Cyprus' },\r\n        { id: CountryCodeType.CZECHREPUBLIC, description: 'Czech Republic' },\r\n        { id: CountryCodeType.DEMOCRATICREPUBLICOFCONGO, description: 'Democratic Republic of Congo' },\r\n        { id: CountryCodeType.DENMARK, description: 'Denmark' },\r\n        { id: CountryCodeType.DJIBOUTI, description: 'Djibouti' },\r\n        { id: CountryCodeType.DOMINICA, description: 'Dominica' },\r\n        { id: CountryCodeType.DOMINICANREPUBLIC, description: 'Dominican Republic' },\r\n        { id: CountryCodeType.EASTTIMOR, description: 'East Timor' },\r\n        { id: CountryCodeType.ECUADOR, description: 'Ecuador' },\r\n        { id: CountryCodeType.EGYPT, description: 'Egypt' },\r\n        { id: CountryCodeType.ELSALVADOR, description: 'El Salvador' },\r\n        { id: CountryCodeType.EQUATORIALGUINEA, description: 'Equatorial Guinea' },\r\n        { id: CountryCodeType.ERITREA, description: 'Eritrea' },\r\n        { id: CountryCodeType.ESTONIA, description: 'Estonia' },\r\n        { id: CountryCodeType.ETHIOPIA, description: 'Ethiopia' },\r\n        { id: CountryCodeType.FALKLANDISLANDS, description: 'Falkland Islands' },\r\n        { id: CountryCodeType.FAROEISLANDS, description: 'Faroe Islands' },\r\n        { id: CountryCodeType.FIJI, description: 'Fiji' },\r\n        { id: CountryCodeType.FINLAND, description: 'Finland' },\r\n        { id: CountryCodeType.FRANCE, description: 'France' },\r\n        { id: CountryCodeType.FRENCHPOLYNESIA, description: 'French Polynesia' },\r\n        { id: CountryCodeType.GABON, description: 'Gabon' },\r\n        { id: CountryCodeType.GAMBIA, description: 'Gambia' },\r\n        { id: CountryCodeType.GEORGIA, description: 'Georgia' },\r\n        { id: CountryCodeType.GERMANY, description: 'Germany' },\r\n        { id: CountryCodeType.GHANA, description: 'Ghana' },\r\n        { id: CountryCodeType.GIBRALTAR, description: 'Gibraltar' },\r\n        { id: CountryCodeType.GREECE, description: 'Greece' },\r\n        { id: CountryCodeType.GREENLAND, description: 'Greenland' },\r\n        { id: CountryCodeType.GUADELOUPE, description: 'Guadeloupe' },\r\n        { id: CountryCodeType.GUAM, description: 'Guam' },\r\n        { id: CountryCodeType.GUATEMALA, description: 'Guatemala' },\r\n        { id: CountryCodeType.GUINEA, description: 'Guinea' },\r\n        { id: CountryCodeType.GUINEABISSAU, description: 'Guinea-Bissau' },\r\n        { id: CountryCodeType.GUYANA, description: 'Guyana' },\r\n        { id: CountryCodeType.HAITI, description: 'Haiti' },\r\n        { id: CountryCodeType.HONDURAS, description: 'Honduras' },\r\n        { id: CountryCodeType.HONGKONG, description: 'Hong Kong' },\r\n        { id: CountryCodeType.HUNGARY, description: 'Hungary' },\r\n        { id: CountryCodeType.ICELAND, description: 'Iceland' },\r\n        { id: CountryCodeType.INDIA, description: 'India' },\r\n        { id: CountryCodeType.INDONESIA, description: 'Indonesia' },\r\n        { id: CountryCodeType.IRAN, description: 'Iran' },\r\n        { id: CountryCodeType.IRAQ, description: 'Iraq' },\r\n        { id: CountryCodeType.IRELAND, description: 'Ireland' },\r\n        { id: CountryCodeType.ISLEOFMAN, description: 'Isle of Man' },\r\n        { id: CountryCodeType.ISRAEL, description: 'Israel' },\r\n        { id: CountryCodeType.ITALY, description: 'Italy' },\r\n        { id: CountryCodeType.IVORYCOAST, description: 'Ivory Coast' },\r\n        { id: CountryCodeType.JAMAICA, description: 'Jamaica' },\r\n        { id: CountryCodeType.JAPAN, description: 'Japan' },\r\n        { id: CountryCodeType.JORDAN, description: 'Jordan' },\r\n        { id: CountryCodeType.KAZAKHSTAN, description: 'Kazakhstan' },\r\n        { id: CountryCodeType.KENYA, description: 'Kenya' },\r\n        { id: CountryCodeType.KIRIBATI, description: 'Kiribati' },\r\n        { id: CountryCodeType.KOSOVO, description: 'Kosovo' },\r\n        { id: CountryCodeType.KUWAIT, description: 'Kuwait' },\r\n        { id: CountryCodeType.KYRGYZSTAN, description: 'Kyrgyzstan' },\r\n        { id: CountryCodeType.LAOS, description: 'Laos' },\r\n        { id: CountryCodeType.LATVIA, description: 'Latvia' },\r\n        { id: CountryCodeType.LEBANON, description: 'Lebanon' },\r\n        { id: CountryCodeType.LESOTHO, description: 'Lesotho' },\r\n        { id: CountryCodeType.LIBERIA, description: 'Liberia' },\r\n        { id: CountryCodeType.LIBYA, description: 'Libya' },\r\n        { id: CountryCodeType.LIECHTENSTEIN, description: 'Liechtenstein' },\r\n        { id: CountryCodeType.LITHUANIA, description: 'Lithuania' },\r\n        { id: CountryCodeType.LUXEMBOURG, description: 'Luxembourg' },\r\n        { id: CountryCodeType.MACAU, description: 'Macau' },\r\n        { id: CountryCodeType.MACEDONIA, description: 'Macedonia' },\r\n        { id: CountryCodeType.MADAGASCAR, description: 'Madagascar' },\r\n        { id: CountryCodeType.MALAWI, description: 'Malawi' },\r\n        { id: CountryCodeType.MALAYSIA, description: 'Malaysia' },\r\n        { id: CountryCodeType.MALDIVES, description: 'Maldives' },\r\n        { id: CountryCodeType.MALI, description: 'Mali' },\r\n        { id: CountryCodeType.MALTA, description: 'Malta' },\r\n        { id: CountryCodeType.MARSHALLISLANDS, description: 'Marshall Islands' },\r\n        { id: CountryCodeType.MAURITANIA, description: 'Mauritania' },\r\n        { id: CountryCodeType.MAURITIUS, description: 'Mauritius' },\r\n        { id: CountryCodeType.MEXICO, description: 'Mexico' },\r\n        { id: CountryCodeType.MICRONESIA, description: 'Micronesia' },\r\n        { id: CountryCodeType.MOLDOVA, description: 'Moldova' },\r\n        { id: CountryCodeType.MONACO, description: 'Monaco' },\r\n        { id: CountryCodeType.MONGOLIA, description: 'Mongolia' },\r\n        { id: CountryCodeType.MONTENEGRO, description: 'Montenegro' },\r\n        { id: CountryCodeType.MONTSERRAT, description: 'Montserrat' },\r\n        { id: CountryCodeType.MOROCCO, description: 'Morocco' },\r\n        { id: CountryCodeType.MOZAMBIQUE, description: 'Mozambique' },\r\n        { id: CountryCodeType.MYANMARBURMA, description: 'Myanmar [Burma]' },\r\n        { id: CountryCodeType.NAMIBIA, description: 'Namibia' },\r\n        { id: CountryCodeType.NAURU, description: 'Nauru' },\r\n        { id: CountryCodeType.NEPAL, description: 'Nepal' },\r\n        { id: CountryCodeType.NETHERLANDS, description: 'Netherlands' },\r\n        { id: CountryCodeType.NEWCALEDONIA, description: 'New Caledonia' },\r\n        { id: CountryCodeType.NEWZEALAND, description: 'New Zealand' },\r\n        { id: CountryCodeType.NICARAGUA, description: 'Nicaragua' },\r\n        { id: CountryCodeType.NIGER, description: 'Niger' },\r\n        { id: CountryCodeType.NIGERIA, description: 'Nigeria' },\r\n        { id: CountryCodeType.NIUE, description: 'Niue' },\r\n        { id: CountryCodeType.NORFOLKISLAND, description: 'Norfolk Island' },\r\n        { id: CountryCodeType.NORTHKOREA, description: 'North Korea' },\r\n        { id: CountryCodeType.NORTHERNMARIANAISLANDS, description: 'Northern Mariana Islands' },\r\n        { id: CountryCodeType.NORWAY, description: 'Norway' },\r\n        { id: CountryCodeType.OMAN, description: 'Oman' },\r\n        { id: CountryCodeType.PAKISTAN, description: 'Pakistan' },\r\n        { id: CountryCodeType.PALAU, description: 'Palau' },\r\n        { id: CountryCodeType.PANAMA, description: 'Panama' },\r\n        { id: CountryCodeType.PAPUANEWGUINEA, description: 'Papua New Guinea' },\r\n        { id: CountryCodeType.PARAGUAY, description: 'Paraguay' },\r\n        { id: CountryCodeType.PERU, description: 'Peru' },\r\n        { id: CountryCodeType.PHILIPPINES, description: 'Philippines' },\r\n        { id: CountryCodeType.PITCAIRNISLANDS, description: 'Pitcairn Islands' },\r\n        { id: CountryCodeType.POLAND, description: 'Poland' },\r\n        { id: CountryCodeType.PORTUGAL, description: 'Portugal' },\r\n        { id: CountryCodeType.PUERTORICO, description: 'Puerto Rico' },\r\n        { id: CountryCodeType.QATAR, description: 'Qatar' },\r\n        { id: CountryCodeType.REPUBLICOFTHECONGO, description: 'Republic of the Congo' },\r\n        { id: CountryCodeType.REUNION, description: 'Reunion' },\r\n        { id: CountryCodeType.ROMANIA, description: 'Romania' },\r\n        { id: CountryCodeType.RUSSIA, description: 'Russia' },\r\n        { id: CountryCodeType.RWANDA, description: 'Rwanda' },\r\n        { id: CountryCodeType.SAINTBARTHELEMY, description: 'Saint Barthélemy' },\r\n        { id: CountryCodeType.SAINTHELENA, description: 'Saint Helena' },\r\n        { id: CountryCodeType.SAINTKITTSANDNEVIS, description: 'Saint Kitts and Nevis' },\r\n        { id: CountryCodeType.SAINTLUCIA, description: 'Saint Lucia' },\r\n        { id: CountryCodeType.SAINTMARTIN, description: 'Saint Martin' },\r\n        { id: CountryCodeType.SAINTPIERREANDMIQUELON, description: 'Saint Pierre and Miquelon' },\r\n        { id: CountryCodeType.SAINTVINCENTANDTHEGRENADINES, description: 'Saint Vincent and the Grenadines' },\r\n        { id: CountryCodeType.SAMOA, description: 'Samoa' },\r\n        { id: CountryCodeType.SANMARINO, description: 'San Marino' },\r\n        { id: CountryCodeType.SAOTOMEANDPRINCIPE, description: 'Sao Tome and Principe' },\r\n        { id: CountryCodeType.SAUDIARABIA, description: 'Saudi Arabia' },\r\n        { id: CountryCodeType.SENEGAL, description: 'Senegal' },\r\n        { id: CountryCodeType.SERBIA, description: 'Serbia' },\r\n        { id: CountryCodeType.SEYCHELLES, description: 'Seychelles' },\r\n        { id: CountryCodeType.SIERRALEONE, description: 'Sierra Leone' },\r\n        { id: CountryCodeType.SINGAPORE, description: 'Singapore' },\r\n        { id: CountryCodeType.SLOVAKIA, description: 'Slovakia' },\r\n        { id: CountryCodeType.SLOVENIA, description: 'Slovenia' },\r\n        { id: CountryCodeType.SOLOMONISLANDS, description: 'Solomon Islands' },\r\n        { id: CountryCodeType.SOMALIA, description: 'Somalia' },\r\n        { id: CountryCodeType.SOUTHAFRICA, description: 'South Africa' },\r\n        { id: CountryCodeType.SOUTHKOREA, description: 'South Korea' },\r\n        { id: CountryCodeType.SOUTHSUDAN, description: 'South Sudan' },\r\n        { id: CountryCodeType.SPAIN, description: 'Spain' },\r\n        { id: CountryCodeType.SRILANKA, description: 'Sri Lanka' },\r\n        { id: CountryCodeType.SUDAN, description: 'Sudan' },\r\n        { id: CountryCodeType.SURINAME, description: 'Suriname' },\r\n        { id: CountryCodeType.SWAZILAND, description: 'Swaziland' },\r\n        { id: CountryCodeType.SWEDEN, description: 'Sweden' },\r\n        { id: CountryCodeType.SWITZERLAND, description: 'Switzerland' },\r\n        { id: CountryCodeType.SYRIA, description: 'Syria' },\r\n        { id: CountryCodeType.TAIWAN, description: 'Taiwan' },\r\n        { id: CountryCodeType.TAJIKISTAN, description: 'Tajikistan' },\r\n        { id: CountryCodeType.TANZANIA, description: 'Tanzania' },\r\n        { id: CountryCodeType.THAILAND, description: 'Thailand' },\r\n        { id: CountryCodeType.TOGO, description: 'Togo' },\r\n        { id: CountryCodeType.TOKELAU, description: 'Tokelau' },\r\n        { id: CountryCodeType.TRINIDADANDTOBAGO, description: 'Trinidad and Tobago' },\r\n        { id: CountryCodeType.TUNISIA, description: 'Tunisia' },\r\n        { id: CountryCodeType.TURKEY, description: 'Turkey' },\r\n        { id: CountryCodeType.TURKMENISTAN, description: 'Turkmenistan' },\r\n        { id: CountryCodeType.TUVALU, description: 'Tuvalu' },\r\n        { id: CountryCodeType.UGANDA, description: 'Uganda' },\r\n        { id: CountryCodeType.UKRAINE, description: 'Ukraine' },\r\n        { id: CountryCodeType.UNITEDARABEMIRATES, description: 'United Arab Emirates' },\r\n        { id: CountryCodeType.UNITEDKINGDOM, description: 'United Kingdom' },\r\n        { id: CountryCodeType.UNITEDSTATES, description: 'United States' },\r\n        { id: CountryCodeType.URUGUAY, description: 'Uruguay' },\r\n        { id: CountryCodeType.UZBEKISTAN, description: 'Uzbekistan' },\r\n        { id: CountryCodeType.VANUATU, description: 'Vanuatu' },\r\n        { id: CountryCodeType.VATICAN, description: 'Vatican' },\r\n        { id: CountryCodeType.VENEZUELA, description: 'Venezuela' },\r\n        { id: CountryCodeType.VIETNAM, description: 'Vietnam' },\r\n        { id: CountryCodeType.WESTERNSAHARA, description: 'Western Sahara' },\r\n        { id: CountryCodeType.YEMEN, description: 'Yemen' },\r\n        { id: CountryCodeType.ZAMBIA, description: 'Zambia' },\r\n        { id: CountryCodeType.ZIMBABWE, description: 'Zimbabwe' },\r\n    ];\r\n}\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction CreateCollectionEntityError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'CreateCollectionEntityError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  CreateCollectionEntityError.prototype = Object.create(Error.prototype);\r\n  CreateCollectionEntityError.prototype.constructor = CreateCollectionEntityError;\r\n  \r\nexport { CreateCollectionEntityError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class CreateCollectionEntityClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tcreateCollectionEntity_createCollectionEntity(\tupdate? :CreateCollectionEntityRequestInput) : Promise<CreateCollectionEntityCreateCollectionEntityResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `mutation createCollectionEntity($update: CreateCollectionEntityRequestInput) {\r\n  createCollectionEntity(request: $update) {\r\n    success\r\n    id\r\n    isLocked\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\tupdate : update ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new CreateCollectionEntityError(\"http error running 'createCollectionEntity_createCollectionEntity', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new CreateCollectionEntityError(\"graphql error(s) running 'createCollectionEntity_createCollectionEntity', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = CreateCollectionEntityCreateCollectionEntityResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class CreateCollectionEntityRequestInput {\r\n\t\tfieldName? :string;\r\n\t\tid? :string;\r\n\t\tjsonEntity? :string;\r\n\t\townerId? :string;\r\n\r\n    static fromJS(json:any):CreateCollectionEntityRequestInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new CreateCollectionEntityRequestInput();\r\n\r\n\tresult.fieldName = json[\"fieldName\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.jsonEntity = json[\"jsonEntity\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class CreateCollectionEntityCreateCollectionEntityResult {\r\n\t\tcreateCollectionEntity? :CreateCollectionEntityResultResult;\r\n\r\n    static fromJS(json:any):CreateCollectionEntityCreateCollectionEntityResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new CreateCollectionEntityCreateCollectionEntityResult();\r\n\r\nresult.createCollectionEntity= CreateCollectionEntityResultResult.fromJS(json[\"createCollectionEntity\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class CreateCollectionEntityResultResult {\r\n\t\tsuccess :boolean;\r\n\t\tid? :string;\r\n\t\tisLocked :boolean;\r\n\r\n    static fromJS(json:any):CreateCollectionEntityResultResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new CreateCollectionEntityResultResult();\r\n\r\n\tresult.success = json[\"success\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.isLocked = json[\"isLocked\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction RemoveCollectionEntityError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'RemoveCollectionEntityError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  RemoveCollectionEntityError.prototype = Object.create(Error.prototype);\r\n  RemoveCollectionEntityError.prototype.constructor = RemoveCollectionEntityError;\r\n  \r\nexport { RemoveCollectionEntityError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class RemoveCollectionEntityClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tremoveCollectionEntity_removeCollectionEntity(\tupdate? :RemoveCollectionEntityRequestInput) : Promise<RemoveCollectionEntityRemoveCollectionEntityResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `mutation removeCollectionEntity($update: RemoveCollectionEntityRequestInput) {\r\n  removeCollectionEntity(request: $update) {\r\n    success\r\n    isLocked\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\tupdate : update ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new RemoveCollectionEntityError(\"http error running 'removeCollectionEntity_removeCollectionEntity', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new RemoveCollectionEntityError(\"graphql error(s) running 'removeCollectionEntity_removeCollectionEntity', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = RemoveCollectionEntityRemoveCollectionEntityResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class RemoveCollectionEntityRequestInput {\r\n\t\tcollectionEntityId? :string;\r\n\t\tfieldName? :string;\r\n\t\tid? :string;\r\n\t\townerId? :string;\r\n\r\n    static fromJS(json:any):RemoveCollectionEntityRequestInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new RemoveCollectionEntityRequestInput();\r\n\r\n\tresult.collectionEntityId = json[\"collectionEntityId\"];\r\n\tresult.fieldName = json[\"fieldName\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class RemoveCollectionEntityRemoveCollectionEntityResult {\r\n\t\tremoveCollectionEntity? :SuccessResultResult;\r\n\r\n    static fromJS(json:any):RemoveCollectionEntityRemoveCollectionEntityResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new RemoveCollectionEntityRemoveCollectionEntityResult();\r\n\r\nresult.removeCollectionEntity= SuccessResultResult.fromJS(json[\"removeCollectionEntity\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class SuccessResultResult {\r\n\t\tsuccess :boolean;\r\n\t\tisLocked :boolean;\r\n\r\n    static fromJS(json:any):SuccessResultResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new SuccessResultResult();\r\n\r\n\tresult.success = json[\"success\"];\r\n\tresult.isLocked = json[\"isLocked\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction ApproveEvidenceError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'ApproveEvidenceError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  ApproveEvidenceError.prototype = Object.create(Error.prototype);\r\n  ApproveEvidenceError.prototype.constructor = ApproveEvidenceError;\r\n  \r\nexport { ApproveEvidenceError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class ApproveEvidenceClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tapproveEvidence_approveEvidence(\treq? :ApproveEvidenceRequestInput) : Promise<ApproveEvidenceApproveEvidenceResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `mutation approveEvidence($req: ApproveEvidenceRequestInput) {\r\n  approveEvidence(request: $req) {\r\n    success\r\n    isLocked\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\treq : req ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new ApproveEvidenceError(\"http error running 'approveEvidence_approveEvidence', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new ApproveEvidenceError(\"graphql error(s) running 'approveEvidence_approveEvidence', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = ApproveEvidenceApproveEvidenceResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class ApproveEvidenceRequestInput {\r\n\t\tadminNotes? :string;\r\n\t\tapproveDecision :boolean;\r\n\t\tevidenceId? :string;\r\n\t\tid? :string;\r\n\t\townerId? :string;\r\n\r\n    static fromJS(json:any):ApproveEvidenceRequestInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ApproveEvidenceRequestInput();\r\n\r\n\tresult.adminNotes = json[\"adminNotes\"];\r\n\tresult.approveDecision = json[\"approveDecision\"];\r\n\tresult.evidenceId = json[\"evidenceId\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ApproveEvidenceApproveEvidenceResult {\r\n\t\tapproveEvidence? :SuccessResultResult;\r\n\r\n    static fromJS(json:any):ApproveEvidenceApproveEvidenceResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ApproveEvidenceApproveEvidenceResult();\r\n\r\nresult.approveEvidence= SuccessResultResult.fromJS(json[\"approveEvidence\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class SuccessResultResult {\r\n\t\tsuccess :boolean;\r\n\t\tisLocked :boolean;\r\n\r\n    static fromJS(json:any):SuccessResultResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new SuccessResultResult();\r\n\r\n\tresult.success = json[\"success\"];\r\n\tresult.isLocked = json[\"isLocked\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction CreateUpdateApplicationError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'CreateUpdateApplicationError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  CreateUpdateApplicationError.prototype = Object.create(Error.prototype);\r\n  CreateUpdateApplicationError.prototype.constructor = CreateUpdateApplicationError;\r\n  \r\nexport { CreateUpdateApplicationError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class CreateUpdateApplicationClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tcreateUpdateApplication_update(\tapp? :ClaimApplicationDtoInput) : Promise<CreateUpdateApplicationUpdateResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `mutation update($app: ClaimApplicationDtoInput) {\r\n  addUpdateClaimApplication(claimApplication: $app) {\r\n    result {\r\n      id\r\n      ownerId\r\n      reporter {\r\n        contact {\r\n          id\r\n        }\r\n      }\r\n      claimant {\r\n        contact {\r\n          id\r\n        }\r\n      }\r\n    }\r\n    accessToken\r\n    isLocked\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\tapp : app ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new CreateUpdateApplicationError(\"http error running 'createUpdateApplication_update', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new CreateUpdateApplicationError(\"graphql error(s) running 'createUpdateApplication_update', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = CreateUpdateApplicationUpdateResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class AddressDtoInput {\r\n\t\taddress1? :string;\r\n\t\taddress2? :string;\r\n\t\taddress3? :string;\r\n\t\tcountry? :CountryCodeType;\r\n\t\tdateCreated? :Date;\r\n\t\tpostcode? :string;\r\n\t\ttown? :string;\r\n\r\n    static fromJS(json:any):AddressDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new AddressDtoInput();\r\n\r\n\tresult.address1 = json[\"address1\"];\r\n\tresult.address2 = json[\"address2\"];\r\n\tresult.address3 = json[\"address3\"];\r\nresult.country= CountryCodeType[<string>json[\"country\"]];\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\n\tresult.postcode = json[\"postcode\"];\r\n\tresult.town = json[\"town\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ContactDtoInput {\r\n\t\taddress? :AddressDtoInput;\r\n\t\tcompanyName? :string;\r\n\t\tcontactType? :string;\r\n\t\tcorrespondenceMethod? :string;\r\n\t\tdateCreated? :Date;\r\n\t\temail? :string;\r\n\t\tfirstname? :string;\r\n\t\tid? :string;\r\n\t\tisLeadClaimant? :boolean;\r\n\t\trelationshipToLeadClaimant? :string;\r\n\t\trelationshipToLeadClaimantFamilyMember? :string;\r\n\t\tsurname? :string;\r\n\t\ttelephone? :string;\r\n\t\ttelephoneCountryCode? :CountryCodeType;\r\n\t\ttitle? :string;\r\n\r\n    static fromJS(json:any):ContactDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ContactDtoInput();\r\n\r\nresult.address= AddressDtoInput.fromJS(json[\"address\"]);\r\n\tresult.companyName = json[\"companyName\"];\r\n\tresult.contactType = json[\"contactType\"];\r\n\tresult.correspondenceMethod = json[\"correspondenceMethod\"];\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\n\tresult.email = json[\"email\"];\r\n\tresult.firstname = json[\"firstname\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.isLeadClaimant = json[\"isLeadClaimant\"];\r\n\tresult.relationshipToLeadClaimant = json[\"relationshipToLeadClaimant\"];\r\n\tresult.relationshipToLeadClaimantFamilyMember = json[\"relationshipToLeadClaimantFamilyMember\"];\r\n\tresult.surname = json[\"surname\"];\r\n\tresult.telephone = json[\"telephone\"];\r\nresult.telephoneCountryCode= CountryCodeType[<string>json[\"telephoneCountryCode\"]];\r\n\tresult.title = json[\"title\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimantDtoInput {\r\n\t\tadditionalClaimants? :Array<ContactDtoInput>;\r\n\t\tanyAdditionalClaimants? :boolean;\r\n\t\tappointRepresentative? :boolean;\r\n\t\tcontact? :ContactDtoInput;\r\n\t\tdateCreated? :Date;\r\n\t\trepresentative? :ContactDtoInput;\r\n\r\n    static fromJS(json:any):ClaimantDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimantDtoInput();\r\n\r\nif(json[\"additionalClaimants\"]){ \r\n\t\tresult.additionalClaimants = json[\"additionalClaimants\"].map(v=>ContactDtoInput.fromJS(v) );\t\r\n\t}\r\n\tresult.anyAdditionalClaimants = json[\"anyAdditionalClaimants\"];\r\n\tresult.appointRepresentative = json[\"appointRepresentative\"];\r\nresult.contact= ContactDtoInput.fromJS(json[\"contact\"]);\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\nresult.representative= ContactDtoInput.fromJS(json[\"representative\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class DeclarationDtoInput {\r\n\t\tadditionalInfo? :string;\r\n\t\tdateCreated? :Date;\r\n\t\tdeclarationConfirmation? :boolean;\r\n\t\tstatementOfTruthConfirmation? :boolean;\r\n\r\n    static fromJS(json:any):DeclarationDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new DeclarationDtoInput();\r\n\r\n\tresult.additionalInfo = json[\"additionalInfo\"];\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\n\tresult.declarationConfirmation = json[\"declarationConfirmation\"];\r\n\tresult.statementOfTruthConfirmation = json[\"statementOfTruthConfirmation\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class DocumentDtoInput {\r\n\t\tdateCreated? :Date;\r\n\t\tfileId :string;\r\n\t\tfileName? :string;\r\n\t\tfileSize :number;\r\n\t\tfileType? :string;\r\n\t\tid? :string;\r\n\r\n    static fromJS(json:any):DocumentDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new DocumentDtoInput();\r\n\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\n\tresult.fileId = json[\"fileId\"];\r\n\tresult.fileName = json[\"fileName\"];\r\n\tresult.fileSize = json[\"fileSize\"];\r\n\tresult.fileType = json[\"fileType\"];\r\n\tresult.id = json[\"id\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class EvidenceDtoInput {\r\n\t\tapprovalAdminNotes? :string;\r\n\t\tapprovalDecisionBy? :string;\r\n\t\tapprovalDecisionById? :string;\r\n\t\tapprovalDecisionDate? :string;\r\n\t\tapproved? :boolean;\r\n\t\tcontactId? :string;\r\n\t\tdateCreated? :Date;\r\n\t\tdescription? :string;\r\n\t\tdocuments? :Array<DocumentDtoInput>;\r\n\t\tdocumentType? :string;\r\n\t\tevidenceType? :string;\r\n\t\tid? :string;\r\n\t\trequiresApproval? :boolean;\r\n\r\n    static fromJS(json:any):EvidenceDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new EvidenceDtoInput();\r\n\r\n\tresult.approvalAdminNotes = json[\"approvalAdminNotes\"];\r\n\tresult.approvalDecisionBy = json[\"approvalDecisionBy\"];\r\n\tresult.approvalDecisionById = json[\"approvalDecisionById\"];\r\n\tresult.approvalDecisionDate = json[\"approvalDecisionDate\"];\r\n\tresult.approved = json[\"approved\"];\r\n\tresult.contactId = json[\"contactId\"];\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\n\tresult.description = json[\"description\"];\r\nif(json[\"documents\"]){ \r\n\t\tresult.documents = json[\"documents\"].map(v=>DocumentDtoInput.fromJS(v) );\t\r\n\t}\r\n\tresult.documentType = json[\"documentType\"];\r\n\tresult.evidenceType = json[\"evidenceType\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.requiresApproval = json[\"requiresApproval\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class IssueDtoInput {\r\n\t\tarea? :string;\r\n\t\tbuilderNotified? :boolean;\r\n\t\tbuilderNotifiedDate? :Date;\r\n\t\tbuilderNotifiedEvidence? :boolean;\r\n\t\tdateCreated? :Date;\r\n\t\tdateEvident? :Date;\r\n\t\tdetails? :string;\r\n\t\tevidence? :Array<EvidenceDtoInput>;\r\n\t\tfireSafetyRisk? :boolean;\r\n\t\tfireSafetyRiskList? :Array<string>;\r\n\t\tid? :string;\r\n\t\treportCarriedOut? :boolean;\r\n\t\treportDetails? :string;\r\n\t\twaterIngress? :boolean;\r\n\t\twaterIngressDetails? :string;\r\n\r\n    static fromJS(json:any):IssueDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new IssueDtoInput();\r\n\r\n\tresult.area = json[\"area\"];\r\n\tresult.builderNotified = json[\"builderNotified\"];\r\nresult.builderNotifiedDate = json[\"builderNotifiedDate\"] ? new Date(json[\"builderNotifiedDate\"]) : null;\r\n\tresult.builderNotifiedEvidence = json[\"builderNotifiedEvidence\"];\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\nresult.dateEvident = json[\"dateEvident\"] ? new Date(json[\"dateEvident\"]) : null;\r\n\tresult.details = json[\"details\"];\r\nif(json[\"evidence\"]){ \r\n\t\tresult.evidence = json[\"evidence\"].map(v=>EvidenceDtoInput.fromJS(v) );\t\r\n\t}\r\n\tresult.fireSafetyRisk = json[\"fireSafetyRisk\"];\r\n\tresult.fireSafetyRiskList = json[\"fireSafetyRiskList\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.reportCarriedOut = json[\"reportCarriedOut\"];\r\n\tresult.reportDetails = json[\"reportDetails\"];\r\n\tresult.waterIngress = json[\"waterIngress\"];\r\n\tresult.waterIngressDetails = json[\"waterIngressDetails\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class PropertyDtoInput {\r\n\t\taddress? :AddressDtoInput;\r\n\t\tagent? :ContactDtoInput;\r\n\t\tagreementDate? :Date;\r\n\t\tanyContractualRemedy? :boolean;\r\n\t\tbuildingWork? :boolean;\r\n\t\tbuildingWorkDetails? :string;\r\n\t\tcommercialPropertyType? :string;\r\n\t\tcontractorDetails? :string;\r\n\t\tcontractualRemedyDetails? :string;\r\n\t\tdateCreated? :Date;\r\n\t\tfreeholder? :ContactDtoInput;\r\n\t\thasAgent? :boolean;\r\n\t\tnewBuildOrConversion? :string;\r\n\t\tnoSurveyReason? :string;\r\n\t\totherInsurance? :boolean;\r\n\t\totherInsuranceDetails? :string;\r\n\t\toverseeingBuilder? :ContactDtoInput;\r\n\t\toverseeingBuilderEmployed? :boolean;\r\n\t\toverseeingBuilderStartDate? :Date;\r\n\t\townershipType? :string;\r\n\t\tpolicyKnown? :boolean;\r\n\t\tpolicyNumber? :string;\r\n\t\tpreviousClaim? :boolean;\r\n\t\tpreviousClaimDetails? :string;\r\n\t\tpropertyType? :string;\r\n\t\tpurchased? :boolean;\r\n\t\tpurchaseDate? :Date;\r\n\t\tpurchasePrice? :string;\r\n\t\treasonReduced? :string;\r\n\t\treduced? :boolean;\r\n\t\treductionAmount? :string;\r\n\t\tresidentialPropertyType? :string;\r\n\t\tretention? :boolean;\r\n\t\tretentionAmount? :string;\r\n\t\tretentionReason? :string;\r\n\t\tselfBuild? :boolean;\r\n\t\tselfBuildStartDate? :Date;\r\n\t\tsurveyCompleted? :boolean;\r\n\t\tusage? :string;\r\n\r\n    static fromJS(json:any):PropertyDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new PropertyDtoInput();\r\n\r\nresult.address= AddressDtoInput.fromJS(json[\"address\"]);\r\nresult.agent= ContactDtoInput.fromJS(json[\"agent\"]);\r\nresult.agreementDate = json[\"agreementDate\"] ? new Date(json[\"agreementDate\"]) : null;\r\n\tresult.anyContractualRemedy = json[\"anyContractualRemedy\"];\r\n\tresult.buildingWork = json[\"buildingWork\"];\r\n\tresult.buildingWorkDetails = json[\"buildingWorkDetails\"];\r\n\tresult.commercialPropertyType = json[\"commercialPropertyType\"];\r\n\tresult.contractorDetails = json[\"contractorDetails\"];\r\n\tresult.contractualRemedyDetails = json[\"contractualRemedyDetails\"];\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\nresult.freeholder= ContactDtoInput.fromJS(json[\"freeholder\"]);\r\n\tresult.hasAgent = json[\"hasAgent\"];\r\n\tresult.newBuildOrConversion = json[\"newBuildOrConversion\"];\r\n\tresult.noSurveyReason = json[\"noSurveyReason\"];\r\n\tresult.otherInsurance = json[\"otherInsurance\"];\r\n\tresult.otherInsuranceDetails = json[\"otherInsuranceDetails\"];\r\nresult.overseeingBuilder= ContactDtoInput.fromJS(json[\"overseeingBuilder\"]);\r\n\tresult.overseeingBuilderEmployed = json[\"overseeingBuilderEmployed\"];\r\nresult.overseeingBuilderStartDate = json[\"overseeingBuilderStartDate\"] ? new Date(json[\"overseeingBuilderStartDate\"]) : null;\r\n\tresult.ownershipType = json[\"ownershipType\"];\r\n\tresult.policyKnown = json[\"policyKnown\"];\r\n\tresult.policyNumber = json[\"policyNumber\"];\r\n\tresult.previousClaim = json[\"previousClaim\"];\r\n\tresult.previousClaimDetails = json[\"previousClaimDetails\"];\r\n\tresult.propertyType = json[\"propertyType\"];\r\n\tresult.purchased = json[\"purchased\"];\r\nresult.purchaseDate = json[\"purchaseDate\"] ? new Date(json[\"purchaseDate\"]) : null;\r\n\tresult.purchasePrice = json[\"purchasePrice\"];\r\n\tresult.reasonReduced = json[\"reasonReduced\"];\r\n\tresult.reduced = json[\"reduced\"];\r\n\tresult.reductionAmount = json[\"reductionAmount\"];\r\n\tresult.residentialPropertyType = json[\"residentialPropertyType\"];\r\n\tresult.retention = json[\"retention\"];\r\n\tresult.retentionAmount = json[\"retentionAmount\"];\r\n\tresult.retentionReason = json[\"retentionReason\"];\r\n\tresult.selfBuild = json[\"selfBuild\"];\r\nresult.selfBuildStartDate = json[\"selfBuildStartDate\"] ? new Date(json[\"selfBuildStartDate\"]) : null;\r\n\tresult.surveyCompleted = json[\"surveyCompleted\"];\r\n\tresult.usage = json[\"usage\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ReporterDtoInput {\r\n\t\tcontact? :ContactDtoInput;\r\n\t\tdateCreated? :Date;\r\n\t\tisRepresenting? :boolean;\r\n\t\tsecurityAnswer? :string;\r\n\t\tsecurityQuestion? :string;\r\n\r\n    static fromJS(json:any):ReporterDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ReporterDtoInput();\r\n\r\nresult.contact= ContactDtoInput.fromJS(json[\"contact\"]);\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\n\tresult.isRepresenting = json[\"isRepresenting\"];\r\n\tresult.securityAnswer = json[\"securityAnswer\"];\r\n\tresult.securityQuestion = json[\"securityQuestion\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimApplicationDtoInput {\r\n\t\tclaimant? :ClaimantDtoInput;\r\n\t\tdateCreated? :Date;\r\n\t\tdeclaration? :DeclarationDtoInput;\r\n\t\tevidence? :Array<EvidenceDtoInput>;\r\n\t\tid? :string;\r\n\t\tisDuplicate? :boolean;\r\n\t\tissues? :Array<IssueDtoInput>;\r\n\t\toutputDocument? :DocumentDtoInput;\r\n\t\townerId? :string;\r\n\t\tproperty? :PropertyDtoInput;\r\n\t\treporter? :ReporterDtoInput;\r\n\t\tscreeningInformationViewed :PolicyType;\r\n\t\tstatus? :ClaimStatus;\r\n\r\n    static fromJS(json:any):ClaimApplicationDtoInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimApplicationDtoInput();\r\n\r\nresult.claimant= ClaimantDtoInput.fromJS(json[\"claimant\"]);\r\nresult.dateCreated = json[\"dateCreated\"] ? new Date(json[\"dateCreated\"]) : null;\r\nresult.declaration= DeclarationDtoInput.fromJS(json[\"declaration\"]);\r\nif(json[\"evidence\"]){ \r\n\t\tresult.evidence = json[\"evidence\"].map(v=>EvidenceDtoInput.fromJS(v) );\t\r\n\t}\r\n\tresult.id = json[\"id\"];\r\n\tresult.isDuplicate = json[\"isDuplicate\"];\r\nif(json[\"issues\"]){ \r\n\t\tresult.issues = json[\"issues\"].map(v=>IssueDtoInput.fromJS(v) );\t\r\n\t}\r\nresult.outputDocument= DocumentDtoInput.fromJS(json[\"outputDocument\"]);\r\n\tresult.ownerId = json[\"ownerId\"];\r\nresult.property= PropertyDtoInput.fromJS(json[\"property\"]);\r\nresult.reporter= ReporterDtoInput.fromJS(json[\"reporter\"]);\r\nresult.screeningInformationViewed= PolicyType[<string>json[\"screeningInformationViewed\"]];\r\nresult.status= ClaimStatus[<string>json[\"status\"]];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class CreateUpdateApplicationUpdateResult {\r\n\t\taddUpdateClaimApplication? :ClaimApplicationResultResult;\r\n\r\n    static fromJS(json:any):CreateUpdateApplicationUpdateResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new CreateUpdateApplicationUpdateResult();\r\n\r\nresult.addUpdateClaimApplication= ClaimApplicationResultResult.fromJS(json[\"addUpdateClaimApplication\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimApplicationResultResult {\r\n\t\tresult? :ClaimApplicationDtoResult;\r\n\t\taccessToken? :string;\r\n\t\tisLocked :boolean;\r\n\r\n    static fromJS(json:any):ClaimApplicationResultResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimApplicationResultResult();\r\n\r\nresult.result= ClaimApplicationDtoResult.fromJS(json[\"result\"]);\r\n\tresult.accessToken = json[\"accessToken\"];\r\n\tresult.isLocked = json[\"isLocked\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimApplicationDtoResult {\r\n\t\tid? :string;\r\n\t\townerId? :string;\r\n\t\treporter? :ReporterDtoResult;\r\n\t\tclaimant? :ClaimantDtoResult;\r\n\r\n    static fromJS(json:any):ClaimApplicationDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimApplicationDtoResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\nresult.reporter= ReporterDtoResult.fromJS(json[\"reporter\"]);\r\nresult.claimant= ClaimantDtoResult.fromJS(json[\"claimant\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ReporterDtoResult {\r\n\t\tcontact? :ContactDtoResult;\r\n\r\n    static fromJS(json:any):ReporterDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ReporterDtoResult();\r\n\r\nresult.contact= ContactDtoResult.fromJS(json[\"contact\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ContactDtoResult {\r\n\t\tid? :string;\r\n\r\n    static fromJS(json:any):ContactDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ContactDtoResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimantDtoResult {\r\n\t\tcontact? :ContactDtoResult;\r\n\r\n    static fromJS(json:any):ClaimantDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimantDtoResult();\r\n\r\nresult.contact= ContactDtoResult.fromJS(json[\"contact\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n\texport enum CountryCodeType\r\n\t{\r\n\t\tNONE = \"NONE\",\r\n\t\tAFGHANISTAN = \"AFGHANISTAN\",\r\n\t\tALBANIA = \"ALBANIA\",\r\n\t\tALGERIA = \"ALGERIA\",\r\n\t\tAMERICANSAMOA = \"AMERICANSAMOA\",\r\n\t\tANDORRA = \"ANDORRA\",\r\n\t\tANGOLA = \"ANGOLA\",\r\n\t\tANGUILLA = \"ANGUILLA\",\r\n\t\tANTARCTICA = \"ANTARCTICA\",\r\n\t\tARGENTINA = \"ARGENTINA\",\r\n\t\tARMENIA = \"ARMENIA\",\r\n\t\tARUBA = \"ARUBA\",\r\n\t\tAUSTRALIA = \"AUSTRALIA\",\r\n\t\tAUSTRIA = \"AUSTRIA\",\r\n\t\tAZERBAIJAN = \"AZERBAIJAN\",\r\n\t\tBAHAMAS = \"BAHAMAS\",\r\n\t\tBAHRAIN = \"BAHRAIN\",\r\n\t\tBANGLADESH = \"BANGLADESH\",\r\n\t\tBARBADOS = \"BARBADOS\",\r\n\t\tBELARUS = \"BELARUS\",\r\n\t\tBELGIUM = \"BELGIUM\",\r\n\t\tBELIZE = \"BELIZE\",\r\n\t\tBENIN = \"BENIN\",\r\n\t\tBERMUDA = \"BERMUDA\",\r\n\t\tBHUTAN = \"BHUTAN\",\r\n\t\tBOLIVIA = \"BOLIVIA\",\r\n\t\tBOSNIAANDHERZEGOVINA = \"BOSNIAANDHERZEGOVINA\",\r\n\t\tBOTSWANA = \"BOTSWANA\",\r\n\t\tBRAZIL = \"BRAZIL\",\r\n\t\tBRITISHVIRGINISLANDS = \"BRITISHVIRGINISLANDS\",\r\n\t\tBRUNEI = \"BRUNEI\",\r\n\t\tBULGARIA = \"BULGARIA\",\r\n\t\tBURKINAFASO = \"BURKINAFASO\",\r\n\t\tBURUNDI = \"BURUNDI\",\r\n\t\tCAMBODIA = \"CAMBODIA\",\r\n\t\tCAMEROON = \"CAMEROON\",\r\n\t\tCANADA = \"CANADA\",\r\n\t\tCAPEVERDE = \"CAPEVERDE\",\r\n\t\tCAYMANISLANDS = \"CAYMANISLANDS\",\r\n\t\tCENTRALAFRICANREPUBLIC = \"CENTRALAFRICANREPUBLIC\",\r\n\t\tCHILE = \"CHILE\",\r\n\t\tCHINA = \"CHINA\",\r\n\t\tCOLOMBIA = \"COLOMBIA\",\r\n\t\tCOMOROS = \"COMOROS\",\r\n\t\tCOOKISLANDS = \"COOKISLANDS\",\r\n\t\tCOSTARICA = \"COSTARICA\",\r\n\t\tCROATIA = \"CROATIA\",\r\n\t\tCUBA = \"CUBA\",\r\n\t\tCURACAO = \"CURACAO\",\r\n\t\tCYPRUS = \"CYPRUS\",\r\n\t\tCZECHREPUBLIC = \"CZECHREPUBLIC\",\r\n\t\tDEMOCRATICREPUBLICOFCONGO = \"DEMOCRATICREPUBLICOFCONGO\",\r\n\t\tDENMARK = \"DENMARK\",\r\n\t\tDJIBOUTI = \"DJIBOUTI\",\r\n\t\tDOMINICA = \"DOMINICA\",\r\n\t\tDOMINICANREPUBLIC = \"DOMINICANREPUBLIC\",\r\n\t\tEASTTIMOR = \"EASTTIMOR\",\r\n\t\tECUADOR = \"ECUADOR\",\r\n\t\tEGYPT = \"EGYPT\",\r\n\t\tELSALVADOR = \"ELSALVADOR\",\r\n\t\tEQUATORIALGUINEA = \"EQUATORIALGUINEA\",\r\n\t\tERITREA = \"ERITREA\",\r\n\t\tESTONIA = \"ESTONIA\",\r\n\t\tETHIOPIA = \"ETHIOPIA\",\r\n\t\tFALKLANDISLANDS = \"FALKLANDISLANDS\",\r\n\t\tFAROEISLANDS = \"FAROEISLANDS\",\r\n\t\tFIJI = \"FIJI\",\r\n\t\tFINLAND = \"FINLAND\",\r\n\t\tFRANCE = \"FRANCE\",\r\n\t\tFRENCHPOLYNESIA = \"FRENCHPOLYNESIA\",\r\n\t\tGABON = \"GABON\",\r\n\t\tGAMBIA = \"GAMBIA\",\r\n\t\tGEORGIA = \"GEORGIA\",\r\n\t\tGERMANY = \"GERMANY\",\r\n\t\tGHANA = \"GHANA\",\r\n\t\tGIBRALTAR = \"GIBRALTAR\",\r\n\t\tGREECE = \"GREECE\",\r\n\t\tGREENLAND = \"GREENLAND\",\r\n\t\tGUADELOUPE = \"GUADELOUPE\",\r\n\t\tGUAM = \"GUAM\",\r\n\t\tGUATEMALA = \"GUATEMALA\",\r\n\t\tGUINEA = \"GUINEA\",\r\n\t\tGUINEABISSAU = \"GUINEABISSAU\",\r\n\t\tGUYANA = \"GUYANA\",\r\n\t\tHAITI = \"HAITI\",\r\n\t\tHONDURAS = \"HONDURAS\",\r\n\t\tHONGKONG = \"HONGKONG\",\r\n\t\tHUNGARY = \"HUNGARY\",\r\n\t\tICELAND = \"ICELAND\",\r\n\t\tINDIA = \"INDIA\",\r\n\t\tINDONESIA = \"INDONESIA\",\r\n\t\tIRAN = \"IRAN\",\r\n\t\tIRAQ = \"IRAQ\",\r\n\t\tIRELAND = \"IRELAND\",\r\n\t\tISLEOFMAN = \"ISLEOFMAN\",\r\n\t\tISRAEL = \"ISRAEL\",\r\n\t\tITALY = \"ITALY\",\r\n\t\tIVORYCOAST = \"IVORYCOAST\",\r\n\t\tJAMAICA = \"JAMAICA\",\r\n\t\tJAPAN = \"JAPAN\",\r\n\t\tJORDAN = \"JORDAN\",\r\n\t\tKAZAKHSTAN = \"KAZAKHSTAN\",\r\n\t\tKENYA = \"KENYA\",\r\n\t\tKIRIBATI = \"KIRIBATI\",\r\n\t\tKOSOVO = \"KOSOVO\",\r\n\t\tKUWAIT = \"KUWAIT\",\r\n\t\tKYRGYZSTAN = \"KYRGYZSTAN\",\r\n\t\tLAOS = \"LAOS\",\r\n\t\tLATVIA = \"LATVIA\",\r\n\t\tLEBANON = \"LEBANON\",\r\n\t\tLESOTHO = \"LESOTHO\",\r\n\t\tLIBERIA = \"LIBERIA\",\r\n\t\tLIBYA = \"LIBYA\",\r\n\t\tLIECHTENSTEIN = \"LIECHTENSTEIN\",\r\n\t\tLITHUANIA = \"LITHUANIA\",\r\n\t\tLUXEMBOURG = \"LUXEMBOURG\",\r\n\t\tMACAU = \"MACAU\",\r\n\t\tMACEDONIA = \"MACEDONIA\",\r\n\t\tMADAGASCAR = \"MADAGASCAR\",\r\n\t\tMALAWI = \"MALAWI\",\r\n\t\tMALAYSIA = \"MALAYSIA\",\r\n\t\tMALDIVES = \"MALDIVES\",\r\n\t\tMALI = \"MALI\",\r\n\t\tMALTA = \"MALTA\",\r\n\t\tMARSHALLISLANDS = \"MARSHALLISLANDS\",\r\n\t\tMAURITANIA = \"MAURITANIA\",\r\n\t\tMAURITIUS = \"MAURITIUS\",\r\n\t\tMEXICO = \"MEXICO\",\r\n\t\tMICRONESIA = \"MICRONESIA\",\r\n\t\tMOLDOVA = \"MOLDOVA\",\r\n\t\tMONACO = \"MONACO\",\r\n\t\tMONGOLIA = \"MONGOLIA\",\r\n\t\tMONTENEGRO = \"MONTENEGRO\",\r\n\t\tMONTSERRAT = \"MONTSERRAT\",\r\n\t\tMOROCCO = \"MOROCCO\",\r\n\t\tMOZAMBIQUE = \"MOZAMBIQUE\",\r\n\t\tMYANMARBURMA = \"MYANMARBURMA\",\r\n\t\tNAMIBIA = \"NAMIBIA\",\r\n\t\tNAURU = \"NAURU\",\r\n\t\tNEPAL = \"NEPAL\",\r\n\t\tNETHERLANDS = \"NETHERLANDS\",\r\n\t\tNEWCALEDONIA = \"NEWCALEDONIA\",\r\n\t\tNEWZEALAND = \"NEWZEALAND\",\r\n\t\tNICARAGUA = \"NICARAGUA\",\r\n\t\tNIGER = \"NIGER\",\r\n\t\tNIGERIA = \"NIGERIA\",\r\n\t\tNIUE = \"NIUE\",\r\n\t\tNORFOLKISLAND = \"NORFOLKISLAND\",\r\n\t\tNORTHKOREA = \"NORTHKOREA\",\r\n\t\tNORTHERNMARIANAISLANDS = \"NORTHERNMARIANAISLANDS\",\r\n\t\tNORWAY = \"NORWAY\",\r\n\t\tOMAN = \"OMAN\",\r\n\t\tPAKISTAN = \"PAKISTAN\",\r\n\t\tPALAU = \"PALAU\",\r\n\t\tPANAMA = \"PANAMA\",\r\n\t\tPAPUANEWGUINEA = \"PAPUANEWGUINEA\",\r\n\t\tPARAGUAY = \"PARAGUAY\",\r\n\t\tPERU = \"PERU\",\r\n\t\tPHILIPPINES = \"PHILIPPINES\",\r\n\t\tPITCAIRNISLANDS = \"PITCAIRNISLANDS\",\r\n\t\tPOLAND = \"POLAND\",\r\n\t\tPORTUGAL = \"PORTUGAL\",\r\n\t\tPUERTORICO = \"PUERTORICO\",\r\n\t\tQATAR = \"QATAR\",\r\n\t\tREPUBLICOFTHECONGO = \"REPUBLICOFTHECONGO\",\r\n\t\tREUNION = \"REUNION\",\r\n\t\tROMANIA = \"ROMANIA\",\r\n\t\tRUSSIA = \"RUSSIA\",\r\n\t\tRWANDA = \"RWANDA\",\r\n\t\tSAINTBARTHELEMY = \"SAINTBARTHELEMY\",\r\n\t\tSAINTHELENA = \"SAINTHELENA\",\r\n\t\tSAINTKITTSANDNEVIS = \"SAINTKITTSANDNEVIS\",\r\n\t\tSAINTLUCIA = \"SAINTLUCIA\",\r\n\t\tSAINTMARTIN = \"SAINTMARTIN\",\r\n\t\tSAINTPIERREANDMIQUELON = \"SAINTPIERREANDMIQUELON\",\r\n\t\tSAINTVINCENTANDTHEGRENADINES = \"SAINTVINCENTANDTHEGRENADINES\",\r\n\t\tSAMOA = \"SAMOA\",\r\n\t\tSANMARINO = \"SANMARINO\",\r\n\t\tSAOTOMEANDPRINCIPE = \"SAOTOMEANDPRINCIPE\",\r\n\t\tSAUDIARABIA = \"SAUDIARABIA\",\r\n\t\tSENEGAL = \"SENEGAL\",\r\n\t\tSERBIA = \"SERBIA\",\r\n\t\tSEYCHELLES = \"SEYCHELLES\",\r\n\t\tSIERRALEONE = \"SIERRALEONE\",\r\n\t\tSINGAPORE = \"SINGAPORE\",\r\n\t\tSLOVAKIA = \"SLOVAKIA\",\r\n\t\tSLOVENIA = \"SLOVENIA\",\r\n\t\tSOLOMONISLANDS = \"SOLOMONISLANDS\",\r\n\t\tSOMALIA = \"SOMALIA\",\r\n\t\tSOUTHAFRICA = \"SOUTHAFRICA\",\r\n\t\tSOUTHKOREA = \"SOUTHKOREA\",\r\n\t\tSOUTHSUDAN = \"SOUTHSUDAN\",\r\n\t\tSPAIN = \"SPAIN\",\r\n\t\tSRILANKA = \"SRILANKA\",\r\n\t\tSUDAN = \"SUDAN\",\r\n\t\tSURINAME = \"SURINAME\",\r\n\t\tSWAZILAND = \"SWAZILAND\",\r\n\t\tSWEDEN = \"SWEDEN\",\r\n\t\tSWITZERLAND = \"SWITZERLAND\",\r\n\t\tSYRIA = \"SYRIA\",\r\n\t\tTAIWAN = \"TAIWAN\",\r\n\t\tTAJIKISTAN = \"TAJIKISTAN\",\r\n\t\tTANZANIA = \"TANZANIA\",\r\n\t\tTHAILAND = \"THAILAND\",\r\n\t\tTOGO = \"TOGO\",\r\n\t\tTOKELAU = \"TOKELAU\",\r\n\t\tTRINIDADANDTOBAGO = \"TRINIDADANDTOBAGO\",\r\n\t\tTUNISIA = \"TUNISIA\",\r\n\t\tTURKEY = \"TURKEY\",\r\n\t\tTURKMENISTAN = \"TURKMENISTAN\",\r\n\t\tTUVALU = \"TUVALU\",\r\n\t\tUGANDA = \"UGANDA\",\r\n\t\tUKRAINE = \"UKRAINE\",\r\n\t\tUNITEDARABEMIRATES = \"UNITEDARABEMIRATES\",\r\n\t\tUNITEDKINGDOM = \"UNITEDKINGDOM\",\r\n\t\tUNITEDSTATES = \"UNITEDSTATES\",\r\n\t\tURUGUAY = \"URUGUAY\",\r\n\t\tUZBEKISTAN = \"UZBEKISTAN\",\r\n\t\tVANUATU = \"VANUATU\",\r\n\t\tVATICAN = \"VATICAN\",\r\n\t\tVENEZUELA = \"VENEZUELA\",\r\n\t\tVIETNAM = \"VIETNAM\",\r\n\t\tWESTERNSAHARA = \"WESTERNSAHARA\",\r\n\t\tYEMEN = \"YEMEN\",\r\n\t\tZAMBIA = \"ZAMBIA\",\r\n\t\tZIMBABWE = \"ZIMBABWE\",\r\n\t}\r\n\r\n\texport enum PolicyType\r\n\t{\r\n\t\tUNKNOWN = \"UNKNOWN\",\r\n\t\tNEWHOMES = \"NEWHOMES\",\r\n\t\tSOCIALHOUSING = \"SOCIALHOUSING\",\r\n\t\tPRS = \"PRS\",\r\n\t\tCOMMERCIAL = \"COMMERCIAL\",\r\n\t\tSELFBUILD = \"SELFBUILD\",\r\n\t\tCOMPLETED = \"COMPLETED\",\r\n\t\tINSOLVENCY = \"INSOLVENCY\",\r\n\t\tASUCDIG = \"ASUCDIG\",\r\n\t\tASUCBIG = \"ASUCBIG\",\r\n\t\tROADSEWERBONDS = \"ROADSEWERBONDS\",\r\n\t}\r\n\r\n\texport enum ClaimStatus\r\n\t{\r\n\t\tINCOMPLETE = \"INCOMPLETE\",\r\n\t\tSUBMITTED = \"SUBMITTED\",\r\n\t\tREVIEWED = \"REVIEWED\",\r\n\t\tARCHIVED = \"ARCHIVED\",\r\n\t}\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction PostcodeLookupError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'PostcodeLookupError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  PostcodeLookupError.prototype = Object.create(Error.prototype);\r\n  PostcodeLookupError.prototype.constructor = PostcodeLookupError;\r\n  \r\nexport { PostcodeLookupError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class PostcodeLookupClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tpostcodeLookup(\tpostcode? :string) : Promise<PostcodeLookupResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `query($postcode: String) {\r\n  postcodeLookup(postcode: $postcode) {\r\n    address1\r\n    address2\r\n    address3\r\n    town\r\n    postcode\r\n    country\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\tpostcode : postcode ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new PostcodeLookupError(\"http error running 'postcodeLookup', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new PostcodeLookupError(\"graphql error(s) running 'postcodeLookup', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = PostcodeLookupResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class PostcodeLookupResult {\r\n\t\tpostcodeLookup? :Array<AddressDtoResult>;\r\n\r\n    static fromJS(json:any):PostcodeLookupResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new PostcodeLookupResult();\r\n\r\nif(json[\"postcodeLookup\"]){ \r\n\t\tresult.postcodeLookup = json[\"postcodeLookup\"].map(v=>AddressDtoResult.fromJS(v) );\t\r\n\t}\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class AddressDtoResult {\r\n\t\taddress1? :string;\r\n\t\taddress2? :string;\r\n\t\taddress3? :string;\r\n\t\ttown? :string;\r\n\t\tpostcode? :string;\r\n\t\tcountry? :CountryCodeType;\r\n\r\n    static fromJS(json:any):AddressDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new AddressDtoResult();\r\n\r\n\tresult.address1 = json[\"address1\"];\r\n\tresult.address2 = json[\"address2\"];\r\n\tresult.address3 = json[\"address3\"];\r\n\tresult.town = json[\"town\"];\r\n\tresult.postcode = json[\"postcode\"];\r\nresult.country= CountryCodeType[<string>json[\"country\"]];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n\texport enum CountryCodeType\r\n\t{\r\n\t\tNONE = \"NONE\",\r\n\t\tAFGHANISTAN = \"AFGHANISTAN\",\r\n\t\tALBANIA = \"ALBANIA\",\r\n\t\tALGERIA = \"ALGERIA\",\r\n\t\tAMERICANSAMOA = \"AMERICANSAMOA\",\r\n\t\tANDORRA = \"ANDORRA\",\r\n\t\tANGOLA = \"ANGOLA\",\r\n\t\tANGUILLA = \"ANGUILLA\",\r\n\t\tANTARCTICA = \"ANTARCTICA\",\r\n\t\tARGENTINA = \"ARGENTINA\",\r\n\t\tARMENIA = \"ARMENIA\",\r\n\t\tARUBA = \"ARUBA\",\r\n\t\tAUSTRALIA = \"AUSTRALIA\",\r\n\t\tAUSTRIA = \"AUSTRIA\",\r\n\t\tAZERBAIJAN = \"AZERBAIJAN\",\r\n\t\tBAHAMAS = \"BAHAMAS\",\r\n\t\tBAHRAIN = \"BAHRAIN\",\r\n\t\tBANGLADESH = \"BANGLADESH\",\r\n\t\tBARBADOS = \"BARBADOS\",\r\n\t\tBELARUS = \"BELARUS\",\r\n\t\tBELGIUM = \"BELGIUM\",\r\n\t\tBELIZE = \"BELIZE\",\r\n\t\tBENIN = \"BENIN\",\r\n\t\tBERMUDA = \"BERMUDA\",\r\n\t\tBHUTAN = \"BHUTAN\",\r\n\t\tBOLIVIA = \"BOLIVIA\",\r\n\t\tBOSNIAANDHERZEGOVINA = \"BOSNIAANDHERZEGOVINA\",\r\n\t\tBOTSWANA = \"BOTSWANA\",\r\n\t\tBRAZIL = \"BRAZIL\",\r\n\t\tBRITISHVIRGINISLANDS = \"BRITISHVIRGINISLANDS\",\r\n\t\tBRUNEI = \"BRUNEI\",\r\n\t\tBULGARIA = \"BULGARIA\",\r\n\t\tBURKINAFASO = \"BURKINAFASO\",\r\n\t\tBURUNDI = \"BURUNDI\",\r\n\t\tCAMBODIA = \"CAMBODIA\",\r\n\t\tCAMEROON = \"CAMEROON\",\r\n\t\tCANADA = \"CANADA\",\r\n\t\tCAPEVERDE = \"CAPEVERDE\",\r\n\t\tCAYMANISLANDS = \"CAYMANISLANDS\",\r\n\t\tCENTRALAFRICANREPUBLIC = \"CENTRALAFRICANREPUBLIC\",\r\n\t\tCHILE = \"CHILE\",\r\n\t\tCHINA = \"CHINA\",\r\n\t\tCOLOMBIA = \"COLOMBIA\",\r\n\t\tCOMOROS = \"COMOROS\",\r\n\t\tCOOKISLANDS = \"COOKISLANDS\",\r\n\t\tCOSTARICA = \"COSTARICA\",\r\n\t\tCROATIA = \"CROATIA\",\r\n\t\tCUBA = \"CUBA\",\r\n\t\tCURACAO = \"CURACAO\",\r\n\t\tCYPRUS = \"CYPRUS\",\r\n\t\tCZECHREPUBLIC = \"CZECHREPUBLIC\",\r\n\t\tDEMOCRATICREPUBLICOFCONGO = \"DEMOCRATICREPUBLICOFCONGO\",\r\n\t\tDENMARK = \"DENMARK\",\r\n\t\tDJIBOUTI = \"DJIBOUTI\",\r\n\t\tDOMINICA = \"DOMINICA\",\r\n\t\tDOMINICANREPUBLIC = \"DOMINICANREPUBLIC\",\r\n\t\tEASTTIMOR = \"EASTTIMOR\",\r\n\t\tECUADOR = \"ECUADOR\",\r\n\t\tEGYPT = \"EGYPT\",\r\n\t\tELSALVADOR = \"ELSALVADOR\",\r\n\t\tEQUATORIALGUINEA = \"EQUATORIALGUINEA\",\r\n\t\tERITREA = \"ERITREA\",\r\n\t\tESTONIA = \"ESTONIA\",\r\n\t\tETHIOPIA = \"ETHIOPIA\",\r\n\t\tFALKLANDISLANDS = \"FALKLANDISLANDS\",\r\n\t\tFAROEISLANDS = \"FAROEISLANDS\",\r\n\t\tFIJI = \"FIJI\",\r\n\t\tFINLAND = \"FINLAND\",\r\n\t\tFRANCE = \"FRANCE\",\r\n\t\tFRENCHPOLYNESIA = \"FRENCHPOLYNESIA\",\r\n\t\tGABON = \"GABON\",\r\n\t\tGAMBIA = \"GAMBIA\",\r\n\t\tGEORGIA = \"GEORGIA\",\r\n\t\tGERMANY = \"GERMANY\",\r\n\t\tGHANA = \"GHANA\",\r\n\t\tGIBRALTAR = \"GIBRALTAR\",\r\n\t\tGREECE = \"GREECE\",\r\n\t\tGREENLAND = \"GREENLAND\",\r\n\t\tGUADELOUPE = \"GUADELOUPE\",\r\n\t\tGUAM = \"GUAM\",\r\n\t\tGUATEMALA = \"GUATEMALA\",\r\n\t\tGUINEA = \"GUINEA\",\r\n\t\tGUINEABISSAU = \"GUINEABISSAU\",\r\n\t\tGUYANA = \"GUYANA\",\r\n\t\tHAITI = \"HAITI\",\r\n\t\tHONDURAS = \"HONDURAS\",\r\n\t\tHONGKONG = \"HONGKONG\",\r\n\t\tHUNGARY = \"HUNGARY\",\r\n\t\tICELAND = \"ICELAND\",\r\n\t\tINDIA = \"INDIA\",\r\n\t\tINDONESIA = \"INDONESIA\",\r\n\t\tIRAN = \"IRAN\",\r\n\t\tIRAQ = \"IRAQ\",\r\n\t\tIRELAND = \"IRELAND\",\r\n\t\tISLEOFMAN = \"ISLEOFMAN\",\r\n\t\tISRAEL = \"ISRAEL\",\r\n\t\tITALY = \"ITALY\",\r\n\t\tIVORYCOAST = \"IVORYCOAST\",\r\n\t\tJAMAICA = \"JAMAICA\",\r\n\t\tJAPAN = \"JAPAN\",\r\n\t\tJORDAN = \"JORDAN\",\r\n\t\tKAZAKHSTAN = \"KAZAKHSTAN\",\r\n\t\tKENYA = \"KENYA\",\r\n\t\tKIRIBATI = \"KIRIBATI\",\r\n\t\tKOSOVO = \"KOSOVO\",\r\n\t\tKUWAIT = \"KUWAIT\",\r\n\t\tKYRGYZSTAN = \"KYRGYZSTAN\",\r\n\t\tLAOS = \"LAOS\",\r\n\t\tLATVIA = \"LATVIA\",\r\n\t\tLEBANON = \"LEBANON\",\r\n\t\tLESOTHO = \"LESOTHO\",\r\n\t\tLIBERIA = \"LIBERIA\",\r\n\t\tLIBYA = \"LIBYA\",\r\n\t\tLIECHTENSTEIN = \"LIECHTENSTEIN\",\r\n\t\tLITHUANIA = \"LITHUANIA\",\r\n\t\tLUXEMBOURG = \"LUXEMBOURG\",\r\n\t\tMACAU = \"MACAU\",\r\n\t\tMACEDONIA = \"MACEDONIA\",\r\n\t\tMADAGASCAR = \"MADAGASCAR\",\r\n\t\tMALAWI = \"MALAWI\",\r\n\t\tMALAYSIA = \"MALAYSIA\",\r\n\t\tMALDIVES = \"MALDIVES\",\r\n\t\tMALI = \"MALI\",\r\n\t\tMALTA = \"MALTA\",\r\n\t\tMARSHALLISLANDS = \"MARSHALLISLANDS\",\r\n\t\tMAURITANIA = \"MAURITANIA\",\r\n\t\tMAURITIUS = \"MAURITIUS\",\r\n\t\tMEXICO = \"MEXICO\",\r\n\t\tMICRONESIA = \"MICRONESIA\",\r\n\t\tMOLDOVA = \"MOLDOVA\",\r\n\t\tMONACO = \"MONACO\",\r\n\t\tMONGOLIA = \"MONGOLIA\",\r\n\t\tMONTENEGRO = \"MONTENEGRO\",\r\n\t\tMONTSERRAT = \"MONTSERRAT\",\r\n\t\tMOROCCO = \"MOROCCO\",\r\n\t\tMOZAMBIQUE = \"MOZAMBIQUE\",\r\n\t\tMYANMARBURMA = \"MYANMARBURMA\",\r\n\t\tNAMIBIA = \"NAMIBIA\",\r\n\t\tNAURU = \"NAURU\",\r\n\t\tNEPAL = \"NEPAL\",\r\n\t\tNETHERLANDS = \"NETHERLANDS\",\r\n\t\tNEWCALEDONIA = \"NEWCALEDONIA\",\r\n\t\tNEWZEALAND = \"NEWZEALAND\",\r\n\t\tNICARAGUA = \"NICARAGUA\",\r\n\t\tNIGER = \"NIGER\",\r\n\t\tNIGERIA = \"NIGERIA\",\r\n\t\tNIUE = \"NIUE\",\r\n\t\tNORFOLKISLAND = \"NORFOLKISLAND\",\r\n\t\tNORTHKOREA = \"NORTHKOREA\",\r\n\t\tNORTHERNMARIANAISLANDS = \"NORTHERNMARIANAISLANDS\",\r\n\t\tNORWAY = \"NORWAY\",\r\n\t\tOMAN = \"OMAN\",\r\n\t\tPAKISTAN = \"PAKISTAN\",\r\n\t\tPALAU = \"PALAU\",\r\n\t\tPANAMA = \"PANAMA\",\r\n\t\tPAPUANEWGUINEA = \"PAPUANEWGUINEA\",\r\n\t\tPARAGUAY = \"PARAGUAY\",\r\n\t\tPERU = \"PERU\",\r\n\t\tPHILIPPINES = \"PHILIPPINES\",\r\n\t\tPITCAIRNISLANDS = \"PITCAIRNISLANDS\",\r\n\t\tPOLAND = \"POLAND\",\r\n\t\tPORTUGAL = \"PORTUGAL\",\r\n\t\tPUERTORICO = \"PUERTORICO\",\r\n\t\tQATAR = \"QATAR\",\r\n\t\tREPUBLICOFTHECONGO = \"REPUBLICOFTHECONGO\",\r\n\t\tREUNION = \"REUNION\",\r\n\t\tROMANIA = \"ROMANIA\",\r\n\t\tRUSSIA = \"RUSSIA\",\r\n\t\tRWANDA = \"RWANDA\",\r\n\t\tSAINTBARTHELEMY = \"SAINTBARTHELEMY\",\r\n\t\tSAINTHELENA = \"SAINTHELENA\",\r\n\t\tSAINTKITTSANDNEVIS = \"SAINTKITTSANDNEVIS\",\r\n\t\tSAINTLUCIA = \"SAINTLUCIA\",\r\n\t\tSAINTMARTIN = \"SAINTMARTIN\",\r\n\t\tSAINTPIERREANDMIQUELON = \"SAINTPIERREANDMIQUELON\",\r\n\t\tSAINTVINCENTANDTHEGRENADINES = \"SAINTVINCENTANDTHEGRENADINES\",\r\n\t\tSAMOA = \"SAMOA\",\r\n\t\tSANMARINO = \"SANMARINO\",\r\n\t\tSAOTOMEANDPRINCIPE = \"SAOTOMEANDPRINCIPE\",\r\n\t\tSAUDIARABIA = \"SAUDIARABIA\",\r\n\t\tSENEGAL = \"SENEGAL\",\r\n\t\tSERBIA = \"SERBIA\",\r\n\t\tSEYCHELLES = \"SEYCHELLES\",\r\n\t\tSIERRALEONE = \"SIERRALEONE\",\r\n\t\tSINGAPORE = \"SINGAPORE\",\r\n\t\tSLOVAKIA = \"SLOVAKIA\",\r\n\t\tSLOVENIA = \"SLOVENIA\",\r\n\t\tSOLOMONISLANDS = \"SOLOMONISLANDS\",\r\n\t\tSOMALIA = \"SOMALIA\",\r\n\t\tSOUTHAFRICA = \"SOUTHAFRICA\",\r\n\t\tSOUTHKOREA = \"SOUTHKOREA\",\r\n\t\tSOUTHSUDAN = \"SOUTHSUDAN\",\r\n\t\tSPAIN = \"SPAIN\",\r\n\t\tSRILANKA = \"SRILANKA\",\r\n\t\tSUDAN = \"SUDAN\",\r\n\t\tSURINAME = \"SURINAME\",\r\n\t\tSWAZILAND = \"SWAZILAND\",\r\n\t\tSWEDEN = \"SWEDEN\",\r\n\t\tSWITZERLAND = \"SWITZERLAND\",\r\n\t\tSYRIA = \"SYRIA\",\r\n\t\tTAIWAN = \"TAIWAN\",\r\n\t\tTAJIKISTAN = \"TAJIKISTAN\",\r\n\t\tTANZANIA = \"TANZANIA\",\r\n\t\tTHAILAND = \"THAILAND\",\r\n\t\tTOGO = \"TOGO\",\r\n\t\tTOKELAU = \"TOKELAU\",\r\n\t\tTRINIDADANDTOBAGO = \"TRINIDADANDTOBAGO\",\r\n\t\tTUNISIA = \"TUNISIA\",\r\n\t\tTURKEY = \"TURKEY\",\r\n\t\tTURKMENISTAN = \"TURKMENISTAN\",\r\n\t\tTUVALU = \"TUVALU\",\r\n\t\tUGANDA = \"UGANDA\",\r\n\t\tUKRAINE = \"UKRAINE\",\r\n\t\tUNITEDARABEMIRATES = \"UNITEDARABEMIRATES\",\r\n\t\tUNITEDKINGDOM = \"UNITEDKINGDOM\",\r\n\t\tUNITEDSTATES = \"UNITEDSTATES\",\r\n\t\tURUGUAY = \"URUGUAY\",\r\n\t\tUZBEKISTAN = \"UZBEKISTAN\",\r\n\t\tVANUATU = \"VANUATU\",\r\n\t\tVATICAN = \"VATICAN\",\r\n\t\tVENEZUELA = \"VENEZUELA\",\r\n\t\tVIETNAM = \"VIETNAM\",\r\n\t\tWESTERNSAHARA = \"WESTERNSAHARA\",\r\n\t\tYEMEN = \"YEMEN\",\r\n\t\tZAMBIA = \"ZAMBIA\",\r\n\t\tZIMBABWE = \"ZIMBABWE\",\r\n\t}\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction RetrieveApplicationError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'RetrieveApplicationError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  RetrieveApplicationError.prototype = Object.create(Error.prototype);\r\n  RetrieveApplicationError.prototype.constructor = RetrieveApplicationError;\r\n  \r\nexport { RetrieveApplicationError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class RetrieveApplicationClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tretrieveApplication_retrieve(\treq? :ClaimApplicationRequestInput) : Promise<RetrieveApplicationRetrieveResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `query retrieve($req: ClaimApplicationRequestInput) {\r\n  claimApplication(request: $req) {\r\n    isLocked\r\n    claimApplication {\r\n      id\r\n      isDuplicate\r\n      ownerId\r\n      status\r\n      screeningInformationViewed\r\n      reporter {\r\n        contact {\r\n          id\r\n          email\r\n          contactType\r\n          title\r\n          firstname\r\n          surname\r\n          companyName\r\n          telephoneCountryCode\r\n          telephone\r\n          isLeadClaimant\r\n          relationshipToLeadClaimant\r\n          relationshipToLeadClaimantFamilyMember\r\n          correspondenceMethod\r\n          address {\r\n            address1\r\n            address2\r\n            address3\r\n            town\r\n            postcode\r\n            country\r\n          }\r\n        }\r\n        isRepresenting\r\n        securityQuestion\r\n        securityAnswer\r\n      }\r\n      claimant {\r\n        contact {\r\n          id\r\n          contactType\r\n          title\r\n          firstname\r\n          surname\r\n          companyName\r\n          telephoneCountryCode\r\n          telephone\r\n          email\r\n          correspondenceMethod\r\n          address {\r\n            address1\r\n            address2\r\n            address3\r\n            town\r\n            postcode\r\n            country\r\n          }\r\n        }\r\n        appointRepresentative\r\n        representative {\r\n          id\r\n          contactType\r\n          title\r\n          firstname\r\n          surname\r\n          companyName\r\n          telephoneCountryCode\r\n          telephone\r\n          email\r\n          correspondenceMethod\r\n          relationshipToLeadClaimant\r\n          relationshipToLeadClaimantFamilyMember\r\n        }\r\n        anyAdditionalClaimants\r\n        additionalClaimants {\r\n          id\r\n          contactType\r\n          title\r\n          firstname\r\n          surname\r\n          companyName\r\n          telephoneCountryCode\r\n          telephone\r\n          email\r\n          correspondenceMethod\r\n          relationshipToLeadClaimant\r\n          relationshipToLeadClaimantFamilyMember\r\n        }\r\n      }\r\n      property {\r\n        address {\r\n          address1\r\n          address2\r\n          address3\r\n          town\r\n          postcode\r\n          country\r\n        }\r\n        policyKnown\r\n        policyNumber\r\n        propertyType\r\n        residentialPropertyType\r\n        commercialPropertyType\r\n        ownershipType\r\n        freeholder {\r\n          id\r\n          contactType\r\n          companyName\r\n          title\r\n          firstname\r\n          surname\r\n          telephoneCountryCode\r\n          telephone\r\n          email\r\n          correspondenceMethod\r\n          address {\r\n            address1\r\n            address2\r\n            address3\r\n            town\r\n            postcode\r\n            country\r\n          }\r\n        }\r\n        newBuildOrConversion\r\n        hasAgent\r\n        agent {\r\n          contactType\r\n          companyName\r\n          title\r\n          firstname\r\n          surname\r\n          telephoneCountryCode\r\n          telephone\r\n          email\r\n          correspondenceMethod\r\n          address {\r\n            address1\r\n            address2\r\n            address3\r\n            town\r\n            postcode\r\n            country\r\n          }\r\n        }\r\n        purchased\r\n        agreementDate\r\n        purchaseDate\r\n        purchasePrice\r\n        reduced\r\n        reductionAmount\r\n        reasonReduced\r\n        retention\r\n        retentionAmount\r\n        retentionReason\r\n        surveyCompleted\r\n        noSurveyReason\r\n        buildingWork\r\n        buildingWorkDetails\r\n        previousClaim\r\n        previousClaimDetails\r\n        otherInsurance\r\n        otherInsuranceDetails\r\n        usage\r\n        selfBuild\r\n        selfBuildStartDate\r\n        overseeingBuilderEmployed\r\n        overseeingBuilder {\r\n          contactType\r\n          companyName\r\n          title\r\n          firstname\r\n          surname\r\n          telephoneCountryCode\r\n          telephone\r\n          email\r\n          correspondenceMethod\r\n          address {\r\n            address1\r\n            address2\r\n            address3\r\n            town\r\n            postcode\r\n            country\r\n          }\r\n        }\r\n        overseeingBuilderStartDate\r\n        contractorDetails\r\n        anyContractualRemedy\r\n        contractualRemedyDetails\r\n      }\r\n      issues {\r\n        id\r\n        area\r\n        details\r\n        dateEvident\r\n        builderNotified\r\n        builderNotifiedDate\r\n        builderNotifiedEvidence\r\n        reportCarriedOut\r\n        reportDetails\r\n        waterIngress\r\n        waterIngressDetails\r\n        fireSafetyRisk\r\n        fireSafetyRiskList\r\n        evidence {\r\n          id\r\n          evidenceType\r\n          description\r\n          documentType\r\n          documents {\r\n            id\r\n            fileId\r\n            fileName\r\n            fileType\r\n            fileSize\r\n          }\r\n        }\r\n      }\r\n      evidence {\r\n        id\r\n        evidenceType\r\n        description\r\n        requiresApproval\r\n        approved\r\n        approvalAdminNotes\r\n        approvalDecisionBy\r\n        approvalDecisionById\r\n        approvalDecisionDate\r\n        documentType\r\n        documents {\r\n          id\r\n          fileId\r\n          fileName\r\n          fileType\r\n          fileSize\r\n        }\r\n        contactId\r\n      }\r\n      declaration {\r\n        additionalInfo\r\n        declarationConfirmation\r\n        statementOfTruthConfirmation\r\n      }\r\n    }\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\treq : req ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new RetrieveApplicationError(\"http error running 'retrieveApplication_retrieve', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new RetrieveApplicationError(\"graphql error(s) running 'retrieveApplication_retrieve', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = RetrieveApplicationRetrieveResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class ClaimApplicationRequestInput {\r\n\t\tid? :string;\r\n\t\townerId? :string;\r\n\r\n    static fromJS(json:any):ClaimApplicationRequestInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimApplicationRequestInput();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class RetrieveApplicationRetrieveResult {\r\n\t\tclaimApplication? :ClaimApplicationQueryResult;\r\n\r\n    static fromJS(json:any):RetrieveApplicationRetrieveResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new RetrieveApplicationRetrieveResult();\r\n\r\nresult.claimApplication= ClaimApplicationQueryResult.fromJS(json[\"claimApplication\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimApplicationQueryResult {\r\n\t\tisLocked :boolean;\r\n\t\tclaimApplication? :ClaimApplicationDtoResult;\r\n\r\n    static fromJS(json:any):ClaimApplicationQueryResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimApplicationQueryResult();\r\n\r\n\tresult.isLocked = json[\"isLocked\"];\r\nresult.claimApplication= ClaimApplicationDtoResult.fromJS(json[\"claimApplication\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimApplicationDtoResult {\r\n\t\tid? :string;\r\n\t\tisDuplicate? :boolean;\r\n\t\townerId? :string;\r\n\t\tstatus? :ClaimStatus;\r\n\t\tscreeningInformationViewed :PolicyType;\r\n\t\treporter? :ReporterDtoResult;\r\n\t\tclaimant? :ClaimantDtoResult;\r\n\t\tproperty? :PropertyDtoResult;\r\n\t\tissues? :Array<IssueDtoResult>;\r\n\t\tevidence? :Array<EvidenceDto1Result>;\r\n\t\tdeclaration? :DeclarationDtoResult;\r\n\r\n    static fromJS(json:any):ClaimApplicationDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimApplicationDtoResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.isDuplicate = json[\"isDuplicate\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\nresult.status= ClaimStatus[<string>json[\"status\"]];\r\nresult.screeningInformationViewed= PolicyType[<string>json[\"screeningInformationViewed\"]];\r\nresult.reporter= ReporterDtoResult.fromJS(json[\"reporter\"]);\r\nresult.claimant= ClaimantDtoResult.fromJS(json[\"claimant\"]);\r\nresult.property= PropertyDtoResult.fromJS(json[\"property\"]);\r\nif(json[\"issues\"]){ \r\n\t\tresult.issues = json[\"issues\"].map(v=>IssueDtoResult.fromJS(v) );\t\r\n\t}\r\nif(json[\"evidence\"]){ \r\n\t\tresult.evidence = json[\"evidence\"].map(v=>EvidenceDto1Result.fromJS(v) );\t\r\n\t}\r\nresult.declaration= DeclarationDtoResult.fromJS(json[\"declaration\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ReporterDtoResult {\r\n\t\tcontact? :ContactDtoResult;\r\n\t\tisRepresenting? :boolean;\r\n\t\tsecurityQuestion? :string;\r\n\t\tsecurityAnswer? :string;\r\n\r\n    static fromJS(json:any):ReporterDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ReporterDtoResult();\r\n\r\nresult.contact= ContactDtoResult.fromJS(json[\"contact\"]);\r\n\tresult.isRepresenting = json[\"isRepresenting\"];\r\n\tresult.securityQuestion = json[\"securityQuestion\"];\r\n\tresult.securityAnswer = json[\"securityAnswer\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ContactDtoResult {\r\n\t\tid? :string;\r\n\t\temail? :string;\r\n\t\tcontactType? :string;\r\n\t\ttitle? :string;\r\n\t\tfirstname? :string;\r\n\t\tsurname? :string;\r\n\t\tcompanyName? :string;\r\n\t\ttelephoneCountryCode? :CountryCodeType;\r\n\t\ttelephone? :string;\r\n\t\tisLeadClaimant? :boolean;\r\n\t\trelationshipToLeadClaimant? :string;\r\n\t\trelationshipToLeadClaimantFamilyMember? :string;\r\n\t\tcorrespondenceMethod? :string;\r\n\t\taddress? :AddressDtoResult;\r\n\r\n    static fromJS(json:any):ContactDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ContactDtoResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.email = json[\"email\"];\r\n\tresult.contactType = json[\"contactType\"];\r\n\tresult.title = json[\"title\"];\r\n\tresult.firstname = json[\"firstname\"];\r\n\tresult.surname = json[\"surname\"];\r\n\tresult.companyName = json[\"companyName\"];\r\nresult.telephoneCountryCode= CountryCodeType[<string>json[\"telephoneCountryCode\"]];\r\n\tresult.telephone = json[\"telephone\"];\r\n\tresult.isLeadClaimant = json[\"isLeadClaimant\"];\r\n\tresult.relationshipToLeadClaimant = json[\"relationshipToLeadClaimant\"];\r\n\tresult.relationshipToLeadClaimantFamilyMember = json[\"relationshipToLeadClaimantFamilyMember\"];\r\n\tresult.correspondenceMethod = json[\"correspondenceMethod\"];\r\nresult.address= AddressDtoResult.fromJS(json[\"address\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class AddressDtoResult {\r\n\t\taddress1? :string;\r\n\t\taddress2? :string;\r\n\t\taddress3? :string;\r\n\t\ttown? :string;\r\n\t\tpostcode? :string;\r\n\t\tcountry? :CountryCodeType;\r\n\r\n    static fromJS(json:any):AddressDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new AddressDtoResult();\r\n\r\n\tresult.address1 = json[\"address1\"];\r\n\tresult.address2 = json[\"address2\"];\r\n\tresult.address3 = json[\"address3\"];\r\n\tresult.town = json[\"town\"];\r\n\tresult.postcode = json[\"postcode\"];\r\nresult.country= CountryCodeType[<string>json[\"country\"]];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ClaimantDtoResult {\r\n\t\tcontact? :ContactDto1Result;\r\n\t\tappointRepresentative? :boolean;\r\n\t\trepresentative? :ContactDto2Result;\r\n\t\tanyAdditionalClaimants? :boolean;\r\n\t\tadditionalClaimants? :Array<ContactDto2Result>;\r\n\r\n    static fromJS(json:any):ClaimantDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ClaimantDtoResult();\r\n\r\nresult.contact= ContactDto1Result.fromJS(json[\"contact\"]);\r\n\tresult.appointRepresentative = json[\"appointRepresentative\"];\r\nresult.representative= ContactDto2Result.fromJS(json[\"representative\"]);\r\n\tresult.anyAdditionalClaimants = json[\"anyAdditionalClaimants\"];\r\nif(json[\"additionalClaimants\"]){ \r\n\t\tresult.additionalClaimants = json[\"additionalClaimants\"].map(v=>ContactDto2Result.fromJS(v) );\t\r\n\t}\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ContactDto1Result {\r\n\t\tid? :string;\r\n\t\tcontactType? :string;\r\n\t\ttitle? :string;\r\n\t\tfirstname? :string;\r\n\t\tsurname? :string;\r\n\t\tcompanyName? :string;\r\n\t\ttelephoneCountryCode? :CountryCodeType;\r\n\t\ttelephone? :string;\r\n\t\temail? :string;\r\n\t\tcorrespondenceMethod? :string;\r\n\t\taddress? :AddressDtoResult;\r\n\r\n    static fromJS(json:any):ContactDto1Result{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ContactDto1Result();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.contactType = json[\"contactType\"];\r\n\tresult.title = json[\"title\"];\r\n\tresult.firstname = json[\"firstname\"];\r\n\tresult.surname = json[\"surname\"];\r\n\tresult.companyName = json[\"companyName\"];\r\nresult.telephoneCountryCode= CountryCodeType[<string>json[\"telephoneCountryCode\"]];\r\n\tresult.telephone = json[\"telephone\"];\r\n\tresult.email = json[\"email\"];\r\n\tresult.correspondenceMethod = json[\"correspondenceMethod\"];\r\nresult.address= AddressDtoResult.fromJS(json[\"address\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ContactDto2Result {\r\n\t\tid? :string;\r\n\t\tcontactType? :string;\r\n\t\ttitle? :string;\r\n\t\tfirstname? :string;\r\n\t\tsurname? :string;\r\n\t\tcompanyName? :string;\r\n\t\ttelephoneCountryCode? :CountryCodeType;\r\n\t\ttelephone? :string;\r\n\t\temail? :string;\r\n\t\tcorrespondenceMethod? :string;\r\n\t\trelationshipToLeadClaimant? :string;\r\n\t\trelationshipToLeadClaimantFamilyMember? :string;\r\n\r\n    static fromJS(json:any):ContactDto2Result{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ContactDto2Result();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.contactType = json[\"contactType\"];\r\n\tresult.title = json[\"title\"];\r\n\tresult.firstname = json[\"firstname\"];\r\n\tresult.surname = json[\"surname\"];\r\n\tresult.companyName = json[\"companyName\"];\r\nresult.telephoneCountryCode= CountryCodeType[<string>json[\"telephoneCountryCode\"]];\r\n\tresult.telephone = json[\"telephone\"];\r\n\tresult.email = json[\"email\"];\r\n\tresult.correspondenceMethod = json[\"correspondenceMethod\"];\r\n\tresult.relationshipToLeadClaimant = json[\"relationshipToLeadClaimant\"];\r\n\tresult.relationshipToLeadClaimantFamilyMember = json[\"relationshipToLeadClaimantFamilyMember\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class PropertyDtoResult {\r\n\t\taddress? :AddressDtoResult;\r\n\t\tpolicyKnown? :boolean;\r\n\t\tpolicyNumber? :string;\r\n\t\tpropertyType? :string;\r\n\t\tresidentialPropertyType? :string;\r\n\t\tcommercialPropertyType? :string;\r\n\t\townershipType? :string;\r\n\t\tfreeholder? :ContactDto3Result;\r\n\t\tnewBuildOrConversion? :string;\r\n\t\thasAgent? :boolean;\r\n\t\tagent? :ContactDto4Result;\r\n\t\tpurchased? :boolean;\r\n\t\tagreementDate? :Date;\r\n\t\tpurchaseDate? :Date;\r\n\t\tpurchasePrice? :string;\r\n\t\treduced? :boolean;\r\n\t\treductionAmount? :string;\r\n\t\treasonReduced? :string;\r\n\t\tretention? :boolean;\r\n\t\tretentionAmount? :string;\r\n\t\tretentionReason? :string;\r\n\t\tsurveyCompleted? :boolean;\r\n\t\tnoSurveyReason? :string;\r\n\t\tbuildingWork? :boolean;\r\n\t\tbuildingWorkDetails? :string;\r\n\t\tpreviousClaim? :boolean;\r\n\t\tpreviousClaimDetails? :string;\r\n\t\totherInsurance? :boolean;\r\n\t\totherInsuranceDetails? :string;\r\n\t\tusage? :string;\r\n\t\tselfBuild? :boolean;\r\n\t\tselfBuildStartDate? :Date;\r\n\t\toverseeingBuilderEmployed? :boolean;\r\n\t\toverseeingBuilder? :ContactDto4Result;\r\n\t\toverseeingBuilderStartDate? :Date;\r\n\t\tcontractorDetails? :string;\r\n\t\tanyContractualRemedy? :boolean;\r\n\t\tcontractualRemedyDetails? :string;\r\n\r\n    static fromJS(json:any):PropertyDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new PropertyDtoResult();\r\n\r\nresult.address= AddressDtoResult.fromJS(json[\"address\"]);\r\n\tresult.policyKnown = json[\"policyKnown\"];\r\n\tresult.policyNumber = json[\"policyNumber\"];\r\n\tresult.propertyType = json[\"propertyType\"];\r\n\tresult.residentialPropertyType = json[\"residentialPropertyType\"];\r\n\tresult.commercialPropertyType = json[\"commercialPropertyType\"];\r\n\tresult.ownershipType = json[\"ownershipType\"];\r\nresult.freeholder= ContactDto3Result.fromJS(json[\"freeholder\"]);\r\n\tresult.newBuildOrConversion = json[\"newBuildOrConversion\"];\r\n\tresult.hasAgent = json[\"hasAgent\"];\r\nresult.agent= ContactDto4Result.fromJS(json[\"agent\"]);\r\n\tresult.purchased = json[\"purchased\"];\r\nresult.agreementDate = json[\"agreementDate\"] ? new Date(json[\"agreementDate\"]) : null;\r\nresult.purchaseDate = json[\"purchaseDate\"] ? new Date(json[\"purchaseDate\"]) : null;\r\n\tresult.purchasePrice = json[\"purchasePrice\"];\r\n\tresult.reduced = json[\"reduced\"];\r\n\tresult.reductionAmount = json[\"reductionAmount\"];\r\n\tresult.reasonReduced = json[\"reasonReduced\"];\r\n\tresult.retention = json[\"retention\"];\r\n\tresult.retentionAmount = json[\"retentionAmount\"];\r\n\tresult.retentionReason = json[\"retentionReason\"];\r\n\tresult.surveyCompleted = json[\"surveyCompleted\"];\r\n\tresult.noSurveyReason = json[\"noSurveyReason\"];\r\n\tresult.buildingWork = json[\"buildingWork\"];\r\n\tresult.buildingWorkDetails = json[\"buildingWorkDetails\"];\r\n\tresult.previousClaim = json[\"previousClaim\"];\r\n\tresult.previousClaimDetails = json[\"previousClaimDetails\"];\r\n\tresult.otherInsurance = json[\"otherInsurance\"];\r\n\tresult.otherInsuranceDetails = json[\"otherInsuranceDetails\"];\r\n\tresult.usage = json[\"usage\"];\r\n\tresult.selfBuild = json[\"selfBuild\"];\r\nresult.selfBuildStartDate = json[\"selfBuildStartDate\"] ? new Date(json[\"selfBuildStartDate\"]) : null;\r\n\tresult.overseeingBuilderEmployed = json[\"overseeingBuilderEmployed\"];\r\nresult.overseeingBuilder= ContactDto4Result.fromJS(json[\"overseeingBuilder\"]);\r\nresult.overseeingBuilderStartDate = json[\"overseeingBuilderStartDate\"] ? new Date(json[\"overseeingBuilderStartDate\"]) : null;\r\n\tresult.contractorDetails = json[\"contractorDetails\"];\r\n\tresult.anyContractualRemedy = json[\"anyContractualRemedy\"];\r\n\tresult.contractualRemedyDetails = json[\"contractualRemedyDetails\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ContactDto3Result {\r\n\t\tid? :string;\r\n\t\tcontactType? :string;\r\n\t\tcompanyName? :string;\r\n\t\ttitle? :string;\r\n\t\tfirstname? :string;\r\n\t\tsurname? :string;\r\n\t\ttelephoneCountryCode? :CountryCodeType;\r\n\t\ttelephone? :string;\r\n\t\temail? :string;\r\n\t\tcorrespondenceMethod? :string;\r\n\t\taddress? :AddressDtoResult;\r\n\r\n    static fromJS(json:any):ContactDto3Result{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ContactDto3Result();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.contactType = json[\"contactType\"];\r\n\tresult.companyName = json[\"companyName\"];\r\n\tresult.title = json[\"title\"];\r\n\tresult.firstname = json[\"firstname\"];\r\n\tresult.surname = json[\"surname\"];\r\nresult.telephoneCountryCode= CountryCodeType[<string>json[\"telephoneCountryCode\"]];\r\n\tresult.telephone = json[\"telephone\"];\r\n\tresult.email = json[\"email\"];\r\n\tresult.correspondenceMethod = json[\"correspondenceMethod\"];\r\nresult.address= AddressDtoResult.fromJS(json[\"address\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class ContactDto4Result {\r\n\t\tcontactType? :string;\r\n\t\tcompanyName? :string;\r\n\t\ttitle? :string;\r\n\t\tfirstname? :string;\r\n\t\tsurname? :string;\r\n\t\ttelephoneCountryCode? :CountryCodeType;\r\n\t\ttelephone? :string;\r\n\t\temail? :string;\r\n\t\tcorrespondenceMethod? :string;\r\n\t\taddress? :AddressDtoResult;\r\n\r\n    static fromJS(json:any):ContactDto4Result{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new ContactDto4Result();\r\n\r\n\tresult.contactType = json[\"contactType\"];\r\n\tresult.companyName = json[\"companyName\"];\r\n\tresult.title = json[\"title\"];\r\n\tresult.firstname = json[\"firstname\"];\r\n\tresult.surname = json[\"surname\"];\r\nresult.telephoneCountryCode= CountryCodeType[<string>json[\"telephoneCountryCode\"]];\r\n\tresult.telephone = json[\"telephone\"];\r\n\tresult.email = json[\"email\"];\r\n\tresult.correspondenceMethod = json[\"correspondenceMethod\"];\r\nresult.address= AddressDtoResult.fromJS(json[\"address\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class IssueDtoResult {\r\n\t\tid? :string;\r\n\t\tarea? :string;\r\n\t\tdetails? :string;\r\n\t\tdateEvident? :Date;\r\n\t\tbuilderNotified? :boolean;\r\n\t\tbuilderNotifiedDate? :Date;\r\n\t\tbuilderNotifiedEvidence? :boolean;\r\n\t\treportCarriedOut? :boolean;\r\n\t\treportDetails? :string;\r\n\t\twaterIngress? :boolean;\r\n\t\twaterIngressDetails? :string;\r\n\t\tfireSafetyRisk? :boolean;\r\n\t\tfireSafetyRiskList? :Array<string>;\r\n\t\tevidence? :Array<EvidenceDtoResult>;\r\n\r\n    static fromJS(json:any):IssueDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new IssueDtoResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.area = json[\"area\"];\r\n\tresult.details = json[\"details\"];\r\nresult.dateEvident = json[\"dateEvident\"] ? new Date(json[\"dateEvident\"]) : null;\r\n\tresult.builderNotified = json[\"builderNotified\"];\r\nresult.builderNotifiedDate = json[\"builderNotifiedDate\"] ? new Date(json[\"builderNotifiedDate\"]) : null;\r\n\tresult.builderNotifiedEvidence = json[\"builderNotifiedEvidence\"];\r\n\tresult.reportCarriedOut = json[\"reportCarriedOut\"];\r\n\tresult.reportDetails = json[\"reportDetails\"];\r\n\tresult.waterIngress = json[\"waterIngress\"];\r\n\tresult.waterIngressDetails = json[\"waterIngressDetails\"];\r\n\tresult.fireSafetyRisk = json[\"fireSafetyRisk\"];\r\n\tresult.fireSafetyRiskList = json[\"fireSafetyRiskList\"];\r\nif(json[\"evidence\"]){ \r\n\t\tresult.evidence = json[\"evidence\"].map(v=>EvidenceDtoResult.fromJS(v) );\t\r\n\t}\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class EvidenceDtoResult {\r\n\t\tid? :string;\r\n\t\tevidenceType? :string;\r\n\t\tdescription? :string;\r\n\t\tdocumentType? :string;\r\n\t\tdocuments? :Array<DocumentDtoResult>;\r\n\r\n    static fromJS(json:any):EvidenceDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new EvidenceDtoResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.evidenceType = json[\"evidenceType\"];\r\n\tresult.description = json[\"description\"];\r\n\tresult.documentType = json[\"documentType\"];\r\nif(json[\"documents\"]){ \r\n\t\tresult.documents = json[\"documents\"].map(v=>DocumentDtoResult.fromJS(v) );\t\r\n\t}\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class DocumentDtoResult {\r\n\t\tid? :string;\r\n\t\tfileId :string;\r\n\t\tfileName? :string;\r\n\t\tfileType? :string;\r\n\t\tfileSize :number;\r\n\r\n    static fromJS(json:any):DocumentDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new DocumentDtoResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.fileId = json[\"fileId\"];\r\n\tresult.fileName = json[\"fileName\"];\r\n\tresult.fileType = json[\"fileType\"];\r\n\tresult.fileSize = json[\"fileSize\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class EvidenceDto1Result {\r\n\t\tid? :string;\r\n\t\tevidenceType? :string;\r\n\t\tdescription? :string;\r\n\t\trequiresApproval? :boolean;\r\n\t\tapproved? :boolean;\r\n\t\tapprovalAdminNotes? :string;\r\n\t\tapprovalDecisionBy? :string;\r\n\t\tapprovalDecisionById? :string;\r\n\t\tapprovalDecisionDate? :string;\r\n\t\tdocumentType? :string;\r\n\t\tdocuments? :Array<DocumentDtoResult>;\r\n\t\tcontactId? :string;\r\n\r\n    static fromJS(json:any):EvidenceDto1Result{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new EvidenceDto1Result();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.evidenceType = json[\"evidenceType\"];\r\n\tresult.description = json[\"description\"];\r\n\tresult.requiresApproval = json[\"requiresApproval\"];\r\n\tresult.approved = json[\"approved\"];\r\n\tresult.approvalAdminNotes = json[\"approvalAdminNotes\"];\r\n\tresult.approvalDecisionBy = json[\"approvalDecisionBy\"];\r\n\tresult.approvalDecisionById = json[\"approvalDecisionById\"];\r\n\tresult.approvalDecisionDate = json[\"approvalDecisionDate\"];\r\n\tresult.documentType = json[\"documentType\"];\r\nif(json[\"documents\"]){ \r\n\t\tresult.documents = json[\"documents\"].map(v=>DocumentDtoResult.fromJS(v) );\t\r\n\t}\r\n\tresult.contactId = json[\"contactId\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class DeclarationDtoResult {\r\n\t\tadditionalInfo? :string;\r\n\t\tdeclarationConfirmation? :boolean;\r\n\t\tstatementOfTruthConfirmation? :boolean;\r\n\r\n    static fromJS(json:any):DeclarationDtoResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new DeclarationDtoResult();\r\n\r\n\tresult.additionalInfo = json[\"additionalInfo\"];\r\n\tresult.declarationConfirmation = json[\"declarationConfirmation\"];\r\n\tresult.statementOfTruthConfirmation = json[\"statementOfTruthConfirmation\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n\texport enum ClaimStatus\r\n\t{\r\n\t\tINCOMPLETE = \"INCOMPLETE\",\r\n\t\tSUBMITTED = \"SUBMITTED\",\r\n\t\tREVIEWED = \"REVIEWED\",\r\n\t\tARCHIVED = \"ARCHIVED\",\r\n\t}\r\n\r\n\texport enum PolicyType\r\n\t{\r\n\t\tUNKNOWN = \"UNKNOWN\",\r\n\t\tNEWHOMES = \"NEWHOMES\",\r\n\t\tSOCIALHOUSING = \"SOCIALHOUSING\",\r\n\t\tPRS = \"PRS\",\r\n\t\tCOMMERCIAL = \"COMMERCIAL\",\r\n\t\tSELFBUILD = \"SELFBUILD\",\r\n\t\tCOMPLETED = \"COMPLETED\",\r\n\t\tINSOLVENCY = \"INSOLVENCY\",\r\n\t\tASUCDIG = \"ASUCDIG\",\r\n\t\tASUCBIG = \"ASUCBIG\",\r\n\t\tROADSEWERBONDS = \"ROADSEWERBONDS\",\r\n\t}\r\n\r\n\texport enum CountryCodeType\r\n\t{\r\n\t\tNONE = \"NONE\",\r\n\t\tAFGHANISTAN = \"AFGHANISTAN\",\r\n\t\tALBANIA = \"ALBANIA\",\r\n\t\tALGERIA = \"ALGERIA\",\r\n\t\tAMERICANSAMOA = \"AMERICANSAMOA\",\r\n\t\tANDORRA = \"ANDORRA\",\r\n\t\tANGOLA = \"ANGOLA\",\r\n\t\tANGUILLA = \"ANGUILLA\",\r\n\t\tANTARCTICA = \"ANTARCTICA\",\r\n\t\tARGENTINA = \"ARGENTINA\",\r\n\t\tARMENIA = \"ARMENIA\",\r\n\t\tARUBA = \"ARUBA\",\r\n\t\tAUSTRALIA = \"AUSTRALIA\",\r\n\t\tAUSTRIA = \"AUSTRIA\",\r\n\t\tAZERBAIJAN = \"AZERBAIJAN\",\r\n\t\tBAHAMAS = \"BAHAMAS\",\r\n\t\tBAHRAIN = \"BAHRAIN\",\r\n\t\tBANGLADESH = \"BANGLADESH\",\r\n\t\tBARBADOS = \"BARBADOS\",\r\n\t\tBELARUS = \"BELARUS\",\r\n\t\tBELGIUM = \"BELGIUM\",\r\n\t\tBELIZE = \"BELIZE\",\r\n\t\tBENIN = \"BENIN\",\r\n\t\tBERMUDA = \"BERMUDA\",\r\n\t\tBHUTAN = \"BHUTAN\",\r\n\t\tBOLIVIA = \"BOLIVIA\",\r\n\t\tBOSNIAANDHERZEGOVINA = \"BOSNIAANDHERZEGOVINA\",\r\n\t\tBOTSWANA = \"BOTSWANA\",\r\n\t\tBRAZIL = \"BRAZIL\",\r\n\t\tBRITISHVIRGINISLANDS = \"BRITISHVIRGINISLANDS\",\r\n\t\tBRUNEI = \"BRUNEI\",\r\n\t\tBULGARIA = \"BULGARIA\",\r\n\t\tBURKINAFASO = \"BURKINAFASO\",\r\n\t\tBURUNDI = \"BURUNDI\",\r\n\t\tCAMBODIA = \"CAMBODIA\",\r\n\t\tCAMEROON = \"CAMEROON\",\r\n\t\tCANADA = \"CANADA\",\r\n\t\tCAPEVERDE = \"CAPEVERDE\",\r\n\t\tCAYMANISLANDS = \"CAYMANISLANDS\",\r\n\t\tCENTRALAFRICANREPUBLIC = \"CENTRALAFRICANREPUBLIC\",\r\n\t\tCHILE = \"CHILE\",\r\n\t\tCHINA = \"CHINA\",\r\n\t\tCOLOMBIA = \"COLOMBIA\",\r\n\t\tCOMOROS = \"COMOROS\",\r\n\t\tCOOKISLANDS = \"COOKISLANDS\",\r\n\t\tCOSTARICA = \"COSTARICA\",\r\n\t\tCROATIA = \"CROATIA\",\r\n\t\tCUBA = \"CUBA\",\r\n\t\tCURACAO = \"CURACAO\",\r\n\t\tCYPRUS = \"CYPRUS\",\r\n\t\tCZECHREPUBLIC = \"CZECHREPUBLIC\",\r\n\t\tDEMOCRATICREPUBLICOFCONGO = \"DEMOCRATICREPUBLICOFCONGO\",\r\n\t\tDENMARK = \"DENMARK\",\r\n\t\tDJIBOUTI = \"DJIBOUTI\",\r\n\t\tDOMINICA = \"DOMINICA\",\r\n\t\tDOMINICANREPUBLIC = \"DOMINICANREPUBLIC\",\r\n\t\tEASTTIMOR = \"EASTTIMOR\",\r\n\t\tECUADOR = \"ECUADOR\",\r\n\t\tEGYPT = \"EGYPT\",\r\n\t\tELSALVADOR = \"ELSALVADOR\",\r\n\t\tEQUATORIALGUINEA = \"EQUATORIALGUINEA\",\r\n\t\tERITREA = \"ERITREA\",\r\n\t\tESTONIA = \"ESTONIA\",\r\n\t\tETHIOPIA = \"ETHIOPIA\",\r\n\t\tFALKLANDISLANDS = \"FALKLANDISLANDS\",\r\n\t\tFAROEISLANDS = \"FAROEISLANDS\",\r\n\t\tFIJI = \"FIJI\",\r\n\t\tFINLAND = \"FINLAND\",\r\n\t\tFRANCE = \"FRANCE\",\r\n\t\tFRENCHPOLYNESIA = \"FRENCHPOLYNESIA\",\r\n\t\tGABON = \"GABON\",\r\n\t\tGAMBIA = \"GAMBIA\",\r\n\t\tGEORGIA = \"GEORGIA\",\r\n\t\tGERMANY = \"GERMANY\",\r\n\t\tGHANA = \"GHANA\",\r\n\t\tGIBRALTAR = \"GIBRALTAR\",\r\n\t\tGREECE = \"GREECE\",\r\n\t\tGREENLAND = \"GREENLAND\",\r\n\t\tGUADELOUPE = \"GUADELOUPE\",\r\n\t\tGUAM = \"GUAM\",\r\n\t\tGUATEMALA = \"GUATEMALA\",\r\n\t\tGUINEA = \"GUINEA\",\r\n\t\tGUINEABISSAU = \"GUINEABISSAU\",\r\n\t\tGUYANA = \"GUYANA\",\r\n\t\tHAITI = \"HAITI\",\r\n\t\tHONDURAS = \"HONDURAS\",\r\n\t\tHONGKONG = \"HONGKONG\",\r\n\t\tHUNGARY = \"HUNGARY\",\r\n\t\tICELAND = \"ICELAND\",\r\n\t\tINDIA = \"INDIA\",\r\n\t\tINDONESIA = \"INDONESIA\",\r\n\t\tIRAN = \"IRAN\",\r\n\t\tIRAQ = \"IRAQ\",\r\n\t\tIRELAND = \"IRELAND\",\r\n\t\tISLEOFMAN = \"ISLEOFMAN\",\r\n\t\tISRAEL = \"ISRAEL\",\r\n\t\tITALY = \"ITALY\",\r\n\t\tIVORYCOAST = \"IVORYCOAST\",\r\n\t\tJAMAICA = \"JAMAICA\",\r\n\t\tJAPAN = \"JAPAN\",\r\n\t\tJORDAN = \"JORDAN\",\r\n\t\tKAZAKHSTAN = \"KAZAKHSTAN\",\r\n\t\tKENYA = \"KENYA\",\r\n\t\tKIRIBATI = \"KIRIBATI\",\r\n\t\tKOSOVO = \"KOSOVO\",\r\n\t\tKUWAIT = \"KUWAIT\",\r\n\t\tKYRGYZSTAN = \"KYRGYZSTAN\",\r\n\t\tLAOS = \"LAOS\",\r\n\t\tLATVIA = \"LATVIA\",\r\n\t\tLEBANON = \"LEBANON\",\r\n\t\tLESOTHO = \"LESOTHO\",\r\n\t\tLIBERIA = \"LIBERIA\",\r\n\t\tLIBYA = \"LIBYA\",\r\n\t\tLIECHTENSTEIN = \"LIECHTENSTEIN\",\r\n\t\tLITHUANIA = \"LITHUANIA\",\r\n\t\tLUXEMBOURG = \"LUXEMBOURG\",\r\n\t\tMACAU = \"MACAU\",\r\n\t\tMACEDONIA = \"MACEDONIA\",\r\n\t\tMADAGASCAR = \"MADAGASCAR\",\r\n\t\tMALAWI = \"MALAWI\",\r\n\t\tMALAYSIA = \"MALAYSIA\",\r\n\t\tMALDIVES = \"MALDIVES\",\r\n\t\tMALI = \"MALI\",\r\n\t\tMALTA = \"MALTA\",\r\n\t\tMARSHALLISLANDS = \"MARSHALLISLANDS\",\r\n\t\tMAURITANIA = \"MAURITANIA\",\r\n\t\tMAURITIUS = \"MAURITIUS\",\r\n\t\tMEXICO = \"MEXICO\",\r\n\t\tMICRONESIA = \"MICRONESIA\",\r\n\t\tMOLDOVA = \"MOLDOVA\",\r\n\t\tMONACO = \"MONACO\",\r\n\t\tMONGOLIA = \"MONGOLIA\",\r\n\t\tMONTENEGRO = \"MONTENEGRO\",\r\n\t\tMONTSERRAT = \"MONTSERRAT\",\r\n\t\tMOROCCO = \"MOROCCO\",\r\n\t\tMOZAMBIQUE = \"MOZAMBIQUE\",\r\n\t\tMYANMARBURMA = \"MYANMARBURMA\",\r\n\t\tNAMIBIA = \"NAMIBIA\",\r\n\t\tNAURU = \"NAURU\",\r\n\t\tNEPAL = \"NEPAL\",\r\n\t\tNETHERLANDS = \"NETHERLANDS\",\r\n\t\tNEWCALEDONIA = \"NEWCALEDONIA\",\r\n\t\tNEWZEALAND = \"NEWZEALAND\",\r\n\t\tNICARAGUA = \"NICARAGUA\",\r\n\t\tNIGER = \"NIGER\",\r\n\t\tNIGERIA = \"NIGERIA\",\r\n\t\tNIUE = \"NIUE\",\r\n\t\tNORFOLKISLAND = \"NORFOLKISLAND\",\r\n\t\tNORTHKOREA = \"NORTHKOREA\",\r\n\t\tNORTHERNMARIANAISLANDS = \"NORTHERNMARIANAISLANDS\",\r\n\t\tNORWAY = \"NORWAY\",\r\n\t\tOMAN = \"OMAN\",\r\n\t\tPAKISTAN = \"PAKISTAN\",\r\n\t\tPALAU = \"PALAU\",\r\n\t\tPANAMA = \"PANAMA\",\r\n\t\tPAPUANEWGUINEA = \"PAPUANEWGUINEA\",\r\n\t\tPARAGUAY = \"PARAGUAY\",\r\n\t\tPERU = \"PERU\",\r\n\t\tPHILIPPINES = \"PHILIPPINES\",\r\n\t\tPITCAIRNISLANDS = \"PITCAIRNISLANDS\",\r\n\t\tPOLAND = \"POLAND\",\r\n\t\tPORTUGAL = \"PORTUGAL\",\r\n\t\tPUERTORICO = \"PUERTORICO\",\r\n\t\tQATAR = \"QATAR\",\r\n\t\tREPUBLICOFTHECONGO = \"REPUBLICOFTHECONGO\",\r\n\t\tREUNION = \"REUNION\",\r\n\t\tROMANIA = \"ROMANIA\",\r\n\t\tRUSSIA = \"RUSSIA\",\r\n\t\tRWANDA = \"RWANDA\",\r\n\t\tSAINTBARTHELEMY = \"SAINTBARTHELEMY\",\r\n\t\tSAINTHELENA = \"SAINTHELENA\",\r\n\t\tSAINTKITTSANDNEVIS = \"SAINTKITTSANDNEVIS\",\r\n\t\tSAINTLUCIA = \"SAINTLUCIA\",\r\n\t\tSAINTMARTIN = \"SAINTMARTIN\",\r\n\t\tSAINTPIERREANDMIQUELON = \"SAINTPIERREANDMIQUELON\",\r\n\t\tSAINTVINCENTANDTHEGRENADINES = \"SAINTVINCENTANDTHEGRENADINES\",\r\n\t\tSAMOA = \"SAMOA\",\r\n\t\tSANMARINO = \"SANMARINO\",\r\n\t\tSAOTOMEANDPRINCIPE = \"SAOTOMEANDPRINCIPE\",\r\n\t\tSAUDIARABIA = \"SAUDIARABIA\",\r\n\t\tSENEGAL = \"SENEGAL\",\r\n\t\tSERBIA = \"SERBIA\",\r\n\t\tSEYCHELLES = \"SEYCHELLES\",\r\n\t\tSIERRALEONE = \"SIERRALEONE\",\r\n\t\tSINGAPORE = \"SINGAPORE\",\r\n\t\tSLOVAKIA = \"SLOVAKIA\",\r\n\t\tSLOVENIA = \"SLOVENIA\",\r\n\t\tSOLOMONISLANDS = \"SOLOMONISLANDS\",\r\n\t\tSOMALIA = \"SOMALIA\",\r\n\t\tSOUTHAFRICA = \"SOUTHAFRICA\",\r\n\t\tSOUTHKOREA = \"SOUTHKOREA\",\r\n\t\tSOUTHSUDAN = \"SOUTHSUDAN\",\r\n\t\tSPAIN = \"SPAIN\",\r\n\t\tSRILANKA = \"SRILANKA\",\r\n\t\tSUDAN = \"SUDAN\",\r\n\t\tSURINAME = \"SURINAME\",\r\n\t\tSWAZILAND = \"SWAZILAND\",\r\n\t\tSWEDEN = \"SWEDEN\",\r\n\t\tSWITZERLAND = \"SWITZERLAND\",\r\n\t\tSYRIA = \"SYRIA\",\r\n\t\tTAIWAN = \"TAIWAN\",\r\n\t\tTAJIKISTAN = \"TAJIKISTAN\",\r\n\t\tTANZANIA = \"TANZANIA\",\r\n\t\tTHAILAND = \"THAILAND\",\r\n\t\tTOGO = \"TOGO\",\r\n\t\tTOKELAU = \"TOKELAU\",\r\n\t\tTRINIDADANDTOBAGO = \"TRINIDADANDTOBAGO\",\r\n\t\tTUNISIA = \"TUNISIA\",\r\n\t\tTURKEY = \"TURKEY\",\r\n\t\tTURKMENISTAN = \"TURKMENISTAN\",\r\n\t\tTUVALU = \"TUVALU\",\r\n\t\tUGANDA = \"UGANDA\",\r\n\t\tUKRAINE = \"UKRAINE\",\r\n\t\tUNITEDARABEMIRATES = \"UNITEDARABEMIRATES\",\r\n\t\tUNITEDKINGDOM = \"UNITEDKINGDOM\",\r\n\t\tUNITEDSTATES = \"UNITEDSTATES\",\r\n\t\tURUGUAY = \"URUGUAY\",\r\n\t\tUZBEKISTAN = \"UZBEKISTAN\",\r\n\t\tVANUATU = \"VANUATU\",\r\n\t\tVATICAN = \"VATICAN\",\r\n\t\tVENEZUELA = \"VENEZUELA\",\r\n\t\tVIETNAM = \"VIETNAM\",\r\n\t\tWESTERNSAHARA = \"WESTERNSAHARA\",\r\n\t\tYEMEN = \"YEMEN\",\r\n\t\tZAMBIA = \"ZAMBIA\",\r\n\t\tZIMBABWE = \"ZIMBABWE\",\r\n\t}\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction UpdateClaimApplicationError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'UpdateClaimApplicationError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  UpdateClaimApplicationError.prototype = Object.create(Error.prototype);\r\n  UpdateClaimApplicationError.prototype.constructor = UpdateClaimApplicationError;\r\n  \r\nexport { UpdateClaimApplicationError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class UpdateClaimApplicationClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tupdateClaimApplication_updateClaimApplication(\tupdate? :UpdateApplicationRequestInput) : Promise<UpdateClaimApplicationUpdateClaimApplicationResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `mutation updateClaimApplication($update: UpdateApplicationRequestInput) {\r\n  updateClaimApplication(request: $update) {\r\n    success\r\n    isLocked\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\tupdate : update ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new UpdateClaimApplicationError(\"http error running 'updateClaimApplication_updateClaimApplication', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new UpdateClaimApplicationError(\"graphql error(s) running 'updateClaimApplication_updateClaimApplication', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = UpdateClaimApplicationUpdateClaimApplicationResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class UpdateApplicationRequestInput {\r\n\t\tfieldName? :string;\r\n\t\tfieldValueBool? :boolean;\r\n\t\tfieldValueCountryCodeType? :CountryCodeType;\r\n\t\tfieldValueDatetime? :Date;\r\n\t\tfieldValueInt? :number;\r\n\t\tfieldValueString? :string;\r\n\t\tfieldValueStringList? :Array<string>;\r\n\t\tid? :string;\r\n\t\townerId? :string;\r\n\r\n    static fromJS(json:any):UpdateApplicationRequestInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new UpdateApplicationRequestInput();\r\n\r\n\tresult.fieldName = json[\"fieldName\"];\r\n\tresult.fieldValueBool = json[\"fieldValueBool\"];\r\nresult.fieldValueCountryCodeType= CountryCodeType[<string>json[\"fieldValueCountryCodeType\"]];\r\nresult.fieldValueDatetime = json[\"fieldValueDatetime\"] ? new Date(json[\"fieldValueDatetime\"]) : null;\r\n\tresult.fieldValueInt = json[\"fieldValueInt\"];\r\n\tresult.fieldValueString = json[\"fieldValueString\"];\r\n\tresult.fieldValueStringList = json[\"fieldValueStringList\"];\r\n\tresult.id = json[\"id\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class UpdateClaimApplicationUpdateClaimApplicationResult {\r\n\t\tupdateClaimApplication? :SuccessResultResult;\r\n\r\n    static fromJS(json:any):UpdateClaimApplicationUpdateClaimApplicationResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new UpdateClaimApplicationUpdateClaimApplicationResult();\r\n\r\nresult.updateClaimApplication= SuccessResultResult.fromJS(json[\"updateClaimApplication\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class SuccessResultResult {\r\n\t\tsuccess :boolean;\r\n\t\tisLocked :boolean;\r\n\r\n    static fromJS(json:any):SuccessResultResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new SuccessResultResult();\r\n\r\n\tresult.success = json[\"success\"];\r\n\tresult.isLocked = json[\"isLocked\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n\texport enum CountryCodeType\r\n\t{\r\n\t\tNONE = \"NONE\",\r\n\t\tAFGHANISTAN = \"AFGHANISTAN\",\r\n\t\tALBANIA = \"ALBANIA\",\r\n\t\tALGERIA = \"ALGERIA\",\r\n\t\tAMERICANSAMOA = \"AMERICANSAMOA\",\r\n\t\tANDORRA = \"ANDORRA\",\r\n\t\tANGOLA = \"ANGOLA\",\r\n\t\tANGUILLA = \"ANGUILLA\",\r\n\t\tANTARCTICA = \"ANTARCTICA\",\r\n\t\tARGENTINA = \"ARGENTINA\",\r\n\t\tARMENIA = \"ARMENIA\",\r\n\t\tARUBA = \"ARUBA\",\r\n\t\tAUSTRALIA = \"AUSTRALIA\",\r\n\t\tAUSTRIA = \"AUSTRIA\",\r\n\t\tAZERBAIJAN = \"AZERBAIJAN\",\r\n\t\tBAHAMAS = \"BAHAMAS\",\r\n\t\tBAHRAIN = \"BAHRAIN\",\r\n\t\tBANGLADESH = \"BANGLADESH\",\r\n\t\tBARBADOS = \"BARBADOS\",\r\n\t\tBELARUS = \"BELARUS\",\r\n\t\tBELGIUM = \"BELGIUM\",\r\n\t\tBELIZE = \"BELIZE\",\r\n\t\tBENIN = \"BENIN\",\r\n\t\tBERMUDA = \"BERMUDA\",\r\n\t\tBHUTAN = \"BHUTAN\",\r\n\t\tBOLIVIA = \"BOLIVIA\",\r\n\t\tBOSNIAANDHERZEGOVINA = \"BOSNIAANDHERZEGOVINA\",\r\n\t\tBOTSWANA = \"BOTSWANA\",\r\n\t\tBRAZIL = \"BRAZIL\",\r\n\t\tBRITISHVIRGINISLANDS = \"BRITISHVIRGINISLANDS\",\r\n\t\tBRUNEI = \"BRUNEI\",\r\n\t\tBULGARIA = \"BULGARIA\",\r\n\t\tBURKINAFASO = \"BURKINAFASO\",\r\n\t\tBURUNDI = \"BURUNDI\",\r\n\t\tCAMBODIA = \"CAMBODIA\",\r\n\t\tCAMEROON = \"CAMEROON\",\r\n\t\tCANADA = \"CANADA\",\r\n\t\tCAPEVERDE = \"CAPEVERDE\",\r\n\t\tCAYMANISLANDS = \"CAYMANISLANDS\",\r\n\t\tCENTRALAFRICANREPUBLIC = \"CENTRALAFRICANREPUBLIC\",\r\n\t\tCHILE = \"CHILE\",\r\n\t\tCHINA = \"CHINA\",\r\n\t\tCOLOMBIA = \"COLOMBIA\",\r\n\t\tCOMOROS = \"COMOROS\",\r\n\t\tCOOKISLANDS = \"COOKISLANDS\",\r\n\t\tCOSTARICA = \"COSTARICA\",\r\n\t\tCROATIA = \"CROATIA\",\r\n\t\tCUBA = \"CUBA\",\r\n\t\tCURACAO = \"CURACAO\",\r\n\t\tCYPRUS = \"CYPRUS\",\r\n\t\tCZECHREPUBLIC = \"CZECHREPUBLIC\",\r\n\t\tDEMOCRATICREPUBLICOFCONGO = \"DEMOCRATICREPUBLICOFCONGO\",\r\n\t\tDENMARK = \"DENMARK\",\r\n\t\tDJIBOUTI = \"DJIBOUTI\",\r\n\t\tDOMINICA = \"DOMINICA\",\r\n\t\tDOMINICANREPUBLIC = \"DOMINICANREPUBLIC\",\r\n\t\tEASTTIMOR = \"EASTTIMOR\",\r\n\t\tECUADOR = \"ECUADOR\",\r\n\t\tEGYPT = \"EGYPT\",\r\n\t\tELSALVADOR = \"ELSALVADOR\",\r\n\t\tEQUATORIALGUINEA = \"EQUATORIALGUINEA\",\r\n\t\tERITREA = \"ERITREA\",\r\n\t\tESTONIA = \"ESTONIA\",\r\n\t\tETHIOPIA = \"ETHIOPIA\",\r\n\t\tFALKLANDISLANDS = \"FALKLANDISLANDS\",\r\n\t\tFAROEISLANDS = \"FAROEISLANDS\",\r\n\t\tFIJI = \"FIJI\",\r\n\t\tFINLAND = \"FINLAND\",\r\n\t\tFRANCE = \"FRANCE\",\r\n\t\tFRENCHPOLYNESIA = \"FRENCHPOLYNESIA\",\r\n\t\tGABON = \"GABON\",\r\n\t\tGAMBIA = \"GAMBIA\",\r\n\t\tGEORGIA = \"GEORGIA\",\r\n\t\tGERMANY = \"GERMANY\",\r\n\t\tGHANA = \"GHANA\",\r\n\t\tGIBRALTAR = \"GIBRALTAR\",\r\n\t\tGREECE = \"GREECE\",\r\n\t\tGREENLAND = \"GREENLAND\",\r\n\t\tGUADELOUPE = \"GUADELOUPE\",\r\n\t\tGUAM = \"GUAM\",\r\n\t\tGUATEMALA = \"GUATEMALA\",\r\n\t\tGUINEA = \"GUINEA\",\r\n\t\tGUINEABISSAU = \"GUINEABISSAU\",\r\n\t\tGUYANA = \"GUYANA\",\r\n\t\tHAITI = \"HAITI\",\r\n\t\tHONDURAS = \"HONDURAS\",\r\n\t\tHONGKONG = \"HONGKONG\",\r\n\t\tHUNGARY = \"HUNGARY\",\r\n\t\tICELAND = \"ICELAND\",\r\n\t\tINDIA = \"INDIA\",\r\n\t\tINDONESIA = \"INDONESIA\",\r\n\t\tIRAN = \"IRAN\",\r\n\t\tIRAQ = \"IRAQ\",\r\n\t\tIRELAND = \"IRELAND\",\r\n\t\tISLEOFMAN = \"ISLEOFMAN\",\r\n\t\tISRAEL = \"ISRAEL\",\r\n\t\tITALY = \"ITALY\",\r\n\t\tIVORYCOAST = \"IVORYCOAST\",\r\n\t\tJAMAICA = \"JAMAICA\",\r\n\t\tJAPAN = \"JAPAN\",\r\n\t\tJORDAN = \"JORDAN\",\r\n\t\tKAZAKHSTAN = \"KAZAKHSTAN\",\r\n\t\tKENYA = \"KENYA\",\r\n\t\tKIRIBATI = \"KIRIBATI\",\r\n\t\tKOSOVO = \"KOSOVO\",\r\n\t\tKUWAIT = \"KUWAIT\",\r\n\t\tKYRGYZSTAN = \"KYRGYZSTAN\",\r\n\t\tLAOS = \"LAOS\",\r\n\t\tLATVIA = \"LATVIA\",\r\n\t\tLEBANON = \"LEBANON\",\r\n\t\tLESOTHO = \"LESOTHO\",\r\n\t\tLIBERIA = \"LIBERIA\",\r\n\t\tLIBYA = \"LIBYA\",\r\n\t\tLIECHTENSTEIN = \"LIECHTENSTEIN\",\r\n\t\tLITHUANIA = \"LITHUANIA\",\r\n\t\tLUXEMBOURG = \"LUXEMBOURG\",\r\n\t\tMACAU = \"MACAU\",\r\n\t\tMACEDONIA = \"MACEDONIA\",\r\n\t\tMADAGASCAR = \"MADAGASCAR\",\r\n\t\tMALAWI = \"MALAWI\",\r\n\t\tMALAYSIA = \"MALAYSIA\",\r\n\t\tMALDIVES = \"MALDIVES\",\r\n\t\tMALI = \"MALI\",\r\n\t\tMALTA = \"MALTA\",\r\n\t\tMARSHALLISLANDS = \"MARSHALLISLANDS\",\r\n\t\tMAURITANIA = \"MAURITANIA\",\r\n\t\tMAURITIUS = \"MAURITIUS\",\r\n\t\tMEXICO = \"MEXICO\",\r\n\t\tMICRONESIA = \"MICRONESIA\",\r\n\t\tMOLDOVA = \"MOLDOVA\",\r\n\t\tMONACO = \"MONACO\",\r\n\t\tMONGOLIA = \"MONGOLIA\",\r\n\t\tMONTENEGRO = \"MONTENEGRO\",\r\n\t\tMONTSERRAT = \"MONTSERRAT\",\r\n\t\tMOROCCO = \"MOROCCO\",\r\n\t\tMOZAMBIQUE = \"MOZAMBIQUE\",\r\n\t\tMYANMARBURMA = \"MYANMARBURMA\",\r\n\t\tNAMIBIA = \"NAMIBIA\",\r\n\t\tNAURU = \"NAURU\",\r\n\t\tNEPAL = \"NEPAL\",\r\n\t\tNETHERLANDS = \"NETHERLANDS\",\r\n\t\tNEWCALEDONIA = \"NEWCALEDONIA\",\r\n\t\tNEWZEALAND = \"NEWZEALAND\",\r\n\t\tNICARAGUA = \"NICARAGUA\",\r\n\t\tNIGER = \"NIGER\",\r\n\t\tNIGERIA = \"NIGERIA\",\r\n\t\tNIUE = \"NIUE\",\r\n\t\tNORFOLKISLAND = \"NORFOLKISLAND\",\r\n\t\tNORTHKOREA = \"NORTHKOREA\",\r\n\t\tNORTHERNMARIANAISLANDS = \"NORTHERNMARIANAISLANDS\",\r\n\t\tNORWAY = \"NORWAY\",\r\n\t\tOMAN = \"OMAN\",\r\n\t\tPAKISTAN = \"PAKISTAN\",\r\n\t\tPALAU = \"PALAU\",\r\n\t\tPANAMA = \"PANAMA\",\r\n\t\tPAPUANEWGUINEA = \"PAPUANEWGUINEA\",\r\n\t\tPARAGUAY = \"PARAGUAY\",\r\n\t\tPERU = \"PERU\",\r\n\t\tPHILIPPINES = \"PHILIPPINES\",\r\n\t\tPITCAIRNISLANDS = \"PITCAIRNISLANDS\",\r\n\t\tPOLAND = \"POLAND\",\r\n\t\tPORTUGAL = \"PORTUGAL\",\r\n\t\tPUERTORICO = \"PUERTORICO\",\r\n\t\tQATAR = \"QATAR\",\r\n\t\tREPUBLICOFTHECONGO = \"REPUBLICOFTHECONGO\",\r\n\t\tREUNION = \"REUNION\",\r\n\t\tROMANIA = \"ROMANIA\",\r\n\t\tRUSSIA = \"RUSSIA\",\r\n\t\tRWANDA = \"RWANDA\",\r\n\t\tSAINTBARTHELEMY = \"SAINTBARTHELEMY\",\r\n\t\tSAINTHELENA = \"SAINTHELENA\",\r\n\t\tSAINTKITTSANDNEVIS = \"SAINTKITTSANDNEVIS\",\r\n\t\tSAINTLUCIA = \"SAINTLUCIA\",\r\n\t\tSAINTMARTIN = \"SAINTMARTIN\",\r\n\t\tSAINTPIERREANDMIQUELON = \"SAINTPIERREANDMIQUELON\",\r\n\t\tSAINTVINCENTANDTHEGRENADINES = \"SAINTVINCENTANDTHEGRENADINES\",\r\n\t\tSAMOA = \"SAMOA\",\r\n\t\tSANMARINO = \"SANMARINO\",\r\n\t\tSAOTOMEANDPRINCIPE = \"SAOTOMEANDPRINCIPE\",\r\n\t\tSAUDIARABIA = \"SAUDIARABIA\",\r\n\t\tSENEGAL = \"SENEGAL\",\r\n\t\tSERBIA = \"SERBIA\",\r\n\t\tSEYCHELLES = \"SEYCHELLES\",\r\n\t\tSIERRALEONE = \"SIERRALEONE\",\r\n\t\tSINGAPORE = \"SINGAPORE\",\r\n\t\tSLOVAKIA = \"SLOVAKIA\",\r\n\t\tSLOVENIA = \"SLOVENIA\",\r\n\t\tSOLOMONISLANDS = \"SOLOMONISLANDS\",\r\n\t\tSOMALIA = \"SOMALIA\",\r\n\t\tSOUTHAFRICA = \"SOUTHAFRICA\",\r\n\t\tSOUTHKOREA = \"SOUTHKOREA\",\r\n\t\tSOUTHSUDAN = \"SOUTHSUDAN\",\r\n\t\tSPAIN = \"SPAIN\",\r\n\t\tSRILANKA = \"SRILANKA\",\r\n\t\tSUDAN = \"SUDAN\",\r\n\t\tSURINAME = \"SURINAME\",\r\n\t\tSWAZILAND = \"SWAZILAND\",\r\n\t\tSWEDEN = \"SWEDEN\",\r\n\t\tSWITZERLAND = \"SWITZERLAND\",\r\n\t\tSYRIA = \"SYRIA\",\r\n\t\tTAIWAN = \"TAIWAN\",\r\n\t\tTAJIKISTAN = \"TAJIKISTAN\",\r\n\t\tTANZANIA = \"TANZANIA\",\r\n\t\tTHAILAND = \"THAILAND\",\r\n\t\tTOGO = \"TOGO\",\r\n\t\tTOKELAU = \"TOKELAU\",\r\n\t\tTRINIDADANDTOBAGO = \"TRINIDADANDTOBAGO\",\r\n\t\tTUNISIA = \"TUNISIA\",\r\n\t\tTURKEY = \"TURKEY\",\r\n\t\tTURKMENISTAN = \"TURKMENISTAN\",\r\n\t\tTUVALU = \"TUVALU\",\r\n\t\tUGANDA = \"UGANDA\",\r\n\t\tUKRAINE = \"UKRAINE\",\r\n\t\tUNITEDARABEMIRATES = \"UNITEDARABEMIRATES\",\r\n\t\tUNITEDKINGDOM = \"UNITEDKINGDOM\",\r\n\t\tUNITEDSTATES = \"UNITEDSTATES\",\r\n\t\tURUGUAY = \"URUGUAY\",\r\n\t\tUZBEKISTAN = \"UZBEKISTAN\",\r\n\t\tVANUATU = \"VANUATU\",\r\n\t\tVATICAN = \"VATICAN\",\r\n\t\tVENEZUELA = \"VENEZUELA\",\r\n\t\tVIETNAM = \"VIETNAM\",\r\n\t\tWESTERNSAHARA = \"WESTERNSAHARA\",\r\n\t\tYEMEN = \"YEMEN\",\r\n\t\tZAMBIA = \"ZAMBIA\",\r\n\t\tZIMBABWE = \"ZIMBABWE\",\r\n\t}\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction UpdateClaimApplicationBatchError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'UpdateClaimApplicationBatchError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  UpdateClaimApplicationBatchError.prototype = Object.create(Error.prototype);\r\n  UpdateClaimApplicationBatchError.prototype.constructor = UpdateClaimApplicationBatchError;\r\n  \r\nexport { UpdateClaimApplicationBatchError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class UpdateClaimApplicationBatchClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tupdateClaimApplicationBatch_updateClaimApplicationBatch(\tupdate? :UpdateClaimApplicationBatchRequestInput) : Promise<UpdateClaimApplicationBatchUpdateClaimApplicationBatchResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `mutation updateClaimApplicationBatch($update: UpdateClaimApplicationBatchRequestInput) {\r\n  updateClaimApplicationBatch(request: $update) {\r\n    success\r\n    isLocked\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n\t\t\t\t\tupdate : update ,\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new UpdateClaimApplicationBatchError(\"http error running 'updateClaimApplicationBatch_updateClaimApplicationBatch', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new UpdateClaimApplicationBatchError(\"graphql error(s) running 'updateClaimApplicationBatch_updateClaimApplicationBatch', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = UpdateClaimApplicationBatchUpdateClaimApplicationBatchResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class UpdateInput {\r\n\t\tfieldName? :string;\r\n\t\tfieldValueBool? :boolean;\r\n\t\tfieldValueCountryCodeType? :CountryCodeType;\r\n\t\tfieldValueDatetime? :Date;\r\n\t\tfieldValueInt? :number;\r\n\t\tfieldValueString? :string;\r\n\t\tfieldValueStringList? :Array<string>;\r\n\r\n    static fromJS(json:any):UpdateInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new UpdateInput();\r\n\r\n\tresult.fieldName = json[\"fieldName\"];\r\n\tresult.fieldValueBool = json[\"fieldValueBool\"];\r\nresult.fieldValueCountryCodeType= CountryCodeType[<string>json[\"fieldValueCountryCodeType\"]];\r\nresult.fieldValueDatetime = json[\"fieldValueDatetime\"] ? new Date(json[\"fieldValueDatetime\"]) : null;\r\n\tresult.fieldValueInt = json[\"fieldValueInt\"];\r\n\tresult.fieldValueString = json[\"fieldValueString\"];\r\n\tresult.fieldValueStringList = json[\"fieldValueStringList\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class UpdateClaimApplicationBatchRequestInput {\r\n\t\tid? :string;\r\n\t\townerId? :string;\r\n\t\tupdates? :Array<UpdateInput>;\r\n\r\n    static fromJS(json:any):UpdateClaimApplicationBatchRequestInput{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new UpdateClaimApplicationBatchRequestInput();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.ownerId = json[\"ownerId\"];\r\nif(json[\"updates\"]){ \r\n\t\tresult.updates = json[\"updates\"].map(v=>UpdateInput.fromJS(v) );\t\r\n\t}\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class UpdateClaimApplicationBatchUpdateClaimApplicationBatchResult {\r\n\t\tupdateClaimApplicationBatch? :SuccessResultResult;\r\n\r\n    static fromJS(json:any):UpdateClaimApplicationBatchUpdateClaimApplicationBatchResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new UpdateClaimApplicationBatchUpdateClaimApplicationBatchResult();\r\n\r\nresult.updateClaimApplicationBatch= SuccessResultResult.fromJS(json[\"updateClaimApplicationBatch\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class SuccessResultResult {\r\n\t\tsuccess :boolean;\r\n\t\tisLocked :boolean;\r\n\r\n    static fromJS(json:any):SuccessResultResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new SuccessResultResult();\r\n\r\n\tresult.success = json[\"success\"];\r\n\tresult.isLocked = json[\"isLocked\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n\texport enum CountryCodeType\r\n\t{\r\n\t\tNONE = \"NONE\",\r\n\t\tAFGHANISTAN = \"AFGHANISTAN\",\r\n\t\tALBANIA = \"ALBANIA\",\r\n\t\tALGERIA = \"ALGERIA\",\r\n\t\tAMERICANSAMOA = \"AMERICANSAMOA\",\r\n\t\tANDORRA = \"ANDORRA\",\r\n\t\tANGOLA = \"ANGOLA\",\r\n\t\tANGUILLA = \"ANGUILLA\",\r\n\t\tANTARCTICA = \"ANTARCTICA\",\r\n\t\tARGENTINA = \"ARGENTINA\",\r\n\t\tARMENIA = \"ARMENIA\",\r\n\t\tARUBA = \"ARUBA\",\r\n\t\tAUSTRALIA = \"AUSTRALIA\",\r\n\t\tAUSTRIA = \"AUSTRIA\",\r\n\t\tAZERBAIJAN = \"AZERBAIJAN\",\r\n\t\tBAHAMAS = \"BAHAMAS\",\r\n\t\tBAHRAIN = \"BAHRAIN\",\r\n\t\tBANGLADESH = \"BANGLADESH\",\r\n\t\tBARBADOS = \"BARBADOS\",\r\n\t\tBELARUS = \"BELARUS\",\r\n\t\tBELGIUM = \"BELGIUM\",\r\n\t\tBELIZE = \"BELIZE\",\r\n\t\tBENIN = \"BENIN\",\r\n\t\tBERMUDA = \"BERMUDA\",\r\n\t\tBHUTAN = \"BHUTAN\",\r\n\t\tBOLIVIA = \"BOLIVIA\",\r\n\t\tBOSNIAANDHERZEGOVINA = \"BOSNIAANDHERZEGOVINA\",\r\n\t\tBOTSWANA = \"BOTSWANA\",\r\n\t\tBRAZIL = \"BRAZIL\",\r\n\t\tBRITISHVIRGINISLANDS = \"BRITISHVIRGINISLANDS\",\r\n\t\tBRUNEI = \"BRUNEI\",\r\n\t\tBULGARIA = \"BULGARIA\",\r\n\t\tBURKINAFASO = \"BURKINAFASO\",\r\n\t\tBURUNDI = \"BURUNDI\",\r\n\t\tCAMBODIA = \"CAMBODIA\",\r\n\t\tCAMEROON = \"CAMEROON\",\r\n\t\tCANADA = \"CANADA\",\r\n\t\tCAPEVERDE = \"CAPEVERDE\",\r\n\t\tCAYMANISLANDS = \"CAYMANISLANDS\",\r\n\t\tCENTRALAFRICANREPUBLIC = \"CENTRALAFRICANREPUBLIC\",\r\n\t\tCHILE = \"CHILE\",\r\n\t\tCHINA = \"CHINA\",\r\n\t\tCOLOMBIA = \"COLOMBIA\",\r\n\t\tCOMOROS = \"COMOROS\",\r\n\t\tCOOKISLANDS = \"COOKISLANDS\",\r\n\t\tCOSTARICA = \"COSTARICA\",\r\n\t\tCROATIA = \"CROATIA\",\r\n\t\tCUBA = \"CUBA\",\r\n\t\tCURACAO = \"CURACAO\",\r\n\t\tCYPRUS = \"CYPRUS\",\r\n\t\tCZECHREPUBLIC = \"CZECHREPUBLIC\",\r\n\t\tDEMOCRATICREPUBLICOFCONGO = \"DEMOCRATICREPUBLICOFCONGO\",\r\n\t\tDENMARK = \"DENMARK\",\r\n\t\tDJIBOUTI = \"DJIBOUTI\",\r\n\t\tDOMINICA = \"DOMINICA\",\r\n\t\tDOMINICANREPUBLIC = \"DOMINICANREPUBLIC\",\r\n\t\tEASTTIMOR = \"EASTTIMOR\",\r\n\t\tECUADOR = \"ECUADOR\",\r\n\t\tEGYPT = \"EGYPT\",\r\n\t\tELSALVADOR = \"ELSALVADOR\",\r\n\t\tEQUATORIALGUINEA = \"EQUATORIALGUINEA\",\r\n\t\tERITREA = \"ERITREA\",\r\n\t\tESTONIA = \"ESTONIA\",\r\n\t\tETHIOPIA = \"ETHIOPIA\",\r\n\t\tFALKLANDISLANDS = \"FALKLANDISLANDS\",\r\n\t\tFAROEISLANDS = \"FAROEISLANDS\",\r\n\t\tFIJI = \"FIJI\",\r\n\t\tFINLAND = \"FINLAND\",\r\n\t\tFRANCE = \"FRANCE\",\r\n\t\tFRENCHPOLYNESIA = \"FRENCHPOLYNESIA\",\r\n\t\tGABON = \"GABON\",\r\n\t\tGAMBIA = \"GAMBIA\",\r\n\t\tGEORGIA = \"GEORGIA\",\r\n\t\tGERMANY = \"GERMANY\",\r\n\t\tGHANA = \"GHANA\",\r\n\t\tGIBRALTAR = \"GIBRALTAR\",\r\n\t\tGREECE = \"GREECE\",\r\n\t\tGREENLAND = \"GREENLAND\",\r\n\t\tGUADELOUPE = \"GUADELOUPE\",\r\n\t\tGUAM = \"GUAM\",\r\n\t\tGUATEMALA = \"GUATEMALA\",\r\n\t\tGUINEA = \"GUINEA\",\r\n\t\tGUINEABISSAU = \"GUINEABISSAU\",\r\n\t\tGUYANA = \"GUYANA\",\r\n\t\tHAITI = \"HAITI\",\r\n\t\tHONDURAS = \"HONDURAS\",\r\n\t\tHONGKONG = \"HONGKONG\",\r\n\t\tHUNGARY = \"HUNGARY\",\r\n\t\tICELAND = \"ICELAND\",\r\n\t\tINDIA = \"INDIA\",\r\n\t\tINDONESIA = \"INDONESIA\",\r\n\t\tIRAN = \"IRAN\",\r\n\t\tIRAQ = \"IRAQ\",\r\n\t\tIRELAND = \"IRELAND\",\r\n\t\tISLEOFMAN = \"ISLEOFMAN\",\r\n\t\tISRAEL = \"ISRAEL\",\r\n\t\tITALY = \"ITALY\",\r\n\t\tIVORYCOAST = \"IVORYCOAST\",\r\n\t\tJAMAICA = \"JAMAICA\",\r\n\t\tJAPAN = \"JAPAN\",\r\n\t\tJORDAN = \"JORDAN\",\r\n\t\tKAZAKHSTAN = \"KAZAKHSTAN\",\r\n\t\tKENYA = \"KENYA\",\r\n\t\tKIRIBATI = \"KIRIBATI\",\r\n\t\tKOSOVO = \"KOSOVO\",\r\n\t\tKUWAIT = \"KUWAIT\",\r\n\t\tKYRGYZSTAN = \"KYRGYZSTAN\",\r\n\t\tLAOS = \"LAOS\",\r\n\t\tLATVIA = \"LATVIA\",\r\n\t\tLEBANON = \"LEBANON\",\r\n\t\tLESOTHO = \"LESOTHO\",\r\n\t\tLIBERIA = \"LIBERIA\",\r\n\t\tLIBYA = \"LIBYA\",\r\n\t\tLIECHTENSTEIN = \"LIECHTENSTEIN\",\r\n\t\tLITHUANIA = \"LITHUANIA\",\r\n\t\tLUXEMBOURG = \"LUXEMBOURG\",\r\n\t\tMACAU = \"MACAU\",\r\n\t\tMACEDONIA = \"MACEDONIA\",\r\n\t\tMADAGASCAR = \"MADAGASCAR\",\r\n\t\tMALAWI = \"MALAWI\",\r\n\t\tMALAYSIA = \"MALAYSIA\",\r\n\t\tMALDIVES = \"MALDIVES\",\r\n\t\tMALI = \"MALI\",\r\n\t\tMALTA = \"MALTA\",\r\n\t\tMARSHALLISLANDS = \"MARSHALLISLANDS\",\r\n\t\tMAURITANIA = \"MAURITANIA\",\r\n\t\tMAURITIUS = \"MAURITIUS\",\r\n\t\tMEXICO = \"MEXICO\",\r\n\t\tMICRONESIA = \"MICRONESIA\",\r\n\t\tMOLDOVA = \"MOLDOVA\",\r\n\t\tMONACO = \"MONACO\",\r\n\t\tMONGOLIA = \"MONGOLIA\",\r\n\t\tMONTENEGRO = \"MONTENEGRO\",\r\n\t\tMONTSERRAT = \"MONTSERRAT\",\r\n\t\tMOROCCO = \"MOROCCO\",\r\n\t\tMOZAMBIQUE = \"MOZAMBIQUE\",\r\n\t\tMYANMARBURMA = \"MYANMARBURMA\",\r\n\t\tNAMIBIA = \"NAMIBIA\",\r\n\t\tNAURU = \"NAURU\",\r\n\t\tNEPAL = \"NEPAL\",\r\n\t\tNETHERLANDS = \"NETHERLANDS\",\r\n\t\tNEWCALEDONIA = \"NEWCALEDONIA\",\r\n\t\tNEWZEALAND = \"NEWZEALAND\",\r\n\t\tNICARAGUA = \"NICARAGUA\",\r\n\t\tNIGER = \"NIGER\",\r\n\t\tNIGERIA = \"NIGERIA\",\r\n\t\tNIUE = \"NIUE\",\r\n\t\tNORFOLKISLAND = \"NORFOLKISLAND\",\r\n\t\tNORTHKOREA = \"NORTHKOREA\",\r\n\t\tNORTHERNMARIANAISLANDS = \"NORTHERNMARIANAISLANDS\",\r\n\t\tNORWAY = \"NORWAY\",\r\n\t\tOMAN = \"OMAN\",\r\n\t\tPAKISTAN = \"PAKISTAN\",\r\n\t\tPALAU = \"PALAU\",\r\n\t\tPANAMA = \"PANAMA\",\r\n\t\tPAPUANEWGUINEA = \"PAPUANEWGUINEA\",\r\n\t\tPARAGUAY = \"PARAGUAY\",\r\n\t\tPERU = \"PERU\",\r\n\t\tPHILIPPINES = \"PHILIPPINES\",\r\n\t\tPITCAIRNISLANDS = \"PITCAIRNISLANDS\",\r\n\t\tPOLAND = \"POLAND\",\r\n\t\tPORTUGAL = \"PORTUGAL\",\r\n\t\tPUERTORICO = \"PUERTORICO\",\r\n\t\tQATAR = \"QATAR\",\r\n\t\tREPUBLICOFTHECONGO = \"REPUBLICOFTHECONGO\",\r\n\t\tREUNION = \"REUNION\",\r\n\t\tROMANIA = \"ROMANIA\",\r\n\t\tRUSSIA = \"RUSSIA\",\r\n\t\tRWANDA = \"RWANDA\",\r\n\t\tSAINTBARTHELEMY = \"SAINTBARTHELEMY\",\r\n\t\tSAINTHELENA = \"SAINTHELENA\",\r\n\t\tSAINTKITTSANDNEVIS = \"SAINTKITTSANDNEVIS\",\r\n\t\tSAINTLUCIA = \"SAINTLUCIA\",\r\n\t\tSAINTMARTIN = \"SAINTMARTIN\",\r\n\t\tSAINTPIERREANDMIQUELON = \"SAINTPIERREANDMIQUELON\",\r\n\t\tSAINTVINCENTANDTHEGRENADINES = \"SAINTVINCENTANDTHEGRENADINES\",\r\n\t\tSAMOA = \"SAMOA\",\r\n\t\tSANMARINO = \"SANMARINO\",\r\n\t\tSAOTOMEANDPRINCIPE = \"SAOTOMEANDPRINCIPE\",\r\n\t\tSAUDIARABIA = \"SAUDIARABIA\",\r\n\t\tSENEGAL = \"SENEGAL\",\r\n\t\tSERBIA = \"SERBIA\",\r\n\t\tSEYCHELLES = \"SEYCHELLES\",\r\n\t\tSIERRALEONE = \"SIERRALEONE\",\r\n\t\tSINGAPORE = \"SINGAPORE\",\r\n\t\tSLOVAKIA = \"SLOVAKIA\",\r\n\t\tSLOVENIA = \"SLOVENIA\",\r\n\t\tSOLOMONISLANDS = \"SOLOMONISLANDS\",\r\n\t\tSOMALIA = \"SOMALIA\",\r\n\t\tSOUTHAFRICA = \"SOUTHAFRICA\",\r\n\t\tSOUTHKOREA = \"SOUTHKOREA\",\r\n\t\tSOUTHSUDAN = \"SOUTHSUDAN\",\r\n\t\tSPAIN = \"SPAIN\",\r\n\t\tSRILANKA = \"SRILANKA\",\r\n\t\tSUDAN = \"SUDAN\",\r\n\t\tSURINAME = \"SURINAME\",\r\n\t\tSWAZILAND = \"SWAZILAND\",\r\n\t\tSWEDEN = \"SWEDEN\",\r\n\t\tSWITZERLAND = \"SWITZERLAND\",\r\n\t\tSYRIA = \"SYRIA\",\r\n\t\tTAIWAN = \"TAIWAN\",\r\n\t\tTAJIKISTAN = \"TAJIKISTAN\",\r\n\t\tTANZANIA = \"TANZANIA\",\r\n\t\tTHAILAND = \"THAILAND\",\r\n\t\tTOGO = \"TOGO\",\r\n\t\tTOKELAU = \"TOKELAU\",\r\n\t\tTRINIDADANDTOBAGO = \"TRINIDADANDTOBAGO\",\r\n\t\tTUNISIA = \"TUNISIA\",\r\n\t\tTURKEY = \"TURKEY\",\r\n\t\tTURKMENISTAN = \"TURKMENISTAN\",\r\n\t\tTUVALU = \"TUVALU\",\r\n\t\tUGANDA = \"UGANDA\",\r\n\t\tUKRAINE = \"UKRAINE\",\r\n\t\tUNITEDARABEMIRATES = \"UNITEDARABEMIRATES\",\r\n\t\tUNITEDKINGDOM = \"UNITEDKINGDOM\",\r\n\t\tUNITEDSTATES = \"UNITEDSTATES\",\r\n\t\tURUGUAY = \"URUGUAY\",\r\n\t\tUZBEKISTAN = \"UZBEKISTAN\",\r\n\t\tVANUATU = \"VANUATU\",\r\n\t\tVATICAN = \"VATICAN\",\r\n\t\tVENEZUELA = \"VENEZUELA\",\r\n\t\tVIETNAM = \"VIETNAM\",\r\n\t\tWESTERNSAHARA = \"WESTERNSAHARA\",\r\n\t\tYEMEN = \"YEMEN\",\r\n\t\tZAMBIA = \"ZAMBIA\",\r\n\t\tZIMBABWE = \"ZIMBABWE\",\r\n\t}\r\n\r\n","/* tslint:disable */\r\n//----------------------\r\n// <auto-generated>\r\n//     Generated using the Tocsoft.GraphQLCodeGen toolchain https://github.com/tocsoft/GraphQLCodeGen\r\n// </auto-generated>\r\n//----------------------\r\n// ReSharper disable InconsistentNaming\r\n\r\nimport {HttpClient} from 'aurelia-fetch-client';\nimport {inject} from 'aurelia-framework';\nimport { apiUrl } from '../../constants'\n\r\ninterface fetchClient {\r\n    fetch(url: RequestInfo, init: RequestInit): Promise<Response>\r\n}\r\n\r\nclass GraphQLResponse\r\n{\r\n    data: any\r\n    errors: Array<{ message: string }>\r\n}\r\n\r\nfunction UserDetailsError(message:string, httpResponse:Response, graphqlResponse?: GraphQLResponse) {\r\n    this.name = 'UserDetailsError';\r\n    this.message = message || 'Error fetching graphql response';\r\n    this.stack = (new Error()).stack;\r\n    this.httpResponse = httpResponse;\r\n    if(graphqlResponse && graphqlResponse.errors){\r\n        this.errors = graphqlResponse.errors.map(x=>x.message);\r\n    }\r\n  }\r\n  UserDetailsError.prototype = Object.create(Error.prototype);\r\n  UserDetailsError.prototype.constructor = UserDetailsError;\r\n  \r\nexport { UserDetailsError }\r\n\r\n@inject(HttpClient, apiUrl)\nexport class UserDetailsClient {\r\n\r\n    constructor(public client: fetchClient, public url: string) { }\r\n\t\r\n\tuserDetails_userDetails() : Promise<UserDetailsUserDetailsResult>{\r\n        return this.client.fetch(this.url, {\r\n            method : 'POST',\r\n            body : JSON.stringify({\r\n                query : `query userDetails {\r\n  me {\r\n    id\r\n    name\r\n    emailAddress\r\n    isAuthenticated\r\n    isAdmin\r\n    isFullyAuthenticated\r\n    applicationIds\r\n    expired\r\n  }\r\n}\r\n`,\r\n                variables : {\r\n                }\r\n            })\r\n        }).then(response=>{\r\n            if(response.status != 200){\r\n                // error result\r\n                throw new UserDetailsError(\"http error running 'userDetails_userDetails', see httpResponse for more details.\", response)\r\n            }else{\r\n                return response.json().then((json:GraphQLResponse)=>{\r\n                    \r\n                    if(json.errors && json.errors.length > 0){\r\n                        throw new UserDetailsError(\"graphql error(s) running 'userDetails_userDetails', see errors collection fro more details\", response, json)\r\n                    }\r\n\r\n                    const result: any = UserDetailsUserDetailsResult.fromJS(json.data);                \r\n                    \r\n                    return result;\r\n                })\r\n            }\r\n        })\r\n    }\t\r\n}\r\n\r\nexport class UserDetailsUserDetailsResult {\r\n\t\tme? :UserResult;\r\n\r\n    static fromJS(json:any):UserDetailsUserDetailsResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new UserDetailsUserDetailsResult();\r\n\r\nresult.me= UserResult.fromJS(json[\"me\"]);\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\nexport class UserResult {\r\n\t\tid? :string;\r\n\t\tname? :string;\r\n\t\temailAddress? :string;\r\n\t\tisAuthenticated :boolean;\r\n\t\tisAdmin :boolean;\r\n\t\tisFullyAuthenticated :boolean;\r\n\t\tapplicationIds? :Array<string>;\r\n\t\texpired :boolean;\r\n\r\n    static fromJS(json:any):UserResult{\r\n        if(json == null || json == undefined){\r\n            return null;\r\n        }\r\n        \r\n        var result = new UserResult();\r\n\r\n\tresult.id = json[\"id\"];\r\n\tresult.name = json[\"name\"];\r\n\tresult.emailAddress = json[\"emailAddress\"];\r\n\tresult.isAuthenticated = json[\"isAuthenticated\"];\r\n\tresult.isAdmin = json[\"isAdmin\"];\r\n\tresult.isFullyAuthenticated = json[\"isFullyAuthenticated\"];\r\n\tresult.applicationIds = json[\"applicationIds\"];\r\n\tresult.expired = json[\"expired\"];\r\n\r\n        return result;\r\n    }\r\n}\r\n\r\n\r\n","import { Document } from '../application/components/evidence-item';\r\n\r\nexport class Helpers {\r\n    static handleOther(list: string[], value: string, other: boolean = false) {\r\n        if (value === null || value === \"\") {\r\n            return null;\r\n        }\r\n\r\n        if (list.includes(value)) {\r\n            return !other ? value : null;\r\n        }\r\n        else {\r\n            return other ? value : \"Other\";\r\n        }\r\n    }\r\n\r\n    static isNavigationOrSelectionKey(e: KeyboardEvent) {\r\n        // Allow: backspace, delete, tab, escape, enter\r\n        if ([46, 8, 9, 27, 13].indexOf(e.keyCode) !== -1 ||\r\n          // Allow: Ctrl+A/X/C/V, Command+A/X/C/V\r\n          ([65, 67, 86, 88].indexOf(e.keyCode) !== -1 && (e.ctrlKey === true || e.metaKey === true)) ||\r\n          // Allow: home, end, left, right, down, up\r\n          (e.keyCode >= 35 && e.keyCode <= 40)) {\r\n           // let it happen, don't do anything\r\n           return true;\r\n        }\r\n\r\n        return false;\r\n    }\r\n\r\n    static isSpaceKey(e: KeyboardEvent) {\r\n        return e.keyCode === 32;\r\n    }\r\n\r\n    static isNumberKey(e: KeyboardEvent) {\r\n        return !((e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105));\r\n    }\r\n\r\n    static scrollToElement(element: HTMLElement) {\r\n        const offset = element.getBoundingClientRect().top;\r\n        if (offset < 0) {\r\n            const destination = window.scrollY + offset - 10;\r\n            Helpers.scrollTo(destination, 250, 50);\r\n        }\r\n    }\r\n\r\n    static scrollTo(position: number, duration: number = 800, delay: number = 500) {\r\n        setTimeout(() => {\r\n            let cosParameter = (window.pageYOffset - position) / 2,\r\n            scrollCount = 0,\r\n            oldTimestamp = performance.now();\r\n            \r\n            function step (newTimestamp: number) {\r\n                var tsDiff = newTimestamp - oldTimestamp;\r\n                if (tsDiff > 100) {\r\n                    tsDiff = 30;\r\n                }\r\n\r\n                scrollCount += Math.PI / (duration / tsDiff);\r\n                \r\n                if (scrollCount >= Math.PI) {\r\n                    return;\r\n                }\r\n\r\n                var moveStep = Math.round(position + cosParameter + cosParameter * Math.cos(scrollCount));\r\n                window.scrollTo(0, moveStep);\r\n                oldTimestamp = newTimestamp;\r\n                window.requestAnimationFrame(step);\r\n            }\r\n            \r\n            window.requestAnimationFrame(step);\r\n        }, delay);\r\n    }\r\n\r\n    static getFileIcon(file: Document) {\r\n        return file.fileType === 'application/pdf' ? 'pdf' :\r\n               file.fileType.startsWith('image/') ? 'photo' :\r\n               file.fileType.includes('wordprocessing') ? 'word' :\r\n               file.fileType.includes('spreadsheet') ? 'excel' :\r\n               file.fileType.includes('presentation') ? 'powerpoint' :\r\n               'document';\r\n    }\r\n\r\n    static isIE() {\r\n        return window.navigator.userAgent.indexOf(\"MSIE \") > 0 || !!window.navigator.userAgent.match(/Trident.*rv\\:11\\./);\r\n    }\r\n\r\n    static keypressEnterOrSpace(event: KeyboardEvent, callback: Function) {\r\n        if (event.key === 'Enter' || event.key === 'Space' || event.which === 32) {\r\n            callback();\r\n            return false;\r\n        }\r\n\r\n        return true;\r\n    }\r\n}","export class Lists {\r\n    static titles = ['Mr', 'Mrs', 'Ms', 'Miss', 'Dr', 'Other'];\r\n\r\n    static relationships = [\r\n        'Managing Agent',\r\n        'Letting Agent',\r\n        'Factor',\r\n        'Residents Association',\r\n        'Housing Association',\r\n        'Family Member',\r\n        'Partner',\r\n        'Neighbour',\r\n        'Friend',\r\n        'Tenant',\r\n        'Other'\r\n    ];\r\n\r\n    static additionalPolicyholderRelationships = [\r\n        'Spouse',\r\n        'Partner',\r\n        'Mother',\r\n        'Father',\r\n        'Sister',\r\n        'Brother',\r\n        'Other family member',\r\n        'Housing Association',\r\n        'Friend',\r\n        'Other'\r\n    ];\r\n\r\n    static representativeRelationships = [\r\n        'Managing Agent',\r\n        'Letting Agent',\r\n        'Factor',\r\n        'Residents Association',\r\n        'Housing Association',\r\n        'Spouse',\r\n        'Partner',\r\n        'Mother',\r\n        'Father',\r\n        'Sister',\r\n        'Brother',\r\n        'Son',\r\n        'Daughter',\r\n        'Other family member',\r\n        'Neighbour',\r\n        'Friend',\r\n        'Tenant',\r\n        'Other'\r\n    ];\r\n\r\n    static familyRelationships = [\r\n        'Spouse',\r\n        'Partner',\r\n        'Mother',\r\n        'Father',\r\n        'Sister',\r\n        'Brother',\r\n        'Son',\r\n        'Daughter',\r\n        'Other'\r\n    ];\r\n\r\n    static residentialPropertyTypes = [\r\n        'Detached',\r\n        'Semi-detached',\r\n        'Terraced',\r\n        'Apartment'\r\n    ];\r\n\r\n    static commercialPropertyTypes = [\r\n        'Hospital',\r\n        'Retail',\r\n        'Office',\r\n        'Education',\r\n        'Industrial',\r\n        'Shopping Centre',\r\n        'Hotel',\r\n        'Unknown',\r\n        'Other'\r\n    ];\r\n\r\n    static issueAreasCommon = [\r\n        'Attic',\r\n        'Basement',\r\n        'Bathroom',\r\n        'Bedroom 1',\r\n        'Bedroom 2',\r\n        'Bedroom 3',\r\n        'Bedroom 4',\r\n        'Bedroom 5',\r\n        'Bedroom 6',\r\n        'Carport',\r\n        'Conservatory',\r\n        'Dining Room',\r\n        'Drains',\r\n        'Driveway',\r\n        'Ensuite',\r\n        'External Doors',\r\n        'External Walls',\r\n        'Foundations',\r\n        'Garage',\r\n        'Garden',\r\n        'Hall',\r\n        'Internal Doors',\r\n        'Internal Walls',\r\n        'Kitchen',\r\n        'Living Room',\r\n        'Loft',\r\n        'Orangery',\r\n        'Roads',\r\n        'Roof',\r\n        'Sewers', \r\n        'Swimming Pool',\r\n        'Windows'\r\n    ];\r\n\r\n    static issueAreas = [\r\n        ...Lists.issueAreasCommon,\r\n        'Other'\r\n    ];\r\n\r\n    static issueAreasForAdmin = [\r\n        ...Lists.issueAreasCommon,\r\n        'Insolvency - Refund of Deposit',\r\n        'Insolvency of Developer/Builder',\r\n        'Other'\r\n    ];\r\n\r\n    static issueEvidenceTypes = [\r\n        'Building Surveyor Report / RICS Report / Structural Engineer Report',\r\n        'Drainage Report',\r\n        'Estimate',\r\n        'Roofer Report',\r\n        'Photographs',\r\n        'Videos',\r\n        'Audio Files',\r\n        'Other Specialist Report',\r\n        'Written Evidence of Notification to Developer',\r\n        'Other'\r\n    ];\r\n\r\n    static issueEvidenceReportTypes = [\r\n        'Building Surveyor Report / RICS Report / Structural Engineer Report',\r\n        'Drainage Report',\r\n        'Estimate',\r\n        'Roofer Report',\r\n        'Other Specialist Report',\r\n        'Other'\r\n    ];\r\n\r\n    static propertyUsage = [\r\n        'Main Residence',\r\n        'Holiday Home',\r\n        'Rental – Currently Tenanted',\r\n        'Rental – Currently Vacant',\r\n        'Holiday Rental',\r\n        'Other'\r\n    ];\r\n\r\n    static closeApplicationReasons = [\r\n        'I can claim under my Home insurance',\r\n        'I can claim under another guarantee/warranty',\r\n        'Developer/Builder will repair',\r\n        'Repair costs are below the Excess',\r\n        'I have already started a notification',\r\n        'I prefer not to say',\r\n        'Other (fill in reason below)'\r\n    ]\r\n}\r\n","export const apiUrl = '/api'\r\n","export default {\r\n  debug: false,\r\n  testing: false,\r\n  brand: \"labc\",\r\n  amtrustUrl: \"https://marleyriskconsultants.com/AELclaim\"\r\n};\r\n","import { Aurelia } from 'aurelia-framework'\r\nimport environment from './environment';\r\nimport { HttpClient } from 'aurelia-fetch-client';\r\nimport { PLATFORM } from 'aurelia-pal';\r\nimport { Router } from 'aurelia-router';\r\nimport { EventAggregator } from 'aurelia-event-aggregator';\r\nimport 'whatwg-fetch'\r\nimport { TokenService } from './services/tokenService';\r\nimport { setTimeout } from 'timers';\r\n\r\nexport function configure(aurelia: Aurelia) {\r\n    aurelia.use\r\n        .standardConfiguration()\r\n        .plugin(PLATFORM.moduleName('aurelia-router'))\r\n        .plugin(PLATFORM.moduleName(\"aurelia-animator-css\"))\r\n        .plugin(PLATFORM.moduleName('aurelia-dialog'))\r\n        .feature(PLATFORM.moduleName('resources/index'));\r\n\r\n    aurelia.use.developmentLogging(environment.debug ? 'debug' : 'warn');\r\n\r\n    if (environment.testing) {\r\n        aurelia.use.plugin(PLATFORM.moduleName('aurelia-testing'));\r\n    }\r\n\r\n    if (!String.prototype.includes) {\r\n        String.prototype.includes = function (search, start) {\r\n            if (typeof start !== 'number') {\r\n                start = 0;\r\n            }\r\n\r\n            if (start + search.length > this.length) {\r\n                return false;\r\n            } else {\r\n                return this.indexOf(search, start) !== -1;\r\n            }\r\n        };\r\n    }\r\n\r\n    aurelia.start()\r\n        .then(configureAuth)\r\n        .then(() => aurelia.setRoot(PLATFORM.moduleName('app')))\r\n        .catch(x => {\r\n            console.error(x)\r\n        });\r\n    window[\"au1\"] = aurelia;\r\n}\r\n\r\n// user manager\r\n\r\nasync function configureAuth(aurelia: Aurelia): Promise<Aurelia> {\r\n    const httpClient = aurelia.container.get(HttpClient) as HttpClient;\r\n    const tokenService = aurelia.container.get(TokenService) as TokenService;\r\n\r\n    httpClient.configure(httpConfig => {\r\n        httpConfig\r\n            .withDefaults({\r\n                headers: {\r\n                    'Accept': 'application/json',\r\n                    'Content-Type': 'application/json',\r\n                }\r\n            })\r\n            .withInterceptor({\r\n                async request(request) {\r\n\r\n                    const token = tokenService.getToken();\r\n\r\n                    if (token) {\r\n                        request.headers.set('Authorization', 'Bearer ' + token);\r\n                    }\r\n\r\n                    return request;\r\n                },\r\n                async response(response: Response, request?: Request) {\r\n\r\n                    // check if api is offline\r\n                    if (response.status === 503) {\r\n                        window['offline'] = true;\r\n                        window.location.reload();\r\n                    }\r\n\r\n                    return response;\r\n                }\r\n            });\r\n    });\r\n\r\n    const checkOnline = function () {\r\n        setTimeout(async () => {\r\n            var result = await httpClient.get(\"api/online\");\r\n            if (result.status != 503) {\r\n                checkOnline();\r\n            }\r\n        }, 1000);\r\n    }\r\n\r\n    checkOnline();\r\n\r\n    return aurelia;\r\n}\r\n"],"names":[],"sourceRoot":""}