Skip to content

Commit c5da365

Browse files
committed
for 19.2 release
1 parent 9dbdf52 commit c5da365

40 files changed

+4570
-25
lines changed

AsposeCellsCloud.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "AsposeCellsCloud"
19-
s.version = "19.1"
19+
s.version = "19.2"
2020
s.summary = "Aspose.Cells Cloud SDK for Swift."
2121
s.swift_version = "4.1"
2222

AsposeCellsCloud.xcodeproj/project.pbxproj

+89-5
Large diffs are not rendered by default.

AsposeCellsCloud/Swaggers/APIs/CellsAutoshapesAPI.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ open class CellsAutoshapesAPI {
2222
- parameter storage: (query) storage name. (optional)
2323
- parameter completion: completion handler to receive the data and the error objects
2424
*/
25-
open class func cellsAutoshapesGetWorksheetAutoshape(name: String, sheetName: String, autoshapeNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: NSURL?,_ error: Error?) -> Void)) {
25+
open class func cellsAutoshapesGetWorksheetAutoshape(name: String, sheetName: String, autoshapeNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) {
2626
cellsAutoshapesGetWorksheetAutoshapeWithRequestBuilder(name: name, sheetName: sheetName, autoshapeNumber: autoshapeNumber, format: format, folder: folder, storage: storage).execute { (response, error) -> Void in
2727
completion(response?.body, error)
2828
}
@@ -43,7 +43,7 @@ open class CellsAutoshapesAPI {
4343

4444
- returns: RequestBuilder<NSURL>
4545
*/
46-
open class func cellsAutoshapesGetWorksheetAutoshapeWithRequestBuilder(name: String, sheetName: String, autoshapeNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<NSURL> {
46+
open class func cellsAutoshapesGetWorksheetAutoshapeWithRequestBuilder(name: String, sheetName: String, autoshapeNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<Data> {
4747
var path = "/cells/{name}/worksheets/{sheetName}/autoshapes/{autoshapeNumber}"
4848
let namePreEscape = "\(name)"
4949
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
@@ -64,7 +64,7 @@ open class CellsAutoshapesAPI {
6464
"storage": storage
6565
])
6666

67-
let requestBuilder: RequestBuilder<NSURL>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
67+
let requestBuilder: RequestBuilder<Data>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
6868

6969
return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false)
7070
}

AsposeCellsCloud/Swaggers/APIs/CellsChartsAPI.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ open class CellsChartsAPI {
246246
- parameter storage: (query) storage name. (optional)
247247
- parameter completion: completion handler to receive the data and the error objects
248248
*/
249-
open class func cellsChartsGetWorksheetChart(name: String, sheetName: String, chartNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: NSURL?,_ error: Error?) -> Void)) {
249+
open class func cellsChartsGetWorksheetChart(name: String, sheetName: String, chartNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) {
250250
cellsChartsGetWorksheetChartWithRequestBuilder(name: name, sheetName: sheetName, chartNumber: chartNumber, format: format, folder: folder, storage: storage).execute { (response, error) -> Void in
251251
completion(response?.body, error)
252252
}
@@ -267,7 +267,7 @@ open class CellsChartsAPI {
267267

268268
- returns: RequestBuilder<NSURL>
269269
*/
270-
open class func cellsChartsGetWorksheetChartWithRequestBuilder(name: String, sheetName: String, chartNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<NSURL> {
270+
open class func cellsChartsGetWorksheetChartWithRequestBuilder(name: String, sheetName: String, chartNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<Data> {
271271
var path = "/cells/{name}/worksheets/{sheetName}/charts/{chartNumber}"
272272
let namePreEscape = "\(name)"
273273
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
@@ -288,7 +288,7 @@ open class CellsChartsAPI {
288288
"storage": storage
289289
])
290290

291-
let requestBuilder: RequestBuilder<NSURL>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
291+
let requestBuilder: RequestBuilder<Data>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
292292

293293
return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false)
294294
}

AsposeCellsCloud/Swaggers/APIs/CellsOleObjectsAPI.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ open class CellsOleObjectsAPI {
133133
- parameter storage: (query) storage name. (optional)
134134
- parameter completion: completion handler to receive the data and the error objects
135135
*/
136-
open class func cellsOleObjectsGetWorksheetOleObject(name: String, sheetName: String, objectNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: NSURL?,_ error: Error?) -> Void)) {
136+
open class func cellsOleObjectsGetWorksheetOleObject(name: String, sheetName: String, objectNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) {
137137
cellsOleObjectsGetWorksheetOleObjectWithRequestBuilder(name: name, sheetName: sheetName, objectNumber: objectNumber, format: format, folder: folder, storage: storage).execute { (response, error) -> Void in
138138
completion(response?.body, error)
139139
}
@@ -154,7 +154,7 @@ open class CellsOleObjectsAPI {
154154

155155
- returns: RequestBuilder<NSURL>
156156
*/
157-
open class func cellsOleObjectsGetWorksheetOleObjectWithRequestBuilder(name: String, sheetName: String, objectNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<NSURL> {
157+
open class func cellsOleObjectsGetWorksheetOleObjectWithRequestBuilder(name: String, sheetName: String, objectNumber: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<Data> {
158158
var path = "/cells/{name}/worksheets/{sheetName}/oleobjects/{objectNumber}"
159159
let namePreEscape = "\(name)"
160160
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
@@ -175,7 +175,7 @@ open class CellsOleObjectsAPI {
175175
"storage": storage
176176
])
177177

178-
let requestBuilder: RequestBuilder<NSURL>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
178+
let requestBuilder: RequestBuilder<Data>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
179179

180180
return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false)
181181
}

AsposeCellsCloud/Swaggers/APIs/CellsPicturesAPI.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ open class CellsPicturesAPI {
133133
- parameter storage: (query) storage name. (optional)
134134
- parameter completion: completion handler to receive the data and the error objects
135135
*/
136-
open class func cellsPicturesGetWorksheetPicture(name: String, sheetName: String, pictureIndex: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: NSURL?,_ error: Error?) -> Void)) {
136+
open class func cellsPicturesGetWorksheetPicture(name: String, sheetName: String, pictureIndex: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil, completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) {
137137
cellsPicturesGetWorksheetPictureWithRequestBuilder(name: name, sheetName: sheetName, pictureIndex: pictureIndex, format: format, folder: folder, storage: storage).execute { (response, error) -> Void in
138138
completion(response?.body, error)
139139
}
@@ -154,7 +154,7 @@ open class CellsPicturesAPI {
154154

155155
- returns: RequestBuilder<NSURL>
156156
*/
157-
open class func cellsPicturesGetWorksheetPictureWithRequestBuilder(name: String, sheetName: String, pictureIndex: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<NSURL> {
157+
open class func cellsPicturesGetWorksheetPictureWithRequestBuilder(name: String, sheetName: String, pictureIndex: Int32, format: String? = nil, folder: String? = nil, storage: String? = nil) -> RequestBuilder<Data> {
158158
var path = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}"
159159
let namePreEscape = "\(name)"
160160
let namePostEscape = namePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? ""
@@ -175,7 +175,7 @@ open class CellsPicturesAPI {
175175
"storage": storage
176176
])
177177

178-
let requestBuilder: RequestBuilder<NSURL>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
178+
let requestBuilder: RequestBuilder<Data>.Type = AsposeCellsCloudAPI.requestBuilderFactory.getNonDecodableBuilder()
179179

180180
return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false)
181181
}

AsposeCellsCloud/Swaggers/Models/Color.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import Foundation
1111

1212
public struct Color: Codable {
1313

14-
public var A: Int32
15-
public var B: Int32
16-
public var R: Int32
17-
public var G: Int32
14+
public var A: Int32?
15+
public var B: Int32?
16+
public var R: Int32?
17+
public var G: Int32?
1818

1919
public enum CodingKeys: String, CodingKey {
2020
case A = "A"
@@ -23,7 +23,7 @@ public enum CodingKeys: String, CodingKey {
2323
case G = "G"
2424
}
2525

26-
public init(A: Int32, B: Int32, R: Int32, G: Int32) {
26+
public init(A: Int32?, B: Int32?, R: Int32?, G: Int32?) {
2727
self.A = A
2828
self.B = B
2929
self.R = R

AsposeCellsCloud/Swaggers/Models/Range.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public struct Range: Codable {
1414
/** Gets the count of columns in the range. */
1515
public var columnCount: Int32
1616
/** Sets or gets the height of rows in this range */
17-
public var rowHeight: Double
17+
public var rowHeight: Double?
1818
/** Gets or sets the name of the range. */
1919
public var name: String?
2020
/** Gets the index of the first column of the range. */
@@ -42,7 +42,7 @@ public enum CodingKeys: String, CodingKey {
4242
case worksheet = "Worksheet"
4343
}
4444

45-
public init(columnCount: Int32, rowHeight: Double, name: String?, firstColumn: Int32, columnWidth: Double, refersTo: String?, rowCount: Int32, firstRow: Int32, worksheet: String?) {
45+
public init(columnCount: Int32, rowHeight: Double?, name: String?, firstColumn: Int32, columnWidth: Double, refersTo: String?, rowCount: Int32, firstRow: Int32, worksheet: String?) {
4646
self.columnCount = columnCount
4747
self.rowHeight = rowHeight
4848
self.name = name

AsposeCellsCloudTests/AsposeCellsCloudTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class AsposeCellsCloudTests: XCTestCase {
1414
internal let TEMPFOLDER = "Temp"
1515
internal let testDataFolder = "TestData"
1616
internal let BOOK1 = "Book1.xlsx"
17+
internal let MYDOC = "myDocument.xlsx"
18+
internal let PivTestFile = "TestCase.xlsx"
1719
internal let SHEET1 = "Sheet1"
1820
internal let SHEET2 = "Sheet2"
1921
internal let SHEET3 = "Sheet3"

0 commit comments

Comments
 (0)