async-playfab-web-sdk 1.192.250526 → 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/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-4E2KRRDD.js +357 -0
- package/dist/chunk-4E2KRRDD.js.map +1 -0
- package/dist/chunk-7CBRLK5L.js +22 -0
- package/dist/chunk-7CBRLK5L.js.map +1 -0
- package/dist/{Localization.mjs → chunk-B6REENP7.js} +43 -94
- package/dist/chunk-B6REENP7.js.map +1 -0
- package/dist/chunk-DXAOLJHK.js +82 -0
- package/dist/chunk-DXAOLJHK.js.map +1 -0
- package/dist/chunk-EBJBJXQD.js +421 -0
- package/dist/chunk-EBJBJXQD.js.map +1 -0
- package/dist/chunk-GJBETVD4.js +237 -0
- package/dist/chunk-GJBETVD4.js.map +1 -0
- package/dist/chunk-JBOTM62B.js +2387 -0
- package/dist/chunk-JBOTM62B.js.map +1 -0
- package/dist/chunk-JOLCAGAW.js +2970 -0
- package/dist/chunk-JOLCAGAW.js.map +1 -0
- package/dist/chunk-KGYLMZG2.js +175 -0
- package/dist/chunk-KGYLMZG2.js.map +1 -0
- package/dist/chunk-PDLKO3WE.js +2477 -0
- package/dist/chunk-PDLKO3WE.js.map +1 -0
- package/dist/chunk-PSQSJQ3D.js +2673 -0
- package/dist/chunk-PSQSJQ3D.js.map +1 -0
- package/dist/chunk-RGHAECKS.js +197 -0
- package/dist/chunk-RGHAECKS.js.map +1 -0
- package/dist/chunk-SFUUCWPC.js +76 -0
- package/dist/chunk-SFUUCWPC.js.map +1 -0
- package/dist/chunk-SYWVDBNU.js +270 -0
- package/dist/chunk-SYWVDBNU.js.map +1 -0
- package/dist/chunk-T5SJ77OD.js +225 -0
- package/dist/chunk-T5SJ77OD.js.map +1 -0
- package/dist/chunk-VSRO2RWK.js +1048 -0
- package/dist/chunk-VSRO2RWK.js.map +1 -0
- package/dist/chunk-XPNV2H5D.js +421 -0
- package/dist/chunk-XPNV2H5D.js.map +1 -0
- package/dist/chunk-Z7SMY2UK.js +82 -0
- package/dist/chunk-Z7SMY2UK.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-B6REENP7.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-4E2KRRDD.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,EAazD,oBAAqB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+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,22 @@
|
|
1
|
+
import {
|
2
|
+
PlayFabCommon
|
3
|
+
} from "./chunk-B6REENP7.js";
|
4
|
+
|
5
|
+
// src/apis/PlayFabLocalizationApi.ts
|
6
|
+
var PlayFabLocalizationApi = class extends PlayFabCommon {
|
7
|
+
/**
|
8
|
+
* Retrieves the list of allowed languages, only accessible by title entities
|
9
|
+
*
|
10
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/locale/localization/getlanguagelist Microsoft Documentation}
|
11
|
+
* @example
|
12
|
+
* await localeClient.GetLanguageList({});
|
13
|
+
*/
|
14
|
+
GetLanguageList(request, extraHeaders) {
|
15
|
+
return this.ExecuteRequestWrapper("/Locale/GetLanguageList", request, "X-EntityToken", extraHeaders);
|
16
|
+
}
|
17
|
+
};
|
18
|
+
|
19
|
+
export {
|
20
|
+
PlayFabLocalizationApi
|
21
|
+
};
|
22
|
+
//# sourceMappingURL=chunk-7CBRLK5L.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabLocalizationApi.ts"],"sourcesContent":["import type {\n GetLanguageListRequest,\n GetLanguageListResponse,\n} from \"../types/PlayFabLocalizationApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabLocalizationApi extends PlayFabCommon {\n\n /**\n * Retrieves the list of allowed languages, only accessible by title entities\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/locale/localization/getlanguagelist Microsoft Documentation}\n * @example\n * await localeClient.GetLanguageList({});\n */\n GetLanguageList (request: GetLanguageListRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetLanguageListResponse>(\"/Locale/GetLanguageList\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAMA,IAAqB,yBAArB,cAAoD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAShE,gBAAiB,SAAiC,cAAuC;AACvF,WAAO,KAAK,sBAA+C,2BAA2B,SAAS,iBAAiB,YAAY;AAAA,EAC9H;AAEF;","names":[]}
|
@@ -1,28 +1,34 @@
|
|
1
1
|
// src/constants.ts
|
2
|
+
var ErrorMessages = {
|
3
|
+
titleId: "Must be have settings.titleId set to call this method",
|
4
|
+
loggedIn: "Must be logged in to call this method",
|
5
|
+
entityToken: "You must successfully call GetEntityToken before calling this",
|
6
|
+
secretKey: "Must have settings.developerSecretKey set to call this method"
|
7
|
+
};
|
2
8
|
var AuthInfoMap = {
|
3
9
|
"X-EntityToken": {
|
4
10
|
authAttr: "entityToken",
|
5
|
-
authError:
|
11
|
+
authError: ErrorMessages.entityToken
|
6
12
|
},
|
7
13
|
"X-Authorization": {
|
8
14
|
authAttr: "sessionTicket",
|
9
|
-
authError:
|
15
|
+
authError: ErrorMessages.loggedIn
|
10
16
|
},
|
11
17
|
"X-SecretKey": {
|
12
18
|
authAttr: "developerSecretKey",
|
13
|
-
authError:
|
19
|
+
authError: ErrorMessages.secretKey
|
14
20
|
}
|
15
21
|
};
|
16
22
|
var constants_default = {
|
17
|
-
sdkVersion: "1.
|
18
|
-
sdkFingerprint: "JavaScriptSDK-1.
|
19
|
-
buildIdentifier: "
|
23
|
+
sdkVersion: "1.193.250606",
|
24
|
+
sdkFingerprint: "JavaScriptSDK-1.193.250606",
|
25
|
+
buildIdentifier: "ghactions_async-playfab-web-sdk",
|
20
26
|
defaultSettings: {
|
21
27
|
titleId: "",
|
22
28
|
developerSecretKey: "",
|
23
|
-
|
29
|
+
globalHeaders: {},
|
24
30
|
productionServerUrl: ".playfabapi.com",
|
25
|
-
verticalName:
|
31
|
+
verticalName: ""
|
26
32
|
}
|
27
33
|
};
|
28
34
|
|
@@ -55,10 +61,7 @@ var PlayFabCommon = class {
|
|
55
61
|
this.requestGetParams = {
|
56
62
|
sdk: constants_default.sdkFingerprint
|
57
63
|
};
|
58
|
-
this.errorTitleId =
|
59
|
-
this.errorLoggedIn = "Must be logged in to call this method";
|
60
|
-
this.errorEntityToken = "You must successfully call GetEntityToken before calling this";
|
61
|
-
this.errorSecretKey = "Must have settings.developerSecretKey set to call this method";
|
64
|
+
this.errorTitleId = ErrorMessages.titleId;
|
62
65
|
this._context = PlayFabContext.instance;
|
63
66
|
if (settings) {
|
64
67
|
Object.assign(this._context.settings, settings);
|
@@ -101,74 +104,31 @@ var PlayFabCommon = class {
|
|
101
104
|
}
|
102
105
|
}
|
103
106
|
}
|
104
|
-
ExecuteRequest(url, body, authkey, authValue,
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
}
|
124
|
-
}
|
125
|
-
var completeUrl = urlArr.join("");
|
126
|
-
var xhr = new XMLHttpRequest();
|
127
|
-
xhr.open("POST", completeUrl, true);
|
128
|
-
xhr.setRequestHeader("Content-Type", "application/json");
|
129
|
-
xhr.setRequestHeader(
|
130
|
-
"X-PlayFabSDK",
|
131
|
-
"JavaScriptSDK-" + constants_default.sdkVersion
|
132
|
-
);
|
133
|
-
if (authkey != null) {
|
134
|
-
xhr.setRequestHeader(authkey, authValue);
|
135
|
-
}
|
136
|
-
this.InjectHeaders(xhr, this.settings.GlobalHeaderInjection);
|
137
|
-
this.InjectHeaders(xhr, extraHeaders);
|
138
|
-
xhr.onloadend = () => {
|
139
|
-
var result = this.GetPlayFabResponse(body, xhr, startTime, customData);
|
140
|
-
if (result.code === 200) {
|
141
|
-
resolve(result.data || result);
|
142
|
-
} else {
|
143
|
-
reject(result);
|
144
|
-
}
|
145
|
-
};
|
146
|
-
xhr.onerror = () => {
|
147
|
-
var result = this.GetPlayFabResponse(body, xhr, startTime, customData);
|
148
|
-
reject(result);
|
149
|
-
};
|
150
|
-
xhr.send(requestBody);
|
107
|
+
async ExecuteRequest(url, body, authkey, authValue, extraHeaders) {
|
108
|
+
if (body == null) {
|
109
|
+
body = {};
|
110
|
+
}
|
111
|
+
const requestBody = JSON.stringify(body);
|
112
|
+
const apiParams = new URLSearchParams(this.requestGetParams);
|
113
|
+
const apiUrl = new URL(
|
114
|
+
apiParams.size ? `${url}?${apiParams.toString()}` : url
|
115
|
+
);
|
116
|
+
const response = await fetch(apiUrl.toString(), {
|
117
|
+
method: "POST",
|
118
|
+
headers: {
|
119
|
+
"Content-Type": "application/json",
|
120
|
+
"X-PlayFabSDK": "JavaScriptSDK-" + constants_default.sdkVersion,
|
121
|
+
...this.settings.globalHeaders,
|
122
|
+
...extraHeaders,
|
123
|
+
...authkey && authValue ? { [authkey]: authValue } : {}
|
124
|
+
},
|
125
|
+
body: requestBody
|
151
126
|
});
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
try {
|
156
|
-
result = JSON.parse(xhr.responseText);
|
157
|
-
} catch (e) {
|
158
|
-
result = {
|
159
|
-
code: 503,
|
160
|
-
// Service Unavailable
|
161
|
-
status: "Service Unavailable",
|
162
|
-
error: "Connection error",
|
163
|
-
errorCode: 2,
|
164
|
-
// PlayFabErrorCode.ConnectionError
|
165
|
-
errorMessage: xhr.responseText
|
166
|
-
};
|
127
|
+
const jsonResponse = await response.json();
|
128
|
+
if (!response.ok || jsonResponse.code !== 200) {
|
129
|
+
throw jsonResponse;
|
167
130
|
}
|
168
|
-
|
169
|
-
result.Request = request;
|
170
|
-
result.CustomData = customData;
|
171
|
-
return result;
|
131
|
+
return jsonResponse;
|
172
132
|
}
|
173
133
|
UpdateAuthenticationContext(currentAuthContext, result) {
|
174
134
|
var authenticationContextUpdates = {};
|
@@ -202,7 +162,7 @@ var PlayFabCommon = class {
|
|
202
162
|
var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
|
203
163
|
return { authKey, authValue, authError };
|
204
164
|
}
|
205
|
-
ExecuteRequestWrapper(apiURL, request, authKey,
|
165
|
+
async ExecuteRequestWrapper(apiURL, request, authKey, extraHeaders) {
|
206
166
|
var authValue = null;
|
207
167
|
if (authKey !== null) {
|
208
168
|
const { authError, ...authInfo } = this.GetAuthInfo(request, authKey);
|
@@ -210,14 +170,13 @@ var PlayFabCommon = class {
|
|
210
170
|
authValue = authInfo.authValue;
|
211
171
|
if (!authValue) throw authError;
|
212
172
|
}
|
213
|
-
return this.ExecuteRequest(
|
173
|
+
return (await this.ExecuteRequest(
|
214
174
|
this.GetServerUrl() + apiURL,
|
215
175
|
request,
|
216
176
|
authKey,
|
217
177
|
authValue,
|
218
|
-
customData,
|
219
178
|
extraHeaders
|
220
|
-
);
|
179
|
+
)).data;
|
221
180
|
}
|
222
181
|
GenerateErrorReport(error) {
|
223
182
|
if (error == null) return "";
|
@@ -233,17 +192,7 @@ var PlayFabCommon = class {
|
|
233
192
|
}
|
234
193
|
};
|
235
194
|
|
236
|
-
// src/apis/PlayFabLocalizationApi.ts
|
237
|
-
var PlayFabLocalizationApi = class extends PlayFabCommon {
|
238
|
-
/**
|
239
|
-
* Retrieves the list of allowed languages, only accessible by title entities
|
240
|
-
* https://docs.microsoft.com/rest/api/playfab/localization/localization/getlanguagelist
|
241
|
-
*/
|
242
|
-
GetLanguageList(request, customData, extraHeaders) {
|
243
|
-
return this.ExecuteRequestWrapper("/Locale/GetLanguageList", request, "X-EntityToken", customData, extraHeaders);
|
244
|
-
}
|
245
|
-
};
|
246
195
|
export {
|
247
|
-
|
196
|
+
PlayFabCommon
|
248
197
|
};
|
249
|
-
//# sourceMappingURL=
|
198
|
+
//# sourceMappingURL=chunk-B6REENP7.js.map
|