0.4.0: Claim, Models/ DTOs, compile
LeaderboardSession.ClaimAsync sends onClaim. Generated DTOs live under Models/ with nullable wire fields. Remove incomplete duplicate type files.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
namespace RudderSdk.Core.Models;
|
||||
|
||||
public class BoundaryNode
|
||||
{
|
||||
[JsonProperty("callbackUrl")]
|
||||
public string? CallbackUrl { get; set; }
|
||||
|
||||
[JsonProperty("enforcement")]
|
||||
public string? Enforcement { get; set; }
|
||||
|
||||
[JsonProperty("enteredAt")]
|
||||
public DateTimeOffset? EnteredAt { get; set; }
|
||||
|
||||
[JsonProperty("nodeId")]
|
||||
public string? NodeId { get; set; }
|
||||
|
||||
[JsonProperty("sourceHandle")]
|
||||
public string? SourceHandle { get; set; }
|
||||
|
||||
[JsonProperty("sourceNodeId")]
|
||||
public string? SourceNodeId { get; set; }
|
||||
|
||||
[JsonProperty("waitDeadline")]
|
||||
public DateTimeOffset? WaitDeadline { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace RudderSdk.Core.Models;
|
||||
|
||||
public class ErrorResponse
|
||||
{
|
||||
[JsonProperty("code")]
|
||||
public string? Code { get; set; }
|
||||
|
||||
[JsonProperty("error")]
|
||||
public string? Error { get; set; }
|
||||
|
||||
[JsonProperty("index")]
|
||||
public int? Index { get; set; }
|
||||
|
||||
[JsonProperty("playerId")]
|
||||
public string? PlayerId { get; set; }
|
||||
|
||||
[JsonProperty("requestId")]
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models;
|
||||
|
||||
public class ExecutionPlan
|
||||
{
|
||||
[JsonProperty("boundaryNodes")]
|
||||
public List<BoundaryNode>? BoundaryNodes { get; set; }
|
||||
|
||||
[JsonProperty("context")]
|
||||
public JToken? Context { get; set; }
|
||||
|
||||
[JsonProperty("edges")]
|
||||
public List<PlanEdge>? Edges { get; set; }
|
||||
|
||||
[JsonProperty("nodes")]
|
||||
public List<ExecutionPlanNode>? Nodes { get; set; }
|
||||
|
||||
[JsonProperty("planId")]
|
||||
public string? PlanId { get; set; }
|
||||
|
||||
[JsonProperty("runId")]
|
||||
public string? RunId { get; set; }
|
||||
|
||||
[JsonProperty("scenarioId")]
|
||||
public string? ScenarioId { get; set; }
|
||||
|
||||
[JsonProperty("startNodeId")]
|
||||
public string? StartNodeId { get; set; }
|
||||
|
||||
[JsonProperty("userId")]
|
||||
public string? UserId { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace RudderSdk.Core.Models;
|
||||
|
||||
public class ExecutionPlanNode
|
||||
{
|
||||
[JsonProperty("data")]
|
||||
public JToken? Data { get; set; }
|
||||
|
||||
[JsonProperty("id")]
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonProperty("type")]
|
||||
public string? Type { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace RudderSdk.Core.Models;
|
||||
|
||||
public class PlanEdge
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonProperty("source")]
|
||||
public string? Source { get; set; }
|
||||
|
||||
[JsonProperty("sourceHandle")]
|
||||
public string? SourceHandle { get; set; }
|
||||
|
||||
[JsonProperty("target")]
|
||||
public string? Target { get; set; }
|
||||
|
||||
[JsonProperty("targetHandle")]
|
||||
public string? TargetHandle { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace RudderSdk.Core.Models;
|
||||
|
||||
public class Reward
|
||||
{
|
||||
[JsonProperty("amount")]
|
||||
public long? Amount { get; set; }
|
||||
|
||||
[JsonProperty("currency")]
|
||||
public string? Currency { get; set; }
|
||||
|
||||
[JsonProperty("itemId")]
|
||||
public string? ItemId { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
namespace RudderSdk.Core.Models;
|
||||
|
||||
public static class RudderErrorCodes
|
||||
{
|
||||
public const string EarlyCompletion = "early_completion";
|
||||
public const string Forbidden = "forbidden";
|
||||
public const string LevelNotReached = "level_not_reached";
|
||||
public const string NodeNotActive = "node_not_active";
|
||||
public const string ObjectivesIncomplete = "objectives_incomplete";
|
||||
public const string RunExpired = "run_expired";
|
||||
public const string RunNotActive = "run_not_active";
|
||||
public const string ScenarioNotActive = "scenario_not_active";
|
||||
public const string UnknownRun = "unknown_run";
|
||||
}
|
||||
Reference in New Issue
Block a user