Skip to content

Commit e7e54c0

Browse files
[TASKSCLOUD-682] - Deployed new 22.12 version.
1 parent 0d6811a commit e7e54c0

11 files changed

+2712
-2349
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
3434
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
3535

3636

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+
3741
## Enhancements in Version 20.11
3842
- Support for the batch creation of tasks (i.e. the ability to create multiple tasks in a single *API* call).
3943

api/models/configuration.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1111
* copies of the Software, and to permit persons to whom the Software is
1212
* furnished to do so, subject to the following conditions:
13-
*
13+
*
1414
* The above copyright notice and this permission notice shall be included in all
1515
* copies or substantial portions of the Software.
16-
*
16+
*
1717
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1818
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1919
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -91,7 +91,7 @@ func NewConfiguration(configFilePath string) (pConfig *Configuration, err error)
9191
cfg := Configuration{
9292
BaseUrl: "https://api.aspose.cloud",
9393
DebugMode: false,
94-
DefaultHeader: map[string]string{"x-aspose-client": "go sdk", "x-aspose-client-version": "22.7"},
94+
DefaultHeader: map[string]string{"x-aspose-client": "go sdk", "x-aspose-client-version": "22.12"},
9595
}
9696
err = json.Unmarshal(data, &cfg)
9797

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="primavera_task_properties.go">
4+
* Copyright (c) 2021 Aspose.Tasks Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package models
29+
30+
import (
31+
"github.com/aspose-tasks-cloud/aspose-tasks-cloud-go/api/custom"
32+
)
33+
34+
// Represents Primavera-specific properties for a task read from Primavera format (XER of P6XML).
35+
type PrimaveraTaskProperties struct {
36+
// The sequence number of the WBS item (summary tasks). It is used to sort summary tasks in Primavera.
37+
SequenceNumber int32 `json:"sequenceNumber"`
38+
// Activity id field - a task's unique identifier used by Primavera.
39+
ActivityId string `json:"activityId,omitempty"`
40+
// Remaining early finish date - the date when the remaining work for the activity is scheduled to be finished.
41+
RemainingEarlyFinish custom.TimeWithoutTZ `json:"remainingEarlyFinish"`
42+
// Remaining early start date - the date when the remaining work for the activity is scheduled to begin.
43+
RemainingEarlyStart custom.TimeWithoutTZ `json:"remainingEarlyStart"`
44+
// Remaining late start date.
45+
RemainingLateStart custom.TimeWithoutTZ `json:"remainingLateStart"`
46+
// Remaining late finish date.
47+
RemainingLateFinish custom.TimeWithoutTZ `json:"remainingLateFinish"`
48+
// Raw text representation (as in source file) of 'Duration Type' field of the activity.
49+
RawDurationType string `json:"rawDurationType,omitempty"`
50+
// Raw text representation (as in source file) of 'Activity Type' field of the activity.
51+
RawActivityType string `json:"rawActivityType,omitempty"`
52+
// Raw text representation (as in source file) of '% Complete Type' field of the activity.
53+
RawCompletePercentType string `json:"rawCompletePercentType,omitempty"`
54+
// Raw text representation (as in source file) of 'Status' field of the activity.
55+
RawStatus string `json:"rawStatus,omitempty"`
56+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="primavera_task_properties_response.go">
4+
* Copyright (c) 2021 Aspose.Tasks Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package models
29+
30+
// PrimaveraProperties response.
31+
type PrimaveraTaskPropertiesResponse struct {
32+
// Response status code
33+
Code int32 `json:"code"`
34+
// Response status
35+
Status string `json:"status,omitempty"`
36+
// PrimaveraTaskProperties DTO
37+
PrimaveraProperties *PrimaveraTaskProperties `json:"primaveraProperties,omitempty"`
38+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* --------------------------------------------------------------------------------
3+
* <copyright company="Aspose" file="get_primavera_task_properties_opts.go">
4+
* Copyright (c) 2021 Aspose.Tasks Cloud
5+
* </copyright>
6+
* <summary>
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in all
15+
* copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
* SOFTWARE.
24+
* </summary>
25+
* --------------------------------------------------------------------------------
26+
*/
27+
28+
package requests
29+
30+
import (
31+
"github.com/antihax/optional"
32+
)
33+
34+
type GetPrimaveraTaskPropertiesOpts struct {
35+
Name string
36+
TaskUid int32
37+
Folder optional.String
38+
Storage optional.String
39+
}

0 commit comments

Comments
 (0)