Skip to content

Commit 222f6bd

Browse files
committed
2024-02-22 : Synchronize codes to the origin repository.
1 parent 5863262 commit 222f6bd

13 files changed

+477
-2
lines changed

api_cells.go

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
)
3434

3535
func Version() {
36-
fmt.Println("---Version: 24.1.1---")
36+
fmt.Println("---Version: 24.2.1---")
3737
}
3838

3939
func NewCellsApiService(appSid string, appKey string, opts ...string) *CellsApiService {
@@ -54,6 +54,34 @@ func NewCellsApiService(appSid string, appKey string, opts ...string) *CellsApiS
5454

5555
type CellsApiService service
5656

57+
func (a *CellsApiService) PostAnalyzeTable(data *PostAnalyzeTableRequest) ( []AnalyzedResult, *http.Response, error) {
58+
var (
59+
localVarReturnValue []AnalyzedResult
60+
61+
)
62+
63+
r, err := data.CreateRequestData(a.client);
64+
if err != nil {
65+
return localVarReturnValue, nil, err
66+
}
67+
68+
localVarHttpResponse, err := a.client.callAPI(r)
69+
if err != nil || localVarHttpResponse == nil {
70+
return localVarReturnValue, localVarHttpResponse, err
71+
}
72+
defer localVarHttpResponse.Body.Close()
73+
if localVarHttpResponse.StatusCode >= 300 {
74+
bodyBytes, _ := ioutil.ReadAll(localVarHttpResponse.Body)
75+
return localVarReturnValue, localVarHttpResponse, reportError("Status: %v, Body: %s", localVarHttpResponse.Status, bodyBytes)
76+
}
77+
if err = json.NewDecoder(localVarHttpResponse.Body).Decode(&localVarReturnValue); err != nil {
78+
return localVarReturnValue, localVarHttpResponse, err
79+
}
80+
81+
return localVarReturnValue, localVarHttpResponse, err
82+
}
83+
84+
5785
func (a *CellsApiService) GetWorksheetAutoFilter(data *GetWorksheetAutoFilterRequest) ( AutoFilterResponse, *http.Response, error) {
5886
var (
5987
localVarReturnValue AutoFilterResponse

model_analyze_excel_request.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="AnalyzeExcelRequest.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type AnalyzeExcelRequest struct {
29+
30+
Files []FileInfo `json:"Files,omitempty" xml:"Files"`
31+
NeedThumbnail bool `json:"NeedThumbnail,omitempty" xml:"NeedThumbnail"`
32+
BuildSuggestoinSheet bool `json:"BuildSuggestoinSheet,omitempty" xml:"BuildSuggestoinSheet"`
33+
}

model_analyze_excel_response.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="AnalyzeExcelResponse.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type AnalyzeExcelResponse struct {
29+
30+
Suggestions []AnalyzeSuggestion `json:"Suggestions,omitempty" xml:"Suggestions"`
31+
}

model_analyze_suggestion.go

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="AnalyzeSuggestion.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type AnalyzeSuggestion struct {
29+
30+
Name string `json:"Name,omitempty" xml:"Name"`
31+
Filename string `json:"Filename,omitempty" xml:"Filename"`
32+
SheetName string `json:"SheetName,omitempty" xml:"SheetName"`
33+
DateSourceType string `json:"DateSourceType,omitempty" xml:"DateSourceType"`
34+
SuggestedOutputType string `json:"SuggestedOutputType,omitempty" xml:"SuggestedOutputType"`
35+
Description string `json:"Description,omitempty" xml:"Description"`
36+
DataSouceThumbnail string `json:"DataSouceThumbnail,omitempty" xml:"DataSouceThumbnail"`
37+
Thumbnail string `json:"Thumbnail,omitempty" xml:"Thumbnail"`
38+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="AnalyzedColumnDescription.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type AnalyzedColumnDescription struct {
29+
30+
Index int64 `json:"Index,omitempty" xml:"Index"`
31+
ColumnIndex int64 `json:"ColumnIndex,omitempty" xml:"ColumnIndex"`
32+
Title string `json:"Title,omitempty" xml:"Title"`
33+
RepetitionRate float64 `json:"RepetitionRate,omitempty" xml:"RepetitionRate"`
34+
ColumnDataDataType string `json:"ColumnDataDataType,omitempty" xml:"ColumnDataDataType"`
35+
NumberCategoryType string `json:"NumberCategoryType,omitempty" xml:"NumberCategoryType"`
36+
TextCategoryType string `json:"TextCategoryType,omitempty" xml:"TextCategoryType"`
37+
StyleNumber int64 `json:"StyleNumber,omitempty" xml:"StyleNumber"`
38+
ColumnDataExceptionDescription string `json:"columnDataExceptionDescription,omitempty" xml:"columnDataExceptionDescription"`
39+
}

model_analyzed_result.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="AnalyzedResult.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type AnalyzedResult struct {
29+
30+
Filename string `json:"Filename,omitempty" xml:"Filename"`
31+
Description string `json:"Description,omitempty" xml:"Description"`
32+
BasicStatistics *ExcelDataStatistics `json:"BasicStatistics,omitempty" xml:"BasicStatistics"`
33+
Results []AnalyzedTableDescription `json:"Results,omitempty" xml:"Results"`
34+
SuggestedFile string `json:"SuggestedFile,omitempty" xml:"SuggestedFile"`
35+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="AnalyzedTableDescription.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type AnalyzedTableDescription struct {
29+
30+
Name string `json:"Name,omitempty" xml:"Name"`
31+
SheetName string `json:"SheetName,omitempty" xml:"SheetName"`
32+
Columns []AnalyzedColumnDescription `json:"Columns,omitempty" xml:"Columns"`
33+
DateColumns []int64 `json:"DateColumns,omitempty" xml:"DateColumns"`
34+
NumberColumns []int64 `json:"NumberColumns,omitempty" xml:"NumberColumns"`
35+
TextColumns []int64 `json:"TextColumns,omitempty" xml:"TextColumns"`
36+
ExceptionColumns []int64 `json:"ExceptionColumns,omitempty" xml:"ExceptionColumns"`
37+
HasTableHeaderRow bool `json:"HasTableHeaderRow,omitempty" xml:"HasTableHeaderRow"`
38+
HasTableTotalRow bool `json:"HasTableTotalRow,omitempty" xml:"HasTableTotalRow"`
39+
StartDataColumnIndex int64 `json:"StartDataColumnIndex,omitempty" xml:"StartDataColumnIndex"`
40+
EndDataColumnIndex int64 `json:"EndDataColumnIndex,omitempty" xml:"EndDataColumnIndex"`
41+
StartDataRowIndex int64 `json:"StartDataRowIndex,omitempty" xml:"StartDataRowIndex"`
42+
EndDataRowIndex int64 `json:"EndDataRowIndex,omitempty" xml:"EndDataRowIndex"`
43+
Thumbnail string `json:"Thumbnail,omitempty" xml:"Thumbnail"`
44+
DiscoverCharts []DiscoverChart `json:"DiscoverCharts,omitempty" xml:"DiscoverCharts"`
45+
DiscoverPivotTables []DiscoverPivotTable `json:"DiscoverPivotTables,omitempty" xml:"DiscoverPivotTables"`
46+
}

model_auto_fitter_options.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ package asposecellscloud
2828
type AutoFitterOptions struct {
2929

3030
AutoFitMergedCellsType string `json:"AutoFitMergedCellsType,omitempty" xml:"AutoFitMergedCellsType"`
31-
AutoFitMergedCells bool `json:"AutoFitMergedCells,omitempty" xml:"AutoFitMergedCells"`
3231
IgnoreHidden bool `json:"IgnoreHidden,omitempty" xml:"IgnoreHidden"`
3332
OnlyAuto bool `json:"OnlyAuto,omitempty" xml:"OnlyAuto"`
3433
DefaultEditLanguage string `json:"DefaultEditLanguage,omitempty" xml:"DefaultEditLanguage"`

model_discover_chart.go

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="DiscoverChart.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type DiscoverChart struct {
29+
30+
Name string `json:"Name,omitempty" xml:"Name"`
31+
SheetName string `json:"SheetName,omitempty" xml:"SheetName"`
32+
Title string `json:"Title,omitempty" xml:"Title"`
33+
Type_ string `json:"Type,omitempty" xml:"Type"`
34+
DataRange string `json:"DataRange,omitempty" xml:"DataRange"`
35+
Thumbnail string `json:"Thumbnail,omitempty" xml:"Thumbnail"`
36+
}

model_discover_pivot_table.go

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/** --------------------------------------------------------------------------------------------------------------------
2+
* <copyright company="Aspose" file="DiscoverPivotTable.go">
3+
* Copyright (c) 2024 Aspose.Cells Cloud
4+
* </copyright>
5+
* <summary>
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
* </summary>
24+
-------------------------------------------------------------------------------------------------------------------- **/
25+
26+
package asposecellscloud
27+
28+
type DiscoverPivotTable struct {
29+
30+
Name string `json:"Name,omitempty" xml:"Name"`
31+
Title string `json:"Title,omitempty" xml:"Title"`
32+
DataRange string `json:"DataRange,omitempty" xml:"DataRange"`
33+
PivotFieldRows []int64 `json:"PivotFieldRows,omitempty" xml:"PivotFieldRows"`
34+
PivotFieldColumns []int64 `json:"PivotFieldColumns,omitempty" xml:"PivotFieldColumns"`
35+
PivotFieldData []int64 `json:"PivotFieldData,omitempty" xml:"PivotFieldData"`
36+
Thumbnail string `json:"Thumbnail,omitempty" xml:"Thumbnail"`
37+
}

0 commit comments

Comments
 (0)