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.
- package/dist/{Addon.d.mts → Addon.d.ts} +213 -73
- package/dist/Addon.js +8 -0
- package/dist/Addon.js.map +1 -1
- package/dist/{Admin.d.mts → Admin.d.ts} +2547 -356
- package/dist/Admin.js +8 -0
- package/dist/Admin.js.map +1 -1
- package/dist/{Authentication.d.mts → Authentication.d.ts} +36 -9
- package/dist/Authentication.js +8 -0
- package/dist/Authentication.js.map +1 -1
- package/dist/{Client.d.mts → Client.d.ts} +2473 -557
- package/dist/Client.js +8 -0
- package/dist/Client.js.map +1 -1
- package/dist/{CloudScript.d.mts → CloudScript.d.ts} +214 -46
- package/dist/CloudScript.js +8 -0
- package/dist/CloudScript.js.map +1 -1
- package/dist/{Data.d.mts → Data.d.ts} +144 -25
- package/dist/Data.js +8 -0
- package/dist/Data.js.map +1 -1
- package/dist/{Economy.d.mts → Economy.d.ts} +1218 -173
- package/dist/Economy.js +8 -0
- package/dist/Economy.js.map +1 -1
- package/dist/{Events.d.mts → Events.d.ts} +212 -25
- package/dist/Events.js +8 -0
- package/dist/Events.js.map +1 -1
- package/dist/{Experimentation.d.mts → Experimentation.d.ts} +177 -30
- package/dist/Experimentation.js +8 -0
- package/dist/Experimentation.js.map +1 -1
- package/dist/{Groups.d.mts → Groups.d.ts} +306 -67
- package/dist/Groups.js +8 -0
- package/dist/Groups.js.map +1 -1
- package/dist/{Insights.d.mts → Insights.d.ts} +39 -13
- package/dist/Insights.js +8 -0
- package/dist/Insights.js.map +1 -1
- package/dist/{Localization.d.mts → Localization.d.ts} +6 -3
- package/dist/Localization.js +8 -0
- package/dist/Localization.js.map +1 -1
- package/dist/Matchmaker.d.ts +271 -0
- package/dist/Matchmaker.js +8 -0
- package/dist/Matchmaker.js.map +1 -0
- package/dist/{Multiplayer.d.mts → Multiplayer.d.ts} +2829 -301
- package/dist/Multiplayer.js +8 -0
- package/dist/Multiplayer.js.map +1 -1
- package/dist/{PlayFabCommon-BUv4zqXf.d.mts → PlayFabCommon-Dnp_xHg5.d.ts} +6 -10
- package/dist/{Profiles.d.mts → Profiles.d.ts} +172 -28
- package/dist/Profiles.js +8 -0
- package/dist/Profiles.js.map +1 -1
- package/dist/{Progression.d.mts → Progression.d.ts} +337 -73
- package/dist/Progression.js +8 -0
- package/dist/Progression.js.map +1 -1
- package/dist/{Server.d.mts → Server.d.ts} +2120 -458
- package/dist/Server.js +8 -0
- package/dist/Server.js.map +1 -1
- package/dist/chunk-5LPKBU65.js +2970 -0
- package/dist/chunk-5LPKBU65.js.map +1 -0
- package/dist/chunk-ABEEDFKP.js +175 -0
- package/dist/chunk-ABEEDFKP.js.map +1 -0
- package/dist/chunk-AGNOI6QW.js +2477 -0
- package/dist/chunk-AGNOI6QW.js.map +1 -0
- package/dist/chunk-B4NQUOWG.js +1048 -0
- package/dist/chunk-B4NQUOWG.js.map +1 -0
- package/dist/chunk-GERGPHQM.js +76 -0
- package/dist/chunk-GERGPHQM.js.map +1 -0
- package/dist/chunk-GOZV2MOC.js +2673 -0
- package/dist/chunk-GOZV2MOC.js.map +1 -0
- package/dist/chunk-GXP64DCJ.js +82 -0
- package/dist/chunk-GXP64DCJ.js.map +1 -0
- package/dist/chunk-HUS6GF7X.js +270 -0
- package/dist/chunk-HUS6GF7X.js.map +1 -0
- package/dist/chunk-JIEFHAFU.js +197 -0
- package/dist/chunk-JIEFHAFU.js.map +1 -0
- package/dist/chunk-LCCANUCE.js +2387 -0
- package/dist/chunk-LCCANUCE.js.map +1 -0
- package/dist/chunk-MNQCGRC6.js +357 -0
- package/dist/chunk-MNQCGRC6.js.map +1 -0
- package/dist/chunk-N4R6Y2MM.js +225 -0
- package/dist/chunk-N4R6Y2MM.js.map +1 -0
- package/dist/{Localization.mjs → chunk-N7LC7KNB.js} +43 -94
- package/dist/chunk-N7LC7KNB.js.map +1 -0
- package/dist/chunk-NPTN4F4Z.js +22 -0
- package/dist/chunk-NPTN4F4Z.js.map +1 -0
- package/dist/chunk-QHGWL3NW.js +237 -0
- package/dist/chunk-QHGWL3NW.js.map +1 -0
- package/dist/chunk-RKXM4KV5.js +421 -0
- package/dist/chunk-RKXM4KV5.js.map +1 -0
- package/dist/chunk-UDM2ZVXN.js +421 -0
- package/dist/chunk-UDM2ZVXN.js.map +1 -0
- package/dist/chunk-ZEBSOOZG.js +82 -0
- package/dist/chunk-ZEBSOOZG.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/Addon.mjs +0 -452
- package/dist/Addon.mjs.map +0 -1
- package/dist/Admin.mjs +0 -1112
- package/dist/Admin.mjs.map +0 -1
- package/dist/Authentication.mjs +0 -290
- package/dist/Authentication.mjs.map +0 -1
- package/dist/Client.mjs +0 -1893
- package/dist/Client.mjs.map +0 -1
- package/dist/CloudScript.mjs +0 -349
- package/dist/CloudScript.mjs.map +0 -1
- package/dist/Data.mjs +0 -291
- package/dist/Data.mjs.map +0 -1
- package/dist/Economy.mjs +0 -614
- package/dist/Economy.mjs.map +0 -1
- package/dist/Events.mjs +0 -327
- package/dist/Events.mjs.map +0 -1
- package/dist/Experimentation.mjs +0 -333
- package/dist/Experimentation.mjs.map +0 -1
- package/dist/Groups.mjs +0 -417
- package/dist/Groups.mjs.map +0 -1
- package/dist/Insights.mjs +0 -286
- package/dist/Insights.mjs.map +0 -1
- package/dist/Localization.mjs.map +0 -1
- package/dist/Multiplayer.mjs +0 -862
- package/dist/Multiplayer.mjs.map +0 -1
- package/dist/Profiles.mjs +0 -306
- package/dist/Profiles.mjs.map +0 -1
- package/dist/Progression.mjs +0 -404
- package/dist/Progression.mjs.map +0 -1
- package/dist/Server.mjs +0 -1377
- package/dist/Server.mjs.map +0 -1
- package/dist/index.d.mts +0 -17
- package/dist/index.mjs +0 -6007
- package/dist/index.mjs.map +0 -1
@@ -0,0 +1,357 @@
|
|
1
|
+
import {
|
2
|
+
PlayFabCommon
|
3
|
+
} from "./chunk-N7LC7KNB.js";
|
4
|
+
|
5
|
+
// src/apis/PlayFabAddonApi.ts
|
6
|
+
var PlayFabAddonApi = class extends PlayFabCommon {
|
7
|
+
/**
|
8
|
+
* Creates the Apple addon on a title, or updates it if it already exists.
|
9
|
+
*
|
10
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdateapple Microsoft Documentation}
|
11
|
+
* @example
|
12
|
+
* await addonClient.CreateOrUpdateApple({
|
13
|
+
* "AppBundleId": "123456",
|
14
|
+
* "AppSharedSecret": "654321",
|
15
|
+
* "RequireSecureAuthentication": true
|
16
|
+
* });
|
17
|
+
*/
|
18
|
+
CreateOrUpdateApple(request, extraHeaders) {
|
19
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateApple", request, "X-EntityToken", extraHeaders);
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Creates the Facebook addon on a title, or updates it if it already exists.
|
23
|
+
*
|
24
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebook Microsoft Documentation}
|
25
|
+
* @example
|
26
|
+
* await addonClient.CreateOrUpdateFacebook({
|
27
|
+
* "AppID": "123456",
|
28
|
+
* "AppSecret": "654321",
|
29
|
+
* "NotificationEmail": "user@example.com"
|
30
|
+
* });
|
31
|
+
*/
|
32
|
+
CreateOrUpdateFacebook(request, extraHeaders) {
|
33
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateFacebook", request, "X-EntityToken", extraHeaders);
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Creates the Facebook Instant Games addon on a title, or updates it if it already exists.
|
37
|
+
*
|
38
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebookinstantgames Microsoft Documentation}
|
39
|
+
* @example
|
40
|
+
* await addonClient.CreateOrUpdateFacebookInstantGames({
|
41
|
+
* "AppID": "123456",
|
42
|
+
* "AppSecret": "654321"
|
43
|
+
* });
|
44
|
+
*/
|
45
|
+
CreateOrUpdateFacebookInstantGames(request, extraHeaders) {
|
46
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateFacebookInstantGames", request, "X-EntityToken", extraHeaders);
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Creates the Google addon on a title, or updates it if it already exists.
|
50
|
+
*
|
51
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdategoogle Microsoft Documentation}
|
52
|
+
* @example
|
53
|
+
* await addonClient.CreateOrUpdateGoogle({
|
54
|
+
* "AppPackageID": "abcdef",
|
55
|
+
* "AppLicenseKey": "fedcba",
|
56
|
+
* "OAuthClientID": "123456",
|
57
|
+
* "OAuthClientSecret": "654321",
|
58
|
+
* "OAuthCustomRedirectUri": "https://yourdomaingoeshere.com"
|
59
|
+
* });
|
60
|
+
*/
|
61
|
+
CreateOrUpdateGoogle(request, extraHeaders) {
|
62
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateGoogle", request, "X-EntityToken", extraHeaders);
|
63
|
+
}
|
64
|
+
/**
|
65
|
+
* Creates the Kongregate addon on a title, or updates it if it already exists.
|
66
|
+
*
|
67
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatekongregate Microsoft Documentation}
|
68
|
+
* @example
|
69
|
+
* await addonClient.CreateOrUpdateKongregate({
|
70
|
+
* "SecretAPIKey": "123456"
|
71
|
+
* });
|
72
|
+
*/
|
73
|
+
CreateOrUpdateKongregate(request, extraHeaders) {
|
74
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateKongregate", request, "X-EntityToken", extraHeaders);
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* Creates the Nintendo addon on a title, or updates it if it already exists.
|
78
|
+
*
|
79
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatenintendo Microsoft Documentation}
|
80
|
+
* @example
|
81
|
+
* await addonClient.CreateOrUpdateNintendo({
|
82
|
+
* "ApplicationID": "123456",
|
83
|
+
* "Environments": [
|
84
|
+
* {
|
85
|
+
* "ID": "1",
|
86
|
+
* "ClientID": "123456",
|
87
|
+
* "ClientSecret": "654321"
|
88
|
+
* }
|
89
|
+
* ]
|
90
|
+
* });
|
91
|
+
*/
|
92
|
+
CreateOrUpdateNintendo(request, extraHeaders) {
|
93
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateNintendo", request, "X-EntityToken", extraHeaders);
|
94
|
+
}
|
95
|
+
/**
|
96
|
+
* Creates the PSN addon on a title, or updates it if it already exists.
|
97
|
+
*
|
98
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatepsn Microsoft Documentation}
|
99
|
+
* @example
|
100
|
+
* await addonClient.CreateOrUpdatePSN({
|
101
|
+
* "ClientID": "123456",
|
102
|
+
* "ClientSecret": "abcdef",
|
103
|
+
* "NextGenClientID": "654321",
|
104
|
+
* "NextGenClientSecret": "fedcba"
|
105
|
+
* });
|
106
|
+
*/
|
107
|
+
CreateOrUpdatePSN(request, extraHeaders) {
|
108
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdatePSN", request, "X-EntityToken", extraHeaders);
|
109
|
+
}
|
110
|
+
/**
|
111
|
+
* Creates the Steam addon on a title, or updates it if it already exists.
|
112
|
+
*
|
113
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatesteam Microsoft Documentation}
|
114
|
+
* @example
|
115
|
+
* await addonClient.CreateOrUpdateSteam({
|
116
|
+
* "ApplicationId": "123456",
|
117
|
+
* "SecretKey": "654321",
|
118
|
+
* "UseSandbox": true,
|
119
|
+
* "EnforceServiceSpecificTickets": true
|
120
|
+
* });
|
121
|
+
*/
|
122
|
+
CreateOrUpdateSteam(request, extraHeaders) {
|
123
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateSteam", request, "X-EntityToken", extraHeaders);
|
124
|
+
}
|
125
|
+
/**
|
126
|
+
* Creates the ToxMod addon on a title, or updates it if it already exists.
|
127
|
+
*
|
128
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetoxmod Microsoft Documentation}
|
129
|
+
* @example
|
130
|
+
* await addonClient.CreateOrUpdateToxMod({
|
131
|
+
* "Enabled": false,
|
132
|
+
* "AccountId": "123456",
|
133
|
+
* "AccountKey": "654321"
|
134
|
+
* });
|
135
|
+
*/
|
136
|
+
CreateOrUpdateToxMod(request, extraHeaders) {
|
137
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateToxMod", request, "X-EntityToken", extraHeaders);
|
138
|
+
}
|
139
|
+
/**
|
140
|
+
* Creates the Twitch addon on a title, or updates it if it already exists.
|
141
|
+
*
|
142
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetwitch Microsoft Documentation}
|
143
|
+
* @example
|
144
|
+
* await addonClient.CreateOrUpdateTwitch({
|
145
|
+
* "ClientID": "123456",
|
146
|
+
* "ClientSecret": "654321"
|
147
|
+
* });
|
148
|
+
*/
|
149
|
+
CreateOrUpdateTwitch(request, extraHeaders) {
|
150
|
+
return this.ExecuteRequestWrapper("/Addon/CreateOrUpdateTwitch", request, "X-EntityToken", extraHeaders);
|
151
|
+
}
|
152
|
+
/**
|
153
|
+
* Deletes the Apple addon on a title.
|
154
|
+
*
|
155
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deleteapple Microsoft Documentation}
|
156
|
+
* @example
|
157
|
+
* await addonClient.DeleteApple({});
|
158
|
+
*/
|
159
|
+
DeleteApple(request, extraHeaders) {
|
160
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteApple", request, "X-EntityToken", extraHeaders);
|
161
|
+
}
|
162
|
+
/**
|
163
|
+
* Deletes the Facebook addon on a title.
|
164
|
+
*
|
165
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebook Microsoft Documentation}
|
166
|
+
* @example
|
167
|
+
* await addonClient.DeleteFacebook({});
|
168
|
+
*/
|
169
|
+
DeleteFacebook(request, extraHeaders) {
|
170
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteFacebook", request, "X-EntityToken", extraHeaders);
|
171
|
+
}
|
172
|
+
/**
|
173
|
+
* Deletes the Facebook addon on a title.
|
174
|
+
*
|
175
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebookinstantgames Microsoft Documentation}
|
176
|
+
* @example
|
177
|
+
* await addonClient.DeleteFacebookInstantGames({});
|
178
|
+
*/
|
179
|
+
DeleteFacebookInstantGames(request, extraHeaders) {
|
180
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteFacebookInstantGames", request, "X-EntityToken", extraHeaders);
|
181
|
+
}
|
182
|
+
/**
|
183
|
+
* Deletes the Google addon on a title.
|
184
|
+
*
|
185
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletegoogle Microsoft Documentation}
|
186
|
+
* @example
|
187
|
+
* await addonClient.DeleteGoogle({});
|
188
|
+
*/
|
189
|
+
DeleteGoogle(request, extraHeaders) {
|
190
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteGoogle", request, "X-EntityToken", extraHeaders);
|
191
|
+
}
|
192
|
+
/**
|
193
|
+
* Deletes the Kongregate addon on a title.
|
194
|
+
*
|
195
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletekongregate Microsoft Documentation}
|
196
|
+
* @example
|
197
|
+
* await addonClient.DeleteKongregate({});
|
198
|
+
*/
|
199
|
+
DeleteKongregate(request, extraHeaders) {
|
200
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteKongregate", request, "X-EntityToken", extraHeaders);
|
201
|
+
}
|
202
|
+
/**
|
203
|
+
* Deletes the Nintendo addon on a title.
|
204
|
+
*
|
205
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletenintendo Microsoft Documentation}
|
206
|
+
* @example
|
207
|
+
* await addonClient.DeleteNintendo({});
|
208
|
+
*/
|
209
|
+
DeleteNintendo(request, extraHeaders) {
|
210
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteNintendo", request, "X-EntityToken", extraHeaders);
|
211
|
+
}
|
212
|
+
/**
|
213
|
+
* Deletes the PSN addon on a title.
|
214
|
+
*
|
215
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletepsn Microsoft Documentation}
|
216
|
+
* @example
|
217
|
+
* await addonClient.DeletePSN({});
|
218
|
+
*/
|
219
|
+
DeletePSN(request, extraHeaders) {
|
220
|
+
return this.ExecuteRequestWrapper("/Addon/DeletePSN", request, "X-EntityToken", extraHeaders);
|
221
|
+
}
|
222
|
+
/**
|
223
|
+
* Deletes the Steam addon on a title.
|
224
|
+
*
|
225
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletesteam Microsoft Documentation}
|
226
|
+
* @example
|
227
|
+
* await addonClient.DeleteSteam({});
|
228
|
+
*/
|
229
|
+
DeleteSteam(request, extraHeaders) {
|
230
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteSteam", request, "X-EntityToken", extraHeaders);
|
231
|
+
}
|
232
|
+
/**
|
233
|
+
* Deletes the ToxMod addon on a title.
|
234
|
+
*
|
235
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetoxmod Microsoft Documentation}
|
236
|
+
* @example
|
237
|
+
* await addonClient.DeleteToxMod({});
|
238
|
+
*/
|
239
|
+
DeleteToxMod(request, extraHeaders) {
|
240
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteToxMod", request, "X-EntityToken", extraHeaders);
|
241
|
+
}
|
242
|
+
/**
|
243
|
+
* Deletes the Twitch addon on a title.
|
244
|
+
*
|
245
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetwitch Microsoft Documentation}
|
246
|
+
* @example
|
247
|
+
* await addonClient.DeleteTwitch({});
|
248
|
+
*/
|
249
|
+
DeleteTwitch(request, extraHeaders) {
|
250
|
+
return this.ExecuteRequestWrapper("/Addon/DeleteTwitch", request, "X-EntityToken", extraHeaders);
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* Gets information of the Apple addon on a title, omits secrets.
|
254
|
+
*
|
255
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getapple Microsoft Documentation}
|
256
|
+
* @example
|
257
|
+
* await addonClient.GetApple({});
|
258
|
+
*/
|
259
|
+
GetApple(request, extraHeaders) {
|
260
|
+
return this.ExecuteRequestWrapper("/Addon/GetApple", request, "X-EntityToken", extraHeaders);
|
261
|
+
}
|
262
|
+
/**
|
263
|
+
* Gets information of the Facebook addon on a title, omits secrets.
|
264
|
+
*
|
265
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebook Microsoft Documentation}
|
266
|
+
* @example
|
267
|
+
* await addonClient.GetFacebook({});
|
268
|
+
*/
|
269
|
+
GetFacebook(request, extraHeaders) {
|
270
|
+
return this.ExecuteRequestWrapper("/Addon/GetFacebook", request, "X-EntityToken", extraHeaders);
|
271
|
+
}
|
272
|
+
/**
|
273
|
+
* Gets information of the Facebook Instant Games addon on a title, omits secrets.
|
274
|
+
*
|
275
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebookinstantgames Microsoft Documentation}
|
276
|
+
* @example
|
277
|
+
* await addonClient.GetFacebookInstantGames({});
|
278
|
+
*/
|
279
|
+
GetFacebookInstantGames(request, extraHeaders) {
|
280
|
+
return this.ExecuteRequestWrapper("/Addon/GetFacebookInstantGames", request, "X-EntityToken", extraHeaders);
|
281
|
+
}
|
282
|
+
/**
|
283
|
+
* Gets information of the Google addon on a title, omits secrets.
|
284
|
+
*
|
285
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getgoogle Microsoft Documentation}
|
286
|
+
* @example
|
287
|
+
* await addonClient.GetGoogle({});
|
288
|
+
*/
|
289
|
+
GetGoogle(request, extraHeaders) {
|
290
|
+
return this.ExecuteRequestWrapper("/Addon/GetGoogle", request, "X-EntityToken", extraHeaders);
|
291
|
+
}
|
292
|
+
/**
|
293
|
+
* Gets information of the Kongregate addon on a title, omits secrets.
|
294
|
+
*
|
295
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getkongregate Microsoft Documentation}
|
296
|
+
* @example
|
297
|
+
* await addonClient.GetKongregate({});
|
298
|
+
*/
|
299
|
+
GetKongregate(request, extraHeaders) {
|
300
|
+
return this.ExecuteRequestWrapper("/Addon/GetKongregate", request, "X-EntityToken", extraHeaders);
|
301
|
+
}
|
302
|
+
/**
|
303
|
+
* Gets information of the Nintendo addon on a title, omits secrets.
|
304
|
+
*
|
305
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getnintendo Microsoft Documentation}
|
306
|
+
* @example
|
307
|
+
* await addonClient.GetNintendo({});
|
308
|
+
*/
|
309
|
+
GetNintendo(request, extraHeaders) {
|
310
|
+
return this.ExecuteRequestWrapper("/Addon/GetNintendo", request, "X-EntityToken", extraHeaders);
|
311
|
+
}
|
312
|
+
/**
|
313
|
+
* Gets information of the PSN addon on a title, omits secrets.
|
314
|
+
*
|
315
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getpsn Microsoft Documentation}
|
316
|
+
* @example
|
317
|
+
* await addonClient.GetPSN({});
|
318
|
+
*/
|
319
|
+
GetPSN(request, extraHeaders) {
|
320
|
+
return this.ExecuteRequestWrapper("/Addon/GetPSN", request, "X-EntityToken", extraHeaders);
|
321
|
+
}
|
322
|
+
/**
|
323
|
+
* Gets information of the Steam addon on a title, omits secrets.
|
324
|
+
*
|
325
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getsteam Microsoft Documentation}
|
326
|
+
* @example
|
327
|
+
* await addonClient.GetSteam({});
|
328
|
+
*/
|
329
|
+
GetSteam(request, extraHeaders) {
|
330
|
+
return this.ExecuteRequestWrapper("/Addon/GetSteam", request, "X-EntityToken", extraHeaders);
|
331
|
+
}
|
332
|
+
/**
|
333
|
+
* Gets information of the ToxMod addon on a title, omits secrets.
|
334
|
+
*
|
335
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettoxmod Microsoft Documentation}
|
336
|
+
* @example
|
337
|
+
* await addonClient.GetToxMod({});
|
338
|
+
*/
|
339
|
+
GetToxMod(request, extraHeaders) {
|
340
|
+
return this.ExecuteRequestWrapper("/Addon/GetToxMod", request, "X-EntityToken", extraHeaders);
|
341
|
+
}
|
342
|
+
/**
|
343
|
+
* Gets information of the Twitch addon on a title, omits secrets.
|
344
|
+
*
|
345
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettwitch Microsoft Documentation}
|
346
|
+
* @example
|
347
|
+
* await addonClient.GetTwitch({});
|
348
|
+
*/
|
349
|
+
GetTwitch(request, extraHeaders) {
|
350
|
+
return this.ExecuteRequestWrapper("/Addon/GetTwitch", request, "X-EntityToken", extraHeaders);
|
351
|
+
}
|
352
|
+
};
|
353
|
+
|
354
|
+
export {
|
355
|
+
PlayFabAddonApi
|
356
|
+
};
|
357
|
+
//# sourceMappingURL=chunk-MNQCGRC6.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabAddonApi.ts"],"sourcesContent":["import type {\n CreateOrUpdateAppleRequest,\n CreateOrUpdateFacebookRequest,\n CreateOrUpdateFacebookInstantGamesRequest,\n CreateOrUpdateGoogleRequest,\n CreateOrUpdateKongregateRequest,\n CreateOrUpdateNintendoRequest,\n CreateOrUpdatePSNRequest,\n CreateOrUpdateSteamRequest,\n CreateOrUpdateToxModRequest,\n CreateOrUpdateTwitchRequest,\n DeleteAppleRequest,\n DeleteFacebookRequest,\n DeleteFacebookInstantGamesRequest,\n DeleteGoogleRequest,\n DeleteKongregateRequest,\n DeleteNintendoRequest,\n DeletePSNRequest,\n DeleteSteamRequest,\n DeleteToxModRequest,\n DeleteTwitchRequest,\n GetAppleRequest,\n GetFacebookRequest,\n GetFacebookInstantGamesRequest,\n GetGoogleRequest,\n GetKongregateRequest,\n GetNintendoRequest,\n GetPSNRequest,\n GetSteamRequest,\n GetToxModRequest,\n GetTwitchRequest,\n CreateOrUpdateAppleResponse,\n CreateOrUpdateFacebookResponse,\n CreateOrUpdateFacebookInstantGamesResponse,\n CreateOrUpdateGoogleResponse,\n CreateOrUpdateKongregateResponse,\n CreateOrUpdateNintendoResponse,\n CreateOrUpdatePSNResponse,\n CreateOrUpdateSteamResponse,\n CreateOrUpdateToxModResponse,\n CreateOrUpdateTwitchResponse,\n DeleteAppleResponse,\n DeleteFacebookResponse,\n DeleteFacebookInstantGamesResponse,\n DeleteGoogleResponse,\n DeleteKongregateResponse,\n DeleteNintendoResponse,\n DeletePSNResponse,\n DeleteSteamResponse,\n DeleteToxModResponse,\n DeleteTwitchResponse,\n GetAppleResponse,\n GetFacebookResponse,\n GetFacebookInstantGamesResponse,\n GetGoogleResponse,\n GetKongregateResponse,\n GetNintendoResponse,\n GetPSNResponse,\n GetSteamResponse,\n GetToxModResponse,\n GetTwitchResponse,\n} from \"../types/PlayFabAddonApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabAddonApi extends PlayFabCommon {\n\n /**\n * Creates the Apple addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdateapple Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateApple({\n * \"AppBundleId\": \"123456\",\n * \"AppSharedSecret\": \"654321\",\n * \"RequireSecureAuthentication\": true\n * });\n */\n CreateOrUpdateApple (request: CreateOrUpdateAppleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateAppleResponse>(\"/Addon/CreateOrUpdateApple\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Facebook addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebook Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateFacebook({\n * \"AppID\": \"123456\",\n * \"AppSecret\": \"654321\",\n * \"NotificationEmail\": \"user@example.com\"\n * });\n */\n CreateOrUpdateFacebook (request: CreateOrUpdateFacebookRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateFacebookResponse>(\"/Addon/CreateOrUpdateFacebook\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Facebook Instant Games addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatefacebookinstantgames Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateFacebookInstantGames({\n * \"AppID\": \"123456\",\n * \"AppSecret\": \"654321\"\n * });\n */\n CreateOrUpdateFacebookInstantGames (request: CreateOrUpdateFacebookInstantGamesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateFacebookInstantGamesResponse>(\"/Addon/CreateOrUpdateFacebookInstantGames\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Google addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdategoogle Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateGoogle({\n * \"AppPackageID\": \"abcdef\",\n * \"AppLicenseKey\": \"fedcba\",\n * \"OAuthClientID\": \"123456\",\n * \"OAuthClientSecret\": \"654321\",\n * \"OAuthCustomRedirectUri\": \"https://yourdomaingoeshere.com\"\n * });\n */\n CreateOrUpdateGoogle (request: CreateOrUpdateGoogleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateGoogleResponse>(\"/Addon/CreateOrUpdateGoogle\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Kongregate addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatekongregate Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateKongregate({\n * \"SecretAPIKey\": \"123456\"\n * });\n */\n CreateOrUpdateKongregate (request: CreateOrUpdateKongregateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateKongregateResponse>(\"/Addon/CreateOrUpdateKongregate\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Nintendo addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatenintendo Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateNintendo({\n * \"ApplicationID\": \"123456\",\n * \"Environments\": [\n * {\n * \"ID\": \"1\",\n * \"ClientID\": \"123456\",\n * \"ClientSecret\": \"654321\"\n * }\n * ]\n * });\n */\n CreateOrUpdateNintendo (request: CreateOrUpdateNintendoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateNintendoResponse>(\"/Addon/CreateOrUpdateNintendo\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the PSN addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatepsn Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdatePSN({\n * \"ClientID\": \"123456\",\n * \"ClientSecret\": \"abcdef\",\n * \"NextGenClientID\": \"654321\",\n * \"NextGenClientSecret\": \"fedcba\"\n * });\n */\n CreateOrUpdatePSN (request: CreateOrUpdatePSNRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdatePSNResponse>(\"/Addon/CreateOrUpdatePSN\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Steam addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatesteam Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateSteam({\n * \"ApplicationId\": \"123456\",\n * \"SecretKey\": \"654321\",\n * \"UseSandbox\": true,\n * \"EnforceServiceSpecificTickets\": true\n * });\n */\n CreateOrUpdateSteam (request: CreateOrUpdateSteamRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateSteamResponse>(\"/Addon/CreateOrUpdateSteam\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the ToxMod addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetoxmod Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateToxMod({\n * \"Enabled\": false,\n * \"AccountId\": \"123456\",\n * \"AccountKey\": \"654321\"\n * });\n */\n CreateOrUpdateToxMod (request: CreateOrUpdateToxModRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateToxModResponse>(\"/Addon/CreateOrUpdateToxMod\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates the Twitch addon on a title, or updates it if it already exists.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/createorupdatetwitch Microsoft Documentation}\n * @example\n * await addonClient.CreateOrUpdateTwitch({\n * \"ClientID\": \"123456\",\n * \"ClientSecret\": \"654321\"\n * });\n */\n CreateOrUpdateTwitch (request: CreateOrUpdateTwitchRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateOrUpdateTwitchResponse>(\"/Addon/CreateOrUpdateTwitch\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Apple addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deleteapple Microsoft Documentation}\n * @example\n * await addonClient.DeleteApple({});\n */\n DeleteApple (request: DeleteAppleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteAppleResponse>(\"/Addon/DeleteApple\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Facebook addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebook Microsoft Documentation}\n * @example\n * await addonClient.DeleteFacebook({});\n */\n DeleteFacebook (request: DeleteFacebookRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteFacebookResponse>(\"/Addon/DeleteFacebook\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Facebook addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletefacebookinstantgames Microsoft Documentation}\n * @example\n * await addonClient.DeleteFacebookInstantGames({});\n */\n DeleteFacebookInstantGames (request: DeleteFacebookInstantGamesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteFacebookInstantGamesResponse>(\"/Addon/DeleteFacebookInstantGames\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Google addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletegoogle Microsoft Documentation}\n * @example\n * await addonClient.DeleteGoogle({});\n */\n DeleteGoogle (request: DeleteGoogleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteGoogleResponse>(\"/Addon/DeleteGoogle\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Kongregate addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletekongregate Microsoft Documentation}\n * @example\n * await addonClient.DeleteKongregate({});\n */\n DeleteKongregate (request: DeleteKongregateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteKongregateResponse>(\"/Addon/DeleteKongregate\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Nintendo addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletenintendo Microsoft Documentation}\n * @example\n * await addonClient.DeleteNintendo({});\n */\n DeleteNintendo (request: DeleteNintendoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteNintendoResponse>(\"/Addon/DeleteNintendo\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the PSN addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletepsn Microsoft Documentation}\n * @example\n * await addonClient.DeletePSN({});\n */\n DeletePSN (request: DeletePSNRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeletePSNResponse>(\"/Addon/DeletePSN\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Steam addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletesteam Microsoft Documentation}\n * @example\n * await addonClient.DeleteSteam({});\n */\n DeleteSteam (request: DeleteSteamRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteSteamResponse>(\"/Addon/DeleteSteam\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the ToxMod addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetoxmod Microsoft Documentation}\n * @example\n * await addonClient.DeleteToxMod({});\n */\n DeleteToxMod (request: DeleteToxModRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteToxModResponse>(\"/Addon/DeleteToxMod\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the Twitch addon on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/deletetwitch Microsoft Documentation}\n * @example\n * await addonClient.DeleteTwitch({});\n */\n DeleteTwitch (request: DeleteTwitchRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteTwitchResponse>(\"/Addon/DeleteTwitch\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Apple addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getapple Microsoft Documentation}\n * @example\n * await addonClient.GetApple({});\n */\n GetApple (request: GetAppleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetAppleResponse>(\"/Addon/GetApple\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Facebook addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebook Microsoft Documentation}\n * @example\n * await addonClient.GetFacebook({});\n */\n GetFacebook (request: GetFacebookRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetFacebookResponse>(\"/Addon/GetFacebook\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Facebook Instant Games addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getfacebookinstantgames Microsoft Documentation}\n * @example\n * await addonClient.GetFacebookInstantGames({});\n */\n GetFacebookInstantGames (request: GetFacebookInstantGamesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetFacebookInstantGamesResponse>(\"/Addon/GetFacebookInstantGames\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Google addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getgoogle Microsoft Documentation}\n * @example\n * await addonClient.GetGoogle({});\n */\n GetGoogle (request: GetGoogleRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetGoogleResponse>(\"/Addon/GetGoogle\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Kongregate addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getkongregate Microsoft Documentation}\n * @example\n * await addonClient.GetKongregate({});\n */\n GetKongregate (request: GetKongregateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetKongregateResponse>(\"/Addon/GetKongregate\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Nintendo addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getnintendo Microsoft Documentation}\n * @example\n * await addonClient.GetNintendo({});\n */\n GetNintendo (request: GetNintendoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetNintendoResponse>(\"/Addon/GetNintendo\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the PSN addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getpsn Microsoft Documentation}\n * @example\n * await addonClient.GetPSN({});\n */\n GetPSN (request: GetPSNRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetPSNResponse>(\"/Addon/GetPSN\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Steam addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/getsteam Microsoft Documentation}\n * @example\n * await addonClient.GetSteam({});\n */\n GetSteam (request: GetSteamRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetSteamResponse>(\"/Addon/GetSteam\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the ToxMod addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettoxmod Microsoft Documentation}\n * @example\n * await addonClient.GetToxMod({});\n */\n GetToxMod (request: GetToxModRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetToxModResponse>(\"/Addon/GetToxMod\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information of the Twitch addon on a title, omits secrets.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/addon/addon/gettwitch Microsoft Documentation}\n * @example\n * await addonClient.GetTwitch({});\n */\n GetTwitch (request: GetTwitchRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTwitchResponse>(\"/Addon/GetTwitch\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAgEA,IAAqB,kBAArB,cAA6C,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaz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cAAe,SAA+B,cAAuC;AACnF,WAAO,KAAK,sBAA6C,wBAAwB,SAAS,iBAAiB,YAAY;AAAA,EACzH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,YAAa,SAA6B,cAAuC;AAC/E,WAAO,KAAK,sBAA2C,sBAAsB,SAAS,iBAAiB,YAAY;AAAA,EACrH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,OAAQ,SAAwB,cAAuC;AACrE,WAAO,KAAK,sBAAsC,iBAAiB,SAAS,iBAAiB,YAAY;AAAA,EAC3G;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,SAAU,SAA0B,cAAuC;AACzE,WAAO,KAAK,sBAAwC,mBAAmB,SAAS,iBAAiB,YAAY;AAAA,EAC/G;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,UAAW,SAA2B,cAAuC;AAC3E,WAAO,KAAK,sBAAyC,oBAAoB,SAAS,iBAAiB,YAAY;AAAA,EACjH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,UAAW,SAA2B,cAAuC;AAC3E,WAAO,KAAK,sBAAyC,oBAAoB,SAAS,iBAAiB,YAAY;AAAA,EACjH;AAEF;","names":[]}
|
@@ -0,0 +1,225 @@
|
|
1
|
+
import {
|
2
|
+
PlayFabCommon
|
3
|
+
} from "./chunk-N7LC7KNB.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-N4R6Y2MM.js.map
|