@simplysm/service-common 13.0.70 → 13.0.72

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.
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./protocol/protocol.types";
2
2
  export * from "./protocol/service-protocol";
3
3
  export * from "./service-types/orm-service.types";
4
4
  export * from "./service-types/auto-update-service.types";
5
+ export * from "./service-types/smtp-client-service.types";
5
6
  export * from "./types";
6
7
  export * from "./define-event";
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["..\\src\\index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAG5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAG1D,cAAc,SAAS,CAAC;AAGxB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["..\\src\\index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAG5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAG1D,cAAc,SAAS,CAAC;AAGxB,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ export * from "./protocol/protocol.types.js";
2
2
  export * from "./protocol/service-protocol.js";
3
3
  export * from "./service-types/orm-service.types.js";
4
4
  export * from "./service-types/auto-update-service.types.js";
5
+ export * from "./service-types/smtp-client-service.types.js";
5
6
  export * from "./types.js";
6
7
  export * from "./define-event.js";
7
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts"],
4
- "mappings": "AACA,cAAc;AACd,cAAc;AAGd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;",
4
+ "mappings": "AACA,cAAc;AACd,cAAc;AAGd,cAAc;AACd,cAAc;AACd,cAAc;AAGd,cAAc;AAGd,cAAc;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,38 @@
1
+ export interface SmtpClientSendAttachment {
2
+ filename: string;
3
+ content?: string | Uint8Array;
4
+ path?: any;
5
+ contentType?: string;
6
+ }
7
+ export interface SmtpClientSendByDefaultOption {
8
+ to: string;
9
+ cc?: string;
10
+ bcc?: string;
11
+ subject: string;
12
+ html: string;
13
+ attachments?: SmtpClientSendAttachment[];
14
+ }
15
+ export interface SmtpClientSendOption {
16
+ host: string;
17
+ port?: number;
18
+ secure?: boolean;
19
+ user?: string;
20
+ pass?: string;
21
+ from: string;
22
+ to: string;
23
+ cc?: string;
24
+ bcc?: string;
25
+ subject: string;
26
+ html: string;
27
+ attachments?: SmtpClientSendAttachment[];
28
+ }
29
+ export interface SmtpClientDefaultConfig {
30
+ senderName: string;
31
+ senderEmail?: string;
32
+ user?: string;
33
+ pass?: string;
34
+ host: string;
35
+ port?: number;
36
+ secure?: boolean;
37
+ }
38
+ //# sourceMappingURL=smtp-client-service.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smtp-client-service.types.d.ts","sourceRoot":"","sources":["..\\..\\src\\service-types\\smtp-client-service.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC9B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAC1C;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=smtp-client-service.types.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "mappings": "",
5
+ "names": []
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/service-common",
3
- "version": "13.0.70",
3
+ "version": "13.0.72",
4
4
  "description": "Simplysm package - Service module (common)",
5
5
  "author": "simplysm",
6
6
  "license": "Apache-2.0",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@simplysm/core-common": "13.0.70",
23
- "@simplysm/orm-common": "13.0.70"
22
+ "@simplysm/core-common": "13.0.72",
23
+ "@simplysm/orm-common": "13.0.72"
24
24
  }
25
25
  }
package/src/index.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./protocol/service-protocol";
5
5
  // Service Types
6
6
  export * from "./service-types/orm-service.types";
7
7
  export * from "./service-types/auto-update-service.types";
8
+ export * from "./service-types/smtp-client-service.types";
8
9
 
9
10
  // Types
10
11
  export * from "./types";
@@ -0,0 +1,41 @@
1
+ export interface SmtpClientSendAttachment {
2
+ filename: string;
3
+ content?: string | Uint8Array;
4
+ path?: any;
5
+ contentType?: string;
6
+ }
7
+
8
+ export interface SmtpClientSendByDefaultOption {
9
+ to: string;
10
+ cc?: string;
11
+ bcc?: string;
12
+ subject: string;
13
+ html: string;
14
+ attachments?: SmtpClientSendAttachment[];
15
+ }
16
+
17
+ export interface SmtpClientSendOption {
18
+ host: string;
19
+ port?: number;
20
+ secure?: boolean;
21
+ user?: string;
22
+ pass?: string;
23
+
24
+ from: string;
25
+ to: string;
26
+ cc?: string;
27
+ bcc?: string;
28
+ subject: string;
29
+ html: string;
30
+ attachments?: SmtpClientSendAttachment[];
31
+ }
32
+
33
+ export interface SmtpClientDefaultConfig {
34
+ senderName: string;
35
+ senderEmail?: string;
36
+ user?: string;
37
+ pass?: string;
38
+ host: string;
39
+ port?: number;
40
+ secure?: boolean;
41
+ }