async-playfab-web-sdk 1.192.250526 → 1.193.250606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/{Addon.d.mts → Addon.d.ts} +213 -73
  2. package/dist/Addon.js +8 -0
  3. package/dist/Addon.js.map +1 -1
  4. package/dist/{Admin.d.mts → Admin.d.ts} +2547 -356
  5. package/dist/Admin.js +8 -0
  6. package/dist/Admin.js.map +1 -1
  7. package/dist/{Authentication.d.mts → Authentication.d.ts} +36 -9
  8. package/dist/Authentication.js +8 -0
  9. package/dist/Authentication.js.map +1 -1
  10. package/dist/{Client.d.mts → Client.d.ts} +2473 -557
  11. package/dist/Client.js +8 -0
  12. package/dist/Client.js.map +1 -1
  13. package/dist/{CloudScript.d.mts → CloudScript.d.ts} +214 -46
  14. package/dist/CloudScript.js +8 -0
  15. package/dist/CloudScript.js.map +1 -1
  16. package/dist/{Data.d.mts → Data.d.ts} +144 -25
  17. package/dist/Data.js +8 -0
  18. package/dist/Data.js.map +1 -1
  19. package/dist/{Economy.d.mts → Economy.d.ts} +1218 -173
  20. package/dist/Economy.js +8 -0
  21. package/dist/Economy.js.map +1 -1
  22. package/dist/{Events.d.mts → Events.d.ts} +212 -25
  23. package/dist/Events.js +8 -0
  24. package/dist/Events.js.map +1 -1
  25. package/dist/{Experimentation.d.mts → Experimentation.d.ts} +177 -30
  26. package/dist/Experimentation.js +8 -0
  27. package/dist/Experimentation.js.map +1 -1
  28. package/dist/{Groups.d.mts → Groups.d.ts} +306 -67
  29. package/dist/Groups.js +8 -0
  30. package/dist/Groups.js.map +1 -1
  31. package/dist/{Insights.d.mts → Insights.d.ts} +39 -13
  32. package/dist/Insights.js +8 -0
  33. package/dist/Insights.js.map +1 -1
  34. package/dist/{Localization.d.mts → Localization.d.ts} +6 -3
  35. package/dist/Localization.js +8 -0
  36. package/dist/Localization.js.map +1 -1
  37. package/dist/Matchmaker.d.ts +271 -0
  38. package/dist/Matchmaker.js +8 -0
  39. package/dist/Matchmaker.js.map +1 -0
  40. package/dist/{Multiplayer.d.mts → Multiplayer.d.ts} +2829 -301
  41. package/dist/Multiplayer.js +8 -0
  42. package/dist/Multiplayer.js.map +1 -1
  43. package/dist/{PlayFabCommon-BUv4zqXf.d.mts → PlayFabCommon-Dnp_xHg5.d.ts} +6 -10
  44. package/dist/{Profiles.d.mts → Profiles.d.ts} +172 -28
  45. package/dist/Profiles.js +8 -0
  46. package/dist/Profiles.js.map +1 -1
  47. package/dist/{Progression.d.mts → Progression.d.ts} +337 -73
  48. package/dist/Progression.js +8 -0
  49. package/dist/Progression.js.map +1 -1
  50. package/dist/{Server.d.mts → Server.d.ts} +2120 -458
  51. package/dist/Server.js +8 -0
  52. package/dist/Server.js.map +1 -1
  53. package/dist/chunk-5LPKBU65.js +2970 -0
  54. package/dist/chunk-5LPKBU65.js.map +1 -0
  55. package/dist/chunk-ABEEDFKP.js +175 -0
  56. package/dist/chunk-ABEEDFKP.js.map +1 -0
  57. package/dist/chunk-AGNOI6QW.js +2477 -0
  58. package/dist/chunk-AGNOI6QW.js.map +1 -0
  59. package/dist/chunk-B4NQUOWG.js +1048 -0
  60. package/dist/chunk-B4NQUOWG.js.map +1 -0
  61. package/dist/chunk-GERGPHQM.js +76 -0
  62. package/dist/chunk-GERGPHQM.js.map +1 -0
  63. package/dist/chunk-GOZV2MOC.js +2673 -0
  64. package/dist/chunk-GOZV2MOC.js.map +1 -0
  65. package/dist/chunk-GXP64DCJ.js +82 -0
  66. package/dist/chunk-GXP64DCJ.js.map +1 -0
  67. package/dist/chunk-HUS6GF7X.js +270 -0
  68. package/dist/chunk-HUS6GF7X.js.map +1 -0
  69. package/dist/chunk-JIEFHAFU.js +197 -0
  70. package/dist/chunk-JIEFHAFU.js.map +1 -0
  71. package/dist/chunk-LCCANUCE.js +2387 -0
  72. package/dist/chunk-LCCANUCE.js.map +1 -0
  73. package/dist/chunk-MNQCGRC6.js +357 -0
  74. package/dist/chunk-MNQCGRC6.js.map +1 -0
  75. package/dist/chunk-N4R6Y2MM.js +225 -0
  76. package/dist/chunk-N4R6Y2MM.js.map +1 -0
  77. package/dist/{Localization.mjs → chunk-N7LC7KNB.js} +43 -94
  78. package/dist/chunk-N7LC7KNB.js.map +1 -0
  79. package/dist/chunk-NPTN4F4Z.js +22 -0
  80. package/dist/chunk-NPTN4F4Z.js.map +1 -0
  81. package/dist/chunk-QHGWL3NW.js +237 -0
  82. package/dist/chunk-QHGWL3NW.js.map +1 -0
  83. package/dist/chunk-RKXM4KV5.js +421 -0
  84. package/dist/chunk-RKXM4KV5.js.map +1 -0
  85. package/dist/chunk-UDM2ZVXN.js +421 -0
  86. package/dist/chunk-UDM2ZVXN.js.map +1 -0
  87. package/dist/chunk-ZEBSOOZG.js +82 -0
  88. package/dist/chunk-ZEBSOOZG.js.map +1 -0
  89. package/dist/index.d.ts +18 -0
  90. package/dist/index.js +72 -0
  91. package/dist/index.js.map +1 -1
  92. package/package.json +2 -1
  93. package/dist/Addon.mjs +0 -452
  94. package/dist/Addon.mjs.map +0 -1
  95. package/dist/Admin.mjs +0 -1112
  96. package/dist/Admin.mjs.map +0 -1
  97. package/dist/Authentication.mjs +0 -290
  98. package/dist/Authentication.mjs.map +0 -1
  99. package/dist/Client.mjs +0 -1893
  100. package/dist/Client.mjs.map +0 -1
  101. package/dist/CloudScript.mjs +0 -349
  102. package/dist/CloudScript.mjs.map +0 -1
  103. package/dist/Data.mjs +0 -291
  104. package/dist/Data.mjs.map +0 -1
  105. package/dist/Economy.mjs +0 -614
  106. package/dist/Economy.mjs.map +0 -1
  107. package/dist/Events.mjs +0 -327
  108. package/dist/Events.mjs.map +0 -1
  109. package/dist/Experimentation.mjs +0 -333
  110. package/dist/Experimentation.mjs.map +0 -1
  111. package/dist/Groups.mjs +0 -417
  112. package/dist/Groups.mjs.map +0 -1
  113. package/dist/Insights.mjs +0 -286
  114. package/dist/Insights.mjs.map +0 -1
  115. package/dist/Localization.mjs.map +0 -1
  116. package/dist/Multiplayer.mjs +0 -862
  117. package/dist/Multiplayer.mjs.map +0 -1
  118. package/dist/Profiles.mjs +0 -306
  119. package/dist/Profiles.mjs.map +0 -1
  120. package/dist/Progression.mjs +0 -404
  121. package/dist/Progression.mjs.map +0 -1
  122. package/dist/Server.mjs +0 -1377
  123. package/dist/Server.mjs.map +0 -1
  124. package/dist/index.d.mts +0 -17
  125. package/dist/index.mjs +0 -6007
  126. package/dist/index.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { I as IPlayFabRequestCommon, a as IPlayFabResultCommon, P as PlayFabCommon, E as EmptyResponse } from './PlayFabCommon-BUv4zqXf.mjs';
1
+ import { I as IPlayFabRequestCommon, a as IPlayFabResultCommon, P as PlayFabCommon, E as EmptyResponse } from './PlayFabCommon-Dnp_xHg5.js';
2
2
 
3
3
  interface CreateLeaderboardDefinitionRequest extends IPlayFabRequestCommon {
4
4
  /**
@@ -9,8 +9,8 @@ interface CreateLeaderboardDefinitionRequest extends IPlayFabRequestCommon {
9
9
  /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
10
10
  CustomTags?: Record<string, string | null>;
11
11
  /**
12
- * The entity type being represented on the leaderboard. If it doesn't correspond to the PlayFab entity types, use
13
- * 'external' as the type.
12
+ * The entity type being represented on the leaderboard. If it doesn&#39;t correspond to the PlayFab entity types, use
13
+ * &#39;external&#39; as the type.
14
14
  */
15
15
  EntityType: string;
16
16
  /** A name for the leaderboard, unique per title. */
@@ -33,7 +33,7 @@ interface CreateStatisticDefinitionRequest extends IPlayFabRequestCommon {
33
33
  CustomTags?: Record<string, string | null>;
34
34
  /** The entity type allowed to have score(s) for this statistic. */
35
35
  EntityType?: string;
36
- /** Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'. */
36
+ /** Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, &#39;(&#39;, &#39;)&#39;, &#39;_&#39;, &#39;-&#39; and &#39;.&#39;. */
37
37
  Name: string;
38
38
  /** The version reset configuration for the statistic definition. */
39
39
  VersionConfiguration?: VersionConfiguration;
@@ -75,9 +75,14 @@ interface EntityKey {
75
75
  Id: string;
76
76
  /** Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types */
77
77
  Type?: string;
78
+ /**
79
+ * Alternate name for Type.
80
+ * @deprecated Please use Type instead.
81
+ */
82
+ TypeString?: string;
78
83
  }
79
84
  interface EntityLeaderboardEntry {
80
- /** Entity's display name. */
85
+ /** Entity&#39;s display name. */
81
86
  DisplayName?: string;
82
87
  /** Entity identifier. */
83
88
  Entity?: EntityKey;
@@ -91,9 +96,9 @@ interface EntityLeaderboardEntry {
91
96
  Scores?: string[];
92
97
  }
93
98
  interface EntityStatistics {
94
- /** Entity key */
99
+ /** The entity for which the statistics are returned. */
95
100
  EntityKey?: EntityKey;
96
- /** All statistics for the given entitykey */
101
+ /** The statistics for the given entity key. */
97
102
  Statistics?: EntityStatisticValue[];
98
103
  }
99
104
  interface EntityStatisticValue {
@@ -136,7 +141,7 @@ interface GetFriendLeaderboardForEntityRequest extends IPlayFabRequestCommon {
136
141
  /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
137
142
  Entity?: EntityKey;
138
143
  /**
139
- * Indicates which other platforms' friends should be included in the response. In HTTP, it is represented as a
144
+ * Indicates which other platforms&#39; friends should be included in the response. In HTTP, it is represented as a
140
145
  * comma-separated list of platforms.
141
146
  */
142
147
  ExternalFriendSources?: string;
@@ -177,8 +182,8 @@ interface GetLeaderboardDefinitionResponse extends IPlayFabResultCommon {
177
182
  /** Created time, in UTC */
178
183
  Created: string;
179
184
  /**
180
- * The entity type being represented on the leaderboard. If it doesn't correspond to the PlayFab entity types, use
181
- * 'external' as the type.
185
+ * The entity type being represented on the leaderboard. If it doesn&#39;t correspond to the PlayFab entity types, use
186
+ * &#39;external&#39; as the type.
182
187
  */
183
188
  EntityType: string;
184
189
  /** Last time, in UTC, leaderboard version was incremented. */
@@ -234,11 +239,23 @@ interface GetStatisticDefinitionResponse extends IPlayFabResultCommon {
234
239
  /** The version reset configuration for the leaderboard definition. */
235
240
  VersionConfiguration?: VersionConfiguration;
236
241
  }
242
+ /** @deprecated Do not use */
243
+ interface GetStatisticDefinitionsRequest extends IPlayFabRequestCommon {
244
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
245
+ CustomTags?: Record<string, string | null>;
246
+ }
247
+ /** @deprecated Do not use */
248
+ interface GetStatisticDefinitionsResponse extends IPlayFabResultCommon {
249
+ /** List of statistic definitions for the title. */
250
+ StatisticDefinitions?: StatisticDefinition[];
251
+ }
237
252
  interface GetStatisticsForEntitiesRequest extends IPlayFabRequestCommon {
238
253
  /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
239
254
  CustomTags?: Record<string, string | null>;
240
255
  /** Collection of Entity IDs to retrieve statistics for. */
241
256
  Entities: EntityKey[];
257
+ /** The list of statistics to return for the user. If set to null, the current version of all statistics are returned. */
258
+ StatisticNames?: string[];
242
259
  }
243
260
  interface GetStatisticsForEntitiesResponse extends IPlayFabResultCommon {
244
261
  /** A mapping of statistic name to the columns defined in the corresponding definition. */
@@ -251,6 +268,8 @@ interface GetStatisticsRequest extends IPlayFabRequestCommon {
251
268
  CustomTags?: Record<string, string | null>;
252
269
  /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
253
270
  Entity?: EntityKey;
271
+ /** The list of statistics to return for the user. If set to null, the current version of all statistics are returned. */
272
+ StatisticNames?: string[];
254
273
  }
255
274
  interface GetStatisticsResponse extends IPlayFabResultCommon {
256
275
  /** A mapping of statistic name to the columns defined in the corresponding definition. */
@@ -297,8 +316,8 @@ interface LeaderboardDefinition {
297
316
  /** Created time, in UTC */
298
317
  Created: string;
299
318
  /**
300
- * The entity type being represented on the leaderboard. If it doesn't correspond to the PlayFab entity types, use
301
- * 'external' as the type.
319
+ * The entity type being represented on the leaderboard. If it doesn&#39;t correspond to the PlayFab entity types, use
320
+ * &#39;external&#39; as the type.
302
321
  */
303
322
  EntityType: string;
304
323
  /** Last time, in UTC, leaderboard version was incremented. */
@@ -405,7 +424,7 @@ interface StatisticUpdate {
405
424
  * libraries unable to handle 64bit integers.
406
425
  */
407
426
  Scores?: string[];
408
- /** Optional field to indicate the version of the statistic to set. When empty defaults to the statistic's current version. */
427
+ /** Optional field to indicate the version of the statistic to set. When empty defaults to the statistic&#39;s current version. */
409
428
  Version?: number;
410
429
  }
411
430
  interface UnlinkLeaderboardFromStatisticRequest extends IPlayFabRequestCommon {
@@ -437,7 +456,7 @@ interface UpdateLeaderboardEntriesRequest extends IPlayFabRequestCommon {
437
456
  interface UpdateStatisticDefinitionRequest extends IPlayFabRequestCommon {
438
457
  /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
439
458
  CustomTags?: Record<string, string | null>;
440
- /** Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, '(', ')', '_', '-' and '.'. */
459
+ /** Name of the statistic. Must be less than 150 characters. Restricted to a-Z, 0-9, &#39;(&#39;, &#39;)&#39;, &#39;_&#39;, &#39;-&#39; and &#39;.&#39;. */
441
460
  Name: string;
442
461
  /** The version reset configuration for the statistic definition. */
443
462
  VersionConfiguration?: VersionConfiguration;
@@ -479,120 +498,365 @@ interface VersionConfiguration {
479
498
  declare class PlayFabProgressionApi extends PlayFabCommon {
480
499
  /**
481
500
  * Creates a new leaderboard definition.
482
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/createleaderboarddefinition
483
- */
484
- CreateLeaderboardDefinition(request: CreateLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
501
+ *
502
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/createleaderboarddefinition Microsoft Documentation}
503
+ * @example
504
+ * await leaderboardClient.CreateLeaderboardDefinition({
505
+ * "Name": "HighestScoresByLevel",
506
+ * "EntityType": "title_player_account",
507
+ * "VersionConfiguration": {
508
+ * "ResetInterval": "Manual",
509
+ * "MaxQueryableVersions": 1
510
+ * },
511
+ * "Columns": [
512
+ * {
513
+ * "Name": "Hits",
514
+ * "SortDirection": "Descending"
515
+ * }
516
+ * ],
517
+ * "SizeLimit": 1000
518
+ * });
519
+ */
520
+ CreateLeaderboardDefinition(request: CreateLeaderboardDefinitionRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
485
521
  /**
486
522
  * Create a new entity statistic definition.
487
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/createstatisticdefinition
488
- */
489
- CreateStatisticDefinition(request: CreateStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
523
+ *
524
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/createstatisticdefinition Microsoft Documentation}
525
+ * @example
526
+ * await statisticClient.CreateStatisticDefinition({
527
+ * "Name": "HighestScoresByLevel",
528
+ * "AggregationMethod": "Last",
529
+ * "Columns": [
530
+ * {
531
+ * "AggregationMethod": "Min"
532
+ * }
533
+ * ]
534
+ * });
535
+ */
536
+ CreateStatisticDefinition(request: CreateStatisticDefinitionRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
490
537
  /**
491
538
  * Deletes a leaderboard definition.
492
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/deleteleaderboarddefinition
539
+ *
540
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/deleteleaderboarddefinition Microsoft Documentation}
541
+ * @example
542
+ * await leaderboardClient.DeleteLeaderboardDefinition({
543
+ * "Name": "HighestScoresByLevel"
544
+ * });
493
545
  */
494
- DeleteLeaderboardDefinition(request: DeleteLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
546
+ DeleteLeaderboardDefinition(request: DeleteLeaderboardDefinitionRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
495
547
  /**
496
548
  * Deletes the specified entries from the given leaderboard.
497
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/deleteleaderboardentries
498
- */
499
- DeleteLeaderboardEntries(request: DeleteLeaderboardEntriesRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
549
+ *
550
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/deleteleaderboardentries Microsoft Documentation}
551
+ * @example
552
+ * await leaderboardClient.DeleteLeaderboardEntries({
553
+ * "Name": "Points",
554
+ * "EntityIds": [
555
+ * "12802710371",
556
+ * "01849174301"
557
+ * ]
558
+ * });
559
+ */
560
+ DeleteLeaderboardEntries(request: DeleteLeaderboardEntriesRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
500
561
  /**
501
562
  * Delete an entity statistic definition. Will delete all statistics on entity profiles and leaderboards.
502
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/deletestatisticdefinition
563
+ *
564
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/deletestatisticdefinition Microsoft Documentation}
565
+ * @example
566
+ * await statisticClient.DeleteStatisticDefinition({
567
+ * "Name": "HighestScoresByLevel"
568
+ * });
503
569
  */
504
- DeleteStatisticDefinition(request: DeleteStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
570
+ DeleteStatisticDefinition(request: DeleteStatisticDefinitionRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
505
571
  /**
506
572
  * Delete statistics on an entity profile. This will remove all rankings from associated leaderboards.
507
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/deletestatistics
508
- */
509
- DeleteStatistics(request: DeleteStatisticsRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<DeleteStatisticsResponse>;
573
+ *
574
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/deletestatistics Microsoft Documentation}
575
+ * @example
576
+ * await statisticClient.DeleteStatistics({
577
+ * "Statistics": [
578
+ * {
579
+ * "Name": "TotalCarTime"
580
+ * },
581
+ * {
582
+ * "Name": "FastestTimesByMap",
583
+ * "Version": 15
584
+ * }
585
+ * ]
586
+ * });
587
+ */
588
+ DeleteStatistics(request: DeleteStatisticsRequest, extraHeaders?: Record<string, string>): Promise<DeleteStatisticsResponse>;
510
589
  /**
511
590
  * Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard.
512
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getfriendleaderboardforentity
591
+ *
592
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/getfriendleaderboardforentity Microsoft Documentation}
593
+ * @example
594
+ * await leaderboardClient.GetFriendLeaderboardForEntity({
595
+ * "LeaderboardName": "Points",
596
+ * "ExternalFriendSources": "None"
597
+ * });
513
598
  */
514
- GetFriendLeaderboardForEntity(request: GetFriendLeaderboardForEntityRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
599
+ GetFriendLeaderboardForEntity(request: GetFriendLeaderboardForEntityRequest, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
515
600
  /**
516
601
  * Get the leaderboard for a specific entity type and statistic.
517
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboard
518
- */
519
- GetLeaderboard(request: GetEntityLeaderboardRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
602
+ *
603
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/getleaderboard Microsoft Documentation}
604
+ * @example
605
+ * await leaderboardClient.GetLeaderboard({
606
+ * "LeaderboardName": "Points",
607
+ * "Version": 2,
608
+ * "StartingPosition": 100,
609
+ * "PageSize": 20
610
+ * });
611
+ */
612
+ GetLeaderboard(request: GetEntityLeaderboardRequest, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
520
613
  /**
521
614
  * Get the leaderboard around a specific entity.
522
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboardaroundentity
523
- */
524
- GetLeaderboardAroundEntity(request: GetLeaderboardAroundEntityRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
615
+ *
616
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/getleaderboardaroundentity Microsoft Documentation}
617
+ * @example
618
+ * await leaderboardClient.GetLeaderboardAroundEntity({
619
+ * "LeaderboardName": "Points",
620
+ * "Version": 2,
621
+ * "MaxSurroundingEntries": 0,
622
+ * "Entity": {
623
+ * "Id": "819478109412",
624
+ * "Type": "title_player_account",
625
+ * "TypeString": "title_player_account"
626
+ * }
627
+ * });
628
+ */
629
+ GetLeaderboardAroundEntity(request: GetLeaderboardAroundEntityRequest, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
525
630
  /**
526
631
  * Gets the specified leaderboard definition.
527
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboarddefinition
632
+ *
633
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/getleaderboarddefinition Microsoft Documentation}
634
+ * @example
635
+ * await leaderboardClient.GetLeaderboardDefinition({
636
+ * "Name": "HighestScoresByLevel"
637
+ * });
528
638
  */
529
- GetLeaderboardDefinition(request: GetLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetLeaderboardDefinitionResponse>;
639
+ GetLeaderboardDefinition(request: GetLeaderboardDefinitionRequest, extraHeaders?: Record<string, string>): Promise<GetLeaderboardDefinitionResponse>;
530
640
  /**
531
641
  * Get the leaderboard limited to a set of entities.
532
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboardforentities
533
- */
534
- GetLeaderboardForEntities(request: GetLeaderboardForEntitiesRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
642
+ *
643
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/getleaderboardforentities Microsoft Documentation}
644
+ * @example
645
+ * await leaderboardClient.GetLeaderboardForEntities({
646
+ * "LeaderboardName": "Points",
647
+ * "Version": 2,
648
+ * "EntityIds": [
649
+ * "12802710371",
650
+ * "01849174301"
651
+ * ]
652
+ * });
653
+ */
654
+ GetLeaderboardForEntities(request: GetLeaderboardForEntitiesRequest, extraHeaders?: Record<string, string>): Promise<GetEntityLeaderboardResponse>;
535
655
  /**
536
656
  * Get current statistic definition information
537
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatisticdefinition
657
+ *
658
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/getstatisticdefinition Microsoft Documentation}
659
+ * @example
660
+ * await statisticClient.GetStatisticDefinition({
661
+ * "Name": "Points"
662
+ * });
538
663
  */
539
- GetStatisticDefinition(request: GetStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetStatisticDefinitionResponse>;
664
+ GetStatisticDefinition(request: GetStatisticDefinitionRequest, extraHeaders?: Record<string, string>): Promise<GetStatisticDefinitionResponse>;
540
665
  /**
541
- * Gets statistics for the specified entity.
542
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatistics
666
+ * Get all current statistic definitions information
667
+ *
668
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/getstatisticdefinitions Microsoft Documentation}
669
+ * @deprecated Please use ListStatisticDefinitions instead.
543
670
  */
544
- GetStatistics(request: GetStatisticsRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetStatisticsResponse>;
671
+ GetStatisticDefinitions(request: GetStatisticDefinitionsRequest, extraHeaders?: Record<string, string>): Promise<GetStatisticDefinitionsResponse>;
672
+ /**
673
+ * Gets statistics for the specified entity.
674
+ *
675
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/getstatistics Microsoft Documentation}
676
+ * @example
677
+ * await statisticClient.GetStatistics({
678
+ * "StatisticNames": [
679
+ * "SpeedRuns",
680
+ * "Boosts"
681
+ * ],
682
+ * "Entity": {
683
+ * "Id": "A197412JDA",
684
+ * "Type": "title_player_account",
685
+ * "TypeString": "title_player_account"
686
+ * }
687
+ * });
688
+ */
689
+ GetStatistics(request: GetStatisticsRequest, extraHeaders?: Record<string, string>): Promise<GetStatisticsResponse>;
545
690
  /**
546
691
  * Gets statistics for the specified collection of entities.
547
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatisticsforentities
548
- */
549
- GetStatisticsForEntities(request: GetStatisticsForEntitiesRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<GetStatisticsForEntitiesResponse>;
692
+ *
693
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/getstatisticsforentities Microsoft Documentation}
694
+ * @example
695
+ * await statisticClient.GetStatisticsForEntities({
696
+ * "Entities": [
697
+ * {
698
+ * "Id": "A197412JDA",
699
+ * "Type": "title_player_account",
700
+ * "TypeString": "title_player_account"
701
+ * },
702
+ * {
703
+ * "Id": "B197412JDB",
704
+ * "Type": "title_player_account",
705
+ * "TypeString": "title_player_account"
706
+ * }
707
+ * ],
708
+ * "StatisticNames": [
709
+ * "SpeedRuns",
710
+ * "Boosts"
711
+ * ]
712
+ * });
713
+ */
714
+ GetStatisticsForEntities(request: GetStatisticsForEntitiesRequest, extraHeaders?: Record<string, string>): Promise<GetStatisticsForEntitiesResponse>;
550
715
  /**
551
716
  * Increment a leaderboard version.
552
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/incrementleaderboardversion
717
+ *
718
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/incrementleaderboardversion Microsoft Documentation}
719
+ * @example
720
+ * await leaderboardClient.IncrementLeaderboardVersion({
721
+ * "Name": "HighestScoresByLevel"
722
+ * });
553
723
  */
554
- IncrementLeaderboardVersion(request: IncrementLeaderboardVersionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<IncrementLeaderboardVersionResponse>;
724
+ IncrementLeaderboardVersion(request: IncrementLeaderboardVersionRequest, extraHeaders?: Record<string, string>): Promise<IncrementLeaderboardVersionResponse>;
555
725
  /**
556
726
  * Increment an entity statistic definition version.
557
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/incrementstatisticversion
727
+ *
728
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/incrementstatisticversion Microsoft Documentation}
729
+ * @example
730
+ * await statisticClient.IncrementStatisticVersion({
731
+ * "Name": "HighestScoresByLevel"
732
+ * });
558
733
  */
559
- IncrementStatisticVersion(request: IncrementStatisticVersionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<IncrementStatisticVersionResponse>;
734
+ IncrementStatisticVersion(request: IncrementStatisticVersionRequest, extraHeaders?: Record<string, string>): Promise<IncrementStatisticVersionResponse>;
560
735
  /**
561
736
  * Lists the leaderboard definitions defined for the Title.
562
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/listleaderboarddefinitions
737
+ *
738
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/listleaderboarddefinitions Microsoft Documentation}
739
+ * @example
740
+ * await leaderboardClient.ListLeaderboardDefinitions({});
563
741
  */
564
- ListLeaderboardDefinitions(request: ListLeaderboardDefinitionsRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<ListLeaderboardDefinitionsResponse>;
742
+ ListLeaderboardDefinitions(request: ListLeaderboardDefinitionsRequest, extraHeaders?: Record<string, string>): Promise<ListLeaderboardDefinitionsResponse>;
565
743
  /**
566
744
  * Get all current statistic definitions information
567
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/liststatisticdefinitions
745
+ *
746
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/liststatisticdefinitions Microsoft Documentation}
747
+ * @example
748
+ * await statisticClient.ListStatisticDefinitions({});
568
749
  */
569
- ListStatisticDefinitions(request: ListStatisticDefinitionsRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<ListStatisticDefinitionsResponse>;
750
+ ListStatisticDefinitions(request: ListStatisticDefinitionsRequest, extraHeaders?: Record<string, string>): Promise<ListStatisticDefinitionsResponse>;
570
751
  /**
571
752
  * Unlinks a leaderboard definition from it's linked statistic definition.
572
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/unlinkleaderboardfromstatistic
753
+ *
754
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/unlinkleaderboardfromstatistic Microsoft Documentation}
755
+ * @example
756
+ * await leaderboardClient.UnlinkLeaderboardFromStatistic({
757
+ * "Name": "HighestScoresByLevel",
758
+ * "StatisticName": "HighestScoresByLevel"
759
+ * });
573
760
  */
574
- UnlinkLeaderboardFromStatistic(request: UnlinkLeaderboardFromStatisticRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
761
+ UnlinkLeaderboardFromStatistic(request: UnlinkLeaderboardFromStatisticRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
575
762
  /**
576
763
  * Updates a leaderboard definition.
577
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/updateleaderboarddefinition
578
- */
579
- UpdateLeaderboardDefinition(request: UpdateLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
764
+ *
765
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/updateleaderboarddefinition Microsoft Documentation}
766
+ * @example
767
+ * await leaderboardClient.UpdateLeaderboardDefinition({
768
+ * "Name": "HighestScoresByLevel",
769
+ * "VersionConfiguration": {
770
+ * "ResetInterval": "Manual",
771
+ * "MaxQueryableVersions": 1
772
+ * },
773
+ * "SizeLimit": 1000
774
+ * });
775
+ */
776
+ UpdateLeaderboardDefinition(request: UpdateLeaderboardDefinitionRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
580
777
  /**
581
778
  * Adds or updates entries on the specified leaderboard.
582
- * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/updateleaderboardentries
583
- */
584
- UpdateLeaderboardEntries(request: UpdateLeaderboardEntriesRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
779
+ *
780
+ * {@link https://docs.microsoft.com/rest/api/playfab/leaderboard/leaderboards/updateleaderboardentries Microsoft Documentation}
781
+ * @example
782
+ * await leaderboardClient.UpdateLeaderboardEntries({
783
+ * "LeaderboardName": "Points",
784
+ * "Entries": [
785
+ * {
786
+ * "Scores": [
787
+ * "100",
788
+ * "200"
789
+ * ],
790
+ * "EntityId": "12802710371"
791
+ * },
792
+ * {
793
+ * "Scores": [
794
+ * "120",
795
+ * "200"
796
+ * ],
797
+ * "EntityId": "01849174301"
798
+ * }
799
+ * ]
800
+ * });
801
+ */
802
+ UpdateLeaderboardEntries(request: UpdateLeaderboardEntriesRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
585
803
  /**
586
804
  * Update an existing entity statistic definition.
587
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/updatestatisticdefinition
588
- */
589
- UpdateStatisticDefinition(request: UpdateStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
805
+ *
806
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/updatestatisticdefinition Microsoft Documentation}
807
+ * @example
808
+ * await statisticClient.UpdateStatisticDefinition({
809
+ * "Name": "HighestScoresByLevel",
810
+ * "VersionConfiguration": {
811
+ * "ResetInterval": "Manual",
812
+ * "MaxQueryableVersions": 2
813
+ * }
814
+ * });
815
+ */
816
+ UpdateStatisticDefinition(request: UpdateStatisticDefinitionRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
590
817
  /**
591
818
  * Update statistics on an entity profile. Depending on the statistic definition, this may result in entity being ranked on
592
819
  * various leaderboards.
593
- * https://docs.microsoft.com/rest/api/playfab/progression/statistics/updatestatistics
594
- */
595
- UpdateStatistics(request: UpdateStatisticsRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<UpdateStatisticsResponse>;
820
+ *
821
+ * {@link https://docs.microsoft.com/rest/api/playfab/statistic/statistics/updatestatistics Microsoft Documentation}
822
+ * @example
823
+ * await statisticClient.UpdateStatistics({
824
+ * "Statistics": [
825
+ * {
826
+ * "Name": "RoundsWon",
827
+ * "Value": 0,
828
+ * "Metadata": "BestRun:34.13,Car:13452",
829
+ * "Scores": [
830
+ * "100",
831
+ * "200"
832
+ * ]
833
+ * },
834
+ * {
835
+ * "Name": "FastestTimesByMap",
836
+ * "Value": 0,
837
+ * "Metadata": "Car:13452",
838
+ * "Scores": [
839
+ * "200",
840
+ * "300"
841
+ * ]
842
+ * },
843
+ * {
844
+ * "Name": "TotalCarTime",
845
+ * "Value": 0,
846
+ * "Scores": [
847
+ * "300",
848
+ * "400"
849
+ * ]
850
+ * }
851
+ * ],
852
+ * "Entity": {
853
+ * "Id": "A197412JDA",
854
+ * "Type": "title_player_account",
855
+ * "TypeString": "title_player_account"
856
+ * }
857
+ * });
858
+ */
859
+ UpdateStatistics(request: UpdateStatisticsRequest, extraHeaders?: Record<string, string>): Promise<UpdateStatisticsResponse>;
596
860
  }
597
861
 
598
862
  export { PlayFabProgressionApi as default };
@@ -0,0 +1,8 @@
1
+ import {
2
+ PlayFabProgressionApi
3
+ } from "./chunk-UDM2ZVXN.js";
4
+ import "./chunk-N7LC7KNB.js";
5
+ export {
6
+ PlayFabProgressionApi as default
7
+ };
8
+ //# sourceMappingURL=Progression.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/apis/PlayFabProgressionApi.ts","../src/constants.ts","../src/PlayFabContext.ts","../src/PlayFabCommon.ts"],"sourcesContent":["import type { EmptyResponse } from \"../types/PlayFab\";\nimport type {\n\n CreateLeaderboardDefinitionRequest,\n CreateStatisticDefinitionRequest,\n DeleteLeaderboardDefinitionRequest,\n DeleteLeaderboardEntriesRequest,\n DeleteStatisticDefinitionRequest,\n DeleteStatisticsRequest,\n GetFriendLeaderboardForEntityRequest,\n GetEntityLeaderboardRequest,\n GetLeaderboardAroundEntityRequest,\n GetLeaderboardDefinitionRequest,\n GetLeaderboardForEntitiesRequest,\n GetStatisticDefinitionRequest,\n GetStatisticsRequest,\n GetStatisticsForEntitiesRequest,\n IncrementLeaderboardVersionRequest,\n IncrementStatisticVersionRequest,\n ListLeaderboardDefinitionsRequest,\n ListStatisticDefinitionsRequest,\n UnlinkLeaderboardFromStatisticRequest,\n UpdateLeaderboardDefinitionRequest,\n UpdateLeaderboardEntriesRequest,\n UpdateStatisticDefinitionRequest,\n UpdateStatisticsRequest,\n DeleteStatisticsResponse,\n GetEntityLeaderboardResponse,\n GetLeaderboardDefinitionResponse,\n GetStatisticDefinitionResponse,\n GetStatisticsResponse,\n GetStatisticsForEntitiesResponse,\n IncrementLeaderboardVersionResponse,\n IncrementStatisticVersionResponse,\n ListLeaderboardDefinitionsResponse,\n ListStatisticDefinitionsResponse,\n UpdateStatisticsResponse,\n} from \"../types/PlayFabProgressionApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabProgressionApi extends PlayFabCommon {\n\n /**\n * Creates a new leaderboard definition.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/createleaderboarddefinition\n */\n CreateLeaderboardDefinition (request: CreateLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Leaderboard/CreateLeaderboardDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Create a new entity statistic definition.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/createstatisticdefinition\n */\n CreateStatisticDefinition (request: CreateStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Statistic/CreateStatisticDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Deletes a leaderboard definition.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/deleteleaderboarddefinition\n */\n DeleteLeaderboardDefinition (request: DeleteLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Leaderboard/DeleteLeaderboardDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Deletes the specified entries from the given leaderboard.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/deleteleaderboardentries\n */\n DeleteLeaderboardEntries (request: DeleteLeaderboardEntriesRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Leaderboard/DeleteLeaderboardEntries\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Delete an entity statistic definition. Will delete all statistics on entity profiles and leaderboards.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/deletestatisticdefinition\n */\n DeleteStatisticDefinition (request: DeleteStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Statistic/DeleteStatisticDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Delete statistics on an entity profile. This will remove all rankings from associated leaderboards.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/deletestatistics\n */\n DeleteStatistics (request: DeleteStatisticsRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteStatisticsResponse>(\"/Statistic/DeleteStatistics\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Get the friend leaderboard for the specified entity. A maximum of 25 friend entries are listed in the leaderboard.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getfriendleaderboardforentity\n */\n GetFriendLeaderboardForEntity (request: GetFriendLeaderboardForEntityRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityLeaderboardResponse>(\"/Leaderboard/GetFriendLeaderboardForEntity\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Get the leaderboard for a specific entity type and statistic.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboard\n */\n GetLeaderboard (request: GetEntityLeaderboardRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityLeaderboardResponse>(\"/Leaderboard/GetLeaderboard\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Get the leaderboard around a specific entity.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboardaroundentity\n */\n GetLeaderboardAroundEntity (request: GetLeaderboardAroundEntityRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityLeaderboardResponse>(\"/Leaderboard/GetLeaderboardAroundEntity\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Gets the specified leaderboard definition.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboarddefinition\n */\n GetLeaderboardDefinition (request: GetLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetLeaderboardDefinitionResponse>(\"/Leaderboard/GetLeaderboardDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Get the leaderboard limited to a set of entities.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/getleaderboardforentities\n */\n GetLeaderboardForEntities (request: GetLeaderboardForEntitiesRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityLeaderboardResponse>(\"/Leaderboard/GetLeaderboardForEntities\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Get current statistic definition information\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatisticdefinition\n */\n GetStatisticDefinition (request: GetStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetStatisticDefinitionResponse>(\"/Statistic/GetStatisticDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Gets statistics for the specified entity.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatistics\n */\n GetStatistics (request: GetStatisticsRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetStatisticsResponse>(\"/Statistic/GetStatistics\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Gets statistics for the specified collection of entities.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatisticsforentities\n */\n GetStatisticsForEntities (request: GetStatisticsForEntitiesRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetStatisticsForEntitiesResponse>(\"/Statistic/GetStatisticsForEntities\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Increment a leaderboard version.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/incrementleaderboardversion\n */\n IncrementLeaderboardVersion (request: IncrementLeaderboardVersionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<IncrementLeaderboardVersionResponse>(\"/Leaderboard/IncrementLeaderboardVersion\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Increment an entity statistic definition version.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/incrementstatisticversion\n */\n IncrementStatisticVersion (request: IncrementStatisticVersionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<IncrementStatisticVersionResponse>(\"/Statistic/IncrementStatisticVersion\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Lists the leaderboard definitions defined for the Title.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/listleaderboarddefinitions\n */\n ListLeaderboardDefinitions (request: ListLeaderboardDefinitionsRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListLeaderboardDefinitionsResponse>(\"/Leaderboard/ListLeaderboardDefinitions\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Get all current statistic definitions information\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/liststatisticdefinitions\n */\n ListStatisticDefinitions (request: ListStatisticDefinitionsRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListStatisticDefinitionsResponse>(\"/Statistic/ListStatisticDefinitions\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Unlinks a leaderboard definition from it's linked statistic definition.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/unlinkleaderboardfromstatistic\n */\n UnlinkLeaderboardFromStatistic (request: UnlinkLeaderboardFromStatisticRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Leaderboard/UnlinkLeaderboardFromStatistic\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Updates a leaderboard definition.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/updateleaderboarddefinition\n */\n UpdateLeaderboardDefinition (request: UpdateLeaderboardDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Leaderboard/UpdateLeaderboardDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Adds or updates entries on the specified leaderboard.\n * https://docs.microsoft.com/rest/api/playfab/progression/leaderboards/updateleaderboardentries\n */\n UpdateLeaderboardEntries (request: UpdateLeaderboardEntriesRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Leaderboard/UpdateLeaderboardEntries\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Update an existing entity statistic definition.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/updatestatisticdefinition\n */\n UpdateStatisticDefinition (request: UpdateStatisticDefinitionRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Statistic/UpdateStatisticDefinition\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Update statistics on an entity profile. Depending on the statistic definition, this may result in entity being ranked on\n * various leaderboards.\n * https://docs.microsoft.com/rest/api/playfab/progression/statistics/updatestatistics\n */\n UpdateStatistics (request: UpdateStatisticsRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UpdateStatisticsResponse>(\"/Statistic/UpdateStatistics\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n};\n","export interface ISettings {\n /** You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website) */\n titleId: string;\n /** For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website) */\n developerSecretKey: string;\n productionServerUrl: string;\n GlobalHeaderInjection?: { [key: string]: string };\n /** The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this */\n verticalName?: string | null;\n}\n\nexport const AuthInfoMap = {\n \"X-EntityToken\": {\n authAttr: \"entityToken\",\n authError: \"errorEntityToken\",\n },\n \"X-Authorization\": {\n authAttr: \"sessionTicket\",\n authError: \"errorLoggedIn\",\n },\n \"X-SecretKey\": {\n authAttr: \"developerSecretKey\",\n authError: \"errorSecretKey\",\n },\n};\n\nexport default {\n sdkVersion: \"1.192.250526\",\n sdkFingerprint: \"JavaScriptSDK-1.192.250526\",\n buildIdentifier: \"custom_async-javascriptsdk\",\n defaultSettings: {\n titleId: \"\",\n developerSecretKey: \"\",\n GlobalHeaderInjection: {},\n productionServerUrl: \".playfabapi.com\",\n verticalName: null\n } as ISettings\n};\n","import constants, { type ISettings } from \"./constants\";\n\nexport type AuthContext = {\n PlayFabId: string | null;\n EntityId: string | null;\n EntityType: string | null;\n SessionTicket: string | null;\n EntityToken: string | null;\n};\n\nexport class PlayFabContext {\n private static _instance: PlayFabContext;\n\n settings: ISettings = constants.defaultSettings;\n\n authenticationContext: AuthContext = {\n PlayFabId: null,\n EntityId: null,\n EntityType: null,\n SessionTicket: null,\n EntityToken: null,\n };\n\n sessionTicket: string | null = null;\n\n entityToken: string | null = null;\n\n private constructor() {}\n\n public static get instance(): PlayFabContext {\n if (!PlayFabContext._instance) {\n PlayFabContext._instance = new PlayFabContext();\n }\n\n return PlayFabContext._instance;\n }\n}\n","import constants, { ISettings, AuthInfoMap } from \"./constants\";\nimport { AuthContext, PlayFabContext } from \"./PlayFabContext\";\nimport { IPlayFabError, IPlayFabResultCommon } from \"./types/PlayFab\";\n\nexport class PlayFabCommon {\n buildIdentifier: string = constants.buildIdentifier;\n requestGetParams = {\n sdk: constants.sdkFingerprint,\n } as const;\n errorTitleId = \"Must be have settings.titleId set to call this method\";\n errorLoggedIn = \"Must be logged in to call this method\";\n errorEntityToken =\n \"You must successfully call GetEntityToken before calling this\";\n errorSecretKey =\n \"Must have settings.developerSecretKey set to call this method\";\n private _context = PlayFabContext.instance;\n\n constructor(settings: Partial<ISettings> | undefined = undefined) {\n if (settings) {\n Object.assign(this._context.settings, settings);\n }\n }\n\n get settings() {\n return this._context.settings;\n }\n\n get authenticationContext() {\n return this._context.authenticationContext;\n }\n\n get sessionTicket() {\n return this._context.sessionTicket;\n }\n\n set sessionTicket(value: string | null) {\n this._context.sessionTicket = value;\n }\n\n get entityToken() {\n return this._context.entityToken;\n }\n\n set entityToken(value: string | null) {\n this._context.entityToken = value;\n }\n\n GetServerUrl() {\n if (!(this.settings.productionServerUrl.substring(0, 4) === \"http\")) {\n return `https://${this.settings.verticalName || this.settings.titleId}${\n this.settings.productionServerUrl\n }`;\n } else {\n return this.settings.productionServerUrl;\n }\n }\n\n InjectHeaders(\n xhr: XMLHttpRequest,\n headersObj: Record<string, string> | undefined\n ) {\n if (!headersObj) return;\n\n for (const headerKey in headersObj) {\n try {\n xhr.setRequestHeader(headerKey, headersObj[headerKey]);\n } catch (e) {\n console.log(\n `Failed to append header: ${headerKey} = ${headersObj[headerKey]} Error: ${e}`\n );\n }\n }\n }\n\n ExecuteRequest<T extends IPlayFabResultCommon>(\n url: string,\n body: any,\n authkey: string | null,\n authValue: string | null,\n customData: any,\n extraHeaders?: Record<string, string>\n ): Promise<T> {\n return new Promise((resolve, reject) => {\n if (body == null) body = {};\n\n var startTime = new Date().getTime();\n var requestBody = JSON.stringify(body);\n\n var urlArr = [url];\n var getParams = this.requestGetParams;\n if (getParams != null) {\n var firstParam = true;\n for (var key in getParams) {\n if (firstParam) {\n urlArr.push(\"?\");\n firstParam = false;\n } else {\n urlArr.push(\"&\");\n }\n urlArr.push(key);\n urlArr.push(\"=\");\n urlArr.push(getParams[key as keyof typeof getParams]);\n }\n }\n\n var completeUrl = urlArr.join(\"\");\n\n var xhr = new XMLHttpRequest();\n xhr.open(\"POST\", completeUrl, true);\n\n xhr.setRequestHeader(\"Content-Type\", \"application/json\");\n xhr.setRequestHeader(\n \"X-PlayFabSDK\",\n \"JavaScriptSDK-\" + constants.sdkVersion\n );\n if (authkey != null) {\n xhr.setRequestHeader(authkey, authValue!);\n }\n this.InjectHeaders(xhr, this.settings.GlobalHeaderInjection);\n this.InjectHeaders(xhr, extraHeaders);\n\n xhr.onloadend = () => {\n var result = this.GetPlayFabResponse(body, xhr, startTime, customData);\n if (result.code === 200) {\n resolve(result.data || result);\n } else {\n reject(result);\n }\n };\n\n xhr.onerror = () => {\n var result = this.GetPlayFabResponse(body, xhr, startTime, customData);\n reject(result);\n };\n\n xhr.send(requestBody);\n });\n }\n\n GetPlayFabResponse(\n request: any,\n xhr: XMLHttpRequest,\n startTime: number,\n customData: any\n ) {\n var result = null as any;\n try {\n // window.console.log(\"parsing json result: \" + xhr.responseText);\n result = JSON.parse(xhr.responseText);\n } catch (e) {\n result = {\n code: 503, // Service Unavailable\n status: \"Service Unavailable\",\n error: \"Connection error\",\n errorCode: 2, // PlayFabErrorCode.ConnectionError\n errorMessage: xhr.responseText,\n };\n }\n\n result.CallBackTimeMS = new Date().getTime() - startTime;\n result.Request = request;\n result.CustomData = customData;\n return result;\n }\n\n UpdateAuthenticationContext(currentAuthContext: AuthContext, result: any) {\n var authenticationContextUpdates = {} as AuthContext;\n if (result?.PlayFabId) {\n authenticationContextUpdates.PlayFabId = result.PlayFabId;\n }\n if (result?.SessionTicket) {\n authenticationContextUpdates.SessionTicket = result.SessionTicket;\n }\n if (result?.EntityToken) {\n authenticationContextUpdates.EntityId = result.EntityToken.Entity.Id;\n authenticationContextUpdates.EntityType = result.EntityToken.Entity.Type;\n authenticationContextUpdates.EntityToken = result.EntityToken.EntityToken;\n }\n // Update the authenticationContext with values from the result\n currentAuthContext = Object.assign(\n currentAuthContext,\n authenticationContextUpdates\n );\n\n this._context.authenticationContext = currentAuthContext;\n\n return currentAuthContext;\n }\n\n GetAuthInfo(request: any, authKey: string) {\n // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext\n var authError = AuthInfoMap[authKey as keyof typeof AuthInfoMap].authError;\n var authAttr = AuthInfoMap[authKey as keyof typeof AuthInfoMap].authAttr;\n var defaultAuthValue: string | null = null;\n if (authAttr === \"entityToken\") defaultAuthValue = this.entityToken;\n else if (authAttr === \"sessionTicket\")\n defaultAuthValue = this.sessionTicket;\n else if (authAttr === \"developerSecretKey\")\n defaultAuthValue = this.settings.developerSecretKey;\n var authValue = request.AuthenticationContext\n ? request.AuthenticationContext[authAttr]\n : defaultAuthValue;\n return { authKey, authValue, authError };\n }\n\n ExecuteRequestWrapper<T extends IPlayFabResultCommon>(\n apiURL: string,\n request: any,\n authKey: string | null,\n customData: any,\n extraHeaders?: Record<string, string>\n ) {\n var authValue = null;\n if (authKey !== null) {\n const { authError, ...authInfo } = this.GetAuthInfo(request, authKey);\n authKey = authInfo.authKey;\n authValue = authInfo.authValue;\n if (!authValue) throw authError;\n }\n return this.ExecuteRequest<T>(\n this.GetServerUrl() + apiURL,\n request,\n authKey,\n authValue,\n customData,\n extraHeaders\n );\n }\n\n GenerateErrorReport(error: IPlayFabError | null): string {\n if (error == null) return \"\";\n var fullErrors = error.errorMessage;\n for (var paramName in error.errorDetails)\n for (var msgIdx in error.errorDetails[paramName])\n fullErrors +=\n \"\\n\" + paramName + \": \" + error.errorDetails[paramName][msgIdx];\n return fullErrors;\n }\n\n ForgetAllCredentials() {\n this._context.sessionTicket = null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