async-playfab-web-sdk 1.192.250526-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.ts +591 -0
- package/dist/Addon.js +452 -0
- package/dist/Addon.js.map +1 -0
- package/dist/Admin.d.ts +3484 -0
- package/dist/Admin.js +1112 -0
- package/dist/Admin.js.map +1 -0
- package/dist/Authentication.d.ts +109 -0
- package/dist/Authentication.js +290 -0
- package/dist/Authentication.js.map +1 -0
- package/dist/Client.d.ts +4482 -0
- package/dist/Client.js +1893 -0
- package/dist/Client.js.map +1 -0
- package/dist/CloudScript.d.ts +511 -0
- package/dist/CloudScript.js +349 -0
- package/dist/CloudScript.js.map +1 -0
- package/dist/Data.d.ts +228 -0
- package/dist/Data.js +291 -0
- package/dist/Data.js.map +1 -0
- package/dist/Economy.d.ts +1865 -0
- package/dist/Economy.js +614 -0
- package/dist/Economy.js.map +1 -0
- package/dist/Events.d.ts +307 -0
- package/dist/Events.js +327 -0
- package/dist/Events.js.map +1 -0
- package/dist/Experimentation.d.ts +357 -0
- package/dist/Experimentation.js +333 -0
- package/dist/Experimentation.js.map +1 -0
- package/dist/Groups.d.ts +546 -0
- package/dist/Groups.js +417 -0
- package/dist/Groups.js.map +1 -0
- package/dist/Insights.d.ts +141 -0
- package/dist/Insights.js +286 -0
- package/dist/Insights.js.map +1 -0
- package/dist/Localization.d.ts +20 -0
- package/dist/Localization.js +249 -0
- package/dist/Localization.js.map +1 -0
- package/dist/Multiplayer.d.ts +3059 -0
- package/dist/Multiplayer.js +862 -0
- package/dist/Multiplayer.js.map +1 -0
- package/dist/PlayFabCommon-BUv4zqXf.d.ts +72 -0
- package/dist/Profiles.d.ts +278 -0
- package/dist/Profiles.js +306 -0
- package/dist/Profiles.js.map +1 -0
- package/dist/Progression.d.ts +598 -0
- package/dist/Progression.js +404 -0
- package/dist/Progression.js.map +1 -0
- package/dist/Server.d.ts +3889 -0
- package/dist/Server.js +1377 -0
- package/dist/Server.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +6007 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -0
- package/readme.md +25 -0
package/dist/Groups.js
ADDED
@@ -0,0 +1,417 @@
|
|
1
|
+
// src/constants.ts
|
2
|
+
var AuthInfoMap = {
|
3
|
+
"X-EntityToken": {
|
4
|
+
authAttr: "entityToken",
|
5
|
+
authError: "errorEntityToken"
|
6
|
+
},
|
7
|
+
"X-Authorization": {
|
8
|
+
authAttr: "sessionTicket",
|
9
|
+
authError: "errorLoggedIn"
|
10
|
+
},
|
11
|
+
"X-SecretKey": {
|
12
|
+
authAttr: "developerSecretKey",
|
13
|
+
authError: "errorSecretKey"
|
14
|
+
}
|
15
|
+
};
|
16
|
+
var constants_default = {
|
17
|
+
sdkVersion: "1.192.250526",
|
18
|
+
sdkFingerprint: "JavaScriptSDK-1.192.250526",
|
19
|
+
buildIdentifier: "custom_async-javascriptsdk",
|
20
|
+
defaultSettings: {
|
21
|
+
titleId: "",
|
22
|
+
developerSecretKey: "",
|
23
|
+
GlobalHeaderInjection: {},
|
24
|
+
productionServerUrl: ".playfabapi.com",
|
25
|
+
verticalName: null
|
26
|
+
}
|
27
|
+
};
|
28
|
+
|
29
|
+
// src/PlayFabContext.ts
|
30
|
+
var PlayFabContext = class _PlayFabContext {
|
31
|
+
constructor() {
|
32
|
+
this.settings = constants_default.defaultSettings;
|
33
|
+
this.authenticationContext = {
|
34
|
+
PlayFabId: null,
|
35
|
+
EntityId: null,
|
36
|
+
EntityType: null,
|
37
|
+
SessionTicket: null,
|
38
|
+
EntityToken: null
|
39
|
+
};
|
40
|
+
this.sessionTicket = null;
|
41
|
+
this.entityToken = null;
|
42
|
+
}
|
43
|
+
static get instance() {
|
44
|
+
if (!_PlayFabContext._instance) {
|
45
|
+
_PlayFabContext._instance = new _PlayFabContext();
|
46
|
+
}
|
47
|
+
return _PlayFabContext._instance;
|
48
|
+
}
|
49
|
+
};
|
50
|
+
|
51
|
+
// src/PlayFabCommon.ts
|
52
|
+
var PlayFabCommon = class {
|
53
|
+
constructor(settings = void 0) {
|
54
|
+
this.buildIdentifier = constants_default.buildIdentifier;
|
55
|
+
this.requestGetParams = {
|
56
|
+
sdk: constants_default.sdkFingerprint
|
57
|
+
};
|
58
|
+
this.errorTitleId = "Must be have settings.titleId set to call this method";
|
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";
|
62
|
+
this._context = PlayFabContext.instance;
|
63
|
+
if (settings) {
|
64
|
+
Object.assign(this._context.settings, settings);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
get settings() {
|
68
|
+
return this._context.settings;
|
69
|
+
}
|
70
|
+
get authenticationContext() {
|
71
|
+
return this._context.authenticationContext;
|
72
|
+
}
|
73
|
+
get sessionTicket() {
|
74
|
+
return this._context.sessionTicket;
|
75
|
+
}
|
76
|
+
set sessionTicket(value) {
|
77
|
+
this._context.sessionTicket = value;
|
78
|
+
}
|
79
|
+
get entityToken() {
|
80
|
+
return this._context.entityToken;
|
81
|
+
}
|
82
|
+
set entityToken(value) {
|
83
|
+
this._context.entityToken = value;
|
84
|
+
}
|
85
|
+
GetServerUrl() {
|
86
|
+
if (!(this.settings.productionServerUrl.substring(0, 4) === "http")) {
|
87
|
+
return `https://${this.settings.verticalName || this.settings.titleId}${this.settings.productionServerUrl}`;
|
88
|
+
} else {
|
89
|
+
return this.settings.productionServerUrl;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
InjectHeaders(xhr, headersObj) {
|
93
|
+
if (!headersObj) return;
|
94
|
+
for (const headerKey in headersObj) {
|
95
|
+
try {
|
96
|
+
xhr.setRequestHeader(headerKey, headersObj[headerKey]);
|
97
|
+
} catch (e) {
|
98
|
+
console.log(
|
99
|
+
`Failed to append header: ${headerKey} = ${headersObj[headerKey]} Error: ${e}`
|
100
|
+
);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
ExecuteRequest(url, body, authkey, authValue, customData, extraHeaders) {
|
105
|
+
return new Promise((resolve, reject) => {
|
106
|
+
if (body == null) body = {};
|
107
|
+
var startTime = (/* @__PURE__ */ new Date()).getTime();
|
108
|
+
var requestBody = JSON.stringify(body);
|
109
|
+
var urlArr = [url];
|
110
|
+
var getParams = this.requestGetParams;
|
111
|
+
if (getParams != null) {
|
112
|
+
var firstParam = true;
|
113
|
+
for (var key in getParams) {
|
114
|
+
if (firstParam) {
|
115
|
+
urlArr.push("?");
|
116
|
+
firstParam = false;
|
117
|
+
} else {
|
118
|
+
urlArr.push("&");
|
119
|
+
}
|
120
|
+
urlArr.push(key);
|
121
|
+
urlArr.push("=");
|
122
|
+
urlArr.push(getParams[key]);
|
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);
|
151
|
+
});
|
152
|
+
}
|
153
|
+
GetPlayFabResponse(request, xhr, startTime, customData) {
|
154
|
+
var result = null;
|
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
|
+
};
|
167
|
+
}
|
168
|
+
result.CallBackTimeMS = (/* @__PURE__ */ new Date()).getTime() - startTime;
|
169
|
+
result.Request = request;
|
170
|
+
result.CustomData = customData;
|
171
|
+
return result;
|
172
|
+
}
|
173
|
+
UpdateAuthenticationContext(currentAuthContext, result) {
|
174
|
+
var authenticationContextUpdates = {};
|
175
|
+
if (result == null ? void 0 : result.PlayFabId) {
|
176
|
+
authenticationContextUpdates.PlayFabId = result.PlayFabId;
|
177
|
+
}
|
178
|
+
if (result == null ? void 0 : result.SessionTicket) {
|
179
|
+
authenticationContextUpdates.SessionTicket = result.SessionTicket;
|
180
|
+
}
|
181
|
+
if (result == null ? void 0 : result.EntityToken) {
|
182
|
+
authenticationContextUpdates.EntityId = result.EntityToken.Entity.Id;
|
183
|
+
authenticationContextUpdates.EntityType = result.EntityToken.Entity.Type;
|
184
|
+
authenticationContextUpdates.EntityToken = result.EntityToken.EntityToken;
|
185
|
+
}
|
186
|
+
currentAuthContext = Object.assign(
|
187
|
+
currentAuthContext,
|
188
|
+
authenticationContextUpdates
|
189
|
+
);
|
190
|
+
this._context.authenticationContext = currentAuthContext;
|
191
|
+
return currentAuthContext;
|
192
|
+
}
|
193
|
+
GetAuthInfo(request, authKey) {
|
194
|
+
var authError = AuthInfoMap[authKey].authError;
|
195
|
+
var authAttr = AuthInfoMap[authKey].authAttr;
|
196
|
+
var defaultAuthValue = null;
|
197
|
+
if (authAttr === "entityToken") defaultAuthValue = this.entityToken;
|
198
|
+
else if (authAttr === "sessionTicket")
|
199
|
+
defaultAuthValue = this.sessionTicket;
|
200
|
+
else if (authAttr === "developerSecretKey")
|
201
|
+
defaultAuthValue = this.settings.developerSecretKey;
|
202
|
+
var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
|
203
|
+
return { authKey, authValue, authError };
|
204
|
+
}
|
205
|
+
ExecuteRequestWrapper(apiURL, request, authKey, customData, extraHeaders) {
|
206
|
+
var authValue = null;
|
207
|
+
if (authKey !== null) {
|
208
|
+
const { authError, ...authInfo } = this.GetAuthInfo(request, authKey);
|
209
|
+
authKey = authInfo.authKey;
|
210
|
+
authValue = authInfo.authValue;
|
211
|
+
if (!authValue) throw authError;
|
212
|
+
}
|
213
|
+
return this.ExecuteRequest(
|
214
|
+
this.GetServerUrl() + apiURL,
|
215
|
+
request,
|
216
|
+
authKey,
|
217
|
+
authValue,
|
218
|
+
customData,
|
219
|
+
extraHeaders
|
220
|
+
);
|
221
|
+
}
|
222
|
+
GenerateErrorReport(error) {
|
223
|
+
if (error == null) return "";
|
224
|
+
var fullErrors = error.errorMessage;
|
225
|
+
for (var paramName in error.errorDetails)
|
226
|
+
for (var msgIdx in error.errorDetails[paramName])
|
227
|
+
fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
|
228
|
+
return fullErrors;
|
229
|
+
}
|
230
|
+
ForgetAllCredentials() {
|
231
|
+
this._context.sessionTicket = null;
|
232
|
+
this._context.entityToken = null;
|
233
|
+
}
|
234
|
+
};
|
235
|
+
|
236
|
+
// src/apis/PlayFabGroupsApi.ts
|
237
|
+
var PlayFabGroupsApi = class extends PlayFabCommon {
|
238
|
+
/**
|
239
|
+
* Accepts an outstanding invitation to to join a group
|
240
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/acceptgroupapplication
|
241
|
+
*/
|
242
|
+
AcceptGroupApplication(request, customData, extraHeaders) {
|
243
|
+
return this.ExecuteRequestWrapper("/Group/AcceptGroupApplication", request, "X-EntityToken", customData, extraHeaders);
|
244
|
+
}
|
245
|
+
/**
|
246
|
+
* Accepts an invitation to join a group
|
247
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/acceptgroupinvitation
|
248
|
+
*/
|
249
|
+
AcceptGroupInvitation(request, customData, extraHeaders) {
|
250
|
+
return this.ExecuteRequestWrapper("/Group/AcceptGroupInvitation", request, "X-EntityToken", customData, extraHeaders);
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* Adds members to a group or role.
|
254
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/addmembers
|
255
|
+
*/
|
256
|
+
AddMembers(request, customData, extraHeaders) {
|
257
|
+
return this.ExecuteRequestWrapper("/Group/AddMembers", request, "X-EntityToken", customData, extraHeaders);
|
258
|
+
}
|
259
|
+
/**
|
260
|
+
* Applies to join a group
|
261
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/applytogroup
|
262
|
+
*/
|
263
|
+
ApplyToGroup(request, customData, extraHeaders) {
|
264
|
+
return this.ExecuteRequestWrapper("/Group/ApplyToGroup", request, "X-EntityToken", customData, extraHeaders);
|
265
|
+
}
|
266
|
+
/**
|
267
|
+
* Blocks a list of entities from joining a group.
|
268
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/blockentity
|
269
|
+
*/
|
270
|
+
BlockEntity(request, customData, extraHeaders) {
|
271
|
+
return this.ExecuteRequestWrapper("/Group/BlockEntity", request, "X-EntityToken", customData, extraHeaders);
|
272
|
+
}
|
273
|
+
/**
|
274
|
+
* Changes the role membership of a list of entities from one role to another.
|
275
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/changememberrole
|
276
|
+
*/
|
277
|
+
ChangeMemberRole(request, customData, extraHeaders) {
|
278
|
+
return this.ExecuteRequestWrapper("/Group/ChangeMemberRole", request, "X-EntityToken", customData, extraHeaders);
|
279
|
+
}
|
280
|
+
/**
|
281
|
+
* Creates a new group.
|
282
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/creategroup
|
283
|
+
*/
|
284
|
+
CreateGroup(request, customData, extraHeaders) {
|
285
|
+
return this.ExecuteRequestWrapper("/Group/CreateGroup", request, "X-EntityToken", customData, extraHeaders);
|
286
|
+
}
|
287
|
+
/**
|
288
|
+
* Creates a new group role.
|
289
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/createrole
|
290
|
+
*/
|
291
|
+
CreateRole(request, customData, extraHeaders) {
|
292
|
+
return this.ExecuteRequestWrapper("/Group/CreateRole", request, "X-EntityToken", customData, extraHeaders);
|
293
|
+
}
|
294
|
+
/**
|
295
|
+
* Deletes a group and all roles, invitations, join requests, and blocks associated with it.
|
296
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/deletegroup
|
297
|
+
*/
|
298
|
+
DeleteGroup(request, customData, extraHeaders) {
|
299
|
+
return this.ExecuteRequestWrapper("/Group/DeleteGroup", request, "X-EntityToken", customData, extraHeaders);
|
300
|
+
}
|
301
|
+
/**
|
302
|
+
* Deletes an existing role in a group.
|
303
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/deleterole
|
304
|
+
*/
|
305
|
+
DeleteRole(request, customData, extraHeaders) {
|
306
|
+
return this.ExecuteRequestWrapper("/Group/DeleteRole", request, "X-EntityToken", customData, extraHeaders);
|
307
|
+
}
|
308
|
+
/**
|
309
|
+
* Gets information about a group and its roles
|
310
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/getgroup
|
311
|
+
*/
|
312
|
+
GetGroup(request, customData, extraHeaders) {
|
313
|
+
return this.ExecuteRequestWrapper("/Group/GetGroup", request, "X-EntityToken", customData, extraHeaders);
|
314
|
+
}
|
315
|
+
/**
|
316
|
+
* Invites a player to join a group
|
317
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/invitetogroup
|
318
|
+
*/
|
319
|
+
InviteToGroup(request, customData, extraHeaders) {
|
320
|
+
return this.ExecuteRequestWrapper("/Group/InviteToGroup", request, "X-EntityToken", customData, extraHeaders);
|
321
|
+
}
|
322
|
+
/**
|
323
|
+
* Checks to see if an entity is a member of a group or role within the group
|
324
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/ismember
|
325
|
+
*/
|
326
|
+
IsMember(request, customData, extraHeaders) {
|
327
|
+
return this.ExecuteRequestWrapper("/Group/IsMember", request, "X-EntityToken", customData, extraHeaders);
|
328
|
+
}
|
329
|
+
/**
|
330
|
+
* Lists all outstanding requests to join a group
|
331
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupapplications
|
332
|
+
*/
|
333
|
+
ListGroupApplications(request, customData, extraHeaders) {
|
334
|
+
return this.ExecuteRequestWrapper("/Group/ListGroupApplications", request, "X-EntityToken", customData, extraHeaders);
|
335
|
+
}
|
336
|
+
/**
|
337
|
+
* Lists all entities blocked from joining a group
|
338
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupblocks
|
339
|
+
*/
|
340
|
+
ListGroupBlocks(request, customData, extraHeaders) {
|
341
|
+
return this.ExecuteRequestWrapper("/Group/ListGroupBlocks", request, "X-EntityToken", customData, extraHeaders);
|
342
|
+
}
|
343
|
+
/**
|
344
|
+
* Lists all outstanding invitations for a group
|
345
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupinvitations
|
346
|
+
*/
|
347
|
+
ListGroupInvitations(request, customData, extraHeaders) {
|
348
|
+
return this.ExecuteRequestWrapper("/Group/ListGroupInvitations", request, "X-EntityToken", customData, extraHeaders);
|
349
|
+
}
|
350
|
+
/**
|
351
|
+
* Lists all members for a group
|
352
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupmembers
|
353
|
+
*/
|
354
|
+
ListGroupMembers(request, customData, extraHeaders) {
|
355
|
+
return this.ExecuteRequestWrapper("/Group/ListGroupMembers", request, "X-EntityToken", customData, extraHeaders);
|
356
|
+
}
|
357
|
+
/**
|
358
|
+
* Lists all groups and roles for an entity
|
359
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/listmembership
|
360
|
+
*/
|
361
|
+
ListMembership(request, customData, extraHeaders) {
|
362
|
+
return this.ExecuteRequestWrapper("/Group/ListMembership", request, "X-EntityToken", customData, extraHeaders);
|
363
|
+
}
|
364
|
+
/**
|
365
|
+
* Lists all outstanding invitations and group applications for an entity
|
366
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/listmembershipopportunities
|
367
|
+
*/
|
368
|
+
ListMembershipOpportunities(request, customData, extraHeaders) {
|
369
|
+
return this.ExecuteRequestWrapper("/Group/ListMembershipOpportunities", request, "X-EntityToken", customData, extraHeaders);
|
370
|
+
}
|
371
|
+
/**
|
372
|
+
* Removes an application to join a group
|
373
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/removegroupapplication
|
374
|
+
*/
|
375
|
+
RemoveGroupApplication(request, customData, extraHeaders) {
|
376
|
+
return this.ExecuteRequestWrapper("/Group/RemoveGroupApplication", request, "X-EntityToken", customData, extraHeaders);
|
377
|
+
}
|
378
|
+
/**
|
379
|
+
* Removes an invitation join a group
|
380
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/removegroupinvitation
|
381
|
+
*/
|
382
|
+
RemoveGroupInvitation(request, customData, extraHeaders) {
|
383
|
+
return this.ExecuteRequestWrapper("/Group/RemoveGroupInvitation", request, "X-EntityToken", customData, extraHeaders);
|
384
|
+
}
|
385
|
+
/**
|
386
|
+
* Removes members from a group.
|
387
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/removemembers
|
388
|
+
*/
|
389
|
+
RemoveMembers(request, customData, extraHeaders) {
|
390
|
+
return this.ExecuteRequestWrapper("/Group/RemoveMembers", request, "X-EntityToken", customData, extraHeaders);
|
391
|
+
}
|
392
|
+
/**
|
393
|
+
* Unblocks a list of entities from joining a group
|
394
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/unblockentity
|
395
|
+
*/
|
396
|
+
UnblockEntity(request, customData, extraHeaders) {
|
397
|
+
return this.ExecuteRequestWrapper("/Group/UnblockEntity", request, "X-EntityToken", customData, extraHeaders);
|
398
|
+
}
|
399
|
+
/**
|
400
|
+
* Updates non-membership data about a group.
|
401
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/updategroup
|
402
|
+
*/
|
403
|
+
UpdateGroup(request, customData, extraHeaders) {
|
404
|
+
return this.ExecuteRequestWrapper("/Group/UpdateGroup", request, "X-EntityToken", customData, extraHeaders);
|
405
|
+
}
|
406
|
+
/**
|
407
|
+
* Updates metadata about a role.
|
408
|
+
* https://docs.microsoft.com/rest/api/playfab/groups/groups/updaterole
|
409
|
+
*/
|
410
|
+
UpdateRole(request, customData, extraHeaders) {
|
411
|
+
return this.ExecuteRequestWrapper("/Group/UpdateRole", request, "X-EntityToken", customData, extraHeaders);
|
412
|
+
}
|
413
|
+
};
|
414
|
+
export {
|
415
|
+
PlayFabGroupsApi as default
|
416
|
+
};
|
417
|
+
//# sourceMappingURL=Groups.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/constants.ts","../src/PlayFabContext.ts","../src/PlayFabCommon.ts","../src/apis/PlayFabGroupsApi.ts"],"sourcesContent":["export interface ISettings {\n /** You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website) */\n titleId: string;\n /** For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website) */\n developerSecretKey: string;\n productionServerUrl: string;\n GlobalHeaderInjection?: { [key: string]: string };\n /** The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this */\n verticalName?: string | null;\n}\n\nexport const AuthInfoMap = {\n \"X-EntityToken\": {\n authAttr: \"entityToken\",\n authError: \"errorEntityToken\",\n },\n \"X-Authorization\": {\n authAttr: \"sessionTicket\",\n authError: \"errorLoggedIn\",\n },\n \"X-SecretKey\": {\n authAttr: \"developerSecretKey\",\n authError: \"errorSecretKey\",\n },\n};\n\nexport default {\n sdkVersion: \"1.192.250526\",\n sdkFingerprint: \"JavaScriptSDK-1.192.250526\",\n buildIdentifier: \"custom_async-javascriptsdk\",\n defaultSettings: {\n titleId: \"\",\n developerSecretKey: \"\",\n GlobalHeaderInjection: {},\n productionServerUrl: \".playfabapi.com\",\n verticalName: null\n } as ISettings\n};\n","import constants, { type ISettings } from \"./constants\";\n\nexport type AuthContext = {\n PlayFabId: string | null;\n EntityId: string | null;\n EntityType: string | null;\n SessionTicket: string | null;\n EntityToken: string | null;\n};\n\nexport class PlayFabContext {\n private static _instance: PlayFabContext;\n\n settings: ISettings = constants.defaultSettings;\n\n authenticationContext: AuthContext = {\n PlayFabId: null,\n EntityId: null,\n EntityType: null,\n SessionTicket: null,\n EntityToken: null,\n };\n\n sessionTicket: string | null = null;\n\n entityToken: string | null = null;\n\n private constructor() {}\n\n public static get instance(): PlayFabContext {\n if (!PlayFabContext._instance) {\n PlayFabContext._instance = new PlayFabContext();\n }\n\n return PlayFabContext._instance;\n }\n}\n","import constants, { ISettings, AuthInfoMap } from \"./constants\";\nimport { AuthContext, PlayFabContext } from \"./PlayFabContext\";\nimport { IPlayFabError, IPlayFabResultCommon } from \"./types/PlayFab\";\n\nexport class PlayFabCommon {\n buildIdentifier: string = constants.buildIdentifier;\n requestGetParams = {\n sdk: constants.sdkFingerprint,\n } as const;\n errorTitleId = \"Must be have settings.titleId set to call this method\";\n errorLoggedIn = \"Must be logged in to call this method\";\n errorEntityToken =\n \"You must successfully call GetEntityToken before calling this\";\n errorSecretKey =\n \"Must have settings.developerSecretKey set to call this method\";\n private _context = PlayFabContext.instance;\n\n constructor(settings: Partial<ISettings> | undefined = undefined) {\n if (settings) {\n Object.assign(this._context.settings, settings);\n }\n }\n\n get settings() {\n return this._context.settings;\n }\n\n get authenticationContext() {\n return this._context.authenticationContext;\n }\n\n get sessionTicket() {\n return this._context.sessionTicket;\n }\n\n set sessionTicket(value: string | null) {\n this._context.sessionTicket = value;\n }\n\n get entityToken() {\n return this._context.entityToken;\n }\n\n set entityToken(value: string | null) {\n this._context.entityToken = value;\n }\n\n GetServerUrl() {\n if (!(this.settings.productionServerUrl.substring(0, 4) === \"http\")) {\n return `https://${this.settings.verticalName || this.settings.titleId}${\n this.settings.productionServerUrl\n }`;\n } else {\n return this.settings.productionServerUrl;\n }\n }\n\n InjectHeaders(\n xhr: XMLHttpRequest,\n headersObj: Record<string, string> | undefined\n ) {\n if (!headersObj) return;\n\n for (const headerKey in headersObj) {\n try {\n xhr.setRequestHeader(headerKey, headersObj[headerKey]);\n } catch (e) {\n console.log(\n `Failed to append header: ${headerKey} = ${headersObj[headerKey]} Error: ${e}`\n );\n }\n }\n }\n\n ExecuteRequest<T extends IPlayFabResultCommon>(\n url: string,\n body: any,\n authkey: string | null,\n authValue: string | null,\n customData: any,\n extraHeaders?: Record<string, string>\n ): Promise<T> {\n return new Promise((resolve, reject) => {\n if (body == null) body = {};\n\n var startTime = new Date().getTime();\n var requestBody = JSON.stringify(body);\n\n var urlArr = [url];\n var getParams = this.requestGetParams;\n if (getParams != null) {\n var firstParam = true;\n for (var key in getParams) {\n if (firstParam) {\n urlArr.push(\"?\");\n firstParam = false;\n } else {\n urlArr.push(\"&\");\n }\n urlArr.push(key);\n urlArr.push(\"=\");\n urlArr.push(getParams[key as keyof typeof getParams]);\n }\n }\n\n var completeUrl = urlArr.join(\"\");\n\n var xhr = new XMLHttpRequest();\n xhr.open(\"POST\", completeUrl, true);\n\n xhr.setRequestHeader(\"Content-Type\", \"application/json\");\n xhr.setRequestHeader(\n \"X-PlayFabSDK\",\n \"JavaScriptSDK-\" + constants.sdkVersion\n );\n if (authkey != null) {\n xhr.setRequestHeader(authkey, authValue!);\n }\n this.InjectHeaders(xhr, this.settings.GlobalHeaderInjection);\n this.InjectHeaders(xhr, extraHeaders);\n\n xhr.onloadend = () => {\n var result = this.GetPlayFabResponse(body, xhr, startTime, customData);\n if (result.code === 200) {\n resolve(result.data || result);\n } else {\n reject(result);\n }\n };\n\n xhr.onerror = () => {\n var result = this.GetPlayFabResponse(body, xhr, startTime, customData);\n reject(result);\n };\n\n xhr.send(requestBody);\n });\n }\n\n GetPlayFabResponse(\n request: any,\n xhr: XMLHttpRequest,\n startTime: number,\n customData: any\n ) {\n var result = null as any;\n try {\n // window.console.log(\"parsing json result: \" + xhr.responseText);\n result = JSON.parse(xhr.responseText);\n } catch (e) {\n result = {\n code: 503, // Service Unavailable\n status: \"Service Unavailable\",\n error: \"Connection error\",\n errorCode: 2, // PlayFabErrorCode.ConnectionError\n errorMessage: xhr.responseText,\n };\n }\n\n result.CallBackTimeMS = new Date().getTime() - startTime;\n result.Request = request;\n result.CustomData = customData;\n return result;\n }\n\n UpdateAuthenticationContext(currentAuthContext: AuthContext, result: any) {\n var authenticationContextUpdates = {} as AuthContext;\n if (result?.PlayFabId) {\n authenticationContextUpdates.PlayFabId = result.PlayFabId;\n }\n if (result?.SessionTicket) {\n authenticationContextUpdates.SessionTicket = result.SessionTicket;\n }\n if (result?.EntityToken) {\n authenticationContextUpdates.EntityId = result.EntityToken.Entity.Id;\n authenticationContextUpdates.EntityType = result.EntityToken.Entity.Type;\n authenticationContextUpdates.EntityToken = result.EntityToken.EntityToken;\n }\n // Update the authenticationContext with values from the result\n currentAuthContext = Object.assign(\n currentAuthContext,\n authenticationContextUpdates\n );\n\n this._context.authenticationContext = currentAuthContext;\n\n return currentAuthContext;\n }\n\n GetAuthInfo(request: any, authKey: string) {\n // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext\n var authError = AuthInfoMap[authKey as keyof typeof AuthInfoMap].authError;\n var authAttr = AuthInfoMap[authKey as keyof typeof AuthInfoMap].authAttr;\n var defaultAuthValue: string | null = null;\n if (authAttr === \"entityToken\") defaultAuthValue = this.entityToken;\n else if (authAttr === \"sessionTicket\")\n defaultAuthValue = this.sessionTicket;\n else if (authAttr === \"developerSecretKey\")\n defaultAuthValue = this.settings.developerSecretKey;\n var authValue = request.AuthenticationContext\n ? request.AuthenticationContext[authAttr]\n : defaultAuthValue;\n return { authKey, authValue, authError };\n }\n\n ExecuteRequestWrapper<T extends IPlayFabResultCommon>(\n apiURL: string,\n request: any,\n authKey: string | null,\n customData: any,\n extraHeaders?: Record<string, string>\n ) {\n var authValue = null;\n if (authKey !== null) {\n const { authError, ...authInfo } = this.GetAuthInfo(request, authKey);\n authKey = authInfo.authKey;\n authValue = authInfo.authValue;\n if (!authValue) throw authError;\n }\n return this.ExecuteRequest<T>(\n this.GetServerUrl() + apiURL,\n request,\n authKey,\n authValue,\n customData,\n extraHeaders\n );\n }\n\n GenerateErrorReport(error: IPlayFabError | null): string {\n if (error == null) return \"\";\n var fullErrors = error.errorMessage;\n for (var paramName in error.errorDetails)\n for (var msgIdx in error.errorDetails[paramName])\n fullErrors +=\n \"\\n\" + paramName + \": \" + error.errorDetails[paramName][msgIdx];\n return fullErrors;\n }\n\n ForgetAllCredentials() {\n this._context.sessionTicket = null;\n this._context.entityToken = null;\n }\n}\n","import type { EmptyResponse } from \"../types/PlayFab\";\nimport type {\n\n AcceptGroupApplicationRequest,\n AcceptGroupInvitationRequest,\n AddMembersRequest,\n ApplyToGroupRequest,\n BlockEntityRequest,\n ChangeMemberRoleRequest,\n CreateGroupRequest,\n CreateGroupRoleRequest,\n DeleteGroupRequest,\n DeleteRoleRequest,\n GetGroupRequest,\n InviteToGroupRequest,\n IsMemberRequest,\n ListGroupApplicationsRequest,\n ListGroupBlocksRequest,\n ListGroupInvitationsRequest,\n ListGroupMembersRequest,\n ListMembershipRequest,\n ListMembershipOpportunitiesRequest,\n RemoveGroupApplicationRequest,\n RemoveGroupInvitationRequest,\n RemoveMembersRequest,\n UnblockEntityRequest,\n UpdateGroupRequest,\n UpdateGroupRoleRequest,\n ApplyToGroupResponse,\n CreateGroupResponse,\n CreateGroupRoleResponse,\n GetGroupResponse,\n InviteToGroupResponse,\n IsMemberResponse,\n ListGroupApplicationsResponse,\n ListGroupBlocksResponse,\n ListGroupInvitationsResponse,\n ListGroupMembersResponse,\n ListMembershipResponse,\n ListMembershipOpportunitiesResponse,\n UpdateGroupResponse,\n UpdateGroupRoleResponse,\n} from \"../types/PlayFabGroupsApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabGroupsApi extends PlayFabCommon {\n\n /**\n * Accepts an outstanding invitation to to join a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/acceptgroupapplication\n */\n AcceptGroupApplication (request: AcceptGroupApplicationRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/AcceptGroupApplication\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Accepts an invitation to join a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/acceptgroupinvitation\n */\n AcceptGroupInvitation (request: AcceptGroupInvitationRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/AcceptGroupInvitation\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Adds members to a group or role.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/addmembers\n */\n AddMembers (request: AddMembersRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/AddMembers\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Applies to join a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/applytogroup\n */\n ApplyToGroup (request: ApplyToGroupRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ApplyToGroupResponse>(\"/Group/ApplyToGroup\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Blocks a list of entities from joining a group.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/blockentity\n */\n BlockEntity (request: BlockEntityRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/BlockEntity\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Changes the role membership of a list of entities from one role to another.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/changememberrole\n */\n ChangeMemberRole (request: ChangeMemberRoleRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/ChangeMemberRole\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Creates a new group.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/creategroup\n */\n CreateGroup (request: CreateGroupRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateGroupResponse>(\"/Group/CreateGroup\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Creates a new group role.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/createrole\n */\n CreateRole (request: CreateGroupRoleRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateGroupRoleResponse>(\"/Group/CreateRole\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Deletes a group and all roles, invitations, join requests, and blocks associated with it.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/deletegroup\n */\n DeleteGroup (request: DeleteGroupRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/DeleteGroup\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Deletes an existing role in a group.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/deleterole\n */\n DeleteRole (request: DeleteRoleRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/DeleteRole\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Gets information about a group and its roles\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/getgroup\n */\n GetGroup (request: GetGroupRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetGroupResponse>(\"/Group/GetGroup\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Invites a player to join a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/invitetogroup\n */\n InviteToGroup (request: InviteToGroupRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InviteToGroupResponse>(\"/Group/InviteToGroup\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Checks to see if an entity is a member of a group or role within the group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/ismember\n */\n IsMember (request: IsMemberRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<IsMemberResponse>(\"/Group/IsMember\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Lists all outstanding requests to join a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupapplications\n */\n ListGroupApplications (request: ListGroupApplicationsRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListGroupApplicationsResponse>(\"/Group/ListGroupApplications\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Lists all entities blocked from joining a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupblocks\n */\n ListGroupBlocks (request: ListGroupBlocksRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListGroupBlocksResponse>(\"/Group/ListGroupBlocks\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Lists all outstanding invitations for a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupinvitations\n */\n ListGroupInvitations (request: ListGroupInvitationsRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListGroupInvitationsResponse>(\"/Group/ListGroupInvitations\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Lists all members for a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/listgroupmembers\n */\n ListGroupMembers (request: ListGroupMembersRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListGroupMembersResponse>(\"/Group/ListGroupMembers\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Lists all groups and roles for an entity\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/listmembership\n */\n ListMembership (request: ListMembershipRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListMembershipResponse>(\"/Group/ListMembership\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Lists all outstanding invitations and group applications for an entity\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/listmembershipopportunities\n */\n ListMembershipOpportunities (request: ListMembershipOpportunitiesRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListMembershipOpportunitiesResponse>(\"/Group/ListMembershipOpportunities\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Removes an application to join a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/removegroupapplication\n */\n RemoveGroupApplication (request: RemoveGroupApplicationRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/RemoveGroupApplication\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Removes an invitation join a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/removegroupinvitation\n */\n RemoveGroupInvitation (request: RemoveGroupInvitationRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/RemoveGroupInvitation\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Removes members from a group.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/removemembers\n */\n RemoveMembers (request: RemoveMembersRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/RemoveMembers\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Unblocks a list of entities from joining a group\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/unblockentity\n */\n UnblockEntity (request: UnblockEntityRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/Group/UnblockEntity\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Updates non-membership data about a group.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/updategroup\n */\n UpdateGroup (request: UpdateGroupRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UpdateGroupResponse>(\"/Group/UpdateGroup\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n /**\n * Updates metadata about a role.\n * https://docs.microsoft.com/rest/api/playfab/groups/groups/updaterole\n */\n UpdateRole (request: UpdateGroupRoleRequest, customData?: any, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UpdateGroupRoleResponse>(\"/Group/UpdateRole\", request, \"X-EntityToken\", customData, extraHeaders);\n }\n\n};\n"],"mappings":";AAWO,IAAM,cAAc;AAAA,EACzB,iBAAiB;AAAA,IACf,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,mBAAmB;AAAA,IACjB,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AAAA,EACA,eAAe;AAAA,IACb,UAAU;AAAA,IACV,WAAW;AAAA,EACb;AACF;AAEA,IAAO,oBAAQ;AAAA,EACb,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,oBAAoB;AAAA,IACpB,uBAAuB,CAAC;AAAA,IACxB,qBAAqB;AAAA,IACrB,cAAc;AAAA,EAChB;AACF;;;AC3BO,IAAM,iBAAN,MAAM,gBAAe;AAAA,EAiBlB,cAAc;AAdtB,oBAAsB,kBAAU;AAEhC,iCAAqC;AAAA,MACnC,WAAW;AAAA,MACX,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,aAAa;AAAA,IACf;AAEA,yBAA+B;AAE/B,u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,YAAY,YAAY;AAAA,EACvI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,cAAe,SAA+B,YAAkB,cAAuC;AACnG,WAAO,KAAK,sBAAqC,wBAAwB,SAAS,iBAAiB,YAAY,YAAY;AAAA,EAC/H;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,cAAe,SAA+B,YAAkB,cAAuC;AACnG,WAAO,KAAK,sBAAqC,wBAAwB,SAAS,iBAAiB,YAAY,YAAY;AAAA,EAC/H;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,YAAa,SAA6B,YAAkB,cAAuC;AAC/F,WAAO,KAAK,sBAA2C,sBAAsB,SAAS,iBAAiB,YAAY,YAAY;AAAA,EACnI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,WAAY,SAAiC,YAAkB,cAAuC;AAClG,WAAO,KAAK,sBAA+C,qBAAqB,SAAS,iBAAiB,YAAY,YAAY;AAAA,EACtI;AAEJ;","names":[]}
|
@@ -0,0 +1,141 @@
|
|
1
|
+
import { I as IPlayFabRequestCommon, a as IPlayFabResultCommon, P as PlayFabCommon } from './PlayFabCommon-BUv4zqXf.js';
|
2
|
+
|
3
|
+
interface InsightsEmptyRequest extends IPlayFabRequestCommon {
|
4
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
5
|
+
CustomTags?: Record<string, string | null>;
|
6
|
+
}
|
7
|
+
interface InsightsGetDetailsResponse extends IPlayFabResultCommon {
|
8
|
+
/** Amount of data (in MB) currently used by Insights. */
|
9
|
+
DataUsageMb: number;
|
10
|
+
/** Details of any error that occurred while retrieving Insights details. */
|
11
|
+
ErrorMessage?: string;
|
12
|
+
/** Allowed range of values for performance level and data storage retention. */
|
13
|
+
Limits?: InsightsGetLimitsResponse;
|
14
|
+
/** List of pending Insights operations for the title. */
|
15
|
+
PendingOperations?: InsightsGetOperationStatusResponse[];
|
16
|
+
/** Current Insights performance level setting. */
|
17
|
+
PerformanceLevel: number;
|
18
|
+
/** Current Insights data storage retention value in days. */
|
19
|
+
RetentionDays: number;
|
20
|
+
}
|
21
|
+
interface InsightsGetLimitsResponse extends IPlayFabResultCommon {
|
22
|
+
/** Default Insights performance level. */
|
23
|
+
DefaultPerformanceLevel: number;
|
24
|
+
/** Default Insights data storage retention days. */
|
25
|
+
DefaultStorageRetentionDays: number;
|
26
|
+
/** Maximum allowed data storage retention days. */
|
27
|
+
StorageMaxRetentionDays: number;
|
28
|
+
/** Minimum allowed data storage retention days. */
|
29
|
+
StorageMinRetentionDays: number;
|
30
|
+
/** List of Insights submeter limits for the allowed performance levels. */
|
31
|
+
SubMeters?: InsightsPerformanceLevel[];
|
32
|
+
}
|
33
|
+
interface InsightsGetOperationStatusRequest extends IPlayFabRequestCommon {
|
34
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
35
|
+
CustomTags?: Record<string, string | null>;
|
36
|
+
/** Id of the Insights operation. */
|
37
|
+
OperationId?: string;
|
38
|
+
}
|
39
|
+
interface InsightsGetOperationStatusResponse extends IPlayFabResultCommon {
|
40
|
+
/** Optional message related to the operation details. */
|
41
|
+
Message?: string;
|
42
|
+
/** Time the operation was completed. */
|
43
|
+
OperationCompletedTime: string;
|
44
|
+
/** Id of the Insights operation. */
|
45
|
+
OperationId?: string;
|
46
|
+
/** Time the operation status was last updated. */
|
47
|
+
OperationLastUpdated: string;
|
48
|
+
/** Time the operation started. */
|
49
|
+
OperationStartedTime: string;
|
50
|
+
/** The type of operation, SetPerformance or SetStorageRetention. */
|
51
|
+
OperationType?: string;
|
52
|
+
/** The value requested for the operation. */
|
53
|
+
OperationValue: number;
|
54
|
+
/** Current status of the operation. */
|
55
|
+
Status?: string;
|
56
|
+
}
|
57
|
+
interface InsightsGetPendingOperationsRequest extends IPlayFabRequestCommon {
|
58
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
59
|
+
CustomTags?: Record<string, string | null>;
|
60
|
+
/** The type of pending operations requested, or blank for all operation types. */
|
61
|
+
OperationType?: string;
|
62
|
+
}
|
63
|
+
interface InsightsGetPendingOperationsResponse extends IPlayFabResultCommon {
|
64
|
+
/** List of pending Insights operations. */
|
65
|
+
PendingOperations?: InsightsGetOperationStatusResponse[];
|
66
|
+
}
|
67
|
+
interface InsightsOperationResponse extends IPlayFabResultCommon {
|
68
|
+
/** Optional message related to the operation details. */
|
69
|
+
Message?: string;
|
70
|
+
/** Id of the Insights operation. */
|
71
|
+
OperationId?: string;
|
72
|
+
/** The type of operation, SetPerformance or SetStorageRetention. */
|
73
|
+
OperationType?: string;
|
74
|
+
}
|
75
|
+
interface InsightsPerformanceLevel {
|
76
|
+
/** Number of allowed active event exports. */
|
77
|
+
ActiveEventExports: number;
|
78
|
+
/** Maximum cache size. */
|
79
|
+
CacheSizeMB: number;
|
80
|
+
/** Maximum number of concurrent queries. */
|
81
|
+
Concurrency: number;
|
82
|
+
/** Number of Insights credits consumed per minute. */
|
83
|
+
CreditsPerMinute: number;
|
84
|
+
/** Maximum events per second. */
|
85
|
+
EventsPerSecond: number;
|
86
|
+
/** Performance level. */
|
87
|
+
Level: number;
|
88
|
+
/** Maximum amount of memory allowed per query. */
|
89
|
+
MaxMemoryPerQueryMB: number;
|
90
|
+
/** Amount of compute power allocated for queries and operations. */
|
91
|
+
VirtualCpuCores: number;
|
92
|
+
}
|
93
|
+
interface InsightsSetPerformanceRequest extends IPlayFabRequestCommon {
|
94
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
95
|
+
CustomTags?: Record<string, string | null>;
|
96
|
+
/** The Insights performance level to apply to the title. */
|
97
|
+
PerformanceLevel: number;
|
98
|
+
}
|
99
|
+
interface InsightsSetStorageRetentionRequest extends IPlayFabRequestCommon {
|
100
|
+
/** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
|
101
|
+
CustomTags?: Record<string, string | null>;
|
102
|
+
/** The Insights data storage retention value (in days) to apply to the title. */
|
103
|
+
RetentionDays: number;
|
104
|
+
}
|
105
|
+
|
106
|
+
declare class PlayFabInsightsApi extends PlayFabCommon {
|
107
|
+
/**
|
108
|
+
* Gets the current values for the Insights performance and data storage retention, list of pending operations, and the
|
109
|
+
* performance and data storage retention limits.
|
110
|
+
* https://docs.microsoft.com/rest/api/playfab/insights/analytics/getdetails
|
111
|
+
*/
|
112
|
+
GetDetails(request: InsightsEmptyRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<InsightsGetDetailsResponse>;
|
113
|
+
/**
|
114
|
+
* Retrieves the range of allowed values for performance and data storage retention values as well as the submeter details
|
115
|
+
* for each performance level.
|
116
|
+
* https://docs.microsoft.com/rest/api/playfab/insights/analytics/getlimits
|
117
|
+
*/
|
118
|
+
GetLimits(request: InsightsEmptyRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<InsightsGetLimitsResponse>;
|
119
|
+
/**
|
120
|
+
* Gets the status of a SetPerformance or SetStorageRetention operation.
|
121
|
+
* https://docs.microsoft.com/rest/api/playfab/insights/analytics/getoperationstatus
|
122
|
+
*/
|
123
|
+
GetOperationStatus(request: InsightsGetOperationStatusRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<InsightsGetOperationStatusResponse>;
|
124
|
+
/**
|
125
|
+
* Gets a list of pending SetPerformance and/or SetStorageRetention operations for the title.
|
126
|
+
* https://docs.microsoft.com/rest/api/playfab/insights/analytics/getpendingoperations
|
127
|
+
*/
|
128
|
+
GetPendingOperations(request: InsightsGetPendingOperationsRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<InsightsGetPendingOperationsResponse>;
|
129
|
+
/**
|
130
|
+
* Sets the Insights performance level value for the title.
|
131
|
+
* https://docs.microsoft.com/rest/api/playfab/insights/analytics/setperformance
|
132
|
+
*/
|
133
|
+
SetPerformance(request: InsightsSetPerformanceRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<InsightsOperationResponse>;
|
134
|
+
/**
|
135
|
+
* Sets the Insights data storage retention days value for the title.
|
136
|
+
* https://docs.microsoft.com/rest/api/playfab/insights/analytics/setstorageretention
|
137
|
+
*/
|
138
|
+
SetStorageRetention(request: InsightsSetStorageRetentionRequest, customData?: any, extraHeaders?: Record<string, string>): Promise<InsightsOperationResponse>;
|
139
|
+
}
|
140
|
+
|
141
|
+
export { PlayFabInsightsApi as default };
|