Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
dynabic-billing-team committed Nov 13, 2023
2 parents 62a6fa0 + 9077f2a commit 554bf6d
Show file tree
Hide file tree
Showing 281 changed files with 3,045 additions and 979 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/w
- Add & remove watermarks and protection.
- Read & write access to Document Object Model.

## Enhancements in Version 23.11

- Support of required properties in models.
- Property StyleName marked as required for InsertStyle operation.
- Property StyleName marked as required for CopyStyle operation.
- Property StyleName marked as required for ApplyStyleToDocumentElement operation.
- Properties SdtType and Level marked as required for InsertStructuredDocumentTag operation.
- Property Text marked as required for InsertParagraphoperation.
- Property Value marked as required for CreateOrUpdateDocumentProperty operation.
- Property NewValue marked as required for ReplaceText operation.
- Property Text marked as required for ReplaceWithText operation.


## Enhancements in Version 23.9

- Support for class inheritance in responses from the server.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "asposewordscloud",
"version": "23.10.0",
"version": "23.11.0",
"description": "Aspose.Words Cloud SDK for Node.js",
"homepage": "https://products.aspose.cloud/words/cloud",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/internal/requestHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async function invokeApiMethodInternal(requestOptions: request.OptionsWithUri, c
requestOptions.timeout = 1000 * confguration.timeout;

requestOptions.headers["x-aspose-client"] = "nodejs sdk";
requestOptions.headers["x-aspose-client-version"] = "23.10";
requestOptions.headers["x-aspose-client-version"] = "23.11";
requestOptions.encoding = null;

requestOptions.uri = encodeURI(requestOptions.uri.toString());
Expand Down
7 changes: 7 additions & 0 deletions src/model/apiError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,12 @@ export class ApiError implements ModelInterface {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {

this.innerError?.validate();


}
}

33 changes: 33 additions & 0 deletions src/model/availableFontsResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,38 @@ export class AvailableFontsResponse extends WordsResponse {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

if (this.additionalFonts !== null && this.additionalFonts !== undefined)
{
for (let elementAdditionalFonts of this.additionalFonts)
{
elementAdditionalFonts?.validate();
}
}



if (this.customFonts !== null && this.customFonts !== undefined)
{
for (let elementCustomFonts of this.customFonts)
{
elementCustomFonts?.validate();
}
}



if (this.systemFonts !== null && this.systemFonts !== undefined)
{
for (let elementSystemFonts of this.systemFonts)
{
elementSystemFonts?.validate();
}
}

}
}

10 changes: 10 additions & 0 deletions src/model/baseEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,15 @@ export abstract class BaseEntry implements ModelInterface {
}

}

public validate() {
if (this.fileReference === null || this.fileReference === undefined)
{
throw new Error('Property FileReference in BaseEntry is required.');
}

this.fileReference?.validate();

}
}

3 changes: 3 additions & 0 deletions src/model/baseEntryList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@ export abstract class BaseEntryList implements ModelInterface {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
}
}

4 changes: 4 additions & 0 deletions src/model/bmpSaveOptionsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@ export class BmpSaveOptionsData extends ImageSaveOptionsData {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();
}
}

4 changes: 4 additions & 0 deletions src/model/bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,9 @@ export class Bookmark extends LinkElement {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();
}
}

3 changes: 3 additions & 0 deletions src/model/bookmarkData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@ export class BookmarkData implements ModelInterface {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
}
}

11 changes: 11 additions & 0 deletions src/model/bookmarkInsert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,16 @@ export class BookmarkInsert extends BookmarkData {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

this.startRange?.validate();



this.endRange?.validate();

}
}

7 changes: 7 additions & 0 deletions src/model/bookmarkResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@ export class BookmarkResponse extends WordsResponse {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

this.bookmark?.validate();

}
}

13 changes: 13 additions & 0 deletions src/model/bookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,18 @@ export class Bookmarks extends LinkElement {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

if (this.bookmarkList !== null && this.bookmarkList !== undefined)
{
for (let elementBookmarkList of this.bookmarkList)
{
elementBookmarkList?.validate();
}
}

}
}

7 changes: 7 additions & 0 deletions src/model/bookmarksOutlineLevelData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,12 @@ export class BookmarksOutlineLevelData implements ModelInterface {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
if (this.bookmarksOutlineLevel === null || this.bookmarksOutlineLevel === undefined)
{
throw new Error('Property BookmarksOutlineLevel in BookmarksOutlineLevelData is required.');
}
}
}

7 changes: 7 additions & 0 deletions src/model/bookmarksResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@ export class BookmarksResponse extends WordsResponse {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

this.bookmarks?.validate();

}
}

11 changes: 11 additions & 0 deletions src/model/border.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@ export class Border extends LinkElement {
}

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

this.color?.validate();





}
}

Expand Down
7 changes: 7 additions & 0 deletions src/model/borderResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@ export class BorderResponse extends WordsResponse {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

this.border?.validate();

}
}

13 changes: 13 additions & 0 deletions src/model/bordersCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,18 @@ export class BordersCollection extends LinkElement {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

if (this.list !== null && this.list !== undefined)
{
for (let elementList of this.list)
{
elementList?.validate();
}
}

}
}

7 changes: 7 additions & 0 deletions src/model/bordersResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@ export class BordersResponse extends WordsResponse {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

this.borders?.validate();

}
}

17 changes: 17 additions & 0 deletions src/model/classificationResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,22 @@ export class ClassificationResponse extends WordsResponse {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();
if (this.bestClassProbability === null || this.bestClassProbability === undefined)
{
throw new Error('Property BestClassProbability in ClassificationResponse is required.');
}

if (this.bestResults !== null && this.bestResults !== undefined)
{
for (let elementBestResults of this.bestResults)
{
elementBestResults?.validate();
}
}

}
}

7 changes: 7 additions & 0 deletions src/model/classificationResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,12 @@ export class ClassificationResult implements ModelInterface {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
if (this.classProbability === null || this.classProbability === undefined)
{
throw new Error('Property ClassProbability in ClassificationResult is required.');
}
}
}

19 changes: 19 additions & 0 deletions src/model/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,24 @@ export class Comment extends CommentLink {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();

this.rangeStart?.validate();



this.rangeEnd?.validate();







this.content?.validate();

}
}

34 changes: 34 additions & 0 deletions src/model/commentBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,40 @@ export abstract class CommentBase implements ModelInterface {
}

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
if (this.rangeStart === null || this.rangeStart === undefined)
{
throw new Error('Property RangeStart in CommentBase is required.');
}
if (this.rangeEnd === null || this.rangeEnd === undefined)
{
throw new Error('Property RangeEnd in CommentBase is required.');
}
if (this.author === null || this.author === undefined)
{
throw new Error('Property Author in CommentBase is required.');
}
if (this.initial === null || this.initial === undefined)
{
throw new Error('Property Initial in CommentBase is required.');
}
if (this.text === null || this.text === undefined)
{
throw new Error('Property Text in CommentBase is required.');
}

this.rangeStart?.validate();



this.rangeEnd?.validate();





}
}

4 changes: 4 additions & 0 deletions src/model/commentInsert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ export class CommentInsert extends CommentBase {

public collectFilesContent(_resultFilesContent: Array<any>) {
}

public validate() {
super.validate();
}
}

Loading

0 comments on commit 554bf6d

Please sign in to comment.