asposeslidescloud 24.8.0 → 24.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,6 +27,10 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
27
27
  **Web:** HTML/HTML5
28
28
  **Other:** MPEG4, SWF (export whole presentations)
29
29
 
30
+ ## Enhancements in Version 24.9
31
+
32
+ * Added **Upload** and **Download** methods to async API. They are identical to **UploadFile** and **DownloadFile** methods of the regular API, but file size is not restricted for them.
33
+
30
34
  ## Enhancements in Version 24.8
31
35
 
32
36
  * Added **StartSplit** and **StartUploadAndSplit** methods to async API.
package/api.d.ts CHANGED
@@ -3731,6 +3731,16 @@ export declare class SlidesAsyncApi {
3731
3731
  * @param timeout Timeout (in seconds) for an operation. Applies to the Slides operation, not to the HTTP request.
3732
3732
  */
3733
3733
  constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
3734
+ /**
3735
+ *
3736
+ * @param path
3737
+ * @param storageName
3738
+ * @param versionId
3739
+ */
3740
+ download(path?: string, storageName?: string, versionId?: string): Promise<{
3741
+ response: http.ServerResponse;
3742
+ body: Buffer;
3743
+ }>;
3734
3744
  /**
3735
3745
  *
3736
3746
  * @param id
@@ -3865,4 +3875,14 @@ export declare class SlidesAsyncApi {
3865
3875
  response: http.ServerResponse;
3866
3876
  body: string;
3867
3877
  }>;
3878
+ /**
3879
+ *
3880
+ * @param path
3881
+ * @param file File to upload
3882
+ * @param storageName
3883
+ */
3884
+ upload(path: string, file: Readable, storageName?: string): Promise<{
3885
+ response: http.ServerResponse;
3886
+ body: model.FilesUploadResult;
3887
+ }>;
3868
3888
  }
package/api.js CHANGED
@@ -12322,6 +12322,30 @@ class SlidesAsyncApi {
12322
12322
  constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout) {
12323
12323
  this._configuration = new configuration_1.Configuration(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout);
12324
12324
  }
12325
+ /**
12326
+ *
12327
+ * @param path
12328
+ * @param storageName
12329
+ * @param versionId
12330
+ */
12331
+ download(path = null, storageName = null, versionId = null) {
12332
+ return __awaiter(this, void 0, void 0, function* () {
12333
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/storage/file/{path}";
12334
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
12335
+ const queryParameters = {};
12336
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storageName", storageName);
12337
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "versionId", versionId);
12338
+ const requestOptions = {
12339
+ method: "GET",
12340
+ url: localVarPath,
12341
+ responseType: 'arraybuffer',
12342
+ params: queryParameters
12343
+ };
12344
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
12345
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "Buffer");
12346
+ return Promise.resolve({ body: result, response });
12347
+ });
12348
+ }
12325
12349
  /**
12326
12350
  *
12327
12351
  * @param id
@@ -12739,5 +12763,36 @@ class SlidesAsyncApi {
12739
12763
  return Promise.resolve({ body: result, response });
12740
12764
  });
12741
12765
  }
12766
+ /**
12767
+ *
12768
+ * @param path
12769
+ * @param file File to upload
12770
+ * @param storageName
12771
+ */
12772
+ upload(path = null, file, storageName = null) {
12773
+ return __awaiter(this, void 0, void 0, function* () {
12774
+ // verify required parameter 'file' is not null or undefined
12775
+ if (file === null || file === undefined) {
12776
+ throw new Error('The required parameter "file" was null or undefined when calling upload.');
12777
+ }
12778
+ let localVarPath = this.configuration.getApiBaseUrl() + "/slides/async/storage/file/{path}";
12779
+ localVarPath = (0, requestHelper_1.addPathParameterToUrl)(localVarPath, "path", objectSerializer_1.ObjectSerializer.toString(path));
12780
+ const queryParameters = {};
12781
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storageName", storageName);
12782
+ const requestOptions = {
12783
+ method: "PUT",
12784
+ url: localVarPath,
12785
+ params: queryParameters
12786
+ };
12787
+ let localVarFiles = [];
12788
+ if (file != null) {
12789
+ localVarFiles.push(file);
12790
+ }
12791
+ (0, requestHelper_1.checkMultipartContent)(requestOptions, localVarFiles);
12792
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
12793
+ const result = objectSerializer_1.ObjectSerializer.deserialize(response.body, "FilesUploadResult");
12794
+ return Promise.resolve({ body: result, response });
12795
+ });
12796
+ }
12742
12797
  }
12743
12798
  exports.SlidesAsyncApi = SlidesAsyncApi;
@@ -169,7 +169,7 @@ function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRe
169
169
  if (!requestOptions.headers) {
170
170
  requestOptions.headers = {};
171
171
  }
172
- requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.8.0";
172
+ requestOptions.headers["x-aspose-client"] = "nodejs sdk v24.9.0";
173
173
  if (configuration.timeout) {
174
174
  requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
175
175
  }
package/model.d.ts CHANGED
@@ -471,7 +471,7 @@ export declare class ShapeBase extends ResourceBase {
471
471
  /**
472
472
  * Gets z-order position of shape
473
473
  */
474
- zOrderPosition: number;
474
+ zOrderPosition?: number;
475
475
  /**
476
476
  * Gets or sets the fill format.
477
477
  */
@@ -8122,11 +8122,11 @@ export declare class TableRow {
8122
8122
  /**
8123
8123
  * Minimal height of the row.
8124
8124
  */
8125
- minimalHeight: number;
8125
+ minimalHeight?: number;
8126
8126
  /**
8127
8127
  * Height of the row.
8128
8128
  */
8129
- height: number;
8129
+ height?: number;
8130
8130
  }
8131
8131
  /**
8132
8132
  * Represents text bounds within a paragraph or portion.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asposeslidescloud",
3
- "version": "24.8.0",
3
+ "version": "24.9.0",
4
4
  "description": "Aspose.Slides Cloud SDK for Node.js",
5
5
  "homepage": "https://products.aspose.cloud/slides/cloud",
6
6
  "author": {