Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.249.0" />
<PackageReference Include="Relewise.Client" Version="1.259.0" />
</ItemGroup>

</Project>
2 changes: 2 additions & 0 deletions Generator/Generator.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/UserDictionary/Words/=Relewise/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
8 changes: 4 additions & 4 deletions Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@

var javaClientWriter = new JavaClientWriter(javaWriter);

javaClientWriter.GenerateClientClass(typeof(Tracker), new[] { "Track" });
javaClientWriter.GenerateClientClass(typeof(Searcher), new[] { "Search", "Predict", "Batch" });
javaClientWriter.GenerateClientClass(typeof(Recommender), new[] { "Recommend" });
javaClientWriter.GenerateClientClass(typeof(SearchAdministrator), new[] { "Delete", "Save", "Load" });
javaClientWriter.GenerateClientClass(typeof(Tracker), ["Track"]);
javaClientWriter.GenerateClientClass(typeof(Searcher), ["Search", "Predict", "Batch"]);
javaClientWriter.GenerateClientClass(typeof(Recommender), ["Recommend"]);
javaClientWriter.GenerateClientClass(typeof(SearchAdministrator), ["Delete", "Save", "Load"]);

if (javaWriter.MissingTypeDefinitions.Count > 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
public class CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics
{
public OffsetDateTime periodFromUtc;
public Integer views;
public Integer promotions;
public Integer clicks;
public static CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics create(OffsetDateTime periodFromUtc, Integer views, Integer clicks)
public static CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics create(OffsetDateTime periodFromUtc, Integer promotions, Integer clicks)
{
return new CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics(periodFromUtc, views, clicks);
return new CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics(periodFromUtc, promotions, clicks);
}
public CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics(OffsetDateTime periodFromUtc, Integer views, Integer clicks)
public CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics(OffsetDateTime periodFromUtc, Integer promotions, Integer clicks)
{
this.periodFromUtc = periodFromUtc;
this.views = views;
this.promotions = promotions;
this.clicks = clicks;
}
public CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics()
Expand All @@ -38,9 +38,9 @@ public OffsetDateTime getPeriodFromUtc()
{
return this.periodFromUtc;
}
public Integer getViews()
public Integer getPromotions()
{
return this.views;
return this.promotions;
}
public Integer getClicks()
{
Expand All @@ -51,9 +51,9 @@ public CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics setPeriodFromUtc(OffsetD
this.periodFromUtc = periodFromUtc;
return this;
}
public CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics setViews(Integer views)
public CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics setPromotions(Integer promotions)
{
this.views = views;
this.promotions = promotions;
return this;
}
public CampaignAnalyticsDisplayAdAnalyticsPeriodMetrics setClicks(Integer clicks)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class CampaignAnalyticsDisplayAdAnalyticsPromotedDisplayAdMetrics
public Integer promotions;
public Integer lastClickedUnixMinutes;
public Integer numberOfTimesClicked;
public DisplayAdResult displayAd;
public static CampaignAnalyticsDisplayAdAnalyticsPromotedDisplayAdMetrics create(String displayAdId, Integer promotions, Integer lastClickedUnixMinutes, Integer numberOfTimesClicked)
{
return new CampaignAnalyticsDisplayAdAnalyticsPromotedDisplayAdMetrics(displayAdId, promotions, lastClickedUnixMinutes, numberOfTimesClicked);
Expand Down Expand Up @@ -52,6 +53,10 @@ public Integer getNumberOfTimesClicked()
{
return this.numberOfTimesClicked;
}
public DisplayAdResult getDisplayAd()
{
return this.displayAd;
}
public CampaignAnalyticsDisplayAdAnalyticsPromotedDisplayAdMetrics setDisplayAdId(String displayAdId)
{
this.displayAdId = displayAdId;
Expand All @@ -72,4 +77,9 @@ public CampaignAnalyticsDisplayAdAnalyticsPromotedDisplayAdMetrics setNumberOfTi
this.numberOfTimesClicked = numberOfTimesClicked;
return this;
}
public CampaignAnalyticsDisplayAdAnalyticsPromotedDisplayAdMetrics setDisplayAd(DisplayAdResult displayAd)
{
this.displayAd = displayAd;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@ public class CampaignAnalyticsProductAnalyticsPeriodMetrics
public Integer views;
public Integer salesQuantity;
public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[] currencies;
public static CampaignAnalyticsProductAnalyticsPeriodMetrics create(OffsetDateTime periodFromUtc, Integer views, Integer salesQuantity, CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics... currencies)
public Integer promotions;
public static CampaignAnalyticsProductAnalyticsPeriodMetrics create(OffsetDateTime periodFromUtc, Integer views, Integer salesQuantity, CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[] currencies, Integer promotions)
{
return new CampaignAnalyticsProductAnalyticsPeriodMetrics(periodFromUtc, views, salesQuantity, currencies);
return new CampaignAnalyticsProductAnalyticsPeriodMetrics(periodFromUtc, views, salesQuantity, currencies, promotions);
}
public CampaignAnalyticsProductAnalyticsPeriodMetrics(OffsetDateTime periodFromUtc, Integer views, Integer salesQuantity, CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics... currencies)
public CampaignAnalyticsProductAnalyticsPeriodMetrics(OffsetDateTime periodFromUtc, Integer views, Integer salesQuantity, CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[] currencies, Integer promotions)
{
this.periodFromUtc = periodFromUtc;
this.views = views;
this.salesQuantity = salesQuantity;
this.currencies = currencies;
this.promotions = promotions;
}
public CampaignAnalyticsProductAnalyticsPeriodMetrics()
{
Expand All @@ -52,6 +54,10 @@ public CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics[] getCurren
{
return this.currencies;
}
public Integer getPromotions()
{
return this.promotions;
}
public CampaignAnalyticsProductAnalyticsPeriodMetrics setPeriodFromUtc(OffsetDateTime periodFromUtc)
{
this.periodFromUtc = periodFromUtc;
Expand Down Expand Up @@ -86,4 +92,9 @@ public CampaignAnalyticsProductAnalyticsPeriodMetrics addToCurrencies(CampaignAn
}
return this;
}
public CampaignAnalyticsProductAnalyticsPeriodMetrics setPromotions(Integer promotions)
{
this.promotions = promotions;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class CampaignAnalyticsProductAnalyticsPromotedProductMetrics
{
public String productId;
public Integer promotions;
public ProductResult product;
public static CampaignAnalyticsProductAnalyticsPromotedProductMetrics create(String productId, Integer promotions)
{
return new CampaignAnalyticsProductAnalyticsPromotedProductMetrics(productId, promotions);
Expand All @@ -40,6 +41,10 @@ public Integer getPromotions()
{
return this.promotions;
}
public ProductResult getProduct()
{
return this.product;
}
public CampaignAnalyticsProductAnalyticsPromotedProductMetrics setProductId(String productId)
{
this.productId = productId;
Expand All @@ -50,4 +55,9 @@ public CampaignAnalyticsProductAnalyticsPromotedProductMetrics setPromotions(Int
this.promotions = promotions;
return this;
}
public CampaignAnalyticsProductAnalyticsPromotedProductMetrics setProduct(ProductResult product)
{
this.product = product;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class CampaignAnalyticsRequest extends LicensedRequest
public LocalDateTimeRange periodUtc;
public @Nullable FilterCollection productFilters;
public @Nullable FilterCollection displayAdFilters;
public @Nullable Language language;
public @Nullable Currency currency;
public @Nullable SelectedProductPropertiesSettings selectedProductProperties;
public @Nullable SelectedDisplayAdPropertiesSettings selectedDisplayAdProperties;
public static CampaignAnalyticsRequest create(UUID id, LocalDateTimeRange periodUtc, @Nullable FilterCollection productFilters, @Nullable FilterCollection displayAdFilters)
{
return new CampaignAnalyticsRequest(id, periodUtc, productFilters, displayAdFilters);
Expand Down Expand Up @@ -61,6 +65,22 @@ public LocalDateTimeRange getPeriodUtc()
{
return this.displayAdFilters;
}
public @Nullable Language getLanguage()
{
return this.language;
}
public @Nullable Currency getCurrency()
{
return this.currency;
}
public @Nullable SelectedProductPropertiesSettings getSelectedProductProperties()
{
return this.selectedProductProperties;
}
public @Nullable SelectedDisplayAdPropertiesSettings getSelectedDisplayAdProperties()
{
return this.selectedDisplayAdProperties;
}
/** The campaign to provide analytics for. */
public CampaignAnalyticsRequest setId(UUID id)
{
Expand All @@ -82,4 +102,24 @@ public CampaignAnalyticsRequest setDisplayAdFilters(@Nullable FilterCollection d
this.displayAdFilters = displayAdFilters;
return this;
}
public CampaignAnalyticsRequest setLanguage(@Nullable Language language)
{
this.language = language;
return this;
}
public CampaignAnalyticsRequest setCurrency(@Nullable Currency currency)
{
this.currency = currency;
return this;
}
public CampaignAnalyticsRequest setSelectedProductProperties(@Nullable SelectedProductPropertiesSettings selectedProductProperties)
{
this.selectedProductProperties = selectedProductProperties;
return this;
}
public CampaignAnalyticsRequest setSelectedDisplayAdProperties(@Nullable SelectedDisplayAdPropertiesSettings selectedDisplayAdProperties)
{
this.selectedDisplayAdProperties = selectedDisplayAdProperties;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,47 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class CategoryIndexConfiguration
{
/** Default configuration entry used when no specific category scope is specified. This serves as the fallback configuration for category indexing operations. */
public CategoryIndexConfigurationEntry unspecified;
/** Scope-specific configuration entries mapped by CategoryScope enum values. Allows different indexing configurations for different category relationship scopes (e.g., ImmediateParent, ImmediateParentOrItsParent, Ancestor). When null, only the Unspecified configuration will be used. */
public @Nullable HashMap<CategoryScope, CategoryIndexConfigurationEntry> byScope;
public static CategoryIndexConfiguration create()
{
return new CategoryIndexConfiguration();
}
public CategoryIndexConfiguration()
{
}
/** Default configuration entry used when no specific category scope is specified. This serves as the fallback configuration for category indexing operations. */
public CategoryIndexConfigurationEntry getUnspecified()
{
return this.unspecified;
}
/** Scope-specific configuration entries mapped by CategoryScope enum values. Allows different indexing configurations for different category relationship scopes (e.g., ImmediateParent, ImmediateParentOrItsParent, Ancestor). When null, only the Unspecified configuration will be used. */
public @Nullable HashMap<CategoryScope, CategoryIndexConfigurationEntry> getByScope()
{
return this.byScope;
}
/** Default configuration entry used when no specific category scope is specified. This serves as the fallback configuration for category indexing operations. */
public CategoryIndexConfiguration setUnspecified(CategoryIndexConfigurationEntry unspecified)
{
this.unspecified = unspecified;
return this;
}
/** Scope-specific configuration entries mapped by CategoryScope enum values. Allows different indexing configurations for different category relationship scopes (e.g., ImmediateParent, ImmediateParentOrItsParent, Ancestor). When null, only the Unspecified configuration will be used. */
public CategoryIndexConfiguration addToByScope(CategoryScope key, CategoryIndexConfigurationEntry value)
{
if (this.byScope == null)
{
this.byScope = new HashMap<>();
}
this.byScope.put(key, value);
return this;
}
/** Scope-specific configuration entries mapped by CategoryScope enum values. Allows different indexing configurations for different category relationship scopes (e.g., ImmediateParent, ImmediateParentOrItsParent, Ancestor). When null, only the Unspecified configuration will be used. */
public CategoryIndexConfiguration setByScope(@Nullable HashMap<CategoryScope, CategoryIndexConfigurationEntry> byScope)
{
this.byScope = byScope;
return this;
}
}

This file was deleted.

Loading