asposeslidescloud 22.10.0 → 22.12.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
@@ -97,6 +97,12 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
97
97
  * Added **None** to the list of allowed values for **TimeUnitType** enum type.
98
98
  * **Level** property of **Category** class is deprecated and will be removed after v22.4.
99
99
 
100
+ ## Enhancements in Version 22.11
101
+
102
+ * You can now specify data sources for chart elements. This is done with new **DataSource** type which is use with propertries **Chart.DataSourceForCategories**, **Series.DataSourceForName**, **OneValueSeries.DataSourceForValues**, **XYSeries.DataSourceForXValues**, **XYSeries.DataSourceForYValues**, **BubbleSeries.DataSourceForBubbleSizeValues**.
103
+ * You can now specify formulas for data points using new properties **OneValueChartDataPoint.ValueFormula**, **ScatterChartDataPoint.XValueFormula**, **ScatterChartDataPoint.YValueFormula**, **BubbleChartDataPoint.BubbleSizeFormula**.
104
+ * Added boolean **UseFrameSize** and **UseFrameRotation** properties to **SvgExportOptions** class.
105
+
100
106
  ## Enhancements in Version 22.10
101
107
 
102
108
  * Added new **GetSlideShowProperties** and **SetSlideShowProperties** methods to get & set slideshow properties.
package/api.d.ts CHANGED
@@ -2150,7 +2150,7 @@ export declare class SlidesApi {
2150
2150
  body: model.Theme;
2151
2151
  }>;
2152
2152
  /**
2153
- * Read presentation document properties.
2153
+ * Read presentation view properties.
2154
2154
  * @param name Document name.
2155
2155
  * @param password Document password.
2156
2156
  * @param folder Document folder.
@@ -2884,7 +2884,7 @@ export declare class SlidesApi {
2884
2884
  body: model.SlideAnimation;
2885
2885
  }>;
2886
2886
  /**
2887
- * Update presentation document properties.
2887
+ * Update presentation view properties.
2888
2888
  * @param name Document name.
2889
2889
  * @param dto The view properties data.
2890
2890
  * @param password Document password.
package/api.js CHANGED
@@ -53,6 +53,9 @@ const requestHelper_1 = require("./internal/requestHelper");
53
53
  const model = require("./model");
54
54
  __exportStar(require("./model"), exports);
55
55
  class SlidesApi {
56
+ get configuration() {
57
+ return this._configuration;
58
+ }
56
59
  /**
57
60
  * @param appSid Client Id.
58
61
  * @param appKey Client Secret.
@@ -64,9 +67,6 @@ class SlidesApi {
64
67
  constructor(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout) {
65
68
  this._configuration = new configuration_1.Configuration(appSid, appKey, baseUrl, authBaseUrl, debugMode, timeout);
66
69
  }
67
- get configuration() {
68
- return this._configuration;
69
- }
70
70
  /**
71
71
  * Changes the placement of selected shapes on the slide. Aligns shapes to the margins or the edge of the slide or aligns them relative to each other.
72
72
  * @param name Document name.
@@ -7066,7 +7066,7 @@ class SlidesApi {
7066
7066
  });
7067
7067
  }
7068
7068
  /**
7069
- * Read presentation document properties.
7069
+ * Read presentation view properties.
7070
7070
  * @param name Document name.
7071
7071
  * @param password Document password.
7072
7072
  * @param folder Document folder.
@@ -9529,7 +9529,7 @@ class SlidesApi {
9529
9529
  });
9530
9530
  }
9531
9531
  /**
9532
- * Update presentation document properties.
9532
+ * Update presentation view properties.
9533
9533
  * @param name Document name.
9534
9534
  * @param dto The view properties data.
9535
9535
  * @param password Document password.
@@ -27,7 +27,7 @@ export declare class Configuration {
27
27
  */
28
28
  timeout: number;
29
29
  /**
30
- * Gets or sets a value indicating whether debug mode. In debug mode all requests and responses are logged to console.
30
+ * Gets or sets a value indicating whether debug mode is enabled. In debug mode all requests and responses are logged to console.
31
31
  */
32
32
  debugMode: boolean;
33
33
  /**
@@ -36,6 +36,10 @@ export declare class Configuration {
36
36
  customHeaders: {
37
37
  [key: string]: string;
38
38
  };
39
+ /**
40
+ * Gets or sets a value indicating whether insecure requests are allowed.
41
+ */
42
+ allowInsecureRequests: boolean;
39
43
  constructor(appSid: string, appKey: string, baseUrl?: string, authBaseUrl?: string, debugMode?: boolean, timeout?: number);
40
44
  /**
41
45
  * Returns api base url
@@ -50,6 +50,7 @@ class Configuration {
50
50
  this.debugMode = debugMode;
51
51
  this.timeout = timeout;
52
52
  this.customHeaders = {};
53
+ this.allowInsecureRequests = false;
53
54
  }
54
55
  /**
55
56
  * Returns api base url
@@ -130,10 +130,10 @@ exports.addHeaderParameter = addHeaderParameter;
130
130
  /**
131
131
  * Invoke api method
132
132
  * @param requestOptions request parameters
133
- * @param confguration api configuration
133
+ * @param configuration api configuration
134
134
  * @param notApplyAuthToRequest if setted to true, auth is not applied to request
135
135
  */
136
- function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToRequest) {
136
+ function invokeApiMethodInternal(requestOptions, configuration, notApplyAuthToRequest) {
137
137
  return __awaiter(this, void 0, void 0, function* () {
138
138
  requestDebug(request, (type, data, r) => {
139
139
  if (r.writeDebugToConsole) {
@@ -143,18 +143,21 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
143
143
  console.log(JSON.stringify(toLog, undefined, 2));
144
144
  }
145
145
  });
146
+ if (configuration.allowInsecureRequests) {
147
+ requestOptions.rejectUnauthorized = false;
148
+ }
146
149
  if (!requestOptions.headers) {
147
150
  requestOptions.headers = {};
148
151
  }
149
- requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.10.0";
150
- if (confguration.timeout) {
151
- requestOptions.headers["x-aspose-timeout"] = confguration.timeout;
152
+ requestOptions.headers["x-aspose-client"] = "nodejs sdk v22.12.0";
153
+ if (configuration.timeout) {
154
+ requestOptions.headers["x-aspose-timeout"] = configuration.timeout;
152
155
  }
153
- for (var key in confguration.customHeaders) {
154
- requestOptions.headers[key] = confguration.customHeaders[key];
156
+ for (var key in configuration.customHeaders) {
157
+ requestOptions.headers[key] = configuration.customHeaders[key];
155
158
  }
156
159
  if (!notApplyAuthToRequest) {
157
- yield addAuthHeader(requestOptions, confguration);
160
+ yield addAuthHeader(requestOptions, configuration);
158
161
  }
159
162
  return new Promise((resolve, reject) => {
160
163
  const r = request(requestOptions, (error, response) => __awaiter(this, void 0, void 0, function* () {
@@ -166,7 +169,7 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
166
169
  resolve(response);
167
170
  }
168
171
  else if (!notApplyAuthToRequest && response.statusCode === 401) {
169
- yield requestToken(confguration);
172
+ yield requestToken(configuration);
170
173
  reject(new NeedRepeatException());
171
174
  }
172
175
  else {
@@ -200,7 +203,7 @@ function invokeApiMethodInternal(requestOptions, confguration, notApplyAuthToReq
200
203
  }
201
204
  }
202
205
  }));
203
- r.writeDebugToConsole = confguration.debugMode;
206
+ r.writeDebugToConsole = configuration.debugMode;
204
207
  });
205
208
  });
206
209
  }