Skip to content

Commit 4101406

Browse files
committedOct 31, 2024
[TASKSCLOUD-863] - Deployed new 24.10 version.
1 parent 3559339 commit 4101406

7 files changed

+267
-7
lines changed
 

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
3333
## Save Project Data As
3434
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
3535

36+
## Enhancements in Version 24.10
37+
- Enhanced reading data from Primavera-specific task's properties.
3638

3739
## Enhancements in Version 24.4
3840
- Added new ability to get views information

‎package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@asposecloud/aspose-tasks-cloud",
3-
"version": "24.4.0",
3+
"version": "24.10.0",
44
"description": "Aspose.Tasks Cloud SDK for Node.js",
55
"homepage": "https://products.aspose.cloud/tasks",
66
"readmeFilename": "README.md",

‎src/internal/requestHelper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ async function invokeApiMethodInternal(requestOptions: request.Options, confgura
106106
//headers
107107
sa.set("User-Agent", "tasks nodejs sdk");
108108
sa.set("x-aspose-client", "nodejs sdk");
109-
sa.set("x-aspose-client-version", "24.4");
109+
sa.set("x-aspose-client-version", "24.10");
110110

111111
if (!requestOptions.headers) {
112112
requestOptions.headers = {};

‎src/model/model.ts

+255-1
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,11 @@ export class Calendar {
282282
* Attribute type map
283283
*/
284284
public static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
285+
{
286+
name: "guid",
287+
baseName: "guid",
288+
type: "string",
289+
},
285290
{
286291
name: "name",
287292
baseName: "name",
@@ -320,6 +325,11 @@ export class Calendar {
320325
return Calendar.attributeTypeMap;
321326
}
322327

328+
/**
329+
* Gets calendar's Guid.
330+
*/
331+
public guid: string;
332+
323333
/**
324334
* The name of the calendar.
325335
*/
@@ -3581,6 +3591,37 @@ export enum PresentationFormat {
35813591
ResourceSheet = 'ResourceSheet' as any,
35823592
TaskSheet = 'TaskSheet' as any,
35833593
}
3594+
/**
3595+
* Specifies type of Primavera activity.
3596+
*/
3597+
export enum PrimaveraActivityType {
3598+
None = 'None' as any,
3599+
StartMilestone = 'StartMilestone' as any,
3600+
FinishMilestone = 'FinishMilestone' as any,
3601+
TaskDependent = 'TaskDependent' as any,
3602+
ResourceDependent = 'ResourceDependent' as any,
3603+
LevelOfEffort = 'LevelOfEffort' as any,
3604+
WbsSummary = 'WbsSummary' as any,
3605+
}
3606+
/**
3607+
* Specifies duration type of Primavera activity.
3608+
*/
3609+
export enum PrimaveraDurationType {
3610+
None = 'None' as any,
3611+
FixedDurationUnits = 'FixedDurationUnits' as any,
3612+
FixedDurationUnitsTime = 'FixedDurationUnitsTime' as any,
3613+
FixedUnits = 'FixedUnits' as any,
3614+
FixedUnitsTime = 'FixedUnitsTime' as any,
3615+
}
3616+
/**
3617+
* Specifies value of '% Complete Type' field for Primavera activities.
3618+
*/
3619+
export enum PrimaveraPercentCompleteType {
3620+
None = 'None' as any,
3621+
Duration = 'Duration' as any,
3622+
Physical = 'Physical' as any,
3623+
Units = 'Units' as any,
3624+
}
35843625
/**
35853626
* Represents Primavera-specific properties for a task read from Primavera format (XER of P6XML).
35863627
*/
@@ -3639,6 +3680,111 @@ export class PrimaveraTaskProperties {
36393680
name: "rawStatus",
36403681
baseName: "rawStatus",
36413682
type: "string",
3683+
},
3684+
{
3685+
name: "durationPercentComplete",
3686+
baseName: "durationPercentComplete",
3687+
type: "number",
3688+
},
3689+
{
3690+
name: "physicalPercentComplete",
3691+
baseName: "physicalPercentComplete",
3692+
type: "number",
3693+
},
3694+
{
3695+
name: "actualNonLaborUnits",
3696+
baseName: "actualNonLaborUnits",
3697+
type: "number",
3698+
},
3699+
{
3700+
name: "actualLaborUnits",
3701+
baseName: "actualLaborUnits",
3702+
type: "number",
3703+
},
3704+
{
3705+
name: "unitsPercentComplete",
3706+
baseName: "unitsPercentComplete",
3707+
type: "number",
3708+
},
3709+
{
3710+
name: "remainingLaborUnits",
3711+
baseName: "remainingLaborUnits",
3712+
type: "number",
3713+
},
3714+
{
3715+
name: "remainingNonLaborUnits",
3716+
baseName: "remainingNonLaborUnits",
3717+
type: "number",
3718+
},
3719+
{
3720+
name: "durationType",
3721+
baseName: "durationType",
3722+
type: "PrimaveraDurationType",
3723+
},
3724+
{
3725+
name: "activityType",
3726+
baseName: "activityType",
3727+
type: "PrimaveraActivityType",
3728+
},
3729+
{
3730+
name: "percentCompleteType",
3731+
baseName: "percentCompleteType",
3732+
type: "PrimaveraPercentCompleteType",
3733+
},
3734+
{
3735+
name: "actualLaborCost",
3736+
baseName: "actualLaborCost",
3737+
type: "number",
3738+
},
3739+
{
3740+
name: "actualNonlaborCost",
3741+
baseName: "actualNonlaborCost",
3742+
type: "number",
3743+
},
3744+
{
3745+
name: "actualMaterialCost",
3746+
baseName: "actualMaterialCost",
3747+
type: "number",
3748+
},
3749+
{
3750+
name: "actualExpenseCost",
3751+
baseName: "actualExpenseCost",
3752+
type: "number",
3753+
},
3754+
{
3755+
name: "remainingExpenseCost",
3756+
baseName: "remainingExpenseCost",
3757+
type: "number",
3758+
},
3759+
{
3760+
name: "actualTotalCost",
3761+
baseName: "actualTotalCost",
3762+
type: "number",
3763+
},
3764+
{
3765+
name: "budgetedTotalCost",
3766+
baseName: "budgetedTotalCost",
3767+
type: "number",
3768+
},
3769+
{
3770+
name: "budgetedLaborCost",
3771+
baseName: "budgetedLaborCost",
3772+
type: "number",
3773+
},
3774+
{
3775+
name: "budgetedNonlaborCost",
3776+
baseName: "budgetedNonlaborCost",
3777+
type: "number",
3778+
},
3779+
{
3780+
name: "budgetedMaterialCost",
3781+
baseName: "budgetedMaterialCost",
3782+
type: "number",
3783+
},
3784+
{
3785+
name: "budgetedExpenseCost",
3786+
baseName: "budgetedExpenseCost",
3787+
type: "number",
36423788
} ];
36433789

36443790
/**
@@ -3698,6 +3844,111 @@ export class PrimaveraTaskProperties {
36983844
*/
36993845
public rawStatus: string;
37003846

3847+
/**
3848+
* Gets the value of duration percent complete.
3849+
*/
3850+
public durationPercentComplete: number;
3851+
3852+
/**
3853+
* Gets the value of Physical Percent Complete.
3854+
*/
3855+
public physicalPercentComplete: number;
3856+
3857+
/**
3858+
* Gets the value of actual non labor units.
3859+
*/
3860+
public actualNonLaborUnits: number;
3861+
3862+
/**
3863+
* Gets the value of actual labor units.
3864+
*/
3865+
public actualLaborUnits: number;
3866+
3867+
/**
3868+
* Gets the value of units percent complete.
3869+
*/
3870+
public unitsPercentComplete: number;
3871+
3872+
/**
3873+
* Gets the value of remaining labor units.
3874+
*/
3875+
public remainingLaborUnits: number;
3876+
3877+
/**
3878+
* Gets the value of remaining non labor units.
3879+
*/
3880+
public remainingNonLaborUnits: number;
3881+
3882+
/**
3883+
* Gets the value of 'Duration Type' field of the activity.
3884+
*/
3885+
public durationType: PrimaveraDurationType;
3886+
3887+
/**
3888+
* Gets the value of 'Activity Type' field.
3889+
*/
3890+
public activityType: PrimaveraActivityType;
3891+
3892+
/**
3893+
* Gets the value of '% Complete Type' field of the activity.
3894+
*/
3895+
public percentCompleteType: PrimaveraPercentCompleteType;
3896+
3897+
/**
3898+
* Gets the value of actual labor cost.
3899+
*/
3900+
public actualLaborCost: number;
3901+
3902+
/**
3903+
* Gets the value of actual non labor cost.
3904+
*/
3905+
public actualNonlaborCost: number;
3906+
3907+
/**
3908+
* Gets the value of actual material cost.
3909+
*/
3910+
public actualMaterialCost: number;
3911+
3912+
/**
3913+
* Gets the value of actual expense cost.
3914+
*/
3915+
public actualExpenseCost: number;
3916+
3917+
/**
3918+
* Gets the value of remaining expense cost.
3919+
*/
3920+
public remainingExpenseCost: number;
3921+
3922+
/**
3923+
* Gets the total value of actual costs.
3924+
*/
3925+
public actualTotalCost: number;
3926+
3927+
/**
3928+
* Gets the total value of budgeted (or planned) costs.
3929+
*/
3930+
public budgetedTotalCost: number;
3931+
3932+
/**
3933+
* Gets the value of budgeted (or planned) labor cost.
3934+
*/
3935+
public budgetedLaborCost: number;
3936+
3937+
/**
3938+
* Gets the value of budgeted (or planned) non labor cost.
3939+
*/
3940+
public budgetedNonlaborCost: number;
3941+
3942+
/**
3943+
* Gets the value of of budgeted (or planned) material cost.
3944+
*/
3945+
public budgetedMaterialCost: number;
3946+
3947+
/**
3948+
* Gets the value of budgeted (or planned) expense cost.
3949+
*/
3950+
public budgetedExpenseCost: number;
3951+
37013952
public constructor(init?: Partial<PrimaveraTaskProperties>) {
37023953

37033954
Object.assign(this, init);
@@ -7950,7 +8201,7 @@ export class View {
79508201
public screen: ViewScreen;
79518202

79528203
/**
7953-
* Gets or sets the name of a View object.
8204+
* Gets or sets the name of a view object.
79548205
*/
79558206
public name: string;
79568207

@@ -9906,6 +10157,9 @@ const enumsMap = {
990610157
"OutlineValueType": OutlineValueType,
990710158
"PageSize": PageSize,
990810159
"PresentationFormat": PresentationFormat,
10160+
"PrimaveraActivityType": PrimaveraActivityType,
10161+
"PrimaveraDurationType": PrimaveraDurationType,
10162+
"PrimaveraPercentCompleteType": PrimaveraPercentCompleteType,
990910163
"ProbabilityDistributionType": ProbabilityDistributionType,
991010164
"ProjectDatabaseType": ProjectDatabaseType,
991110165
"ProjectFileFormat": ProjectFileFormat,

‎test/calendarsTests.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ describe("getCalendar function", () => {
6969
const result = await tasksApi.getCalendar(request);
7070

7171
expect(result.response.statusCode).to.equal(200);
72+
expect(result.body.calendar.guid).to.equal("3F979F74-B9D3-4E5F-98DC-5E08060A0C30");
7273
expect(result.body.calendar.name).to.equal("Standard");
7374
expect(result.body.calendar.uid).to.equal(1);
7475
expect(result.body.calendar.isBaseCalendar).is.true
@@ -264,4 +265,4 @@ describe("deleteCalendar function", () => {
264265
expect(result2.body.calendars.list.length).to.equal(1);
265266
expect(result2.body.calendars.list[0].uid).to.equal(1);
266267
});
267-
});
268+
});

‎test/tasksPrimaveraPropertiesTests.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
import { expect } from "chai";
2626
import "mocha";
27-
import { GetPrimaveraTaskPropertiesRequest } from "../src";
27+
import { GetPrimaveraTaskPropertiesRequest, PrimaveraActivityType, PrimaveraDurationType, PrimaveraPercentCompleteType } from "../src";
2828

2929
import * as BaseTest from "./baseTest";
3030

@@ -59,5 +59,8 @@ describe("getPrimaveraTaskProperties function", () => {
5959
expect(result.body.primaveraProperties.rawActivityType).to.equal("Task Dependent");
6060
expect(result.body.primaveraProperties.rawCompletePercentType).to.equal("Units");
6161
expect(result.body.primaveraProperties.rawStatus).to.equal("Not Started");
62+
expect(result.body.primaveraProperties.durationType).to.eql(PrimaveraDurationType.FixedUnits);
63+
expect(result.body.primaveraProperties.activityType).to.eql(PrimaveraActivityType.TaskDependent);
64+
expect(result.body.primaveraProperties.percentCompleteType).to.eql(PrimaveraPercentCompleteType.Units);
6265
});
6366
});

0 commit comments

Comments
 (0)
Please sign in to comment.