@asposecloud/aspose-tasks-cloud 21.2.0 → 22.7.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/LICENSE +21 -21
- package/README.md +85 -85
- package/dist/src/api.js +352 -351
- package/dist/src/api.js.map +1 -1
- package/dist/src/internal/auth.js +2 -1
- package/dist/src/internal/auth.js.map +1 -1
- package/dist/src/internal/configuration.js +1 -0
- package/dist/src/internal/configuration.js.map +1 -1
- package/dist/src/internal/objectSerializer.js +1 -0
- package/dist/src/internal/objectSerializer.js.map +1 -1
- package/dist/src/internal/requestHelper.d.ts +1 -1
- package/dist/src/internal/requestHelper.js +3 -2
- package/dist/src/internal/requestHelper.js.map +1 -1
- package/dist/src/model/model.d.ts +29 -4
- package/dist/src/model/model.js +35 -0
- package/dist/src/model/model.js.map +1 -1
- package/dist/test/apiCoverageTest.js +2 -2
- package/dist/test/apiCoverageTest.js.map +1 -1
- package/dist/test/assignmentsTests.js +63 -63
- package/dist/test/assignmentsTests.js.map +1 -1
- package/dist/test/baseTest.js +1 -0
- package/dist/test/baseTest.js.map +1 -1
- package/dist/test/calendarExceptionsTests.js +45 -45
- package/dist/test/calendarExceptionsTests.js.map +1 -1
- package/dist/test/calendarWorkWeeksTests.js +29 -29
- package/dist/test/calendarWorkWeeksTests.js.map +1 -1
- package/dist/test/calendarsTests.js +41 -41
- package/dist/test/calendarsTests.js.map +1 -1
- package/dist/test/documentPropertiesTests.js +12 -12
- package/dist/test/documentPropertiesTests.js.map +1 -1
- package/dist/test/extendedAttributesTests.js +46 -46
- package/dist/test/extendedAttributesTests.js.map +1 -1
- package/dist/test/getPageCountTests.js +4 -4
- package/dist/test/getPageCountTests.js.map +1 -1
- package/dist/test/importProjectTests.js +14 -14
- package/dist/test/importProjectTests.js.map +1 -1
- package/dist/test/outlineCodesTests.js +11 -11
- package/dist/test/outlineCodesTests.js.map +1 -1
- package/dist/test/projectOnlineTests.js +10 -10
- package/dist/test/projectOnlineTests.js.map +1 -1
- package/dist/test/readProjectTests.js +5 -5
- package/dist/test/readProjectTests.js.map +1 -1
- package/dist/test/recalculationTests.js +9 -9
- package/dist/test/recalculationTests.js.map +1 -1
- package/dist/test/recurringInfoTests.js +24 -24
- package/dist/test/recurringInfoTests.js.map +1 -1
- package/dist/test/reportTests.js +8 -8
- package/dist/test/reportTests.js.map +1 -1
- package/dist/test/resourcesTests.js +26 -26
- package/dist/test/resourcesTests.js.map +1 -1
- package/dist/test/storage/fileTests.js +14 -14
- package/dist/test/storage/fileTests.js.map +1 -1
- package/dist/test/storage/folderTests.js +14 -14
- package/dist/test/storage/folderTests.js.map +1 -1
- package/dist/test/storage/storageTests.js +8 -8
- package/dist/test/storage/storageTests.js.map +1 -1
- package/dist/test/taskDocumentFormatTests.js +10 -10
- package/dist/test/taskDocumentFormatTests.js.map +1 -1
- package/dist/test/taskLinksTests.js +12 -12
- package/dist/test/taskLinksTests.js.map +1 -1
- package/dist/test/tasksExtendedAttributesTests.js +71 -85
- package/dist/test/tasksExtendedAttributesTests.js.map +1 -1
- package/dist/test/tasksTests.js +53 -53
- package/dist/test/tasksTests.js.map +1 -1
- package/dist/test/timephasedDataTests.js +15 -15
- package/dist/test/timephasedDataTests.js.map +1 -1
- package/dist/test/vbaTests.js +6 -6
- package/dist/test/vbaTests.js.map +1 -1
- package/dist/test/wbsTest.js +4 -4
- package/dist/test/wbsTest.js.map +1 -1
- package/package.json +47 -47
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Aspose.Tasks Cloud
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
    [](LICENSE) 
|
|
2
|
-
|
|
3
|
-
# Manipulate Project Files
|
|
4
|
-
|
|
5
|
-
Aspose.Tasks for Cloud offers the ability to manipulate and convert Microsoft Project MPT, MPP, MPX & Oracle Primavera XER, XML, and PrimaveraP6XML files in
|
|
6
|
-
|
|
7
|
-
Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/taskscloud/Developer+Guide) & [API Reference](https://apireference.aspose.cloud/tasks/) to know all about Aspose.Tasks Cloud API.
|
|
8
|
-
|
|
9
|
-
## MS Project Processing Features
|
|
10
|
-
- Add project assignments or delete project assignments along with their references.
|
|
11
|
-
- Get the project's outline codes by index & get links to all project tasks.
|
|
12
|
-
- Import projects from Primavera DB formats or from databases with the specified connection string.
|
|
13
|
-
- Get UIDs of all projects contained in the file & fetch the required assignment with the project based on UID.
|
|
14
|
-
- Manage project tasks, resource data, calendars & Work Breakdown Structure (WBS).
|
|
15
|
-
- Perform risk analysis using Monte Carlo simulation and create a report.
|
|
16
|
-
- Create and set project document properties & fetch all or specific existing properties.
|
|
17
|
-
- Get a project's extended attributes, time-scaled data, or recurring info of a specific task.
|
|
18
|
-
- Reschedule project tasks, dates, and other settings.
|
|
19
|
-
- Calculate slacks & recalculate project completion or incompletion work.
|
|
20
|
-
- Fetch a project document in the desired format.
|
|
21
|
-
- Delete project task with its related references & rebuild the task tree.
|
|
22
|
-
- [Convert project documents](https://docs.aspose.cloud/tasks/convert-project-document-to-the-specified-format/) to other formats.
|
|
23
|
-
- Manipulate task data.
|
|
24
|
-
- [Manage project's resources](https://docs.aspose.cloud/tasks/working-with-resources/).
|
|
25
|
-
- Handle task links & task assignments.
|
|
26
|
-
- Work with project's extended attributes.
|
|
27
|
-
- [Read Microsoft Project’s document properties](https://docs.aspose.cloud/tasks/working-with-calendars/) such as start and finish date, tasks scheduling types and so on.
|
|
28
|
-
- [Read Microsoft Project’s Calendars](https://docs.aspose.cloud/tasks/working-with-calendars/) and Calendar Exceptions information.
|
|
29
|
-
|
|
30
|
-
## Read & Write Project Data
|
|
31
|
-
**Microsoft Project** MPP, XML, MPT **Primavera** MPX
|
|
32
|
-
|
|
33
|
-
## Save Project Data As
|
|
34
|
-
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## Enhancements in Version 20.11
|
|
38
|
-
- Support for the batch creation of tasks (i.e. the ability to create multiple tasks in a single *API* call).
|
|
39
|
-
|
|
40
|
-
## Enhancements in Version 20.8
|
|
41
|
-
- Ability to specify the non-default path for Project Server's *PWA* URL.
|
|
42
|
-
- Ability to modify *timephasedData* collection in assignments.
|
|
43
|
-
|
|
44
|
-
## Enhancements in Version 20.6
|
|
45
|
-
- Possibility to render comments when saving as image, HTML or PDF.
|
|
46
|
-
- Option to use username and password to connect Project Online (Server) instead of auth token, incase you don't have it.
|
|
47
|
-
- Ability to add assignments to your project file along with specifying its cost.
|
|
48
|
-
- Quickly adding new tasks to project, when calculation mode is set to automatic.
|
|
49
|
-
- Ability to add project in Microsoft Project Server.
|
|
50
|
-
- Added support of reading shared resource assignments.
|
|
51
|
-
|
|
52
|
-
## Get Started with Aspose.Tasks Cloud SDK for Node.js
|
|
53
|
-
|
|
54
|
-
Register an account at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) to get you application information. Next, execute `npm i @asposecloud/aspose-tasks-cloud` from the command line to install Aspose.Tasks Cloud SDK for Node.js via NPM.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
##
|
|
58
|
-
|
|
59
|
-
```js
|
|
60
|
-
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
|
|
61
|
-
const tasksApi = new TasksApi("MY_CLIENT_ID", "MY_CLIENT_SECRET");
|
|
62
|
-
|
|
63
|
-
const request:
|
|
64
|
-
|
|
65
|
-
tasksApi.
|
|
66
|
-
.then((result) => {
|
|
67
|
-
// Deal with a result
|
|
68
|
-
console.log(result.response.statusCode);
|
|
69
|
-
console.log(result.body);
|
|
70
|
-
})
|
|
71
|
-
.catch(function(err) {
|
|
72
|
-
// Deal with an error
|
|
73
|
-
console.log(err.reponse.statusCode);
|
|
74
|
-
console.log(err.body);
|
|
75
|
-
});
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Aspose.Tasks Cloud SDKs in Popular Languages
|
|
79
|
-
|
|
80
|
-
| .NET | PHP | Python| Node.js | Go |
|
|
81
|
-
|---|---|---|---|---|
|
|
82
|
-
| [GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-dotnet) |[GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-php) | [GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-python) | [GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node) |[GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-go)|
|
|
83
|
-
| [NuGet](https://www.nuget.org/packages/Aspose.tasks-Cloud/)| [Composer](https://packagist.org/packages/aspose/tasks-cloud-php) | [PIP](https://pypi.org/project/aspose-tasks-cloud/) | [NPM](https://www.npmjs.com/package/@asposecloud/aspose-tasks-cloud) | [Go.Dev](https://pkg.go.dev/github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/) |
|
|
84
|
-
|
|
85
|
-
[Product Page](https://products.aspose.cloud/tasks/nodejs) | [Documentation](https://docs.aspose.cloud/display/taskscloud/Home) | [API Reference](https://apireference.aspose.cloud/tasks/) | [Code Samples](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node) | [Blog](https://blog.aspose.cloud/category/tasks/) | [Free Support](https://forum.aspose.cloud/c/tasks) | [Free Trial](https://dashboard.aspose.cloud/#/apps)
|
|
1
|
+
    [](LICENSE) 
|
|
2
|
+
|
|
3
|
+
# Manipulate MS Project Files in Node.js via Cloud REST API
|
|
4
|
+
|
|
5
|
+
Aspose.Tasks for Cloud offers the ability to manipulate and convert Microsoft Project MPT, MPP, MPX & Oracle Primavera XER, XML, and PrimaveraP6XML files in Node.js. [Aspose.Tasks Cloud SDK for Node.js](https://products.aspose.cloud/tasks/nodejs) wraps the REST API to make it easier for the developers to integrate MS Project Task Management features in their own cloud-based Node.js applications on Linux, MacOS, Windows or Android.
|
|
6
|
+
|
|
7
|
+
Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/taskscloud/Developer+Guide) & [API Reference](https://apireference.aspose.cloud/tasks/) to know all about Aspose.Tasks Cloud API.
|
|
8
|
+
|
|
9
|
+
## MS Project Processing Features
|
|
10
|
+
- Add project assignments or delete project assignments along with their references.
|
|
11
|
+
- Get the project's outline codes by index & get links to all project tasks.
|
|
12
|
+
- Import projects from Primavera DB formats or from databases with the specified connection string.
|
|
13
|
+
- Get UIDs of all projects contained in the file & fetch the required assignment with the project based on UID.
|
|
14
|
+
- Manage project tasks, resource data, calendars & Work Breakdown Structure (WBS).
|
|
15
|
+
- Perform risk analysis using Monte Carlo simulation and create a report.
|
|
16
|
+
- Create and set project document properties & fetch all or specific existing properties.
|
|
17
|
+
- Get a project's extended attributes, time-scaled data, or recurring info of a specific task.
|
|
18
|
+
- Reschedule project tasks, dates, and other settings.
|
|
19
|
+
- Calculate slacks & recalculate project completion or incompletion work.
|
|
20
|
+
- Fetch a project document in the desired format.
|
|
21
|
+
- Delete project task with its related references & rebuild the task tree.
|
|
22
|
+
- [Convert project documents](https://docs.aspose.cloud/tasks/convert-project-document-to-the-specified-format/) to other formats.
|
|
23
|
+
- Manipulate task data.
|
|
24
|
+
- [Manage project's resources](https://docs.aspose.cloud/tasks/working-with-resources/).
|
|
25
|
+
- Handle task links & task assignments.
|
|
26
|
+
- Work with project's extended attributes.
|
|
27
|
+
- [Read Microsoft Project’s document properties](https://docs.aspose.cloud/tasks/working-with-calendars/) such as start and finish date, tasks scheduling types and so on.
|
|
28
|
+
- [Read Microsoft Project’s Calendars](https://docs.aspose.cloud/tasks/working-with-calendars/) and Calendar Exceptions information.
|
|
29
|
+
|
|
30
|
+
## Read & Write Project Data
|
|
31
|
+
**Microsoft Project** MPP, XML, MPT **Primavera** MPX
|
|
32
|
+
|
|
33
|
+
## Save Project Data As
|
|
34
|
+
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Enhancements in Version 20.11
|
|
38
|
+
- Support for the batch creation of tasks (i.e. the ability to create multiple tasks in a single *API* call).
|
|
39
|
+
|
|
40
|
+
## Enhancements in Version 20.8
|
|
41
|
+
- Ability to specify the non-default path for Project Server's *PWA* URL.
|
|
42
|
+
- Ability to modify *timephasedData* collection in assignments.
|
|
43
|
+
|
|
44
|
+
## Enhancements in Version 20.6
|
|
45
|
+
- Possibility to render comments when saving as image, HTML or PDF.
|
|
46
|
+
- Option to use username and password to connect Project Online (Server) instead of auth token, incase you don't have it.
|
|
47
|
+
- Ability to add assignments to your project file along with specifying its cost.
|
|
48
|
+
- Quickly adding new tasks to project, when calculation mode is set to automatic.
|
|
49
|
+
- Ability to add project in Microsoft Project Server.
|
|
50
|
+
- Added support of reading shared resource assignments.
|
|
51
|
+
|
|
52
|
+
## Get Started with Aspose.Tasks Cloud SDK for Node.js
|
|
53
|
+
|
|
54
|
+
Register an account at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) to get you application information. Next, execute `npm i @asposecloud/aspose-tasks-cloud` from the command line to install Aspose.Tasks Cloud SDK for Node.js via NPM.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## Convert MS Project MPP to PDF in Node.Js
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
|
|
61
|
+
const tasksApi = new TasksApi("MY_CLIENT_ID", "MY_CLIENT_SECRET");
|
|
62
|
+
|
|
63
|
+
const request: GetReportPdfRequest = { name: "template.mpp", folder: "documents", storage: "", type: ReportType.Milestones}
|
|
64
|
+
|
|
65
|
+
tasksApi.getReportPdf(request)
|
|
66
|
+
.then((result) => {
|
|
67
|
+
// Deal with a result
|
|
68
|
+
console.log(result.response.statusCode);
|
|
69
|
+
console.log(result.body.buffer);
|
|
70
|
+
})
|
|
71
|
+
.catch(function(err) {
|
|
72
|
+
// Deal with an error
|
|
73
|
+
console.log(err.reponse.statusCode);
|
|
74
|
+
console.log(err.body);
|
|
75
|
+
});
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Aspose.Tasks Cloud SDKs in Popular Languages
|
|
79
|
+
|
|
80
|
+
| .NET | PHP | Python| Node.js | Go |
|
|
81
|
+
|---|---|---|---|---|
|
|
82
|
+
| [GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-dotnet) |[GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-php) | [GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-python) | [GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node) |[GitHub](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-go)|
|
|
83
|
+
| [NuGet](https://www.nuget.org/packages/Aspose.tasks-Cloud/)| [Composer](https://packagist.org/packages/aspose/tasks-cloud-php) | [PIP](https://pypi.org/project/aspose-tasks-cloud/) | [NPM](https://www.npmjs.com/package/@asposecloud/aspose-tasks-cloud) | [Go.Dev](https://pkg.go.dev/github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/) |
|
|
84
|
+
|
|
85
|
+
[Product Page](https://products.aspose.cloud/tasks/nodejs) | [Documentation](https://docs.aspose.cloud/display/taskscloud/Home) | [API Reference](https://apireference.aspose.cloud/tasks/) | [Code Samples](https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-node) | [Blog](https://blog.aspose.cloud/category/tasks/) | [Free Support](https://forum.aspose.cloud/c/tasks) | [Free Trial](https://dashboard.aspose.cloud/#/apps)
|