@asposecloud/aspose-tasks-cloud 22.8.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
@@ -34,6 +34,10 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
34
34
  XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
35
35
 
36
36
 
37
+ ## Enhancements in Version 22.12
38
+ - Added new ability to read Primavera-specific task's properties.
39
+ - Provided the ability to read more document properties.
40
+
37
41
  ## Enhancements in Version 20.11
38
42
  - Support for the batch creation of tasks (i.e. the ability to create multiple tasks in a single *API* call).
39
43
 
package/dist/src/api.d.ts CHANGED
@@ -348,6 +348,11 @@ export declare class TasksApi {
348
348
  * @param requestObj contains request parameters
349
349
  */
350
350
  deleteTask(requestObj: model.DeleteTaskRequest): Promise<model.TasksIncomingMessage<model.AsposeResponse>>;
351
+ /**
352
+ * Get primavera properties for a task with the specified Uid.
353
+ * @param requestObj contains request parameters
354
+ */
355
+ getPrimaveraTaskProperties(requestObj: model.GetPrimaveraTaskPropertiesRequest): Promise<model.TasksIncomingMessage<model.PrimaveraTaskPropertiesResponse>>;
351
356
  /**
352
357
  * Read project task.
353
358
  * @param requestObj contains request parameters
package/dist/src/api.js CHANGED
@@ -2429,6 +2429,41 @@ class TasksApi {
2429
2429
  return Promise.resolve(result);
2430
2430
  });
2431
2431
  }
2432
+ /**
2433
+ * Get primavera properties for a task with the specified Uid.
2434
+ * @param requestObj contains request parameters
2435
+ */
2436
+ getPrimaveraTaskProperties(requestObj) {
2437
+ return __awaiter(this, void 0, void 0, function* () {
2438
+ if (requestObj === null || requestObj === undefined) {
2439
+ throw new Error('Required parameter "requestObj" was null or undefined when calling getPrimaveraTaskProperties.');
2440
+ }
2441
+ let localVarPath = this.configuration.getApiBaseUrl() + "/tasks/{name}/tasks/{taskUid}/primaveraProperties"
2442
+ .replace("{" + "name" + "}", String(requestObj.name))
2443
+ .replace("{" + "taskUid" + "}", String(requestObj.taskUid));
2444
+ const queryParameters = {};
2445
+ // verify required parameter 'requestObj.name' is not null or undefined
2446
+ if (requestObj.name === null || requestObj.name === undefined) {
2447
+ throw new Error('Required parameter "requestObj.name" was null or undefined when calling getPrimaveraTaskProperties.');
2448
+ }
2449
+ // verify required parameter 'requestObj.taskUid' is not null or undefined
2450
+ if (requestObj.taskUid === null || requestObj.taskUid === undefined) {
2451
+ throw new Error('Required parameter "requestObj.taskUid" was null or undefined when calling getPrimaveraTaskProperties.');
2452
+ }
2453
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "folder", requestObj.folder);
2454
+ localVarPath = (0, requestHelper_1.addQueryParameterToUrl)(localVarPath, queryParameters, "storage", requestObj.storage);
2455
+ const requestOptions = {
2456
+ method: "GET",
2457
+ qs: queryParameters,
2458
+ uri: localVarPath,
2459
+ json: true,
2460
+ };
2461
+ const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, this.configuration);
2462
+ const body = objectSerializer_1.ObjectSerializer.deserialize(response.body, "PrimaveraTaskPropertiesResponse");
2463
+ const result = { body, response };
2464
+ return Promise.resolve(result);
2465
+ });
2466
+ }
2432
2467
  /**
2433
2468
  * Read project task.
2434
2469
  * @param requestObj contains request parameters