@asposecloud/aspose-tasks-cloud 25.4.0 → 25.8.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 +4 -0
- package/dist/src/api.d.ts +10 -0
- package/dist/src/api.js +72 -0
- package/dist/src/api.js.map +1 -1
- package/dist/src/internal/requestHelper.js +1 -1
- package/dist/src/model/model.d.ts +124 -0
- package/dist/src/model/model.js +93 -0
- package/dist/src/model/model.js.map +1 -1
- package/dist/test/resourceLevelTests.d.ts +1 -0
- package/dist/test/resourceLevelTests.js +103 -0
- package/dist/test/resourceLevelTests.js.map +1 -0
- package/dist/test/vbaTests.js +3 -3
- package/package.json +1 -1
|
@@ -2329,6 +2329,49 @@ export declare enum ItemType {
|
|
|
2329
2329
|
ResourceItem,
|
|
2330
2330
|
OtherItem
|
|
2331
2331
|
}
|
|
2332
|
+
export declare class LevelingOptions {
|
|
2333
|
+
/**
|
|
2334
|
+
* Attribute type map
|
|
2335
|
+
*/
|
|
2336
|
+
static attributeTypeMap: Array<{
|
|
2337
|
+
name: string;
|
|
2338
|
+
baseName: string;
|
|
2339
|
+
type: string;
|
|
2340
|
+
}>;
|
|
2341
|
+
/**
|
|
2342
|
+
* Returns attribute type map
|
|
2343
|
+
*/
|
|
2344
|
+
static getAttributeTypeMap(): {
|
|
2345
|
+
name: string;
|
|
2346
|
+
baseName: string;
|
|
2347
|
+
type: string;
|
|
2348
|
+
}[];
|
|
2349
|
+
/**
|
|
2350
|
+
* Leveling period start date. The default value is the project`s start date.
|
|
2351
|
+
*/
|
|
2352
|
+
startDate: Date;
|
|
2353
|
+
/**
|
|
2354
|
+
* Leveling period end date. The default value is the project`s finish date.
|
|
2355
|
+
*/
|
|
2356
|
+
finishDate: Date;
|
|
2357
|
+
/**
|
|
2358
|
+
* The list of the resource uids which will be leveled. If null is set, all project resources will be leveled.
|
|
2359
|
+
*/
|
|
2360
|
+
resourceUids: Array<number>;
|
|
2361
|
+
/**
|
|
2362
|
+
* The order in which the leveling algorithm delays tasks that have overallocations. After determination of tasks causing the overallocation and which tasks can be delayed, the specified order is used which task should be delayed first.
|
|
2363
|
+
*/
|
|
2364
|
+
levelingOrder: LevelingOrder;
|
|
2365
|
+
constructor(init?: Partial<LevelingOptions>);
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* Defines the possible values of leveling order.
|
|
2369
|
+
*/
|
|
2370
|
+
export declare enum LevelingOrder {
|
|
2371
|
+
Standard,
|
|
2372
|
+
IdOnly,
|
|
2373
|
+
PriorityThenStandard
|
|
2374
|
+
}
|
|
2332
2375
|
/**
|
|
2333
2376
|
* Provides information for the object link. This is supposed to be an atom:link, therefore it should have all attributes specified here http://tools.ietf.org/html/rfc4287#section-4.2.7
|
|
2334
2377
|
*/
|
|
@@ -5816,6 +5859,32 @@ export declare class FileVersion extends StorageFile {
|
|
|
5816
5859
|
isLatest: boolean;
|
|
5817
5860
|
constructor(init?: Partial<FileVersion>);
|
|
5818
5861
|
}
|
|
5862
|
+
/**
|
|
5863
|
+
* Represents the results of resource leveling.
|
|
5864
|
+
*/
|
|
5865
|
+
export declare class LevelingResponse extends AsposeResponse {
|
|
5866
|
+
/**
|
|
5867
|
+
* Attribute type map
|
|
5868
|
+
*/
|
|
5869
|
+
static attributeTypeMap: Array<{
|
|
5870
|
+
name: string;
|
|
5871
|
+
baseName: string;
|
|
5872
|
+
type: string;
|
|
5873
|
+
}>;
|
|
5874
|
+
/**
|
|
5875
|
+
* Returns attribute type map
|
|
5876
|
+
*/
|
|
5877
|
+
static getAttributeTypeMap(): {
|
|
5878
|
+
name: string;
|
|
5879
|
+
baseName: string;
|
|
5880
|
+
type: string;
|
|
5881
|
+
}[];
|
|
5882
|
+
/**
|
|
5883
|
+
* Gets a set of task uids affected by resource leveling.
|
|
5884
|
+
*/
|
|
5885
|
+
affectedTaskUids: Array<number>;
|
|
5886
|
+
constructor(init?: Partial<LevelingResponse>);
|
|
5887
|
+
}
|
|
5819
5888
|
export declare class OutlineCodeItems extends LinkElement {
|
|
5820
5889
|
/**
|
|
5821
5890
|
* Attribute type map
|
|
@@ -6511,6 +6580,7 @@ declare const enumsMap: {
|
|
|
6511
6580
|
"Field": typeof Field;
|
|
6512
6581
|
"ImportedProjectType": typeof ImportedProjectType;
|
|
6513
6582
|
"ItemType": typeof ItemType;
|
|
6583
|
+
"LevelingOrder": typeof LevelingOrder;
|
|
6514
6584
|
"MaskType": typeof MaskType;
|
|
6515
6585
|
"Month": typeof Month;
|
|
6516
6586
|
"MonthItemType": typeof MonthItemType;
|
|
@@ -6562,6 +6632,7 @@ declare const typeMap: {
|
|
|
6562
6632
|
FileVersions: typeof FileVersions;
|
|
6563
6633
|
FilesList: typeof FilesList;
|
|
6564
6634
|
FilesUploadResult: typeof FilesUploadResult;
|
|
6635
|
+
LevelingOptions: typeof LevelingOptions;
|
|
6565
6636
|
Link: typeof Link;
|
|
6566
6637
|
LinkElement: typeof LinkElement;
|
|
6567
6638
|
ModelError: typeof ModelError;
|
|
@@ -6619,6 +6690,7 @@ declare const typeMap: {
|
|
|
6619
6690
|
ExtendedAttributeItemsResponse: typeof ExtendedAttributeItemsResponse;
|
|
6620
6691
|
ExtendedAttributeResponse: typeof ExtendedAttributeResponse;
|
|
6621
6692
|
FileVersion: typeof FileVersion;
|
|
6693
|
+
LevelingResponse: typeof LevelingResponse;
|
|
6622
6694
|
OutlineCodeItems: typeof OutlineCodeItems;
|
|
6623
6695
|
OutlineCodeItemsResponse: typeof OutlineCodeItemsResponse;
|
|
6624
6696
|
OutlineCodeResponse: typeof OutlineCodeResponse;
|
|
@@ -8043,6 +8115,58 @@ export declare class GetReportPdfRequest {
|
|
|
8043
8115
|
folder: string;
|
|
8044
8116
|
constructor(init?: Partial<GetReportPdfRequest>);
|
|
8045
8117
|
}
|
|
8118
|
+
/**
|
|
8119
|
+
* Request model for clearLeveling operation.
|
|
8120
|
+
*/
|
|
8121
|
+
export declare class ClearLevelingRequest {
|
|
8122
|
+
/**
|
|
8123
|
+
* The name of the file
|
|
8124
|
+
*/
|
|
8125
|
+
name: string;
|
|
8126
|
+
/**
|
|
8127
|
+
* The array containing task uids for which leveling delay should be cleared. If not specified, all leveling delays will be cleared.
|
|
8128
|
+
*/
|
|
8129
|
+
taskUids: Array<number>;
|
|
8130
|
+
/**
|
|
8131
|
+
* The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
|
|
8132
|
+
*/
|
|
8133
|
+
fileName: string;
|
|
8134
|
+
/**
|
|
8135
|
+
* The folder storage
|
|
8136
|
+
*/
|
|
8137
|
+
folder: string;
|
|
8138
|
+
/**
|
|
8139
|
+
* The document storage.
|
|
8140
|
+
*/
|
|
8141
|
+
storage: string;
|
|
8142
|
+
constructor(init?: Partial<ClearLevelingRequest>);
|
|
8143
|
+
}
|
|
8144
|
+
/**
|
|
8145
|
+
* Request model for levelTasks operation.
|
|
8146
|
+
*/
|
|
8147
|
+
export declare class LevelTasksRequest {
|
|
8148
|
+
/**
|
|
8149
|
+
* The name of the file
|
|
8150
|
+
*/
|
|
8151
|
+
name: string;
|
|
8152
|
+
/**
|
|
8153
|
+
* Options which specifies how to level resources. If not specified, default leveling options will be used.
|
|
8154
|
+
*/
|
|
8155
|
+
options: LevelingOptions;
|
|
8156
|
+
/**
|
|
8157
|
+
* The name of the project document to save changes to. If this parameter is omitted then the changes will be saved to the source project document.
|
|
8158
|
+
*/
|
|
8159
|
+
fileName: string;
|
|
8160
|
+
/**
|
|
8161
|
+
* The folder storage
|
|
8162
|
+
*/
|
|
8163
|
+
folder: string;
|
|
8164
|
+
/**
|
|
8165
|
+
* The document storage.
|
|
8166
|
+
*/
|
|
8167
|
+
storage: string;
|
|
8168
|
+
constructor(init?: Partial<LevelTasksRequest>);
|
|
8169
|
+
}
|
|
8046
8170
|
/**
|
|
8047
8171
|
* Request model for deleteResource operation.
|
|
8048
8172
|
*/
|
package/dist/src/model/model.js
CHANGED
|
@@ -2444,6 +2444,52 @@ var ItemType;
|
|
|
2444
2444
|
ItemType[ItemType["ResourceItem"] = 'ResourceItem'] = "ResourceItem";
|
|
2445
2445
|
ItemType[ItemType["OtherItem"] = 'OtherItem'] = "OtherItem";
|
|
2446
2446
|
})(ItemType = exports.ItemType || (exports.ItemType = {}));
|
|
2447
|
+
class LevelingOptions {
|
|
2448
|
+
constructor(init) {
|
|
2449
|
+
Object.assign(this, init);
|
|
2450
|
+
}
|
|
2451
|
+
/**
|
|
2452
|
+
* Returns attribute type map
|
|
2453
|
+
*/
|
|
2454
|
+
static getAttributeTypeMap() {
|
|
2455
|
+
return LevelingOptions.attributeTypeMap;
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
exports.LevelingOptions = LevelingOptions;
|
|
2459
|
+
/**
|
|
2460
|
+
* Attribute type map
|
|
2461
|
+
*/
|
|
2462
|
+
LevelingOptions.attributeTypeMap = [
|
|
2463
|
+
{
|
|
2464
|
+
name: "startDate",
|
|
2465
|
+
baseName: "startDate",
|
|
2466
|
+
type: "Date",
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
name: "finishDate",
|
|
2470
|
+
baseName: "finishDate",
|
|
2471
|
+
type: "Date",
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
name: "resourceUids",
|
|
2475
|
+
baseName: "resourceUids",
|
|
2476
|
+
type: "Array<number>",
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
name: "levelingOrder",
|
|
2480
|
+
baseName: "levelingOrder",
|
|
2481
|
+
type: "LevelingOrder",
|
|
2482
|
+
}
|
|
2483
|
+
];
|
|
2484
|
+
/**
|
|
2485
|
+
* Defines the possible values of leveling order.
|
|
2486
|
+
*/
|
|
2487
|
+
var LevelingOrder;
|
|
2488
|
+
(function (LevelingOrder) {
|
|
2489
|
+
LevelingOrder[LevelingOrder["Standard"] = 'Standard'] = "Standard";
|
|
2490
|
+
LevelingOrder[LevelingOrder["IdOnly"] = 'IdOnly'] = "IdOnly";
|
|
2491
|
+
LevelingOrder[LevelingOrder["PriorityThenStandard"] = 'PriorityThenStandard'] = "PriorityThenStandard";
|
|
2492
|
+
})(LevelingOrder = exports.LevelingOrder || (exports.LevelingOrder = {}));
|
|
2447
2493
|
/**
|
|
2448
2494
|
* Provides information for the object link. This is supposed to be an atom:link, therefore it should have all attributes specified here http://tools.ietf.org/html/rfc4287#section-4.2.7
|
|
2449
2495
|
*/
|
|
@@ -6473,6 +6519,32 @@ FileVersion.attributeTypeMap = [
|
|
|
6473
6519
|
type: "boolean",
|
|
6474
6520
|
}
|
|
6475
6521
|
];
|
|
6522
|
+
/**
|
|
6523
|
+
* Represents the results of resource leveling.
|
|
6524
|
+
*/
|
|
6525
|
+
class LevelingResponse extends AsposeResponse {
|
|
6526
|
+
constructor(init) {
|
|
6527
|
+
super(init);
|
|
6528
|
+
Object.assign(this, init);
|
|
6529
|
+
}
|
|
6530
|
+
/**
|
|
6531
|
+
* Returns attribute type map
|
|
6532
|
+
*/
|
|
6533
|
+
static getAttributeTypeMap() {
|
|
6534
|
+
return super.getAttributeTypeMap().concat(LevelingResponse.attributeTypeMap);
|
|
6535
|
+
}
|
|
6536
|
+
}
|
|
6537
|
+
exports.LevelingResponse = LevelingResponse;
|
|
6538
|
+
/**
|
|
6539
|
+
* Attribute type map
|
|
6540
|
+
*/
|
|
6541
|
+
LevelingResponse.attributeTypeMap = [
|
|
6542
|
+
{
|
|
6543
|
+
name: "affectedTaskUids",
|
|
6544
|
+
baseName: "affectedTaskUids",
|
|
6545
|
+
type: "Array<number>",
|
|
6546
|
+
}
|
|
6547
|
+
];
|
|
6476
6548
|
class OutlineCodeItems extends LinkElement {
|
|
6477
6549
|
constructor(init) {
|
|
6478
6550
|
super(init);
|
|
@@ -7212,6 +7284,7 @@ const enumsMap = {
|
|
|
7212
7284
|
"Field": Field,
|
|
7213
7285
|
"ImportedProjectType": ImportedProjectType,
|
|
7214
7286
|
"ItemType": ItemType,
|
|
7287
|
+
"LevelingOrder": LevelingOrder,
|
|
7215
7288
|
"MaskType": MaskType,
|
|
7216
7289
|
"Month": Month,
|
|
7217
7290
|
"MonthItemType": MonthItemType,
|
|
@@ -7264,6 +7337,7 @@ const typeMap = {
|
|
|
7264
7337
|
FileVersions,
|
|
7265
7338
|
FilesList,
|
|
7266
7339
|
FilesUploadResult,
|
|
7340
|
+
LevelingOptions,
|
|
7267
7341
|
Link,
|
|
7268
7342
|
LinkElement,
|
|
7269
7343
|
ModelError,
|
|
@@ -7321,6 +7395,7 @@ const typeMap = {
|
|
|
7321
7395
|
ExtendedAttributeItemsResponse,
|
|
7322
7396
|
ExtendedAttributeResponse,
|
|
7323
7397
|
FileVersion,
|
|
7398
|
+
LevelingResponse,
|
|
7324
7399
|
OutlineCodeItems,
|
|
7325
7400
|
OutlineCodeItemsResponse,
|
|
7326
7401
|
OutlineCodeResponse,
|
|
@@ -7864,6 +7939,24 @@ class GetReportPdfRequest {
|
|
|
7864
7939
|
}
|
|
7865
7940
|
}
|
|
7866
7941
|
exports.GetReportPdfRequest = GetReportPdfRequest;
|
|
7942
|
+
/**
|
|
7943
|
+
* Request model for clearLeveling operation.
|
|
7944
|
+
*/
|
|
7945
|
+
class ClearLevelingRequest {
|
|
7946
|
+
constructor(init) {
|
|
7947
|
+
Object.assign(this, init);
|
|
7948
|
+
}
|
|
7949
|
+
}
|
|
7950
|
+
exports.ClearLevelingRequest = ClearLevelingRequest;
|
|
7951
|
+
/**
|
|
7952
|
+
* Request model for levelTasks operation.
|
|
7953
|
+
*/
|
|
7954
|
+
class LevelTasksRequest {
|
|
7955
|
+
constructor(init) {
|
|
7956
|
+
Object.assign(this, init);
|
|
7957
|
+
}
|
|
7958
|
+
}
|
|
7959
|
+
exports.LevelTasksRequest = LevelTasksRequest;
|
|
7867
7960
|
/**
|
|
7868
7961
|
* Request model for deleteResource operation.
|
|
7869
7962
|
*/
|