Skip to content

Commit

Permalink
Regenerated from version 1.170.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KSGRelewise committed Sep 16, 2024
1 parent 499c6e1 commit a2d7c89
Show file tree
Hide file tree
Showing 30 changed files with 945 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Generator/Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<ItemGroup>
<PackageReference Include="AngleSharp.Xml" Version="1.0.0" />
<PackageReference Include="Relewise.Client" Version="1.162.0" />
<PackageReference Include="Relewise.Client" Version="1.170.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public ContentCategoryDataRelevanceModifier(String key, ArrayList<ValueCondition
/**
* Creates a <code>RelevanceModifier</code> that can change the relevance of a ContentCategory depending on matching conditions on a certain key.
* @param key The data key that this RelevanceModifier will distinguish on.
* @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
* @param conditions The conditions that must hold for the specific data Key in order for the entity to be boosted.
* @param multiplierSelector The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double.
* @param mustMatchAllConditions Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false).
* @param considerAsMatchIfKeyIsNotFound Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
*/
public static ContentCategoryDataRelevanceModifier create(String key, ArrayList<ValueCondition> conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
Expand All @@ -51,7 +54,10 @@ public static ContentCategoryDataRelevanceModifier create(String key, ArrayList<
/**
* Creates a <code>RelevanceModifier</code> that can change the relevance of a ContentCategory depending on matching conditions on a certain key.
* @param key The data key that this RelevanceModifier will distinguish on.
* @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
* @param conditions The conditions that must hold for the specific data Key in order for the entity to be boosted.
* @param multiplierSelector The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double.
* @param mustMatchAllConditions Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false).
* @param considerAsMatchIfKeyIsNotFound Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
*/
public ContentCategoryDataRelevanceModifier(String key, ArrayList<ValueCondition> conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;

/** @deprecated Use ContentDataDoubleValueFacet instead */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;

/** @deprecated Use ContentDataDoubleValueFacetResult instead */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public ContentDataRelevanceModifier(String key, ArrayList<ValueCondition> condit
/**
* Creates a <code>RelevanceModifier</code> that can change the relevance of a Content depending on matching conditions on a certain key.
* @param key The data key that this RelevanceModifier will distinguish on.
* @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
* @param conditions The conditions that must hold for the specific data Key in order for the entity to be boosted.
* @param multiplierSelector The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double.
* @param mustMatchAllConditions Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false).
* @param considerAsMatchIfKeyIsNotFound Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
*/
public static ContentDataRelevanceModifier create(String key, ArrayList<ValueCondition> conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
Expand All @@ -51,7 +54,10 @@ public static ContentDataRelevanceModifier create(String key, ArrayList<ValueCon
/**
* Creates a <code>RelevanceModifier</code> that can change the relevance of a Content depending on matching conditions on a certain key.
* @param key The data key that this RelevanceModifier will distinguish on.
* @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
* @param conditions The conditions that must hold for the specific data Key in order for the entity to be boosted.
* @param multiplierSelector The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double.
* @param mustMatchAllConditions Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false).
* @param considerAsMatchIfKeyIsNotFound Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
*/
public ContentDataRelevanceModifier(String key, ArrayList<ValueCondition> conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.Set;
import java.util.HashSet;

/** a <code>RelevanceModifier</code> that can change the relevance of an entity depending on matching conditions on a certain key. */
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
Expand Down
1 change: 1 addition & 0 deletions src/src/main/java/com/relewise/client/model/Facet.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
@JsonSubTypes.Type(value = ProductCategoryDataObjectFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.ProductCategoryDataObjectFacet, Relewise.Client"),
@JsonSubTypes.Type(value = ContentDataObjectFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.ContentDataObjectFacet, Relewise.Client"),
@JsonSubTypes.Type(value = CategoryHierarchyFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.CategoryHierarchyFacet, Relewise.Client"),
@JsonSubTypes.Type(value = RecentlyPurchasedFacet.class, name = "Relewise.Client.DataTypes.Search.Facets.Queries.RecentlyPurchasedFacet, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Facet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
@JsonSubTypes.Type(value = DataObjectDoubleRangesFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.DataObjectDoubleRangesFacetResult, Relewise.Client"),
@JsonSubTypes.Type(value = DataObjectFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.DataObjectFacetResult, Relewise.Client"),
@JsonSubTypes.Type(value = CategoryHierarchyFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.CategoryHierarchyFacetResult, Relewise.Client"),
@JsonSubTypes.Type(value = RecentlyPurchasedFacetResult.class, name = "Relewise.Client.DataTypes.Search.Facets.Result.RecentlyPurchasedFacetResult, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class FacetResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ public String toString() {
return "VariantSpecification";
}
},
User {
public String toString() {
return "User";
}
},
}
1 change: 1 addition & 0 deletions src/src/main/java/com/relewise/client/model/Filter.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
@JsonSubTypes.Type(value = CompanyDataHasKeyFilter.class, name = "Relewise.Client.Requests.Filters.CompanyDataHasKeyFilter, Relewise.Client"),
@JsonSubTypes.Type(value = ProductHasCategoriesFilter.class, name = "Relewise.Client.Requests.Filters.ProductHasCategoriesFilter, Relewise.Client"),
@JsonSubTypes.Type(value = ContentHasCategoriesFilter.class, name = "Relewise.Client.Requests.Filters.ContentHasCategoriesFilter, Relewise.Client"),
@JsonSubTypes.Type(value = ProductInCartFilter.class, name = "Relewise.Client.Requests.Filters.ProductInCartFilter, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class Filter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
@JsonSubTypes.Type(value = ObjectValueMinByCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueMinByCondition, Relewise.Client"),
@JsonSubTypes.Type(value = ObjectValueMaxByCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueMaxByCondition, Relewise.Client"),
@JsonSubTypes.Type(value = ObjectValueRelativeDateTimeCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueRelativeDateTimeCondition, Relewise.Client"),
@JsonSubTypes.Type(value = ObjectValueIsSubsetOfCondition.class, name = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueIsSubsetOfCondition, Relewise.Client"),
})
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class ObjectValueCondition
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
package com.relewise.client.model;

import com.fasterxml.jackson.annotation.*;
import javax.annotation.Nullable;
import java.io.IOException;
import java.time.OffsetDateTime;
import java.time.LocalDateTime;
import java.util.Objects;
import java.util.Arrays;
import java.util.UUID;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.AbstractMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.HashSet;

@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "$type",
defaultImpl = ObjectValueIsSubsetOfCondition.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ObjectValueIsSubsetOfCondition extends ObjectValueCondition
{
public String $type = "Relewise.Client.Requests.Filters.DataObjects.Conditions.ObjectValueIsSubsetOfCondition, Relewise.Client";
public DataValue value;
public static ObjectValueIsSubsetOfCondition create(String key, String[] objectPath, DataValue value)
{
return new ObjectValueIsSubsetOfCondition(key, objectPath, value);
}
public ObjectValueIsSubsetOfCondition(String key, String[] objectPath, DataValue value)
{
this.key = key;
this.objectPath = objectPath;
this.value = value;
this.negated = false;
}
public static ObjectValueIsSubsetOfCondition create(String key, String[] objectPath, DataValue value, Boolean negated)
{
return new ObjectValueIsSubsetOfCondition(key, objectPath, value, negated);
}
public ObjectValueIsSubsetOfCondition(String key, String[] objectPath, DataValue value, Boolean negated)
{
this.key = key;
this.objectPath = objectPath;
this.value = value;
this.negated = negated;
}
public static ObjectValueIsSubsetOfCondition create(String key, DataValue value)
{
return new ObjectValueIsSubsetOfCondition(key, value);
}
public ObjectValueIsSubsetOfCondition(String key, DataValue value)
{
this.key = key;
this.value = value;
this.negated = false;
}
public static ObjectValueIsSubsetOfCondition create(String key, DataValue value, Boolean negated)
{
return new ObjectValueIsSubsetOfCondition(key, value, negated);
}
public ObjectValueIsSubsetOfCondition(String key, DataValue value, Boolean negated)
{
this.key = key;
this.value = value;
this.negated = negated;
}
public ObjectValueIsSubsetOfCondition()
{
this.negated = false;
}
public DataValue getValue()
{
return this.value;
}
public ObjectValueIsSubsetOfCondition setValue(DataValue value)
{
this.value = value;
return this;
}
@Override
public ObjectValueIsSubsetOfCondition setNegated(Boolean negated)
{
this.negated = negated;
return this;
}
@Override
public ObjectValueIsSubsetOfCondition setKey(String key)
{
this.key = key;
return this;
}
@Override
public ObjectValueIsSubsetOfCondition setObjectPath(String... objectPath)
{
this.objectPath = objectPath;
return this;
}
public ObjectValueIsSubsetOfCondition addToObjectPath(String objectPath)
{
if (this.objectPath == null)
{
this.objectPath = new String[] { objectPath };
}
else
{
ArrayList<String> existingList = new ArrayList<>(Arrays.asList(this.objectPath));
existingList.add(objectPath);
this.objectPath = existingList.toArray(new String[0]);
}
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public ProductCategoryDataRelevanceModifier(String key, ArrayList<ValueCondition
/**
* Creates a <code>RelevanceModifier</code> that can change the relevance of a ProductCategory depending on matching conditions on a certain key.
* @param key The data key that this RelevanceModifier will distinguish on.
* @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
* @param conditions The conditions that must hold for the specific data Key in order for the entity to be boosted.
* @param multiplierSelector The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double.
* @param mustMatchAllConditions Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false).
* @param considerAsMatchIfKeyIsNotFound Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
*/
public static ProductCategoryDataRelevanceModifier create(String key, ArrayList<ValueCondition> conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
Expand All @@ -51,7 +54,10 @@ public static ProductCategoryDataRelevanceModifier create(String key, ArrayList<
/**
* Creates a <code>RelevanceModifier</code> that can change the relevance of a ProductCategory depending on matching conditions on a certain key.
* @param key The data key that this RelevanceModifier will distinguish on.
* @param conditions The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double. Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false). Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
* @param conditions The conditions that must hold for the specific data Key in order for the entity to be boosted.
* @param multiplierSelector The selector for the multiplier which the entities parsing the Conditions will be have their rank multiplied by. It can either be a FixedDoubleValueSelector taking a fixed value or a DataDoubleSelector that can take the multiplier from a data key containing a double.
* @param mustMatchAllConditions Specifies whether all Conditions should parse their test on the specific data Key (true) or if only one is required (false).
* @param considerAsMatchIfKeyIsNotFound Specifies whether entities that don't have the specific data Key should be considered a match (true) or not (false).
*/
public ProductCategoryDataRelevanceModifier(String key, ArrayList<ValueCondition> conditions, ValueSelector multiplierSelector, Boolean mustMatchAllConditions, Boolean considerAsMatchIfKeyIsNotFound)
{
Expand Down
Loading

0 comments on commit a2d7c89

Please sign in to comment.