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,270 @@
1
+ import {
2
+ PlayFabCommon
3
+ } from "./chunk-XVDYM74A.js";
4
+
5
+ // src/apis/PlayFabCloudScriptApi.ts
6
+ var PlayFabCloudScriptApi = class extends PlayFabCommon {
7
+ /**
8
+ * Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of
9
+ * custom server-side functionality you can implement, and it can be used in conjunction with virtually anything.
10
+ *
11
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executeentitycloudscript Microsoft Documentation}
12
+ * @example
13
+ * await cloudscriptClient.ExecuteEntityCloudScript({
14
+ * "FunctionName": "levelCompleted",
15
+ * "FunctionParameter": {
16
+ * "level": 3,
17
+ * "points": 400
18
+ * },
19
+ * "RevisionSelection": "Live",
20
+ * "GeneratePlayStreamEvent": true,
21
+ * "Entity": {
22
+ * "Id": "aaa",
23
+ * "Type": "title_player_account",
24
+ * "TypeString": "title_player_account"
25
+ * }
26
+ * });
27
+ */
28
+ ExecuteEntityCloudScript(request, extraHeaders) {
29
+ return this.ExecuteRequestWrapper("/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", extraHeaders);
30
+ }
31
+ /**
32
+ * Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of
33
+ * custom server-side functionality you can implement, and it can be used in conjunction with virtually anything.
34
+ *
35
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction Microsoft Documentation}
36
+ * @example
37
+ * await cloudscriptClient.ExecuteFunction({
38
+ * "FunctionName": "LevelCompleted",
39
+ * "FunctionParameter": {
40
+ * "level": 3,
41
+ * "points": 400
42
+ * },
43
+ * "GeneratePlayStreamEvent": true,
44
+ * "Entity": {
45
+ * "Id": "aaa",
46
+ * "Type": "title_player_account",
47
+ * "TypeString": "title_player_account"
48
+ * }
49
+ * });
50
+ */
51
+ ExecuteFunction(request, extraHeaders) {
52
+ return this.ExecuteRequestWrapper("/CloudScript/ExecuteFunction", request, "X-EntityToken", extraHeaders);
53
+ }
54
+ /**
55
+ * Gets registered Azure Functions for a given title id and function name.
56
+ *
57
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/getfunction Microsoft Documentation}
58
+ * @example
59
+ * await cloudscriptClient.GetFunction({
60
+ * "FunctionName": "LevelCompleted"
61
+ * });
62
+ */
63
+ GetFunction(request, extraHeaders) {
64
+ return this.ExecuteRequestWrapper("/CloudScript/GetFunction", request, "X-EntityToken", extraHeaders);
65
+ }
66
+ /**
67
+ * Lists all currently registered Event Hub triggered Azure Functions for a given title.
68
+ *
69
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listeventhubfunctions Microsoft Documentation}
70
+ * @example
71
+ * await cloudscriptClient.ListEventHubFunctions({});
72
+ */
73
+ ListEventHubFunctions(request, extraHeaders) {
74
+ return this.ExecuteRequestWrapper("/CloudScript/ListEventHubFunctions", request, "X-EntityToken", extraHeaders);
75
+ }
76
+ /**
77
+ * Lists all currently registered Azure Functions for a given title.
78
+ *
79
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions Microsoft Documentation}
80
+ * @example
81
+ * await cloudscriptClient.ListFunctions({});
82
+ */
83
+ ListFunctions(request, extraHeaders) {
84
+ return this.ExecuteRequestWrapper("/CloudScript/ListFunctions", request, "X-EntityToken", extraHeaders);
85
+ }
86
+ /**
87
+ * Lists all currently registered HTTP triggered Azure Functions for a given title.
88
+ *
89
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions Microsoft Documentation}
90
+ * @example
91
+ * await cloudscriptClient.ListHttpFunctions({});
92
+ */
93
+ ListHttpFunctions(request, extraHeaders) {
94
+ return this.ExecuteRequestWrapper("/CloudScript/ListHttpFunctions", request, "X-EntityToken", extraHeaders);
95
+ }
96
+ /**
97
+ * Lists all currently registered Queue triggered Azure Functions for a given title.
98
+ *
99
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions Microsoft Documentation}
100
+ * @example
101
+ * await cloudscriptClient.ListQueuedFunctions({});
102
+ */
103
+ ListQueuedFunctions(request, extraHeaders) {
104
+ return this.ExecuteRequestWrapper("/CloudScript/ListQueuedFunctions", request, "X-EntityToken", extraHeaders);
105
+ }
106
+ /**
107
+ * Generate an entity PlayStream event for the provided function result.
108
+ *
109
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction Microsoft Documentation}
110
+ * @example
111
+ * await cloudscriptClient.PostFunctionResultForEntityTriggeredAction({
112
+ * "FunctionResult": {
113
+ * "ExecutionTimeMilliseconds": 367,
114
+ * "FunctionName": "LevelCompleted",
115
+ * "FunctionResult": {
116
+ * "newScore": 25,
117
+ * "isWinner": false
118
+ * }
119
+ * },
120
+ * "Entity": {
121
+ * "Id": "ID",
122
+ * "Type": "title_player_account",
123
+ * "TypeString": "title_player_account"
124
+ * }
125
+ * });
126
+ */
127
+ PostFunctionResultForEntityTriggeredAction(request, extraHeaders) {
128
+ return this.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForEntityTriggeredAction", request, "X-EntityToken", extraHeaders);
129
+ }
130
+ /**
131
+ * Generate an entity PlayStream event for the provided function result.
132
+ *
133
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution Microsoft Documentation}
134
+ * @example
135
+ * await cloudscriptClient.PostFunctionResultForFunctionExecution({
136
+ * "FunctionResult": {
137
+ * "ExecutionTimeMilliseconds": 367,
138
+ * "FunctionName": "LevelCompleted",
139
+ * "FunctionResult": {
140
+ * "newScore": 25,
141
+ * "isWinner": false
142
+ * }
143
+ * },
144
+ * "Entity": {
145
+ * "Id": "ID",
146
+ * "Type": "title_player_account",
147
+ * "TypeString": "title_player_account"
148
+ * }
149
+ * });
150
+ */
151
+ PostFunctionResultForFunctionExecution(request, extraHeaders) {
152
+ return this.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForFunctionExecution", request, "X-EntityToken", extraHeaders);
153
+ }
154
+ /**
155
+ * Generate a player PlayStream event for the provided function result.
156
+ *
157
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction Microsoft Documentation}
158
+ * @example
159
+ * await cloudscriptClient.PostFunctionResultForPlayerTriggeredAction({
160
+ * "PlayStreamEventEnvelope": {
161
+ * "EntityId": "1234ABCD",
162
+ * "EntityType": "title_player_account",
163
+ * "EventName": "player_logged_in",
164
+ * "EventNamespace": "com.playfab",
165
+ * "EventData": "someeventdata",
166
+ * "EventSettings": "someeventsettings",
167
+ * "EventToBeDropped": false
168
+ * },
169
+ * "PlayerProfile": {
170
+ * "TitleId": "FFFF",
171
+ * "PlayerId": "1234ABCD",
172
+ * "Created": "2019-02-11T20:23:05Z",
173
+ * "LastLogin": "2020-02-11T20:23:05Z",
174
+ * "DisplayName": "Gudge"
175
+ * },
176
+ * "FunctionResult": {
177
+ * "ExecutionTimeMilliseconds": 367,
178
+ * "FunctionName": "LevelCompleted",
179
+ * "FunctionResult": {
180
+ * "newScore": 25,
181
+ * "isWinner": false
182
+ * }
183
+ * }
184
+ * });
185
+ */
186
+ PostFunctionResultForPlayerTriggeredAction(request, extraHeaders) {
187
+ return this.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForPlayerTriggeredAction", request, "X-EntityToken", extraHeaders);
188
+ }
189
+ /**
190
+ * Generate a PlayStream event for the provided function result.
191
+ *
192
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask Microsoft Documentation}
193
+ * @example
194
+ * await cloudscriptClient.PostFunctionResultForScheduledTask({
195
+ * "ScheduledTaskId": {
196
+ * "Name": "MyTask",
197
+ * "Id": "d739e188-22f6-4d13-a4d5-df2e93d4d2f7"
198
+ * },
199
+ * "FunctionResult": {
200
+ * "ExecutionTimeMilliseconds": 367,
201
+ * "FunctionName": "LevelCompleted",
202
+ * "FunctionResult": {
203
+ * "newScore": 25,
204
+ * "isWinner": false
205
+ * }
206
+ * }
207
+ * });
208
+ */
209
+ PostFunctionResultForScheduledTask(request, extraHeaders) {
210
+ return this.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForScheduledTask", request, "X-EntityToken", extraHeaders);
211
+ }
212
+ /**
213
+ * Registers an event hub triggered Azure Function with a title.
214
+ *
215
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registereventhubfunction Microsoft Documentation}
216
+ * @example
217
+ * await cloudscriptClient.RegisterEventHubFunction({
218
+ * "EventHubName": "fn-eventhub",
219
+ * "ConnectionString": "SampleConnectionString",
220
+ * "FunctionName": "functionName"
221
+ * });
222
+ */
223
+ RegisterEventHubFunction(request, extraHeaders) {
224
+ return this.ExecuteRequestWrapper("/CloudScript/RegisterEventHubFunction", request, "X-EntityToken", extraHeaders);
225
+ }
226
+ /**
227
+ * Registers an HTTP triggered Azure function with a title.
228
+ *
229
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction Microsoft Documentation}
230
+ * @example
231
+ * await cloudscriptClient.RegisterHttpFunction({
232
+ * "FunctionUrl": "http://function.url",
233
+ * "FunctionName": "functionName"
234
+ * });
235
+ */
236
+ RegisterHttpFunction(request, extraHeaders) {
237
+ return this.ExecuteRequestWrapper("/CloudScript/RegisterHttpFunction", request, "X-EntityToken", extraHeaders);
238
+ }
239
+ /**
240
+ * Registers a queue triggered Azure Function with a title.
241
+ *
242
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction Microsoft Documentation}
243
+ * @example
244
+ * await cloudscriptClient.RegisterQueuedFunction({
245
+ * "QueueName": "fn-queue",
246
+ * "ConnectionString": "SampleConnectionString",
247
+ * "FunctionName": "functionName"
248
+ * });
249
+ */
250
+ RegisterQueuedFunction(request, extraHeaders) {
251
+ return this.ExecuteRequestWrapper("/CloudScript/RegisterQueuedFunction", request, "X-EntityToken", extraHeaders);
252
+ }
253
+ /**
254
+ * Unregisters an Azure Function with a title.
255
+ *
256
+ * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction Microsoft Documentation}
257
+ * @example
258
+ * await cloudscriptClient.UnregisterFunction({
259
+ * "FunctionName": "functionName"
260
+ * });
261
+ */
262
+ UnregisterFunction(request, extraHeaders) {
263
+ return this.ExecuteRequestWrapper("/CloudScript/UnregisterFunction", request, "X-EntityToken", extraHeaders);
264
+ }
265
+ };
266
+
267
+ export {
268
+ PlayFabCloudScriptApi
269
+ };
270
+ //# sourceMappingURL=chunk-SQWILU5T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/apis/PlayFabCloudScriptApi.ts"],"sourcesContent":["import type {\n ExecuteEntityCloudScriptRequest,\n ExecuteFunctionRequest,\n GetFunctionRequest,\n ListFunctionsRequest,\n PostFunctionResultForEntityTriggeredActionRequest,\n PostFunctionResultForFunctionExecutionRequest,\n PostFunctionResultForPlayerTriggeredActionRequest,\n PostFunctionResultForScheduledTaskRequest,\n RegisterEventHubFunctionRequest,\n RegisterHttpFunctionRequest,\n RegisterQueuedFunctionRequest,\n UnregisterFunctionRequest,\n ExecuteCloudScriptResult,\n ExecuteFunctionResult,\n GetFunctionResult,\n ListEventHubFunctionsResult,\n ListFunctionsResult,\n ListHttpFunctionsResult,\n ListQueuedFunctionsResult,\n EmptyResult,\n} from \"../types/PlayFabCloudScriptApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabCloudScriptApi extends PlayFabCommon {\n\n /**\n * Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of\n * custom server-side functionality you can implement, and it can be used in conjunction with virtually anything.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executeentitycloudscript Microsoft Documentation}\n * @example\n * await cloudscriptClient.ExecuteEntityCloudScript({\n * \"FunctionName\": \"levelCompleted\",\n * \"FunctionParameter\": {\n * \"level\": 3,\n * \"points\": 400\n * },\n * \"RevisionSelection\": \"Live\",\n * \"GeneratePlayStreamEvent\": true,\n * \"Entity\": {\n * \"Id\": \"aaa\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n ExecuteEntityCloudScript (request: ExecuteEntityCloudScriptRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ExecuteCloudScriptResult>(\"/CloudScript/ExecuteEntityCloudScript\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of\n * custom server-side functionality you can implement, and it can be used in conjunction with virtually anything.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction Microsoft Documentation}\n * @example\n * await cloudscriptClient.ExecuteFunction({\n * \"FunctionName\": \"LevelCompleted\",\n * \"FunctionParameter\": {\n * \"level\": 3,\n * \"points\": 400\n * },\n * \"GeneratePlayStreamEvent\": true,\n * \"Entity\": {\n * \"Id\": \"aaa\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n ExecuteFunction (request: ExecuteFunctionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ExecuteFunctionResult>(\"/CloudScript/ExecuteFunction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets registered Azure Functions for a given title id and function name.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/getfunction Microsoft Documentation}\n * @example\n * await cloudscriptClient.GetFunction({\n * \"FunctionName\": \"LevelCompleted\"\n * });\n */\n GetFunction (request: GetFunctionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetFunctionResult>(\"/CloudScript/GetFunction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Lists all currently registered Event Hub triggered Azure Functions for a given title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listeventhubfunctions Microsoft Documentation}\n * @example\n * await cloudscriptClient.ListEventHubFunctions({});\n */\n ListEventHubFunctions (request: ListFunctionsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListEventHubFunctionsResult>(\"/CloudScript/ListEventHubFunctions\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Lists all currently registered Azure Functions for a given title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions Microsoft Documentation}\n * @example\n * await cloudscriptClient.ListFunctions({});\n */\n ListFunctions (request: ListFunctionsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListFunctionsResult>(\"/CloudScript/ListFunctions\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Lists all currently registered HTTP triggered Azure Functions for a given title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions Microsoft Documentation}\n * @example\n * await cloudscriptClient.ListHttpFunctions({});\n */\n ListHttpFunctions (request: ListFunctionsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListHttpFunctionsResult>(\"/CloudScript/ListHttpFunctions\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Lists all currently registered Queue triggered Azure Functions for a given title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions Microsoft Documentation}\n * @example\n * await cloudscriptClient.ListQueuedFunctions({});\n */\n ListQueuedFunctions (request: ListFunctionsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListQueuedFunctionsResult>(\"/CloudScript/ListQueuedFunctions\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Generate an entity PlayStream event for the provided function result.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction Microsoft Documentation}\n * @example\n * await cloudscriptClient.PostFunctionResultForEntityTriggeredAction({\n * \"FunctionResult\": {\n * \"ExecutionTimeMilliseconds\": 367,\n * \"FunctionName\": \"LevelCompleted\",\n * \"FunctionResult\": {\n * \"newScore\": 25,\n * \"isWinner\": false\n * }\n * },\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n PostFunctionResultForEntityTriggeredAction (request: PostFunctionResultForEntityTriggeredActionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/PostFunctionResultForEntityTriggeredAction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Generate an entity PlayStream event for the provided function result.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution Microsoft Documentation}\n * @example\n * await cloudscriptClient.PostFunctionResultForFunctionExecution({\n * \"FunctionResult\": {\n * \"ExecutionTimeMilliseconds\": 367,\n * \"FunctionName\": \"LevelCompleted\",\n * \"FunctionResult\": {\n * \"newScore\": 25,\n * \"isWinner\": false\n * }\n * },\n * \"Entity\": {\n * \"Id\": \"ID\",\n * \"Type\": \"title_player_account\",\n * \"TypeString\": \"title_player_account\"\n * }\n * });\n */\n PostFunctionResultForFunctionExecution (request: PostFunctionResultForFunctionExecutionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/PostFunctionResultForFunctionExecution\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Generate a player PlayStream event for the provided function result.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction Microsoft Documentation}\n * @example\n * await cloudscriptClient.PostFunctionResultForPlayerTriggeredAction({\n * \"PlayStreamEventEnvelope\": {\n * \"EntityId\": \"1234ABCD\",\n * \"EntityType\": \"title_player_account\",\n * \"EventName\": \"player_logged_in\",\n * \"EventNamespace\": \"com.playfab\",\n * \"EventData\": \"someeventdata\",\n * \"EventSettings\": \"someeventsettings\",\n * \"EventToBeDropped\": false\n * },\n * \"PlayerProfile\": {\n * \"TitleId\": \"FFFF\",\n * \"PlayerId\": \"1234ABCD\",\n * \"Created\": \"2019-02-11T20:23:05Z\",\n * \"LastLogin\": \"2020-02-11T20:23:05Z\",\n * \"DisplayName\": \"Gudge\"\n * },\n * \"FunctionResult\": {\n * \"ExecutionTimeMilliseconds\": 367,\n * \"FunctionName\": \"LevelCompleted\",\n * \"FunctionResult\": {\n * \"newScore\": 25,\n * \"isWinner\": false\n * }\n * }\n * });\n */\n PostFunctionResultForPlayerTriggeredAction (request: PostFunctionResultForPlayerTriggeredActionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/PostFunctionResultForPlayerTriggeredAction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Generate a PlayStream event for the provided function result.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask Microsoft Documentation}\n * @example\n * await cloudscriptClient.PostFunctionResultForScheduledTask({\n * \"ScheduledTaskId\": {\n * \"Name\": \"MyTask\",\n * \"Id\": \"d739e188-22f6-4d13-a4d5-df2e93d4d2f7\"\n * },\n * \"FunctionResult\": {\n * \"ExecutionTimeMilliseconds\": 367,\n * \"FunctionName\": \"LevelCompleted\",\n * \"FunctionResult\": {\n * \"newScore\": 25,\n * \"isWinner\": false\n * }\n * }\n * });\n */\n PostFunctionResultForScheduledTask (request: PostFunctionResultForScheduledTaskRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/PostFunctionResultForScheduledTask\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Registers an event hub triggered Azure Function with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registereventhubfunction Microsoft Documentation}\n * @example\n * await cloudscriptClient.RegisterEventHubFunction({\n * \"EventHubName\": \"fn-eventhub\",\n * \"ConnectionString\": \"SampleConnectionString\",\n * \"FunctionName\": \"functionName\"\n * });\n */\n RegisterEventHubFunction (request: RegisterEventHubFunctionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/RegisterEventHubFunction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Registers an HTTP triggered Azure function with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction Microsoft Documentation}\n * @example\n * await cloudscriptClient.RegisterHttpFunction({\n * \"FunctionUrl\": \"http://function.url\",\n * \"FunctionName\": \"functionName\"\n * });\n */\n RegisterHttpFunction (request: RegisterHttpFunctionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/RegisterHttpFunction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Registers a queue triggered Azure Function with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction Microsoft Documentation}\n * @example\n * await cloudscriptClient.RegisterQueuedFunction({\n * \"QueueName\": \"fn-queue\",\n * \"ConnectionString\": \"SampleConnectionString\",\n * \"FunctionName\": \"functionName\"\n * });\n */\n RegisterQueuedFunction (request: RegisterQueuedFunctionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/RegisterQueuedFunction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Unregisters an Azure Function with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction Microsoft Documentation}\n * @example\n * await cloudscriptClient.UnregisterFunction({\n * \"FunctionName\": \"functionName\"\n * });\n */\n UnregisterFunction (request: UnregisterFunctionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<EmptyResult>(\"/CloudScript/UnregisterFunction\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAwBA,IAAq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