Skip to content
Open
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
73 changes: 73 additions & 0 deletions cli/beamable.common/Runtime/OpenApi/BeamAnalytics.gs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,37 @@ namespace Beamable.Api.Autogenerated.Analytics

public partial interface IBeamAnalyticsApi
{
/// <summary>
/// Every analytics event this scope (realm or zone) has an active registered schema for. This is
///what lets the campaign builder offer a real event list, with real field types, instead of a
///hard-coded guess.
///
///A scope with no deployed manifest has registered nothing, so an empty list is the
///truthful answer. A manifest store that cannot be READ is a different fact and is deliberately
///NOT flattened into that same empty list: the two are byte-identical to the caller, so
///degrading a fault to "no schemas" would render an empty picker with no error to show and no
///way to tell the states apart.
///
/// GET call to `/api/analytics/schemas` endpoint.
/// </summary>
/// <param name="includeAuthHeader">By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.</param>
/// <returns>A promise containing the <see cref="GetAnalyticsSchemasResponse"/></returns>
Promise<GetAnalyticsSchemasResponse> GetSchemas([System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
/// <summary>
/// One event's fields and their types, flattened to the dot-noted keys the params actually carry
///(see BeamableShared.Services.Analytics.AnalyticsSchemaProperties), so a campaign goal can constrain a value and be
///evaluated against the real event at match time.
///
///A catch-all route token, deliberately: schema names are multi-segment by design
///(`analytics/commerce/purchase`), and a plain `{event}` would 404 on exactly the names
///this exists to serve.
///
/// GET call to `/api/analytics/schemas/{event}` endpoint.
/// </summary>
/// <param name="event"></param>
/// <param name="includeAuthHeader">By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.</param>
/// <returns>A promise containing the <see cref="AnalyticsEventSchema"/></returns>
Promise<AnalyticsEventSchema> GetSchemas(string @event, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
/// <summary>
/// POST call to `/api/analytics/query` endpoint.
/// </summary>
Expand All @@ -20,6 +51,48 @@ public partial interface IBeamAnalyticsApi
}
public partial class BeamAnalyticsApi : IBeamAnalyticsApi
{
/// <summary>
/// Every analytics event this scope (realm or zone) has an active registered schema for. This is
///what lets the campaign builder offer a real event list, with real field types, instead of a
///hard-coded guess.
///
///A scope with no deployed manifest has registered nothing, so an empty list is the
///truthful answer. A manifest store that cannot be READ is a different fact and is deliberately
///NOT flattened into that same empty list: the two are byte-identical to the caller, so
///degrading a fault to "no schemas" would render an empty picker with no error to show and no
///way to tell the states apart.
///
/// GET call to `/api/analytics/schemas` endpoint.
/// </summary>
/// <param name="includeAuthHeader">By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.</param>
/// <returns>A promise containing the <see cref="GetAnalyticsSchemasResponse"/></returns>
public virtual Promise<GetAnalyticsSchemasResponse> GetSchemas([System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
{
string gsUrl = "/api/analytics/schemas";
// make the request and return the result
return _requester.Request<GetAnalyticsSchemasResponse>(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize<GetAnalyticsSchemasResponse>);
}
/// <summary>
/// One event's fields and their types, flattened to the dot-noted keys the params actually carry
///(see BeamableShared.Services.Analytics.AnalyticsSchemaProperties), so a campaign goal can constrain a value and be
///evaluated against the real event at match time.
///
///A catch-all route token, deliberately: schema names are multi-segment by design
///(`analytics/commerce/purchase`), and a plain `{event}` would 404 on exactly the names
///this exists to serve.
///
/// GET call to `/api/analytics/schemas/{event}` endpoint.
/// </summary>
/// <param name="event"></param>
/// <param name="includeAuthHeader">By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.</param>
/// <returns>A promise containing the <see cref="AnalyticsEventSchema"/></returns>
public virtual Promise<AnalyticsEventSchema> GetSchemas(string @event, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
{
string gsUrl = "/api/analytics/schemas/{event}";
gsUrl = gsUrl.Replace("{event}", _requester.EscapeURL(@event.ToString()));
// make the request and return the result
return _requester.Request<AnalyticsEventSchema>(Method.GET, gsUrl, default(object), includeAuthHeader, this.Serialize<AnalyticsEventSchema>);
}
/// <summary>
/// POST call to `/api/analytics/query` endpoint.
/// </summary>
Expand Down
18 changes: 9 additions & 9 deletions cli/beamable.common/Runtime/OpenApi/BeamBeamootel.gs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ namespace Beamable.Api.Autogenerated.Beamootel
public partial interface IBeamBeamootelApi
{
/// <summary>
/// Get available OpenTelemetry views for a specific player.
/// Get available OpenTelemetry views for a specific account.
///
/// GET call to `/api/beamo/otel/views` endpoint.
/// </summary>
/// <param name="playerId">Player ID to retrieve views for.</param>
/// <param name="accountId">Account ID to retrieve views for.</param>
/// <param name="includeAuthHeader">By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.</param>
/// <returns>A promise containing the <see cref="OtelViewsResponse"/></returns>
Promise<OtelViewsResponse> GetOtelViews([System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional<string> playerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
Promise<OtelViewsResponse> GetOtelViews([System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional<string> accountId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader);
/// <summary>
/// Save or update an OpenTelemetry view configuration.
///
Expand Down Expand Up @@ -67,22 +67,22 @@ public partial interface IBeamBeamootelApi
public partial class BeamBeamootelApi : IBeamBeamootelApi
{
/// <summary>
/// Get available OpenTelemetry views for a specific player.
/// Get available OpenTelemetry views for a specific account.
///
/// GET call to `/api/beamo/otel/views` endpoint.
/// </summary>
/// <param name="playerId">Player ID to retrieve views for.</param>
/// <param name="accountId">Account ID to retrieve views for.</param>
/// <param name="includeAuthHeader">By default, every request will include an authorization header so that the request acts on behalf of the current user. When the includeAuthHeader argument is false, the request will not include the authorization header for the current user.</param>
/// <returns>A promise containing the <see cref="OtelViewsResponse"/></returns>
public virtual Promise<OtelViewsResponse> GetOtelViews([System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional<string> playerId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
public virtual Promise<OtelViewsResponse> GetOtelViews([System.Runtime.InteropServices.DefaultParameterValueAttribute(null)] [System.Runtime.InteropServices.OptionalAttribute()] Beamable.Common.Content.Optional<string> accountId, [System.Runtime.InteropServices.DefaultParameterValueAttribute(true)] [System.Runtime.InteropServices.OptionalAttribute()] bool includeAuthHeader)
{
string gsUrl = "/api/beamo/otel/views";
string gsQuery = "?";
System.Collections.Generic.List<string> gsQueries = new System.Collections.Generic.List<string>();
if (((playerId != default(OptionalString))
&& playerId.HasValue))
if (((accountId != default(OptionalString))
&& accountId.HasValue))
{
gsQueries.Add(string.Concat("playerId=", playerId.Value.ToString()));
gsQueries.Add(string.Concat("accountId=", accountId.Value.ToString()));
}
if ((gsQueries.Count > 0))
{
Expand Down
Loading
Loading