@community-fabs/playfab-web-sdk 1.193.250606-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +32 -0
  3. package/dist/Addon.d.ts +731 -0
  4. package/dist/Addon.js +8 -0
  5. package/dist/Addon.js.map +1 -0
  6. package/dist/Admin.d.ts +5675 -0
  7. package/dist/Admin.js +8 -0
  8. package/dist/Admin.js.map +1 -0
  9. package/dist/Authentication.d.ts +136 -0
  10. package/dist/Authentication.js +8 -0
  11. package/dist/Authentication.js.map +1 -0
  12. package/dist/Client.d.ts +6398 -0
  13. package/dist/Client.js +8 -0
  14. package/dist/Client.js.map +1 -0
  15. package/dist/CloudScript.d.ts +679 -0
  16. package/dist/CloudScript.js +8 -0
  17. package/dist/CloudScript.js.map +1 -0
  18. package/dist/Data.d.ts +347 -0
  19. package/dist/Data.js +8 -0
  20. package/dist/Data.js.map +1 -0
  21. package/dist/Economy.d.ts +2910 -0
  22. package/dist/Economy.js +8 -0
  23. package/dist/Economy.js.map +1 -0
  24. package/dist/Events.d.ts +494 -0
  25. package/dist/Events.js +8 -0
  26. package/dist/Events.js.map +1 -0
  27. package/dist/Experimentation.d.ts +504 -0
  28. package/dist/Experimentation.js +8 -0
  29. package/dist/Experimentation.js.map +1 -0
  30. package/dist/Groups.d.ts +785 -0
  31. package/dist/Groups.js +8 -0
  32. package/dist/Groups.js.map +1 -0
  33. package/dist/Insights.d.ts +167 -0
  34. package/dist/Insights.js +8 -0
  35. package/dist/Insights.js.map +1 -0
  36. package/dist/Localization.d.ts +23 -0
  37. package/dist/Localization.js +8 -0
  38. package/dist/Localization.js.map +1 -0
  39. package/dist/Matchmaker.d.ts +271 -0
  40. package/dist/Matchmaker.js +8 -0
  41. package/dist/Matchmaker.js.map +1 -0
  42. package/dist/Multiplayer.d.ts +5587 -0
  43. package/dist/Multiplayer.js +8 -0
  44. package/dist/Multiplayer.js.map +1 -0
  45. package/dist/PlayFabCommon-Dnp_xHg5.d.ts +68 -0
  46. package/dist/Profiles.d.ts +422 -0
  47. package/dist/Profiles.js +8 -0
  48. package/dist/Profiles.js.map +1 -0
  49. package/dist/Progression.d.ts +862 -0
  50. package/dist/Progression.js +8 -0
  51. package/dist/Progression.js.map +1 -0
  52. package/dist/Server.d.ts +5551 -0
  53. package/dist/Server.js +8 -0
  54. package/dist/Server.js.map +1 -0
  55. package/dist/chunk-3DU2LYBT.js +2673 -0
  56. package/dist/chunk-3DU2LYBT.js.map +1 -0
  57. package/dist/chunk-6OZSERVG.js +198 -0
  58. package/dist/chunk-6OZSERVG.js.map +1 -0
  59. package/dist/chunk-BD7SF6AA.js +357 -0
  60. package/dist/chunk-BD7SF6AA.js.map +1 -0
  61. package/dist/chunk-CPJ6FMQ3.js +421 -0
  62. package/dist/chunk-CPJ6FMQ3.js.map +1 -0
  63. package/dist/chunk-IFBBLD7Q.js +2477 -0
  64. package/dist/chunk-IFBBLD7Q.js.map +1 -0
  65. package/dist/chunk-J2KKGAWN.js +2387 -0
  66. package/dist/chunk-J2KKGAWN.js.map +1 -0
  67. package/dist/chunk-K2I6VCQK.js +270 -0
  68. package/dist/chunk-K2I6VCQK.js.map +1 -0
  69. package/dist/chunk-MHSKIHSG.js +22 -0
  70. package/dist/chunk-MHSKIHSG.js.map +1 -0
  71. package/dist/chunk-MQZCB76F.js +82 -0
  72. package/dist/chunk-MQZCB76F.js.map +1 -0
  73. package/dist/chunk-OZLGFCPU.js +421 -0
  74. package/dist/chunk-OZLGFCPU.js.map +1 -0
  75. package/dist/chunk-P4FCADAY.js +175 -0
  76. package/dist/chunk-P4FCADAY.js.map +1 -0
  77. package/dist/chunk-QHQBHTHP.js +76 -0
  78. package/dist/chunk-QHQBHTHP.js.map +1 -0
  79. package/dist/chunk-QJRCYM7I.js +82 -0
  80. package/dist/chunk-QJRCYM7I.js.map +1 -0
  81. package/dist/chunk-RVBFE5D5.js +237 -0
  82. package/dist/chunk-RVBFE5D5.js.map +1 -0
  83. package/dist/chunk-SF5NNTLE.js +225 -0
  84. package/dist/chunk-SF5NNTLE.js.map +1 -0
  85. package/dist/chunk-SZJQBNVS.js +197 -0
  86. package/dist/chunk-SZJQBNVS.js.map +1 -0
  87. package/dist/chunk-WBPWV6H3.js +2970 -0
  88. package/dist/chunk-WBPWV6H3.js.map +1 -0
  89. package/dist/chunk-YI4OQ74L.js +1048 -0
  90. package/dist/chunk-YI4OQ74L.js.map +1 -0
  91. package/dist/index.d.ts +18 -0
  92. package/dist/index.js +72 -0
  93. package/dist/index.js.map +1 -0
  94. package/package.json +29 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/Data.d.ts ADDED
@@ -0,0 +1,347 @@
1
+ import { I as IPlayFabRequestCommon, a as IPlayFabResultCommon, P as PlayFabCommon } from './PlayFabCommon-Dnp_xHg5.js';
2
+
3
+ interface AbortFileUploadsRequest extends IPlayFabRequestCommon {
4
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
5
+ CustomTags?: Record<string, string | null>;
6
+ /** The entity to perform this action on. */
7
+ Entity: EntityKey;
8
+ /** Names of the files to have their pending uploads aborted. */
9
+ FileNames: string[];
10
+ /**
11
+ * The expected version of the profile, if set and doesn&#39;t match the current version of the profile the operation will not
12
+ * be performed.
13
+ */
14
+ ProfileVersion?: number;
15
+ }
16
+ interface AbortFileUploadsResponse extends IPlayFabResultCommon {
17
+ /** The entity id and type. */
18
+ Entity?: EntityKey;
19
+ /** The current version of the profile, can be used for concurrency control during updates. */
20
+ ProfileVersion: number;
21
+ }
22
+ interface DeleteFilesRequest extends IPlayFabRequestCommon {
23
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
24
+ CustomTags?: Record<string, string | null>;
25
+ /** The entity to perform this action on. */
26
+ Entity: EntityKey;
27
+ /** Names of the files to be deleted. */
28
+ FileNames: string[];
29
+ /**
30
+ * The expected version of the profile, if set and doesn&#39;t match the current version of the profile the operation will not
31
+ * be performed.
32
+ */
33
+ ProfileVersion?: number;
34
+ }
35
+ interface DeleteFilesResponse extends IPlayFabResultCommon {
36
+ /** The entity id and type. */
37
+ Entity?: EntityKey;
38
+ /** The current version of the profile, can be used for concurrency control during updates. */
39
+ ProfileVersion: number;
40
+ }
41
+ interface EntityKey {
42
+ /** Unique ID of the entity. */
43
+ Id: string;
44
+ /** Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types */
45
+ Type?: string;
46
+ /**
47
+ * Alternate name for Type.
48
+ * @deprecated Please use Type instead.
49
+ */
50
+ TypeString?: string;
51
+ }
52
+ interface FinalizeFileUploadsRequest extends IPlayFabRequestCommon {
53
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
54
+ CustomTags?: Record<string, string | null>;
55
+ /** The entity to perform this action on. */
56
+ Entity: EntityKey;
57
+ /** Names of the files to be finalized. Restricted to a-Z, 0-9, &#39;(&#39;, &#39;)&#39;, &#39;_&#39;, &#39;-&#39; and &#39;.&#39; */
58
+ FileNames: string[];
59
+ /** The current version of the profile, can be used for concurrency control during updates. */
60
+ ProfileVersion: number;
61
+ }
62
+ interface FinalizeFileUploadsResponse extends IPlayFabResultCommon {
63
+ /** The entity id and type. */
64
+ Entity?: EntityKey;
65
+ /** Collection of metadata for the entity&#39;s files */
66
+ Metadata?: Record<string, GetFileMetadata>;
67
+ /** The current version of the profile, can be used for concurrency control during updates. */
68
+ ProfileVersion: number;
69
+ }
70
+ interface GetFileMetadata {
71
+ /** Checksum value for the file, can be used to check if the file on the server has changed. */
72
+ Checksum?: string;
73
+ /** Download URL where the file can be retrieved */
74
+ DownloadUrl?: string;
75
+ /** Name of the file */
76
+ FileName?: string;
77
+ /** Last UTC time the file was modified */
78
+ LastModified: string;
79
+ /** Storage service&#39;s reported byte count */
80
+ Size: number;
81
+ }
82
+ interface GetFilesRequest extends IPlayFabRequestCommon {
83
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
84
+ CustomTags?: Record<string, string | null>;
85
+ /** The entity to perform this action on. */
86
+ Entity: EntityKey;
87
+ }
88
+ interface GetFilesResponse extends IPlayFabResultCommon {
89
+ /** The entity id and type. */
90
+ Entity?: EntityKey;
91
+ /** Collection of metadata for the entity&#39;s files */
92
+ Metadata?: Record<string, GetFileMetadata>;
93
+ /** The current version of the profile, can be used for concurrency control during updates. */
94
+ ProfileVersion: number;
95
+ }
96
+ interface GetObjectsRequest extends IPlayFabRequestCommon {
97
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
98
+ CustomTags?: Record<string, string | null>;
99
+ /** The entity to perform this action on. */
100
+ Entity: EntityKey;
101
+ /**
102
+ * Determines whether the object will be returned as an escaped JSON string or as a un-escaped JSON object. Default is JSON
103
+ * object.
104
+ */
105
+ EscapeObject?: boolean;
106
+ }
107
+ interface GetObjectsResponse extends IPlayFabResultCommon {
108
+ /** The entity id and type. */
109
+ Entity?: EntityKey;
110
+ /** Requested objects that the calling entity has access to */
111
+ Objects?: Record<string, ObjectResult>;
112
+ /** The current version of the profile, can be used for concurrency control during updates. */
113
+ ProfileVersion: number;
114
+ }
115
+ interface InitiateFileUploadMetadata {
116
+ /** Name of the file. */
117
+ FileName?: string;
118
+ /** Location the data should be sent to via an HTTP PUT operation. */
119
+ UploadUrl?: string;
120
+ }
121
+ interface InitiateFileUploadsRequest extends IPlayFabRequestCommon {
122
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
123
+ CustomTags?: Record<string, string | null>;
124
+ /** The entity to perform this action on. */
125
+ Entity: EntityKey;
126
+ /** Names of the files to be set. Restricted to a-Z, 0-9, &#39;(&#39;, &#39;)&#39;, &#39;_&#39;, &#39;-&#39; and &#39;.&#39; */
127
+ FileNames: string[];
128
+ /**
129
+ * The expected version of the profile, if set and doesn&#39;t match the current version of the profile the operation will not
130
+ * be performed.
131
+ */
132
+ ProfileVersion?: number;
133
+ }
134
+ interface InitiateFileUploadsResponse extends IPlayFabResultCommon {
135
+ /** The entity id and type. */
136
+ Entity?: EntityKey;
137
+ /** The current version of the profile, can be used for concurrency control during updates. */
138
+ ProfileVersion: number;
139
+ /** Collection of file names and upload urls */
140
+ UploadDetails?: InitiateFileUploadMetadata[];
141
+ }
142
+ interface ObjectResult {
143
+ /** Un-escaped JSON object, if EscapeObject false or default. */
144
+ DataObject?: any;
145
+ /** Escaped string JSON body of the object, if EscapeObject is true. */
146
+ EscapedDataObject?: string;
147
+ /** Name of the object. Restricted to a-Z, 0-9, &#39;(&#39;, &#39;)&#39;, &#39;_&#39;, &#39;-&#39; and &#39;.&#39; */
148
+ ObjectName?: string;
149
+ }
150
+ interface SetObject {
151
+ /**
152
+ * Body of the object to be saved. If empty and DeleteObject is true object will be deleted if it exists, or no operation
153
+ * will occur if it does not exist. Only one of Object or EscapedDataObject fields may be used.
154
+ */
155
+ DataObject?: any;
156
+ /** Flag to indicate that this object should be deleted. Both DataObject and EscapedDataObject must not be set as well. */
157
+ DeleteObject?: boolean;
158
+ /**
159
+ * Body of the object to be saved as an escaped JSON string. If empty and DeleteObject is true object will be deleted if it
160
+ * exists, or no operation will occur if it does not exist. Only one of DataObject or EscapedDataObject fields may be used.
161
+ */
162
+ EscapedDataObject?: string;
163
+ /** Name of object. Restricted to a-Z, 0-9, &#39;(&#39;, &#39;)&#39;, &#39;_&#39;, &#39;-&#39; and &#39;.&#39;. */
164
+ ObjectName: string;
165
+ }
166
+ interface SetObjectInfo {
167
+ /** Name of the object */
168
+ ObjectName?: string;
169
+ /** Optional reason to explain why the operation was the result that it was. */
170
+ OperationReason?: string;
171
+ /** Indicates which operation was completed, either Created, Updated, Deleted or None. */
172
+ SetResult?: string;
173
+ }
174
+ interface SetObjectsRequest extends IPlayFabRequestCommon {
175
+ /** The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). */
176
+ CustomTags?: Record<string, string | null>;
177
+ /** The entity to perform this action on. */
178
+ Entity: EntityKey;
179
+ /**
180
+ * Optional field used for concurrency control. By specifying the previously returned value of ProfileVersion from
181
+ * GetProfile API, you can ensure that the object set will only be performed if the profile has not been updated by any
182
+ * other clients since the version you last loaded.
183
+ */
184
+ ExpectedProfileVersion?: number;
185
+ /** Collection of objects to set on the profile. */
186
+ Objects: SetObject[];
187
+ }
188
+ interface SetObjectsResponse extends IPlayFabResultCommon {
189
+ /** New version of the entity profile. */
190
+ ProfileVersion: number;
191
+ /** New version of the entity profile. */
192
+ SetResults?: SetObjectInfo[];
193
+ }
194
+
195
+ declare class PlayFabDataApi extends PlayFabCommon {
196
+ /**
197
+ * Abort pending file uploads to an entity's profile.
198
+ *
199
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/abortfileuploads Microsoft Documentation}
200
+ * @example
201
+ * await fileClient.AbortFileUploads({
202
+ * "FileNames": [
203
+ * "avatar",
204
+ * "game_state"
205
+ * ],
206
+ * "Entity": {
207
+ * "Id": "ID",
208
+ * "Type": "title_player_account",
209
+ * "TypeString": "title_player_account"
210
+ * }
211
+ * });
212
+ */
213
+ AbortFileUploads(request: AbortFileUploadsRequest, extraHeaders?: Record<string, string>): Promise<AbortFileUploadsResponse>;
214
+ /**
215
+ * Delete files on an entity's profile.
216
+ *
217
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/deletefiles Microsoft Documentation}
218
+ * @example
219
+ * await fileClient.DeleteFiles({
220
+ * "FileNames": [
221
+ * "game_state",
222
+ * "avatar"
223
+ * ],
224
+ * "Entity": {
225
+ * "Id": "ID",
226
+ * "Type": "title_player_account",
227
+ * "TypeString": "title_player_account"
228
+ * }
229
+ * });
230
+ */
231
+ DeleteFiles(request: DeleteFilesRequest, extraHeaders?: Record<string, string>): Promise<DeleteFilesResponse>;
232
+ /**
233
+ * Finalize file uploads to an entity's profile.
234
+ *
235
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/finalizefileuploads Microsoft Documentation}
236
+ * @example
237
+ * await fileClient.FinalizeFileUploads({
238
+ * "ProfileVersion": 0,
239
+ * "FileNames": [
240
+ * "avatar",
241
+ * "game_state"
242
+ * ],
243
+ * "Entity": {
244
+ * "Id": "ID",
245
+ * "Type": "title_player_account",
246
+ * "TypeString": "title_player_account"
247
+ * }
248
+ * });
249
+ */
250
+ FinalizeFileUploads(request: FinalizeFileUploadsRequest, extraHeaders?: Record<string, string>): Promise<FinalizeFileUploadsResponse>;
251
+ /**
252
+ * Retrieves file metadata from an entity's profile.
253
+ *
254
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/getfiles Microsoft Documentation}
255
+ * @example
256
+ * await fileClient.GetFiles({
257
+ * "Entity": {
258
+ * "Id": "ID",
259
+ * "Type": "title_player_account",
260
+ * "TypeString": "title_player_account"
261
+ * }
262
+ * });
263
+ */
264
+ GetFiles(request: GetFilesRequest, extraHeaders?: Record<string, string>): Promise<GetFilesResponse>;
265
+ /**
266
+ * Retrieves objects from an entity's profile.
267
+ *
268
+ * {@link https://docs.microsoft.com/rest/api/playfab/object/object/getobjects Microsoft Documentation}
269
+ * @example
270
+ * await objectClient.GetObjects({
271
+ * "Entity": {
272
+ * "Id": "ABC90712ABC",
273
+ * "Type": "title_player_account",
274
+ * "TypeString": "title_player_account"
275
+ * }
276
+ * });
277
+ */
278
+ GetObjects(request: GetObjectsRequest, extraHeaders?: Record<string, string>): Promise<GetObjectsResponse>;
279
+ /**
280
+ * Initiates file uploads to an entity's profile.
281
+ *
282
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/initiatefileuploads Microsoft Documentation}
283
+ * @example
284
+ * await fileClient.InitiateFileUploads({
285
+ * "FileNames": [
286
+ * "avatar",
287
+ * "game_state"
288
+ * ],
289
+ * "Entity": {
290
+ * "Id": "ID",
291
+ * "Type": "title_player_account",
292
+ * "TypeString": "title_player_account"
293
+ * }
294
+ * });
295
+ */
296
+ InitiateFileUploads(request: InitiateFileUploadsRequest, extraHeaders?: Record<string, string>): Promise<InitiateFileUploadsResponse>;
297
+ /**
298
+ * Sets objects on an entity's profile.
299
+ *
300
+ * {@link https://docs.microsoft.com/rest/api/playfab/object/object/setobjects Microsoft Documentation}
301
+ * @example
302
+ * await objectClient.SetObjects({
303
+ * "ExpectedProfileVersion": 5,
304
+ * "Objects": [
305
+ * {
306
+ * "ObjectName": "SaveSate",
307
+ * "DataObject": {
308
+ * "PlayerDetails": {
309
+ * "LastMissionSuccess": "2017-06-15T11:05:19Z",
310
+ * "LastMissionFailure": "2017-06-12T11:05:19Z",
311
+ * "MapPosition": [
312
+ * 22.0,
313
+ * 37.78
314
+ * ],
315
+ * "IsPaidUpgrade": true
316
+ * },
317
+ * "GameSettings": {
318
+ * "Screen": "FriendsList",
319
+ * "Favorites": [
320
+ * "Place 1",
321
+ * "Place 2"
322
+ * ]
323
+ * }
324
+ * },
325
+ * "SimpleStatements": {
326
+ * "Read": [
327
+ * {
328
+ * "Friend": true
329
+ * }
330
+ * ],
331
+ * "Write": [
332
+ * "Self"
333
+ * ]
334
+ * }
335
+ * }
336
+ * ],
337
+ * "Entity": {
338
+ * "Id": "A8140AB9109712B",
339
+ * "Type": "title_player_account",
340
+ * "TypeString": "title_player_account"
341
+ * }
342
+ * });
343
+ */
344
+ SetObjects(request: SetObjectsRequest, extraHeaders?: Record<string, string>): Promise<SetObjectsResponse>;
345
+ }
346
+
347
+ export { PlayFabDataApi as default };
package/dist/Data.js ADDED
@@ -0,0 +1,8 @@
1
+ import {
2
+ PlayFabDataApi
3
+ } from "./chunk-P4FCADAY.js";
4
+ import "./chunk-6OZSERVG.js";
5
+ export {
6
+ PlayFabDataApi as default
7
+ };
8
+ //# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}