From 9020f0d8bb11503d1daa69d39bce10f61333c4aa Mon Sep 17 00:00:00 2001 From: "xuejian.zhang" Date: Fri, 27 Dec 2024 13:22:48 +0800 Subject: [PATCH] Release Aspose.Cells Cloud SDK 24.12.0 --- .../Api/PivotTablesControllerTests.cs | 15 ++- .../Infrastructure/CellsTestCommon.cs | 2 +- Aspose.Cells.Cloud.SDK/Api/CellsApi.cs | 46 +++++++ .../Aspose.Cells.Cloud.SDK.csproj | 6 +- .../Infrastructure/Invoker/ApiInvoker.cs | 2 +- .../Model/ExtractTextOptions.cs | 120 ++++++++++++++++++ .../Model/ExtractTextType.cs | 44 +++++++ Aspose.Cells.Cloud.SDK/Model/PivotFilter.cs | 10 +- .../Model/RemoveDuplicatesAreaType.cs | 44 +++++++ .../Model/RemoveDuplicatesOptions.cs | 90 +++++++++++++ Aspose.Cells.Cloud.SDK/Model/Top10Filter.cs | 6 + .../Request/PostExtractTextRequest.cs | 102 +++++++++++++++ .../Request/PostRemoveDuplicatesRequest.cs | 102 +++++++++++++++ TestData/CellsGo/{ => Input}/Book1.xlsx | Bin .../CellsGo/{ => Input}/CelLSJAVA41391.xlsx | Bin TestData/CellsGo/{ => Input}/Cells47415.xlsx | Bin .../CellsGo/{ => Input}/CellsJava45708.json | 0 .../CellsGo/{ => Input}/CellsNet43300.xlsx | Bin .../CellsGo/{ => Input}/CellsNet46333_2.xlsx | Bin TestData/CellsGo/{ => Input}/N46267.xlsx | Bin TestData/CellsGo/{ => Input}/TestCase.xlsx | Bin TestData/CellsGo/{ => Input}/example.xlsx | Bin docs/api/post-extract-text.md | 18 +++ docs/api/post-remove-duplicates.md | 18 +++ docs/model/extract-text-options.md | 20 +++ docs/model/extract-text-type.md | 9 ++ docs/model/pivot-filter.md | 3 +- docs/model/remove-duplicates-area-type.md | 9 ++ docs/model/remove-duplicates-options.md | 15 +++ docs/model/top10-filter.md | 1 + 30 files changed, 668 insertions(+), 14 deletions(-) create mode 100644 Aspose.Cells.Cloud.SDK/Model/ExtractTextOptions.cs create mode 100644 Aspose.Cells.Cloud.SDK/Model/ExtractTextType.cs create mode 100644 Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesAreaType.cs create mode 100644 Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesOptions.cs create mode 100644 Aspose.Cells.Cloud.SDK/Request/PostExtractTextRequest.cs create mode 100644 Aspose.Cells.Cloud.SDK/Request/PostRemoveDuplicatesRequest.cs rename TestData/CellsGo/{ => Input}/Book1.xlsx (100%) rename TestData/CellsGo/{ => Input}/CelLSJAVA41391.xlsx (100%) rename TestData/CellsGo/{ => Input}/Cells47415.xlsx (100%) rename TestData/CellsGo/{ => Input}/CellsJava45708.json (100%) rename TestData/CellsGo/{ => Input}/CellsNet43300.xlsx (100%) rename TestData/CellsGo/{ => Input}/CellsNet46333_2.xlsx (100%) rename TestData/CellsGo/{ => Input}/N46267.xlsx (100%) rename TestData/CellsGo/{ => Input}/TestCase.xlsx (100%) rename TestData/CellsGo/{ => Input}/example.xlsx (100%) create mode 100644 docs/api/post-extract-text.md create mode 100644 docs/api/post-remove-duplicates.md create mode 100644 docs/model/extract-text-options.md create mode 100644 docs/model/extract-text-type.md create mode 100644 docs/model/remove-duplicates-area-type.md create mode 100644 docs/model/remove-duplicates-options.md diff --git a/Aspose.Cells.Cloud.SDK.Test/Api/PivotTablesControllerTests.cs b/Aspose.Cells.Cloud.SDK.Test/Api/PivotTablesControllerTests.cs index d8e4962d..a557ce37 100644 --- a/Aspose.Cells.Cloud.SDK.Test/Api/PivotTablesControllerTests.cs +++ b/Aspose.Cells.Cloud.SDK.Test/Api/PivotTablesControllerTests.cs @@ -9,10 +9,10 @@ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -25,7 +25,7 @@ namespace Aspose.Cells.Cloud.SDK.Tests.Api.Api { - using Microsoft.VisualStudio.TestTools.UnitTesting; + using Microsoft.VisualStudio.TestTools.UnitTesting; using Aspose.Cells.Cloud.SDK.Model; using Aspose.Cells.Cloud.SDK.Request; using System.Collections.Generic; @@ -133,8 +133,9 @@ public void TestGetWorksheetPivotTableFilters() /// /// Test for GetWorksheetPivotTableFilter of PivotTablesController. /// - [TestCategory(ProductName)] + /* [TestCategory(ProductName)] [TestMethod] + [Ignore] public void TestGetWorksheetPivotTableFilter() { string localName = "TestCase.xlsx"; @@ -152,7 +153,7 @@ public void TestGetWorksheetPivotTableFilter() ); var actual = this.CellsApi.GetWorksheetPivotTableFilter(request); Assert.AreEqual(200, actual.Code); - } + }*/ /// /// Test for PutWorksheetPivotTable of PivotTablesController. @@ -213,12 +214,13 @@ public void TestPutPivotTableField() var actual = this.CellsApi.PutPivotTableField(request); Assert.AreEqual(200, actual.Code); } - +/* /// /// Test for PutWorksheetPivotTableFilter of PivotTablesController. /// [TestCategory(ProductName)] [TestMethod] + [Ignore] public void TestPutWorksheetPivotTableFilter() { string localName = "TestCase.xlsx"; @@ -243,6 +245,7 @@ public void TestPutWorksheetPivotTableFilter() var actual = this.CellsApi.PutWorksheetPivotTableFilter(request); Assert.AreEqual(200, actual.Code); } + */ /// /// Test for PostPivotTableFieldHideItem of PivotTablesController. diff --git a/Aspose.Cells.Cloud.SDK.Test/Infrastructure/CellsTestCommon.cs b/Aspose.Cells.Cloud.SDK.Test/Infrastructure/CellsTestCommon.cs index 34ef3046..e891e5d9 100644 --- a/Aspose.Cells.Cloud.SDK.Test/Infrastructure/CellsTestCommon.cs +++ b/Aspose.Cells.Cloud.SDK.Test/Infrastructure/CellsTestCommon.cs @@ -112,7 +112,7 @@ public string GetLocalFilePath(string filename) int pos = localFolder.IndexOf("bin"); if(pos >0) { - localFolder = Path.Combine( localFolder.Substring(0, pos),"./../","TestData/CellsCloud"); + localFolder = Path.Combine( localFolder.Substring(0, pos),"./../TestData","CellsCloud"); } } diff --git a/Aspose.Cells.Cloud.SDK/Api/CellsApi.cs b/Aspose.Cells.Cloud.SDK/Api/CellsApi.cs index c02fdf7a..b3a6cc1b 100644 --- a/Aspose.Cells.Cloud.SDK/Api/CellsApi.cs +++ b/Aspose.Cells.Cloud.SDK/Api/CellsApi.cs @@ -6277,6 +6277,52 @@ public async Task< FileInfo > PostConvertTextAsync(PostConvertTextRequest req + /// + /// + /// Request. + public FileInfo PostRemoveDuplicates(PostRemoveDuplicatesRequest request) + { + requestHandlers.ForEach(p => p.ProcessUrl("")); + var result = invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result; + return result; + } + + /// + /// async/await syntax calling method + /// + + public async Task< FileInfo > PostRemoveDuplicatesAsync(PostRemoveDuplicatesRequest request) + { + requestHandlers.ForEach(p => p.ProcessUrl("")); + var result = await invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)); + return result; + } + + + + /// + /// + /// Request. + public FileInfo PostExtractText(PostExtractTextRequest request) + { + requestHandlers.ForEach(p => p.ProcessUrl("")); + var result = invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)).Result; + return result; + } + + /// + /// async/await syntax calling method + /// + + public async Task< FileInfo > PostExtractTextAsync(PostExtractTextRequest request) + { + requestHandlers.ForEach(p => p.ProcessUrl("")); + var result = await invoker.InvokeApiAsync< FileInfo >(request.CreateHttpRequest(BaseUri +"/" +Version, this.invoker.DefaultHeaderMap, this.requestHandlers)); + return result; + } + + + /// /// Retrieve the description of the default style for the workbook . /// diff --git a/Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj b/Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj index ad7d62a9..dc3be770 100644 --- a/Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj +++ b/Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj @@ -17,9 +17,9 @@ GitHub MIT false - 24.11 - 24.11 - 24.11 + 24.12 + 24.12 + 24.12 README.md diff --git a/Aspose.Cells.Cloud.SDK/Infrastructure/Invoker/ApiInvoker.cs b/Aspose.Cells.Cloud.SDK/Infrastructure/Invoker/ApiInvoker.cs index 2adc0422..821e1a54 100644 --- a/Aspose.Cells.Cloud.SDK/Infrastructure/Invoker/ApiInvoker.cs +++ b/Aspose.Cells.Cloud.SDK/Infrastructure/Invoker/ApiInvoker.cs @@ -50,7 +50,7 @@ internal class ApiInvoker internal ApiInvoker(List requestHandlers) { this.AddDefaultHeader(AsposeClientHeaderName, ".net sdk"); - this.AddDefaultHeader(AsposeClientVersionHeaderName, "24.11"); + this.AddDefaultHeader(AsposeClientVersionHeaderName, "24.12"); this.requestHandlers = requestHandlers; } diff --git a/Aspose.Cells.Cloud.SDK/Model/ExtractTextOptions.cs b/Aspose.Cells.Cloud.SDK/Model/ExtractTextOptions.cs new file mode 100644 index 00000000..0d31810e --- /dev/null +++ b/Aspose.Cells.Cloud.SDK/Model/ExtractTextOptions.cs @@ -0,0 +1,120 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) 2024 Aspose.Cells Cloud +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace Aspose.Cells.Cloud.SDK.Model +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Runtime.Serialization; + using System.Text; + using System.Drawing; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// + /// + public class ExtractTextOptions : BaseOperateOptions + { + /// + /// + /// + public override string Name { get; set; } + + /// + /// + /// + public virtual DataSource DataSource { get; set; } + + /// + /// + /// + public virtual FileInfo FileInfo { get; set; } + + /// + /// + /// + public virtual string Worksheet { get; set; } + + /// + /// + /// + public virtual string Range { get; set; } + + /// + /// Gets or sets ExtractTextType. + /// + public virtual string ExtractTextType { get; set; } + + /// + /// Gets or sets BeforeText. + /// + public virtual string BeforeText { get; set; } + + /// + /// Gets or sets AfterText. + /// + public virtual string AfterText { get; set; } + + /// + /// Gets or sets BeforePosition. + /// + public virtual int? BeforePosition { get; set; } + + /// + /// Gets or sets AfterPosition. + /// + public virtual int? AfterPosition { get; set; } + + /// + /// Gets or sets OutPositionRange. + /// + public virtual string OutPositionRange { get; set; } + + /// + /// Get the string presentation of the object. + /// + /// String presentation of the object. + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExtractTextOptions {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" DataSource: ").Append(this.DataSource).Append("\n"); + sb.Append(" FileInfo: ").Append(this.FileInfo).Append("\n"); + sb.Append(" Worksheet: ").Append(this.Worksheet).Append("\n"); + sb.Append(" Range: ").Append(this.Range).Append("\n"); + sb.Append(" ExtractTextType: ").Append(this.ExtractTextType).Append("\n"); + sb.Append(" BeforeText: ").Append(this.BeforeText).Append("\n"); + sb.Append(" AfterText: ").Append(this.AfterText).Append("\n"); + sb.Append(" BeforePosition: ").Append(this.BeforePosition).Append("\n"); + sb.Append(" AfterPosition: ").Append(this.AfterPosition).Append("\n"); + sb.Append(" OutPositionRange: ").Append(this.OutPositionRange).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + } +} diff --git a/Aspose.Cells.Cloud.SDK/Model/ExtractTextType.cs b/Aspose.Cells.Cloud.SDK/Model/ExtractTextType.cs new file mode 100644 index 00000000..1f43413d --- /dev/null +++ b/Aspose.Cells.Cloud.SDK/Model/ExtractTextType.cs @@ -0,0 +1,44 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) 2024 Aspose.Cells Cloud +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace Aspose.Cells.Cloud.SDK.Model +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Runtime.Serialization; + using System.Text; + using System.Drawing; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// ExtractTextType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ExtractTextType + { + } +} diff --git a/Aspose.Cells.Cloud.SDK/Model/PivotFilter.cs b/Aspose.Cells.Cloud.SDK/Model/PivotFilter.cs index 286e4b2f..a157f9d7 100644 --- a/Aspose.Cells.Cloud.SDK/Model/PivotFilter.cs +++ b/Aspose.Cells.Cloud.SDK/Model/PivotFilter.cs @@ -63,7 +63,7 @@ public class PivotFilter /// Gets the measure field index of the pivot filter. /// /// - public virtual int? MeasureFldIndex { get; set; } + public virtual int? ValueFieldIndex { get; set; } /// /// Gets the member property field index of the pivot filter. @@ -88,6 +88,11 @@ public class PivotFilter /// public virtual string Value2 { get; set; } + /// + /// + /// + public virtual Top10Filter Top10Filter { get; set; } + /// /// Get the string presentation of the object. /// @@ -100,11 +105,12 @@ public override string ToString() sb.Append(" EvaluationOrder: ").Append(this.EvaluationOrder).Append("\n"); sb.Append(" FieldIndex: ").Append(this.FieldIndex).Append("\n"); sb.Append(" FilterType: ").Append(this.FilterType).Append("\n"); - sb.Append(" MeasureFldIndex: ").Append(this.MeasureFldIndex).Append("\n"); + sb.Append(" ValueFieldIndex: ").Append(this.ValueFieldIndex).Append("\n"); sb.Append(" MemberPropertyFieldIndex: ").Append(this.MemberPropertyFieldIndex).Append("\n"); sb.Append(" Name: ").Append(this.Name).Append("\n"); sb.Append(" Value1: ").Append(this.Value1).Append("\n"); sb.Append(" Value2: ").Append(this.Value2).Append("\n"); + sb.Append(" Top10Filter: ").Append(this.Top10Filter).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesAreaType.cs b/Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesAreaType.cs new file mode 100644 index 00000000..9ebc6fcd --- /dev/null +++ b/Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesAreaType.cs @@ -0,0 +1,44 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) 2024 Aspose.Cells Cloud +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace Aspose.Cells.Cloud.SDK.Model +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Runtime.Serialization; + using System.Text; + using System.Drawing; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// RemoveDuplicatesAreaType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum RemoveDuplicatesAreaType + { + } +} diff --git a/Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesOptions.cs b/Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesOptions.cs new file mode 100644 index 00000000..5f998a21 --- /dev/null +++ b/Aspose.Cells.Cloud.SDK/Model/RemoveDuplicatesOptions.cs @@ -0,0 +1,90 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) 2024 Aspose.Cells Cloud +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace Aspose.Cells.Cloud.SDK.Model +{ + using System; + using System.Collections; + using System.Collections.Generic; + using System.Runtime.Serialization; + using System.Text; + using System.Drawing; + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + + /// + /// + /// + public class RemoveDuplicatesOptions : BaseOperateOptions + { + /// + /// + /// + public override string Name { get; set; } + + /// + /// + /// + public virtual DataSource DataSource { get; set; } + + /// + /// + /// + public virtual FileInfo FileInfo { get; set; } + + /// + /// + /// + public virtual string Worksheet { get; set; } + + /// + /// + /// + public virtual string RemoveDuplicatesArea { get; set; } + + /// + /// + /// + public virtual string RemoveDuplicatesAreaValue { get; set; } + + /// + /// Get the string presentation of the object. + /// + /// String presentation of the object. + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RemoveDuplicatesOptions {\n"); + sb.Append(" Name: ").Append(this.Name).Append("\n"); + sb.Append(" DataSource: ").Append(this.DataSource).Append("\n"); + sb.Append(" FileInfo: ").Append(this.FileInfo).Append("\n"); + sb.Append(" Worksheet: ").Append(this.Worksheet).Append("\n"); + sb.Append(" RemoveDuplicatesArea: ").Append(this.RemoveDuplicatesArea).Append("\n"); + sb.Append(" RemoveDuplicatesAreaValue: ").Append(this.RemoveDuplicatesAreaValue).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + } +} diff --git a/Aspose.Cells.Cloud.SDK/Model/Top10Filter.cs b/Aspose.Cells.Cloud.SDK/Model/Top10Filter.cs index 7f8f3c57..a254424a 100644 --- a/Aspose.Cells.Cloud.SDK/Model/Top10Filter.cs +++ b/Aspose.Cells.Cloud.SDK/Model/Top10Filter.cs @@ -40,6 +40,11 @@ namespace Aspose.Cells.Cloud.SDK.Model /// public class Top10Filter { + /// + /// Gets or sets FieldIndex. + /// + public virtual int? FieldIndex { get; set; } + /// /// /// @@ -71,6 +76,7 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class Top10Filter {\n"); + sb.Append(" FieldIndex: ").Append(this.FieldIndex).Append("\n"); sb.Append(" Criteria: ").Append(this.Criteria).Append("\n"); sb.Append(" IsPercent: ").Append(this.IsPercent).Append("\n"); sb.Append(" IsTop: ").Append(this.IsTop).Append("\n"); diff --git a/Aspose.Cells.Cloud.SDK/Request/PostExtractTextRequest.cs b/Aspose.Cells.Cloud.SDK/Request/PostExtractTextRequest.cs new file mode 100644 index 00000000..26ea1186 --- /dev/null +++ b/Aspose.Cells.Cloud.SDK/Request/PostExtractTextRequest.cs @@ -0,0 +1,102 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) 2024 Aspose.Cells Cloud +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace Aspose.Cells.Cloud.SDK.Request +{ + using Aspose.Cells.Cloud.SDK.Model; + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Net; + using System.Text.RegularExpressions; + + /// + /// Request model for operation. + /// + public class PostExtractTextRequest : IRequestModel + { + /// + /// Initializes a new instance of the class. + /// + public PostExtractTextRequest() + { + + } + + /// + /// Initializes a new instance of the class. + /// + /// + public PostExtractTextRequest(ExtractTextOptions extractTextOptions) + { + this.extractTextOptions = extractTextOptions; + } + + /// + /// Gets or sets extractTextOptions. + /// + public ExtractTextOptions extractTextOptions { get; set; } + + + /// + /// Gets or sets extendQueryParameterMap. + /// + public IDictionary extendQueryParameterMap ; + + /// + /// Creates the http request based on this request. + /// + /// Api base uri. + /// The http request instance. + public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary defaultHeaderMap, List requestHandlers) + { + var localVarHeaderParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + string localVarPostBody =""; + string localVarHttpContentType = "application/json"; + // verify the required parameter 'extractTextOptions' is set + if ( this.extractTextOptions == null) + { + throw new ApiException(400, "Missing required parameter 'extractTextOptions' when calling PostExtractText"); + } + + var path = baseUri + "/cells/extracttext"; + path = Regex + .Replace(path, "\\*", string.Empty) + .Replace("&", "&") + .Replace("/?", "?"); + + if (this.extendQueryParameterMap != null) + { + foreach (KeyValuePair kvp in extendQueryParameterMap) + { + path = UrlHelper.AddQueryParameterToUrl(path, kvp.Key, kvp.Value); + } + } + + localVarPostBody = ( this.extractTextOptions != null ? JsonConvert.SerializeObject(this.extractTextOptions) : null); + return UrlHelper.PrepareRequest(path, "POST", localVarFileParams, localVarHeaderParams, localVarPostBody, localVarHttpContentType, defaultHeaderMap, requestHandlers); + } + } +} diff --git a/Aspose.Cells.Cloud.SDK/Request/PostRemoveDuplicatesRequest.cs b/Aspose.Cells.Cloud.SDK/Request/PostRemoveDuplicatesRequest.cs new file mode 100644 index 00000000..85293510 --- /dev/null +++ b/Aspose.Cells.Cloud.SDK/Request/PostRemoveDuplicatesRequest.cs @@ -0,0 +1,102 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// Copyright (c) 2024 Aspose.Cells Cloud +// +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace Aspose.Cells.Cloud.SDK.Request +{ + using Aspose.Cells.Cloud.SDK.Model; + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Net; + using System.Text.RegularExpressions; + + /// + /// Request model for operation. + /// + public class PostRemoveDuplicatesRequest : IRequestModel + { + /// + /// Initializes a new instance of the class. + /// + public PostRemoveDuplicatesRequest() + { + + } + + /// + /// Initializes a new instance of the class. + /// + /// + public PostRemoveDuplicatesRequest(RemoveDuplicatesOptions removeDuplicatesOptions) + { + this.removeDuplicatesOptions = removeDuplicatesOptions; + } + + /// + /// Gets or sets removeDuplicatesOptions. + /// + public RemoveDuplicatesOptions removeDuplicatesOptions { get; set; } + + + /// + /// Gets or sets extendQueryParameterMap. + /// + public IDictionary extendQueryParameterMap ; + + /// + /// Creates the http request based on this request. + /// + /// Api base uri. + /// The http request instance. + public HttpWebRequest CreateHttpRequest(string baseUri,IDictionary defaultHeaderMap, List requestHandlers) + { + var localVarHeaderParams = new Dictionary(); + var localVarFileParams = new Dictionary(); + string localVarPostBody =""; + string localVarHttpContentType = "application/json"; + // verify the required parameter 'removeDuplicatesOptions' is set + if ( this.removeDuplicatesOptions == null) + { + throw new ApiException(400, "Missing required parameter 'removeDuplicatesOptions' when calling PostRemoveDuplicates"); + } + + var path = baseUri + "/cells/removeduplicates"; + path = Regex + .Replace(path, "\\*", string.Empty) + .Replace("&", "&") + .Replace("/?", "?"); + + if (this.extendQueryParameterMap != null) + { + foreach (KeyValuePair kvp in extendQueryParameterMap) + { + path = UrlHelper.AddQueryParameterToUrl(path, kvp.Key, kvp.Value); + } + } + + localVarPostBody = ( this.removeDuplicatesOptions != null ? JsonConvert.SerializeObject(this.removeDuplicatesOptions) : null); + return UrlHelper.PrepareRequest(path, "POST", localVarFileParams, localVarHeaderParams, localVarPostBody, localVarHttpContentType, defaultHeaderMap, requestHandlers); + } + } +} diff --git a/TestData/CellsGo/Book1.xlsx b/TestData/CellsGo/Input/Book1.xlsx similarity index 100% rename from TestData/CellsGo/Book1.xlsx rename to TestData/CellsGo/Input/Book1.xlsx diff --git a/TestData/CellsGo/CelLSJAVA41391.xlsx b/TestData/CellsGo/Input/CelLSJAVA41391.xlsx similarity index 100% rename from TestData/CellsGo/CelLSJAVA41391.xlsx rename to TestData/CellsGo/Input/CelLSJAVA41391.xlsx diff --git a/TestData/CellsGo/Cells47415.xlsx b/TestData/CellsGo/Input/Cells47415.xlsx similarity index 100% rename from TestData/CellsGo/Cells47415.xlsx rename to TestData/CellsGo/Input/Cells47415.xlsx diff --git a/TestData/CellsGo/CellsJava45708.json b/TestData/CellsGo/Input/CellsJava45708.json similarity index 100% rename from TestData/CellsGo/CellsJava45708.json rename to TestData/CellsGo/Input/CellsJava45708.json diff --git a/TestData/CellsGo/CellsNet43300.xlsx b/TestData/CellsGo/Input/CellsNet43300.xlsx similarity index 100% rename from TestData/CellsGo/CellsNet43300.xlsx rename to TestData/CellsGo/Input/CellsNet43300.xlsx diff --git a/TestData/CellsGo/CellsNet46333_2.xlsx b/TestData/CellsGo/Input/CellsNet46333_2.xlsx similarity index 100% rename from TestData/CellsGo/CellsNet46333_2.xlsx rename to TestData/CellsGo/Input/CellsNet46333_2.xlsx diff --git a/TestData/CellsGo/N46267.xlsx b/TestData/CellsGo/Input/N46267.xlsx similarity index 100% rename from TestData/CellsGo/N46267.xlsx rename to TestData/CellsGo/Input/N46267.xlsx diff --git a/TestData/CellsGo/TestCase.xlsx b/TestData/CellsGo/Input/TestCase.xlsx similarity index 100% rename from TestData/CellsGo/TestCase.xlsx rename to TestData/CellsGo/Input/TestCase.xlsx diff --git a/TestData/CellsGo/example.xlsx b/TestData/CellsGo/Input/example.xlsx similarity index 100% rename from TestData/CellsGo/example.xlsx rename to TestData/CellsGo/Input/example.xlsx diff --git a/docs/api/post-extract-text.md b/docs/api/post-extract-text.md new file mode 100644 index 00000000..bc7ff423 --- /dev/null +++ b/docs/api/post-extract-text.md @@ -0,0 +1,18 @@ +# **postExtractText API** + + + +```bash + +POST http://api.aspose.cloud/v3.0//cells/extracttext + +``` + +## The request parameters of **postExtractText** API are: + +| Parameter Name | Type | Path/Query String/HTTPBody | Description | +| :- | :- | :- |:- | +|extractTextOptions|Class|Body|| + + +The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/TextProcessingController/PostExtractText) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser. diff --git a/docs/api/post-remove-duplicates.md b/docs/api/post-remove-duplicates.md new file mode 100644 index 00000000..138491c2 --- /dev/null +++ b/docs/api/post-remove-duplicates.md @@ -0,0 +1,18 @@ +# **postRemoveDuplicates API** + + + +```bash + +POST http://api.aspose.cloud/v3.0//cells/removeduplicates + +``` + +## The request parameters of **postRemoveDuplicates** API are: + +| Parameter Name | Type | Path/Query String/HTTPBody | Description | +| :- | :- | :- |:- | +|removeDuplicatesOptions|Class|Body|| + + +The [OpenAPI Specification](https://reference.aspose.cloud/cells/#/TextProcessingController/PostRemoveDuplicates) defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser. diff --git a/docs/model/extract-text-options.md b/docs/model/extract-text-options.md new file mode 100644 index 00000000..84b96d3d --- /dev/null +++ b/docs/model/extract-text-options.md @@ -0,0 +1,20 @@ +# **extractTextOptions** + + + +## **Properties** + +| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | +| :- | :- | :- |:- | :- | :- | +|Name|String|true|false | || +|DataSource|Class|true|false | || +|FileInfo|Class|true|false | || +|Worksheet|String|true|false | || +|Range|String|true|false | || +|ExtractTextType|String|true|false | || +|BeforeText|String|true|false | || +|AfterText|String|true|false | || +|BeforePosition|Integer|true|false | || +|AfterPosition|Integer|true|false | || +|OutPositionRange|String|true|false | || + diff --git a/docs/model/extract-text-type.md b/docs/model/extract-text-type.md new file mode 100644 index 00000000..4c4b4d52 --- /dev/null +++ b/docs/model/extract-text-type.md @@ -0,0 +1,9 @@ +# **extractTextType** + + + +## **Properties** + +| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | +| :- | :- | :- |:- | :- | :- | + diff --git a/docs/model/pivot-filter.md b/docs/model/pivot-filter.md index fbe1559f..1503e69e 100644 --- a/docs/model/pivot-filter.md +++ b/docs/model/pivot-filter.md @@ -10,9 +10,10 @@ Represents a PivotFilter in PivotFilter Collection. |EvaluationOrder|Integer|true|false | |Gets the Evaluation Order of the pivot filter.| |FieldIndex|Integer|true|false | |Gets the field index of the pivot filter.| |FilterType|String|true|false | |Gets the autofilter type of the pivot filter.| -|MeasureFldIndex|Integer|true|false | |Gets the measure field index of the pivot filter. | +|ValueFieldIndex|Integer|true|false | |Gets the measure field index of the pivot filter. | |MemberPropertyFieldIndex|Integer|true|false | |Gets the member property field index of the pivot filter. | |Name|String|true|false | |Gets the name of the pivot filter.| |Value1|String|true|false | |Gets the string value1 of the label pivot filter. | |Value2|String|true|false | |Gets the string value2 of the label pivot filter. | +|Top10Filter|Class|true|false | || diff --git a/docs/model/remove-duplicates-area-type.md b/docs/model/remove-duplicates-area-type.md new file mode 100644 index 00000000..47c30056 --- /dev/null +++ b/docs/model/remove-duplicates-area-type.md @@ -0,0 +1,9 @@ +# **removeDuplicatesAreaType** + + + +## **Properties** + +| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | +| :- | :- | :- |:- | :- | :- | + diff --git a/docs/model/remove-duplicates-options.md b/docs/model/remove-duplicates-options.md new file mode 100644 index 00000000..55cf5232 --- /dev/null +++ b/docs/model/remove-duplicates-options.md @@ -0,0 +1,15 @@ +# **removeDuplicatesOptions** + + + +## **Properties** + +| Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | +| :- | :- | :- |:- | :- | :- | +|Name|String|true|false | || +|DataSource|Class|true|false | || +|FileInfo|Class|true|false | || +|Worksheet|String|true|false | || +|RemoveDuplicatesArea|String|true|false | || +|RemoveDuplicatesAreaValue|String|true|false | || + diff --git a/docs/model/top10-filter.md b/docs/model/top10-filter.md index 36f103c3..4a3793b9 100644 --- a/docs/model/top10-filter.md +++ b/docs/model/top10-filter.md @@ -6,6 +6,7 @@ | Property Name | Property Type | Nullable | ReadOnly | DefaultValue | Description | | :- | :- | :- |:- | :- | :- | +|FieldIndex|Integer|true|false | || |Criteria|String|true|false | | | |IsPercent|Boolean|true|false | |Indicates whether the items is percent. | |IsTop|Boolean|true|false | |Indicates whether it's top filter. |