Skip to content

Commit 3a73649

Browse files
chore: generated code for commit 3c7498b. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 3c7498b commit 3a73649

File tree

6 files changed

+38
-38
lines changed

6 files changed

+38
-38
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/predict/Predictions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
public class Predictions {
1111

1212
@JsonProperty("funnel_stage")
13-
private PredictionsfunnelStage funnelStage;
13+
private PredictionsFunnelStage funnelStage;
1414

1515
@JsonProperty("order_value")
1616
private PredictionsOrderValue orderValue;
1717

1818
@JsonProperty("affinities")
1919
private PredictionsAffinities affinities;
2020

21-
public Predictions setFunnelStage(PredictionsfunnelStage funnelStage) {
21+
public Predictions setFunnelStage(PredictionsFunnelStage funnelStage) {
2222
this.funnelStage = funnelStage;
2323
return this;
2424
}
@@ -29,7 +29,7 @@ public Predictions setFunnelStage(PredictionsfunnelStage funnelStage) {
2929
* @return funnelStage
3030
*/
3131
@javax.annotation.Nullable
32-
public PredictionsfunnelStage getFunnelStage() {
32+
public PredictionsFunnelStage getFunnelStage() {
3333
return funnelStage;
3434
}
3535

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,50 +14,50 @@
1414
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
1515
import java.io.IOException;
1616

17-
/** PredictionsfunnelStage */
18-
@JsonDeserialize(using = PredictionsfunnelStage.PredictionsfunnelStageDeserializer.class)
19-
@JsonSerialize(using = PredictionsfunnelStage.PredictionsfunnelStageSerializer.class)
20-
public abstract class PredictionsfunnelStage implements CompoundType {
17+
/** PredictionsFunnelStage */
18+
@JsonDeserialize(using = PredictionsFunnelStage.PredictionsFunnelStageDeserializer.class)
19+
@JsonSerialize(using = PredictionsFunnelStage.PredictionsFunnelStageSerializer.class)
20+
public abstract class PredictionsFunnelStage implements CompoundType {
2121

22-
public static PredictionsfunnelStage of(Error inside) {
23-
return new PredictionsfunnelStageError(inside);
22+
public static PredictionsFunnelStage of(Error inside) {
23+
return new PredictionsFunnelStageError(inside);
2424
}
2525

26-
public static PredictionsfunnelStage of(FunnelStageSuccess inside) {
27-
return new PredictionsfunnelStageFunnelStageSuccess(inside);
26+
public static PredictionsFunnelStage of(FunnelStageSuccess inside) {
27+
return new PredictionsFunnelStageFunnelStageSuccess(inside);
2828
}
2929

30-
public static class PredictionsfunnelStageSerializer extends StdSerializer<PredictionsfunnelStage> {
30+
public static class PredictionsFunnelStageSerializer extends StdSerializer<PredictionsFunnelStage> {
3131

32-
public PredictionsfunnelStageSerializer(Class<PredictionsfunnelStage> t) {
32+
public PredictionsFunnelStageSerializer(Class<PredictionsFunnelStage> t) {
3333
super(t);
3434
}
3535

36-
public PredictionsfunnelStageSerializer() {
36+
public PredictionsFunnelStageSerializer() {
3737
this(null);
3838
}
3939

4040
@Override
41-
public void serialize(PredictionsfunnelStage value, JsonGenerator jgen, SerializerProvider provider)
41+
public void serialize(PredictionsFunnelStage value, JsonGenerator jgen, SerializerProvider provider)
4242
throws IOException, JsonProcessingException {
4343
jgen.writeObject(value.getInsideValue());
4444
}
4545
}
4646

47-
public static class PredictionsfunnelStageDeserializer extends StdDeserializer<PredictionsfunnelStage> {
47+
public static class PredictionsFunnelStageDeserializer extends StdDeserializer<PredictionsFunnelStage> {
4848

49-
public PredictionsfunnelStageDeserializer() {
50-
this(PredictionsfunnelStage.class);
49+
public PredictionsFunnelStageDeserializer() {
50+
this(PredictionsFunnelStage.class);
5151
}
5252

53-
public PredictionsfunnelStageDeserializer(Class<?> vc) {
53+
public PredictionsFunnelStageDeserializer(Class<?> vc) {
5454
super(vc);
5555
}
5656

5757
@Override
58-
public PredictionsfunnelStage deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
58+
public PredictionsFunnelStage deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
5959
JsonNode tree = jp.readValueAsTree();
60-
PredictionsfunnelStage deserialized = null;
60+
PredictionsFunnelStage deserialized = null;
6161

6262
int match = 0;
6363
JsonToken token = tree.traverse(jp.getCodec()).nextToken();
@@ -73,11 +73,11 @@ public PredictionsfunnelStage deserialize(JsonParser jp, DeserializationContext
7373
(currentType.equals("String") && token == JsonToken.VALUE_STRING) |
7474
(currentType.startsWith("List<") && token == JsonToken.START_ARRAY)
7575
) {
76-
deserialized = PredictionsfunnelStage.of((Error) tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Error>() {}));
76+
deserialized = PredictionsFunnelStage.of((Error) tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Error>() {}));
7777
match++;
7878
} else if (token == JsonToken.START_OBJECT) {
7979
try {
80-
deserialized = PredictionsfunnelStage.of((Error) tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Error>() {}));
80+
deserialized = PredictionsFunnelStage.of((Error) tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Error>() {}));
8181
match++;
8282
} catch (IOException e) {
8383
// do nothing
@@ -100,14 +100,14 @@ public PredictionsfunnelStage deserialize(JsonParser jp, DeserializationContext
100100
(currentType.startsWith("List<") && token == JsonToken.START_ARRAY)
101101
) {
102102
deserialized =
103-
PredictionsfunnelStage.of(
103+
PredictionsFunnelStage.of(
104104
(FunnelStageSuccess) tree.traverse(jp.getCodec()).readValueAs(new TypeReference<FunnelStageSuccess>() {})
105105
);
106106
match++;
107107
} else if (token == JsonToken.START_OBJECT) {
108108
try {
109109
deserialized =
110-
PredictionsfunnelStage.of(
110+
PredictionsFunnelStage.of(
111111
(FunnelStageSuccess) tree.traverse(jp.getCodec()).readValueAs(new TypeReference<FunnelStageSuccess>() {})
112112
);
113113
match++;
@@ -124,23 +124,23 @@ public PredictionsfunnelStage deserialize(JsonParser jp, DeserializationContext
124124
return deserialized;
125125
}
126126
throw new IOException(
127-
String.format("Failed deserialization for PredictionsfunnelStage: %d classes match result, expected" + " 1", match)
127+
String.format("Failed deserialization for PredictionsFunnelStage: %d classes match result, expected" + " 1", match)
128128
);
129129
}
130130

131131
/** Handle deserialization of the 'null' value. */
132132
@Override
133-
public PredictionsfunnelStage getNullValue(DeserializationContext ctxt) throws JsonMappingException {
134-
throw new JsonMappingException(ctxt.getParser(), "PredictionsfunnelStage cannot be null");
133+
public PredictionsFunnelStage getNullValue(DeserializationContext ctxt) throws JsonMappingException {
134+
throw new JsonMappingException(ctxt.getParser(), "PredictionsFunnelStage cannot be null");
135135
}
136136
}
137137
}
138138

139-
class PredictionsfunnelStageError extends PredictionsfunnelStage {
139+
class PredictionsFunnelStageError extends PredictionsFunnelStage {
140140

141141
private final Error insideValue;
142142

143-
PredictionsfunnelStageError(Error insideValue) {
143+
PredictionsFunnelStageError(Error insideValue) {
144144
this.insideValue = insideValue;
145145
}
146146

@@ -150,11 +150,11 @@ public Error getInsideValue() {
150150
}
151151
}
152152

153-
class PredictionsfunnelStageFunnelStageSuccess extends PredictionsfunnelStage {
153+
class PredictionsFunnelStageFunnelStageSuccess extends PredictionsFunnelStage {
154154

155155
private final FunnelStageSuccess insideValue;
156156

157-
PredictionsfunnelStageFunnelStageSuccess(FunnelStageSuccess insideValue) {
157+
PredictionsFunnelStageFunnelStageSuccess(FunnelStageSuccess insideValue) {
158158
this.insideValue = insideValue;
159159
}
160160

clients/algoliasearch-client-javascript/packages/predict/model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export * from './orderValueSuccess';
1818
export * from './params';
1919
export * from './predictions';
2020
export * from './predictionsAffinities';
21+
export * from './predictionsFunnelStage';
2122
export * from './predictionsOrderValue';
22-
export * from './predictionsfunnelStage';
2323
export * from './previousPageTokenParam';
2424
export * from './properties';
2525
export * from './segments';

clients/algoliasearch-client-javascript/packages/predict/model/predictions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
import type { PredictionsAffinities } from './predictionsAffinities';
4+
import type { PredictionsFunnelStage } from './predictionsFunnelStage';
45
import type { PredictionsOrderValue } from './predictionsOrderValue';
5-
import type { PredictionsfunnelStage } from './predictionsfunnelStage';
66

77
export type Predictions = {
8-
funnel_stage?: PredictionsfunnelStage;
8+
funnel_stage?: PredictionsFunnelStage;
99

1010
order_value?: PredictionsOrderValue;
1111

clients/algoliasearch-client-javascript/packages/predict/model/predictionsfunnelStage.ts renamed to clients/algoliasearch-client-javascript/packages/predict/model/predictionsFunnelStage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
import type { FunnelStageSuccess } from './funnelStageSuccess';
44
import type { ModelError } from './modelError';
55

6-
export type PredictionsfunnelStage = FunnelStageSuccess | ModelError;
6+
export type PredictionsFunnelStage = FunnelStageSuccess | ModelError;

specs/bundled/predict.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ components:
120120
type: string
121121
required:
122122
- error
123-
predictionsfunnelStage:
123+
predictionsFunnelStage:
124124
oneOf:
125125
- $ref: '#/components/schemas/funnelStageSuccess'
126126
- $ref: '#/components/schemas/error'
@@ -185,7 +185,7 @@ components:
185185
title: predictions
186186
properties:
187187
funnel_stage:
188-
$ref: '#/components/schemas/predictionsfunnelStage'
188+
$ref: '#/components/schemas/predictionsFunnelStage'
189189
order_value:
190190
$ref: '#/components/schemas/predictionsOrderValue'
191191
affinities:

0 commit comments

Comments
 (0)