Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 117 #18

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.projectmanager</groupId>
<artifactId>projectmanagersdk</artifactId>
<version>115.0.4328</version>
<version>117.0.4438</version>

<name>ProjectManagerSDK</name>
<description>Software development kit for the ProjectManager.com API. for Java</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/projectmanager/BlobRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void AddBody(Object body) {
}

request.addHeader("SdkName", "Java");
request.addHeader("SdkVersion", "115.0.4328.0");
request.addHeader("SdkVersion", "117.0.4438.0");

String applicationName = this.client.getAppName();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/projectmanager/ProjectManagerClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @author ProjectManager.com <[email protected]>
*
* @copyright 2023-2024 ProjectManager.com, Inc.
* @version 115.0.4328
* @version 117.0.4438
* @link https://github.com/projectmgr/projectmanager-sdk-java
*/

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/projectmanager/RestRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void AddBody(Object body) {
}

request.addHeader("SdkName", "Java");
request.addHeader("SdkVersion", "115.0.4328.0");
request.addHeader("SdkVersion", "117.0.4438.0");

String applicationName = this.client.getAppName();

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/projectmanager/clients/HomeFileClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public HomeFileClient(@NotNull ProjectManagerClient client) {
*
* This API returns a JSON response indicating success or failure.
*
* @param filename The full path of a file to upload to the API
* @param fileName The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadHomeFile(@NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadHomeFile(@NotNull byte[] fileName)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/home/files");
return r.Call(new TypeToken<AstroResult<FileDto>>() {}.getType());
Expand All @@ -80,10 +80,10 @@ public HomeFileClient(@NotNull ProjectManagerClient client) {
* This API returns a JSON response indicating success or failure.
*
* @param folderId The reference to the sub folder to put the file into
* @param filename The full path of a file to upload to the API
* @param fileName The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadHomeFileToFolder(@NotNull String folderId, @NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadHomeFileToFolder(@NotNull String folderId, @NotNull byte[] fileName)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/home/folders/{folderId}/files");
r.AddPath("{folderId}", folderId == null ? "" : folderId.toString());
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/projectmanager/clients/NptFilesClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public NptFilesClient(@NotNull ProjectManagerClient client) {
* This API returns a JSON response indicating success or failure.
*
* @param taskId The reference to the task
* @param filename The full path of a file to upload to the API
* @param fileName The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadFileToNonProjectTasks(@NotNull String taskId, @NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadFileToNonProjectTasks(@NotNull String taskId, @NotNull byte[] fileName)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/non-project-tasks/{taskId}/files");
r.AddPath("{taskId}", taskId == null ? "" : taskId.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public ProjectFileClient(@NotNull ProjectManagerClient client) {
* This API returns a JSON response indicating success or failure.
*
* @param projectId The reference to the project
* @param filename The full path of a file to upload to the API
* @param fileName The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadProjectFile(@NotNull String projectId, @NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadProjectFile(@NotNull String projectId, @NotNull byte[] fileName)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/projects/{projectId}/files");
r.AddPath("{projectId}", projectId == null ? "" : projectId.toString());
Expand All @@ -83,10 +83,10 @@ public ProjectFileClient(@NotNull ProjectManagerClient client) {
*
* @param projectId The reference to the project
* @param folderId The reference to the sub folder to put the file into
* @param filename The full path of a file to upload to the API
* @param fileName The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadProjectFileToFolder(@NotNull String projectId, @NotNull String folderId, @NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadProjectFileToFolder(@NotNull String projectId, @NotNull String folderId, @NotNull byte[] fileName)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/projects/{projectId}/folders/{folderId}/files");
r.AddPath("{projectId}", projectId == null ? "" : projectId.toString());
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/com/projectmanager/clients/ResourceClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,21 @@ public ResourceClient(@NotNull ProjectManagerClient client) {
if (body != null) { r.AddBody(body); }
return r.Call(new TypeToken<AstroResult<ResourcesDto>>() {}.getType());
}

/**
* Resend Invite Email to a Resource within your Workspace.
*
* When you create a Resource that is a person, ProjectManager sends that person an email inviting them to join
* your Workspace. If that email is accidentally deleted or sent to a spam folder, you can request this email
* be sent again using this API.
*
* @param resourceId The unique identifier of the Resource to send an invitation email
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<Object> resendInviteEmail(@NotNull String resourceId)
{
RestRequest<Object> r = new RestRequest<Object>(this.client, "GET", "/api/data/resources/{resourceId}/resendinvite");
r.AddPath("{resourceId}", resourceId == null ? "" : resourceId.toString());
return r.Call(new TypeToken<AstroResult<Object>>() {}.getType());
}
}
4 changes: 2 additions & 2 deletions src/main/java/com/projectmanager/clients/TaskFileClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public TaskFileClient(@NotNull ProjectManagerClient client) {
* This API returns a JSON response indicating success or failure.
*
* @param taskId The reference to the task
* @param filename The full path of a file to upload to the API
* @param fileName The full path of a file to upload to the API
* @return A {@link com.projectmanager.AstroResult} containing the results
*/
public @NotNull AstroResult<FileDto> uploadTaskFile(@NotNull String taskId, @NotNull byte[] filename)
public @NotNull AstroResult<FileDto> uploadTaskFile(@NotNull String taskId, @NotNull byte[] fileName)
{
RestRequest<FileDto> r = new RestRequest<FileDto>(this.client, "POST", "/api/data/tasks/{taskId}/files");
r.AddPath("{taskId}", taskId == null ? "" : taskId.toString());
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/com/projectmanager/models/ResourceCreateDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class ResourceCreateDto
private @Nullable String roleId;
private @Nullable String[] teamIds;
private @Nullable String[] skillIds;
private @Nullable String colorName;

/**
* The first name of the person Resource.
Expand Down Expand Up @@ -202,4 +203,20 @@ public class ResourceCreateDto
* @param value The new value for skillIds
*/
public void setSkillIds(@Nullable String[] value) { this.skillIds = value; }
/**
* Collaboration Color for this resource.
*
* eg. teal, cyan, lightblue, blurple, purple, pink, orange, gray
*
* @return The field colorName
*/
public @Nullable String getColorName() { return this.colorName; }
/**
* Collaboration Color for this resource.
*
* eg. teal, cyan, lightblue, blurple, purple, pink, orange, gray
*
* @param value The new value for colorName
*/
public void setColorName(@Nullable String value) { this.colorName = value; }
};
30 changes: 30 additions & 0 deletions src/main/java/com/projectmanager/models/ResourceDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public class ResourceDto
private @NotNull String createdBy;
private @NotNull String modifiedDate;
private @NotNull String modifiedBy;
private @Nullable String colorName;
private @Nullable String color;

/**
* The unique identifier of this Resource.
Expand Down Expand Up @@ -328,4 +330,32 @@ public class ResourceDto
* @param value The new value for modifiedBy
*/
public void setModifiedBy(@NotNull String value) { this.modifiedBy = value; }
/**
* Collaboration Color for this resource.
*
* eg. teal, cyan, lightblue, blurple, purple, pink, orange, gray
*
* @return The field colorName
*/
public @Nullable String getColorName() { return this.colorName; }
/**
* Collaboration Color for this resource.
*
* eg. teal, cyan, lightblue, blurple, purple, pink, orange, gray
*
* @param value The new value for colorName
*/
public void setColorName(@Nullable String value) { this.colorName = value; }
/**
* Read only Hex code of the ColorName
*
* @return The field color
*/
public @Nullable String getColor() { return this.color; }
/**
* Read only Hex code of the ColorName
*
* @param value The new value for color
*/
public void setColor(@Nullable String value) { this.color = value; }
};
17 changes: 17 additions & 0 deletions src/main/java/com/projectmanager/models/ResourceUpdateDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class ResourceUpdateDto
private @Nullable String[] skillIds;
private @Nullable Boolean isActive;
private @Nullable String approverId;
private @Nullable String colorName;

/**
* The first name of the person Resource.
Expand Down Expand Up @@ -236,4 +237,20 @@ public class ResourceUpdateDto
* @param value The new value for approverId
*/
public void setApproverId(@Nullable String value) { this.approverId = value; }
/**
* Collaboration Color for this resource.
*
* eg. teal, cyan, lightblue, blurple, purple, pink, orange, gray
*
* @return The field colorName
*/
public @Nullable String getColorName() { return this.colorName; }
/**
* Collaboration Color for this resource.
*
* eg. teal, cyan, lightblue, blurple, purple, pink, orange, gray
*
* @param value The new value for colorName
*/
public void setColorName(@Nullable String value) { this.colorName = value; }
};
6 changes: 3 additions & 3 deletions src/main/java/com/projectmanager/models/TaskDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class TaskDto
private @NotNull String createDate;
private @NotNull Integer percentComplete;
private @NotNull Boolean isSummary;
private @NotNull Integer priorityId;
private @Nullable Integer priorityId;
private @Nullable String wbs;
private @Nullable String color;
private @Nullable String theme;
Expand Down Expand Up @@ -392,13 +392,13 @@ public class TaskDto
*
* @return The field priorityId
*/
public @NotNull Integer getPriorityId() { return this.priorityId; }
public @Nullable Integer getPriorityId() { return this.priorityId; }
/**
* Return the priority of a task
*
* @param value The new value for priorityId
*/
public void setPriorityId(@NotNull Integer value) { this.priorityId = value; }
public void setPriorityId(@Nullable Integer value) { this.priorityId = value; }
/**
* The WBS (Work Breakdown Structure) number for this task within the Gantt chart hierarchy. See [What
* Is a Work Breakdown Structure (WBS)?](https://www.projectmanager.com/guides/work-breakdown-structure)
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/projectmanager/models/TaskPriorityDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
*/
public class TaskPriorityDto
{
private @NotNull Integer id;
private @Nullable Integer id;
private @Nullable String name;

/**
* The unique identifier of this TaskPriority.
*
* @return The field id
*/
public @NotNull Integer getId() { return this.id; }
public @Nullable Integer getId() { return this.id; }
/**
* The unique identifier of this TaskPriority.
*
* @param value The new value for id
*/
public void setId(@NotNull Integer value) { this.id = value; }
public void setId(@Nullable Integer value) { this.id = value; }
/**
* The name of this TaskPriority.
*
Expand Down
Loading
Loading