zugferd-code-lists
Version:
ZUGFeRD code lists, e.g. languages enum, currencies enum, countries enum, etc.
1 lines • 2.15 kB
Source Map (JSON)
{"version":3,"sources":["../../src/zugferd_2_3_2/mime.ts"],"sourcesContent":["\nexport enum MIME {\n /**\n * application/pdf\n */\n ApplicationPdf = \"application/pdf\",\n /**\n * image/png\n */\n ImagePng = \"image/png\",\n /**\n * image/jpeg\n */\n ImageJpeg = \"image/jpeg\",\n /**\n * text/csv\n */\n TextCsv = \"text/csv\",\n /**\n * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n */\n ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet = \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n /**\n * application/vnd.oasis.opendocument.spreadsheet\n */\n ApplicationVndOasisOpendocumentSpreadsheet = \"application/vnd.oasis.opendocument.spreadsheet\",\n /**\n * application/xml\n */\n ApplicationXml = \"application/xml\",\n /**\n * text/xml\n */\n TextXml = \"text/xml\",\n}\n\nexport function description(value: MIME): string {\n switch (value) {\n case MIME.ApplicationPdf: return \"application/pdf\";\n case MIME.ImagePng: return \"image/png\";\n case MIME.ImageJpeg: return \"image/jpeg\";\n case MIME.TextCsv: return \"text/csv\";\n case MIME.ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet: return \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\";\n case MIME.ApplicationVndOasisOpendocumentSpreadsheet: return \"application/vnd.oasis.opendocument.spreadsheet\";\n case MIME.ApplicationXml: return \"application/xml\";\n case MIME.TextXml: return \"text/xml\";\n }\n}\n"],"mappings":";AACO,IAAK,OAAL,kBAAKA,UAAL;AAIH,EAAAA,MAAA,oBAAiB;AAIjB,EAAAA,MAAA,cAAW;AAIX,EAAAA,MAAA,eAAY;AAIZ,EAAAA,MAAA,aAAU;AAIV,EAAAA,MAAA,kEAA+D;AAI/D,EAAAA,MAAA,gDAA6C;AAI7C,EAAAA,MAAA,oBAAiB;AAIjB,EAAAA,MAAA,aAAU;AAhCF,SAAAA;AAAA,GAAA;AAmCL,SAAS,YAAY,OAAqB;AAC7C,UAAQ,OAAO;AAAA,IACX,KAAK;AAAqB,aAAO;AAAA,IACjC,KAAK;AAAe,aAAO;AAAA,IAC3B,KAAK;AAAgB,aAAO;AAAA,IAC5B,KAAK;AAAc,aAAO;AAAA,IAC1B,KAAK;AAAmE,aAAO;AAAA,IAC/E,KAAK;AAAiD,aAAO;AAAA,IAC7D,KAAK;AAAqB,aAAO;AAAA,IACjC,KAAK;AAAc,aAAO;AAAA,EAC9B;AACJ;","names":["MIME"]}