gas-mime-types 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,34 @@
1
+ export declare enum GasMimeType {
2
+ BMP = "image/bmp",
3
+ CSS = "text/css",
4
+ CSV = "text/csv",
5
+ FOLDER = "application/vnd.google-apps.folder",
6
+ GIF = "image/gif",
7
+ GOOGLE_APPS_SCRIPT = "application/vnd.google-apps.script",
8
+ GOOGLE_DOCS = "application/vnd.google-apps.document",
9
+ GOOGLE_DRAWINGS = "application/vnd.google-apps.drawing",
10
+ GOOGLE_FORMS = "application/vnd.google-apps.form",
11
+ GOOGLE_SHEETS = "application/vnd.google-apps.spreadsheet",
12
+ GOOGLE_SITES = "application/vnd.google-apps.site",
13
+ GOOGLE_SLIDES = "application/vnd.google-apps.presentation",
14
+ HTML = "text/html",
15
+ JAVASCRIPT = "application/javascript",
16
+ JPEG = "image/jpeg",
17
+ MICROSOFT_EXCEL = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
18
+ MICROSOFT_EXCEL_LEGACY = "application/vnd.ms-excel",
19
+ MICROSOFT_POWERPOINT = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
20
+ MICROSOFT_POWERPOINT_LEGACY = "application/vnd.ms-powerpoint",
21
+ MICROSOFT_WORD = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
22
+ MICROSOFT_WORD_LEGACY = "application/msword",
23
+ OPENDOCUMENT_GRAPHICS = "application/vnd.oasis.opendocument.graphics",
24
+ OPENDOCUMENT_PRESENTATION = "application/vnd.oasis.opendocument.presentation",
25
+ OPENDOCUMENT_SPREADSHEET = "application/vnd.oasis.opendocument.spreadsheet",
26
+ OPENDOCUMENT_TEXT = "application/vnd.oasis.opendocument.text",
27
+ PDF = "application/pdf",
28
+ PLAIN_TEXT = "text/plain",
29
+ PNG = "image/png",
30
+ RTF = "application/rtf",
31
+ SHORTCUT = "application/vnd.google-apps.shortcut",
32
+ SVG = "image/svg+xml",
33
+ ZIP = "application/zip"
34
+ }
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ export var GasMimeType;
2
+ (function (GasMimeType) {
3
+ GasMimeType["BMP"] = "image/bmp";
4
+ GasMimeType["CSS"] = "text/css";
5
+ GasMimeType["CSV"] = "text/csv";
6
+ GasMimeType["FOLDER"] = "application/vnd.google-apps.folder";
7
+ GasMimeType["GIF"] = "image/gif";
8
+ GasMimeType["GOOGLE_APPS_SCRIPT"] = "application/vnd.google-apps.script";
9
+ GasMimeType["GOOGLE_DOCS"] = "application/vnd.google-apps.document";
10
+ GasMimeType["GOOGLE_DRAWINGS"] = "application/vnd.google-apps.drawing";
11
+ GasMimeType["GOOGLE_FORMS"] = "application/vnd.google-apps.form";
12
+ GasMimeType["GOOGLE_SHEETS"] = "application/vnd.google-apps.spreadsheet";
13
+ GasMimeType["GOOGLE_SITES"] = "application/vnd.google-apps.site";
14
+ GasMimeType["GOOGLE_SLIDES"] = "application/vnd.google-apps.presentation";
15
+ GasMimeType["HTML"] = "text/html";
16
+ GasMimeType["JAVASCRIPT"] = "application/javascript";
17
+ GasMimeType["JPEG"] = "image/jpeg";
18
+ GasMimeType["MICROSOFT_EXCEL"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
19
+ GasMimeType["MICROSOFT_EXCEL_LEGACY"] = "application/vnd.ms-excel";
20
+ GasMimeType["MICROSOFT_POWERPOINT"] = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
21
+ GasMimeType["MICROSOFT_POWERPOINT_LEGACY"] = "application/vnd.ms-powerpoint";
22
+ GasMimeType["MICROSOFT_WORD"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
23
+ GasMimeType["MICROSOFT_WORD_LEGACY"] = "application/msword";
24
+ GasMimeType["OPENDOCUMENT_GRAPHICS"] = "application/vnd.oasis.opendocument.graphics";
25
+ GasMimeType["OPENDOCUMENT_PRESENTATION"] = "application/vnd.oasis.opendocument.presentation";
26
+ GasMimeType["OPENDOCUMENT_SPREADSHEET"] = "application/vnd.oasis.opendocument.spreadsheet";
27
+ GasMimeType["OPENDOCUMENT_TEXT"] = "application/vnd.oasis.opendocument.text";
28
+ GasMimeType["PDF"] = "application/pdf";
29
+ GasMimeType["PLAIN_TEXT"] = "text/plain";
30
+ GasMimeType["PNG"] = "image/png";
31
+ GasMimeType["RTF"] = "application/rtf";
32
+ GasMimeType["SHORTCUT"] = "application/vnd.google-apps.shortcut";
33
+ GasMimeType["SVG"] = "image/svg+xml";
34
+ GasMimeType["ZIP"] = "application/zip";
35
+ })(GasMimeType || (GasMimeType = {}));
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "gas-mime-types",
3
+ "version": "0.1.0",
4
+ "description": "Google Apps Script MIME type enum for type completion",
5
+ "author": "perstockholmsschakt",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/perstockholmsschakt/gas-mime-type.git"
10
+ },
11
+ "keywords": [
12
+ "google-apps-script",
13
+ "gas",
14
+ "mime-types",
15
+ "typescript"
16
+ ],
17
+ "type": "module",
18
+ "main": "dist/index.js",
19
+ "types": "dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "default": "./dist/index.js"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsc"
31
+ },
32
+ "devDependencies": {
33
+ "typescript": "^5.3.3"
34
+ }
35
+ }