Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jjl014 committed Oct 10, 2024
1 parent 1838fc2 commit 9074787
Show file tree
Hide file tree
Showing 186 changed files with 418 additions and 388 deletions.
2 changes: 1 addition & 1 deletion constructorio-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>io.constructor.client</groupId>
<artifactId>constructorio-client</artifactId>
<packaging>jar</packaging>
<version>6.2.0</version>
<version>6.3.0</version>
<name>constructorio-client</name>
<url>https://github.com/Constructor-io/constructorio-java</url>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2013,7 +2013,7 @@ protected static String getResponseBody(Response response) throws ConstructorExc
* @return version number
*/
protected String getVersion() {
return "ciojava-6.2.0";
return "ciojava-6.3.0";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void AutocompleteWithPlusShouldBeEncodedInUrl() throws Exception {

RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath =
String.format("/autocomplete/r%%2Bco?key=%s&c=ciojava-6.2.0", apiKey);
String.format("/autocomplete/r%%2Bco?key=%s&c=ciojava-6.3.0", apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
}
Expand All @@ -60,7 +60,7 @@ public void AutocompleteWithSpaceShouldBeEncodedInUrl() throws Exception {

RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath =
String.format("/autocomplete/r%%20co?key=%s&c=ciojava-6.2.0", apiKey);
String.format("/autocomplete/r%%20co?key=%s&c=ciojava-6.3.0", apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
}
Expand All @@ -78,7 +78,7 @@ public void AutocompleteWithSlashShouldBeEncodedInUrl() throws Exception {

RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath =
String.format("/autocomplete/r%%2Fco?key=%s&c=ciojava-6.2.0", apiKey);
String.format("/autocomplete/r%%2Fco?key=%s&c=ciojava-6.3.0", apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
}
Expand All @@ -95,7 +95,7 @@ public void AutocompleteWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
constructor.autocomplete(request, null);

RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath = String.format("/autocomplete/r'co?key=%s&c=ciojava-6.2.0", apiKey);
String expectedPath = String.format("/autocomplete/r'co?key=%s&c=ciojava-6.3.0", apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void makeUrlShouldReturnAUrl() throws Exception {
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"));
assertEquals("host is set", url.host(), "ac.cnstrc.com");
assertEquals("protocol is set", url.scheme(), "https");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.2.0");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.3.0");
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
}

Expand All @@ -160,7 +160,7 @@ public void makeUrlWithBasePathShouldReturnAUrl() throws Exception {
assertEquals("Path is correct", url.encodedPath(), "/123/2345/getitUuuurl");
assertEquals("host is set", url.host(), "ac.cnstrc.com");
assertEquals("protocol is set", url.scheme(), "https");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.2.0");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.3.0");
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
}

Expand All @@ -179,7 +179,7 @@ public void makeUrlWithBasePathAndUserInfoShouldReturnAUrl() throws Exception {
assertEquals("Path is correct", url.encodedPath(), "/123/2345/getitUuuurl");
assertEquals("host is set", url.host(), "ac.cnstrc.com");
assertEquals("protocol is set", url.scheme(), "https");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.2.0");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.3.0");
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
}

Expand All @@ -190,7 +190,7 @@ public void makeUrlWithUserIdShouldReturnAUrl() throws Exception {
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
assertEquals("host is set", url.host(), "ac.cnstrc.com");
assertEquals("protocol is set", url.scheme(), "https");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.2.0");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.3.0");
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
assertEquals("session id is set", url.queryParameter("s"), "2");
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
Expand All @@ -205,7 +205,7 @@ public void makeUrlWithUserInfoShouldReturnAUrl() throws Exception {
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
assertEquals("host is set", url.host(), "ac.cnstrc.com");
assertEquals("protocol is set", url.scheme(), "https");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.2.0");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.3.0");
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
assertEquals("session id is set", url.queryParameter("s"), "2");
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
Expand All @@ -220,7 +220,7 @@ public void makeUrlWithUserSegmentsShouldReturnAUrl() throws Exception {
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
assertEquals("host is set", url.host(), "ac.cnstrc.com");
assertEquals("protocol is set", url.scheme(), "https");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.2.0");
assertEquals("version is set", url.queryParameter("c"), "ciojava-6.3.0");
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
assertEquals("session id is set", url.queryParameter("s"), "2");
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
Expand All @@ -238,7 +238,7 @@ public void verifyShouldReturnTrueWithValidKeyTokenPair() throws Exception {
@Test
public void getVersionShouldReturnClientVersion() throws Exception {
ConstructorIO constructor = new ConstructorIO(token, apiKey, true, null);
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-6.2.0");
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-6.3.0");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void SearchWithPlusShouldBeEncodedInUrl() throws Exception {
RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath =
String.format(
"/search/r%%2Bco?key=%s&c=ciojava-6.2.0&section=Products&num_results_per_page=30",
"/search/r%%2Bco?key=%s&c=ciojava-6.3.0&section=Products&num_results_per_page=30",
apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
Expand All @@ -63,7 +63,7 @@ public void SearchWithSpaceShouldBeEncodedInUrl() throws Exception {
RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath =
String.format(
"/search/r%%20co?key=%s&c=ciojava-6.2.0&section=Products&num_results_per_page=30",
"/search/r%%20co?key=%s&c=ciojava-6.3.0&section=Products&num_results_per_page=30",
apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
Expand All @@ -83,7 +83,7 @@ public void SearchWithSlashShouldBeEncodedInUrl() throws Exception {
RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath =
String.format(
"/search/r%%2Fco?key=%s&c=ciojava-6.2.0&section=Products&num_results_per_page=30",
"/search/r%%2Fco?key=%s&c=ciojava-6.3.0&section=Products&num_results_per_page=30",
apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
Expand All @@ -103,7 +103,7 @@ public void SearchWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
RecordedRequest recordedRequest = mockServer.takeRequest();
String expectedPath =
String.format(
"/search/r'co?key=%s&c=ciojava-6.2.0&section=Products&num_results_per_page=30",
"/search/r'co?key=%s&c=ciojava-6.3.0&section=Products&num_results_per_page=30",
apiKey);
String actualPath = recordedRequest.getPath();
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
Expand Down
4 changes: 2 additions & 2 deletions docs/allclasses-index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>All Classes and Interfaces (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>All Classes and Interfaces (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down
4 changes: 2 additions & 2 deletions docs/allpackages-index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>All Packages (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>All Packages (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down
4 changes: 2 additions & 2 deletions docs/constant-values.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>Constant Field Values (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>Constant Field Values (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down
4 changes: 2 additions & 2 deletions docs/help-doc.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>API Help (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>API Help (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down
8 changes: 6 additions & 2 deletions docs/index-all.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>Index (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>Index (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down Expand Up @@ -586,6 +586,8 @@ <h2 class="title" id="I:G">G</h2>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/AutocompleteRequest.html#getFilters()" class="member-name-link">getFilters()</a> - Method in class io.constructor.client.<a href="io/constructor/client/AutocompleteRequest.html" title="class in io.constructor.client">AutocompleteRequest</a></dt>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/AutocompleteRequest.html#getFiltersPerSection()" class="member-name-link">getFiltersPerSection()</a> - Method in class io.constructor.client.<a href="io/constructor/client/AutocompleteRequest.html" title="class in io.constructor.client">AutocompleteRequest</a></dt>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/BrowseRequest.html#getFilterValue()" class="member-name-link">getFilterValue()</a> - Method in class io.constructor.client.<a href="io/constructor/client/BrowseRequest.html" title="class in io.constructor.client">BrowseRequest</a></dt>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/CatalogRequest.html#getForce()" class="member-name-link">getForce()</a> - Method in class io.constructor.client.<a href="io/constructor/client/CatalogRequest.html" title="class in io.constructor.client">CatalogRequest</a></dt>
Expand Down Expand Up @@ -1627,6 +1629,8 @@ <h2 class="title" id="I:S">S</h2>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/AutocompleteRequest.html#setFilters(java.util.Map)" class="member-name-link">setFilters(Map&lt;String, List&lt;String&gt;&gt;)</a> - Method in class io.constructor.client.<a href="io/constructor/client/AutocompleteRequest.html" title="class in io.constructor.client">AutocompleteRequest</a></dt>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/AutocompleteRequest.html#setFiltersPerSection(java.util.Map)" class="member-name-link">setFiltersPerSection(Map&lt;String, Map&lt;String, List&lt;String&gt;&gt;&gt;)</a> - Method in class io.constructor.client.<a href="io/constructor/client/AutocompleteRequest.html" title="class in io.constructor.client">AutocompleteRequest</a></dt>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/BrowseRequest.html#setFilterValue(java.lang.String)" class="member-name-link">setFilterValue(String)</a> - Method in class io.constructor.client.<a href="io/constructor/client/BrowseRequest.html" title="class in io.constructor.client">BrowseRequest</a></dt>
<dd>&nbsp;</dd>
<dt><a href="io/constructor/client/CatalogRequest.html#setForce(java.lang.Boolean)" class="member-name-link">setForce(Boolean)</a> - Method in class io.constructor.client.<a href="io/constructor/client/CatalogRequest.html" title="class in io.constructor.client">CatalogRequest</a></dt>
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>Overview (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>Overview (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down Expand Up @@ -50,7 +50,7 @@
<div class="flex-content">
<main role="main">
<div class="header">
<h1 class="title">constructorio-client 6.2.0 API</h1>
<h1 class="title">constructorio-client 6.3.0 API</h1>
</div>
<div id="all-packages-table">
<div class="caption"><span>Packages</span></div>
Expand Down
4 changes: 2 additions & 2 deletions docs/io/constructor/client/AllRedirectsRequest.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>AllRedirectsRequest (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>AllRedirectsRequest (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down
4 changes: 2 additions & 2 deletions docs/io/constructor/client/AllTasksRequest.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (19) on Thu Oct 10 14:40:04 PDT 2024 -->
<title>AllTasksRequest (constructorio-client 6.2.0 API)</title>
<!-- Generated by javadoc (19) on Thu Oct 10 15:06:43 PDT 2024 -->
<title>AllTasksRequest (constructorio-client 6.3.0 API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2024-10-10">
Expand Down
Loading

0 comments on commit 9074787

Please sign in to comment.