Skip to content

Commit d01c6db

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 4288583 + fd798ea commit d01c6db

37 files changed

+605
-585
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
1616
- Add & remove watermarks and protection.
1717
- Read & write access to Document Object Model.
1818

19+
## Enhancements in Version 23.6
20+
21+
- Fix XMLHttpRequest in web applications.
22+
23+
1924
## Enhancements in Version 23.5
2025

2126
- Added InsertSection method.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "asposewordscloud",
3-
"version": "23.5.0",
3+
"version": "23.6.0",
44
"description": "Aspose.Words Cloud SDK for Node.js",
55
"homepage": "https://products.aspose.cloud/words/cloud",
66
"author": {

src/internal/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class OAuth implements IAuthentication {
7676
const requestOptions: request.Options = {
7777
method: "POST",
7878
json: true,
79-
uri: configuration.baseUrl + "/connect/token",
79+
uri: configuration.baseUrl + "/v4.0/words/connect/token",
8080
form: {
8181
grant_type: "client_credentials",
8282
client_id: configuration.ClientId,

src/internal/requestHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async function invokeApiMethodInternal(requestOptions: request.OptionsWithUri, c
131131
requestOptions.timeout = 1000 * confguration.timeout;
132132

133133
requestOptions.headers["x-aspose-client"] = "nodejs sdk";
134-
requestOptions.headers["x-aspose-client-version"] = "23.5";
134+
requestOptions.headers["x-aspose-client-version"] = "23.6";
135135
requestOptions.encoding = null;
136136

137137
requestOptions.uri = encodeURI(requestOptions.uri.toString());

src/model/comment.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -46,39 +46,39 @@ export class Comment extends CommentLink {
4646
*/
4747
public static attributeTypeMap: Array<AttributeInfo> = [
4848
{
49-
name: "author",
50-
baseName: "Author",
51-
type: "string",
49+
name: "rangeStart",
50+
baseName: "RangeStart",
51+
type: "DocumentPosition",
5252
},
5353
{
54-
name: "content",
55-
baseName: "Content",
56-
type: "StoryChildNodes",
54+
name: "rangeEnd",
55+
baseName: "RangeEnd",
56+
type: "DocumentPosition",
5757
},
5858
{
59-
name: "dateTime",
60-
baseName: "DateTime",
61-
type: "Date",
59+
name: "author",
60+
baseName: "Author",
61+
type: "string",
6262
},
6363
{
6464
name: "initial",
6565
baseName: "Initial",
6666
type: "string",
6767
},
6868
{
69-
name: "rangeEnd",
70-
baseName: "RangeEnd",
71-
type: "DocumentPosition",
72-
},
73-
{
74-
name: "rangeStart",
75-
baseName: "RangeStart",
76-
type: "DocumentPosition",
69+
name: "dateTime",
70+
baseName: "DateTime",
71+
type: "Date",
7772
},
7873
{
7974
name: "text",
8075
baseName: "Text",
8176
type: "string",
77+
},
78+
{
79+
name: "content",
80+
baseName: "Content",
81+
type: "StoryChildNodes",
8282
}
8383
];
8484

@@ -90,39 +90,39 @@ export class Comment extends CommentLink {
9090
}
9191

9292
/**
93-
* Gets or sets the author name for a comment.
93+
* Gets or sets the link to comment range start node.
9494
*/
95-
public author: string;
95+
public rangeStart: DocumentPosition;
9696

9797
/**
98-
* Gets or sets the content of the comment.
98+
* Gets or sets the link to comment range end node.
9999
*/
100-
public content: StoryChildNodes;
100+
public rangeEnd: DocumentPosition;
101101

102102
/**
103-
* Gets or sets the date and time that the comment was made.
103+
* Gets or sets the author name for a comment.
104104
*/
105-
public dateTime: Date;
105+
public author: string;
106106

107107
/**
108108
* Gets or sets the initials of the user associated with a specific comment.
109109
*/
110110
public initial: string;
111111

112112
/**
113-
* Gets or sets the link to comment range end node.
113+
* Gets or sets the date and time that the comment was made.
114114
*/
115-
public rangeEnd: DocumentPosition;
115+
public dateTime: Date;
116116

117117
/**
118-
* Gets or sets the link to comment range start node.
118+
* Gets or sets text of the comment.
119119
*/
120-
public rangeStart: DocumentPosition;
120+
public text: string;
121121

122122
/**
123-
* Gets or sets text of the comment.
123+
* Gets or sets the content of the comment.
124124
*/
125-
public text: string;
125+
public content: StoryChildNodes;
126126

127127
public constructor(init?: Partial< Comment >) {
128128
super(init);

src/model/commentBase.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ export abstract class CommentBase implements ModelInterface {
4141
* Attribute type map
4242
*/
4343
public static attributeTypeMap: Array<AttributeInfo> = [
44+
{
45+
name: "rangeStart",
46+
baseName: "RangeStart",
47+
type: "NewDocumentPosition",
48+
},
49+
{
50+
name: "rangeEnd",
51+
baseName: "RangeEnd",
52+
type: "NewDocumentPosition",
53+
},
4454
{
4555
name: "author",
4656
baseName: "Author",
@@ -56,16 +66,6 @@ export abstract class CommentBase implements ModelInterface {
5666
baseName: "Initial",
5767
type: "string",
5868
},
59-
{
60-
name: "rangeEnd",
61-
baseName: "RangeEnd",
62-
type: "NewDocumentPosition",
63-
},
64-
{
65-
name: "rangeStart",
66-
baseName: "RangeStart",
67-
type: "NewDocumentPosition",
68-
},
6969
{
7070
name: "text",
7171
baseName: "Text",
@@ -81,29 +81,29 @@ export abstract class CommentBase implements ModelInterface {
8181
}
8282

8383
/**
84-
* Gets or sets the author name for a comment.
84+
* Gets or sets the link to comment range start node.
8585
*/
86-
public author: string;
86+
public rangeStart: NewDocumentPosition;
8787

8888
/**
89-
* Gets or sets the date and time that the comment was made.
89+
* Gets or sets the link to comment range end node.
9090
*/
91-
public dateTime: Date;
91+
public rangeEnd: NewDocumentPosition;
9292

9393
/**
94-
* Gets or sets the initials of the user associated with a specific comment.
94+
* Gets or sets the author name for a comment.
9595
*/
96-
public initial: string;
96+
public author: string;
9797

9898
/**
99-
* Gets or sets the link to comment range end node.
99+
* Gets or sets the date and time that the comment was made.
100100
*/
101-
public rangeEnd: NewDocumentPosition;
101+
public dateTime: Date;
102102

103103
/**
104-
* Gets or sets the link to comment range start node.
104+
* Gets or sets the initials of the user associated with a specific comment.
105105
*/
106-
public rangeStart: NewDocumentPosition;
106+
public initial: string;
107107

108108
/**
109109
* Gets or sets text of the comment.

src/model/customXmlPart.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ export class CustomXmlPart extends CustomXmlPartLink {
4242
*/
4343
public static attributeTypeMap: Array<AttributeInfo> = [
4444
{
45-
name: "data",
46-
baseName: "Data",
45+
name: "id",
46+
baseName: "Id",
4747
type: "string",
4848
},
4949
{
50-
name: "id",
51-
baseName: "Id",
50+
name: "data",
51+
baseName: "Data",
5252
type: "string",
5353
}
5454
];
@@ -61,14 +61,14 @@ export class CustomXmlPart extends CustomXmlPartLink {
6161
}
6262

6363
/**
64-
* Gets or sets the custom xml part data.
64+
* Gets or sets the custom xml part id.
6565
*/
66-
public data: string;
66+
public id: string;
6767

6868
/**
69-
* Gets or sets the custom xml part id.
69+
* Gets or sets the custom xml part data.
7070
*/
71-
public id: string;
71+
public data: string;
7272

7373
public constructor(init?: Partial< CustomXmlPart >) {
7474
super(init);

src/model/document.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ export class Document implements ModelInterface {
4343
* Attribute type map
4444
*/
4545
public static attributeTypeMap: Array<AttributeInfo> = [
46+
{
47+
name: "links",
48+
baseName: "Links",
49+
type: "Array<Link>",
50+
},
4651
{
4752
name: "documentProperties",
4853
baseName: "DocumentProperties",
@@ -63,11 +68,6 @@ export class Document implements ModelInterface {
6368
baseName: "IsSigned",
6469
type: "boolean",
6570
},
66-
{
67-
name: "links",
68-
baseName: "Links",
69-
type: "Array<Link>",
70-
},
7171
{
7272
name: "sourceFormat",
7373
baseName: "SourceFormat",
@@ -82,6 +82,11 @@ export class Document implements ModelInterface {
8282
return Document.attributeTypeMap;
8383
}
8484

85+
/**
86+
* Gets or sets the list of links that originate from this document.
87+
*/
88+
public links: Array<Link>;
89+
8590
/**
8691
* Gets or sets the document properties.
8792
*/
@@ -102,11 +107,6 @@ export class Document implements ModelInterface {
102107
*/
103108
public isSigned: boolean;
104109

105-
/**
106-
* Gets or sets the list of links that originate from this document.
107-
*/
108-
public links: Array<Link>;
109-
110110
/**
111111
* Gets or sets the original format of the document.
112112
*/

src/model/documentEntry.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class DocumentEntry extends BaseEntry {
4949
{
5050
name: "importFormatMode",
5151
baseName: "ImportFormatMode",
52-
type: "string",
52+
type: "DocumentEntry.ImportFormatModeEnum",
5353
}
5454
];
5555

@@ -68,7 +68,7 @@ export class DocumentEntry extends BaseEntry {
6868
/**
6969
* Gets or sets the option that controls formatting will be used: appended or destination document. Can be KeepSourceFormatting or UseDestinationStyles.
7070
*/
71-
public importFormatMode: string;
71+
public importFormatMode: DocumentEntry.ImportFormatModeEnum;
7272

7373
public constructor(init?: Partial< DocumentEntry >) {
7474
super(init);
@@ -80,3 +80,17 @@ export class DocumentEntry extends BaseEntry {
8080
}
8181
}
8282

83+
/**
84+
* Enums for DocumentEntry
85+
*/
86+
// tslint:disable:quotemark
87+
// tslint:disable-next-line:no-namespace
88+
export namespace DocumentEntry {
89+
export enum ImportFormatModeEnum {
90+
UseDestinationStyles = 'UseDestinationStyles' as any,
91+
KeepSourceFormatting = 'KeepSourceFormatting' as any,
92+
KeepDifferentStyles = 'KeepDifferentStyles' as any
93+
}
94+
}
95+
// tslint:enable:quotemark
96+

src/model/documentProperty.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ export class DocumentProperty extends LinkElement {
4141
* Attribute type map
4242
*/
4343
public static attributeTypeMap: Array<AttributeInfo> = [
44-
{
45-
name: "builtIn",
46-
baseName: "BuiltIn",
47-
type: "boolean",
48-
},
4944
{
5045
name: "name",
5146
baseName: "Name",
@@ -55,6 +50,11 @@ export class DocumentProperty extends LinkElement {
5550
name: "value",
5651
baseName: "Value",
5752
type: "string",
53+
},
54+
{
55+
name: "builtIn",
56+
baseName: "BuiltIn",
57+
type: "boolean",
5858
}
5959
];
6060

@@ -65,12 +65,6 @@ export class DocumentProperty extends LinkElement {
6565
return super.getAttributeTypeMap().concat(DocumentProperty.attributeTypeMap);
6666
}
6767

68-
/**
69-
* Gets or sets a value indicating whether the property is built-in or not.
70-
* If true the property is built-in, if false the property is custom.
71-
*/
72-
public builtIn: boolean;
73-
7468
/**
7569
* Gets or sets the name of the document property.
7670
*/
@@ -81,6 +75,12 @@ export class DocumentProperty extends LinkElement {
8175
*/
8276
public value: string;
8377

78+
/**
79+
* Gets or sets a value indicating whether the property is built-in or not.
80+
* If true the property is built-in, if false the property is custom.
81+
*/
82+
public builtIn: boolean;
83+
8484
public constructor(init?: Partial< DocumentProperty >) {
8585
super(init);
8686
Object.assign(this, init);

0 commit comments

Comments
 (0)