Skip to content

Commit 6927cf0

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents b31cc9f + 5e0de0c commit 6927cf0

27 files changed

+97
-121
lines changed

README.md

Lines changed: 42 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,74 @@
1-
# Aspose.Email Cloud SDK for Node.Js
1+
# Manage Emails in Cloud via Node.Js/Typescript REST SDK
22

33
[![npm](https://img.shields.io/npm/v/@asposecloud/aspose-email-cloud)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [![License](https://img.shields.io/github/license/aspose-email-cloud/aspose-email-cloud-node)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [![node](https://img.shields.io/node/v/@asposecloud/aspose-email-cloud)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) [![types](https://img.shields.io/npm/types/@asposecloud/aspose-email-cloud)](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud) ![tests](https://github.com/aspose-email-cloud/aspose-email-cloud-node/workflows/tests/badge.svg)
44

5-
This repository contains Aspose.Email Cloud SDK for Node.Js source code. This SDK allows you to work with Aspose.Email Cloud REST APIs in your Node.Js applications quickly and easily, with zero initial cost.
5+
[Aspose.Email Cloud SDK for Node.Js/Typescript](https://products.aspose.cloud/email/nodejs) is a REST API SDK for creating email applications that work with standard email file formats such as Outlook MSG, EML, iCalendar files and VCard.
66

7-
[Aspose.Email Cloud home](https://products.aspose.cloud/email/family "Aspose.Email Cloud")
8-
[API Reference](https://apireference.aspose.cloud/email/)
7+
This SDK allows you to work with Aspose.Email Cloud REST APIs in your Node.Js applications quickly and easily, with zero initial cost.
98

10-
# Key features
9+
[Aspose.Email Cloud home](https://products.aspose.cloud/email/family)
10+
[API Reference](https://apireference.aspose.cloud/email/)
11+
12+
# Cloud Email Processing Features
1113
Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK:
12-
- Lets developers manipulate different emails’ formats such as Outlook MSG, EML, VCard, and iCalendar files
13-
- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files
14+
- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files.
1415
- Supports AI functions:
15-
- The Business card recognition
16-
- The Name API for parsing and handling personal names
16+
- The Business card recognition.
17+
- The Name API for parsing and handling personal names.
1718
- Has a built-in email client. This client provides:
18-
- Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav
19-
- Virtual multi-account
20-
- Message threads (POP3 accounts are also supported)
21-
- Email configuration discovery
22-
- Disposable email address detection
23-
24-
## New features in version 20.7
25-
- New MAPI message files API with models:
26-
- `MapiMessageDto` - represents the Microsoft Outlook message.
27-
- `MapiCalendarDto` - represents the Microsoft Outlook calendar object.
28-
- `MapiContactDto` - represents the Microsoft Outlook contact information.
29-
- Improved Recurrence pattern support for CalendarDto.
30-
31-
See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.7+Release+Notes)
19+
- Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav.
20+
- Virtual multi-account.
21+
- Message threads (POP3 accounts are also supported).
22+
- Email configuration discovery.
23+
- Disposable email address detection.
24+
25+
## New features in version 20.9
26+
27+
Aspose.Email Cloud SDK 20.9.0 is based on a new v4.0 REST API.
28+
29+
- All SDK functions are divided into groups (Email, Calendar, Contact, Client, Ai, Mapi, etc.).
30+
- Unified file API provided for supported file types (Save, Get, Convert, AsFile, FromFile, AsMapi/AsDto).
31+
- HierarchicalObject based API is removed.
32+
- All models are stored in one folder/namespace.
33+
- The request models are simplified.
34+
35+
See [Release notes](https://docs.aspose.cloud/display/emailcloud/Aspose.Email+Cloud+20.9+Release+Notes).
36+
3237
## How to use the SDK?
33-
The complete source code is available in the GIT repository.
38+
The complete source code is available in the [GIT repository](https://github.com/aspose-email-cloud/aspose-email-cloud-node/tree/master/src).
3439

35-
Use [SDK tutorials](https://docs.aspose.cloud/display/emailcloud/SDK+Tutorials):
36-
- [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup) - installation, account setup, first API calls
37-
- [Business Cards Recognition API](https://docs.aspose.cloud/display/emailcloud/Business+Cards+Recognition+API) - convert captured business cards and name card images, into a vCard format
38-
- [Working with Name API](https://docs.aspose.cloud/display/emailcloud/Working+with+Name+API) - format, genderize, compare, parse, autocomplete names
39-
- [Email Message Files](https://docs.aspose.cloud/display/emailcloud/Email+Message+Files) - Convert EML to MSG and back, edit EML files, etc.
40-
- [Quick Start With iCalendar API](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+iCalendar+API) - Crate and edit iCalendar files
41-
- [Quick Start With VCard API](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+VCard+API) - Create and edit VCard files, business card recognition
42-
- [Quick Start With Email Client](https://docs.aspose.cloud/display/emailcloud/Quick+Start+With+Email+Client) - Setup builtin email client, search/fetch/send/move/delete messages
43-
- [Email Client Threads](https://docs.aspose.cloud/display/emailcloud/Email+Client+Threads) - Fetch/Move/Delete email message threads using builtin email client
44-
- [File converters](https://docs.aspose.cloud/display/emailcloud/Convert+Email%2C+Calendar+and+Contact+Files)
40+
Use [SDK tutorials](https://docs.aspose.cloud/display/emailcloud/SDK+Tutorials).
4541

46-
SDK reference documentation is available in [this README](doc/README.md)
42+
SDK reference documentation is available in [this README](https://github.com/aspose-email-cloud/aspose-email-cloud-node/blob/master/doc/README.md).
4743

4844
### Prerequisites
4945
To use this SDK, you need an App SID and an App Key; they can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) (it requires free registration in Aspose Cloud for this).
5046

5147
### Installation
52-
You can use it directly in your project via the source code or get a [npm package](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud)
48+
You can use it directly in your project via the source code or get a [npm package](https://www.npmjs.com/package/@asposecloud/aspose-email-cloud).
5349
From the command line:
5450

55-
npm install @asposecloud/aspose-email-cloud --save
51+
npm install @asposecloud/aspose-email-cloud --save
5652

57-
See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup)
53+
See more details about SDK installation in this tutorial: [SDK setup](https://docs.aspose.cloud/display/emailcloud/SDK+setup).
5854

5955
### Usage examples
60-
To use the API, you should create an EmailApi object:
56+
To use the API, you should create an EmailCloud object:
6157
```typescript
6258
var appKey = "Your App Key";
6359
var appSid = "Your App SID";
64-
var api = new EmailApi(appSid, appKey);
60+
var api = new EmailCloud(appSid, appKey);
6561
```
6662

6763
#### Business cards recognition API
6864

69-
Use `AiBcrParseModel` method to parse business card image to VCard DTO:
65+
Use `AiBcrApi.parse` method to parse business card image to VCard DTO:
7066

7167
```typescript
72-
var imageData = fs.readFileSync("/tmp/alex.png").toString('base64');
73-
var result = await api.aiBcrParseModel(new requests.AiBcrParseModelRequest(
74-
new models.AiBcrBase64Rq(
75-
undefined, [new models.AiBcrBase64Image(true, imageData)])));
76-
var contact = result.body.value[0];
68+
var imageData = fs.readFileSync("path/to/image/to/parse.png");
69+
var result = await api.ai.bcr.parse(new AiBcrParseRequest(
70+
imageData, undefined, undefined, true));
71+
var contact = result.value[0];
7772
```
7873

79-
See more details [here](https://docs.aspose.cloud/display/emailcloud/Parse+Image+To+VCard+File) and [here](https://docs.aspose.cloud/display/emailcloud/Business+Cards+Recognition+API)
80-
81-
# Licensing
82-
All Aspose.Email Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE).
83-
84-
# Resources
85-
+ [**SDK reference documentation**](doc/README.md)
86-
+ [**Website**](https://www.aspose.cloud)
87-
+ [**Product Home**](https://products.aspose.cloud/Email/cloud)
88-
+ [**Documentation**](https://docs.aspose.cloud/display/Emailcloud/Home)
89-
+ [**API Reference**](https://apireference.aspose.cloud/email/)
90-
+ [**Free Support Forum**](https://forum.aspose.cloud/c/email)
91-
+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
92-
+ [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-email-cloud/)
93-
+ [**Git repository: Aspose.Email Cloud SDK for .Net**](https://github.com/aspose-email-cloud/aspose-email-cloud-dotnet)
94-
+ [**Git repository: Aspose.Email Cloud SDK for Ruby**](https://github.com/aspose-email-cloud/aspose-email-cloud-ruby)
95-
+ [**Git repository: Aspose.Email Cloud SDK for Python**](https://github.com/aspose-email-cloud/aspose-email-cloud-python)
96-
+ [**Git repository: Aspose.Email Cloud SDK for PHP**](https://github.com/aspose-email-cloud/aspose-email-cloud-php)
97-
+ [**Git repository: Aspose.Email Cloud SDK for Typescript**](https://github.com/aspose-email-cloud/aspose-email-cloud-node)
98-
+ [**Git repository: Aspose.Email Cloud SDK for Java**](https://github.com/aspose-email-cloud/aspose-email-cloud-java)
74+
[Product Page](https://products.aspose.cloud/email/nodejs) | [Documentation](https://docs.aspose.cloud/display/Emailcloud/Home) | [Demo](https://products.aspose.app/email/family) | [API Reference](https://apireference.aspose.cloud/email/) | [Blog](https://blog.aspose.cloud/category/email/) | [Free support](https://forum.aspose.cloud/c/email) | [Free trial](https://dashboard.aspose.cloud/#/apps)

doc/ClientMessageApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Name | Type | Description | Notes
4646
**file** | **byte[]**| Message file to append. |
4747
**storage** | **string**| Storage name where account file located. | [optional]
4848
**accountStorageFolder** | **string**| Folder in storage where account file located. | [optional]
49-
**format** | **string**| Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [optional] [default to 0]
49+
**format** | **string**| Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0]
5050
**folder** | **string**| Path to folder on email server to append message to. | [optional]
5151
**markAsSent** | **boolean**| Determines that appended message should be market as sent or not. | [optional] [default to true]
5252

@@ -103,7 +103,7 @@ Name | Type | Description | Notes
103103
**storage** | **string**| Storage name where account file located. | [optional]
104104
**accountStorageFolder** | **string**| Folder in storage where account file located. | [optional]
105105
**type** | **string**| MailMessageBase type. Using this property you can fetch message in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 | [optional] [default to 0]
106-
**format** | **string**| Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [optional] [default to 0]
106+
**format** | **string**| Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0]
107107
108108
### Return type
109109
@@ -137,7 +137,7 @@ Name | Type | Description | Notes
137137
**folder** | **string**| Account folder to fetch from (should be specified for some protocols such as IMAP) | [optional]
138138
**storage** | **string**| Storage name where account file located. | [optional]
139139
**accountStorageFolder** | **string**| Folder in storage where account file located. | [optional]
140-
**format** | **string**| Fetched message file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [optional] [default to 0]
140+
**format** | **string**| Fetched message file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0]
141141
142142
### Return type
143143
@@ -176,7 +176,7 @@ Name | Type | Description | Notes
176176
**accountStorageFolder** | **string**| Folder in storage where account file located | [optional]
177177
**recursive** | **boolean**| Specifies that should message be searched in subfolders recursively | [optional] [default to false]
178178
**type** | **string**| MailMessageBase type. Using this property you can get messages in different formats (as EmailDto, MapiMessageDto or a file represented as Base64 string). Enum, available values: Dto, Mapi, Base64 | [optional] [default to 0]
179-
**format** | **string**| Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [optional] [default to 0]
179+
**format** | **string**| Base64 data format. Used only if type is set to Base64. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0]
180180
181181
### Return type
182182
@@ -246,7 +246,7 @@ Name | Type | Description | Notes
246246
**file** | **byte[]**| File to send |
247247
**storage** | **string**| Storage name where account file located. | [optional]
248248
**accountStorageFolder** | **string**| Folder in storage where account file located. | [optional]
249-
**format** | **string**| Email file format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [optional] [default to 0]
249+
**format** | **string**| Email file format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [optional] [default to 0]
250250
251251
### Return type
252252

doc/EmailApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ new EmailConvert(
5757

5858
Name | Type | Description | Notes
5959
---- | ---- | ----------- | -----
60-
**fromFormat** | **string**| File format to convert to Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
61-
**toFormat** | **string**| File format to convert from Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
60+
**fromFormat** | **string**| File format to convert to Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
61+
**toFormat** | **string**| File format to convert from Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
6262
**file** | **byte[]**| File to convert |
6363

6464
### Return type
@@ -84,7 +84,7 @@ new EmailFromFile(
8484

8585
Name | Type | Description | Notes
8686
---- | ---- | ----------- | -----
87-
**format** | **string**| Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
87+
**format** | **string**| Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
8888
**file** | **byte[]**| File to convert |
8989

9090
### Return type
@@ -112,7 +112,7 @@ new EmailGet(
112112

113113
Name | Type | Description | Notes
114114
---- | ---- | ----------- | -----
115-
**format** | **string**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
115+
**format** | **string**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
116116
**fileName** | **string**| Email document file name. |
117117
**folder** | **string**| Path to folder in storage. | [optional]
118118
**storage** | **string**| Storage name. | [optional]
@@ -143,7 +143,7 @@ new EmailGetAsFile(
143143
Name | Type | Description | Notes
144144
---- | ---- | ----------- | -----
145145
**fileName** | **string**| Email document file name |
146-
**format** | **string**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
146+
**format** | **string**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
147147
**storage** | **string**| Storage name | [optional]
148148
**folder** | **string**| Path to folder in storage | [optional]
149149

@@ -173,7 +173,7 @@ new EmailGetList(
173173

174174
Name | Type | Description | Notes
175175
---- | ---- | ----------- | -----
176-
**format** | **string**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
176+
**format** | **string**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
177177
**folder** | **string**| Path to folder in storage. | [optional]
178178
**storage** | **string**| Storage name. | [optional]
179179
**itemsPerPage** | **number**| Count of items on page. | [optional] [default to 10]

doc/EmailAsFileRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [default to undefined]
6+
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [default to undefined]
77
**value** | [**EmailDto**](EmailDto.md) | Email model. | [default to undefined]
88

99

doc/EmailSaveRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [default to undefined]
6+
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [default to undefined]
77

88
Parent class: [StorageModelOfEmailDto](StorageModelOfEmailDto.md)
99

doc/MailMessageBase64.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**valueBase64** | **string** | Email message file data encoded to Base64 string. | [default to undefined]
7-
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [default to undefined]
7+
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [default to undefined]
88

99
Parent class: [MailMessageBase](MailMessageBase.md)
1010

doc/MapiMessageApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ new MapiMessageFromFile(
5656

5757
Name | Type | Description | Notes
5858
---- | ---- | ----------- | -----
59-
**format** | **string**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
59+
**format** | **string**| File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
6060
**file** | **byte[]**| File to convert |
6161

6262
### Return type
@@ -84,7 +84,7 @@ new MapiMessageGet(
8484

8585
Name | Type | Description | Notes
8686
---- | ---- | ----------- | -----
87-
**format** | **string**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef |
87+
**format** | **string**| Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft |
8888
**fileName** | **string**| Email document file name. |
8989
**folder** | **string**| Path to folder in storage. | [optional]
9090
**storage** | **string**| Storage name. | [optional]

doc/MapiMessageAsFileRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [default to undefined]
6+
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [default to undefined]
77
**value** | [**MapiMessageDto**](MapiMessageDto.md) | MAPI message model. | [default to undefined]
88

99

doc/MapiMessageSaveRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef | [default to undefined]
6+
**format** | **string** | Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft | [default to undefined]
77

88
Parent class: [StorageModelOfMapiMessageDto](StorageModelOfMapiMessageDto.md)
99

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@
5656
"typescript": "^3.7.2",
5757
"uuid": "^3.3.3"
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)