@otters.ai/common-backend 1.0.152 → 1.0.154

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,59 @@
1
+ export declare enum FileBaseType {
2
+ JPEG = "image/jpeg",
3
+ PNG = "image/png",
4
+ GIF = "image/gif",
5
+ BMP = "image/bmp",
6
+ SVG = "image/svg+xml",
7
+ WEBP = "image/webp",
8
+ TIFF = "image/tiff",
9
+ ICO = "image/x-icon",
10
+ MP4 = "video/mp4",
11
+ AVI = "video/x-msvideo",
12
+ MOV = "video/quicktime",
13
+ WMV = "video/x-ms-wmv",
14
+ MKV = "video/x-matroska",
15
+ FLV = "video/x-flv",
16
+ WEBM = "video/webm",
17
+ MP3 = "audio/mpeg",
18
+ WAV = "audio/wav",
19
+ AAC = "audio/aac",
20
+ OGG = "audio/ogg",
21
+ FLAC = "audio/flac",
22
+ AMR = "audio/amr",
23
+ WMA = "audio/x-ms-wma",
24
+ PDF = "application/pdf",
25
+ DOC = "application/msword",
26
+ DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
27
+ XLS = "application/vnd.ms-excel",
28
+ XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
29
+ PPT = "application/vnd.ms-powerpoint",
30
+ PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
31
+ TXT = "text/plain",
32
+ RTF = "application/rtf",
33
+ HTML = "text/html",
34
+ CSV = "text/csv",
35
+ XML = "application/xml",
36
+ JSON = "application/json",
37
+ ZIP = "application/zip",
38
+ RAR = "application/vnd.rar",
39
+ TAR = "application/x-tar",
40
+ GZ = "application/gzip",
41
+ SEVEN_ZIP = "application/x-7z-compressed",
42
+ JS = "application/javascript",
43
+ TS = "application/typescript",
44
+ PY = "application/x-python-code",
45
+ JAVA = "text/x-java-source",
46
+ HTML_FILE = "text/html",
47
+ CSS = "text/css",
48
+ PHP = "application/x-httpd-php",
49
+ TTF = "font/ttf",
50
+ OTF = "font/otf",
51
+ WOFF = "font/woff",
52
+ WOFF2 = "font/woff2",
53
+ BIN = "application/octet-stream",
54
+ ISO = "application/x-iso9660-image",
55
+ DMG = "application/x-apple-diskimage",
56
+ EXE = "application/vnd.microsoft.portable-executable",
57
+ APK = "application/vnd.android.package-archive",
58
+ IPA = "application/vnd.apple.installer+xml"
59
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileBaseType = void 0;
4
+ var FileBaseType;
5
+ (function (FileBaseType) {
6
+ // Image Types
7
+ FileBaseType["JPEG"] = "image/jpeg";
8
+ FileBaseType["PNG"] = "image/png";
9
+ FileBaseType["GIF"] = "image/gif";
10
+ FileBaseType["BMP"] = "image/bmp";
11
+ FileBaseType["SVG"] = "image/svg+xml";
12
+ FileBaseType["WEBP"] = "image/webp";
13
+ FileBaseType["TIFF"] = "image/tiff";
14
+ FileBaseType["ICO"] = "image/x-icon";
15
+ // Video Types
16
+ FileBaseType["MP4"] = "video/mp4";
17
+ FileBaseType["AVI"] = "video/x-msvideo";
18
+ FileBaseType["MOV"] = "video/quicktime";
19
+ FileBaseType["WMV"] = "video/x-ms-wmv";
20
+ FileBaseType["MKV"] = "video/x-matroska";
21
+ FileBaseType["FLV"] = "video/x-flv";
22
+ FileBaseType["WEBM"] = "video/webm";
23
+ // Audio Types
24
+ FileBaseType["MP3"] = "audio/mpeg";
25
+ FileBaseType["WAV"] = "audio/wav";
26
+ FileBaseType["AAC"] = "audio/aac";
27
+ FileBaseType["OGG"] = "audio/ogg";
28
+ FileBaseType["FLAC"] = "audio/flac";
29
+ FileBaseType["AMR"] = "audio/amr";
30
+ FileBaseType["WMA"] = "audio/x-ms-wma";
31
+ // Document Types
32
+ FileBaseType["PDF"] = "application/pdf";
33
+ FileBaseType["DOC"] = "application/msword";
34
+ FileBaseType["DOCX"] = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
35
+ FileBaseType["XLS"] = "application/vnd.ms-excel";
36
+ FileBaseType["XLSX"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
37
+ FileBaseType["PPT"] = "application/vnd.ms-powerpoint";
38
+ FileBaseType["PPTX"] = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
39
+ FileBaseType["TXT"] = "text/plain";
40
+ FileBaseType["RTF"] = "application/rtf";
41
+ FileBaseType["HTML"] = "text/html";
42
+ FileBaseType["CSV"] = "text/csv";
43
+ FileBaseType["XML"] = "application/xml";
44
+ FileBaseType["JSON"] = "application/json";
45
+ // Compressed Types
46
+ FileBaseType["ZIP"] = "application/zip";
47
+ FileBaseType["RAR"] = "application/vnd.rar";
48
+ FileBaseType["TAR"] = "application/x-tar";
49
+ FileBaseType["GZ"] = "application/gzip";
50
+ FileBaseType["SEVEN_ZIP"] = "application/x-7z-compressed";
51
+ // Code Files
52
+ FileBaseType["JS"] = "application/javascript";
53
+ FileBaseType["TS"] = "application/typescript";
54
+ FileBaseType["PY"] = "application/x-python-code";
55
+ FileBaseType["JAVA"] = "text/x-java-source";
56
+ FileBaseType["HTML_FILE"] = "text/html";
57
+ FileBaseType["CSS"] = "text/css";
58
+ FileBaseType["PHP"] = "application/x-httpd-php";
59
+ // Font Types
60
+ FileBaseType["TTF"] = "font/ttf";
61
+ FileBaseType["OTF"] = "font/otf";
62
+ FileBaseType["WOFF"] = "font/woff";
63
+ FileBaseType["WOFF2"] = "font/woff2";
64
+ // Other
65
+ FileBaseType["BIN"] = "application/octet-stream";
66
+ FileBaseType["ISO"] = "application/x-iso9660-image";
67
+ FileBaseType["DMG"] = "application/x-apple-diskimage";
68
+ FileBaseType["EXE"] = "application/vnd.microsoft.portable-executable";
69
+ FileBaseType["APK"] = "application/vnd.android.package-archive";
70
+ FileBaseType["IPA"] = "application/vnd.apple.installer+xml";
71
+ })(FileBaseType || (exports.FileBaseType = FileBaseType = {}));
@@ -14,3 +14,4 @@ export * from './contentType';
14
14
  export * from './userType';
15
15
  export * from './fileType';
16
16
  export * from './mapTemplate/category';
17
+ export * from './fileBaseType';
@@ -30,3 +30,4 @@ __exportStar(require("./contentType"), exports);
30
30
  __exportStar(require("./userType"), exports);
31
31
  __exportStar(require("./fileType"), exports);
32
32
  __exportStar(require("./mapTemplate/category"), exports);
33
+ __exportStar(require("./fileBaseType"), exports);
@@ -34,4 +34,5 @@ export * from './saleLead/saleLeadStruct';
34
34
  export * from './mapTemplates/mapTemplate';
35
35
  export * from './mapTemplates/goals';
36
36
  export * from './mapTemplates/activity';
37
+ export * from './mapTemplates/attachments';
37
38
  export * from './email/inviteEmailStruct';
@@ -59,5 +59,6 @@ __exportStar(require("./saleLead/saleLeadStruct"), exports);
59
59
  __exportStar(require("./mapTemplates/mapTemplate"), exports);
60
60
  __exportStar(require("./mapTemplates/goals"), exports);
61
61
  __exportStar(require("./mapTemplates/activity"), exports);
62
+ __exportStar(require("./mapTemplates/attachments"), exports);
62
63
  // email...
63
64
  __exportStar(require("./email/inviteEmailStruct"), exports);
@@ -1,4 +1,5 @@
1
1
  import { ActivitiesEnum } from "../../enum";
2
+ import { MapTemplateAttachmentsStruct } from "./attachments";
2
3
  export interface MapTemplateActivityStruct {
3
4
  id?: string;
4
5
  title: string;
@@ -7,7 +8,7 @@ export interface MapTemplateActivityStruct {
7
8
  goalId: string;
8
9
  ownerId: string;
9
10
  type: ActivitiesEnum;
10
- attachments: string[];
11
+ attachments: MapTemplateAttachmentsStruct[];
11
12
  createdAt?: string;
12
13
  updatedAt?: string;
13
14
  }
@@ -0,0 +1,6 @@
1
+ import { FileBaseType } from "../../enum";
2
+ export interface MapTemplateAttachmentsStruct {
3
+ title: string;
4
+ url: string;
5
+ fileType: FileBaseType;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import { GoalCategory } from "../../enum";
2
+ import { MapTemplateAttachmentsStruct } from "./attachments";
2
3
  export interface MapTemplateGoalStruct {
3
4
  id?: string;
4
5
  title: string;
@@ -7,7 +8,7 @@ export interface MapTemplateGoalStruct {
7
8
  ownerId: string;
8
9
  activityId: string[];
9
10
  mapTemplateId: string;
10
- attachments: string[];
11
+ attachments: MapTemplateAttachmentsStruct[];
11
12
  createdAt?: string;
12
13
  updatedAt?: string;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otters.ai/common-backend",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",