async-playfab-web-sdk 1.192.250526-1 → 1.192.250526-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/Addon.js +4 -448
  2. package/dist/Addon.js.map +1 -1
  3. package/dist/Admin.js +4 -1108
  4. package/dist/Admin.js.map +1 -1
  5. package/dist/Authentication.js +4 -286
  6. package/dist/Authentication.js.map +1 -1
  7. package/dist/Client.js +4 -1889
  8. package/dist/Client.js.map +1 -1
  9. package/dist/CloudScript.js +4 -345
  10. package/dist/CloudScript.js.map +1 -1
  11. package/dist/Data.js +4 -287
  12. package/dist/Data.js.map +1 -1
  13. package/dist/Economy.js +4 -610
  14. package/dist/Economy.js.map +1 -1
  15. package/dist/Events.js +4 -323
  16. package/dist/Events.js.map +1 -1
  17. package/dist/Experimentation.js +4 -329
  18. package/dist/Experimentation.js.map +1 -1
  19. package/dist/Groups.js +4 -413
  20. package/dist/Groups.js.map +1 -1
  21. package/dist/Insights.js +4 -282
  22. package/dist/Insights.js.map +1 -1
  23. package/dist/Localization.js +4 -245
  24. package/dist/Localization.js.map +1 -1
  25. package/dist/Multiplayer.js +4 -858
  26. package/dist/Multiplayer.js.map +1 -1
  27. package/dist/Profiles.js +4 -302
  28. package/dist/Profiles.js.map +1 -1
  29. package/dist/Progression.js +4 -400
  30. package/dist/Progression.js.map +1 -1
  31. package/dist/Server.js +4 -1373
  32. package/dist/Server.js.map +1 -1
  33. package/dist/chunk-2NRPVFSH.js +632 -0
  34. package/dist/chunk-2NRPVFSH.js.map +1 -0
  35. package/dist/chunk-42AWSTMK.js +103 -0
  36. package/dist/chunk-42AWSTMK.js.map +1 -0
  37. package/dist/chunk-5AAYYQU7.js +119 -0
  38. package/dist/chunk-5AAYYQU7.js.map +1 -0
  39. package/dist/chunk-7VP4SIOQ.js +76 -0
  40. package/dist/chunk-7VP4SIOQ.js.map +1 -0
  41. package/dist/chunk-BZECCU2H.js +1147 -0
  42. package/dist/chunk-BZECCU2H.js.map +1 -0
  43. package/dist/chunk-CDBIRT6V.js +187 -0
  44. package/dist/chunk-CDBIRT6V.js.map +1 -0
  45. package/dist/chunk-CY3H2GBI.js +239 -0
  46. package/dist/chunk-CY3H2GBI.js.map +1 -0
  47. package/dist/chunk-D53KEX67.js +19 -0
  48. package/dist/chunk-D53KEX67.js.map +1 -0
  49. package/dist/chunk-EY77H23H.js +174 -0
  50. package/dist/chunk-EY77H23H.js.map +1 -0
  51. package/dist/chunk-FPCXHDA7.js +882 -0
  52. package/dist/chunk-FPCXHDA7.js.map +1 -0
  53. package/dist/chunk-JRE75IDS.js +97 -0
  54. package/dist/chunk-JRE75IDS.js.map +1 -0
  55. package/dist/chunk-QCCQJDCR.js +1663 -0
  56. package/dist/chunk-QCCQJDCR.js.map +1 -0
  57. package/dist/chunk-RHQFG2EP.js +384 -0
  58. package/dist/chunk-RHQFG2EP.js.map +1 -0
  59. package/dist/chunk-RODJAJP2.js +56 -0
  60. package/dist/chunk-RODJAJP2.js.map +1 -0
  61. package/dist/chunk-V56QSAWL.js +60 -0
  62. package/dist/chunk-V56QSAWL.js.map +1 -0
  63. package/dist/chunk-VTCQRNBL.js +61 -0
  64. package/dist/chunk-VTCQRNBL.js.map +1 -0
  65. package/dist/chunk-ZY56RXKC.js +222 -0
  66. package/dist/chunk-ZY56RXKC.js.map +1 -0
  67. package/dist/index.js +49 -5988
  68. package/dist/index.js.map +1 -1
  69. package/package.json +1 -1
package/dist/Economy.js CHANGED
@@ -1,613 +1,7 @@
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/PlayFabEconomyApi.ts
237
- var PlayFabEconomyApi = class extends PlayFabCommon {
238
- /**
239
- * Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.
240
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/addinventoryitems
241
- */
242
- AddInventoryItems(request, customData, extraHeaders) {
243
- return this.ExecuteRequestWrapper("/Inventory/AddInventoryItems", request, "X-EntityToken", customData, extraHeaders);
244
- }
245
- /**
246
- * Creates a new item in the working catalog using provided metadata. Note: SAS tokens provided are valid for 1 hour.
247
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/createdraftitem
248
- */
249
- CreateDraftItem(request, customData, extraHeaders) {
250
- return this.ExecuteRequestWrapper("/Catalog/CreateDraftItem", request, "X-EntityToken", customData, extraHeaders);
251
- }
252
- /**
253
- * Creates one or more upload URLs which can be used by the client to upload raw file data. Content URls and uploaded
254
- * content will be garbage collected after 24 hours if not attached to a draft or published item. Detailed pricing info
255
- * around uploading content can be found here:
256
- * https://learn.microsoft.com/en-us/gaming/playfab/features/pricing/meters/catalog-meters
257
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/createuploadurls
258
- */
259
- CreateUploadUrls(request, customData, extraHeaders) {
260
- return this.ExecuteRequestWrapper("/Catalog/CreateUploadUrls", request, "X-EntityToken", customData, extraHeaders);
261
- }
262
- /**
263
- * Deletes all reviews, helpfulness votes, and ratings submitted by the entity specified.
264
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteentityitemreviews
265
- */
266
- DeleteEntityItemReviews(request, customData, extraHeaders) {
267
- return this.ExecuteRequestWrapper("/Catalog/DeleteEntityItemReviews", request, "X-EntityToken", customData, extraHeaders);
268
- }
269
- /**
270
- * Delete an Inventory Collection. More information about Inventory Collections can be found here:
271
- * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/collections
272
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventorycollection
273
- */
274
- DeleteInventoryCollection(request, customData, extraHeaders) {
275
- return this.ExecuteRequestWrapper("/Inventory/DeleteInventoryCollection", request, "X-EntityToken", customData, extraHeaders);
276
- }
277
- /**
278
- * Delete inventory items
279
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventoryitems
280
- */
281
- DeleteInventoryItems(request, customData, extraHeaders) {
282
- return this.ExecuteRequestWrapper("/Inventory/DeleteInventoryItems", request, "X-EntityToken", customData, extraHeaders);
283
- }
284
- /**
285
- * Removes an item from working catalog and all published versions from the public catalog.
286
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteitem
287
- */
288
- DeleteItem(request, customData, extraHeaders) {
289
- return this.ExecuteRequestWrapper("/Catalog/DeleteItem", request, "X-EntityToken", customData, extraHeaders);
290
- }
291
- /**
292
- * Execute a list of Inventory Operations. A maximum list of 50 operations can be performed by a single request. There is
293
- * also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items
294
- * counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced
295
- * RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds.
296
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/executeinventoryoperations
297
- */
298
- ExecuteInventoryOperations(request, customData, extraHeaders) {
299
- return this.ExecuteRequestWrapper("/Inventory/ExecuteInventoryOperations", request, "X-EntityToken", customData, extraHeaders);
300
- }
301
- /**
302
- * Transfer a list of inventory items. A maximum list of 50 operations can be performed by a single request. When the
303
- * response code is 202, one or more operations did not complete within the timeframe of the request. You can identify the
304
- * pending operations by looking for OperationStatus = 'InProgress'. You can check on the operation status at anytime
305
- * within 1 day of the request by passing the TransactionToken to the GetInventoryOperationStatus API.
306
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/executetransferoperations
307
- */
308
- ExecuteTransferOperations(request, customData, extraHeaders) {
309
- return this.ExecuteRequestWrapper("/Inventory/ExecuteTransferOperations", request, "X-EntityToken", customData, extraHeaders);
310
- }
311
- /**
312
- * Gets the configuration for the catalog. Only Title Entities can call this API. There is a limit of 100 requests in 10
313
- * seconds for this API. More information about the Catalog Config can be found here:
314
- * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/settings
315
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getcatalogconfig
316
- */
317
- GetCatalogConfig(request, customData, extraHeaders) {
318
- return this.ExecuteRequestWrapper("/Catalog/GetCatalogConfig", request, "X-EntityToken", customData, extraHeaders);
319
- }
320
- /**
321
- * Retrieves an item from the working catalog. This item represents the current working state of the item. GetDraftItem
322
- * does not work off a cache of the Catalog and should be used when trying to get recent item updates. However, please note
323
- * that item references data is cached and may take a few moments for changes to propagate. Note: SAS tokens provided are
324
- * valid for 1 hour.
325
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getdraftitem
326
- */
327
- GetDraftItem(request, customData, extraHeaders) {
328
- return this.ExecuteRequestWrapper("/Catalog/GetDraftItem", request, "X-EntityToken", customData, extraHeaders);
329
- }
330
- /**
331
- * Retrieves a paginated list of the items from the draft catalog. Up to 50 IDs can be retrieved in a single request.
332
- * GetDraftItems does not work off a cache of the Catalog and should be used when trying to get recent item updates. Note:
333
- * SAS tokens provided are valid for 1 hour.
334
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getdraftitems
335
- */
336
- GetDraftItems(request, customData, extraHeaders) {
337
- return this.ExecuteRequestWrapper("/Catalog/GetDraftItems", request, "X-EntityToken", customData, extraHeaders);
338
- }
339
- /**
340
- * Retrieves a paginated list of the items from the draft catalog created by the Entity. Up to 50 items can be returned at
341
- * once. You can use continuation tokens to paginate through results that return greater than the limit.
342
- * GetEntityDraftItems does not work off a cache of the Catalog and should be used when trying to get recent item updates.
343
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentitydraftitems
344
- */
345
- GetEntityDraftItems(request, customData, extraHeaders) {
346
- return this.ExecuteRequestWrapper("/Catalog/GetEntityDraftItems", request, "X-EntityToken", customData, extraHeaders);
347
- }
348
- /**
349
- * Gets the submitted review for the specified item by the authenticated entity. Individual ratings and reviews data update
350
- * in near real time with delays within a few seconds.
351
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentityitemreview
352
- */
353
- GetEntityItemReview(request, customData, extraHeaders) {
354
- return this.ExecuteRequestWrapper("/Catalog/GetEntityItemReview", request, "X-EntityToken", customData, extraHeaders);
355
- }
356
- /**
357
- * Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can
358
- * use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for
359
- * new collection Ids to show up.
360
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventorycollectionids
361
- */
362
- GetInventoryCollectionIds(request, customData, extraHeaders) {
363
- return this.ExecuteRequestWrapper("/Inventory/GetInventoryCollectionIds", request, "X-EntityToken", customData, extraHeaders);
364
- }
365
- /**
366
- * Get current inventory items.
367
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryitems
368
- */
369
- GetInventoryItems(request, customData, extraHeaders) {
370
- return this.ExecuteRequestWrapper("/Inventory/GetInventoryItems", request, "X-EntityToken", customData, extraHeaders);
371
- }
372
- /**
373
- * Get the status of an inventory operation using an OperationToken. You can check on the operation status at anytime
374
- * within 1 day of the request by passing the TransactionToken to the this API.
375
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryoperationstatus
376
- */
377
- GetInventoryOperationStatus(request, customData, extraHeaders) {
378
- return this.ExecuteRequestWrapper("/Inventory/GetInventoryOperationStatus", request, "X-EntityToken", customData, extraHeaders);
379
- }
380
- /**
381
- * Retrieves an item from the public catalog. GetItem does not work off a cache of the Catalog and should be used when
382
- * trying to get recent item updates. However, please note that item references data is cached and may take a few moments
383
- * for changes to propagate.
384
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitem
385
- */
386
- GetItem(request, customData, extraHeaders) {
387
- return this.ExecuteRequestWrapper("/Catalog/GetItem", request, "X-EntityToken", customData, extraHeaders);
388
- }
389
- /**
390
- * Search for a given item and return a set of bundles and stores containing the item. Up to 50 items can be returned at
391
- * once. You can use continuation tokens to paginate through results that return greater than the limit. This API is
392
- * intended for tooling/automation scenarios and has a reduced RPS with Player Entities limited to 30 requests in 300
393
- * seconds and Title Entities limited to 100 requests in 10 seconds.
394
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemcontainers
395
- */
396
- GetItemContainers(request, customData, extraHeaders) {
397
- return this.ExecuteRequestWrapper("/Catalog/GetItemContainers", request, "X-EntityToken", customData, extraHeaders);
398
- }
399
- /**
400
- * Gets the moderation state for an item, including the concern category and string reason. More information about
401
- * moderation states can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/ugc/moderation
402
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemmoderationstate
403
- */
404
- GetItemModerationState(request, customData, extraHeaders) {
405
- return this.ExecuteRequestWrapper("/Catalog/GetItemModerationState", request, "X-EntityToken", customData, extraHeaders);
406
- }
407
- /**
408
- * Gets the status of a publish of an item.
409
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitempublishstatus
410
- */
411
- GetItemPublishStatus(request, customData, extraHeaders) {
412
- return this.ExecuteRequestWrapper("/Catalog/GetItemPublishStatus", request, "X-EntityToken", customData, extraHeaders);
413
- }
414
- /**
415
- * Get a paginated set of reviews associated with the specified item. Individual ratings and reviews data update in near
416
- * real time with delays within a few seconds.
417
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemreviews
418
- */
419
- GetItemReviews(request, customData, extraHeaders) {
420
- return this.ExecuteRequestWrapper("/Catalog/GetItemReviews", request, "X-EntityToken", customData, extraHeaders);
421
- }
422
- /**
423
- * Get a summary of all ratings and reviews associated with the specified item. Summary ratings data is cached with update
424
- * data coming within 15 minutes.
425
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemreviewsummary
426
- */
427
- GetItemReviewSummary(request, customData, extraHeaders) {
428
- return this.ExecuteRequestWrapper("/Catalog/GetItemReviewSummary", request, "X-EntityToken", customData, extraHeaders);
429
- }
430
- /**
431
- * Retrieves items from the public catalog. Up to 50 items can be returned at once. GetItems does not work off a cache of
432
- * the Catalog and should be used when trying to get recent item updates. However, please note that item references data is
433
- * cached and may take a few moments for changes to propagate.
434
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitems
435
- */
436
- GetItems(request, customData, extraHeaders) {
437
- return this.ExecuteRequestWrapper("/Catalog/GetItems", request, "X-EntityToken", customData, extraHeaders);
438
- }
439
- /**
440
- * Gets the access tokens.
441
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getmicrosoftstoreaccesstokens
442
- */
443
- GetMicrosoftStoreAccessTokens(request, customData, extraHeaders) {
444
- return this.ExecuteRequestWrapper("/Inventory/GetMicrosoftStoreAccessTokens", request, "X-EntityToken", customData, extraHeaders);
445
- }
446
- /**
447
- * Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to
448
- * paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than
449
- * getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds.
450
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/gettransactionhistory
451
- */
452
- GetTransactionHistory(request, customData, extraHeaders) {
453
- return this.ExecuteRequestWrapper("/Inventory/GetTransactionHistory", request, "X-EntityToken", customData, extraHeaders);
454
- }
455
- /**
456
- * Initiates a publish of an item from the working catalog to the public catalog. You can use the GetItemPublishStatus API
457
- * to track the state of the item publish.
458
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/publishdraftitem
459
- */
460
- PublishDraftItem(request, customData, extraHeaders) {
461
- return this.ExecuteRequestWrapper("/Catalog/PublishDraftItem", request, "X-EntityToken", customData, extraHeaders);
462
- }
463
- /**
464
- * Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is
465
- * uncapped.
466
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/purchaseinventoryitems
467
- */
468
- PurchaseInventoryItems(request, customData, extraHeaders) {
469
- return this.ExecuteRequestWrapper("/Inventory/PurchaseInventoryItems", request, "X-EntityToken", customData, extraHeaders);
470
- }
471
- /**
472
- * Redeem items.
473
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemappleappstoreinventoryitems
474
- */
475
- RedeemAppleAppStoreInventoryItems(request, customData, extraHeaders) {
476
- return this.ExecuteRequestWrapper("/Inventory/RedeemAppleAppStoreInventoryItems", request, "X-EntityToken", customData, extraHeaders);
477
- }
478
- /**
479
- * Redeem items.
480
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemgoogleplayinventoryitems
481
- */
482
- RedeemGooglePlayInventoryItems(request, customData, extraHeaders) {
483
- return this.ExecuteRequestWrapper("/Inventory/RedeemGooglePlayInventoryItems", request, "X-EntityToken", customData, extraHeaders);
484
- }
485
- /**
486
- * Redeem items.
487
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemmicrosoftstoreinventoryitems
488
- */
489
- RedeemMicrosoftStoreInventoryItems(request, customData, extraHeaders) {
490
- return this.ExecuteRequestWrapper("/Inventory/RedeemMicrosoftStoreInventoryItems", request, "X-EntityToken", customData, extraHeaders);
491
- }
492
- /**
493
- * Redeem items.
494
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemnintendoeshopinventoryitems
495
- */
496
- RedeemNintendoEShopInventoryItems(request, customData, extraHeaders) {
497
- return this.ExecuteRequestWrapper("/Inventory/RedeemNintendoEShopInventoryItems", request, "X-EntityToken", customData, extraHeaders);
498
- }
499
- /**
500
- * Redeem items.
501
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemplaystationstoreinventoryitems
502
- */
503
- RedeemPlayStationStoreInventoryItems(request, customData, extraHeaders) {
504
- return this.ExecuteRequestWrapper("/Inventory/RedeemPlayStationStoreInventoryItems", request, "X-EntityToken", customData, extraHeaders);
505
- }
506
- /**
507
- * Redeem items.
508
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemsteaminventoryitems
509
- */
510
- RedeemSteamInventoryItems(request, customData, extraHeaders) {
511
- return this.ExecuteRequestWrapper("/Inventory/RedeemSteamInventoryItems", request, "X-EntityToken", customData, extraHeaders);
512
- }
513
- /**
514
- * Submit a report for an item, indicating in what way the item is inappropriate.
515
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitem
516
- */
517
- ReportItem(request, customData, extraHeaders) {
518
- return this.ExecuteRequestWrapper("/Catalog/ReportItem", request, "X-EntityToken", customData, extraHeaders);
519
- }
520
- /**
521
- * Submit a report for a review
522
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitemreview
523
- */
524
- ReportItemReview(request, customData, extraHeaders) {
525
- return this.ExecuteRequestWrapper("/Catalog/ReportItemReview", request, "X-EntityToken", customData, extraHeaders);
526
- }
527
- /**
528
- * Creates or updates a review for the specified item. More information around the caching surrounding item ratings and
529
- * reviews can be found here:
530
- * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/ratings#ratings-design-and-caching
531
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reviewitem
532
- */
533
- ReviewItem(request, customData, extraHeaders) {
534
- return this.ExecuteRequestWrapper("/Catalog/ReviewItem", request, "X-EntityToken", customData, extraHeaders);
535
- }
536
- /**
537
- * Executes a search against the public catalog using the provided search parameters and returns a set of paginated
538
- * results. SearchItems uses a cache of the catalog with item updates taking up to a few minutes to propagate. You should
539
- * use the GetItem API for when trying to immediately get recent item updates. More information about the Search API can be
540
- * found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/search
541
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/searchitems
542
- */
543
- SearchItems(request, customData, extraHeaders) {
544
- return this.ExecuteRequestWrapper("/Catalog/SearchItems", request, "X-EntityToken", customData, extraHeaders);
545
- }
546
- /**
547
- * Sets the moderation state for an item, including the concern category and string reason. More information about
548
- * moderation states can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/ugc/moderation
549
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/setitemmoderationstate
550
- */
551
- SetItemModerationState(request, customData, extraHeaders) {
552
- return this.ExecuteRequestWrapper("/Catalog/SetItemModerationState", request, "X-EntityToken", customData, extraHeaders);
553
- }
554
- /**
555
- * Submit a vote for a review, indicating whether the review was helpful or unhelpful.
556
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/submititemreviewvote
557
- */
558
- SubmitItemReviewVote(request, customData, extraHeaders) {
559
- return this.ExecuteRequestWrapper("/Catalog/SubmitItemReviewVote", request, "X-EntityToken", customData, extraHeaders);
560
- }
561
- /**
562
- * Subtract inventory items.
563
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/subtractinventoryitems
564
- */
565
- SubtractInventoryItems(request, customData, extraHeaders) {
566
- return this.ExecuteRequestWrapper("/Inventory/SubtractInventoryItems", request, "X-EntityToken", customData, extraHeaders);
567
- }
568
- /**
569
- * Submit a request to takedown one or more reviews.
570
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/takedownitemreviews
571
- */
572
- TakedownItemReviews(request, customData, extraHeaders) {
573
- return this.ExecuteRequestWrapper("/Catalog/TakedownItemReviews", request, "X-EntityToken", customData, extraHeaders);
574
- }
575
- /**
576
- * Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not
577
- * complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus =
578
- * 'InProgress'. You can check on the operation status at anytime within 1 day of the request by passing the
579
- * TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found
580
- * here:
581
- * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items
582
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/transferinventoryitems
583
- */
584
- TransferInventoryItems(request, customData, extraHeaders) {
585
- return this.ExecuteRequestWrapper("/Inventory/TransferInventoryItems", request, "X-EntityToken", customData, extraHeaders);
586
- }
587
- /**
588
- * Updates the configuration for the catalog. Only Title Entities can call this API. There is a limit of 10 requests in 10
589
- * seconds for this API. More information about the Catalog Config can be found here:
590
- * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/settings
591
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatecatalogconfig
592
- */
593
- UpdateCatalogConfig(request, customData, extraHeaders) {
594
- return this.ExecuteRequestWrapper("/Catalog/UpdateCatalogConfig", request, "X-EntityToken", customData, extraHeaders);
595
- }
596
- /**
597
- * Update the metadata for an item in the working catalog. Note: SAS tokens provided are valid for 1 hour.
598
- * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatedraftitem
599
- */
600
- UpdateDraftItem(request, customData, extraHeaders) {
601
- return this.ExecuteRequestWrapper("/Catalog/UpdateDraftItem", request, "X-EntityToken", customData, extraHeaders);
602
- }
603
- /**
604
- * Update inventory items
605
- * https://docs.microsoft.com/rest/api/playfab/economy/inventory/updateinventoryitems
606
- */
607
- UpdateInventoryItems(request, customData, extraHeaders) {
608
- return this.ExecuteRequestWrapper("/Inventory/UpdateInventoryItems", request, "X-EntityToken", customData, extraHeaders);
609
- }
610
- };
1
+ import {
2
+ PlayFabEconomyApi
3
+ } from "./chunk-RHQFG2EP.js";
4
+ import "./chunk-CY3H2GBI.js";
611
5
  export {
612
6
  PlayFabEconomyApi as default
613
7
  };