0.4.0: Claim, Models/ DTOs, compile
CI / publish (push) Failing after 39s
CI / check (push) Successful in 52s

LeaderboardSession.ClaimAsync sends onClaim. Generated DTOs live under Models/ with nullable wire fields. Remove incomplete duplicate type files.
This commit is contained in:
edmand46
2026-08-29 11:33:01 +03:00
parent 3c590294c9
commit ea20ea6d51
89 changed files with 1414 additions and 396 deletions
+5 -7
View File
@@ -1,25 +1,23 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.BattlePass;
public class AddBattlePassXpRequest
{
[JsonProperty("amount")]
public long Amount { get; set; }
public long? Amount { get; set; }
[JsonProperty("nodeId")]
public string NodeId { get; set; }
public string? NodeId { get; set; }
[JsonProperty("runId")]
public string RunId { get; set; }
public string? RunId { get; set; }
[JsonProperty("scenarioId")]
public string ScenarioId { get; set; }
public string? ScenarioId { get; set; }
[JsonProperty("source")]
public string Source { get; set; }
public string? Source { get; set; }
}
+5 -7
View File
@@ -1,7 +1,5 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using RudderSdk.Core.Models;
namespace RudderSdk.Core.Models.BattlePass;
@@ -9,18 +7,18 @@ namespace RudderSdk.Core.Models.BattlePass;
public class AddBattlePassXpResponse
{
[JsonProperty("level")]
public int Level { get; set; }
public int? Level { get; set; }
[JsonProperty("leveledUp")]
public bool LeveledUp { get; set; }
public bool? LeveledUp { get; set; }
[JsonProperty("maxLevel")]
public bool MaxLevel { get; set; }
public bool? MaxLevel { get; set; }
[JsonProperty("plan")]
public ExecutionPlan Plan { get; set; }
public ExecutionPlan? Plan { get; set; }
[JsonProperty("xp")]
public long Xp { get; set; }
public long? Xp { get; set; }
}
-19
View File
@@ -1,19 +0,0 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.BattlePass;
public class BattlePassReward
{
[JsonProperty("amount")]
public long Amount { get; set; }
[JsonProperty("currency")]
public string Currency { get; set; }
[JsonProperty("itemId")]
public string ItemId { get; set; }
}
+5 -7
View File
@@ -1,25 +1,23 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.BattlePass;
public class ClaimBattlePassRewardRequest
{
[JsonProperty("level")]
public int Level { get; set; }
public int? Level { get; set; }
[JsonProperty("nodeId")]
public string NodeId { get; set; }
public string? NodeId { get; set; }
[JsonProperty("runId")]
public string RunId { get; set; }
public string? RunId { get; set; }
[JsonProperty("scenarioId")]
public string ScenarioId { get; set; }
public string? ScenarioId { get; set; }
[JsonProperty("track")]
public string Track { get; set; }
public string? Track { get; set; }
}
+5 -5
View File
@@ -1,22 +1,22 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using RudderSdk.Core.Models;
namespace RudderSdk.Core.Models.BattlePass;
public class ClaimBattlePassRewardResponse
{
[JsonProperty("alreadyClaimed")]
public bool AlreadyClaimed { get; set; }
public bool? AlreadyClaimed { get; set; }
[JsonProperty("error")]
public string Error { get; set; }
public string? Error { get; set; }
[JsonProperty("granted")]
public List<BattlePassReward> Granted { get; set; }
public List<Reward>? Granted { get; set; }
[JsonProperty("success")]
public bool Success { get; set; }
public bool? Success { get; set; }
}
+2 -4
View File
@@ -1,16 +1,14 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.BattlePass;
public class ClaimedTier
{
[JsonProperty("level")]
public int Level { get; set; }
public int? Level { get; set; }
[JsonProperty("track")]
public string Track { get; set; }
public string? Track { get; set; }
}
+2 -4
View File
@@ -1,16 +1,14 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.BattlePass;
public class GetBattlePassProgressRequest
{
[JsonProperty("nodeId")]
public string NodeId { get; set; }
public string? NodeId { get; set; }
[JsonProperty("scenarioId")]
public string ScenarioId { get; set; }
public string? ScenarioId { get; set; }
}
+4 -5
View File
@@ -1,6 +1,5 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.BattlePass;
@@ -8,15 +7,15 @@ namespace RudderSdk.Core.Models.BattlePass;
public class GetBattlePassProgressResponse
{
[JsonProperty("claimedTiers")]
public List<ClaimedTier> ClaimedTiers { get; set; }
public List<ClaimedTier>? ClaimedTiers { get; set; }
[JsonProperty("level")]
public int Level { get; set; }
public int? Level { get; set; }
[JsonProperty("premiumOwned")]
public bool PremiumOwned { get; set; }
public bool? PremiumOwned { get; set; }
[JsonProperty("xp")]
public long Xp { get; set; }
public long? Xp { get; set; }
}
@@ -1,22 +1,20 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
namespace RudderSdk.Core.Models.BattlePass;
public class PurchaseBattlePassPremiumRequest
{
[JsonProperty("idempotencyKey")]
public string IdempotencyKey { get; set; }
public string? IdempotencyKey { get; set; }
[JsonProperty("nodeId")]
public string NodeId { get; set; }
public string? NodeId { get; set; }
[JsonProperty("runId")]
public string RunId { get; set; }
public string? RunId { get; set; }
[JsonProperty("scenarioId")]
public string ScenarioId { get; set; }
public string? ScenarioId { get; set; }
}
@@ -1,7 +1,5 @@
// Code generated by apigen. DO NOT EDIT.
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using RudderSdk.Core.Models;
namespace RudderSdk.Core.Models.BattlePass;
@@ -9,12 +7,12 @@ namespace RudderSdk.Core.Models.BattlePass;
public class PurchaseBattlePassPremiumResponse
{
[JsonProperty("error")]
public string Error { get; set; }
public string? Error { get; set; }
[JsonProperty("plan")]
public ExecutionPlan Plan { get; set; }
public ExecutionPlan? Plan { get; set; }
[JsonProperty("success")]
public bool Success { get; set; }
public bool? Success { get; set; }
}