Skip to content

Commit 0f114ac

Browse files
SDK regenerated by CI server [ci skip]
1 parent 73ffa24 commit 0f114ac

13 files changed

+319
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
.pub/
3131
build/
3232
**/servercreds.json
33-
Settings/**
3433
testReport.json
3534
testReport.xml
3635

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [24.4.0] - Aspose Words Cloud for Dart 24.4 Release Notes
2+
3+
- Added the 'MergeWithNext' method to merge a section with the next one.
4+
5+
16
## [24.3.0] - Aspose Words Cloud for Dart 24.3 Release Notes
27

38
- Added support for 'RemoveEmptyCells' option for the 'Cleanup' parameter in the insert 'MailMerge' API method.

lib/aspose_words_cloud.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,8 @@ export 'src/requests/insert_watermark_text_online_request.dart';
565565
export 'src/requests/insert_watermark_text_request.dart';
566566
export 'src/requests/link_header_footers_to_previous_request.dart';
567567
export 'src/requests/load_web_document_request.dart';
568+
export 'src/requests/merge_with_next_online_request.dart';
569+
export 'src/requests/merge_with_next_request.dart';
568570
export 'src/requests/move_file_request.dart';
569571
export 'src/requests/move_folder_request.dart';
570572
export 'src/requests/optimize_document_online_request.dart';

lib/src/models/structured_document_tag.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class StructuredDocumentTag extends StructuredDocumentTagBase {
8282

8383
if (json.containsKey('Appearance')) {
8484
switch (json['Appearance'] as String) {
85-
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
8685
case 'BoundingBox': appearance = StructuredDocumentTagBase_AppearanceEnum.boundingBox; break;
86+
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
8787
case 'Tags': appearance = StructuredDocumentTagBase_AppearanceEnum.tags; break;
8888
case 'Hidden': appearance = StructuredDocumentTagBase_AppearanceEnum.hidden; break;
8989
default: appearance = null; break;

lib/src/models/structured_document_tag_base.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ abstract class StructuredDocumentTagBase extends NodeLink {
254254

255255
if (json.containsKey('Appearance')) {
256256
switch (json['Appearance'] as String) {
257-
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
258257
case 'BoundingBox': appearance = StructuredDocumentTagBase_AppearanceEnum.boundingBox; break;
258+
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
259259
case 'Tags': appearance = StructuredDocumentTagBase_AppearanceEnum.tags; break;
260260
case 'Hidden': appearance = StructuredDocumentTagBase_AppearanceEnum.hidden; break;
261261
default: appearance = null; break;
@@ -410,8 +410,8 @@ abstract class StructuredDocumentTagBase extends NodeLink {
410410

411411
if (appearance != null) {
412412
switch (appearance!) {
413-
case StructuredDocumentTagBase_AppearanceEnum.defaultValue: _result['Appearance'] = 'Default'; break;
414413
case StructuredDocumentTagBase_AppearanceEnum.boundingBox: _result['Appearance'] = 'BoundingBox'; break;
414+
case StructuredDocumentTagBase_AppearanceEnum.defaultValue: _result['Appearance'] = 'Default'; break;
415415
case StructuredDocumentTagBase_AppearanceEnum.tags: _result['Appearance'] = 'Tags'; break;
416416
case StructuredDocumentTagBase_AppearanceEnum.hidden: _result['Appearance'] = 'Hidden'; break;
417417
default: break;
@@ -562,8 +562,8 @@ abstract class StructuredDocumentTagBase extends NodeLink {
562562
/// Gets or sets the appearance of a structured document tag.
563563
enum StructuredDocumentTagBase_AppearanceEnum
564564
{
565-
defaultValue,
566565
boundingBox,
566+
defaultValue,
567567
tags,
568568
hidden
569569
}

lib/src/models/structured_document_tag_insert.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class StructuredDocumentTagInsert extends StructuredDocumentTagBase {
8989

9090
if (json.containsKey('Appearance')) {
9191
switch (json['Appearance'] as String) {
92-
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
9392
case 'BoundingBox': appearance = StructuredDocumentTagBase_AppearanceEnum.boundingBox; break;
93+
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
9494
case 'Tags': appearance = StructuredDocumentTagBase_AppearanceEnum.tags; break;
9595
case 'Hidden': appearance = StructuredDocumentTagBase_AppearanceEnum.hidden; break;
9696
default: appearance = null; break;

lib/src/models/structured_document_tag_update.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ class StructuredDocumentTagUpdate extends StructuredDocumentTag {
6969

7070
if (json.containsKey('Appearance')) {
7171
switch (json['Appearance'] as String) {
72-
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
7372
case 'BoundingBox': appearance = StructuredDocumentTagBase_AppearanceEnum.boundingBox; break;
73+
case 'Default': appearance = StructuredDocumentTagBase_AppearanceEnum.defaultValue; break;
7474
case 'Tags': appearance = StructuredDocumentTagBase_AppearanceEnum.tags; break;
7575
case 'Hidden': appearance = StructuredDocumentTagBase_AppearanceEnum.hidden; break;
7676
default: appearance = null; break;

lib/src/models/table_properties.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,8 @@ class TableProperties extends LinkElement {
616616

617617
if (json.containsKey('TextWrapping')) {
618618
switch (json['TextWrapping'] as String) {
619-
case 'Default': textWrapping = TableProperties_TextWrappingEnum.defaultValue; break;
620619
case 'None': textWrapping = TableProperties_TextWrappingEnum.none; break;
620+
case 'Default': textWrapping = TableProperties_TextWrappingEnum.defaultValue; break;
621621
case 'Around': textWrapping = TableProperties_TextWrappingEnum.around; break;
622622
default: textWrapping = null; break;
623623
}
@@ -1082,8 +1082,8 @@ class TableProperties extends LinkElement {
10821082

10831083
if (textWrapping != null) {
10841084
switch (textWrapping!) {
1085-
case TableProperties_TextWrappingEnum.defaultValue: _result['TextWrapping'] = 'Default'; break;
10861085
case TableProperties_TextWrappingEnum.none: _result['TextWrapping'] = 'None'; break;
1086+
case TableProperties_TextWrappingEnum.defaultValue: _result['TextWrapping'] = 'Default'; break;
10871087
case TableProperties_TextWrappingEnum.around: _result['TextWrapping'] = 'Around'; break;
10881088
default: break;
10891089
}
@@ -1523,8 +1523,8 @@ enum TableProperties_StyleOptionsEnum
15231523
/// Gets or sets the option that controls text wrapping for the table.
15241524
enum TableProperties_TextWrappingEnum
15251525
{
1526-
defaultValue,
15271526
none,
1527+
defaultValue,
15281528
around
15291529
}
15301530

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="merge_with_next_online_request.dart">
4+
* Copyright (c) 2024 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
library aspose_words_cloud;
29+
30+
import 'dart:typed_data';
31+
import '../../aspose_words_cloud.dart';
32+
import '../api_client.dart';
33+
import '../api_request_data.dart';
34+
import '../api_request_part.dart';
35+
import '../body_part_data.dart';
36+
37+
/// Request model for MergeWithNextOnline operation.
38+
class MergeWithNextOnlineRequest implements RequestBase {
39+
/// The document.
40+
final ByteData? document;
41+
42+
/// The index of the section.
43+
final int? sectionIndex;
44+
45+
/// Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
46+
final String? loadEncoding;
47+
48+
/// Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
49+
final String? password;
50+
51+
/// Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
52+
final String? encryptedPassword;
53+
54+
/// Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
55+
final String? destFileName;
56+
57+
/// Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
58+
final String? revisionAuthor;
59+
60+
/// The date and time to use for revisions.
61+
final String? revisionDateTime;
62+
63+
MergeWithNextOnlineRequest(this.document, this.sectionIndex, {this.loadEncoding, this.password, this.encryptedPassword, this.destFileName, this.revisionAuthor, this.revisionDateTime});
64+
65+
@override
66+
Future<ApiRequestData> createRequestData(final ApiClient _apiClient) async {
67+
var _path = '/words/online/put/merge/sections/{sectionIndex}';
68+
var _queryParams = <String, String>{};
69+
var _headers = <String, String>{};
70+
var _bodyParts = <ApiRequestPart>[];
71+
var _fileContentParts = <FileReference>[];
72+
if (sectionIndex == null) {
73+
throw ApiException(400, 'Parameter sectionIndex is required.');
74+
}
75+
_path = _path.replaceAll('{sectionIndex}', _apiClient.serializeToString(sectionIndex) ?? "");
76+
if (loadEncoding != null) {
77+
_queryParams['loadEncoding'] = _apiClient.serializeToString(loadEncoding) ?? "";
78+
}
79+
80+
if (password != null) {
81+
_queryParams['encryptedPassword'] = await _apiClient.encryptPassword(password!);
82+
}
83+
84+
if (encryptedPassword != null) {
85+
_queryParams['encryptedPassword'] = _apiClient.serializeToString(encryptedPassword) ?? "";
86+
}
87+
88+
if (destFileName != null) {
89+
_queryParams['destFileName'] = _apiClient.serializeToString(destFileName) ?? "";
90+
}
91+
92+
if (revisionAuthor != null) {
93+
_queryParams['revisionAuthor'] = _apiClient.serializeToString(revisionAuthor) ?? "";
94+
}
95+
96+
if (revisionDateTime != null) {
97+
_queryParams['revisionDateTime'] = _apiClient.serializeToString(revisionDateTime) ?? "";
98+
}
99+
100+
if (document != null) {
101+
102+
var _formBody = _apiClient.serializeBody(document, 'Document');
103+
if (_formBody != null) {
104+
_bodyParts.add(_formBody);
105+
}
106+
}
107+
else {
108+
throw ApiException(400, 'Parameter document is required.');
109+
}
110+
111+
for (final _fileContentPart in _fileContentParts) {
112+
_fileContentPart.encryptPassword(_apiClient);
113+
if (_fileContentPart.source == 'Request') {
114+
_bodyParts.add(ApiRequestPart(_fileContentPart.content!, 'application/octet-stream', name: _fileContentPart.reference));
115+
}
116+
}
117+
var _url = _apiClient.configuration.getApiRootUrl() + _apiClient.applyQueryParams(_path, _queryParams).replaceAll('//', '/');
118+
var _body = _apiClient.serializeBodyParts(_bodyParts, _headers);
119+
return ApiRequestData('PUT', _url, _headers, _body);
120+
}
121+
122+
@override
123+
dynamic deserializeResponse(final ApiClient _apiClient, final Map<String, String> _headers, final ByteData? _body) {
124+
if (_body == null) {
125+
return ApiException(400, "Nullable response body is not allowed for this operation type.");
126+
}
127+
128+
return _apiClient.deserializeFilesCollection(BodyPartData(_headers['content-type'], _headers['filename'], _body));
129+
}
130+
}
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="merge_with_next_request.dart">
4+
* Copyright (c) 2024 Aspose.Words for Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
library aspose_words_cloud;
29+
30+
import 'dart:typed_data';
31+
import '../../aspose_words_cloud.dart';
32+
import '../api_client.dart';
33+
import '../api_request_data.dart';
34+
import '../api_request_part.dart';
35+
36+
/// Request model for MergeWithNext operation.
37+
class MergeWithNextRequest implements RequestBase {
38+
/// The filename of the input document.
39+
final String? name;
40+
41+
/// The index of the section.
42+
final int? sectionIndex;
43+
44+
/// Original document folder.
45+
final String? folder;
46+
47+
/// Original document storage.
48+
final String? storage;
49+
50+
/// Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
51+
final String? loadEncoding;
52+
53+
/// Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
54+
final String? password;
55+
56+
/// Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
57+
final String? encryptedPassword;
58+
59+
/// Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
60+
final String? destFileName;
61+
62+
/// Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
63+
final String? revisionAuthor;
64+
65+
/// The date and time to use for revisions.
66+
final String? revisionDateTime;
67+
68+
MergeWithNextRequest(this.name, this.sectionIndex, {this.folder, this.storage, this.loadEncoding, this.password, this.encryptedPassword, this.destFileName, this.revisionAuthor, this.revisionDateTime});
69+
70+
@override
71+
Future<ApiRequestData> createRequestData(final ApiClient _apiClient) async {
72+
var _path = '/words/{name}/merge/sections/{sectionIndex}';
73+
var _queryParams = <String, String>{};
74+
var _headers = <String, String>{};
75+
var _bodyParts = <ApiRequestPart>[];
76+
var _fileContentParts = <FileReference>[];
77+
if (name == null) {
78+
throw ApiException(400, 'Parameter name is required.');
79+
}
80+
_path = _path.replaceAll('{name}', _apiClient.serializeToString(name) ?? "");
81+
82+
if (sectionIndex == null) {
83+
throw ApiException(400, 'Parameter sectionIndex is required.');
84+
}
85+
_path = _path.replaceAll('{sectionIndex}', _apiClient.serializeToString(sectionIndex) ?? "");
86+
if (folder != null) {
87+
_queryParams['folder'] = _apiClient.serializeToString(folder) ?? "";
88+
}
89+
90+
if (storage != null) {
91+
_queryParams['storage'] = _apiClient.serializeToString(storage) ?? "";
92+
}
93+
94+
if (loadEncoding != null) {
95+
_queryParams['loadEncoding'] = _apiClient.serializeToString(loadEncoding) ?? "";
96+
}
97+
98+
if (password != null) {
99+
_queryParams['encryptedPassword'] = await _apiClient.encryptPassword(password!);
100+
}
101+
102+
if (encryptedPassword != null) {
103+
_queryParams['encryptedPassword'] = _apiClient.serializeToString(encryptedPassword) ?? "";
104+
}
105+
106+
if (destFileName != null) {
107+
_queryParams['destFileName'] = _apiClient.serializeToString(destFileName) ?? "";
108+
}
109+
110+
if (revisionAuthor != null) {
111+
_queryParams['revisionAuthor'] = _apiClient.serializeToString(revisionAuthor) ?? "";
112+
}
113+
114+
if (revisionDateTime != null) {
115+
_queryParams['revisionDateTime'] = _apiClient.serializeToString(revisionDateTime) ?? "";
116+
}
117+
118+
for (final _fileContentPart in _fileContentParts) {
119+
_fileContentPart.encryptPassword(_apiClient);
120+
if (_fileContentPart.source == 'Request') {
121+
_bodyParts.add(ApiRequestPart(_fileContentPart.content!, 'application/octet-stream', name: _fileContentPart.reference));
122+
}
123+
}
124+
var _url = _apiClient.configuration.getApiRootUrl() + _apiClient.applyQueryParams(_path, _queryParams).replaceAll('//', '/');
125+
var _body = _apiClient.serializeBodyParts(_bodyParts, _headers);
126+
return ApiRequestData('PUT', _url, _headers, _body);
127+
}
128+
129+
@override
130+
dynamic deserializeResponse(final ApiClient _apiClient, final Map<String, String> _headers, final ByteData? _body) {
131+
return null;
132+
}
133+
}

0 commit comments

Comments
 (0)