UNPKG

zugferd-code-lists

Version:

ZUGFeRD code lists, e.g. languages enum, currencies enum, countries enum, etc.

1 lines 2.11 kB
{"version":3,"sources":["../../src/zugferd_2_3_2/mime.ts"],"sourcesContent":["export 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:\n return \"application/pdf\";\n case MIME.ImagePng:\n return \"image/png\";\n case MIME.ImageJpeg:\n return \"image/jpeg\";\n case MIME.TextCsv:\n return \"text/csv\";\n case MIME.ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet:\n return \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\";\n case MIME.ApplicationVndOasisOpendocumentSpreadsheet:\n return \"application/vnd.oasis.opendocument.spreadsheet\";\n case MIME.ApplicationXml:\n return \"application/xml\";\n case MIME.TextXml:\n return \"text/xml\";\n }\n}\n"],"mappings":";AAAO,IAAK,OAAL,kBAAKA,UAAL;AAIL,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;AAhCA,SAAAA;AAAA,GAAA;AAmCL,SAAS,YAAY,OAAqB;AAC/C,UAAQ,OAAO;AAAA,IACb,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,EACX;AACF;","names":["MIME"]}