async-playfab-web-sdk 1.192.250526-3 → 1.192.250526-5

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 (103) hide show
  1. package/dist/Addon.d.ts +179 -39
  2. package/dist/Addon.js +2 -2
  3. package/dist/Admin.d.ts +2386 -195
  4. package/dist/Admin.js +2 -2
  5. package/dist/Authentication.d.ts +32 -5
  6. package/dist/Authentication.js +2 -2
  7. package/dist/Client.d.ts +2235 -321
  8. package/dist/Client.js +2 -2
  9. package/dist/CloudScript.d.ts +199 -31
  10. package/dist/CloudScript.js +2 -2
  11. package/dist/Data.d.ts +137 -18
  12. package/dist/Data.js +2 -2
  13. package/dist/Economy.d.ts +1145 -106
  14. package/dist/Economy.js +2 -2
  15. package/dist/Events.d.ts +200 -13
  16. package/dist/Events.js +2 -2
  17. package/dist/Experimentation.d.ts +164 -17
  18. package/dist/Experimentation.js +2 -2
  19. package/dist/Groups.d.ts +267 -28
  20. package/dist/Groups.js +2 -2
  21. package/dist/Insights.d.ts +33 -7
  22. package/dist/Insights.js +2 -2
  23. package/dist/Localization.d.ts +5 -2
  24. package/dist/Localization.js +2 -2
  25. package/dist/Matchmaker.d.ts +271 -0
  26. package/dist/Matchmaker.js +8 -0
  27. package/dist/Matchmaker.js.map +1 -0
  28. package/dist/Multiplayer.d.ts +2697 -169
  29. package/dist/Multiplayer.js +2 -2
  30. package/dist/{PlayFabCommon-BX3jSqGx.d.ts → PlayFabCommon-Dnp_xHg5.d.ts} +3 -5
  31. package/dist/Profiles.d.ts +163 -19
  32. package/dist/Profiles.js +2 -2
  33. package/dist/Progression.d.ts +287 -35
  34. package/dist/Progression.js +2 -2
  35. package/dist/Server.d.ts +1904 -242
  36. package/dist/Server.js +2 -2
  37. package/dist/chunk-3I6ONUUQ.js +237 -0
  38. package/dist/chunk-3I6ONUUQ.js.map +1 -0
  39. package/dist/chunk-3O5QT4SL.js +2477 -0
  40. package/dist/chunk-3O5QT4SL.js.map +1 -0
  41. package/dist/chunk-3OBHYLBF.js +2673 -0
  42. package/dist/chunk-3OBHYLBF.js.map +1 -0
  43. package/dist/chunk-57KYHGBO.js +421 -0
  44. package/dist/chunk-57KYHGBO.js.map +1 -0
  45. package/dist/{chunk-J4QS5VX5.js → chunk-5CWZN75H.js} +6 -3
  46. package/dist/chunk-5CWZN75H.js.map +1 -0
  47. package/dist/chunk-73SVDH45.js +197 -0
  48. package/dist/chunk-73SVDH45.js.map +1 -0
  49. package/dist/chunk-ADHTNFTN.js +175 -0
  50. package/dist/chunk-ADHTNFTN.js.map +1 -0
  51. package/dist/chunk-C7U2JQNZ.js +76 -0
  52. package/dist/chunk-C7U2JQNZ.js.map +1 -0
  53. package/dist/{chunk-SGSEOIKS.js → chunk-GAZYZIK2.js} +34 -8
  54. package/dist/chunk-GAZYZIK2.js.map +1 -0
  55. package/dist/chunk-J54WY4UN.js +413 -0
  56. package/dist/chunk-J54WY4UN.js.map +1 -0
  57. package/dist/chunk-NFWQ4MMZ.js +1048 -0
  58. package/dist/chunk-NFWQ4MMZ.js.map +1 -0
  59. package/dist/{chunk-A7VD6ALV.js → chunk-P7UVG26J.js} +167 -32
  60. package/dist/chunk-P7UVG26J.js.map +1 -0
  61. package/dist/chunk-PFXZB4UN.js +2387 -0
  62. package/dist/chunk-PFXZB4UN.js.map +1 -0
  63. package/dist/{chunk-X34XZJB6.js → chunk-QNGQW3YB.js} +28 -6
  64. package/dist/chunk-QNGQW3YB.js.map +1 -0
  65. package/dist/chunk-SQWILU5T.js +270 -0
  66. package/dist/chunk-SQWILU5T.js.map +1 -0
  67. package/dist/{chunk-JGDO2ZE3.js → chunk-SR2RIRLX.js} +1482 -175
  68. package/dist/chunk-SR2RIRLX.js.map +1 -0
  69. package/dist/{chunk-62SULWOK.js → chunk-XVDYM74A.js} +17 -14
  70. package/dist/chunk-XVDYM74A.js.map +1 -0
  71. package/dist/chunk-ZW4TJ3MQ.js +225 -0
  72. package/dist/chunk-ZW4TJ3MQ.js.map +1 -0
  73. package/dist/index.d.ts +7 -6
  74. package/dist/index.js +29 -25
  75. package/package.json +2 -2
  76. package/dist/chunk-3FCAP7OZ.js +0 -187
  77. package/dist/chunk-3FCAP7OZ.js.map +0 -1
  78. package/dist/chunk-62SULWOK.js.map +0 -1
  79. package/dist/chunk-A7VD6ALV.js.map +0 -1
  80. package/dist/chunk-BX65UND2.js +0 -632
  81. package/dist/chunk-BX65UND2.js.map +0 -1
  82. package/dist/chunk-J4QS5VX5.js.map +0 -1
  83. package/dist/chunk-JGDO2ZE3.js.map +0 -1
  84. package/dist/chunk-POMI7LEF.js +0 -76
  85. package/dist/chunk-POMI7LEF.js.map +0 -1
  86. package/dist/chunk-Q3OF3AOJ.js +0 -97
  87. package/dist/chunk-Q3OF3AOJ.js.map +0 -1
  88. package/dist/chunk-QUZHVSVZ.js +0 -174
  89. package/dist/chunk-QUZHVSVZ.js.map +0 -1
  90. package/dist/chunk-QVLIVSO4.js +0 -1147
  91. package/dist/chunk-QVLIVSO4.js.map +0 -1
  92. package/dist/chunk-R7V7DFCF.js +0 -103
  93. package/dist/chunk-R7V7DFCF.js.map +0 -1
  94. package/dist/chunk-SGSEOIKS.js.map +0 -1
  95. package/dist/chunk-UOHHNVCJ.js +0 -119
  96. package/dist/chunk-UOHHNVCJ.js.map +0 -1
  97. package/dist/chunk-USKFWNQK.js +0 -384
  98. package/dist/chunk-USKFWNQK.js.map +0 -1
  99. package/dist/chunk-UX7LFJCX.js +0 -61
  100. package/dist/chunk-UX7LFJCX.js.map +0 -1
  101. package/dist/chunk-X34XZJB6.js.map +0 -1
  102. package/dist/chunk-YNZF3WXS.js +0 -882
  103. package/dist/chunk-YNZF3WXS.js.map +0 -1
@@ -0,0 +1,197 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-XVDYM74A.js";
4
+
5
+ // src/apis/PlayFabProfilesApi.ts
6
+ var PlayFabProfilesApi = class extends PlayFabCommon {
7
+ /**
8
+ * Gets the global title access policy
9
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getglobalpolicy Microsoft Documentation}
11
+ * @example
12
+ * await profileClient.GetGlobalPolicy({});
13
+ */
14
+ GetGlobalPolicy(request, extraHeaders) {
15
+ return this.ExecuteRequestWrapper("/Profile/GetGlobalPolicy", request, "X-EntityToken", extraHeaders);
16
+ }
17
+ /**
18
+ * Retrieves the entity's profile.
19
+ *
20
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofile Microsoft Documentation}
21
+ * @example
22
+ * await profileClient.GetProfile({
23
+ * "Entity": {
24
+ * "Id": "1234567787392",
25
+ * "Type": "title_player_account",
26
+ * "TypeString": "title_player_account"
27
+ * }
28
+ * });
29
+ */
30
+ GetProfile(request, extraHeaders) {
31
+ return this.ExecuteRequestWrapper("/Profile/GetProfile", request, "X-EntityToken", extraHeaders);
32
+ }
33
+ /**
34
+ * Retrieves the entity's profile.
35
+ *
36
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofiles Microsoft Documentation}
37
+ * @example
38
+ * await profileClient.GetProfiles({
39
+ * "Entities": [
40
+ * {
41
+ * "Id": "1234567787392",
42
+ * "Type": "title_player_account",
43
+ * "TypeString": "title_player_account"
44
+ * },
45
+ * {
46
+ * "Id": "42434567785265",
47
+ * "Type": "title_player_account",
48
+ * "TypeString": "title_player_account"
49
+ * }
50
+ * ]
51
+ * });
52
+ */
53
+ GetProfiles(request, extraHeaders) {
54
+ return this.ExecuteRequestWrapper("/Profile/GetProfiles", request, "X-EntityToken", extraHeaders);
55
+ }
56
+ /**
57
+ * Retrieves the title player accounts associated with the given master player account.
58
+ *
59
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfrommasterplayeraccountids Microsoft Documentation}
60
+ * @example
61
+ * await profileClient.GetTitlePlayersFromMasterPlayerAccountIds({
62
+ * "MasterPlayerAccountIds": [
63
+ * "1233455677"
64
+ * ],
65
+ * "TitleId": "abc123"
66
+ * });
67
+ */
68
+ GetTitlePlayersFromMasterPlayerAccountIds(request, extraHeaders) {
69
+ return this.ExecuteRequestWrapper("/Profile/GetTitlePlayersFromMasterPlayerAccountIds", request, "X-EntityToken", extraHeaders);
70
+ }
71
+ /**
72
+ * Retrieves the title player accounts associated with the given XUIDs.
73
+ *
74
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfromxboxliveids Microsoft Documentation}
75
+ * @example
76
+ * await profileClient.GetTitlePlayersFromXboxLiveIDs({
77
+ * "XboxLiveIds": [
78
+ * "1233455677"
79
+ * ],
80
+ * "Sandbox": "RETAIL"
81
+ * });
82
+ */
83
+ GetTitlePlayersFromXboxLiveIDs(request, extraHeaders) {
84
+ return this.ExecuteRequestWrapper("/Profile/GetTitlePlayersFromXboxLiveIDs", request, "X-EntityToken", extraHeaders);
85
+ }
86
+ /**
87
+ * Update the avatar url of the entity
88
+ *
89
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setavatarurl Microsoft Documentation}
90
+ * @example
91
+ * await profileClient.SetAvatarUrl({
92
+ * "AvatarUrl": "https://test.com/image.png",
93
+ * "ProfileVersion": 123,
94
+ * "Entity": {
95
+ * "Id": "90901000",
96
+ * "Type": "title_player_account",
97
+ * "TypeString": "title_player_account"
98
+ * }
99
+ * });
100
+ */
101
+ SetAvatarUrl(request, extraHeaders) {
102
+ return this.ExecuteRequestWrapper("/Profile/SetAvatarUrl", request, "X-EntityToken", extraHeaders);
103
+ }
104
+ /**
105
+ * Update the display name of the entity
106
+ *
107
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setdisplayname Microsoft Documentation}
108
+ * @example
109
+ * await profileClient.SetDisplayName({
110
+ * "DisplayName": "My new display name",
111
+ * "ExpectedVersion": 123,
112
+ * "Entity": {
113
+ * "Id": "90901000",
114
+ * "Type": "title_player_account",
115
+ * "TypeString": "title_player_account"
116
+ * }
117
+ * });
118
+ */
119
+ SetDisplayName(request, extraHeaders) {
120
+ return this.ExecuteRequestWrapper("/Profile/SetDisplayName", request, "X-EntityToken", extraHeaders);
121
+ }
122
+ /**
123
+ * Sets the global title access policy
124
+ *
125
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setglobalpolicy Microsoft Documentation}
126
+ * @example
127
+ * await profileClient.SetGlobalPolicy({
128
+ * "Permissions": [
129
+ * {
130
+ * "Resource": "pfrn:data--title_player_account!90901000/Profile/SomethingCool",
131
+ * "Action": "*",
132
+ * "Effect": "Allow",
133
+ * "Principal": {
134
+ * "ChildOf": {
135
+ * "EntityType": "[SELF]"
136
+ * }
137
+ * },
138
+ * "Comment": "An example policy"
139
+ * }
140
+ * ]
141
+ * });
142
+ */
143
+ SetGlobalPolicy(request, extraHeaders) {
144
+ return this.ExecuteRequestWrapper("/Profile/SetGlobalPolicy", request, "X-EntityToken", extraHeaders);
145
+ }
146
+ /**
147
+ * Updates the entity's language. The precedence hierarchy for communication to the player is Title Player Account
148
+ * language, Master Player Account language, and then title default language if the first two aren't set or supported.
149
+ *
150
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilelanguage Microsoft Documentation}
151
+ * @example
152
+ * await profileClient.SetProfileLanguage({
153
+ * "Language": "en",
154
+ * "ExpectedVersion": 123,
155
+ * "Entity": {
156
+ * "Id": "1234",
157
+ * "Type": "title_player_account",
158
+ * "TypeString": "title_player_account"
159
+ * }
160
+ * });
161
+ */
162
+ SetProfileLanguage(request, extraHeaders) {
163
+ return this.ExecuteRequestWrapper("/Profile/SetProfileLanguage", request, "X-EntityToken", extraHeaders);
164
+ }
165
+ /**
166
+ * Sets the profiles access policy
167
+ *
168
+ * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilepolicy Microsoft Documentation}
169
+ * @example
170
+ * await profileClient.SetProfilePolicy({
171
+ * "Statements": [
172
+ * {
173
+ * "Resource": "pfrn:data--*!*\/Profile/Files/avatar.png",
174
+ * "Action": "Read",
175
+ * "Effect": "Allow",
176
+ * "Principal": {
177
+ * "FriendOf": "true"
178
+ * },
179
+ * "Comment": "Allow my friends to read my avatar"
180
+ * }
181
+ * ],
182
+ * "Entity": {
183
+ * "Id": "90901000",
184
+ * "Type": "title_player_account",
185
+ * "TypeString": "title_player_account"
186
+ * }
187
+ * });
188
+ */
189
+ SetProfilePolicy(request, extraHeaders) {
190
+ return this.ExecuteRequestWrapper("/Profile/SetProfilePolicy", request, "X-EntityToken", extraHeaders);
191
+ }
192
+ };
193
+
194
+ export {
195
+ PlayFabProfilesApi
196
+ };
197
+ //# sourceMappingURL=chunk-73SVDH45.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabProfilesApi.ts"],"sourcesContent":["import type {\n GetGlobalPolicyRequest,\n GetEntityProfileRequest,\n GetEntityProfilesRequest,\n GetTitlePlayersFromMasterPlayerAccountIdsRequest,\n GetTitlePlayersFromXboxLiveIDsRequest,\n SetAvatarUrlRequest,\n SetDisplayNameRequest,\n SetGlobalPolicyRequest,\n SetProfileLanguageRequest,\n SetEntityProfilePolicyRequest,\n GetGlobalPolicyResponse,\n GetEntityProfileResponse,\n GetEntityProfilesResponse,\n GetTitlePlayersFromMasterPlayerAccountIdsResponse,\n GetTitlePlayersFromProviderIDsResponse,\n SetAvatarUrlResponse,\n SetDisplayNameResponse,\n SetGlobalPolicyResponse,\n SetProfileLanguageResponse,\n SetEntityProfilePolicyResponse,\n} from \"../types/PlayFabProfilesApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabProfilesApi extends PlayFabCommon {\n\n /**\n * Gets the global title access policy\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getglobalpolicy Microsoft Documentation}\n * @example\n * await profileClient.GetGlobalPolicy({});\n */\n GetGlobalPolicy (request: GetGlobalPolicyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetGlobalPolicyResponse>(\"/Profile/GetGlobalPolicy\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofile Microsoft Documentation}\n * @example\n * await profileClient.GetProfile({\n * \"Entity\": {\n * \"Id\": \"1234567787392\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n GetProfile (request: GetEntityProfileRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityProfileResponse>(\"/Profile/GetProfile\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the entity's profile.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/getprofiles Microsoft Documentation}\n * @example\n * await profileClient.GetProfiles({\n * \"Entities\": [\n * {\n * \"Id\": \"1234567787392\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * },\n * {\n * \"Id\": \"42434567785265\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * ]\n * });\n */\n GetProfiles (request: GetEntityProfilesRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEntityProfilesResponse>(\"/Profile/GetProfiles\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the title player accounts associated with the given master player account.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfrommasterplayeraccountids Microsoft Documentation}\n * @example\n * await profileClient.GetTitlePlayersFromMasterPlayerAccountIds({\n * \"MasterPlayerAccountIds\": [\n * \"1233455677\"\n * ],\n * \"TitleId\": \"abc123\"\n * });\n */\n GetTitlePlayersFromMasterPlayerAccountIds (request: GetTitlePlayersFromMasterPlayerAccountIdsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTitlePlayersFromMasterPlayerAccountIdsResponse>(\"/Profile/GetTitlePlayersFromMasterPlayerAccountIds\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the title player accounts associated with the given XUIDs.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/gettitleplayersfromxboxliveids Microsoft Documentation}\n * @example\n * await profileClient.GetTitlePlayersFromXboxLiveIDs({\n * \"XboxLiveIds\": [\n * \"1233455677\"\n * ],\n * \"Sandbox\": \"RETAIL\"\n * });\n */\n GetTitlePlayersFromXboxLiveIDs (request: GetTitlePlayersFromXboxLiveIDsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTitlePlayersFromProviderIDsResponse>(\"/Profile/GetTitlePlayersFromXboxLiveIDs\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Update the avatar url of the entity\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setavatarurl Microsoft Documentation}\n * @example\n * await profileClient.SetAvatarUrl({\n * \"AvatarUrl\": \"https://test.com/image.png\",\n * \"ProfileVersion\": 123,\n * \"Entity\": {\n * \"Id\": \"90901000\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetAvatarUrl (request: SetAvatarUrlRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetAvatarUrlResponse>(\"/Profile/SetAvatarUrl\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Update the display name of the entity\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setdisplayname Microsoft Documentation}\n * @example\n * await profileClient.SetDisplayName({\n * \"DisplayName\": \"My new display name\",\n * \"ExpectedVersion\": 123,\n * \"Entity\": {\n * \"Id\": \"90901000\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetDisplayName (request: SetDisplayNameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetDisplayNameResponse>(\"/Profile/SetDisplayName\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the global title access policy\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setglobalpolicy Microsoft Documentation}\n * @example\n * await profileClient.SetGlobalPolicy({\n * \"Permissions\": [\n * {\n * \"Resource\": \"pfrn:data--title_player_account!90901000/Profile/SomethingCool\",\n * \"Action\": \"*\",\n * \"Effect\": \"Allow\",\n * \"Principal\": {\n * \"ChildOf\": {\n * \"EntityType\": \"[SELF]\"\n * }\n * },\n * \"Comment\": \"An example policy\"\n * }\n * ]\n * });\n */\n SetGlobalPolicy (request: SetGlobalPolicyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetGlobalPolicyResponse>(\"/Profile/SetGlobalPolicy\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Updates the entity's language. The precedence hierarchy for communication to the player is Title Player Account\n * language, Master Player Account language, and then title default language if the first two aren't set or supported.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilelanguage Microsoft Documentation}\n * @example\n * await profileClient.SetProfileLanguage({\n * \"Language\": \"en\",\n * \"ExpectedVersion\": 123,\n * \"Entity\": {\n * \"Id\": \"1234\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetProfileLanguage (request: SetProfileLanguageRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetProfileLanguageResponse>(\"/Profile/SetProfileLanguage\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the profiles access policy\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/profile/account-management/setprofilepolicy Microsoft Documentation}\n * @example\n * await profileClient.SetProfilePolicy({\n * \"Statements\": [\n * {\n * \"Resource\": \"pfrn:data--*!*\\/Profile/Files/avatar.png\",\n * \"Action\": \"Read\",\n * \"Effect\": \"Allow\",\n * \"Principal\": {\n * \"FriendOf\": \"true\"\n * },\n * \"Comment\": \"Allow my friends to read my avatar\"\n * }\n * ],\n * \"Entity\": {\n * \"Id\": \"90901000\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n SetProfilePolicy (request: SetEntityProfilePolicyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetEntityProfilePolicyResponse>(\"/Profile/SetProfilePolicy\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAwBA,IAAqB,qBAArB,cAAgD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS5D,gBAAiB,SAAiC,cAAuC;AACvF,WAAO,KAAK,sBAA+C,4BAA4B,SAAS,iBAAiB,YAAY;AAAA,EAC/H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeA,WAAY,SAAkC,cAAuC;AACnF,WAAO,KAAK,sBAAgD,uBAAuB,SAAS,iBAAiB,YAAY;AAAA,EAC3H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBA,YAAa,SAAmC,cAAuC;AACrF,WAAO,KAAK,sBAAiD,wBAAwB,SAAS,iBAAiB,YAAY;AAAA,EAC7H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,0CAA2C,SAA2D,cAAuC;AAC3I,WAAO,KAAK,sBAAyE,sDAAsD,SAAS,iBAAiB,YAAY;AAAA,EACnL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAcA,+BAAgC,SAAgD,cAAuC;AACrH,WAAO,KAAK,sBAA8D,2CAA2C,SAAS,iBAAiB,YAAY;AAAA,EAC7J;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBA,aAAc,SAA8B,cAAuC;AACjF,WAAO,KAAK,sBAA4C,yBAAyB,SAAS,iBAAiB,YAAY;AAAA,EACzH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiBA,eAAgB,SAAgC,cAAuC;AACrF,WAAO,KAAK,sBAA8C,2BAA2B,SAAS,iBAAiB,YAAY;AAAA,EAC7H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuBA,gBAAiB,SAAiC,cAAuC;AACvF,WAAO,KAAK,sBAA+C,4BAA4B,SAAS,iBAAiB,YAAY;AAAA,EAC/H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,mBAAoB,SAAoC,cAAuC;AAC7F,WAAO,KAAK,sBAAkD,+BAA+B,SAAS,iBAAiB,YAAY;AAAA,EACrI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA0BA,iBAAkB,SAAwC,cAAuC;AAC/F,WAAO,KAAK,sBAAsD,6BAA6B,SAAS,iBAAiB,YAAY;AAAA,EACvI;AAEF;","names":[]}
@@ -0,0 +1,175 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-XVDYM74A.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
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/abortfileuploads Microsoft Documentation}
11
+ * @example
12
+ * await fileClient.AbortFileUploads({
13
+ * "FileNames": [
14
+ * "avatar",
15
+ * "game_state"
16
+ * ],
17
+ * "Entity": {
18
+ * "Id": "ID",
19
+ * "Type": "title_player_account",
20
+ * "TypeString": "title_player_account"
21
+ * }
22
+ * });
23
+ */
24
+ AbortFileUploads(request, extraHeaders) {
25
+ return this.ExecuteRequestWrapper("/File/AbortFileUploads", request, "X-EntityToken", extraHeaders);
26
+ }
27
+ /**
28
+ * Delete files on an entity's profile.
29
+ *
30
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/deletefiles Microsoft Documentation}
31
+ * @example
32
+ * await fileClient.DeleteFiles({
33
+ * "FileNames": [
34
+ * "game_state",
35
+ * "avatar"
36
+ * ],
37
+ * "Entity": {
38
+ * "Id": "ID",
39
+ * "Type": "title_player_account",
40
+ * "TypeString": "title_player_account"
41
+ * }
42
+ * });
43
+ */
44
+ DeleteFiles(request, extraHeaders) {
45
+ return this.ExecuteRequestWrapper("/File/DeleteFiles", request, "X-EntityToken", extraHeaders);
46
+ }
47
+ /**
48
+ * Finalize file uploads to an entity's profile.
49
+ *
50
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/finalizefileuploads Microsoft Documentation}
51
+ * @example
52
+ * await fileClient.FinalizeFileUploads({
53
+ * "ProfileVersion": 0,
54
+ * "FileNames": [
55
+ * "avatar",
56
+ * "game_state"
57
+ * ],
58
+ * "Entity": {
59
+ * "Id": "ID",
60
+ * "Type": "title_player_account",
61
+ * "TypeString": "title_player_account"
62
+ * }
63
+ * });
64
+ */
65
+ FinalizeFileUploads(request, extraHeaders) {
66
+ return this.ExecuteRequestWrapper("/File/FinalizeFileUploads", request, "X-EntityToken", extraHeaders);
67
+ }
68
+ /**
69
+ * Retrieves file metadata from an entity's profile.
70
+ *
71
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/getfiles Microsoft Documentation}
72
+ * @example
73
+ * await fileClient.GetFiles({
74
+ * "Entity": {
75
+ * "Id": "ID",
76
+ * "Type": "title_player_account",
77
+ * "TypeString": "title_player_account"
78
+ * }
79
+ * });
80
+ */
81
+ GetFiles(request, extraHeaders) {
82
+ return this.ExecuteRequestWrapper("/File/GetFiles", request, "X-EntityToken", extraHeaders);
83
+ }
84
+ /**
85
+ * Retrieves objects from an entity's profile.
86
+ *
87
+ * {@link https://docs.microsoft.com/rest/api/playfab/object/object/getobjects Microsoft Documentation}
88
+ * @example
89
+ * await objectClient.GetObjects({
90
+ * "Entity": {
91
+ * "Id": "ABC90712ABC",
92
+ * "Type": "title_player_account",
93
+ * "TypeString": "title_player_account"
94
+ * }
95
+ * });
96
+ */
97
+ GetObjects(request, extraHeaders) {
98
+ return this.ExecuteRequestWrapper("/Object/GetObjects", request, "X-EntityToken", extraHeaders);
99
+ }
100
+ /**
101
+ * Initiates file uploads to an entity's profile.
102
+ *
103
+ * {@link https://docs.microsoft.com/rest/api/playfab/file/file/initiatefileuploads Microsoft Documentation}
104
+ * @example
105
+ * await fileClient.InitiateFileUploads({
106
+ * "FileNames": [
107
+ * "avatar",
108
+ * "game_state"
109
+ * ],
110
+ * "Entity": {
111
+ * "Id": "ID",
112
+ * "Type": "title_player_account",
113
+ * "TypeString": "title_player_account"
114
+ * }
115
+ * });
116
+ */
117
+ InitiateFileUploads(request, extraHeaders) {
118
+ return this.ExecuteRequestWrapper("/File/InitiateFileUploads", request, "X-EntityToken", extraHeaders);
119
+ }
120
+ /**
121
+ * Sets objects on an entity's profile.
122
+ *
123
+ * {@link https://docs.microsoft.com/rest/api/playfab/object/object/setobjects Microsoft Documentation}
124
+ * @example
125
+ * await objectClient.SetObjects({
126
+ * "ExpectedProfileVersion": 5,
127
+ * "Objects": [
128
+ * {
129
+ * "ObjectName": "SaveSate",
130
+ * "DataObject": {
131
+ * "PlayerDetails": {
132
+ * "LastMissionSuccess": "2017-06-15T11:05:19Z",
133
+ * "LastMissionFailure": "2017-06-12T11:05:19Z",
134
+ * "MapPosition": [
135
+ * 22.0,
136
+ * 37.78
137
+ * ],
138
+ * "IsPaidUpgrade": true
139
+ * },
140
+ * "GameSettings": {
141
+ * "Screen": "FriendsList",
142
+ * "Favorites": [
143
+ * "Place 1",
144
+ * "Place 2"
145
+ * ]
146
+ * }
147
+ * },
148
+ * "SimpleStatements": {
149
+ * "Read": [
150
+ * {
151
+ * "Friend": true
152
+ * }
153
+ * ],
154
+ * "Write": [
155
+ * "Self"
156
+ * ]
157
+ * }
158
+ * }
159
+ * ],
160
+ * "Entity": {
161
+ * "Id": "A8140AB9109712B",
162
+ * "Type": "title_player_account",
163
+ * "TypeString": "title_player_account"
164
+ * }
165
+ * });
166
+ */
167
+ SetObjects(request, extraHeaders) {
168
+ return this.ExecuteRequestWrapper("/Object/SetObjects", request, "X-EntityToken", extraHeaders);
169
+ }
170
+ };
171
+
172
+ export {
173
+ PlayFabDataApi
174
+ };
175
+ //# sourceMappingURL=chunk-ADHTNFTN.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 * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/abortfileuploads Microsoft Documentation}\n * @example\n * await fileClient.AbortFileUploads({\n * \"FileNames\": [\n * \"avatar\",\n * \"game_state\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\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 * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/deletefiles Microsoft Documentation}\n * @example\n * await fileClient.DeleteFiles({\n * \"FileNames\": [\n * \"game_state\",\n * \"avatar\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\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 * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/finalizefileuploads Microsoft Documentation}\n * @example\n * await fileClient.FinalizeFileUploads({\n * \"ProfileVersion\": 0,\n * \"FileNames\": [\n * \"avatar\",\n * \"game_state\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\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 * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/getfiles Microsoft Documentation}\n * @example\n * await fileClient.GetFiles({\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\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 * \n * {@link https://docs.microsoft.com/rest/api/playfab/object/object/getobjects Microsoft Documentation}\n * @example\n * await objectClient.GetObjects({\n * \"Entity\": {\n * \"Id\": \"ABC90712ABC\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\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 * \n * {@link https://docs.microsoft.com/rest/api/playfab/file/file/initiatefileuploads Microsoft Documentation}\n * @example\n * await fileClient.InitiateFileUploads({\n * \"FileNames\": [\n * \"avatar\",\n * \"game_state\"\n * ],\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\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 * \n * {@link https://docs.microsoft.com/rest/api/playfab/object/object/setobjects Microsoft Documentation}\n * @example\n * await objectClient.SetObjects({\n * \"ExpectedProfileVersion\": 5,\n * \"Objects\": [\n * {\n * \"ObjectName\": \"SaveSate\",\n * \"DataObject\": {\n * \"PlayerDetails\": {\n * \"LastMissionSuccess\": \"2017-06-15T11:05:19Z\",\n * \"LastMissionFailure\": \"2017-06-12T11:05:19Z\",\n * \"MapPosition\": [\n * 22.0,\n * 37.78\n * ],\n * \"IsPaidUpgrade\": true\n * },\n * \"GameSettings\": {\n * \"Screen\": \"FriendsList\",\n * \"Favorites\": [\n * \"Place 1\",\n * \"Place 2\"\n * ]\n * }\n * },\n * \"SimpleStatements\": {\n * \"Read\": [\n * {\n * \"Friend\": true\n * }\n * ],\n * \"Write\": [\n * \"Self\"\n * ]\n * }\n * }\n * ],\n * \"Entity\": {\n * \"Id\": \"A8140AB9109712B\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBxD,iBAAkB,SAAkC,cAAuC;AACzF,WAAO,KAAK,sBAAgD,0BAA0B,SAAS,iBAAiB,YAAY;AAAA,EAC9H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBA,YAAa,SAA6B,cAAuC;AAC/E,WAAO,KAAK,sBAA2C,qBAAqB,SAAS,iBAAiB,YAAY;AAAA,EACpH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAoBA,oBAAqB,SAAqC,cAAuC;AAC/F,WAAO,KAAK,sBAAmD,6BAA6B,SAAS,iBAAiB,YAAY;AAAA,EACpI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeA,SAAU,SAA0B,cAAuC;AACzE,WAAO,KAAK,sBAAwC,kBAAkB,SAAS,iBAAiB,YAAY;AAAA,EAC9G;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeA,WAAY,SAA4B,cAAuC;AAC7E,WAAO,KAAK,sBAA0C,sBAAsB,SAAS,iBAAiB,YAAY;AAAA,EACpH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBA,oBAAqB,SAAqC,cAAuC;AAC/F,WAAO,KAAK,sBAAmD,6BAA6B,SAAS,iBAAiB,YAAY;AAAA,EACpI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiDA,WAAY,SAA4B,cAAuC;AAC7E,WAAO,KAAK,sBAA0C,sBAAsB,SAAS,iBAAiB,YAAY;AAAA,EACpH;AAEF;","names":[]}
@@ -0,0 +1,76 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-XVDYM74A.js";
4
+
5
+ // src/apis/PlayFabMatchmakerApi.ts
6
+ var PlayFabMatchmakerApi = class extends PlayFabCommon {
7
+ /**
8
+ * Validates a user with the PlayFab service
9
+ *
10
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/authuser Microsoft Documentation}
11
+ * @deprecated Do not use
12
+ */
13
+ AuthUser(request, extraHeaders) {
14
+ return this.ExecuteRequestWrapper("/Matchmaker/AuthUser", request, "X-SecretKey", extraHeaders);
15
+ }
16
+ /**
17
+ * Inform the matchmaker that a Game Server Instance is removed.
18
+ *
19
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/deregistergame Microsoft Documentation}
20
+ * @deprecated Please use Server/DeregisterGame instead.
21
+ */
22
+ DeregisterGame(request, extraHeaders) {
23
+ return this.ExecuteRequestWrapper("/Matchmaker/DeregisterGame", request, "X-SecretKey", extraHeaders);
24
+ }
25
+ /**
26
+ * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified
27
+ *
28
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerjoined Microsoft Documentation}
29
+ * @deprecated Do not use
30
+ */
31
+ PlayerJoined(request, extraHeaders) {
32
+ return this.ExecuteRequestWrapper("/Matchmaker/PlayerJoined", request, "X-SecretKey", extraHeaders);
33
+ }
34
+ /**
35
+ * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified
36
+ *
37
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerleft Microsoft Documentation}
38
+ * @deprecated Do not use
39
+ */
40
+ PlayerLeft(request, extraHeaders) {
41
+ return this.ExecuteRequestWrapper("/Matchmaker/PlayerLeft", request, "X-SecretKey", extraHeaders);
42
+ }
43
+ /**
44
+ * Inform the matchmaker that a new Game Server Instance is added.
45
+ *
46
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/registergame Microsoft Documentation}
47
+ * @deprecated Please use Server/RegisterGame instead.
48
+ */
49
+ RegisterGame(request, extraHeaders) {
50
+ return this.ExecuteRequestWrapper("/Matchmaker/RegisterGame", request, "X-SecretKey", extraHeaders);
51
+ }
52
+ /**
53
+ * Instructs the PlayFab game server hosting service to instantiate a new Game Server Instance
54
+ *
55
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/startgame Microsoft Documentation}
56
+ * @deprecated Do not use
57
+ */
58
+ StartGame(request, extraHeaders) {
59
+ return this.ExecuteRequestWrapper("/Matchmaker/StartGame", request, "X-SecretKey", extraHeaders);
60
+ }
61
+ /**
62
+ * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute
63
+ * effective matches
64
+ *
65
+ * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/userinfo Microsoft Documentation}
66
+ * @deprecated Do not use
67
+ */
68
+ UserInfo(request, extraHeaders) {
69
+ return this.ExecuteRequestWrapper("/Matchmaker/UserInfo", request, "X-SecretKey", extraHeaders);
70
+ }
71
+ };
72
+
73
+ export {
74
+ PlayFabMatchmakerApi
75
+ };
76
+ //# sourceMappingURL=chunk-C7U2JQNZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabMatchmakerApi.ts"],"sourcesContent":["import type {\n AuthUserRequest,\n DeregisterGameRequest,\n PlayerJoinedRequest,\n PlayerLeftRequest,\n RegisterGameRequest,\n StartGameRequest,\n UserInfoRequest,\n AuthUserResponse,\n DeregisterGameResponse,\n PlayerJoinedResponse,\n PlayerLeftResponse,\n RegisterGameResponse,\n StartGameResponse,\n UserInfoResponse,\n} from \"../types/PlayFabMatchmakerApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabMatchmakerApi extends PlayFabCommon {\n\n /**\n * Validates a user with the PlayFab service\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/authuser Microsoft Documentation}\n * @deprecated Do not use\n */\n AuthUser (request: AuthUserRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<AuthUserResponse>(\"/Matchmaker/AuthUser\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Inform the matchmaker that a Game Server Instance is removed.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/deregistergame Microsoft Documentation}\n * @deprecated Please use Server/DeregisterGame instead.\n */\n DeregisterGame (request: DeregisterGameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeregisterGameResponse>(\"/Matchmaker/DeregisterGame\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Informs the PlayFab game server hosting service that the indicated user has joined the Game Server Instance specified\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerjoined Microsoft Documentation}\n * @deprecated Do not use\n */\n PlayerJoined (request: PlayerJoinedRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<PlayerJoinedResponse>(\"/Matchmaker/PlayerJoined\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Informs the PlayFab game server hosting service that the indicated user has left the Game Server Instance specified\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/playerleft Microsoft Documentation}\n * @deprecated Do not use\n */\n PlayerLeft (request: PlayerLeftRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<PlayerLeftResponse>(\"/Matchmaker/PlayerLeft\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Inform the matchmaker that a new Game Server Instance is added.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/registergame Microsoft Documentation}\n * @deprecated Please use Server/RegisterGame instead.\n */\n RegisterGame (request: RegisterGameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<RegisterGameResponse>(\"/Matchmaker/RegisterGame\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Instructs the PlayFab game server hosting service to instantiate a new Game Server Instance\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/startgame Microsoft Documentation}\n * @deprecated Do not use\n */\n StartGame (request: StartGameRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<StartGameResponse>(\"/Matchmaker/StartGame\", request, \"X-SecretKey\", extraHeaders);\n }\n\n /**\n * Retrieves the relevant details for a specified user, which the external match-making service can then use to compute\n * effective matches\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/matchmaker/matchmaking/userinfo Microsoft Documentation}\n * @deprecated Do not use\n */\n UserInfo (request: UserInfoRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<UserInfoResponse>(\"/Matchmaker/UserInfo\", request, \"X-SecretKey\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAkBA,IAAqB,uBAArB,cAAkD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ9D,SAAU,SAA0B,cAAuC;AACzE,WAAO,KAAK,sBAAwC,wBAAwB,SAAS,eAAe,YAAY;AAAA,EAClH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAgB,SAAgC,cAAuC;AACrF,WAAO,KAAK,sBAA8C,8BAA8B,SAAS,eAAe,YAAY;AAAA,EAC9H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,aAAc,SAA8B,cAAuC;AACjF,WAAO,KAAK,sBAA4C,4BAA4B,SAAS,eAAe,YAAY;AAAA,EAC1H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,WAAY,SAA4B,cAAuC;AAC7E,WAAO,KAAK,sBAA0C,0BAA0B,SAAS,eAAe,YAAY;AAAA,EACtH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,aAAc,SAA8B,cAAuC;AACjF,WAAO,KAAK,sBAA4C,4BAA4B,SAAS,eAAe,YAAY;AAAA,EAC1H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAW,SAA2B,cAAuC;AAC3E,WAAO,KAAK,sBAAyC,yBAAyB,SAAS,eAAe,YAAY;AAAA,EACpH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,SAAU,SAA0B,cAAuC;AACzE,WAAO,KAAK,sBAAwC,wBAAwB,SAAS,eAAe,YAAY;AAAA,EAClH;AAEF;","names":[]}
@@ -1,13 +1,16 @@
1
1
  import {
2
2
  PlayFabCommon
3
- } from "./chunk-62SULWOK.js";
3
+ } from "./chunk-XVDYM74A.js";
4
4
 
5
5
  // src/apis/PlayFabInsightsApi.ts
6
6
  var PlayFabInsightsApi = class extends PlayFabCommon {
7
7
  /**
8
8
  * Gets the current values for the Insights performance and data storage retention, list of pending operations, and the
9
9
  * performance and data storage retention limits.
10
- * https://docs.microsoft.com/rest/api/playfab/insights/analytics/getdetails
10
+ *
11
+ * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getdetails Microsoft Documentation}
12
+ * @example
13
+ * await insightsClient.GetDetails({});
11
14
  */
12
15
  GetDetails(request, extraHeaders) {
13
16
  return this.ExecuteRequestWrapper("/Insights/GetDetails", request, "X-EntityToken", extraHeaders);
@@ -15,35 +18,58 @@ var PlayFabInsightsApi = class extends PlayFabCommon {
15
18
  /**
16
19
  * Retrieves the range of allowed values for performance and data storage retention values as well as the submeter details
17
20
  * for each performance level.
18
- * https://docs.microsoft.com/rest/api/playfab/insights/analytics/getlimits
21
+ *
22
+ * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getlimits Microsoft Documentation}
23
+ * @example
24
+ * await insightsClient.GetLimits({});
19
25
  */
20
26
  GetLimits(request, extraHeaders) {
21
27
  return this.ExecuteRequestWrapper("/Insights/GetLimits", request, "X-EntityToken", extraHeaders);
22
28
  }
23
29
  /**
24
30
  * Gets the status of a SetPerformance or SetStorageRetention operation.
25
- * https://docs.microsoft.com/rest/api/playfab/insights/analytics/getoperationstatus
31
+ *
32
+ * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getoperationstatus Microsoft Documentation}
33
+ * @example
34
+ * await insightsClient.GetOperationStatus({
35
+ * "OperationId": "3ee468c4-ad09-4bb1-bccf-209ef5abfb96"
36
+ * });
26
37
  */
27
38
  GetOperationStatus(request, extraHeaders) {
28
39
  return this.ExecuteRequestWrapper("/Insights/GetOperationStatus", request, "X-EntityToken", extraHeaders);
29
40
  }
30
41
  /**
31
42
  * Gets a list of pending SetPerformance and/or SetStorageRetention operations for the title.
32
- * https://docs.microsoft.com/rest/api/playfab/insights/analytics/getpendingoperations
43
+ *
44
+ * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getpendingoperations Microsoft Documentation}
45
+ * @example
46
+ * await insightsClient.GetPendingOperations({
47
+ * "OperationType": "SetPerformance"
48
+ * });
33
49
  */
34
50
  GetPendingOperations(request, extraHeaders) {
35
51
  return this.ExecuteRequestWrapper("/Insights/GetPendingOperations", request, "X-EntityToken", extraHeaders);
36
52
  }
37
53
  /**
38
54
  * Sets the Insights performance level value for the title.
39
- * https://docs.microsoft.com/rest/api/playfab/insights/analytics/setperformance
55
+ *
56
+ * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/setperformance Microsoft Documentation}
57
+ * @example
58
+ * await insightsClient.SetPerformance({
59
+ * "PerformanceLevel": 3
60
+ * });
40
61
  */
41
62
  SetPerformance(request, extraHeaders) {
42
63
  return this.ExecuteRequestWrapper("/Insights/SetPerformance", request, "X-EntityToken", extraHeaders);
43
64
  }
44
65
  /**
45
66
  * Sets the Insights data storage retention days value for the title.
46
- * https://docs.microsoft.com/rest/api/playfab/insights/analytics/setstorageretention
67
+ *
68
+ * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/setstorageretention Microsoft Documentation}
69
+ * @example
70
+ * await insightsClient.SetStorageRetention({
71
+ * "RetentionDays": 30
72
+ * });
47
73
  */
48
74
  SetStorageRetention(request, extraHeaders) {
49
75
  return this.ExecuteRequestWrapper("/Insights/SetStorageRetention", request, "X-EntityToken", extraHeaders);
@@ -53,4 +79,4 @@ var PlayFabInsightsApi = class extends PlayFabCommon {
53
79
  export {
54
80
  PlayFabInsightsApi
55
81
  };
56
- //# sourceMappingURL=chunk-SGSEOIKS.js.map
82
+ //# sourceMappingURL=chunk-GAZYZIK2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabInsightsApi.ts"],"sourcesContent":["import type {\n InsightsEmptyRequest,\n InsightsGetOperationStatusRequest,\n InsightsGetPendingOperationsRequest,\n InsightsSetPerformanceRequest,\n InsightsSetStorageRetentionRequest,\n InsightsGetDetailsResponse,\n InsightsGetLimitsResponse,\n InsightsGetOperationStatusResponse,\n InsightsGetPendingOperationsResponse,\n InsightsOperationResponse,\n} from \"../types/PlayFabInsightsApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabInsightsApi extends PlayFabCommon {\n\n /**\n * Gets the current values for the Insights performance and data storage retention, list of pending operations, and the\n * performance and data storage retention limits.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getdetails Microsoft Documentation}\n * @example\n * await insightsClient.GetDetails({});\n */\n GetDetails (request: InsightsEmptyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InsightsGetDetailsResponse>(\"/Insights/GetDetails\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the range of allowed values for performance and data storage retention values as well as the submeter details\n * for each performance level.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getlimits Microsoft Documentation}\n * @example\n * await insightsClient.GetLimits({});\n */\n GetLimits (request: InsightsEmptyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InsightsGetLimitsResponse>(\"/Insights/GetLimits\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the status of a SetPerformance or SetStorageRetention operation.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getoperationstatus Microsoft Documentation}\n * @example\n * await insightsClient.GetOperationStatus({\n * \"OperationId\": \"3ee468c4-ad09-4bb1-bccf-209ef5abfb96\"\n * });\n */\n GetOperationStatus (request: InsightsGetOperationStatusRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InsightsGetOperationStatusResponse>(\"/Insights/GetOperationStatus\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets a list of pending SetPerformance and/or SetStorageRetention operations for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/getpendingoperations Microsoft Documentation}\n * @example\n * await insightsClient.GetPendingOperations({\n * \"OperationType\": \"SetPerformance\"\n * });\n */\n GetPendingOperations (request: InsightsGetPendingOperationsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InsightsGetPendingOperationsResponse>(\"/Insights/GetPendingOperations\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the Insights performance level value for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/setperformance Microsoft Documentation}\n * @example\n * await insightsClient.SetPerformance({\n * \"PerformanceLevel\": 3\n * });\n */\n SetPerformance (request: InsightsSetPerformanceRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InsightsOperationResponse>(\"/Insights/SetPerformance\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the Insights data storage retention days value for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/insights/analytics/setstorageretention Microsoft Documentation}\n * @example\n * await insightsClient.SetStorageRetention({\n * \"RetentionDays\": 30\n * });\n */\n SetStorageRetention (request: InsightsSetStorageRetentionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<InsightsOperationResponse>(\"/Insights/SetStorageRetention\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAcA,IAAqB,qBAArB,cAAgD,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAU5D,WAAY,SAA+B,cAAuC;AAChF,WAAO,KAAK,sBAAkD,wBAAwB,SAAS,iBAAiB,YAAY;AAAA,EAC9H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,UAAW,SAA+B,cAAuC;AAC/E,WAAO,KAAK,sBAAiD,uBAAuB,SAAS,iBAAiB,YAAY;AAAA,EAC5H;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,mBAAoB,SAA4C,cAAuC;AACrG,WAAO,KAAK,sBAA0D,gCAAgC,SAAS,iBAAiB,YAAY;AAAA,EAC9I;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,qBAAsB,SAA8C,cAAuC;AACzG,WAAO,KAAK,sBAA4D,kCAAkC,SAAS,iBAAiB,YAAY;AAAA,EAClJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,eAAgB,SAAwC,cAAuC;AAC7F,WAAO,KAAK,sBAAiD,4BAA4B,SAAS,iBAAiB,YAAY;AAAA,EACjI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,oBAAqB,SAA6C,cAAuC;AACvG,WAAO,KAAK,sBAAiD,iCAAiC,SAAS,iBAAiB,YAAY;AAAA,EACtI;AAEF;","names":[]}