Skip to content

Commit

Permalink
Release 119
Browse files Browse the repository at this point in the history
# Patch notes for 119.0.4625

These patch notes summarize the changes from version 117.0.4438.

Added 5 new APIs:
* ProjectVersion.RetrieveProjectVersions (GET /api/data/projects/{projectId}/versions)
* ProjectVersion.DownloadMSProjectXml (GET /api/data/projects/{projectChangeId}/version/download)
* ProjectVersion.RestoreProjectVersion (POST /api/data/projects/{projectId}/version/{version}/restore)
* ProjectVersion.CopyProjectVersion (POST /api/data/projects/{projectId}/version/{version}/copy)
* Risk.CreateRiskExport (POST /api/data/projects/{projectId}/risks/export)

Renamed 1 old APIs:
* Renamed 'TaskMetadata.GetTasksByProjectIDAndForeignKeyID' to 'TaskMetadata.TaskMetadataSearch'

Changes to data models:
* TaskDto: Added new field `isLocked`
* TaskDto: Added new field `isMilestone`
  • Loading branch information
tspence committed Sep 30, 2024
1 parent 5cb286a commit e60cc8c
Show file tree
Hide file tree
Showing 20 changed files with 377 additions and 97 deletions.
102 changes: 56 additions & 46 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

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

<name>ProjectManagerSDK</name>
<description>Software development kit for the ProjectManager.com API. for Java</description>
Expand All @@ -33,11 +33,6 @@
</developer>
</developers>

<!-- replace with your data -->
<issueManagement>
<system>github</system>
<url>https://github.com/projectmgr/projectmanager-sdk-java/issues</url>
</issueManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -66,76 +61,91 @@
</dependency>
</dependencies>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<!-- required, used in .github/workflows/sonatype-publish.yml -->
<id>sonatypeDeploy</id>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<tokenAuth>true</tokenAuth>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.8.0</version>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>jar</goal>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Prevent gpg from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>build-extras</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.5</version>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
<id>attach-sources</id>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
</execution>
</executions>
</plugin>
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", "117.0.4438.0");
request.addHeader("SdkVersion", "119.0.4625.0");

String applicationName = this.client.getAppName();

Expand Down
74 changes: 46 additions & 28 deletions 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 117.0.4438
* @version 119.0.4625
* @link https://github.com/projectmgr/projectmanager-sdk-java
*/

Expand All @@ -23,15 +23,15 @@
import com.projectmanager.clients.FileClient;
import com.projectmanager.clients.HolidayClient;
import com.projectmanager.clients.HomeFileClient;
import com.projectmanager.clients.IntegrationClient;
import com.projectmanager.clients.IntegrationCategoryClient;
import com.projectmanager.clients.IntegrationClient;
import com.projectmanager.clients.IntegrationProviderClient;
import com.projectmanager.clients.LicenseClient;
import com.projectmanager.clients.MeClient;
import com.projectmanager.clients.NotificationClient;
import com.projectmanager.clients.NptFilesClient;
import com.projectmanager.clients.ProjectClient;
import com.projectmanager.clients.ProjectChargeCodeClient;
import com.projectmanager.clients.ProjectClient;
import com.projectmanager.clients.ProjectCustomerClient;
import com.projectmanager.clients.ProjectFieldClient;
import com.projectmanager.clients.ProjectFileClient;
Expand All @@ -40,12 +40,14 @@
import com.projectmanager.clients.ProjectPriorityClient;
import com.projectmanager.clients.ProjectStatusClient;
import com.projectmanager.clients.ProjectTemplateClient;
import com.projectmanager.clients.ProjectVersionClient;
import com.projectmanager.clients.ResourceClient;
import com.projectmanager.clients.ResourceSkillClient;
import com.projectmanager.clients.ResourceTeamClient;
import com.projectmanager.clients.RiskClient;
import com.projectmanager.clients.TagClient;
import com.projectmanager.clients.TaskClient;
import com.projectmanager.clients.TaskAssigneeClient;
import com.projectmanager.clients.TaskClient;
import com.projectmanager.clients.TaskFieldClient;
import com.projectmanager.clients.TaskFileClient;
import com.projectmanager.clients.TaskMetadataClient;
Expand Down Expand Up @@ -74,15 +76,15 @@ public class ProjectManagerClient {
private FileClient file;
private HolidayClient holiday;
private HomeFileClient homeFile;
private IntegrationClient integration;
private IntegrationCategoryClient integrationCategory;
private IntegrationClient integration;
private IntegrationProviderClient integrationProvider;
private LicenseClient license;
private MeClient me;
private NotificationClient notification;
private NptFilesClient nptFiles;
private ProjectClient project;
private ProjectChargeCodeClient projectChargeCode;
private ProjectClient project;
private ProjectCustomerClient projectCustomer;
private ProjectFieldClient projectField;
private ProjectFileClient projectFile;
Expand All @@ -91,12 +93,14 @@ public class ProjectManagerClient {
private ProjectPriorityClient projectPriority;
private ProjectStatusClient projectStatus;
private ProjectTemplateClient projectTemplate;
private ProjectVersionClient projectVersion;
private ResourceClient resource;
private ResourceSkillClient resourceSkill;
private ResourceTeamClient resourceTeam;
private RiskClient risk;
private TagClient tag;
private TaskClient task;
private TaskAssigneeClient taskAssignee;
private TaskClient task;
private TaskFieldClient taskField;
private TaskFileClient taskFile;
private TaskMetadataClient taskMetadata;
Expand All @@ -118,15 +122,15 @@ private ProjectManagerClient(@NotNull String serverUri)
this.file = new FileClient(this);
this.holiday = new HolidayClient(this);
this.homeFile = new HomeFileClient(this);
this.integration = new IntegrationClient(this);
this.integrationCategory = new IntegrationCategoryClient(this);
this.integration = new IntegrationClient(this);
this.integrationProvider = new IntegrationProviderClient(this);
this.license = new LicenseClient(this);
this.me = new MeClient(this);
this.notification = new NotificationClient(this);
this.nptFiles = new NptFilesClient(this);
this.project = new ProjectClient(this);
this.projectChargeCode = new ProjectChargeCodeClient(this);
this.project = new ProjectClient(this);
this.projectCustomer = new ProjectCustomerClient(this);
this.projectField = new ProjectFieldClient(this);
this.projectFile = new ProjectFileClient(this);
Expand All @@ -135,12 +139,14 @@ private ProjectManagerClient(@NotNull String serverUri)
this.projectPriority = new ProjectPriorityClient(this);
this.projectStatus = new ProjectStatusClient(this);
this.projectTemplate = new ProjectTemplateClient(this);
this.projectVersion = new ProjectVersionClient(this);
this.resource = new ResourceClient(this);
this.resourceSkill = new ResourceSkillClient(this);
this.resourceTeam = new ResourceTeamClient(this);
this.risk = new RiskClient(this);
this.tag = new TagClient(this);
this.task = new TaskClient(this);
this.taskAssignee = new TaskAssigneeClient(this);
this.task = new TaskClient(this);
this.taskField = new TaskFieldClient(this);
this.taskFile = new TaskFileClient(this);
this.taskMetadata = new TaskMetadataClient(this);
Expand Down Expand Up @@ -194,18 +200,18 @@ private ProjectManagerClient(@NotNull String serverUri)
* @return A collection containing the {@link com.projectmanager.clients.HomeFileClient client} methods in the API.
*/
public @NotNull HomeFileClient getHomeFileClient() { return this.homeFile; }
/**
* A collection of API methods relating to Integration
*
* @return A collection containing the {@link com.projectmanager.clients.IntegrationClient client} methods in the API.
*/
public @NotNull IntegrationClient getIntegrationClient() { return this.integration; }
/**
* A collection of API methods relating to IntegrationCategory
*
* @return A collection containing the {@link com.projectmanager.clients.IntegrationCategoryClient client} methods in the API.
*/
public @NotNull IntegrationCategoryClient getIntegrationCategoryClient() { return this.integrationCategory; }
/**
* A collection of API methods relating to Integration
*
* @return A collection containing the {@link com.projectmanager.clients.IntegrationClient client} methods in the API.
*/
public @NotNull IntegrationClient getIntegrationClient() { return this.integration; }
/**
* A collection of API methods relating to IntegrationProvider
*
Expand Down Expand Up @@ -236,18 +242,18 @@ private ProjectManagerClient(@NotNull String serverUri)
* @return A collection containing the {@link com.projectmanager.clients.NptFilesClient client} methods in the API.
*/
public @NotNull NptFilesClient getNptFilesClient() { return this.nptFiles; }
/**
* A collection of API methods relating to Project
*
* @return A collection containing the {@link com.projectmanager.clients.ProjectClient client} methods in the API.
*/
public @NotNull ProjectClient getProjectClient() { return this.project; }
/**
* A collection of API methods relating to ProjectChargeCode
*
* @return A collection containing the {@link com.projectmanager.clients.ProjectChargeCodeClient client} methods in the API.
*/
public @NotNull ProjectChargeCodeClient getProjectChargeCodeClient() { return this.projectChargeCode; }
/**
* A collection of API methods relating to Project
*
* @return A collection containing the {@link com.projectmanager.clients.ProjectClient client} methods in the API.
*/
public @NotNull ProjectClient getProjectClient() { return this.project; }
/**
* A collection of API methods relating to ProjectCustomer
*
Expand Down Expand Up @@ -296,6 +302,12 @@ private ProjectManagerClient(@NotNull String serverUri)
* @return A collection containing the {@link com.projectmanager.clients.ProjectTemplateClient client} methods in the API.
*/
public @NotNull ProjectTemplateClient getProjectTemplateClient() { return this.projectTemplate; }
/**
* A collection of API methods relating to ProjectVersion
*
* @return A collection containing the {@link com.projectmanager.clients.ProjectVersionClient client} methods in the API.
*/
public @NotNull ProjectVersionClient getProjectVersionClient() { return this.projectVersion; }
/**
* A collection of API methods relating to Resource
*
Expand All @@ -315,23 +327,29 @@ private ProjectManagerClient(@NotNull String serverUri)
*/
public @NotNull ResourceTeamClient getResourceTeamClient() { return this.resourceTeam; }
/**
* A collection of API methods relating to Tag
* A collection of API methods relating to Risk
*
* @return A collection containing the {@link com.projectmanager.clients.TagClient client} methods in the API.
* @return A collection containing the {@link com.projectmanager.clients.RiskClient client} methods in the API.
*/
public @NotNull TagClient getTagClient() { return this.tag; }
public @NotNull RiskClient getRiskClient() { return this.risk; }
/**
* A collection of API methods relating to Task
* A collection of API methods relating to Tag
*
* @return A collection containing the {@link com.projectmanager.clients.TaskClient client} methods in the API.
* @return A collection containing the {@link com.projectmanager.clients.TagClient client} methods in the API.
*/
public @NotNull TaskClient getTaskClient() { return this.task; }
public @NotNull TagClient getTagClient() { return this.tag; }
/**
* A collection of API methods relating to TaskAssignee
*
* @return A collection containing the {@link com.projectmanager.clients.TaskAssigneeClient client} methods in the API.
*/
public @NotNull TaskAssigneeClient getTaskAssigneeClient() { return this.taskAssignee; }
/**
* A collection of API methods relating to Task
*
* @return A collection containing the {@link com.projectmanager.clients.TaskClient client} methods in the API.
*/
public @NotNull TaskClient getTaskClient() { return this.task; }
/**
* A collection of API methods relating to TaskField
*
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", "117.0.4438.0");
request.addHeader("SdkVersion", "119.0.4625.0");

String applicationName = this.client.getAppName();

Expand Down
Loading

0 comments on commit e60cc8c

Please sign in to comment.