@community-fabs/playfab-web-sdk 1.193.250606-1

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 (94) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +32 -0
  3. package/dist/Addon.d.ts +731 -0
  4. package/dist/Addon.js +8 -0
  5. package/dist/Addon.js.map +1 -0
  6. package/dist/Admin.d.ts +5675 -0
  7. package/dist/Admin.js +8 -0
  8. package/dist/Admin.js.map +1 -0
  9. package/dist/Authentication.d.ts +136 -0
  10. package/dist/Authentication.js +8 -0
  11. package/dist/Authentication.js.map +1 -0
  12. package/dist/Client.d.ts +6398 -0
  13. package/dist/Client.js +8 -0
  14. package/dist/Client.js.map +1 -0
  15. package/dist/CloudScript.d.ts +679 -0
  16. package/dist/CloudScript.js +8 -0
  17. package/dist/CloudScript.js.map +1 -0
  18. package/dist/Data.d.ts +347 -0
  19. package/dist/Data.js +8 -0
  20. package/dist/Data.js.map +1 -0
  21. package/dist/Economy.d.ts +2910 -0
  22. package/dist/Economy.js +8 -0
  23. package/dist/Economy.js.map +1 -0
  24. package/dist/Events.d.ts +494 -0
  25. package/dist/Events.js +8 -0
  26. package/dist/Events.js.map +1 -0
  27. package/dist/Experimentation.d.ts +504 -0
  28. package/dist/Experimentation.js +8 -0
  29. package/dist/Experimentation.js.map +1 -0
  30. package/dist/Groups.d.ts +785 -0
  31. package/dist/Groups.js +8 -0
  32. package/dist/Groups.js.map +1 -0
  33. package/dist/Insights.d.ts +167 -0
  34. package/dist/Insights.js +8 -0
  35. package/dist/Insights.js.map +1 -0
  36. package/dist/Localization.d.ts +23 -0
  37. package/dist/Localization.js +8 -0
  38. package/dist/Localization.js.map +1 -0
  39. package/dist/Matchmaker.d.ts +271 -0
  40. package/dist/Matchmaker.js +8 -0
  41. package/dist/Matchmaker.js.map +1 -0
  42. package/dist/Multiplayer.d.ts +5587 -0
  43. package/dist/Multiplayer.js +8 -0
  44. package/dist/Multiplayer.js.map +1 -0
  45. package/dist/PlayFabCommon-Dnp_xHg5.d.ts +68 -0
  46. package/dist/Profiles.d.ts +422 -0
  47. package/dist/Profiles.js +8 -0
  48. package/dist/Profiles.js.map +1 -0
  49. package/dist/Progression.d.ts +862 -0
  50. package/dist/Progression.js +8 -0
  51. package/dist/Progression.js.map +1 -0
  52. package/dist/Server.d.ts +5551 -0
  53. package/dist/Server.js +8 -0
  54. package/dist/Server.js.map +1 -0
  55. package/dist/chunk-3DU2LYBT.js +2673 -0
  56. package/dist/chunk-3DU2LYBT.js.map +1 -0
  57. package/dist/chunk-6OZSERVG.js +198 -0
  58. package/dist/chunk-6OZSERVG.js.map +1 -0
  59. package/dist/chunk-BD7SF6AA.js +357 -0
  60. package/dist/chunk-BD7SF6AA.js.map +1 -0
  61. package/dist/chunk-CPJ6FMQ3.js +421 -0
  62. package/dist/chunk-CPJ6FMQ3.js.map +1 -0
  63. package/dist/chunk-IFBBLD7Q.js +2477 -0
  64. package/dist/chunk-IFBBLD7Q.js.map +1 -0
  65. package/dist/chunk-J2KKGAWN.js +2387 -0
  66. package/dist/chunk-J2KKGAWN.js.map +1 -0
  67. package/dist/chunk-K2I6VCQK.js +270 -0
  68. package/dist/chunk-K2I6VCQK.js.map +1 -0
  69. package/dist/chunk-MHSKIHSG.js +22 -0
  70. package/dist/chunk-MHSKIHSG.js.map +1 -0
  71. package/dist/chunk-MQZCB76F.js +82 -0
  72. package/dist/chunk-MQZCB76F.js.map +1 -0
  73. package/dist/chunk-OZLGFCPU.js +421 -0
  74. package/dist/chunk-OZLGFCPU.js.map +1 -0
  75. package/dist/chunk-P4FCADAY.js +175 -0
  76. package/dist/chunk-P4FCADAY.js.map +1 -0
  77. package/dist/chunk-QHQBHTHP.js +76 -0
  78. package/dist/chunk-QHQBHTHP.js.map +1 -0
  79. package/dist/chunk-QJRCYM7I.js +82 -0
  80. package/dist/chunk-QJRCYM7I.js.map +1 -0
  81. package/dist/chunk-RVBFE5D5.js +237 -0
  82. package/dist/chunk-RVBFE5D5.js.map +1 -0
  83. package/dist/chunk-SF5NNTLE.js +225 -0
  84. package/dist/chunk-SF5NNTLE.js.map +1 -0
  85. package/dist/chunk-SZJQBNVS.js +197 -0
  86. package/dist/chunk-SZJQBNVS.js.map +1 -0
  87. package/dist/chunk-WBPWV6H3.js +2970 -0
  88. package/dist/chunk-WBPWV6H3.js.map +1 -0
  89. package/dist/chunk-YI4OQ74L.js +1048 -0
  90. package/dist/chunk-YI4OQ74L.js.map +1 -0
  91. package/dist/index.d.ts +18 -0
  92. package/dist/index.js +72 -0
  93. package/dist/index.js.map +1 -0
  94. package/package.json +29 -0
@@ -0,0 +1,504 @@
1
+ import { I as IPlayFabRequestCommon, a as IPlayFabResultCommon, P as PlayFabCommon, E as EmptyResponse } from './PlayFabCommon-Dnp_xHg5.js';
2
+
3
+ interface CreateExclusionGroupRequest extends IPlayFabRequestCommon {
4
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
5
+ CustomTags?: Record<string, string | null>;
6
+ /** Description of the exclusion group. */
7
+ Description?: string;
8
+ /** Friendly name of the exclusion group. */
9
+ Name: string;
10
+ }
11
+ interface CreateExclusionGroupResult extends IPlayFabResultCommon {
12
+ /** Identifier of the exclusion group. */
13
+ ExclusionGroupId?: string;
14
+ }
15
+ interface CreateExperimentRequest extends IPlayFabRequestCommon {
16
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
17
+ CustomTags?: Record<string, string | null>;
18
+ /** Description of the experiment. */
19
+ Description?: string;
20
+ /**
21
+ * The duration of the experiment, in days.
22
+ * @deprecated Please use EndDate instead.
23
+ */
24
+ Duration?: number;
25
+ /** When experiment should end. */
26
+ EndDate?: string;
27
+ /** Id of the exclusion group. */
28
+ ExclusionGroupId?: string;
29
+ /** Percentage of exclusion group traffic that will see this experiment. */
30
+ ExclusionGroupTrafficAllocation?: number;
31
+ /** Type of experiment. */
32
+ ExperimentType?: string;
33
+ /** Friendly name of the experiment. */
34
+ Name: string;
35
+ /** Id of the segment to which this experiment applies. Defaults to the &#39;All Players&#39; segment. */
36
+ SegmentId?: string;
37
+ /** When experiment should start. */
38
+ StartDate: string;
39
+ /**
40
+ * List of title player account IDs that automatically receive treatments in the experiment, but are not included when
41
+ * calculating experiment metrics.
42
+ */
43
+ TitlePlayerAccountTestIds?: string[];
44
+ /** List of variants for the experiment. */
45
+ Variants: Variant[];
46
+ }
47
+ interface CreateExperimentResult extends IPlayFabResultCommon {
48
+ /** The ID of the new experiment. */
49
+ ExperimentId?: string;
50
+ }
51
+ interface DeleteExclusionGroupRequest extends IPlayFabRequestCommon {
52
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
53
+ CustomTags?: Record<string, string | null>;
54
+ /** The ID of the exclusion group to delete. */
55
+ ExclusionGroupId: string;
56
+ }
57
+ interface DeleteExperimentRequest extends IPlayFabRequestCommon {
58
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
59
+ CustomTags?: Record<string, string | null>;
60
+ /** The ID of the experiment to delete. */
61
+ ExperimentId: string;
62
+ }
63
+ interface EntityKey {
64
+ /** Unique ID of the entity. */
65
+ Id: string;
66
+ /** Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types */
67
+ Type?: string;
68
+ /**
69
+ * Alternate name for Type.
70
+ * @deprecated Please use Type instead.
71
+ */
72
+ TypeString?: string;
73
+ }
74
+ interface ExclusionGroupTrafficAllocation {
75
+ /** Id of the experiment. */
76
+ ExperimentId?: string;
77
+ /** Percentage of exclusion group traffic that will see this experiment. */
78
+ TrafficAllocation: number;
79
+ }
80
+ interface Experiment {
81
+ /** Description of the experiment. */
82
+ Description?: string;
83
+ /**
84
+ * The duration of the experiment, in days.
85
+ * @deprecated Please use EndDate instead.
86
+ */
87
+ Duration?: number;
88
+ /** When experiment should end/was ended. */
89
+ EndDate?: string;
90
+ /** Id of the exclusion group for this experiment. */
91
+ ExclusionGroupId?: string;
92
+ /** Percentage of exclusion group traffic that will see this experiment. */
93
+ ExclusionGroupTrafficAllocation?: number;
94
+ /** Type of experiment. */
95
+ ExperimentType?: string;
96
+ /** Id of the experiment. */
97
+ Id?: string;
98
+ /** Friendly name of the experiment. */
99
+ Name?: string;
100
+ /** Id of the segment to which this experiment applies. Defaults to the &#39;All Players&#39; segment. */
101
+ SegmentId?: string;
102
+ /** When experiment should start/was started. */
103
+ StartDate: string;
104
+ /** State experiment is currently in. */
105
+ State?: string;
106
+ /**
107
+ * List of title player account IDs that automatically receive treatments in the experiment, but are not included when
108
+ * calculating experiment metrics.
109
+ */
110
+ TitlePlayerAccountTestIds?: string[];
111
+ /** List of variants for the experiment. */
112
+ Variants?: Variant[];
113
+ }
114
+ interface ExperimentExclusionGroup {
115
+ /** Description of the exclusion group. */
116
+ Description?: string;
117
+ /** Id of the exclusion group. */
118
+ ExclusionGroupId?: string;
119
+ /** Friendly name of the exclusion group. */
120
+ Name?: string;
121
+ }
122
+ interface GetExclusionGroupsRequest extends IPlayFabRequestCommon {
123
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
124
+ CustomTags?: Record<string, string | null>;
125
+ }
126
+ interface GetExclusionGroupsResult extends IPlayFabResultCommon {
127
+ /** List of exclusion groups for the title. */
128
+ ExclusionGroups?: ExperimentExclusionGroup[];
129
+ }
130
+ interface GetExclusionGroupTrafficRequest extends IPlayFabRequestCommon {
131
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
132
+ CustomTags?: Record<string, string | null>;
133
+ /** The ID of the exclusion group. */
134
+ ExclusionGroupId: string;
135
+ }
136
+ interface GetExclusionGroupTrafficResult extends IPlayFabResultCommon {
137
+ /** List of traffic allocations for the exclusion group. */
138
+ TrafficAllocations?: ExclusionGroupTrafficAllocation[];
139
+ }
140
+ interface GetExperimentsRequest extends IPlayFabRequestCommon {
141
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
142
+ CustomTags?: Record<string, string | null>;
143
+ }
144
+ interface GetExperimentsResult extends IPlayFabResultCommon {
145
+ /** List of experiments for the title. */
146
+ Experiments?: Experiment[];
147
+ }
148
+ interface GetLatestScorecardRequest extends IPlayFabRequestCommon {
149
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
150
+ CustomTags?: Record<string, string | null>;
151
+ /** The ID of the experiment. */
152
+ ExperimentId?: string;
153
+ }
154
+ interface GetLatestScorecardResult extends IPlayFabResultCommon {
155
+ /** Scorecard for the experiment of the title. */
156
+ Scorecard?: Scorecard;
157
+ }
158
+ interface GetTreatmentAssignmentRequest extends IPlayFabRequestCommon {
159
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
160
+ CustomTags?: Record<string, string | null>;
161
+ /** The optional entity to perform this action on. Defaults to the currently logged in entity. */
162
+ Entity?: EntityKey;
163
+ }
164
+ interface GetTreatmentAssignmentResult extends IPlayFabResultCommon {
165
+ /** Treatment assignment for the entity. */
166
+ TreatmentAssignment?: TreatmentAssignment;
167
+ }
168
+ interface MetricData {
169
+ /** The upper bound of the confidence interval for the relative delta (Delta.RelativeValue). */
170
+ ConfidenceIntervalEnd: number;
171
+ /** The lower bound of the confidence interval for the relative delta (Delta.RelativeValue). */
172
+ ConfidenceIntervalStart: number;
173
+ /** The absolute delta between TreatmentStats.Average and ControlStats.Average. */
174
+ DeltaAbsoluteChange: number;
175
+ /** The relative delta ratio between TreatmentStats.Average and ControlStats.Average. */
176
+ DeltaRelativeChange: number;
177
+ /** The machine name of the metric. */
178
+ InternalName?: string;
179
+ /** Indicates if a movement was detected on that metric. */
180
+ Movement?: string;
181
+ /** The readable name of the metric. */
182
+ Name?: string;
183
+ /** The expectation that a movement is real */
184
+ PMove: number;
185
+ /** The p-value resulting from the statistical test run for this metric */
186
+ PValue: number;
187
+ /** The threshold for observing sample ratio mismatch. */
188
+ PValueThreshold: number;
189
+ /** Indicates if the movement is statistically significant. */
190
+ StatSigLevel?: string;
191
+ /** Observed standard deviation value of the metric. */
192
+ StdDev: number;
193
+ /** Observed average value of the metric. */
194
+ Value: number;
195
+ }
196
+ interface Scorecard {
197
+ /** Represents the date the scorecard was generated. */
198
+ DateGenerated?: string;
199
+ /** Represents the duration of scorecard analysis. */
200
+ Duration?: string;
201
+ /** Represents the number of events processed for the generation of this scorecard */
202
+ EventsProcessed: number;
203
+ /** Id of the experiment. */
204
+ ExperimentId?: string;
205
+ /** Friendly name of the experiment. */
206
+ ExperimentName?: string;
207
+ /** Represents the latest compute job status. */
208
+ LatestJobStatus?: string;
209
+ /** Represents the presence of a sample ratio mismatch in the scorecard data. */
210
+ SampleRatioMismatch: boolean;
211
+ /** Scorecard containing list of analysis. */
212
+ ScorecardDataRows?: ScorecardDataRow[];
213
+ }
214
+ interface ScorecardDataRow {
215
+ /** Represents whether the variant is control or not. */
216
+ IsControl: boolean;
217
+ /** Data of the analysis with the internal name of the metric as the key and an object of metric data as value. */
218
+ MetricDataRows?: Record<string, MetricData>;
219
+ /** Represents the player count in the variant. */
220
+ PlayerCount: number;
221
+ /** Name of the variant of analysis. */
222
+ VariantName?: string;
223
+ }
224
+ interface StartExperimentRequest extends IPlayFabRequestCommon {
225
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
226
+ CustomTags?: Record<string, string | null>;
227
+ /** The ID of the experiment to start. */
228
+ ExperimentId: string;
229
+ }
230
+ interface StopExperimentRequest extends IPlayFabRequestCommon {
231
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
232
+ CustomTags?: Record<string, string | null>;
233
+ /** The ID of the experiment to stop. */
234
+ ExperimentId: string;
235
+ }
236
+ interface TreatmentAssignment {
237
+ /** List of the experiment variables. */
238
+ Variables?: Variable[];
239
+ /** List of the experiment variants. */
240
+ Variants?: string[];
241
+ }
242
+ interface UpdateExclusionGroupRequest extends IPlayFabRequestCommon {
243
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
244
+ CustomTags?: Record<string, string | null>;
245
+ /** Description of the exclusion group. */
246
+ Description?: string;
247
+ /** The ID of the exclusion group to update. */
248
+ ExclusionGroupId: string;
249
+ /** Friendly name of the exclusion group. */
250
+ Name: string;
251
+ }
252
+ interface UpdateExperimentRequest extends IPlayFabRequestCommon {
253
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
254
+ CustomTags?: Record<string, string | null>;
255
+ /** Description of the experiment. */
256
+ Description?: string;
257
+ /**
258
+ * The duration of the experiment, in days.
259
+ * @deprecated Please use EndDate instead.
260
+ */
261
+ Duration?: number;
262
+ /** When experiment should end. */
263
+ EndDate?: string;
264
+ /** Id of the exclusion group. */
265
+ ExclusionGroupId?: string;
266
+ /** Percentage of exclusion group traffic that will see this experiment. */
267
+ ExclusionGroupTrafficAllocation?: number;
268
+ /** Type of experiment. */
269
+ ExperimentType?: string;
270
+ /** Id of the experiment. */
271
+ Id: string;
272
+ /** Friendly name of the experiment. */
273
+ Name: string;
274
+ /** Id of the segment to which this experiment applies. Defaults to the &#39;All Players&#39; segment. */
275
+ SegmentId?: string;
276
+ /** When experiment should start. */
277
+ StartDate: string;
278
+ /**
279
+ * List of title player account IDs that automatically receive treatments in the experiment, but are not included when
280
+ * calculating experiment metrics.
281
+ */
282
+ TitlePlayerAccountTestIds?: string[];
283
+ /** List of variants for the experiment. */
284
+ Variants: Variant[];
285
+ }
286
+ interface Variable {
287
+ /** Name of the variable. */
288
+ Name: string;
289
+ /** Value of the variable. */
290
+ Value?: string;
291
+ }
292
+ interface Variant {
293
+ /** Description of the variant. */
294
+ Description?: string;
295
+ /** Id of the variant. */
296
+ Id?: string;
297
+ /** Specifies if variant is control for experiment. */
298
+ IsControl: boolean;
299
+ /** Name of the variant. */
300
+ Name: string;
301
+ /**
302
+ * Id of the TitleDataOverrideGroup to use with this variant.
303
+ * @deprecated Do not use
304
+ */
305
+ TitleDataOverrideId?: string;
306
+ /** Id of the TitleDataOverride to use with this variant. */
307
+ TitleDataOverrideLabel?: string;
308
+ /** Percentage of target audience traffic that will see this variant. */
309
+ TrafficPercentage: number;
310
+ /** Variables returned by this variant. */
311
+ Variables?: Variable[];
312
+ }
313
+
314
+ declare class PlayFabExperimentationApi extends PlayFabCommon {
315
+ /**
316
+ * Creates a new experiment exclusion group for a title.
317
+ *
318
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/createexclusiongroup Microsoft Documentation}
319
+ * @example
320
+ * await experimentationClient.CreateExclusionGroup({
321
+ * "Name": "Commerce Exclusion Group",
322
+ * "Description": "Exclusion group for independent, commerce-related experiments"
323
+ * });
324
+ */
325
+ CreateExclusionGroup(request: CreateExclusionGroupRequest, extraHeaders?: Record<string, string>): Promise<CreateExclusionGroupResult>;
326
+ /**
327
+ * Creates a new experiment for a title.
328
+ *
329
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/createexperiment Microsoft Documentation}
330
+ * @example
331
+ * await experimentationClient.CreateExperiment({
332
+ * "Name": "BackgroundColor Experiment",
333
+ * "Description": "Tests whether a green background color increases revenue",
334
+ * "StartDate": "2019-10-25T20:37:00Z",
335
+ * "EndDate": "2019-11-13T20:37:00Z",
336
+ * "Variants": [
337
+ * {
338
+ * "Name": "Control",
339
+ * "Description": "Control variant",
340
+ * "TrafficPercentage": 10,
341
+ * "Variables": [
342
+ * {
343
+ * "Name": "BackgroundColor",
344
+ * "Value": "White"
345
+ * }
346
+ * ],
347
+ * "IsControl": true
348
+ * },
349
+ * {
350
+ * "Name": "Treatment",
351
+ * "Description": "Treatment variant",
352
+ * "TrafficPercentage": 90,
353
+ * "Variables": [
354
+ * {
355
+ * "Name": "BackgroundColor",
356
+ * "Value": "Green"
357
+ * }
358
+ * ],
359
+ * "IsControl": false
360
+ * }
361
+ * ],
362
+ * "ExperimentType": "Active"
363
+ * });
364
+ */
365
+ CreateExperiment(request: CreateExperimentRequest, extraHeaders?: Record<string, string>): Promise<CreateExperimentResult>;
366
+ /**
367
+ * Deletes an existing exclusion group for a title.
368
+ *
369
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/deleteexclusiongroup Microsoft Documentation}
370
+ * @example
371
+ * await experimentationClient.DeleteExclusionGroup({
372
+ * "ExclusionGroupId": "00000000-0000-0000-0000-000000000000"
373
+ * });
374
+ */
375
+ DeleteExclusionGroup(request: DeleteExclusionGroupRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
376
+ /**
377
+ * Deletes an existing experiment for a title.
378
+ *
379
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/deleteexperiment Microsoft Documentation}
380
+ * @example
381
+ * await experimentationClient.DeleteExperiment({
382
+ * "ExperimentId": "00000000-0000-0000-0000-000000000000"
383
+ * });
384
+ */
385
+ DeleteExperiment(request: DeleteExperimentRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
386
+ /**
387
+ * Gets the details of all exclusion groups for a title.
388
+ *
389
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexclusiongroups Microsoft Documentation}
390
+ * @example
391
+ * await experimentationClient.GetExclusionGroups({});
392
+ */
393
+ GetExclusionGroups(request: GetExclusionGroupsRequest, extraHeaders?: Record<string, string>): Promise<GetExclusionGroupsResult>;
394
+ /**
395
+ * Gets the details of all exclusion groups for a title.
396
+ *
397
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexclusiongrouptraffic Microsoft Documentation}
398
+ * @example
399
+ * await experimentationClient.GetExclusionGroupTraffic({});
400
+ */
401
+ GetExclusionGroupTraffic(request: GetExclusionGroupTrafficRequest, extraHeaders?: Record<string, string>): Promise<GetExclusionGroupTrafficResult>;
402
+ /**
403
+ * Gets the details of all experiments for a title.
404
+ *
405
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexperiments Microsoft Documentation}
406
+ * @example
407
+ * await experimentationClient.GetExperiments({});
408
+ */
409
+ GetExperiments(request: GetExperimentsRequest, extraHeaders?: Record<string, string>): Promise<GetExperimentsResult>;
410
+ /**
411
+ * Gets the latest scorecard of the experiment for the title.
412
+ *
413
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getlatestscorecard Microsoft Documentation}
414
+ * @example
415
+ * await experimentationClient.GetLatestScorecard({
416
+ * "ExperimentId": "00000000-0000-0000-0000-000000000000"
417
+ * });
418
+ */
419
+ GetLatestScorecard(request: GetLatestScorecardRequest, extraHeaders?: Record<string, string>): Promise<GetLatestScorecardResult>;
420
+ /**
421
+ * Gets the treatment assignments for a player for every running experiment in the title.
422
+ *
423
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/gettreatmentassignment Microsoft Documentation}
424
+ * @example
425
+ * await experimentationClient.GetTreatmentAssignment({});
426
+ */
427
+ GetTreatmentAssignment(request: GetTreatmentAssignmentRequest, extraHeaders?: Record<string, string>): Promise<GetTreatmentAssignmentResult>;
428
+ /**
429
+ * Starts an existing experiment for a title.
430
+ *
431
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/startexperiment Microsoft Documentation}
432
+ * @example
433
+ * await experimentationClient.StartExperiment({
434
+ * "ExperimentId": "00000000-0000-0000-0000-000000000000"
435
+ * });
436
+ */
437
+ StartExperiment(request: StartExperimentRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
438
+ /**
439
+ * Stops an existing experiment for a title.
440
+ *
441
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/stopexperiment Microsoft Documentation}
442
+ * @example
443
+ * await experimentationClient.StopExperiment({
444
+ * "ExperimentId": "00000000-0000-0000-0000-000000000000"
445
+ * });
446
+ */
447
+ StopExperiment(request: StopExperimentRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
448
+ /**
449
+ * Updates an existing exclusion group for a title.
450
+ *
451
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/updateexclusiongroup Microsoft Documentation}
452
+ * @example
453
+ * await experimentationClient.UpdateExclusionGroup({
454
+ * "ExclusionGroupId": "00000000-0000-0000-0000-000000000000",
455
+ * "Name": "Commerce Exclusion Group",
456
+ * "Description": "Exclusion group for independent, commerce-related experiments"
457
+ * });
458
+ */
459
+ UpdateExclusionGroup(request: UpdateExclusionGroupRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
460
+ /**
461
+ * Updates an existing experiment for a title.
462
+ *
463
+ * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/updateexperiment Microsoft Documentation}
464
+ * @example
465
+ * await experimentationClient.UpdateExperiment({
466
+ * "Name": "BackgroundColor Experiment",
467
+ * "Id": "B9A90E90-A009-4254-80A4-46B5933E9D26",
468
+ * "Description": "Tests whether a green background color increases revenue",
469
+ * "StartDate": "2019-10-25T20:37:00Z",
470
+ * "EndDate": "2019-11-13T20:37:00Z",
471
+ * "SegmentId": "0",
472
+ * "Variants": [
473
+ * {
474
+ * "Name": "Control",
475
+ * "Description": "Control variant",
476
+ * "TrafficPercentage": 10,
477
+ * "Variables": [
478
+ * {
479
+ * "Name": "BackgroundColor",
480
+ * "Value": "White"
481
+ * }
482
+ * ],
483
+ * "IsControl": true
484
+ * },
485
+ * {
486
+ * "Name": "Treatment",
487
+ * "Description": "Treatment variant",
488
+ * "TrafficPercentage": 90,
489
+ * "Variables": [
490
+ * {
491
+ * "Name": "BackgroundColor",
492
+ * "Value": "Green"
493
+ * }
494
+ * ],
495
+ * "IsControl": false
496
+ * }
497
+ * ],
498
+ * "ExperimentType": "Active"
499
+ * });
500
+ */
501
+ UpdateExperiment(request: UpdateExperimentRequest, extraHeaders?: Record<string, string>): Promise<EmptyResponse>;
502
+ }
503
+
504
+ export { PlayFabExperimentationApi as default };
@@ -0,0 +1,8 @@
1
+ import {
2
+ PlayFabExperimentationApi
3
+ } from "./chunk-SF5NNTLE.js";
4
+ import "./chunk-6OZSERVG.js";
5
+ export {
6
+ PlayFabExperimentationApi as default
7
+ };
8
+ //# sourceMappingURL=Experimentation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}