Skip to content

Commit 554bf6d

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 62a6fa0 + 9077f2a commit 554bf6d

File tree

281 files changed

+3045
-979
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+3045
-979
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ 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.11
20+
21+
- Support of required properties in models.
22+
- Property StyleName marked as required for InsertStyle operation.
23+
- Property StyleName marked as required for CopyStyle operation.
24+
- Property StyleName marked as required for ApplyStyleToDocumentElement operation.
25+
- Properties SdtType and Level marked as required for InsertStructuredDocumentTag operation.
26+
- Property Text marked as required for InsertParagraphoperation.
27+
- Property Value marked as required for CreateOrUpdateDocumentProperty operation.
28+
- Property NewValue marked as required for ReplaceText operation.
29+
- Property Text marked as required for ReplaceWithText operation.
30+
31+
1932
## Enhancements in Version 23.9
2033

2134
- Support for class inheritance in responses from the server.

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.10.0",
3+
"version": "23.11.0",
44
"description": "Aspose.Words Cloud SDK for Node.js",
55
"homepage": "https://products.aspose.cloud/words/cloud",
66
"author": {

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.10";
134+
requestOptions.headers["x-aspose-client-version"] = "23.11";
135135
requestOptions.encoding = null;
136136

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

src/model/apiError.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,12 @@ export class ApiError implements ModelInterface {
104104

105105
public collectFilesContent(_resultFilesContent: Array<any>) {
106106
}
107+
108+
public validate() {
109+
110+
this.innerError?.validate();
111+
112+
113+
}
107114
}
108115

src/model/availableFontsResponse.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,38 @@ export class AvailableFontsResponse extends WordsResponse {
8989

9090
public collectFilesContent(_resultFilesContent: Array<any>) {
9191
}
92+
93+
public validate() {
94+
super.validate();
95+
96+
if (this.additionalFonts !== null && this.additionalFonts !== undefined)
97+
{
98+
for (let elementAdditionalFonts of this.additionalFonts)
99+
{
100+
elementAdditionalFonts?.validate();
101+
}
102+
}
103+
104+
105+
106+
if (this.customFonts !== null && this.customFonts !== undefined)
107+
{
108+
for (let elementCustomFonts of this.customFonts)
109+
{
110+
elementCustomFonts?.validate();
111+
}
112+
}
113+
114+
115+
116+
if (this.systemFonts !== null && this.systemFonts !== undefined)
117+
{
118+
for (let elementSystemFonts of this.systemFonts)
119+
{
120+
elementSystemFonts?.validate();
121+
}
122+
}
123+
124+
}
92125
}
93126

src/model/baseEntry.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,15 @@ export abstract class BaseEntry implements ModelInterface {
7171
}
7272

7373
}
74+
75+
public validate() {
76+
if (this.fileReference === null || this.fileReference === undefined)
77+
{
78+
throw new Error('Property FileReference in BaseEntry is required.');
79+
}
80+
81+
this.fileReference?.validate();
82+
83+
}
7484
}
7585

src/model/baseEntryList.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,8 @@ export abstract class BaseEntryList implements ModelInterface {
5555

5656
public collectFilesContent(_resultFilesContent: Array<any>) {
5757
}
58+
59+
public validate() {
60+
}
5861
}
5962

src/model/bmpSaveOptionsData.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,9 @@ export class BmpSaveOptionsData extends ImageSaveOptionsData {
6060

6161
public collectFilesContent(_resultFilesContent: Array<any>) {
6262
}
63+
64+
public validate() {
65+
super.validate();
66+
}
6367
}
6468

src/model/bookmark.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,9 @@ export class Bookmark extends LinkElement {
7777

7878
public collectFilesContent(_resultFilesContent: Array<any>) {
7979
}
80+
81+
public validate() {
82+
super.validate();
83+
}
8084
}
8185

src/model/bookmarkData.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,8 @@ export class BookmarkData implements ModelInterface {
7474

7575
public collectFilesContent(_resultFilesContent: Array<any>) {
7676
}
77+
78+
public validate() {
79+
}
7780
}
7881

0 commit comments

Comments
 (0)