async-playfab-web-sdk 1.192.250526-1 → 1.192.250526-3
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 +31 -31
- package/dist/Addon.js +4 -448
- package/dist/Addon.js.map +1 -1
- package/dist/Admin.d.ts +118 -118
- package/dist/Admin.js +4 -1108
- package/dist/Admin.js.map +1 -1
- package/dist/Authentication.d.ts +5 -5
- package/dist/Authentication.js +4 -286
- package/dist/Authentication.js.map +1 -1
- package/dist/Client.d.ts +174 -174
- package/dist/Client.js +4 -1889
- package/dist/Client.js.map +1 -1
- package/dist/CloudScript.d.ts +16 -16
- package/dist/CloudScript.js +4 -345
- package/dist/CloudScript.js.map +1 -1
- package/dist/Data.d.ts +8 -8
- package/dist/Data.js +4 -287
- package/dist/Data.js.map +1 -1
- package/dist/Economy.d.ts +47 -47
- package/dist/Economy.js +4 -610
- package/dist/Economy.js.map +1 -1
- package/dist/Events.d.ts +13 -13
- package/dist/Events.js +4 -323
- package/dist/Events.js.map +1 -1
- package/dist/Experimentation.d.ts +14 -14
- package/dist/Experimentation.js +4 -329
- package/dist/Experimentation.js.map +1 -1
- package/dist/Groups.d.ts +26 -26
- package/dist/Groups.js +4 -413
- package/dist/Groups.js.map +1 -1
- package/dist/Insights.d.ts +7 -7
- package/dist/Insights.js +4 -282
- package/dist/Insights.js.map +1 -1
- package/dist/Localization.d.ts +2 -2
- package/dist/Localization.js +4 -245
- package/dist/Localization.js.map +1 -1
- package/dist/Multiplayer.d.ts +88 -88
- package/dist/Multiplayer.js +4 -858
- package/dist/Multiplayer.js.map +1 -1
- package/dist/{PlayFabCommon-BUv4zqXf.d.ts → PlayFabCommon-BX3jSqGx.d.ts} +4 -6
- package/dist/Profiles.d.ts +10 -10
- package/dist/Profiles.js +4 -302
- package/dist/Profiles.js.map +1 -1
- package/dist/Progression.d.ts +24 -24
- package/dist/Progression.js +4 -400
- package/dist/Progression.js.map +1 -1
- package/dist/Server.d.ts +150 -150
- package/dist/Server.js +4 -1373
- package/dist/Server.js.map +1 -1
- package/dist/chunk-3FCAP7OZ.js +187 -0
- package/dist/chunk-3FCAP7OZ.js.map +1 -0
- package/dist/chunk-62SULWOK.js +195 -0
- package/dist/chunk-62SULWOK.js.map +1 -0
- package/dist/chunk-A7VD6ALV.js +222 -0
- package/dist/chunk-A7VD6ALV.js.map +1 -0
- package/dist/chunk-BX65UND2.js +632 -0
- package/dist/chunk-BX65UND2.js.map +1 -0
- package/dist/chunk-J4QS5VX5.js +19 -0
- package/dist/chunk-J4QS5VX5.js.map +1 -0
- package/dist/chunk-JGDO2ZE3.js +1663 -0
- package/dist/chunk-JGDO2ZE3.js.map +1 -0
- package/dist/chunk-POMI7LEF.js +76 -0
- package/dist/chunk-POMI7LEF.js.map +1 -0
- package/dist/chunk-Q3OF3AOJ.js +97 -0
- package/dist/chunk-Q3OF3AOJ.js.map +1 -0
- package/dist/chunk-QUZHVSVZ.js +174 -0
- package/dist/chunk-QUZHVSVZ.js.map +1 -0
- package/dist/chunk-QVLIVSO4.js +1147 -0
- package/dist/chunk-QVLIVSO4.js.map +1 -0
- package/dist/chunk-R7V7DFCF.js +103 -0
- package/dist/chunk-R7V7DFCF.js.map +1 -0
- package/dist/chunk-SGSEOIKS.js +56 -0
- package/dist/chunk-SGSEOIKS.js.map +1 -0
- package/dist/chunk-UOHHNVCJ.js +119 -0
- package/dist/chunk-UOHHNVCJ.js.map +1 -0
- package/dist/chunk-USKFWNQK.js +384 -0
- package/dist/chunk-USKFWNQK.js.map +1 -0
- package/dist/chunk-UX7LFJCX.js +61 -0
- package/dist/chunk-UX7LFJCX.js.map +1 -0
- package/dist/chunk-X34XZJB6.js +60 -0
- package/dist/chunk-X34XZJB6.js.map +1 -0
- package/dist/chunk-YNZF3WXS.js +882 -0
- package/dist/chunk-YNZF3WXS.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +49 -5988
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,384 @@
|
|
1
|
+
import {
|
2
|
+
PlayFabCommon
|
3
|
+
} from "./chunk-62SULWOK.js";
|
4
|
+
|
5
|
+
// src/apis/PlayFabEconomyApi.ts
|
6
|
+
var PlayFabEconomyApi = class extends PlayFabCommon {
|
7
|
+
/**
|
8
|
+
* Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.
|
9
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/addinventoryitems
|
10
|
+
*/
|
11
|
+
AddInventoryItems(request, extraHeaders) {
|
12
|
+
return this.ExecuteRequestWrapper("/Inventory/AddInventoryItems", request, "X-EntityToken", extraHeaders);
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* Creates a new item in the working catalog using provided metadata. Note: SAS tokens provided are valid for 1 hour.
|
16
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/createdraftitem
|
17
|
+
*/
|
18
|
+
CreateDraftItem(request, extraHeaders) {
|
19
|
+
return this.ExecuteRequestWrapper("/Catalog/CreateDraftItem", request, "X-EntityToken", extraHeaders);
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Creates one or more upload URLs which can be used by the client to upload raw file data. Content URls and uploaded
|
23
|
+
* content will be garbage collected after 24 hours if not attached to a draft or published item. Detailed pricing info
|
24
|
+
* around uploading content can be found here:
|
25
|
+
* https://learn.microsoft.com/en-us/gaming/playfab/features/pricing/meters/catalog-meters
|
26
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/createuploadurls
|
27
|
+
*/
|
28
|
+
CreateUploadUrls(request, extraHeaders) {
|
29
|
+
return this.ExecuteRequestWrapper("/Catalog/CreateUploadUrls", request, "X-EntityToken", extraHeaders);
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Deletes all reviews, helpfulness votes, and ratings submitted by the entity specified.
|
33
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteentityitemreviews
|
34
|
+
*/
|
35
|
+
DeleteEntityItemReviews(request, extraHeaders) {
|
36
|
+
return this.ExecuteRequestWrapper("/Catalog/DeleteEntityItemReviews", request, "X-EntityToken", extraHeaders);
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* Delete an Inventory Collection. More information about Inventory Collections can be found here:
|
40
|
+
* https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/collections
|
41
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventorycollection
|
42
|
+
*/
|
43
|
+
DeleteInventoryCollection(request, extraHeaders) {
|
44
|
+
return this.ExecuteRequestWrapper("/Inventory/DeleteInventoryCollection", request, "X-EntityToken", extraHeaders);
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Delete inventory items
|
48
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventoryitems
|
49
|
+
*/
|
50
|
+
DeleteInventoryItems(request, extraHeaders) {
|
51
|
+
return this.ExecuteRequestWrapper("/Inventory/DeleteInventoryItems", request, "X-EntityToken", extraHeaders);
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
* Removes an item from working catalog and all published versions from the public catalog.
|
55
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteitem
|
56
|
+
*/
|
57
|
+
DeleteItem(request, extraHeaders) {
|
58
|
+
return this.ExecuteRequestWrapper("/Catalog/DeleteItem", request, "X-EntityToken", extraHeaders);
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* Execute a list of Inventory Operations. A maximum list of 50 operations can be performed by a single request. There is
|
62
|
+
* also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items
|
63
|
+
* counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced
|
64
|
+
* RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds.
|
65
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/executeinventoryoperations
|
66
|
+
*/
|
67
|
+
ExecuteInventoryOperations(request, extraHeaders) {
|
68
|
+
return this.ExecuteRequestWrapper("/Inventory/ExecuteInventoryOperations", request, "X-EntityToken", extraHeaders);
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Transfer a list of inventory items. A maximum list of 50 operations can be performed by a single request. When the
|
72
|
+
* response code is 202, one or more operations did not complete within the timeframe of the request. You can identify the
|
73
|
+
* pending operations by looking for OperationStatus = 'InProgress'. You can check on the operation status at anytime
|
74
|
+
* within 1 day of the request by passing the TransactionToken to the GetInventoryOperationStatus API.
|
75
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/executetransferoperations
|
76
|
+
*/
|
77
|
+
ExecuteTransferOperations(request, extraHeaders) {
|
78
|
+
return this.ExecuteRequestWrapper("/Inventory/ExecuteTransferOperations", request, "X-EntityToken", extraHeaders);
|
79
|
+
}
|
80
|
+
/**
|
81
|
+
* Gets the configuration for the catalog. Only Title Entities can call this API. There is a limit of 100 requests in 10
|
82
|
+
* seconds for this API. More information about the Catalog Config can be found here:
|
83
|
+
* https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/settings
|
84
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getcatalogconfig
|
85
|
+
*/
|
86
|
+
GetCatalogConfig(request, extraHeaders) {
|
87
|
+
return this.ExecuteRequestWrapper("/Catalog/GetCatalogConfig", request, "X-EntityToken", extraHeaders);
|
88
|
+
}
|
89
|
+
/**
|
90
|
+
* Retrieves an item from the working catalog. This item represents the current working state of the item. GetDraftItem
|
91
|
+
* does not work off a cache of the Catalog and should be used when trying to get recent item updates. However, please note
|
92
|
+
* that item references data is cached and may take a few moments for changes to propagate. Note: SAS tokens provided are
|
93
|
+
* valid for 1 hour.
|
94
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getdraftitem
|
95
|
+
*/
|
96
|
+
GetDraftItem(request, extraHeaders) {
|
97
|
+
return this.ExecuteRequestWrapper("/Catalog/GetDraftItem", request, "X-EntityToken", extraHeaders);
|
98
|
+
}
|
99
|
+
/**
|
100
|
+
* Retrieves a paginated list of the items from the draft catalog. Up to 50 IDs can be retrieved in a single request.
|
101
|
+
* GetDraftItems does not work off a cache of the Catalog and should be used when trying to get recent item updates. Note:
|
102
|
+
* SAS tokens provided are valid for 1 hour.
|
103
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getdraftitems
|
104
|
+
*/
|
105
|
+
GetDraftItems(request, extraHeaders) {
|
106
|
+
return this.ExecuteRequestWrapper("/Catalog/GetDraftItems", request, "X-EntityToken", extraHeaders);
|
107
|
+
}
|
108
|
+
/**
|
109
|
+
* Retrieves a paginated list of the items from the draft catalog created by the Entity. Up to 50 items can be returned at
|
110
|
+
* once. You can use continuation tokens to paginate through results that return greater than the limit.
|
111
|
+
* GetEntityDraftItems does not work off a cache of the Catalog and should be used when trying to get recent item updates.
|
112
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentitydraftitems
|
113
|
+
*/
|
114
|
+
GetEntityDraftItems(request, extraHeaders) {
|
115
|
+
return this.ExecuteRequestWrapper("/Catalog/GetEntityDraftItems", request, "X-EntityToken", extraHeaders);
|
116
|
+
}
|
117
|
+
/**
|
118
|
+
* Gets the submitted review for the specified item by the authenticated entity. Individual ratings and reviews data update
|
119
|
+
* in near real time with delays within a few seconds.
|
120
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentityitemreview
|
121
|
+
*/
|
122
|
+
GetEntityItemReview(request, extraHeaders) {
|
123
|
+
return this.ExecuteRequestWrapper("/Catalog/GetEntityItemReview", request, "X-EntityToken", extraHeaders);
|
124
|
+
}
|
125
|
+
/**
|
126
|
+
* Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can
|
127
|
+
* use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for
|
128
|
+
* new collection Ids to show up.
|
129
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventorycollectionids
|
130
|
+
*/
|
131
|
+
GetInventoryCollectionIds(request, extraHeaders) {
|
132
|
+
return this.ExecuteRequestWrapper("/Inventory/GetInventoryCollectionIds", request, "X-EntityToken", extraHeaders);
|
133
|
+
}
|
134
|
+
/**
|
135
|
+
* Get current inventory items.
|
136
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryitems
|
137
|
+
*/
|
138
|
+
GetInventoryItems(request, extraHeaders) {
|
139
|
+
return this.ExecuteRequestWrapper("/Inventory/GetInventoryItems", request, "X-EntityToken", extraHeaders);
|
140
|
+
}
|
141
|
+
/**
|
142
|
+
* Get the status of an inventory operation using an OperationToken. You can check on the operation status at anytime
|
143
|
+
* within 1 day of the request by passing the TransactionToken to the this API.
|
144
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryoperationstatus
|
145
|
+
*/
|
146
|
+
GetInventoryOperationStatus(request, extraHeaders) {
|
147
|
+
return this.ExecuteRequestWrapper("/Inventory/GetInventoryOperationStatus", request, "X-EntityToken", extraHeaders);
|
148
|
+
}
|
149
|
+
/**
|
150
|
+
* Retrieves an item from the public catalog. GetItem does not work off a cache of the Catalog and should be used when
|
151
|
+
* trying to get recent item updates. However, please note that item references data is cached and may take a few moments
|
152
|
+
* for changes to propagate.
|
153
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitem
|
154
|
+
*/
|
155
|
+
GetItem(request, extraHeaders) {
|
156
|
+
return this.ExecuteRequestWrapper("/Catalog/GetItem", request, "X-EntityToken", extraHeaders);
|
157
|
+
}
|
158
|
+
/**
|
159
|
+
* Search for a given item and return a set of bundles and stores containing the item. Up to 50 items can be returned at
|
160
|
+
* once. You can use continuation tokens to paginate through results that return greater than the limit. This API is
|
161
|
+
* intended for tooling/automation scenarios and has a reduced RPS with Player Entities limited to 30 requests in 300
|
162
|
+
* seconds and Title Entities limited to 100 requests in 10 seconds.
|
163
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemcontainers
|
164
|
+
*/
|
165
|
+
GetItemContainers(request, extraHeaders) {
|
166
|
+
return this.ExecuteRequestWrapper("/Catalog/GetItemContainers", request, "X-EntityToken", extraHeaders);
|
167
|
+
}
|
168
|
+
/**
|
169
|
+
* Gets the moderation state for an item, including the concern category and string reason. More information about
|
170
|
+
* moderation states can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/ugc/moderation
|
171
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemmoderationstate
|
172
|
+
*/
|
173
|
+
GetItemModerationState(request, extraHeaders) {
|
174
|
+
return this.ExecuteRequestWrapper("/Catalog/GetItemModerationState", request, "X-EntityToken", extraHeaders);
|
175
|
+
}
|
176
|
+
/**
|
177
|
+
* Gets the status of a publish of an item.
|
178
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitempublishstatus
|
179
|
+
*/
|
180
|
+
GetItemPublishStatus(request, extraHeaders) {
|
181
|
+
return this.ExecuteRequestWrapper("/Catalog/GetItemPublishStatus", request, "X-EntityToken", extraHeaders);
|
182
|
+
}
|
183
|
+
/**
|
184
|
+
* Get a paginated set of reviews associated with the specified item. Individual ratings and reviews data update in near
|
185
|
+
* real time with delays within a few seconds.
|
186
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemreviews
|
187
|
+
*/
|
188
|
+
GetItemReviews(request, extraHeaders) {
|
189
|
+
return this.ExecuteRequestWrapper("/Catalog/GetItemReviews", request, "X-EntityToken", extraHeaders);
|
190
|
+
}
|
191
|
+
/**
|
192
|
+
* Get a summary of all ratings and reviews associated with the specified item. Summary ratings data is cached with update
|
193
|
+
* data coming within 15 minutes.
|
194
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemreviewsummary
|
195
|
+
*/
|
196
|
+
GetItemReviewSummary(request, extraHeaders) {
|
197
|
+
return this.ExecuteRequestWrapper("/Catalog/GetItemReviewSummary", request, "X-EntityToken", extraHeaders);
|
198
|
+
}
|
199
|
+
/**
|
200
|
+
* Retrieves items from the public catalog. Up to 50 items can be returned at once. GetItems does not work off a cache of
|
201
|
+
* the Catalog and should be used when trying to get recent item updates. However, please note that item references data is
|
202
|
+
* cached and may take a few moments for changes to propagate.
|
203
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitems
|
204
|
+
*/
|
205
|
+
GetItems(request, extraHeaders) {
|
206
|
+
return this.ExecuteRequestWrapper("/Catalog/GetItems", request, "X-EntityToken", extraHeaders);
|
207
|
+
}
|
208
|
+
/**
|
209
|
+
* Gets the access tokens.
|
210
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/getmicrosoftstoreaccesstokens
|
211
|
+
*/
|
212
|
+
GetMicrosoftStoreAccessTokens(request, extraHeaders) {
|
213
|
+
return this.ExecuteRequestWrapper("/Inventory/GetMicrosoftStoreAccessTokens", request, "X-EntityToken", extraHeaders);
|
214
|
+
}
|
215
|
+
/**
|
216
|
+
* Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to
|
217
|
+
* paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than
|
218
|
+
* getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds.
|
219
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/gettransactionhistory
|
220
|
+
*/
|
221
|
+
GetTransactionHistory(request, extraHeaders) {
|
222
|
+
return this.ExecuteRequestWrapper("/Inventory/GetTransactionHistory", request, "X-EntityToken", extraHeaders);
|
223
|
+
}
|
224
|
+
/**
|
225
|
+
* Initiates a publish of an item from the working catalog to the public catalog. You can use the GetItemPublishStatus API
|
226
|
+
* to track the state of the item publish.
|
227
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/publishdraftitem
|
228
|
+
*/
|
229
|
+
PublishDraftItem(request, extraHeaders) {
|
230
|
+
return this.ExecuteRequestWrapper("/Catalog/PublishDraftItem", request, "X-EntityToken", extraHeaders);
|
231
|
+
}
|
232
|
+
/**
|
233
|
+
* Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is
|
234
|
+
* uncapped.
|
235
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/purchaseinventoryitems
|
236
|
+
*/
|
237
|
+
PurchaseInventoryItems(request, extraHeaders) {
|
238
|
+
return this.ExecuteRequestWrapper("/Inventory/PurchaseInventoryItems", request, "X-EntityToken", extraHeaders);
|
239
|
+
}
|
240
|
+
/**
|
241
|
+
* Redeem items.
|
242
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemappleappstoreinventoryitems
|
243
|
+
*/
|
244
|
+
RedeemAppleAppStoreInventoryItems(request, extraHeaders) {
|
245
|
+
return this.ExecuteRequestWrapper("/Inventory/RedeemAppleAppStoreInventoryItems", request, "X-EntityToken", extraHeaders);
|
246
|
+
}
|
247
|
+
/**
|
248
|
+
* Redeem items.
|
249
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemgoogleplayinventoryitems
|
250
|
+
*/
|
251
|
+
RedeemGooglePlayInventoryItems(request, extraHeaders) {
|
252
|
+
return this.ExecuteRequestWrapper("/Inventory/RedeemGooglePlayInventoryItems", request, "X-EntityToken", extraHeaders);
|
253
|
+
}
|
254
|
+
/**
|
255
|
+
* Redeem items.
|
256
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemmicrosoftstoreinventoryitems
|
257
|
+
*/
|
258
|
+
RedeemMicrosoftStoreInventoryItems(request, extraHeaders) {
|
259
|
+
return this.ExecuteRequestWrapper("/Inventory/RedeemMicrosoftStoreInventoryItems", request, "X-EntityToken", extraHeaders);
|
260
|
+
}
|
261
|
+
/**
|
262
|
+
* Redeem items.
|
263
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemnintendoeshopinventoryitems
|
264
|
+
*/
|
265
|
+
RedeemNintendoEShopInventoryItems(request, extraHeaders) {
|
266
|
+
return this.ExecuteRequestWrapper("/Inventory/RedeemNintendoEShopInventoryItems", request, "X-EntityToken", extraHeaders);
|
267
|
+
}
|
268
|
+
/**
|
269
|
+
* Redeem items.
|
270
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemplaystationstoreinventoryitems
|
271
|
+
*/
|
272
|
+
RedeemPlayStationStoreInventoryItems(request, extraHeaders) {
|
273
|
+
return this.ExecuteRequestWrapper("/Inventory/RedeemPlayStationStoreInventoryItems", request, "X-EntityToken", extraHeaders);
|
274
|
+
}
|
275
|
+
/**
|
276
|
+
* Redeem items.
|
277
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemsteaminventoryitems
|
278
|
+
*/
|
279
|
+
RedeemSteamInventoryItems(request, extraHeaders) {
|
280
|
+
return this.ExecuteRequestWrapper("/Inventory/RedeemSteamInventoryItems", request, "X-EntityToken", extraHeaders);
|
281
|
+
}
|
282
|
+
/**
|
283
|
+
* Submit a report for an item, indicating in what way the item is inappropriate.
|
284
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitem
|
285
|
+
*/
|
286
|
+
ReportItem(request, extraHeaders) {
|
287
|
+
return this.ExecuteRequestWrapper("/Catalog/ReportItem", request, "X-EntityToken", extraHeaders);
|
288
|
+
}
|
289
|
+
/**
|
290
|
+
* Submit a report for a review
|
291
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitemreview
|
292
|
+
*/
|
293
|
+
ReportItemReview(request, extraHeaders) {
|
294
|
+
return this.ExecuteRequestWrapper("/Catalog/ReportItemReview", request, "X-EntityToken", extraHeaders);
|
295
|
+
}
|
296
|
+
/**
|
297
|
+
* Creates or updates a review for the specified item. More information around the caching surrounding item ratings and
|
298
|
+
* reviews can be found here:
|
299
|
+
* https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/ratings#ratings-design-and-caching
|
300
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/reviewitem
|
301
|
+
*/
|
302
|
+
ReviewItem(request, extraHeaders) {
|
303
|
+
return this.ExecuteRequestWrapper("/Catalog/ReviewItem", request, "X-EntityToken", extraHeaders);
|
304
|
+
}
|
305
|
+
/**
|
306
|
+
* Executes a search against the public catalog using the provided search parameters and returns a set of paginated
|
307
|
+
* results. SearchItems uses a cache of the catalog with item updates taking up to a few minutes to propagate. You should
|
308
|
+
* use the GetItem API for when trying to immediately get recent item updates. More information about the Search API can be
|
309
|
+
* found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/search
|
310
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/searchitems
|
311
|
+
*/
|
312
|
+
SearchItems(request, extraHeaders) {
|
313
|
+
return this.ExecuteRequestWrapper("/Catalog/SearchItems", request, "X-EntityToken", extraHeaders);
|
314
|
+
}
|
315
|
+
/**
|
316
|
+
* Sets the moderation state for an item, including the concern category and string reason. More information about
|
317
|
+
* moderation states can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/ugc/moderation
|
318
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/setitemmoderationstate
|
319
|
+
*/
|
320
|
+
SetItemModerationState(request, extraHeaders) {
|
321
|
+
return this.ExecuteRequestWrapper("/Catalog/SetItemModerationState", request, "X-EntityToken", extraHeaders);
|
322
|
+
}
|
323
|
+
/**
|
324
|
+
* Submit a vote for a review, indicating whether the review was helpful or unhelpful.
|
325
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/submititemreviewvote
|
326
|
+
*/
|
327
|
+
SubmitItemReviewVote(request, extraHeaders) {
|
328
|
+
return this.ExecuteRequestWrapper("/Catalog/SubmitItemReviewVote", request, "X-EntityToken", extraHeaders);
|
329
|
+
}
|
330
|
+
/**
|
331
|
+
* Subtract inventory items.
|
332
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/subtractinventoryitems
|
333
|
+
*/
|
334
|
+
SubtractInventoryItems(request, extraHeaders) {
|
335
|
+
return this.ExecuteRequestWrapper("/Inventory/SubtractInventoryItems", request, "X-EntityToken", extraHeaders);
|
336
|
+
}
|
337
|
+
/**
|
338
|
+
* Submit a request to takedown one or more reviews.
|
339
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/takedownitemreviews
|
340
|
+
*/
|
341
|
+
TakedownItemReviews(request, extraHeaders) {
|
342
|
+
return this.ExecuteRequestWrapper("/Catalog/TakedownItemReviews", request, "X-EntityToken", extraHeaders);
|
343
|
+
}
|
344
|
+
/**
|
345
|
+
* Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not
|
346
|
+
* complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus =
|
347
|
+
* 'InProgress'. You can check on the operation status at anytime within 1 day of the request by passing the
|
348
|
+
* TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found
|
349
|
+
* here:
|
350
|
+
* https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items
|
351
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/transferinventoryitems
|
352
|
+
*/
|
353
|
+
TransferInventoryItems(request, extraHeaders) {
|
354
|
+
return this.ExecuteRequestWrapper("/Inventory/TransferInventoryItems", request, "X-EntityToken", extraHeaders);
|
355
|
+
}
|
356
|
+
/**
|
357
|
+
* Updates the configuration for the catalog. Only Title Entities can call this API. There is a limit of 10 requests in 10
|
358
|
+
* seconds for this API. More information about the Catalog Config can be found here:
|
359
|
+
* https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/settings
|
360
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatecatalogconfig
|
361
|
+
*/
|
362
|
+
UpdateCatalogConfig(request, extraHeaders) {
|
363
|
+
return this.ExecuteRequestWrapper("/Catalog/UpdateCatalogConfig", request, "X-EntityToken", extraHeaders);
|
364
|
+
}
|
365
|
+
/**
|
366
|
+
* Update the metadata for an item in the working catalog. Note: SAS tokens provided are valid for 1 hour.
|
367
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatedraftitem
|
368
|
+
*/
|
369
|
+
UpdateDraftItem(request, extraHeaders) {
|
370
|
+
return this.ExecuteRequestWrapper("/Catalog/UpdateDraftItem", request, "X-EntityToken", extraHeaders);
|
371
|
+
}
|
372
|
+
/**
|
373
|
+
* Update inventory items
|
374
|
+
* https://docs.microsoft.com/rest/api/playfab/economy/inventory/updateinventoryitems
|
375
|
+
*/
|
376
|
+
UpdateInventoryItems(request, extraHeaders) {
|
377
|
+
return this.ExecuteRequestWrapper("/Inventory/UpdateInventoryItems", request, "X-EntityToken", extraHeaders);
|
378
|
+
}
|
379
|
+
};
|
380
|
+
|
381
|
+
export {
|
382
|
+
PlayFabEconomyApi
|
383
|
+
};
|
384
|
+
//# sourceMappingURL=chunk-USKFWNQK.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabEconomyApi.ts"],"sourcesContent":["import type {\n AddInventoryItemsRequest,\n CreateDraftItemRequest,\n CreateUploadUrlsRequest,\n DeleteEntityItemReviewsRequest,\n DeleteInventoryCollectionRequest,\n DeleteInventoryItemsRequest,\n DeleteItemRequest,\n ExecuteInventoryOperationsRequest,\n ExecuteTransferOperationsRequest,\n GetCatalogConfigRequest,\n GetDraftItemRequest,\n GetDraftItemsRequest,\n GetEntityDraftItemsRequest,\n GetEntityItemReviewRequest,\n GetInventoryCollectionIdsRequest,\n GetInventoryItemsRequest,\n GetInventoryOperationStatusRequest,\n GetItemRequest,\n GetItemContainersRequest,\n GetItemModerationStateRequest,\n GetItemPublishStatusRequest,\n GetItemReviewsRequest,\n GetItemReviewSummaryRequest,\n GetItemsRequest,\n GetMicrosoftStoreAccessTokensRequest,\n GetTransactionHistoryRequest,\n PublishDraftItemRequest,\n PurchaseInventoryItemsRequest,\n RedeemAppleAppStoreInventoryItemsRequest,\n RedeemGooglePlayInventoryItemsRequest,\n RedeemMicrosoftStoreInventoryItemsRequest,\n RedeemNintendoEShopInventoryItemsRequest,\n RedeemPlayStationStoreInventoryItemsRequest,\n RedeemSteamInventoryItemsRequest,\n ReportItemRequest,\n ReportItemReviewRequest,\n ReviewItemRequest,\n SearchItemsRequest,\n SetItemModerationStateRequest,\n SubmitItemReviewVoteRequest,\n SubtractInventoryItemsRequest,\n TakedownItemReviewsRequest,\n TransferInventoryItemsRequest,\n UpdateCatalogConfigRequest,\n UpdateDraftItemRequest,\n UpdateInventoryItemsRequest,\n AddInventoryItemsResponse,\n CreateDraftItemResponse,\n CreateUploadUrlsResponse,\n DeleteEntityItemReviewsResponse,\n DeleteInventoryCollectionResponse,\n DeleteInventoryItemsResponse,\n DeleteItemResponse,\n ExecuteInventoryOperationsResponse,\n ExecuteTransferOperationsResponse,\n GetCatalogConfigResponse,\n GetDraftItemResponse,\n GetDraftItemsResponse,\n GetEntityDraftItemsResponse,\n GetEntityItemReviewResponse,\n GetInventoryCollectionIdsResponse,\n GetInventoryItemsResponse,\n GetInventoryOperationStatusResponse,\n GetItemResponse,\n GetItemContainersResponse,\n GetItemModerationStateResponse,\n GetItemPublishStatusResponse,\n GetItemReviewsResponse,\n GetItemReviewSummaryResponse,\n GetItemsResponse,\n GetMicrosoftStoreAccessTokensResponse,\n GetTransactionHistoryResponse,\n PublishDraftItemResponse,\n PurchaseInventoryItemsResponse,\n RedeemAppleAppStoreInventoryItemsResponse,\n RedeemGooglePlayInventoryItemsResponse,\n RedeemMicrosoftStoreInventoryItemsResponse,\n RedeemNintendoEShopInventoryItemsResponse,\n RedeemPlayStationStoreInventoryItemsResponse,\n RedeemSteamInventoryItemsResponse,\n ReportItemResponse,\n ReportItemReviewResponse,\n ReviewItemResponse,\n SearchItemsResponse,\n SetItemModerationStateResponse,\n SubmitItemReviewVoteResponse,\n SubtractInventoryItemsResponse,\n TakedownItemReviewsResponse,\n TransferInventoryItemsResponse,\n UpdateCatalogConfigResponse,\n UpdateDraftItemResponse,\n UpdateInventoryItemsResponse,\n} from \"../types/PlayFabEconomyApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabEconomyApi extends PlayFabCommon {\n\n /**\n * Add inventory items. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is uncapped.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/addinventoryitems\n */\n AddInventoryItems (request: AddInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<AddInventoryItemsResponse>(\"/Inventory/AddInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates a new item in the working catalog using provided metadata. Note: SAS tokens provided are valid for 1 hour.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/createdraftitem\n */\n CreateDraftItem (request: CreateDraftItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateDraftItemResponse>(\"/Catalog/CreateDraftItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates one or more upload URLs which can be used by the client to upload raw file data. Content URls and uploaded\n * content will be garbage collected after 24 hours if not attached to a draft or published item. Detailed pricing info\n * around uploading content can be found here:\n * https://learn.microsoft.com/en-us/gaming/playfab/features/pricing/meters/catalog-meters\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/createuploadurls\n */\n CreateUploadUrls (request: CreateUploadUrlsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateUploadUrlsResponse>(\"/Catalog/CreateUploadUrls\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes all reviews, helpfulness votes, and ratings submitted by the entity specified.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteentityitemreviews\n */\n DeleteEntityItemReviews (request: DeleteEntityItemReviewsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteEntityItemReviewsResponse>(\"/Catalog/DeleteEntityItemReviews\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Delete an Inventory Collection. More information about Inventory Collections can be found here:\n * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/collections\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventorycollection\n */\n DeleteInventoryCollection (request: DeleteInventoryCollectionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteInventoryCollectionResponse>(\"/Inventory/DeleteInventoryCollection\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Delete inventory items\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/deleteinventoryitems\n */\n DeleteInventoryItems (request: DeleteInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteInventoryItemsResponse>(\"/Inventory/DeleteInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Removes an item from working catalog and all published versions from the public catalog.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/deleteitem\n */\n DeleteItem (request: DeleteItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteItemResponse>(\"/Catalog/DeleteItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Execute a list of Inventory Operations. A maximum list of 50 operations can be performed by a single request. There is\n * also a limit to 300 items that can be modified/added in a single request. For example, adding a bundle with 50 items\n * counts as 50 items modified. All operations must be done within a single inventory collection. This API has a reduced\n * RPS compared to an individual inventory operation with Player Entities limited to 60 requests in 90 seconds.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/executeinventoryoperations\n */\n ExecuteInventoryOperations (request: ExecuteInventoryOperationsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ExecuteInventoryOperationsResponse>(\"/Inventory/ExecuteInventoryOperations\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Transfer a list of inventory items. A maximum list of 50 operations can be performed by a single request. When the\n * response code is 202, one or more operations did not complete within the timeframe of the request. You can identify the\n * pending operations by looking for OperationStatus = 'InProgress'. You can check on the operation status at anytime\n * within 1 day of the request by passing the TransactionToken to the GetInventoryOperationStatus API.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/executetransferoperations\n */\n ExecuteTransferOperations (request: ExecuteTransferOperationsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ExecuteTransferOperationsResponse>(\"/Inventory/ExecuteTransferOperations\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the configuration for the catalog. Only Title Entities can call this API. There is a limit of 100 requests in 10\n * seconds for this API. More information about the Catalog Config can be found here:\n * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/settings\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getcatalogconfig\n */\n GetCatalogConfig (request: GetCatalogConfigRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetCatalogConfigResponse>(\"/Catalog/GetCatalogConfig\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves an item from the working catalog. This item represents the current working state of the item. GetDraftItem\n * does not work off a cache of the Catalog and should be used when trying to get recent item updates. However, please note\n * that item references data is cached and may take a few moments for changes to propagate. Note: SAS tokens provided are\n * valid for 1 hour.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getdraftitem\n */\n GetDraftItem (request: GetDraftItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetDraftItemResponse>(\"/Catalog/GetDraftItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves a paginated list of the items from the draft catalog. Up to 50 IDs can be retrieved in a single request.\n * GetDraftItems does not work off a cache of the Catalog and should be used when trying to get recent item updates. Note:\n * SAS tokens provided are valid for 1 hour.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getdraftitems\n */\n GetDraftItems (request: GetDraftItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetDraftItemsResponse>(\"/Catalog/GetDraftItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves a paginated list of the items from the draft catalog created by the Entity. Up to 50 items can be returned at\n * once. You can use continuation tokens to paginate through results that return greater than the limit.\n * GetEntityDraftItems does not work off a cache of the Catalog and should be used when trying to get recent item updates.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentitydraftitems\n */\n GetEntityDraftItems (request: GetEntityDraftItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityDraftItemsResponse>(\"/Catalog/GetEntityDraftItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the submitted review for the specified item by the authenticated entity. Individual ratings and reviews data update\n * in near real time with delays within a few seconds.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getentityitemreview\n */\n GetEntityItemReview (request: GetEntityItemReviewRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityItemReviewResponse>(\"/Catalog/GetEntityItemReview\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can\n * use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for\n * new collection Ids to show up.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventorycollectionids\n */\n GetInventoryCollectionIds (request: GetInventoryCollectionIdsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetInventoryCollectionIdsResponse>(\"/Inventory/GetInventoryCollectionIds\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Get current inventory items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryitems\n */\n GetInventoryItems (request: GetInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetInventoryItemsResponse>(\"/Inventory/GetInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Get the status of an inventory operation using an OperationToken. You can check on the operation status at anytime\n * within 1 day of the request by passing the TransactionToken to the this API.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getinventoryoperationstatus\n */\n GetInventoryOperationStatus (request: GetInventoryOperationStatusRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetInventoryOperationStatusResponse>(\"/Inventory/GetInventoryOperationStatus\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves an item from the public catalog. GetItem does not work off a cache of the Catalog and should be used when\n * trying to get recent item updates. However, please note that item references data is cached and may take a few moments\n * for changes to propagate.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitem\n */\n GetItem (request: GetItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetItemResponse>(\"/Catalog/GetItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Search for a given item and return a set of bundles and stores containing the item. Up to 50 items can be returned at\n * once. You can use continuation tokens to paginate through results that return greater than the limit. This API is\n * intended for tooling/automation scenarios and has a reduced RPS with Player Entities limited to 30 requests in 300\n * seconds and Title Entities limited to 100 requests in 10 seconds.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemcontainers\n */\n GetItemContainers (request: GetItemContainersRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetItemContainersResponse>(\"/Catalog/GetItemContainers\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the moderation state for an item, including the concern category and string reason. More information about\n * moderation states can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/ugc/moderation\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemmoderationstate\n */\n GetItemModerationState (request: GetItemModerationStateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetItemModerationStateResponse>(\"/Catalog/GetItemModerationState\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the status of a publish of an item.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitempublishstatus\n */\n GetItemPublishStatus (request: GetItemPublishStatusRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetItemPublishStatusResponse>(\"/Catalog/GetItemPublishStatus\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Get a paginated set of reviews associated with the specified item. Individual ratings and reviews data update in near\n * real time with delays within a few seconds.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemreviews\n */\n GetItemReviews (request: GetItemReviewsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetItemReviewsResponse>(\"/Catalog/GetItemReviews\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Get a summary of all ratings and reviews associated with the specified item. Summary ratings data is cached with update\n * data coming within 15 minutes.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitemreviewsummary\n */\n GetItemReviewSummary (request: GetItemReviewSummaryRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetItemReviewSummaryResponse>(\"/Catalog/GetItemReviewSummary\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves items from the public catalog. Up to 50 items can be returned at once. GetItems does not work off a cache of\n * the Catalog and should be used when trying to get recent item updates. However, please note that item references data is\n * cached and may take a few moments for changes to propagate.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/getitems\n */\n GetItems (request: GetItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetItemsResponse>(\"/Catalog/GetItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the access tokens.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/getmicrosoftstoreaccesstokens\n */\n GetMicrosoftStoreAccessTokens (request: GetMicrosoftStoreAccessTokensRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetMicrosoftStoreAccessTokensResponse>(\"/Inventory/GetMicrosoftStoreAccessTokens\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Get transaction history for a player. Up to 250 Events can be returned at once. You can use continuation tokens to\n * paginate through results that return greater than the limit. Getting transaction history has a lower RPS limit than\n * getting a Player's inventory with Player Entities having a limit of 30 requests in 300 seconds.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/gettransactionhistory\n */\n GetTransactionHistory (request: GetTransactionHistoryRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTransactionHistoryResponse>(\"/Inventory/GetTransactionHistory\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Initiates a publish of an item from the working catalog to the public catalog. You can use the GetItemPublishStatus API\n * to track the state of the item publish.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/publishdraftitem\n */\n PublishDraftItem (request: PublishDraftItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<PublishDraftItemResponse>(\"/Catalog/PublishDraftItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Purchase an item or bundle. Up to 10,000 stacks of items can be added to a single inventory collection. Stack size is\n * uncapped.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/purchaseinventoryitems\n */\n PurchaseInventoryItems (request: PurchaseInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<PurchaseInventoryItemsResponse>(\"/Inventory/PurchaseInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Redeem items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemappleappstoreinventoryitems\n */\n RedeemAppleAppStoreInventoryItems (request: RedeemAppleAppStoreInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RedeemAppleAppStoreInventoryItemsResponse>(\"/Inventory/RedeemAppleAppStoreInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Redeem items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemgoogleplayinventoryitems\n */\n RedeemGooglePlayInventoryItems (request: RedeemGooglePlayInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RedeemGooglePlayInventoryItemsResponse>(\"/Inventory/RedeemGooglePlayInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Redeem items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemmicrosoftstoreinventoryitems\n */\n RedeemMicrosoftStoreInventoryItems (request: RedeemMicrosoftStoreInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RedeemMicrosoftStoreInventoryItemsResponse>(\"/Inventory/RedeemMicrosoftStoreInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Redeem items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemnintendoeshopinventoryitems\n */\n RedeemNintendoEShopInventoryItems (request: RedeemNintendoEShopInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RedeemNintendoEShopInventoryItemsResponse>(\"/Inventory/RedeemNintendoEShopInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Redeem items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemplaystationstoreinventoryitems\n */\n RedeemPlayStationStoreInventoryItems (request: RedeemPlayStationStoreInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RedeemPlayStationStoreInventoryItemsResponse>(\"/Inventory/RedeemPlayStationStoreInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Redeem items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/redeemsteaminventoryitems\n */\n RedeemSteamInventoryItems (request: RedeemSteamInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RedeemSteamInventoryItemsResponse>(\"/Inventory/RedeemSteamInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Submit a report for an item, indicating in what way the item is inappropriate.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitem\n */\n ReportItem (request: ReportItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ReportItemResponse>(\"/Catalog/ReportItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Submit a report for a review\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reportitemreview\n */\n ReportItemReview (request: ReportItemReviewRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ReportItemReviewResponse>(\"/Catalog/ReportItemReview\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates or updates a review for the specified item. More information around the caching surrounding item ratings and\n * reviews can be found here:\n * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/ratings#ratings-design-and-caching\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/reviewitem\n */\n ReviewItem (request: ReviewItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ReviewItemResponse>(\"/Catalog/ReviewItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Executes a search against the public catalog using the provided search parameters and returns a set of paginated\n * results. SearchItems uses a cache of the catalog with item updates taking up to a few minutes to propagate. You should\n * use the GetItem API for when trying to immediately get recent item updates. More information about the Search API can be\n * found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/search\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/searchitems\n */\n SearchItems (request: SearchItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SearchItemsResponse>(\"/Catalog/SearchItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the moderation state for an item, including the concern category and string reason. More information about\n * moderation states can be found here: https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/ugc/moderation\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/setitemmoderationstate\n */\n SetItemModerationState (request: SetItemModerationStateRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetItemModerationStateResponse>(\"/Catalog/SetItemModerationState\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Submit a vote for a review, indicating whether the review was helpful or unhelpful.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/submititemreviewvote\n */\n SubmitItemReviewVote (request: SubmitItemReviewVoteRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SubmitItemReviewVoteResponse>(\"/Catalog/SubmitItemReviewVote\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Subtract inventory items.\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/subtractinventoryitems\n */\n SubtractInventoryItems (request: SubtractInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SubtractInventoryItemsResponse>(\"/Inventory/SubtractInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Submit a request to takedown one or more reviews.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/takedownitemreviews\n */\n TakedownItemReviews (request: TakedownItemReviewsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<TakedownItemReviewsResponse>(\"/Catalog/TakedownItemReviews\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Transfer inventory items. When transferring across collections, a 202 response indicates that the transfer did not\n * complete within the timeframe of the request. You can identify the pending operations by looking for OperationStatus =\n * 'InProgress'. You can check on the operation status at anytime within 1 day of the request by passing the\n * TransactionToken to the GetInventoryOperationStatus API. More information about item transfer scenarios can be found\n * here:\n * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/inventory/?tabs=inventory-game-manager#transfer-inventory-items\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/transferinventoryitems\n */\n TransferInventoryItems (request: TransferInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<TransferInventoryItemsResponse>(\"/Inventory/TransferInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Updates the configuration for the catalog. Only Title Entities can call this API. There is a limit of 10 requests in 10\n * seconds for this API. More information about the Catalog Config can be found here:\n * https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/settings\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatecatalogconfig\n */\n UpdateCatalogConfig (request: UpdateCatalogConfigRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UpdateCatalogConfigResponse>(\"/Catalog/UpdateCatalogConfig\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Update the metadata for an item in the working catalog. Note: SAS tokens provided are valid for 1 hour.\n * https://docs.microsoft.com/rest/api/playfab/economy/catalog/updatedraftitem\n */\n UpdateDraftItem (request: UpdateDraftItemRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UpdateDraftItemResponse>(\"/Catalog/UpdateDraftItem\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Update inventory items\n * https://docs.microsoft.com/rest/api/playfab/economy/inventory/updateinventoryitems\n */\n UpdateInventoryItems (request: UpdateInventoryItemsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UpdateInventoryItemsResponse>(\"/Inventory/UpdateInventoryItems\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAgGA,IAAqB,oBAArB,cAA+C,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EAMzD,kBAAmB,SAAmC,cAAuC;AACzF,WAAO,KAAK,sBAAiD,gCAAgC,SAAS,iBAAiB,YAAY;AAAA,EACvI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,gBAAiB,SAAiC,cAAuC;AACrF,WAAO,KAAK,sBAA+C,4BAA4B,SAAS,iBAAiB,YAAY;AAAA,EACjI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,iBAAkB,SAAkC,cAAuC;AACvF,WAAO,KAAK,sBAAgD,6BAA6B,SAAS,iBAAiB,YAAY;AAAA,EACnI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,wBAAyB,SAAyC,cAAuC;AACrG,WAAO,KAAK,sBAAuD,oCAAoC,SAAS,iBAAiB,YAAY;AAAA,EACjJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,0BAA2B,SAA2C,cAAuC;AACzG,WAAO,KAA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sBAAmD,gCAAgC,SAAS,iBAAiB,YAAY;AAAA,EACzI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,uBAAwB,SAAwC,cAAuC;AACnG,WAAO,KAAK,sBAAsD,qCAAqC,SAAS,iBAAiB,YAAY;AAAA,EACjJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,oBAAqB,SAAqC,cAAuC;AAC7F,WAAO,KAAK,sBAAmD,gCAAgC,SAAS,iBAAiB,YAAY;AAAA,EACzI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,gBAAiB,SAAiC,cAAuC;AACrF,WAAO,KAAK,sBAA+C,4BAA4B,SAAS,iBAAiB,YAAY;AAAA,EACjI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,qBAAsB,SAAsC,cAAuC;AAC/F,WAAO,KAAK,sBAAoD,mCAAmC,SAAS,iBAAiB,YAAY;AAAA,EAC7I;AAEJ;","names":[]}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import {
|
2
|
+
PlayFabCommon
|
3
|
+
} from "./chunk-62SULWOK.js";
|
4
|
+
|
5
|
+
// src/apis/PlayFabDataApi.ts
|
6
|
+
var PlayFabDataApi = class extends PlayFabCommon {
|
7
|
+
/**
|
8
|
+
* Abort pending file uploads to an entity's profile.
|
9
|
+
* https://docs.microsoft.com/rest/api/playfab/data/file/abortfileuploads
|
10
|
+
*/
|
11
|
+
AbortFileUploads(request, extraHeaders) {
|
12
|
+
return this.ExecuteRequestWrapper("/File/AbortFileUploads", request, "X-EntityToken", extraHeaders);
|
13
|
+
}
|
14
|
+
/**
|
15
|
+
* Delete files on an entity's profile.
|
16
|
+
* https://docs.microsoft.com/rest/api/playfab/data/file/deletefiles
|
17
|
+
*/
|
18
|
+
DeleteFiles(request, extraHeaders) {
|
19
|
+
return this.ExecuteRequestWrapper("/File/DeleteFiles", request, "X-EntityToken", extraHeaders);
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Finalize file uploads to an entity's profile.
|
23
|
+
* https://docs.microsoft.com/rest/api/playfab/data/file/finalizefileuploads
|
24
|
+
*/
|
25
|
+
FinalizeFileUploads(request, extraHeaders) {
|
26
|
+
return this.ExecuteRequestWrapper("/File/FinalizeFileUploads", request, "X-EntityToken", extraHeaders);
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Retrieves file metadata from an entity's profile.
|
30
|
+
* https://docs.microsoft.com/rest/api/playfab/data/file/getfiles
|
31
|
+
*/
|
32
|
+
GetFiles(request, extraHeaders) {
|
33
|
+
return this.ExecuteRequestWrapper("/File/GetFiles", request, "X-EntityToken", extraHeaders);
|
34
|
+
}
|
35
|
+
/**
|
36
|
+
* Retrieves objects from an entity's profile.
|
37
|
+
* https://docs.microsoft.com/rest/api/playfab/data/object/getobjects
|
38
|
+
*/
|
39
|
+
GetObjects(request, extraHeaders) {
|
40
|
+
return this.ExecuteRequestWrapper("/Object/GetObjects", request, "X-EntityToken", extraHeaders);
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* Initiates file uploads to an entity's profile.
|
44
|
+
* https://docs.microsoft.com/rest/api/playfab/data/file/initiatefileuploads
|
45
|
+
*/
|
46
|
+
InitiateFileUploads(request, extraHeaders) {
|
47
|
+
return this.ExecuteRequestWrapper("/File/InitiateFileUploads", request, "X-EntityToken", extraHeaders);
|
48
|
+
}
|
49
|
+
/**
|
50
|
+
* Sets objects on an entity's profile.
|
51
|
+
* https://docs.microsoft.com/rest/api/playfab/data/object/setobjects
|
52
|
+
*/
|
53
|
+
SetObjects(request, extraHeaders) {
|
54
|
+
return this.ExecuteRequestWrapper("/Object/SetObjects", request, "X-EntityToken", extraHeaders);
|
55
|
+
}
|
56
|
+
};
|
57
|
+
|
58
|
+
export {
|
59
|
+
PlayFabDataApi
|
60
|
+
};
|
61
|
+
//# sourceMappingURL=chunk-UX7LFJCX.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabDataApi.ts"],"sourcesContent":["import type {\n AbortFileUploadsRequest,\n DeleteFilesRequest,\n FinalizeFileUploadsRequest,\n GetFilesRequest,\n GetObjectsRequest,\n InitiateFileUploadsRequest,\n SetObjectsRequest,\n AbortFileUploadsResponse,\n DeleteFilesResponse,\n FinalizeFileUploadsResponse,\n GetFilesResponse,\n GetObjectsResponse,\n InitiateFileUploadsResponse,\n SetObjectsResponse,\n} from \"../types/PlayFabDataApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabDataApi extends PlayFabCommon {\n\n /**\n * Abort pending file uploads to an entity's profile.\n * https://docs.microsoft.com/rest/api/playfab/data/file/abortfileuploads\n */\n AbortFileUploads (request: AbortFileUploadsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<AbortFileUploadsResponse>(\"/File/AbortFileUploads\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Delete files on an entity's profile.\n * https://docs.microsoft.com/rest/api/playfab/data/file/deletefiles\n */\n DeleteFiles (request: DeleteFilesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteFilesResponse>(\"/File/DeleteFiles\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Finalize file uploads to an entity's profile.\n * https://docs.microsoft.com/rest/api/playfab/data/file/finalizefileuploads\n */\n FinalizeFileUploads (request: FinalizeFileUploadsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<FinalizeFileUploadsResponse>(\"/File/FinalizeFileUploads\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves file metadata from an entity's profile.\n * https://docs.microsoft.com/rest/api/playfab/data/file/getfiles\n */\n GetFiles (request: GetFilesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetFilesResponse>(\"/File/GetFiles\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves objects from an entity's profile.\n * https://docs.microsoft.com/rest/api/playfab/data/object/getobjects\n */\n GetObjects (request: GetObjectsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetObjectsResponse>(\"/Object/GetObjects\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Initiates file uploads to an entity's profile.\n * https://docs.microsoft.com/rest/api/playfab/data/file/initiatefileuploads\n */\n InitiateFileUploads (request: InitiateFileUploadsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InitiateFileUploadsResponse>(\"/File/InitiateFileUploads\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets objects on an entity's profile.\n * https://docs.microsoft.com/rest/api/playfab/data/object/setobjects\n */\n SetObjects (request: SetObjectsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetObjectsResponse>(\"/Object/SetObjects\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAkBA,IAAqB,iBAArB,cAA4C,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EAMtD,iBAAkB,SAAkC,cAAuC;AACvF,WAAO,KAAK,sBAAgD,0BAA0B,SAAS,iBAAiB,YAAY;AAAA,EAChI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,YAAa,SAA6B,cAAuC;AAC7E,WAAO,KAAK,sBAA2C,qBAAqB,SAAS,iBAAiB,YAAY;AAAA,EACtH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,oBAAqB,SAAqC,cAAuC;AAC7F,WAAO,KAAK,sBAAmD,6BAA6B,SAAS,iBAAiB,YAAY;AAAA,EACtI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAU,SAA0B,cAAuC;AACvE,WAAO,KAAK,sBAAwC,kBAAkB,SAAS,iBAAiB,YAAY;AAAA,EAChH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,WAAY,SAA4B,cAAuC;AAC3E,WAAO,KAAK,sBAA0C,sBAAsB,SAAS,iBAAiB,YAAY;AAAA,EACtH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,oBAAqB,SAAqC,cAAuC;AAC7F,WAAO,KAAK,sBAAmD,6BAA6B,SAAS,iBAAiB,YAAY;AAAA,EACtI;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,WAAY,SAA4B,cAAuC;AAC3E,WAAO,KAAK,sBAA0C,sBAAsB,SAAS,iBAAiB,YAAY;AAAA,EACtH;AAEJ;","names":[]}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import {
|
2
|
+
PlayFabCommon
|
3
|
+
} from "./chunk-62SULWOK.js";
|
4
|
+
|
5
|
+
// src/apis/PlayFabAuthenticationApi.ts
|
6
|
+
var PlayFabAuthenticationApi = class extends PlayFabCommon {
|
7
|
+
/**
|
8
|
+
* Create a game_server entity token and return a new or existing game_server entity.
|
9
|
+
* https://docs.microsoft.com/rest/api/playfab/authentication/authentication/authenticategameserverwithcustomid
|
10
|
+
*/
|
11
|
+
AuthenticateGameServerWithCustomId(request, extraHeaders) {
|
12
|
+
return this.ExecuteRequestWrapper("/GameServerIdentity/AuthenticateGameServerWithCustomId", request, "X-EntityToken", extraHeaders).then((result) => {
|
13
|
+
var _a;
|
14
|
+
if ((_a = result == null ? void 0 : result.EntityToken) == null ? void 0 : _a.EntityToken)
|
15
|
+
this.entityToken = result.EntityToken.EntityToken;
|
16
|
+
return result;
|
17
|
+
});
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Delete a game_server entity.
|
21
|
+
* https://docs.microsoft.com/rest/api/playfab/authentication/authentication/delete
|
22
|
+
*/
|
23
|
+
Delete(request, extraHeaders) {
|
24
|
+
return this.ExecuteRequestWrapper("/GameServerIdentity/Delete", request, "X-EntityToken", extraHeaders);
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* Method to exchange a legacy AuthenticationTicket or title SecretKey for an Entity Token or to refresh a still valid
|
28
|
+
* Entity Token.
|
29
|
+
* https://docs.microsoft.com/rest/api/playfab/authentication/authentication/getentitytoken
|
30
|
+
*/
|
31
|
+
GetEntityToken(request, extraHeaders) {
|
32
|
+
var authKey = null;
|
33
|
+
var authValue = null;
|
34
|
+
if (!authKey && this.sessionTicket) {
|
35
|
+
var authInfo = this.GetAuthInfo(request, authKey = "X-Authorization");
|
36
|
+
authKey = authInfo.authKey, authValue = authInfo.authValue;
|
37
|
+
}
|
38
|
+
if (!authKey && this.settings.developerSecretKey) {
|
39
|
+
var authInfo = this.GetAuthInfo(request, authKey = "X-SecretKey");
|
40
|
+
authKey = authInfo.authKey, authValue = authInfo.authValue;
|
41
|
+
}
|
42
|
+
return this.ExecuteRequestWrapper("/Authentication/GetEntityToken", request, authKey, extraHeaders).then((result) => {
|
43
|
+
if (result == null ? void 0 : result.EntityToken)
|
44
|
+
this.entityToken = result.EntityToken;
|
45
|
+
return result;
|
46
|
+
});
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Method for a server to validate a client provided EntityToken. Only callable by the title entity.
|
50
|
+
* https://docs.microsoft.com/rest/api/playfab/authentication/authentication/validateentitytoken
|
51
|
+
*/
|
52
|
+
ValidateEntityToken(request, extraHeaders) {
|
53
|
+
return this.ExecuteRequestWrapper("/Authentication/ValidateEntityToken", request, "X-EntityToken", extraHeaders);
|
54
|
+
}
|
55
|
+
};
|
56
|
+
|
57
|
+
export {
|
58
|
+
PlayFabAuthenticationApi
|
59
|
+
};
|
60
|
+
//# sourceMappingURL=chunk-X34XZJB6.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabAuthenticationApi.ts"],"sourcesContent":["import type { EmptyResponse } from \"../types/PlayFab\";\nimport type {\n AuthenticateCustomIdRequest,\n DeleteRequest,\n GetEntityTokenRequest,\n ValidateEntityTokenRequest,\n AuthenticateCustomIdResult,\n GetEntityTokenResponse,\n ValidateEntityTokenResponse,\n} from \"../types/PlayFabAuthenticationApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabAuthenticationApi extends PlayFabCommon {\n\n /**\n * Create a game_server entity token and return a new or existing game_server entity.\n * https://docs.microsoft.com/rest/api/playfab/authentication/authentication/authenticategameserverwithcustomid\n */\n AuthenticateGameServerWithCustomId (request: AuthenticateCustomIdRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<AuthenticateCustomIdResult>(\"/GameServerIdentity/AuthenticateGameServerWithCustomId\", request, \"X-EntityToken\", extraHeaders)\n .then(result => {\n if (result?.EntityToken?.EntityToken)\n this.entityToken = result.EntityToken.EntityToken;\n return result;\n });\n }\n\n /**\n * Delete a game_server entity.\n * https://docs.microsoft.com/rest/api/playfab/authentication/authentication/delete\n */\n Delete (request: DeleteRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResponse>(\"/GameServerIdentity/Delete\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Method to exchange a legacy AuthenticationTicket or title SecretKey for an Entity Token or to refresh a still valid\n * Entity Token.\n * https://docs.microsoft.com/rest/api/playfab/authentication/authentication/getentitytoken\n */\n GetEntityToken (request: GetEntityTokenRequest, extraHeaders?: Record<string, string>) {\n var authKey: string | null = null; var authValue: string | null = null;\n if (!authKey && this.sessionTicket) { var authInfo = this.GetAuthInfo(request, authKey=\"X-Authorization\"); authKey = authInfo.authKey, authValue = authInfo.authValue; }\n if (!authKey && this.settings.developerSecretKey) { var authInfo = this.GetAuthInfo(request, authKey=\"X-SecretKey\"); authKey = authInfo.authKey, authValue = authInfo.authValue; }\n return this.ExecuteRequestWrapper<GetEntityTokenResponse>(\"/Authentication/GetEntityToken\", request, authKey, extraHeaders)\n .then(result => {\n if (result?.EntityToken)\n this.entityToken = result.EntityToken;\n return result;\n });\n }\n\n /**\n * Method for a server to validate a client provided EntityToken. Only callable by the title entity.\n * https://docs.microsoft.com/rest/api/playfab/authentication/authentication/validateentitytoken\n */\n ValidateEntityToken (request: ValidateEntityTokenRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ValidateEntityTokenResponse>(\"/Authentication/ValidateEntityToken\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAYA,IAAqB,2BAArB,cAAsD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhE,mCAAoC,SAAsC,cAAuC;AAC7G,WAAO,KAAK,sBAAkD,0DAA0D,SAAS,iBAAiB,YAAY,EAC7J,KAAK,YAAU;AApBxB;AAqBY,WAAI,sCAAQ,gBAAR,mBAAqB;AACrB,aAAK,cAAc,OAAO,YAAY;AAC1C,aAAO;AAAA,IACX,CAAC;AAAA,EACL;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAQ,SAAwB,cAAuC;AACnE,WAAO,KAAK,sBAAqC,8BAA8B,SAAS,iBAAiB,YAAY;AAAA,EACzH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,eAAgB,SAAgC,cAAuC;AACnF,QAAI,UAAyB;AAAM,QAAI,YAA2B;AAClE,QAAI,CAAC,WAAW,KAAK,eAAe;AAAE,UAAI,WAAW,KAAK,YAAY,SAAS,UAAQ,iBAAiB;AAAG,gBAAU,SAAS,SAAS,YAAY,SAAS;AAAA,IAAW;AACvK,QAAI,CAAC,WAAW,KAAK,SAAS,oBAAoB;AAAE,UAAI,WAAW,KAAK,YAAY,SAAS,UAAQ,aAAa;AAAG,gBAAU,SAAS,SAAS,YAAY,SAAS;AAAA,IAAW;AACjL,WAAO,KAAK,sBAA8C,kCAAkC,SAAS,SAAS,YAAY,EACzH,KAAK,YAAU;AACZ,UAAI,iCAAQ;AACR,aAAK,cAAc,OAAO;AAC9B,aAAO;AAAA,IACX,CAAC;AAAA,EACL;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,oBAAqB,SAAqC,cAAuC;AAC7F,WAAO,KAAK,sBAAmD,uCAAuC,SAAS,iBAAiB,YAAY;AAAA,EAChJ;AAEJ;","names":[]}
|