quests: QuestMetrics helpers, README quests section
CI / check (push) Successful in 53s
CI / publish (push) Has been skipped

This commit is contained in:
edmand46
2026-08-25 16:25:34 +03:00
parent 2a8d5d4f2f
commit d4bbafb314
2 changed files with 41 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
namespace RudderSdk.Core;
/// <summary>
/// Builders for the quest metric strings known to the platform. Purchase
/// metrics are reported automatically by the shop purchase fan-out; any other
/// metric is a custom string reported via
/// <see cref="QuestsService.ReportProgressAsync"/>.
/// </summary>
public static class QuestMetrics
{
/// <summary>Metric for purchasing a store offer; auto-reported on purchase.</summary>
public static string PurchaseOffer(string offerId) => $"purchase.offer:{offerId}";
/// <summary>Metric for purchasing a catalog item; auto-reported on purchase.</summary>
public static string PurchaseItem(string itemId) => $"purchase.item:{itemId}";
}