Skip to content

Commit e9234a4

Browse files
v23.3.0
1 parent ad663f4 commit e9234a4

File tree

1,014 files changed

+5814
-3858
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,014 files changed

+5814
-3858
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ src/test/resources/test.properties
2727
/src/test/resources/settings_files/settings_vapil_oauth_token.json
2828
/src/test/resources/settings_files/settings_vapil_sandbox.json
2929
/src/test/resources/settings_files/settings_vapil_session_id.json
30+
src/test/resources/settings_files/settings_vapil_basic_eric.json
31+
src/test/resources/settings_files/settings_vapil_basic_lr.json

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ VAPIL provides full API endpoint coverage for Vault integrations.
2424
<li>Expose API requests/responses in clearly defined Java classes, getters, setters, and methods</li>
2525
</ul>
2626
<b>Dedication to documentation, available in <a
27-
href="https://veeva.github.io/vault-api-library/javadoc/23.2.0/index.html" target="_blank">Javadoc</a></b>
27+
href="https://veeva.github.io/vault-api-library/javadoc/23.3.0/index.html" target="_blank">Javadoc</a></b>
2828
<ul>
2929
<li>Easily find API endpoints from Vault help webpage in the source or Javadoc</li>
3030
<li>One-to-one alignment between VAPIL methods and the Vault API endpoint/documentation</li>
@@ -69,7 +69,7 @@ Source code is available on GitHub: <a
6969
&lt;dependency&gt;
7070
&lt;groupId&gt;com.veeva.vault&lt;/groupId&gt;
7171
&lt;artifactId&gt;vapil&lt;/artifactId&gt;
72-
&lt;version&gt;23.2.0&lt;/version&gt;
72+
&lt;version&gt;23.3.0&lt;/version&gt;
7373
&lt;/dependency&gt;
7474
&lt;/dependencies&gt;</pre>
7575
</li>

pom.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.veeva.vault</groupId>
77
<artifactId>vapil</artifactId>
8-
<version>23.2.0</version>
8+
<version>23.3.0</version>
99

1010
<packaging>jar</packaging>
1111

@@ -57,7 +57,7 @@
5757
<dependency>
5858
<groupId>org.apache.maven.plugins</groupId>
5959
<artifactId>maven-surefire-report-plugin</artifactId>
60-
<version>3.0.0</version>
60+
<version>3.1.2</version>
6161
</dependency>
6262
<dependency>
6363
<groupId>org.apache.maven.plugins</groupId>
@@ -68,32 +68,32 @@
6868
<dependency>
6969
<groupId>com.fasterxml.jackson.core</groupId>
7070
<artifactId>jackson-core</artifactId>
71-
<version>2.15.0</version>
71+
<version>2.15.2</version>
7272
</dependency>
7373
<dependency>
7474
<groupId>com.fasterxml.jackson.core</groupId>
7575
<artifactId>jackson-databind</artifactId>
76-
<version>2.14.2</version>
76+
<version>2.15.2</version>
7777
</dependency>
7878
<dependency>
7979
<groupId>com.fasterxml.jackson.core</groupId>
8080
<artifactId>jackson-annotations</artifactId>
81-
<version>2.15.0</version>
81+
<version>2.15.2</version>
8282
</dependency>
8383
<dependency>
8484
<groupId>com.fasterxml.jackson.dataformat</groupId>
8585
<artifactId>jackson-dataformat-csv</artifactId>
86-
<version>2.14.2</version>
86+
<version>2.15.2</version>
8787
</dependency>
8888
<dependency>
8989
<groupId>com.opencsv</groupId>
9090
<artifactId>opencsv</artifactId>
91-
<version>5.7.1</version>
91+
<version>5.8</version>
9292
</dependency>
9393
<dependency>
9494
<groupId>com.squareup.okhttp3</groupId>
9595
<artifactId>okhttp</artifactId>
96-
<version>4.10.0</version>
96+
<version>4.11.0</version>
9797
</dependency>
9898
<dependency>
9999
<groupId>commons-net</groupId>
@@ -103,7 +103,7 @@
103103
<dependency>
104104
<groupId>org.junit.jupiter</groupId>
105105
<artifactId>junit-jupiter</artifactId>
106-
<version>5.9.2</version>
106+
<version>5.10.0</version>
107107
<scope>test</scope>
108108
</dependency>
109109
<dependency>
@@ -124,12 +124,12 @@
124124
<dependency>
125125
<groupId>org.json</groupId>
126126
<artifactId>json</artifactId>
127-
<version>20230227</version>
127+
<version>20230618</version>
128128
</dependency>
129129
<dependency>
130130
<groupId>org.junit.vintage</groupId>
131131
<artifactId>junit-vintage-engine</artifactId>
132-
<version>5.9.2</version>
132+
<version>5.10.0</version>
133133
<scope>test</scope>
134134
</dependency>
135135
</dependencies>
@@ -238,7 +238,7 @@
238238
<plugin>
239239
<groupId>org.apache.maven.plugins</groupId>
240240
<artifactId>maven-source-plugin</artifactId>
241-
<version>3.2.1</version>
241+
<version>3.3.0</version>
242242
<executions>
243243
<execution>
244244
<id>attach-sources</id>

src/main/java/com/veeva/vault/vapil/api/client/VaultClient.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class VaultClient {
4646
* The current Vault API Version {@value #VAULT_API_VERSION}. This variable drives the version
4747
* used in all API calls.
4848
*/
49-
public static final String VAULT_API_VERSION = "v23.2";
49+
public static final String VAULT_API_VERSION = "v23.3";
5050

5151
private static final String VAULT_CLIENT_SETTER = "setVaultClient"; // The VaultRequest VaultClient setter
5252
private static final String URL_LOGIN = "login.veevavault.com"; // The VaultRequest VaultClient setter
@@ -380,6 +380,9 @@ public boolean validateSession() {
380380
if (!isValid) {
381381
authResponse.setResponseStatus(VaultResponse.HTTP_RESPONSE_FAILURE);
382382
authResponse.setSessionId(null);
383+
if (versionResponse != null && versionResponse.hasErrors()) {
384+
authResponse.setErrors(versionResponse.getErrors());
385+
}
383386
}
384387

385388
return isValid;

src/main/java/com/veeva/vault/vapil/api/model/common/PackageStep.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ public void setValidationResponse(String validationResponse) {
8787

8888
public void setPackageComponents(List<PackageComponent> packageComponents) { this.set("package_components", packageComponents);}
8989

90+
@JsonProperty("dependencies")
91+
public List<Dependency> getDependencies() { return (List<Dependency>) this.get("dependencies"); }
9092

93+
public void setDependencies(List<Dependency> dependencies) { this.set("dependencies", dependencies);}
9194

9295
public static class PackageComponent extends PackageModel {
9396

@@ -237,4 +240,31 @@ public static class PackageCode extends PackageModel {
237240

238241
public void setDeploymentOption(String deploymentOption) { this.set("deployment_option__sys", deploymentOption); }
239242
}
243+
244+
public static class Dependency extends VaultModel {
245+
@JsonProperty("component_name")
246+
public String getComponentName() {return this.getString("component_name");}
247+
248+
public void setComponentName(String componentName) {this.set("component_name", componentName);}
249+
250+
@JsonProperty("component_type")
251+
public String getComponentType() {return this.getString("component_type");}
252+
253+
public void setComponentType(String componentType) {this.set("component_type", componentType);}
254+
255+
@JsonProperty("subcomponent_name")
256+
public String getSubcomponentName() {return this.getString("subcomponent_name");}
257+
258+
public void setSubcomponentName(String subcomponentName) {this.set("subcomponent_name", subcomponentName);}
259+
260+
@JsonProperty("subcomponent_type")
261+
public String getSubcomponentType() {return this.getString("subcomponent_type");}
262+
263+
public void setSubcomponentType(String subcomponentType) {this.set("subcomponent_type", subcomponentType);}
264+
265+
@JsonProperty("status")
266+
public String getStatus() {return this.getString("status");}
267+
268+
public void setStatus(String status) {this.set("status", status);}
269+
}
240270
}
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
package com.veeva.vault.vapil.api.model.common;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.veeva.vault.vapil.api.model.VaultModel;
5+
6+
public class ResumableUploadSession extends VaultModel {
7+
@JsonProperty("created_date")
8+
public String getCreatedDate() {
9+
return getString("created_date");
10+
}
11+
12+
public void setCreatedDate(String createdDate) {
13+
this.set("created_date", createdDate);
14+
}
15+
16+
@JsonProperty("expiration_date")
17+
public String getExpirationDate() {
18+
return getString("expiration_date");
19+
}
20+
21+
public void setExpirationDate(String expirationDate) {
22+
this.set("expiration_date", expirationDate);
23+
}
24+
25+
@JsonProperty("owner")
26+
public Long getOwner() {
27+
return getLong("owner");
28+
}
29+
30+
public void setOwner(Long owner) {
31+
this.set("owner", owner);
32+
}
33+
34+
@JsonProperty("id")
35+
public String getId() {
36+
return getString("id");
37+
}
38+
39+
public void setId(String id) {
40+
this.set("id", id);
41+
}
42+
43+
@JsonProperty("last_uploaded_date")
44+
public String getLastUploadedDate() {
45+
return getString("last_uploaded_date");
46+
}
47+
48+
public void setLastUploadedDate(String lastUploadedDate) {
49+
this.set("last_uploaded_date", lastUploadedDate);
50+
}
51+
52+
@JsonProperty("path")
53+
public String getPath() {
54+
return getString("path");
55+
}
56+
57+
public void setPath(String path) {
58+
this.set("path", path);
59+
}
60+
61+
@JsonProperty("size")
62+
public Long getSize() {
63+
return getLong("size");
64+
}
65+
66+
public void setSize(Long size) {
67+
this.set("size", size);
68+
}
69+
70+
@JsonProperty("uploaded_parts")
71+
public Integer getUploadedParts() {
72+
return getInteger("uploaded_parts");
73+
}
74+
75+
public void setUploadedParts(Integer uploadedParts) {
76+
this.set("uploaded_parts", uploadedParts);
77+
}
78+
79+
@JsonProperty("uploaded")
80+
public Long getUploaded() {
81+
return getLong("uploaded");
82+
}
83+
84+
public void setUploaded(Long uploaded) {
85+
this.set("uploaded", uploaded);
86+
}
87+
88+
@JsonProperty("name")
89+
public String getName() {
90+
return getString("name");
91+
}
92+
93+
public void setName(String name) {
94+
this.set("name", name);
95+
}
96+
97+
@JsonProperty("overwrite")
98+
public Boolean getOverwrite() {
99+
return getBoolean("overwrite");
100+
}
101+
102+
public void setOverwrite(Boolean overwrite) {
103+
this.set("overwrite", overwrite);
104+
}
105+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package com.veeva.vault.vapil.api.model.common;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import com.veeva.vault.vapil.api.model.VaultModel;
5+
6+
public class ResumableUploadSessionPart extends VaultModel {
7+
8+
@JsonProperty("part_number")
9+
public Integer getPartNumber() {
10+
return this.getInteger("part_number");
11+
}
12+
13+
public void setPartNumber(Integer partNumber) {
14+
this.set("part_number", partNumber);
15+
}
16+
17+
@JsonProperty("size")
18+
public Integer getSize() {
19+
return this.getInteger("size");
20+
}
21+
22+
public void setSize(Integer size) {
23+
this.set("size", size);
24+
}
25+
26+
@JsonProperty("part_content_md5")
27+
public String getPartContentMd5() {
28+
return this.getString("part_content_md5");
29+
}
30+
31+
public void setPartContentMd5(String partContentMd5) {
32+
this.set("part_content_md5", partContentMd5);
33+
}
34+
}

0 commit comments

Comments
 (0)