Skip to content

Commit 5b239bb

Browse files
committed
Update client
1 parent eb83c06 commit 5b239bb

File tree

88 files changed

+636
-162
lines changed

Some content is hidden

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

88 files changed

+636
-162
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ src/main/java/com/croct/client/export/model/Session.java
6767
src/main/java/com/croct/client/export/model/SessionResponse.java
6868
src/main/java/com/croct/client/export/model/SessionStatistics.java
6969
src/main/java/com/croct/client/export/model/SessionWindow.java
70+
src/main/java/com/croct/client/export/model/SingleEventResponse.java
7071
src/main/java/com/croct/client/export/model/SlotPersonalized.java
7172
src/main/java/com/croct/client/export/model/SlotPersonalizedMetadata.java
7273
src/main/java/com/croct/client/export/model/SlotPersonalizedPersonalization.java

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.19.0-SNAPSHOT
1+
7.21.0-SNAPSHOT

api/openapi.yaml

Lines changed: 145 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
name: MIT
99
url: https://choosealicense.com/licenses/mit
1010
title: Croct Export
11-
version: 0.5.0
11+
version: 0.6.0
1212
servers:
1313
- description: Production endpoint
1414
url: https://api.croct.io/export
@@ -192,6 +192,114 @@ paths:
192192
- export
193193
x-accepts:
194194
- application/json
195+
/events/{id}:
196+
get:
197+
operationId: exportEventById
198+
parameters:
199+
- description: The unique identifier of the event
200+
explode: false
201+
in: path
202+
name: id
203+
required: true
204+
schema:
205+
format: uuid
206+
type: string
207+
style: simple
208+
responses:
209+
"200":
210+
content:
211+
application/json:
212+
schema:
213+
$ref: "#/components/schemas/SingleEventResponse"
214+
description: Event found
215+
"404":
216+
content:
217+
application/json:
218+
schema:
219+
$ref: "#/components/schemas/ApiProblem"
220+
description: Request error
221+
default:
222+
content:
223+
application/json:
224+
schema:
225+
$ref: "#/components/schemas/ApiProblem"
226+
description: Request error
227+
tags:
228+
- export
229+
x-accepts:
230+
- application/json
231+
/session/{sessionId}:
232+
get:
233+
operationId: exportSessionById
234+
parameters:
235+
- description: The unique identifier of the session
236+
explode: false
237+
in: path
238+
name: sessionId
239+
required: true
240+
schema:
241+
format: uuid
242+
type: string
243+
style: simple
244+
responses:
245+
"200":
246+
content:
247+
application/json:
248+
schema:
249+
$ref: "#/components/schemas/Session"
250+
description: Session found
251+
"404":
252+
content:
253+
application/json:
254+
schema:
255+
$ref: "#/components/schemas/ApiProblem"
256+
description: Request error
257+
default:
258+
content:
259+
application/json:
260+
schema:
261+
$ref: "#/components/schemas/ApiProblem"
262+
description: Request error
263+
tags:
264+
- export
265+
x-accepts:
266+
- application/json
267+
/user/{userId}:
268+
get:
269+
operationId: exportUserById
270+
parameters:
271+
- description: The unique identifier of the user
272+
explode: false
273+
in: path
274+
name: userId
275+
required: true
276+
schema:
277+
format: uuid
278+
type: string
279+
style: simple
280+
responses:
281+
"200":
282+
content:
283+
application/json:
284+
schema:
285+
$ref: "#/components/schemas/User"
286+
description: User found
287+
"404":
288+
content:
289+
application/json:
290+
schema:
291+
$ref: "#/components/schemas/ApiProblem"
292+
description: Request error
293+
default:
294+
content:
295+
application/json:
296+
schema:
297+
$ref: "#/components/schemas/ApiProblem"
298+
description: Request error
299+
tags:
300+
- export
301+
x-accepts:
302+
- application/json
195303
components:
196304
parameters:
197305
WindowStart:
@@ -592,10 +700,14 @@ components:
592700
metadata:
593701
key: metadata
594702
type: web
703+
id: id
595704
sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
596705
userId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
597706
timestamp: 0
598707
properties:
708+
id:
709+
description: The unique identifier of the event.
710+
type: string
599711
sessionId:
600712
description: The ID of the session assigned to the event.
601713
format: uuid
@@ -615,6 +727,7 @@ components:
615727
$ref: "#/components/schemas/EventPayload"
616728
required:
617729
- context
730+
- id
618731
- payload
619732
- sessionId
620733
- timestamp
@@ -713,6 +826,7 @@ components:
713826
metadata:
714827
key: metadata
715828
type: web
829+
id: id
716830
sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
717831
userId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
718832
timestamp: 0
@@ -722,6 +836,7 @@ components:
722836
metadata:
723837
key: metadata
724838
type: web
839+
id: id
725840
sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
726841
userId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
727842
timestamp: 0
@@ -739,6 +854,35 @@ components:
739854
- metadata
740855
- nextCursor
741856
type: object
857+
SingleEventResponse:
858+
example:
859+
metadata:
860+
organizationSlug: organizationSlug
861+
applicationSlug: applicationSlug
862+
organizationName: organizationName
863+
workspaceName: workspaceName
864+
workspaceSlug: workspaceSlug
865+
applicationName: applicationName
866+
event:
867+
payload:
868+
'@type': '@type'
869+
context:
870+
metadata:
871+
key: metadata
872+
type: web
873+
id: id
874+
sessionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
875+
userId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
876+
timestamp: 0
877+
properties:
878+
metadata:
879+
$ref: "#/components/schemas/EventResponse_metadata"
880+
event:
881+
$ref: "#/components/schemas/Event"
882+
required:
883+
- event
884+
- metadata
885+
type: object
742886
EventType:
743887
enum:
744888
- userSignedUp

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>croct-export-client</artifactId>
66
<packaging>jar</packaging>
77
<name>croct-export-client</name>
8-
<version>0.5.0</version>
8+
<version>0.6.0</version>
99
<url>https://github.com/croct-tech/export-client-java</url>
1010
<description>Java client for the Croct Exporter API.</description>
1111
<scm>
@@ -387,7 +387,7 @@
387387
<jersey-version>2.37</jersey-version>
388388
<jackson-version>2.19.2</jackson-version>
389389
<jackson-databind-version>2.19.2</jackson-databind-version>
390-
<jackson-databind-nullable-version>0.2.8</jackson-databind-nullable-version>
390+
<jackson-databind-nullable-version>0.2.9</jackson-databind-nullable-version>
391391
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
392392
<beanvalidation-version>2.0.2</beanvalidation-version>
393393
<junit-version>5.10.0</junit-version>

src/main/java/com/croct/client/export/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Croct Export
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 0.5.0
5+
* The version of the OpenAPI document: 0.6.0
66
* Contact: apis@croct.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -83,7 +83,7 @@
8383
/**
8484
* <p>ApiClient class.</p>
8585
*/
86-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT")
86+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
8787
public class ApiClient extends JavaTimeFormatter {
8888
protected static final Pattern JSON_MIME_PATTERN = Pattern.compile("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$");
8989

src/main/java/com/croct/client/export/ApiException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Croct Export
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 0.5.0
5+
* The version of the OpenAPI document: 0.6.0
66
* Contact: apis@croct.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -21,7 +21,7 @@
2121
/**
2222
* API Exception
2323
*/
24-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT")
24+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
2525
public class ApiException extends Exception {
2626
private static final long serialVersionUID = 1L;
2727

src/main/java/com/croct/client/export/ApiResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Croct Export
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 0.5.0
5+
* The version of the OpenAPI document: 0.6.0
66
* Contact: apis@croct.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/croct/client/export/Configuration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Croct Export
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 0.5.0
5+
* The version of the OpenAPI document: 0.6.0
66
* Contact: apis@croct.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,9 +17,9 @@
1717
import java.util.concurrent.atomic.AtomicReference;
1818
import java.util.function.Supplier;
1919

20-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT")
20+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
2121
public class Configuration {
22-
public static final String VERSION = "0.5.0";
22+
public static final String VERSION = "0.6.0";
2323

2424
private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
2525
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;

src/main/java/com/croct/client/export/JSON.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Croct Export
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 0.5.0
5+
* The version of the OpenAPI document: 0.6.0
66
* Contact: apis@croct.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,7 +27,7 @@
2727
import javax.ws.rs.core.GenericType;
2828
import javax.ws.rs.ext.ContextResolver;
2929

30-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT")
30+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
3131
public class JSON implements ContextResolver<ObjectMapper> {
3232
private ObjectMapper mapper;
3333

src/main/java/com/croct/client/export/JavaTimeFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Croct Export
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 0.5.0
5+
* The version of the OpenAPI document: 0.6.0
66
* Contact: apis@croct.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -20,7 +20,7 @@
2020
* Class that add parsing/formatting support for Java 8+ {@code OffsetDateTime} class.
2121
* It's generated for java clients when {@code AbstractJavaCodegen#dateLibrary} specified as {@code java8}.
2222
*/
23-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.19.0-SNAPSHOT")
23+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.21.0-SNAPSHOT")
2424
public class JavaTimeFormatter {
2525
private DateTimeFormatter offsetDateTimeFormatter = DateTimeFormatter.ISO_OFFSET_DATE_TIME;
2626

0 commit comments

Comments
 (0)