Skip to content

Commit 20f210d

Browse files
committed
Version Bump
1 parent d800067 commit 20f210d

File tree

153 files changed

+2745
-3744
lines changed

Some content is hidden

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

153 files changed

+2745
-3744
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Requesting results from your JVM based back-end can be useful in order to contro
1414

1515
# Installation
1616

17-
1. Follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-java/v5.20.8) to add the client to your project.
17+
1. Follow the directions at [Jitpack.io](https://jitpack.io/#Constructor-io/constructorio-java/v5.21.0) to add the client to your project.
1818
2. Retrieve your autocomplete token and key. You can find this at your [Constructor.io dashboard](https://constructor.io/dashboard).
1919
3. Create a new instance of the client.
2020

constructorio-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>io.constructor.client</groupId>
55
<artifactId>constructorio-client</artifactId>
66
<packaging>jar</packaging>
7-
<version>5.20.8</version>
7+
<version>5.21.0</version>
88
<name>constructorio-client</name>
99
<url>https://github.com/Constructor-io/constructorio-java</url>
1010
<dependencies>

constructorio-client/src/main/java/io/constructor/client/ConstructorIO.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ protected static String getResponseBody(Response response) throws ConstructorExc
17481748
* @return version number
17491749
*/
17501750
protected String getVersion() {
1751-
return "ciojava-5.20.8";
1751+
return "ciojava-5.21.0";
17521752
}
17531753

17541754
/**

constructorio-client/src/test/java/io/constructor/client/ConstructorIOAutocompleteUrlEncodingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void AutocompleteWithPlusShouldBeEncodedInUrl() throws Exception {
4242
constructor.autocomplete(request, null);
4343

4444
RecordedRequest recordedRequest = mockServer.takeRequest();
45-
String expectedPath = String.format("/autocomplete/r%%2Bco?key=%s&c=ciojava-5.20.8", apiKey);
45+
String expectedPath = String.format("/autocomplete/r%%2Bco?key=%s&c=ciojava-5.21.0", apiKey);
4646
String actualPath = recordedRequest.getPath();
4747
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
4848
}
@@ -58,7 +58,7 @@ public void AutocompleteWithSpaceShouldBeEncodedInUrl() throws Exception {
5858
constructor.autocomplete(request, null);
5959

6060
RecordedRequest recordedRequest = mockServer.takeRequest();
61-
String expectedPath = String.format("/autocomplete/r%%20co?key=%s&c=ciojava-5.20.8", apiKey);
61+
String expectedPath = String.format("/autocomplete/r%%20co?key=%s&c=ciojava-5.21.0", apiKey);
6262
String actualPath = recordedRequest.getPath();
6363
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
6464
}
@@ -74,7 +74,7 @@ public void AutocompleteWithSlashShouldBeEncodedInUrl() throws Exception {
7474
constructor.autocomplete(request, null);
7575

7676
RecordedRequest recordedRequest = mockServer.takeRequest();
77-
String expectedPath = String.format("/autocomplete/r%%2Fco?key=%s&c=ciojava-5.20.8", apiKey);
77+
String expectedPath = String.format("/autocomplete/r%%2Fco?key=%s&c=ciojava-5.21.0", apiKey);
7878
String actualPath = recordedRequest.getPath();
7979
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
8080
}
@@ -90,7 +90,7 @@ public void AutocompleteWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
9090
constructor.autocomplete(request, null);
9191

9292
RecordedRequest recordedRequest = mockServer.takeRequest();
93-
String expectedPath = String.format("/autocomplete/r'co?key=%s&c=ciojava-5.20.8", apiKey);
93+
String expectedPath = String.format("/autocomplete/r'co?key=%s&c=ciojava-5.21.0", apiKey);
9494
String actualPath = recordedRequest.getPath();
9595
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
9696
}

constructorio-client/src/test/java/io/constructor/client/ConstructorIOBasicTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void makeUrlShouldReturnAUrl() throws Exception {
128128
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"));
129129
assertEquals("host is set", url.host(), "ac.cnstrc.com");
130130
assertEquals("protocol is set", url.scheme(), "https");
131-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.20.8");
131+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.21.0");
132132
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
133133
}
134134

@@ -139,7 +139,7 @@ public void makeUrlWithUserIdShouldReturnAUrl() throws Exception {
139139
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
140140
assertEquals("host is set", url.host(), "ac.cnstrc.com");
141141
assertEquals("protocol is set", url.scheme(), "https");
142-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.20.8");
142+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.21.0");
143143
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
144144
assertEquals("session id is set", url.queryParameter("s"), "2");
145145
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -154,7 +154,7 @@ public void makeUrlWithUserInfoShouldReturnAUrl() throws Exception {
154154
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
155155
assertEquals("host is set", url.host(), "ac.cnstrc.com");
156156
assertEquals("protocol is set", url.scheme(), "https");
157-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.20.8");
157+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.21.0");
158158
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
159159
assertEquals("session id is set", url.queryParameter("s"), "2");
160160
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -170,7 +170,7 @@ public void makeUrlWithUserSegmentsShouldReturnAUrl() throws Exception {
170170
HttpUrl url = constructor.makeUrl(Arrays.asList("getitUuuurl"), info);
171171
assertEquals("host is set", url.host(), "ac.cnstrc.com");
172172
assertEquals("protocol is set", url.scheme(), "https");
173-
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.20.8");
173+
assertEquals("version is set", url.queryParameter("c"), "ciojava-5.21.0");
174174
assertEquals("apiKey is set", url.queryParameter("key"), "doinkaKey");
175175
assertEquals("session id is set", url.queryParameter("s"), "2");
176176
assertEquals("client id is set", url.queryParameter("i"), "sideshow bob");
@@ -187,7 +187,7 @@ public void verifyShouldReturnTrueWithValidKeyTokenPair() throws Exception {
187187
@Test
188188
public void getVersionShouldReturnClientVersion() throws Exception {
189189
ConstructorIO constructor = new ConstructorIO(token, apiKey, true, null);
190-
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-5.20.8");
190+
assertEquals("grabs version from pom.xml", constructor.getVersion(), "ciojava-5.21.0");
191191
}
192192

193193
@Test

constructorio-client/src/test/java/io/constructor/client/ConstructorIOSearchUrlEncodingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void SearchWithPlusShouldBeEncodedInUrl() throws Exception {
4242
constructor.search(request, null);
4343

4444
RecordedRequest recordedRequest = mockServer.takeRequest();
45-
String expectedPath = String.format("/search/r%%2Bco?key=%s&c=ciojava-5.20.8&section=Products&num_results_per_page=30", apiKey);
45+
String expectedPath = String.format("/search/r%%2Bco?key=%s&c=ciojava-5.21.0&section=Products&num_results_per_page=30", apiKey);
4646
String actualPath = recordedRequest.getPath();
4747
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
4848
}
@@ -58,7 +58,7 @@ public void SearchWithSpaceShouldBeEncodedInUrl() throws Exception {
5858
constructor.search(request, null);
5959

6060
RecordedRequest recordedRequest = mockServer.takeRequest();
61-
String expectedPath = String.format("/search/r%%20co?key=%s&c=ciojava-5.20.8&section=Products&num_results_per_page=30", apiKey);
61+
String expectedPath = String.format("/search/r%%20co?key=%s&c=ciojava-5.21.0&section=Products&num_results_per_page=30", apiKey);
6262
String actualPath = recordedRequest.getPath();
6363
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
6464
}
@@ -74,7 +74,7 @@ public void SearchWithSlashShouldBeEncodedInUrl() throws Exception {
7474
constructor.search(request, null);
7575

7676
RecordedRequest recordedRequest = mockServer.takeRequest();
77-
String expectedPath = String.format("/search/r%%2Fco?key=%s&c=ciojava-5.20.8&section=Products&num_results_per_page=30", apiKey);
77+
String expectedPath = String.format("/search/r%%2Fco?key=%s&c=ciojava-5.21.0&section=Products&num_results_per_page=30", apiKey);
7878
String actualPath = recordedRequest.getPath();
7979
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
8080
}
@@ -90,7 +90,7 @@ public void SearchWithSingleQuoteShouldBeAllowedInUrl() throws Exception {
9090
constructor.search(request, null);
9191

9292
RecordedRequest recordedRequest = mockServer.takeRequest();
93-
String expectedPath = String.format("/search/r'co?key=%s&c=ciojava-5.20.8&section=Products&num_results_per_page=30", apiKey);
93+
String expectedPath = String.format("/search/r'co?key=%s&c=ciojava-5.21.0&section=Products&num_results_per_page=30", apiKey);
9494
String actualPath = recordedRequest.getPath();
9595
assertEquals("recorded request is encoded correctly", actualPath, expectedPath);
9696
}

docs/allclasses-index.html

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
<!DOCTYPE HTML>
22
<html lang="en">
33
<head>
4-
<!-- Generated by javadoc (19) on Thu Nov 17 13:02:44 PST 2022 -->
5-
<title>All Classes and Interfaces (constructorio-client 5.20.8 API)</title>
4+
<!-- Generated by javadoc (17) on Mon Nov 21 14:10:01 EST 2022 -->
5+
<title>All Classes and Interfaces (constructorio-client 5.21.0 API)</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8-
<meta name="dc.created" content="2022-11-17">
8+
<meta name="dc.created" content="2022-11-21">
99
<meta name="description" content="class index">
1010
<meta name="generator" content="javadoc/AllClassesIndexWriter">
1111
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1212
<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style">
1313
<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style">
1414
<script type="text/javascript" src="script.js"></script>
15-
<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script>
15+
<script type="text/javascript" src="script-dir/jquery-3.5.1.min.js"></script>
1616
<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
1717
</head>
1818
<body class="all-classes-index-page">
19-
<script type="text/javascript">var pathtoroot = "./";
19+
<script type="text/javascript">var evenRowColor = "even-row-color";
20+
var oddRowColor = "odd-row-color";
21+
var tableTab = "table-tab";
22+
var activeTableTab = "active-table-tab";
23+
var pathtoroot = "./";
2024
loadScripts(document, 'script');</script>
2125
<noscript>
2226
<div>JavaScript is disabled on your browser.</div>
@@ -25,7 +29,7 @@
2529
<header role="banner" class="flex-header">
2630
<nav role="navigation">
2731
<!-- ========= START OF TOP NAVBAR ======= -->
28-
<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span><span class="nav-bar-toggle-icon">&nbsp;</span></button>
32+
<div class="top-nav" id="navbar-top">
2933
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
3034
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
3135
<li><a href="index.html">Overview</a></li>
@@ -38,10 +42,9 @@
3842
</ul>
3943
</div>
4044
<div class="sub-nav">
41-
<div id="navbar-sub-list"></div>
42-
<div class="nav-list-search"><a href="search.html">SEARCH</a>
43-
<input type="text" id="search-input" disabled placeholder="Search">
44-
<input type="reset" id="reset-button" disabled value="reset">
45+
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
46+
<input type="text" id="search-input" value="search" disabled="disabled">
47+
<input type="reset" id="reset-button" value="reset" disabled="disabled">
4548
</div>
4649
</div>
4750
<!-- ========= END OF TOP NAVBAR ========= -->
@@ -53,7 +56,7 @@
5356
<h1 title="All Classes and Interfaces" class="title">All Classes and Interfaces</h1>
5457
</div>
5558
<div id="all-classes-table">
56-
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="all-classes-table-tab0" role="tab" aria-selected="true" aria-controls="all-classes-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="all-classes-table-tab1" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab1', 2)" class="table-tab">Interfaces</button><button id="all-classes-table-tab2" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab2', 2)" class="table-tab">Classes</button><button id="all-classes-table-tab3" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab3', 2)" class="table-tab">Enum Classes</button><button id="all-classes-table-tab5" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab5', 2)" class="table-tab">Exception Classes</button></div>
59+
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="all-classes-table-tab0" role="tab" aria-selected="true" aria-controls="all-classes-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="all-classes-table-tab1" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab1', 2)" class="table-tab">Interfaces</button><button id="all-classes-table-tab2" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab2', 2)" class="table-tab">Classes</button><button id="all-classes-table-tab3" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab3', 2)" class="table-tab">Enum Classes</button><button id="all-classes-table-tab5" role="tab" aria-selected="false" aria-controls="all-classes-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('all-classes-table', 'all-classes-table-tab5', 2)" class="table-tab">Exceptions</button></div>
5760
<div id="all-classes-table.tabpanel" role="tabpanel">
5861
<div class="summary-table two-column-summary" aria-labelledby="all-classes-table-tab0">
5962
<div class="table-header col-first">Class</div>
@@ -177,6 +180,28 @@ <h1 title="All Classes and Interfaces" class="title">All Classes and Interfaces<
177180
<div class="block">Utility file that contains code paths from https://square.github.io/okhttp/4.x/okhttp/okhttp3/-http-url/-builder/
178181
that were otherwise unaccessible.</div>
179182
</div>
183+
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/models/QuizImages.html" title="class in io.constructor.client.models">QuizImages</a></div>
184+
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">&nbsp;</div>
185+
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/models/QuizOption.html" title="class in io.constructor.client.models">QuizOption</a></div>
186+
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">&nbsp;</div>
187+
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/models/QuizOptionAttribute.html" title="class in io.constructor.client.models">QuizOptionAttribute</a></div>
188+
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">&nbsp;</div>
189+
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/models/QuizQuestion.html" title="class in io.constructor.client.models">QuizQuestion</a></div>
190+
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">&nbsp;</div>
191+
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/models/QuizQuestionResponse.html" title="class in io.constructor.client.models">QuizQuestionResponse</a></div>
192+
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
193+
<div class="block">Constructor.io Quiz Question Response ...</div>
194+
</div>
195+
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/QuizRequest.html" title="class in io.constructor.client">QuizRequest</a></div>
196+
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
197+
<div class="block">Constructor.io Next Quiz and Finalize Quiz request</div>
198+
</div>
199+
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/models/QuizResult.html" title="class in io.constructor.client.models">QuizResult</a></div>
200+
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">&nbsp;</div>
201+
<div class="col-first even-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/models/QuizResultsResponse.html" title="class in io.constructor.client.models">QuizResultsResponse</a></div>
202+
<div class="col-last even-row-color all-classes-table all-classes-table-tab2">
203+
<div class="block">Constructor.io Quiz Results Response ...</div>
204+
</div>
180205
<div class="col-first odd-row-color all-classes-table all-classes-table-tab2"><a href="io/constructor/client/RecommendationsRequest.html" title="class in io.constructor.client">RecommendationsRequest</a></div>
181206
<div class="col-last odd-row-color all-classes-table all-classes-table-tab2">
182207
<div class="block">Constructor.io Recommendations Request</div>

0 commit comments

Comments
 (0)