truflow 0.0.113 → 0.0.115

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.
@@ -39,22 +39,3 @@ export interface ILeanExporter {
39
39
  ignoreEmptyFiles: boolean;
40
40
  firstLineHeaders: boolean;
41
41
  }
42
- export interface IAttachment {
43
- fileName: string;
44
- content: string;
45
- }
46
- export interface IMailCacheObject {
47
- _id?: mongoose.Types.ObjectId;
48
- time: Date;
49
- subject: string;
50
- attachments: IAttachment[];
51
- saveDir: string;
52
- state: string;
53
- logs: string[];
54
- }
55
- export type IMailCache = ILeanMailCache & Document;
56
- export interface ILeanMailCache {
57
- _id: mongoose.Types.ObjectId;
58
- exporterID?: string;
59
- mailCache?: IMailCacheObject[];
60
- }
@@ -0,0 +1,40 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose/types/inferschematype" />
25
+ import mongoose, { Document } from "mongoose";
26
+ export interface ILeanMailCache {
27
+ _id?: mongoose.Types.ObjectId;
28
+ time: Date;
29
+ subject: string;
30
+ attachments: IAttachment[];
31
+ saveDir: string;
32
+ state: string;
33
+ logs: string[];
34
+ exporterID: string;
35
+ }
36
+ export interface IAttachment {
37
+ fileName: string;
38
+ content: string;
39
+ }
40
+ export type IMailCache = ILeanMailCache & Document;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,6 @@
1
- import { IMailCacheObject } from "./IExporter";
1
+ import { ILeanMailCache } from "./IMailCache";
2
2
  export interface IPendingOperation {
3
3
  exporterID: string;
4
4
  mailCacheID: string;
5
- mailCacheEntryID: string;
6
- email: IMailCacheObject;
5
+ email: ILeanMailCache;
7
6
  }
package/dist/index.d.ts CHANGED
@@ -23,3 +23,4 @@ export * from "./Routes/IZapierRoutes";
23
23
  export * from "./IIntegration";
24
24
  export * from "./INotification";
25
25
  export * from "./Helpers/IAllmoxy";
26
+ export * from "./IMailCache";
package/dist/index.js CHANGED
@@ -39,3 +39,4 @@ __exportStar(require("./Routes/IZapierRoutes"), exports);
39
39
  __exportStar(require("./IIntegration"), exports);
40
40
  __exportStar(require("./INotification"), exports);
41
41
  __exportStar(require("./Helpers/IAllmoxy"), exports);
42
+ __exportStar(require("./IMailCache"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truflow",
3
- "version": "0.0.113",
3
+ "version": "0.0.115",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
package/src/IExporter.ts CHANGED
@@ -18,26 +18,3 @@ export interface ILeanExporter {
18
18
  ignoreEmptyFiles: boolean;
19
19
  firstLineHeaders: boolean;
20
20
  }
21
-
22
- export interface IAttachment {
23
- fileName: string;
24
- content: string;
25
- }
26
-
27
- export interface IMailCacheObject {
28
- _id?: mongoose.Types.ObjectId;
29
- time: Date;
30
- subject: string;
31
- attachments: IAttachment[];
32
- saveDir: string;
33
- state: string;
34
- logs: string[];
35
- }
36
-
37
- export type IMailCache = ILeanMailCache & Document;
38
-
39
- export interface ILeanMailCache {
40
- _id: mongoose.Types.ObjectId;
41
- exporterID?: string;
42
- mailCache?: IMailCacheObject[];
43
- }
@@ -0,0 +1,19 @@
1
+ import mongoose, { Document } from "mongoose";
2
+
3
+ export interface ILeanMailCache {
4
+ _id?: mongoose.Types.ObjectId;
5
+ time: Date;
6
+ subject: string;
7
+ attachments: IAttachment[];
8
+ saveDir: string;
9
+ state: string;
10
+ logs: string[];
11
+ exporterID: string;
12
+ }
13
+
14
+ export interface IAttachment {
15
+ fileName: string;
16
+ content: string;
17
+ }
18
+
19
+ export type IMailCache = ILeanMailCache & Document;
package/src/IWebsocket.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { IMailCacheObject } from "./IExporter";
1
+ import { ILeanMailCache } from "./IMailCache";
2
2
 
3
3
  export interface IPendingOperation {
4
4
  exporterID: string;
5
5
  mailCacheID: string;
6
- mailCacheEntryID: string;
7
- email: IMailCacheObject;
6
+ email: ILeanMailCache;
8
7
  }
package/src/index.ts CHANGED
@@ -23,3 +23,4 @@ export * from "./Routes/IZapierRoutes";
23
23
  export * from "./IIntegration";
24
24
  export * from "./INotification";
25
25
  export * from "./Helpers/IAllmoxy";
26
+ export * from "./IMailCache";