@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.
- package/LICENSE +201 -0
- package/README.md +32 -0
- package/dist/Addon.d.ts +731 -0
- package/dist/Addon.js +8 -0
- package/dist/Addon.js.map +1 -0
- package/dist/Admin.d.ts +5675 -0
- package/dist/Admin.js +8 -0
- package/dist/Admin.js.map +1 -0
- package/dist/Authentication.d.ts +136 -0
- package/dist/Authentication.js +8 -0
- package/dist/Authentication.js.map +1 -0
- package/dist/Client.d.ts +6398 -0
- package/dist/Client.js +8 -0
- package/dist/Client.js.map +1 -0
- package/dist/CloudScript.d.ts +679 -0
- package/dist/CloudScript.js +8 -0
- package/dist/CloudScript.js.map +1 -0
- package/dist/Data.d.ts +347 -0
- package/dist/Data.js +8 -0
- package/dist/Data.js.map +1 -0
- package/dist/Economy.d.ts +2910 -0
- package/dist/Economy.js +8 -0
- package/dist/Economy.js.map +1 -0
- package/dist/Events.d.ts +494 -0
- package/dist/Events.js +8 -0
- package/dist/Events.js.map +1 -0
- package/dist/Experimentation.d.ts +504 -0
- package/dist/Experimentation.js +8 -0
- package/dist/Experimentation.js.map +1 -0
- package/dist/Groups.d.ts +785 -0
- package/dist/Groups.js +8 -0
- package/dist/Groups.js.map +1 -0
- package/dist/Insights.d.ts +167 -0
- package/dist/Insights.js +8 -0
- package/dist/Insights.js.map +1 -0
- package/dist/Localization.d.ts +23 -0
- package/dist/Localization.js +8 -0
- package/dist/Localization.js.map +1 -0
- package/dist/Matchmaker.d.ts +271 -0
- package/dist/Matchmaker.js +8 -0
- package/dist/Matchmaker.js.map +1 -0
- package/dist/Multiplayer.d.ts +5587 -0
- package/dist/Multiplayer.js +8 -0
- package/dist/Multiplayer.js.map +1 -0
- package/dist/PlayFabCommon-Dnp_xHg5.d.ts +68 -0
- package/dist/Profiles.d.ts +422 -0
- package/dist/Profiles.js +8 -0
- package/dist/Profiles.js.map +1 -0
- package/dist/Progression.d.ts +862 -0
- package/dist/Progression.js +8 -0
- package/dist/Progression.js.map +1 -0
- package/dist/Server.d.ts +5551 -0
- package/dist/Server.js +8 -0
- package/dist/Server.js.map +1 -0
- package/dist/chunk-3DU2LYBT.js +2673 -0
- package/dist/chunk-3DU2LYBT.js.map +1 -0
- package/dist/chunk-6OZSERVG.js +198 -0
- package/dist/chunk-6OZSERVG.js.map +1 -0
- package/dist/chunk-BD7SF6AA.js +357 -0
- package/dist/chunk-BD7SF6AA.js.map +1 -0
- package/dist/chunk-CPJ6FMQ3.js +421 -0
- package/dist/chunk-CPJ6FMQ3.js.map +1 -0
- package/dist/chunk-IFBBLD7Q.js +2477 -0
- package/dist/chunk-IFBBLD7Q.js.map +1 -0
- package/dist/chunk-J2KKGAWN.js +2387 -0
- package/dist/chunk-J2KKGAWN.js.map +1 -0
- package/dist/chunk-K2I6VCQK.js +270 -0
- package/dist/chunk-K2I6VCQK.js.map +1 -0
- package/dist/chunk-MHSKIHSG.js +22 -0
- package/dist/chunk-MHSKIHSG.js.map +1 -0
- package/dist/chunk-MQZCB76F.js +82 -0
- package/dist/chunk-MQZCB76F.js.map +1 -0
- package/dist/chunk-OZLGFCPU.js +421 -0
- package/dist/chunk-OZLGFCPU.js.map +1 -0
- package/dist/chunk-P4FCADAY.js +175 -0
- package/dist/chunk-P4FCADAY.js.map +1 -0
- package/dist/chunk-QHQBHTHP.js +76 -0
- package/dist/chunk-QHQBHTHP.js.map +1 -0
- package/dist/chunk-QJRCYM7I.js +82 -0
- package/dist/chunk-QJRCYM7I.js.map +1 -0
- package/dist/chunk-RVBFE5D5.js +237 -0
- package/dist/chunk-RVBFE5D5.js.map +1 -0
- package/dist/chunk-SF5NNTLE.js +225 -0
- package/dist/chunk-SF5NNTLE.js.map +1 -0
- package/dist/chunk-SZJQBNVS.js +197 -0
- package/dist/chunk-SZJQBNVS.js.map +1 -0
- package/dist/chunk-WBPWV6H3.js +2970 -0
- package/dist/chunk-WBPWV6H3.js.map +1 -0
- package/dist/chunk-YI4OQ74L.js +1048 -0
- package/dist/chunk-YI4OQ74L.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -0
- package/package.json +29 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PlayFabCommon
|
|
3
|
+
} from "./chunk-6OZSERVG.js";
|
|
4
|
+
|
|
5
|
+
// src/apis/PlayFabExperimentationApi.ts
|
|
6
|
+
var PlayFabExperimentationApi = class extends PlayFabCommon {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new experiment exclusion group for a title.
|
|
9
|
+
*
|
|
10
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/createexclusiongroup Microsoft Documentation}
|
|
11
|
+
* @example
|
|
12
|
+
* await experimentationClient.CreateExclusionGroup({
|
|
13
|
+
* "Name": "Commerce Exclusion Group",
|
|
14
|
+
* "Description": "Exclusion group for independent, commerce-related experiments"
|
|
15
|
+
* });
|
|
16
|
+
*/
|
|
17
|
+
CreateExclusionGroup(request, extraHeaders) {
|
|
18
|
+
return this.ExecuteRequestWrapper("/Experimentation/CreateExclusionGroup", request, "X-EntityToken", extraHeaders);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new experiment for a title.
|
|
22
|
+
*
|
|
23
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/createexperiment Microsoft Documentation}
|
|
24
|
+
* @example
|
|
25
|
+
* await experimentationClient.CreateExperiment({
|
|
26
|
+
* "Name": "BackgroundColor Experiment",
|
|
27
|
+
* "Description": "Tests whether a green background color increases revenue",
|
|
28
|
+
* "StartDate": "2019-10-25T20:37:00Z",
|
|
29
|
+
* "EndDate": "2019-11-13T20:37:00Z",
|
|
30
|
+
* "Variants": [
|
|
31
|
+
* {
|
|
32
|
+
* "Name": "Control",
|
|
33
|
+
* "Description": "Control variant",
|
|
34
|
+
* "TrafficPercentage": 10,
|
|
35
|
+
* "Variables": [
|
|
36
|
+
* {
|
|
37
|
+
* "Name": "BackgroundColor",
|
|
38
|
+
* "Value": "White"
|
|
39
|
+
* }
|
|
40
|
+
* ],
|
|
41
|
+
* "IsControl": true
|
|
42
|
+
* },
|
|
43
|
+
* {
|
|
44
|
+
* "Name": "Treatment",
|
|
45
|
+
* "Description": "Treatment variant",
|
|
46
|
+
* "TrafficPercentage": 90,
|
|
47
|
+
* "Variables": [
|
|
48
|
+
* {
|
|
49
|
+
* "Name": "BackgroundColor",
|
|
50
|
+
* "Value": "Green"
|
|
51
|
+
* }
|
|
52
|
+
* ],
|
|
53
|
+
* "IsControl": false
|
|
54
|
+
* }
|
|
55
|
+
* ],
|
|
56
|
+
* "ExperimentType": "Active"
|
|
57
|
+
* });
|
|
58
|
+
*/
|
|
59
|
+
CreateExperiment(request, extraHeaders) {
|
|
60
|
+
return this.ExecuteRequestWrapper("/Experimentation/CreateExperiment", request, "X-EntityToken", extraHeaders);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Deletes an existing exclusion group for a title.
|
|
64
|
+
*
|
|
65
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/deleteexclusiongroup Microsoft Documentation}
|
|
66
|
+
* @example
|
|
67
|
+
* await experimentationClient.DeleteExclusionGroup({
|
|
68
|
+
* "ExclusionGroupId": "00000000-0000-0000-0000-000000000000"
|
|
69
|
+
* });
|
|
70
|
+
*/
|
|
71
|
+
DeleteExclusionGroup(request, extraHeaders) {
|
|
72
|
+
return this.ExecuteRequestWrapper("/Experimentation/DeleteExclusionGroup", request, "X-EntityToken", extraHeaders);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Deletes an existing experiment for a title.
|
|
76
|
+
*
|
|
77
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/deleteexperiment Microsoft Documentation}
|
|
78
|
+
* @example
|
|
79
|
+
* await experimentationClient.DeleteExperiment({
|
|
80
|
+
* "ExperimentId": "00000000-0000-0000-0000-000000000000"
|
|
81
|
+
* });
|
|
82
|
+
*/
|
|
83
|
+
DeleteExperiment(request, extraHeaders) {
|
|
84
|
+
return this.ExecuteRequestWrapper("/Experimentation/DeleteExperiment", request, "X-EntityToken", extraHeaders);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Gets the details of all exclusion groups for a title.
|
|
88
|
+
*
|
|
89
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexclusiongroups Microsoft Documentation}
|
|
90
|
+
* @example
|
|
91
|
+
* await experimentationClient.GetExclusionGroups({});
|
|
92
|
+
*/
|
|
93
|
+
GetExclusionGroups(request, extraHeaders) {
|
|
94
|
+
return this.ExecuteRequestWrapper("/Experimentation/GetExclusionGroups", request, "X-EntityToken", extraHeaders);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Gets the details of all exclusion groups for a title.
|
|
98
|
+
*
|
|
99
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexclusiongrouptraffic Microsoft Documentation}
|
|
100
|
+
* @example
|
|
101
|
+
* await experimentationClient.GetExclusionGroupTraffic({});
|
|
102
|
+
*/
|
|
103
|
+
GetExclusionGroupTraffic(request, extraHeaders) {
|
|
104
|
+
return this.ExecuteRequestWrapper("/Experimentation/GetExclusionGroupTraffic", request, "X-EntityToken", extraHeaders);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Gets the details of all experiments for a title.
|
|
108
|
+
*
|
|
109
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexperiments Microsoft Documentation}
|
|
110
|
+
* @example
|
|
111
|
+
* await experimentationClient.GetExperiments({});
|
|
112
|
+
*/
|
|
113
|
+
GetExperiments(request, extraHeaders) {
|
|
114
|
+
return this.ExecuteRequestWrapper("/Experimentation/GetExperiments", request, "X-EntityToken", extraHeaders);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Gets the latest scorecard of the experiment for the title.
|
|
118
|
+
*
|
|
119
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getlatestscorecard Microsoft Documentation}
|
|
120
|
+
* @example
|
|
121
|
+
* await experimentationClient.GetLatestScorecard({
|
|
122
|
+
* "ExperimentId": "00000000-0000-0000-0000-000000000000"
|
|
123
|
+
* });
|
|
124
|
+
*/
|
|
125
|
+
GetLatestScorecard(request, extraHeaders) {
|
|
126
|
+
return this.ExecuteRequestWrapper("/Experimentation/GetLatestScorecard", request, "X-EntityToken", extraHeaders);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Gets the treatment assignments for a player for every running experiment in the title.
|
|
130
|
+
*
|
|
131
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/gettreatmentassignment Microsoft Documentation}
|
|
132
|
+
* @example
|
|
133
|
+
* await experimentationClient.GetTreatmentAssignment({});
|
|
134
|
+
*/
|
|
135
|
+
GetTreatmentAssignment(request, extraHeaders) {
|
|
136
|
+
return this.ExecuteRequestWrapper("/Experimentation/GetTreatmentAssignment", request, "X-EntityToken", extraHeaders);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Starts an existing experiment for a title.
|
|
140
|
+
*
|
|
141
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/startexperiment Microsoft Documentation}
|
|
142
|
+
* @example
|
|
143
|
+
* await experimentationClient.StartExperiment({
|
|
144
|
+
* "ExperimentId": "00000000-0000-0000-0000-000000000000"
|
|
145
|
+
* });
|
|
146
|
+
*/
|
|
147
|
+
StartExperiment(request, extraHeaders) {
|
|
148
|
+
return this.ExecuteRequestWrapper("/Experimentation/StartExperiment", request, "X-EntityToken", extraHeaders);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Stops an existing experiment for a title.
|
|
152
|
+
*
|
|
153
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/stopexperiment Microsoft Documentation}
|
|
154
|
+
* @example
|
|
155
|
+
* await experimentationClient.StopExperiment({
|
|
156
|
+
* "ExperimentId": "00000000-0000-0000-0000-000000000000"
|
|
157
|
+
* });
|
|
158
|
+
*/
|
|
159
|
+
StopExperiment(request, extraHeaders) {
|
|
160
|
+
return this.ExecuteRequestWrapper("/Experimentation/StopExperiment", request, "X-EntityToken", extraHeaders);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Updates an existing exclusion group for a title.
|
|
164
|
+
*
|
|
165
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/updateexclusiongroup Microsoft Documentation}
|
|
166
|
+
* @example
|
|
167
|
+
* await experimentationClient.UpdateExclusionGroup({
|
|
168
|
+
* "ExclusionGroupId": "00000000-0000-0000-0000-000000000000",
|
|
169
|
+
* "Name": "Commerce Exclusion Group",
|
|
170
|
+
* "Description": "Exclusion group for independent, commerce-related experiments"
|
|
171
|
+
* });
|
|
172
|
+
*/
|
|
173
|
+
UpdateExclusionGroup(request, extraHeaders) {
|
|
174
|
+
return this.ExecuteRequestWrapper("/Experimentation/UpdateExclusionGroup", request, "X-EntityToken", extraHeaders);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Updates an existing experiment for a title.
|
|
178
|
+
*
|
|
179
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/updateexperiment Microsoft Documentation}
|
|
180
|
+
* @example
|
|
181
|
+
* await experimentationClient.UpdateExperiment({
|
|
182
|
+
* "Name": "BackgroundColor Experiment",
|
|
183
|
+
* "Id": "B9A90E90-A009-4254-80A4-46B5933E9D26",
|
|
184
|
+
* "Description": "Tests whether a green background color increases revenue",
|
|
185
|
+
* "StartDate": "2019-10-25T20:37:00Z",
|
|
186
|
+
* "EndDate": "2019-11-13T20:37:00Z",
|
|
187
|
+
* "SegmentId": "0",
|
|
188
|
+
* "Variants": [
|
|
189
|
+
* {
|
|
190
|
+
* "Name": "Control",
|
|
191
|
+
* "Description": "Control variant",
|
|
192
|
+
* "TrafficPercentage": 10,
|
|
193
|
+
* "Variables": [
|
|
194
|
+
* {
|
|
195
|
+
* "Name": "BackgroundColor",
|
|
196
|
+
* "Value": "White"
|
|
197
|
+
* }
|
|
198
|
+
* ],
|
|
199
|
+
* "IsControl": true
|
|
200
|
+
* },
|
|
201
|
+
* {
|
|
202
|
+
* "Name": "Treatment",
|
|
203
|
+
* "Description": "Treatment variant",
|
|
204
|
+
* "TrafficPercentage": 90,
|
|
205
|
+
* "Variables": [
|
|
206
|
+
* {
|
|
207
|
+
* "Name": "BackgroundColor",
|
|
208
|
+
* "Value": "Green"
|
|
209
|
+
* }
|
|
210
|
+
* ],
|
|
211
|
+
* "IsControl": false
|
|
212
|
+
* }
|
|
213
|
+
* ],
|
|
214
|
+
* "ExperimentType": "Active"
|
|
215
|
+
* });
|
|
216
|
+
*/
|
|
217
|
+
UpdateExperiment(request, extraHeaders) {
|
|
218
|
+
return this.ExecuteRequestWrapper("/Experimentation/UpdateExperiment", request, "X-EntityToken", extraHeaders);
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
export {
|
|
223
|
+
PlayFabExperimentationApi
|
|
224
|
+
};
|
|
225
|
+
//# sourceMappingURL=chunk-SF5NNTLE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabExperimentationApi.ts"],"sourcesContent":["import type { EmptyResponse } from \"../types/PlayFab\";\nimport type {\n CreateExclusionGroupRequest,\n CreateExperimentRequest,\n DeleteExclusionGroupRequest,\n DeleteExperimentRequest,\n GetExclusionGroupsRequest,\n GetExclusionGroupTrafficRequest,\n GetExperimentsRequest,\n GetLatestScorecardRequest,\n GetTreatmentAssignmentRequest,\n StartExperimentRequest,\n StopExperimentRequest,\n UpdateExclusionGroupRequest,\n UpdateExperimentRequest,\n CreateExclusionGroupResult,\n CreateExperimentResult,\n GetExclusionGroupsResult,\n GetExclusionGroupTrafficResult,\n GetExperimentsResult,\n GetLatestScorecardResult,\n GetTreatmentAssignmentResult,\n} from \"../types/PlayFabExperimentationApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabExperimentationApi extends PlayFabCommon {\n\n /**\n * Creates a new experiment exclusion group for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/createexclusiongroup Microsoft Documentation}\n * @example\n * await experimentationClient.CreateExclusionGroup({\n * \"Name\": \"Commerce Exclusion Group\",\n * \"Description\": \"Exclusion group for independent, commerce-related experiments\"\n * });\n */\n CreateExclusionGroup (request: CreateExclusionGroupRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateExclusionGroupResult>(\"/Experimentation/CreateExclusionGroup\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates a new experiment for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/createexperiment Microsoft Documentation}\n * @example\n * await experimentationClient.CreateExperiment({\n * \"Name\": \"BackgroundColor Experiment\",\n * \"Description\": \"Tests whether a green background color increases revenue\",\n * \"StartDate\": \"2019-10-25T20:37:00Z\",\n * \"EndDate\": \"2019-11-13T20:37:00Z\",\n * \"Variants\": [\n * {\n * \"Name\": \"Control\",\n * \"Description\": \"Control variant\",\n * \"TrafficPercentage\": 10,\n * \"Variables\": [\n * {\n * \"Name\": \"BackgroundColor\",\n * \"Value\": \"White\"\n * }\n * ],\n * \"IsControl\": true\n * },\n * {\n * \"Name\": \"Treatment\",\n * \"Description\": \"Treatment variant\",\n * \"TrafficPercentage\": 90,\n * \"Variables\": [\n * {\n * \"Name\": \"BackgroundColor\",\n * \"Value\": \"Green\"\n * }\n * ],\n * \"IsControl\": false\n * }\n * ],\n * \"ExperimentType\": \"Active\"\n * });\n */\n CreateExperiment (request: CreateExperimentRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateExperimentResult>(\"/Experimentation/CreateExperiment\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes an existing exclusion group for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/deleteexclusiongroup Microsoft Documentation}\n * @example\n * await experimentationClient.DeleteExclusionGroup({\n * \"ExclusionGroupId\": \"00000000-0000-0000-0000-000000000000\"\n * });\n */\n DeleteExclusionGroup (request: DeleteExclusionGroupRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Experimentation/DeleteExclusionGroup\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes an existing experiment for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/deleteexperiment Microsoft Documentation}\n * @example\n * await experimentationClient.DeleteExperiment({\n * \"ExperimentId\": \"00000000-0000-0000-0000-000000000000\"\n * });\n */\n DeleteExperiment (request: DeleteExperimentRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Experimentation/DeleteExperiment\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the details of all exclusion groups for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexclusiongroups Microsoft Documentation}\n * @example\n * await experimentationClient.GetExclusionGroups({});\n */\n GetExclusionGroups (request: GetExclusionGroupsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetExclusionGroupsResult>(\"/Experimentation/GetExclusionGroups\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the details of all exclusion groups for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexclusiongrouptraffic Microsoft Documentation}\n * @example\n * await experimentationClient.GetExclusionGroupTraffic({});\n */\n GetExclusionGroupTraffic (request: GetExclusionGroupTrafficRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetExclusionGroupTrafficResult>(\"/Experimentation/GetExclusionGroupTraffic\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the details of all experiments for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getexperiments Microsoft Documentation}\n * @example\n * await experimentationClient.GetExperiments({});\n */\n GetExperiments (request: GetExperimentsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetExperimentsResult>(\"/Experimentation/GetExperiments\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the latest scorecard of the experiment for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/getlatestscorecard Microsoft Documentation}\n * @example\n * await experimentationClient.GetLatestScorecard({\n * \"ExperimentId\": \"00000000-0000-0000-0000-000000000000\"\n * });\n */\n GetLatestScorecard (request: GetLatestScorecardRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetLatestScorecardResult>(\"/Experimentation/GetLatestScorecard\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the treatment assignments for a player for every running experiment in the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/gettreatmentassignment Microsoft Documentation}\n * @example\n * await experimentationClient.GetTreatmentAssignment({});\n */\n GetTreatmentAssignment (request: GetTreatmentAssignmentRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTreatmentAssignmentResult>(\"/Experimentation/GetTreatmentAssignment\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Starts an existing experiment for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/startexperiment Microsoft Documentation}\n * @example\n * await experimentationClient.StartExperiment({\n * \"ExperimentId\": \"00000000-0000-0000-0000-000000000000\"\n * });\n */\n StartExperiment (request: StartExperimentRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Experimentation/StartExperiment\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Stops an existing experiment for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/stopexperiment Microsoft Documentation}\n * @example\n * await experimentationClient.StopExperiment({\n * \"ExperimentId\": \"00000000-0000-0000-0000-000000000000\"\n * });\n */\n StopExperiment (request: StopExperimentRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Experimentation/StopExperiment\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Updates an existing exclusion group for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/updateexclusiongroup Microsoft Documentation}\n * @example\n * await experimentationClient.UpdateExclusionGroup({\n * \"ExclusionGroupId\": \"00000000-0000-0000-0000-000000000000\",\n * \"Name\": \"Commerce Exclusion Group\",\n * \"Description\": \"Exclusion group for independent, commerce-related experiments\"\n * });\n */\n UpdateExclusionGroup (request: UpdateExclusionGroupRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Experimentation/UpdateExclusionGroup\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Updates an existing experiment for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/experimentation/experimentation/updateexperiment Microsoft Documentation}\n * @example\n * await experimentationClient.UpdateExperiment({\n * \"Name\": \"BackgroundColor Experiment\",\n * \"Id\": \"B9A90E90-A009-4254-80A4-46B5933E9D26\",\n * \"Description\": \"Tests whether a green background color increases revenue\",\n * \"StartDate\": \"2019-10-25T20:37:00Z\",\n * \"EndDate\": \"2019-11-13T20:37:00Z\",\n * \"SegmentId\": \"0\",\n * \"Variants\": [\n * {\n * \"Name\": \"Control\",\n * \"Description\": \"Control variant\",\n * \"TrafficPercentage\": 10,\n * \"Variables\": [\n * {\n * \"Name\": \"BackgroundColor\",\n * \"Value\": \"White\"\n * }\n * ],\n * \"IsControl\": true\n * },\n * {\n * \"Name\": \"Treatment\",\n * \"Description\": \"Treatment variant\",\n * \"TrafficPercentage\": 90,\n * \"Variables\": [\n * {\n * \"Name\": \"BackgroundColor\",\n * \"Value\": \"Green\"\n * }\n * ],\n * \"IsControl\": false\n * }\n * ],\n * \"ExperimentType\": \"Active\"\n * });\n */\n UpdateExperiment (request: UpdateExperimentRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Experimentation/UpdateExperiment\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PlayFabCommon
|
|
3
|
+
} from "./chunk-6OZSERVG.js";
|
|
4
|
+
|
|
5
|
+
// src/apis/PlayFabProfilesApi.ts
|
|
6
|
+
var PlayFabProfilesApi = class extends PlayFabCommon {
|
|
7
|
+
/**
|
|
8
|
+
* Gets the global title access policy
|
|
9
|
+
*
|
|
10
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getglobalpolicy Microsoft Documentation}
|
|
11
|
+
* @example
|
|
12
|
+
* await profileClient.GetGlobalPolicy({});
|
|
13
|
+
*/
|
|
14
|
+
GetGlobalPolicy(request, extraHeaders) {
|
|
15
|
+
return this.ExecuteRequestWrapper("/Profile/GetGlobalPolicy", request, "X-EntityToken", extraHeaders);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves the entity's profile.
|
|
19
|
+
*
|
|
20
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofile Microsoft Documentation}
|
|
21
|
+
* @example
|
|
22
|
+
* await profileClient.GetProfile({
|
|
23
|
+
* "Entity": {
|
|
24
|
+
* "Id": "1234567787392",
|
|
25
|
+
* "Type": "title_player_account",
|
|
26
|
+
* "TypeString": "title_player_account"
|
|
27
|
+
* }
|
|
28
|
+
* });
|
|
29
|
+
*/
|
|
30
|
+
GetProfile(request, extraHeaders) {
|
|
31
|
+
return this.ExecuteRequestWrapper("/Profile/GetProfile", request, "X-EntityToken", extraHeaders);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves the entity's profile.
|
|
35
|
+
*
|
|
36
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofiles Microsoft Documentation}
|
|
37
|
+
* @example
|
|
38
|
+
* await profileClient.GetProfiles({
|
|
39
|
+
* "Entities": [
|
|
40
|
+
* {
|
|
41
|
+
* "Id": "1234567787392",
|
|
42
|
+
* "Type": "title_player_account",
|
|
43
|
+
* "TypeString": "title_player_account"
|
|
44
|
+
* },
|
|
45
|
+
* {
|
|
46
|
+
* "Id": "42434567785265",
|
|
47
|
+
* "Type": "title_player_account",
|
|
48
|
+
* "TypeString": "title_player_account"
|
|
49
|
+
* }
|
|
50
|
+
* ]
|
|
51
|
+
* });
|
|
52
|
+
*/
|
|
53
|
+
GetProfiles(request, extraHeaders) {
|
|
54
|
+
return this.ExecuteRequestWrapper("/Profile/GetProfiles", request, "X-EntityToken", extraHeaders);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves the title player accounts associated with the given master player account.
|
|
58
|
+
*
|
|
59
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfrommasterplayeraccountids Microsoft Documentation}
|
|
60
|
+
* @example
|
|
61
|
+
* await profileClient.GetTitlePlayersFromMasterPlayerAccountIds({
|
|
62
|
+
* "MasterPlayerAccountIds": [
|
|
63
|
+
* "1233455677"
|
|
64
|
+
* ],
|
|
65
|
+
* "TitleId": "abc123"
|
|
66
|
+
* });
|
|
67
|
+
*/
|
|
68
|
+
GetTitlePlayersFromMasterPlayerAccountIds(request, extraHeaders) {
|
|
69
|
+
return this.ExecuteRequestWrapper("/Profile/GetTitlePlayersFromMasterPlayerAccountIds", request, "X-EntityToken", extraHeaders);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Retrieves the title player accounts associated with the given XUIDs.
|
|
73
|
+
*
|
|
74
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfromxboxliveids Microsoft Documentation}
|
|
75
|
+
* @example
|
|
76
|
+
* await profileClient.GetTitlePlayersFromXboxLiveIDs({
|
|
77
|
+
* "XboxLiveIds": [
|
|
78
|
+
* "1233455677"
|
|
79
|
+
* ],
|
|
80
|
+
* "Sandbox": "RETAIL"
|
|
81
|
+
* });
|
|
82
|
+
*/
|
|
83
|
+
GetTitlePlayersFromXboxLiveIDs(request, extraHeaders) {
|
|
84
|
+
return this.ExecuteRequestWrapper("/Profile/GetTitlePlayersFromXboxLiveIDs", request, "X-EntityToken", extraHeaders);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Update the avatar url of the entity
|
|
88
|
+
*
|
|
89
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setavatarurl Microsoft Documentation}
|
|
90
|
+
* @example
|
|
91
|
+
* await profileClient.SetAvatarUrl({
|
|
92
|
+
* "AvatarUrl": "https://test.com/image.png",
|
|
93
|
+
* "ProfileVersion": 123,
|
|
94
|
+
* "Entity": {
|
|
95
|
+
* "Id": "90901000",
|
|
96
|
+
* "Type": "title_player_account",
|
|
97
|
+
* "TypeString": "title_player_account"
|
|
98
|
+
* }
|
|
99
|
+
* });
|
|
100
|
+
*/
|
|
101
|
+
SetAvatarUrl(request, extraHeaders) {
|
|
102
|
+
return this.ExecuteRequestWrapper("/Profile/SetAvatarUrl", request, "X-EntityToken", extraHeaders);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Update the display name of the entity
|
|
106
|
+
*
|
|
107
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setdisplayname Microsoft Documentation}
|
|
108
|
+
* @example
|
|
109
|
+
* await profileClient.SetDisplayName({
|
|
110
|
+
* "DisplayName": "My new display name",
|
|
111
|
+
* "ExpectedVersion": 123,
|
|
112
|
+
* "Entity": {
|
|
113
|
+
* "Id": "90901000",
|
|
114
|
+
* "Type": "title_player_account",
|
|
115
|
+
* "TypeString": "title_player_account"
|
|
116
|
+
* }
|
|
117
|
+
* });
|
|
118
|
+
*/
|
|
119
|
+
SetDisplayName(request, extraHeaders) {
|
|
120
|
+
return this.ExecuteRequestWrapper("/Profile/SetDisplayName", request, "X-EntityToken", extraHeaders);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Sets the global title access policy
|
|
124
|
+
*
|
|
125
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setglobalpolicy Microsoft Documentation}
|
|
126
|
+
* @example
|
|
127
|
+
* await profileClient.SetGlobalPolicy({
|
|
128
|
+
* "Permissions": [
|
|
129
|
+
* {
|
|
130
|
+
* "Resource": "pfrn:data--title_player_account!90901000/Profile/SomethingCool",
|
|
131
|
+
* "Action": "*",
|
|
132
|
+
* "Effect": "Allow",
|
|
133
|
+
* "Principal": {
|
|
134
|
+
* "ChildOf": {
|
|
135
|
+
* "EntityType": "[SELF]"
|
|
136
|
+
* }
|
|
137
|
+
* },
|
|
138
|
+
* "Comment": "An example policy"
|
|
139
|
+
* }
|
|
140
|
+
* ]
|
|
141
|
+
* });
|
|
142
|
+
*/
|
|
143
|
+
SetGlobalPolicy(request, extraHeaders) {
|
|
144
|
+
return this.ExecuteRequestWrapper("/Profile/SetGlobalPolicy", request, "X-EntityToken", extraHeaders);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Updates the entity's language. The precedence hierarchy for communication to the player is Title Player Account
|
|
148
|
+
* language, Master Player Account language, and then title default language if the first two aren't set or supported.
|
|
149
|
+
*
|
|
150
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilelanguage Microsoft Documentation}
|
|
151
|
+
* @example
|
|
152
|
+
* await profileClient.SetProfileLanguage({
|
|
153
|
+
* "Language": "en",
|
|
154
|
+
* "ExpectedVersion": 123,
|
|
155
|
+
* "Entity": {
|
|
156
|
+
* "Id": "1234",
|
|
157
|
+
* "Type": "title_player_account",
|
|
158
|
+
* "TypeString": "title_player_account"
|
|
159
|
+
* }
|
|
160
|
+
* });
|
|
161
|
+
*/
|
|
162
|
+
SetProfileLanguage(request, extraHeaders) {
|
|
163
|
+
return this.ExecuteRequestWrapper("/Profile/SetProfileLanguage", request, "X-EntityToken", extraHeaders);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Sets the profiles access policy
|
|
167
|
+
*
|
|
168
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilepolicy Microsoft Documentation}
|
|
169
|
+
* @example
|
|
170
|
+
* await profileClient.SetProfilePolicy({
|
|
171
|
+
* "Statements": [
|
|
172
|
+
* {
|
|
173
|
+
* "Resource": "pfrn:data--*!*\/Profile/Files/avatar.png",
|
|
174
|
+
* "Action": "Read",
|
|
175
|
+
* "Effect": "Allow",
|
|
176
|
+
* "Principal": {
|
|
177
|
+
* "FriendOf": "true"
|
|
178
|
+
* },
|
|
179
|
+
* "Comment": "Allow my friends to read my avatar"
|
|
180
|
+
* }
|
|
181
|
+
* ],
|
|
182
|
+
* "Entity": {
|
|
183
|
+
* "Id": "90901000",
|
|
184
|
+
* "Type": "title_player_account",
|
|
185
|
+
* "TypeString": "title_player_account"
|
|
186
|
+
* }
|
|
187
|
+
* });
|
|
188
|
+
*/
|
|
189
|
+
SetProfilePolicy(request, extraHeaders) {
|
|
190
|
+
return this.ExecuteRequestWrapper("/Profile/SetProfilePolicy", request, "X-EntityToken", extraHeaders);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export {
|
|
195
|
+
PlayFabProfilesApi
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=chunk-SZJQBNVS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabProfilesApi.ts"],"sourcesContent":["import type {\n GetGlobalPolicyRequest,\n GetEntityProfileRequest,\n GetEntityProfilesRequest,\n GetTitlePlayersFromMasterPlayerAccountIdsRequest,\n GetTitlePlayersFromXboxLiveIDsRequest,\n SetAvatarUrlRequest,\n SetDisplayNameRequest,\n SetGlobalPolicyRequest,\n SetProfileLanguageRequest,\n SetEntityProfilePolicyRequest,\n GetGlobalPolicyResponse,\n GetEntityProfileResponse,\n GetEntityProfilesResponse,\n GetTitlePlayersFromMasterPlayerAccountIdsResponse,\n GetTitlePlayersFromProviderIDsResponse,\n SetAvatarUrlResponse,\n SetDisplayNameResponse,\n SetGlobalPolicyResponse,\n SetProfileLanguageResponse,\n SetEntityProfilePolicyResponse,\n} from \"../types/PlayFabProfilesApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabProfilesApi extends PlayFabCommon {\n\n /**\n * Gets the global title access policy\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getglobalpolicy Microsoft Documentation}\n * @example\n * await profileClient.GetGlobalPolicy({});\n */\n GetGlobalPolicy (request: GetGlobalPolicyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetGlobalPolicyResponse>(\"/Profile/GetGlobalPolicy\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofile Microsoft Documentation}\n * @example\n * await profileClient.GetProfile({\n * \"Entity\": {\n * \"Id\": \"1234567787392\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n GetProfile (request: GetEntityProfileRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityProfileResponse>(\"/Profile/GetProfile\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofiles Microsoft Documentation}\n * @example\n * await profileClient.GetProfiles({\n * \"Entities\": [\n * {\n * \"Id\": \"1234567787392\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * },\n * {\n * \"Id\": \"42434567785265\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * ]\n * });\n */\n GetProfiles (request: GetEntityProfilesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityProfilesResponse>(\"/Profile/GetProfiles\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the title player accounts associated with the given master player account.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfrommasterplayeraccountids Microsoft Documentation}\n * @example\n * await profileClient.GetTitlePlayersFromMasterPlayerAccountIds({\n * \"MasterPlayerAccountIds\": [\n * \"1233455677\"\n * ],\n * \"TitleId\": \"abc123\"\n * });\n */\n GetTitlePlayersFromMasterPlayerAccountIds (request: GetTitlePlayersFromMasterPlayerAccountIdsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTitlePlayersFromMasterPlayerAccountIdsResponse>(\"/Profile/GetTitlePlayersFromMasterPlayerAccountIds\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the title player accounts associated with the given XUIDs.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfromxboxliveids Microsoft Documentation}\n * @example\n * await profileClient.GetTitlePlayersFromXboxLiveIDs({\n * \"XboxLiveIds\": [\n * \"1233455677\"\n * ],\n * \"Sandbox\": \"RETAIL\"\n * });\n */\n GetTitlePlayersFromXboxLiveIDs (request: GetTitlePlayersFromXboxLiveIDsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTitlePlayersFromProviderIDsResponse>(\"/Profile/GetTitlePlayersFromXboxLiveIDs\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Update the avatar url of the entity\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setavatarurl Microsoft Documentation}\n * @example\n * await profileClient.SetAvatarUrl({\n * \"AvatarUrl\": \"https://test.com/image.png\",\n * \"ProfileVersion\": 123,\n * \"Entity\": {\n * \"Id\": \"90901000\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetAvatarUrl (request: SetAvatarUrlRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetAvatarUrlResponse>(\"/Profile/SetAvatarUrl\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Update the display name of the entity\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setdisplayname Microsoft Documentation}\n * @example\n * await profileClient.SetDisplayName({\n * \"DisplayName\": \"My new display name\",\n * \"ExpectedVersion\": 123,\n * \"Entity\": {\n * \"Id\": \"90901000\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetDisplayName (request: SetDisplayNameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetDisplayNameResponse>(\"/Profile/SetDisplayName\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the global title access policy\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setglobalpolicy Microsoft Documentation}\n * @example\n * await profileClient.SetGlobalPolicy({\n * \"Permissions\": [\n * {\n * \"Resource\": \"pfrn:data--title_player_account!90901000/Profile/SomethingCool\",\n * \"Action\": \"*\",\n * \"Effect\": \"Allow\",\n * \"Principal\": {\n * \"ChildOf\": {\n * \"EntityType\": \"[SELF]\"\n * }\n * },\n * \"Comment\": \"An example policy\"\n * }\n * ]\n * });\n */\n SetGlobalPolicy (request: SetGlobalPolicyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetGlobalPolicyResponse>(\"/Profile/SetGlobalPolicy\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Updates the entity's language. The precedence hierarchy for communication to the player is Title Player Account\n * language, Master Player Account language, and then title default language if the first two aren't set or supported.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilelanguage Microsoft Documentation}\n * @example\n * await profileClient.SetProfileLanguage({\n * \"Language\": \"en\",\n * \"ExpectedVersion\": 123,\n * \"Entity\": {\n * \"Id\": \"1234\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetProfileLanguage (request: SetProfileLanguageRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetProfileLanguageResponse>(\"/Profile/SetProfileLanguage\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the profiles access policy\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilepolicy Microsoft Documentation}\n * @example\n * await profileClient.SetProfilePolicy({\n * \"Statements\": [\n * {\n * \"Resource\": \"pfrn:data--*!*\\/Profile/Files/avatar.png\",\n * \"Action\": \"Read\",\n * \"Effect\": \"Allow\",\n * \"Principal\": {\n * \"FriendOf\": \"true\"\n * },\n * \"Comment\": \"Allow my friends to read my avatar\"\n * }\n * ],\n * \"Entity\": {\n * \"Id\": \"90901000\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetProfilePolicy (request: SetEntityProfilePolicyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetEntityProfilePolicyResponse>(\"/Profile/SetProfilePolicy\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAwBA,IAAqB,qBAArB,cAAgD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS5D,gBAAiB,SAAiC,cAAuC;AACvF,WAAO,KAAK,sBAA+C,4BAA4B,SAAS,iBAAiB,YAAY;AAAA,EAC/H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeA,WAAY,SAAkC,cAAuC;AACnF,WAAO,KAAK,sBAAgD,uBAAuB,SAAS,iBAAiB,YAAY;AAAA,EAC3H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBA,YAAa,SAAmC,cAAuC;AACrF,WAAO,KAAK,sBAAiD,wBAAwB,SAAS,iBAAiB,YAAY;AAAA,EAC7H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,0CAA2C,SAA2D,cAAuC;AAC3I,WAAO,KAAK,sBAAyE,sDAAsD,SAAS,iBAAiB,YAAY;AAAA,EACnL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,+BAAgC,SAAgD,cAAuC;AACrH,WAAO,KAAK,sBAA8D,2CAA2C,SAAS,iBAAiB,YAAY;AAAA,EAC7J;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBA,aAAc,SAA8B,cAAuC;AACjF,WAAO,KAAK,sBAA4C,yBAAyB,SAAS,iBAAiB,YAAY;AAAA,EACzH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBA,eAAgB,SAAgC,cAAuC;AACrF,WAAO,KAAK,sBAA8C,2BAA2B,SAAS,iBAAiB,YAAY;AAAA,EAC7H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuBA,gBAAiB,SAAiC,cAAuC;AACvF,WAAO,KAAK,sBAA+C,4BAA4B,SAAS,iBAAiB,YAAY;AAAA,EAC/H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,mBAAoB,SAAoC,cAAuC;AAC7F,WAAO,KAAK,sBAAkD,+BAA+B,SAAS,iBAAiB,YAAY;AAAA,EACrI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA0BA,iBAAkB,SAAwC,cAAuC;AAC/F,WAAO,KAAK,sBAAsD,6BAA6B,SAAS,iBAAiB,YAAY;AAAA,EACvI;AAEF;","names":[]}
|