async-playfab-web-sdk 1.192.250526-4 → 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.
- package/dist/Addon.d.ts +178 -38
- package/dist/Addon.js +2 -2
- package/dist/Admin.d.ts +2385 -194
- package/dist/Admin.js +2 -2
- package/dist/Authentication.d.ts +31 -4
- package/dist/Authentication.js +2 -2
- package/dist/Client.d.ts +2234 -320
- package/dist/Client.js +2 -2
- package/dist/CloudScript.d.ts +198 -30
- package/dist/CloudScript.js +2 -2
- package/dist/Data.d.ts +136 -17
- package/dist/Data.js +2 -2
- package/dist/Economy.d.ts +1145 -106
- package/dist/Economy.js +2 -2
- package/dist/Events.d.ts +199 -12
- package/dist/Events.js +2 -2
- package/dist/Experimentation.d.ts +163 -16
- package/dist/Experimentation.js +2 -2
- package/dist/Groups.d.ts +266 -27
- package/dist/Groups.js +2 -2
- package/dist/Insights.d.ts +32 -6
- package/dist/Insights.js +2 -2
- package/dist/Localization.d.ts +4 -1
- package/dist/Localization.js +2 -2
- package/dist/Matchmaker.d.ts +271 -0
- package/dist/Matchmaker.js +8 -0
- package/dist/Matchmaker.js.map +1 -0
- package/dist/Multiplayer.d.ts +2696 -168
- package/dist/Multiplayer.js +2 -2
- package/dist/Profiles.d.ts +162 -18
- package/dist/Profiles.js +2 -2
- package/dist/Progression.d.ts +286 -34
- package/dist/Progression.js +2 -2
- package/dist/Server.d.ts +1903 -241
- package/dist/Server.js +2 -2
- package/dist/chunk-3I6ONUUQ.js +237 -0
- package/dist/chunk-3I6ONUUQ.js.map +1 -0
- package/dist/chunk-3O5QT4SL.js +2477 -0
- package/dist/chunk-3O5QT4SL.js.map +1 -0
- package/dist/chunk-3OBHYLBF.js +2673 -0
- package/dist/chunk-3OBHYLBF.js.map +1 -0
- package/dist/chunk-57KYHGBO.js +421 -0
- package/dist/chunk-57KYHGBO.js.map +1 -0
- package/dist/{chunk-CLMINF57.js → chunk-5CWZN75H.js} +6 -3
- package/dist/chunk-5CWZN75H.js.map +1 -0
- package/dist/chunk-73SVDH45.js +197 -0
- package/dist/chunk-73SVDH45.js.map +1 -0
- package/dist/chunk-ADHTNFTN.js +175 -0
- package/dist/chunk-ADHTNFTN.js.map +1 -0
- package/dist/chunk-C7U2JQNZ.js +76 -0
- package/dist/chunk-C7U2JQNZ.js.map +1 -0
- package/dist/{chunk-PXPOK2QU.js → chunk-GAZYZIK2.js} +34 -8
- package/dist/chunk-GAZYZIK2.js.map +1 -0
- package/dist/chunk-J54WY4UN.js +413 -0
- package/dist/chunk-J54WY4UN.js.map +1 -0
- package/dist/chunk-NFWQ4MMZ.js +1048 -0
- package/dist/chunk-NFWQ4MMZ.js.map +1 -0
- package/dist/{chunk-7UQYMDJQ.js → chunk-P7UVG26J.js} +167 -32
- package/dist/chunk-P7UVG26J.js.map +1 -0
- package/dist/chunk-PFXZB4UN.js +2387 -0
- package/dist/chunk-PFXZB4UN.js.map +1 -0
- package/dist/{chunk-RJPMKD7P.js → chunk-QNGQW3YB.js} +28 -6
- package/dist/chunk-QNGQW3YB.js.map +1 -0
- package/dist/chunk-SQWILU5T.js +270 -0
- package/dist/chunk-SQWILU5T.js.map +1 -0
- package/dist/{chunk-FEEE3PRD.js → chunk-SR2RIRLX.js} +1482 -175
- package/dist/chunk-SR2RIRLX.js.map +1 -0
- package/dist/{chunk-6TH6EJYH.js → chunk-XVDYM74A.js} +4 -4
- package/dist/chunk-XVDYM74A.js.map +1 -0
- package/dist/chunk-ZW4TJ3MQ.js +225 -0
- package/dist/chunk-ZW4TJ3MQ.js.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +29 -25
- package/package.json +2 -2
- package/dist/chunk-2IBLMNAQ.js +0 -882
- package/dist/chunk-2IBLMNAQ.js.map +0 -1
- package/dist/chunk-3TRLETD6.js +0 -119
- package/dist/chunk-3TRLETD6.js.map +0 -1
- package/dist/chunk-4LT3OUQD.js +0 -632
- package/dist/chunk-4LT3OUQD.js.map +0 -1
- package/dist/chunk-6TH6EJYH.js.map +0 -1
- package/dist/chunk-7UQYMDJQ.js.map +0 -1
- package/dist/chunk-CLMINF57.js.map +0 -1
- package/dist/chunk-F5NRBD4O.js +0 -174
- package/dist/chunk-F5NRBD4O.js.map +0 -1
- package/dist/chunk-FEEE3PRD.js.map +0 -1
- package/dist/chunk-HKZJ4H4O.js +0 -97
- package/dist/chunk-HKZJ4H4O.js.map +0 -1
- package/dist/chunk-NJQCK4TL.js +0 -61
- package/dist/chunk-NJQCK4TL.js.map +0 -1
- package/dist/chunk-ONCBQLGS.js +0 -1147
- package/dist/chunk-ONCBQLGS.js.map +0 -1
- package/dist/chunk-PXPOK2QU.js.map +0 -1
- package/dist/chunk-Q22JHX4G.js +0 -76
- package/dist/chunk-Q22JHX4G.js.map +0 -1
- package/dist/chunk-RJPMKD7P.js.map +0 -1
- package/dist/chunk-WROXLFDZ.js +0 -103
- package/dist/chunk-WROXLFDZ.js.map +0 -1
- package/dist/chunk-XAI5IWL4.js +0 -187
- package/dist/chunk-XAI5IWL4.js.map +0 -1
- package/dist/chunk-XM26BUTO.js +0 -384
- package/dist/chunk-XM26BUTO.js.map +0 -1
package/dist/Server.js
CHANGED
@@ -0,0 +1,237 @@
|
|
1
|
+
import {
|
2
|
+
PlayFabCommon
|
3
|
+
} from "./chunk-XVDYM74A.js";
|
4
|
+
|
5
|
+
// src/apis/PlayFabEventsApi.ts
|
6
|
+
var PlayFabEventsApi = class extends PlayFabCommon {
|
7
|
+
/**
|
8
|
+
* Creates a new telemetry key for the title.
|
9
|
+
*
|
10
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/createtelemetrykey Microsoft Documentation}
|
11
|
+
* @example
|
12
|
+
* await eventClient.CreateTelemetryKey({
|
13
|
+
* "KeyName": "MyTelemetryKey"
|
14
|
+
* });
|
15
|
+
*/
|
16
|
+
CreateTelemetryKey(request, extraHeaders) {
|
17
|
+
return this.ExecuteRequestWrapper("/Event/CreateTelemetryKey", request, "X-EntityToken", extraHeaders);
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* Deletes a Data Connection from a title.
|
21
|
+
*
|
22
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletedataconnection Microsoft Documentation}
|
23
|
+
* @example
|
24
|
+
* await eventClient.DeleteDataConnection({
|
25
|
+
* "Name": "MyDataConnection"
|
26
|
+
* });
|
27
|
+
*/
|
28
|
+
DeleteDataConnection(request, extraHeaders) {
|
29
|
+
return this.ExecuteRequestWrapper("/Event/DeleteDataConnection", request, "X-EntityToken", extraHeaders);
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* Deletes the sampling ratio for an event.
|
33
|
+
*
|
34
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/deleteeventsamplingratio Microsoft Documentation}
|
35
|
+
*/
|
36
|
+
DeleteEventSamplingRatio(request, extraHeaders) {
|
37
|
+
return this.ExecuteRequestWrapper("/Event/DeleteEventSamplingRatio", request, "X-EntityToken", extraHeaders);
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* Deletes a telemetry key configured for the title.
|
41
|
+
*
|
42
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletetelemetrykey Microsoft Documentation}
|
43
|
+
* @example
|
44
|
+
* await eventClient.DeleteTelemetryKey({
|
45
|
+
* "KeyName": "MyTelemetryKey"
|
46
|
+
* });
|
47
|
+
*/
|
48
|
+
DeleteTelemetryKey(request, extraHeaders) {
|
49
|
+
return this.ExecuteRequestWrapper("/Event/DeleteTelemetryKey", request, "X-EntityToken", extraHeaders);
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* Retrieves a single Data Connection associated with a title.
|
53
|
+
*
|
54
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/getdataconnection Microsoft Documentation}
|
55
|
+
* @example
|
56
|
+
* await eventClient.GetDataConnection({
|
57
|
+
* "Name": "MyDataConnection"
|
58
|
+
* });
|
59
|
+
*/
|
60
|
+
GetDataConnection(request, extraHeaders) {
|
61
|
+
return this.ExecuteRequestWrapper("/Event/GetDataConnection", request, "X-EntityToken", extraHeaders);
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* Gets the sampling ratio for an event.
|
65
|
+
*
|
66
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratio Microsoft Documentation}
|
67
|
+
* @example
|
68
|
+
* await eventClient.GetEventSamplingRatio({
|
69
|
+
* "EventNamespace": "com.playfab",
|
70
|
+
* "EventName": "player_executed_cloudscript"
|
71
|
+
* });
|
72
|
+
*/
|
73
|
+
GetEventSamplingRatio(request, extraHeaders) {
|
74
|
+
return this.ExecuteRequestWrapper("/Event/GetEventSamplingRatio", request, "X-EntityToken", extraHeaders);
|
75
|
+
}
|
76
|
+
/**
|
77
|
+
* Gets the event sampling ratios for a title.
|
78
|
+
*
|
79
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratios Microsoft Documentation}
|
80
|
+
*/
|
81
|
+
GetEventSamplingRatios(request, extraHeaders) {
|
82
|
+
return this.ExecuteRequestWrapper("/Event/GetEventSamplingRatios", request, "X-EntityToken", extraHeaders);
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* Gets information about a telemetry key configured for the title.
|
86
|
+
*
|
87
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/gettelemetrykey Microsoft Documentation}
|
88
|
+
* @example
|
89
|
+
* await eventClient.GetTelemetryKey({
|
90
|
+
* "KeyName": "MyTelemetryKey"
|
91
|
+
* });
|
92
|
+
*/
|
93
|
+
GetTelemetryKey(request, extraHeaders) {
|
94
|
+
return this.ExecuteRequestWrapper("/Event/GetTelemetryKey", request, "X-EntityToken", extraHeaders);
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* Retrieves the list of Data Connections associated with a title.
|
98
|
+
*
|
99
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listdataconnections Microsoft Documentation}
|
100
|
+
* @example
|
101
|
+
* await eventClient.ListDataConnections({});
|
102
|
+
*/
|
103
|
+
ListDataConnections(request, extraHeaders) {
|
104
|
+
return this.ExecuteRequestWrapper("/Event/ListDataConnections", request, "X-EntityToken", extraHeaders);
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* Lists all telemetry keys configured for the title.
|
108
|
+
*
|
109
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listtelemetrykeys Microsoft Documentation}
|
110
|
+
* @example
|
111
|
+
* await eventClient.ListTelemetryKeys({});
|
112
|
+
*/
|
113
|
+
ListTelemetryKeys(request, extraHeaders) {
|
114
|
+
return this.ExecuteRequestWrapper("/Event/ListTelemetryKeys", request, "X-EntityToken", extraHeaders);
|
115
|
+
}
|
116
|
+
/**
|
117
|
+
* Creates or updates a Data Connection on a title.
|
118
|
+
*
|
119
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnection Microsoft Documentation}
|
120
|
+
* @example
|
121
|
+
* await eventClient.SetDataConnection({
|
122
|
+
* "Name": "MyDataConnection",
|
123
|
+
* "Type": "AzureDataExplorer",
|
124
|
+
* "IsActive": true,
|
125
|
+
* "ConnectionSettings": {
|
126
|
+
* "AzureDataExplorerSettings": {
|
127
|
+
* "ClusterUri": "https://myadxcluster.kusto.windows.net",
|
128
|
+
* "Database": "MyDatabase",
|
129
|
+
* "Table": "MyTable"
|
130
|
+
* }
|
131
|
+
* }
|
132
|
+
* });
|
133
|
+
*/
|
134
|
+
SetDataConnection(request, extraHeaders) {
|
135
|
+
return this.ExecuteRequestWrapper("/Event/SetDataConnection", request, "X-EntityToken", extraHeaders);
|
136
|
+
}
|
137
|
+
/**
|
138
|
+
* Sets a Data Connection for the title to either the active or deactivated state.
|
139
|
+
*
|
140
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnectionactive Microsoft Documentation}
|
141
|
+
* @example
|
142
|
+
* await eventClient.SetDataConnectionActive({
|
143
|
+
* "Name": "MyDataConnection",
|
144
|
+
* "Active": false
|
145
|
+
* });
|
146
|
+
*/
|
147
|
+
SetDataConnectionActive(request, extraHeaders) {
|
148
|
+
return this.ExecuteRequestWrapper("/Event/SetDataConnectionActive", request, "X-EntityToken", extraHeaders);
|
149
|
+
}
|
150
|
+
/**
|
151
|
+
* Sets the sampling ratio for an event.
|
152
|
+
*
|
153
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/seteventsamplingratio Microsoft Documentation}
|
154
|
+
*/
|
155
|
+
SetEventSamplingRatio(request, extraHeaders) {
|
156
|
+
return this.ExecuteRequestWrapper("/Event/SetEventSamplingRatio", request, "X-EntityToken", extraHeaders);
|
157
|
+
}
|
158
|
+
/**
|
159
|
+
* Sets a telemetry key to the active or deactivated state.
|
160
|
+
*
|
161
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/settelemetrykeyactive Microsoft Documentation}
|
162
|
+
* @example
|
163
|
+
* await eventClient.SetTelemetryKeyActive({
|
164
|
+
* "KeyName": "MyTelemetryKey",
|
165
|
+
* "Active": false
|
166
|
+
* });
|
167
|
+
*/
|
168
|
+
SetTelemetryKeyActive(request, extraHeaders) {
|
169
|
+
return this.ExecuteRequestWrapper("/Event/SetTelemetryKeyActive", request, "X-EntityToken", extraHeaders);
|
170
|
+
}
|
171
|
+
/**
|
172
|
+
* Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'.
|
173
|
+
*
|
174
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writeevents Microsoft Documentation}
|
175
|
+
* @example
|
176
|
+
* await eventClient.WriteEvents({
|
177
|
+
* "Events": [
|
178
|
+
* {
|
179
|
+
* "Entity": {
|
180
|
+
* "Id": "A8140AB9109712B",
|
181
|
+
* "Type": "title",
|
182
|
+
* "TypeString": "title"
|
183
|
+
* },
|
184
|
+
* "EventNamespace": "com.playfab.events.example",
|
185
|
+
* "Name": "something_happened",
|
186
|
+
* "Payload": {
|
187
|
+
* "Foo": "Bar",
|
188
|
+
* "Nums": [
|
189
|
+
* 1,
|
190
|
+
* 2,
|
191
|
+
* 3
|
192
|
+
* ]
|
193
|
+
* }
|
194
|
+
* }
|
195
|
+
* ]
|
196
|
+
* });
|
197
|
+
*/
|
198
|
+
WriteEvents(request, extraHeaders) {
|
199
|
+
return this.ExecuteRequestWrapper("/Event/WriteEvents", request, "X-EntityToken", extraHeaders);
|
200
|
+
}
|
201
|
+
/**
|
202
|
+
* Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start
|
203
|
+
* with 'custom.'
|
204
|
+
*
|
205
|
+
* {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writetelemetryevents Microsoft Documentation}
|
206
|
+
* @example
|
207
|
+
* await eventClient.WriteTelemetryEvents({
|
208
|
+
* "Events": [
|
209
|
+
* {
|
210
|
+
* "Entity": {
|
211
|
+
* "Id": "A8140AB9109712B",
|
212
|
+
* "Type": "title",
|
213
|
+
* "TypeString": "title"
|
214
|
+
* },
|
215
|
+
* "EventNamespace": "com.playfab.events.example",
|
216
|
+
* "Name": "something_happened",
|
217
|
+
* "Payload": {
|
218
|
+
* "Foo": "Bar",
|
219
|
+
* "Nums": [
|
220
|
+
* 1,
|
221
|
+
* 2,
|
222
|
+
* 3
|
223
|
+
* ]
|
224
|
+
* }
|
225
|
+
* }
|
226
|
+
* ]
|
227
|
+
* });
|
228
|
+
*/
|
229
|
+
WriteTelemetryEvents(request, extraHeaders) {
|
230
|
+
return this.ExecuteRequestWrapper("/Event/WriteTelemetryEvents", request, "X-EntityToken", extraHeaders);
|
231
|
+
}
|
232
|
+
};
|
233
|
+
|
234
|
+
export {
|
235
|
+
PlayFabEventsApi
|
236
|
+
};
|
237
|
+
//# sourceMappingURL=chunk-3I6ONUUQ.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/apis/PlayFabEventsApi.ts"],"sourcesContent":["import type {\n CreateTelemetryKeyRequest,\n DeleteDataConnectionRequest,\n DeleteEventSamplingRatioRequest,\n DeleteTelemetryKeyRequest,\n GetDataConnectionRequest,\n GetEventSamplingRatioRequest,\n GetEventSamplingRatiosRequest,\n GetTelemetryKeyRequest,\n ListDataConnectionsRequest,\n ListTelemetryKeysRequest,\n SetDataConnectionRequest,\n SetDataConnectionActiveRequest,\n SetEventSamplingRatioRequest,\n SetTelemetryKeyActiveRequest,\n WriteEventsRequest,\n CreateTelemetryKeyResponse,\n DeleteDataConnectionResponse,\n DeleteEventSamplingRatioResult,\n DeleteTelemetryKeyResponse,\n GetDataConnectionResponse,\n GetEventSamplingRatioResult,\n GetEventSamplingRatiosResult,\n GetTelemetryKeyResponse,\n ListDataConnectionsResponse,\n ListTelemetryKeysResponse,\n SetDataConnectionResponse,\n SetDataConnectionActiveResponse,\n SetEventSamplingRatioResult,\n SetTelemetryKeyActiveResponse,\n WriteEventsResponse,\n} from \"../types/PlayFabEventsApi\";\nimport { PlayFabCommon } from \"../PlayFabCommon\";\n\nexport default class PlayFabEventsApi extends PlayFabCommon {\n\n /**\n * Creates a new telemetry key for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/createtelemetrykey Microsoft Documentation}\n * @example\n * await eventClient.CreateTelemetryKey({\n * \"KeyName\": \"MyTelemetryKey\"\n * });\n */\n CreateTelemetryKey (request: CreateTelemetryKeyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<CreateTelemetryKeyResponse>(\"/Event/CreateTelemetryKey\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes a Data Connection from a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletedataconnection Microsoft Documentation}\n * @example\n * await eventClient.DeleteDataConnection({\n * \"Name\": \"MyDataConnection\"\n * });\n */\n DeleteDataConnection (request: DeleteDataConnectionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteDataConnectionResponse>(\"/Event/DeleteDataConnection\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes the sampling ratio for an event.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/deleteeventsamplingratio Microsoft Documentation}\n */\n DeleteEventSamplingRatio (request: DeleteEventSamplingRatioRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteEventSamplingRatioResult>(\"/Event/DeleteEventSamplingRatio\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Deletes a telemetry key configured for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/deletetelemetrykey Microsoft Documentation}\n * @example\n * await eventClient.DeleteTelemetryKey({\n * \"KeyName\": \"MyTelemetryKey\"\n * });\n */\n DeleteTelemetryKey (request: DeleteTelemetryKeyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<DeleteTelemetryKeyResponse>(\"/Event/DeleteTelemetryKey\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves a single Data Connection associated with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/getdataconnection Microsoft Documentation}\n * @example\n * await eventClient.GetDataConnection({\n * \"Name\": \"MyDataConnection\"\n * });\n */\n GetDataConnection (request: GetDataConnectionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetDataConnectionResponse>(\"/Event/GetDataConnection\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the sampling ratio for an event.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratio Microsoft Documentation}\n * @example\n * await eventClient.GetEventSamplingRatio({\n * \"EventNamespace\": \"com.playfab\",\n * \"EventName\": \"player_executed_cloudscript\"\n * });\n */\n GetEventSamplingRatio (request: GetEventSamplingRatioRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEventSamplingRatioResult>(\"/Event/GetEventSamplingRatio\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets the event sampling ratios for a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/geteventsamplingratios Microsoft Documentation}\n */\n GetEventSamplingRatios (request: GetEventSamplingRatiosRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetEventSamplingRatiosResult>(\"/Event/GetEventSamplingRatios\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Gets information about a telemetry key configured for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/gettelemetrykey Microsoft Documentation}\n * @example\n * await eventClient.GetTelemetryKey({\n * \"KeyName\": \"MyTelemetryKey\"\n * });\n */\n GetTelemetryKey (request: GetTelemetryKeyRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<GetTelemetryKeyResponse>(\"/Event/GetTelemetryKey\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Retrieves the list of Data Connections associated with a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listdataconnections Microsoft Documentation}\n * @example\n * await eventClient.ListDataConnections({});\n */\n ListDataConnections (request: ListDataConnectionsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListDataConnectionsResponse>(\"/Event/ListDataConnections\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Lists all telemetry keys configured for the title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/listtelemetrykeys Microsoft Documentation}\n * @example\n * await eventClient.ListTelemetryKeys({});\n */\n ListTelemetryKeys (request: ListTelemetryKeysRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<ListTelemetryKeysResponse>(\"/Event/ListTelemetryKeys\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Creates or updates a Data Connection on a title.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnection Microsoft Documentation}\n * @example\n * await eventClient.SetDataConnection({\n * \"Name\": \"MyDataConnection\",\n * \"Type\": \"AzureDataExplorer\",\n * \"IsActive\": true,\n * \"ConnectionSettings\": {\n * \"AzureDataExplorerSettings\": {\n * \"ClusterUri\": \"https://myadxcluster.kusto.windows.net\",\n * \"Database\": \"MyDatabase\",\n * \"Table\": \"MyTable\"\n * }\n * }\n * });\n */\n SetDataConnection (request: SetDataConnectionRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetDataConnectionResponse>(\"/Event/SetDataConnection\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets a Data Connection for the title to either the active or deactivated state.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/setdataconnectionactive Microsoft Documentation}\n * @example\n * await eventClient.SetDataConnectionActive({\n * \"Name\": \"MyDataConnection\",\n * \"Active\": false\n * });\n */\n SetDataConnectionActive (request: SetDataConnectionActiveRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetDataConnectionActiveResponse>(\"/Event/SetDataConnectionActive\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets the sampling ratio for an event.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream/seteventsamplingratio Microsoft Documentation}\n */\n SetEventSamplingRatio (request: SetEventSamplingRatioRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetEventSamplingRatioResult>(\"/Event/SetEventSamplingRatio\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Sets a telemetry key to the active or deactivated state.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/settelemetrykeyactive Microsoft Documentation}\n * @example\n * await eventClient.SetTelemetryKeyActive({\n * \"KeyName\": \"MyTelemetryKey\",\n * \"Active\": false\n * });\n */\n SetTelemetryKeyActive (request: SetTelemetryKeyActiveRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<SetTelemetryKeyActiveResponse>(\"/Event/SetTelemetryKeyActive\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'.\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writeevents Microsoft Documentation}\n * @example\n * await eventClient.WriteEvents({\n * \"Events\": [\n * {\n * \"Entity\": {\n * \"Id\": \"A8140AB9109712B\",\n * \"Type\": \"title\",\n * \"TypeString\": \"title\"\n * },\n * \"EventNamespace\": \"com.playfab.events.example\",\n * \"Name\": \"something_happened\",\n * \"Payload\": {\n * \"Foo\": \"Bar\",\n * \"Nums\": [\n * 1,\n * 2,\n * 3\n * ]\n * }\n * }\n * ]\n * });\n */\n WriteEvents (request: WriteEventsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<WriteEventsResponse>(\"/Event/WriteEvents\", request, \"X-EntityToken\", extraHeaders);\n }\n\n /**\n * Write batches of entity based events to as Telemetry events (bypass PlayStream). The namespace must be 'custom' or start\n * with 'custom.'\n * \n * {@link https://docs.microsoft.com/rest/api/playfab/event/playstream-events/writetelemetryevents Microsoft Documentation}\n * @example\n * await eventClient.WriteTelemetryEvents({\n * \"Events\": [\n * {\n * \"Entity\": {\n * \"Id\": \"A8140AB9109712B\",\n * \"Type\": \"title\",\n * \"TypeString\": \"title\"\n * },\n * \"EventNamespace\": \"com.playfab.events.example\",\n * \"Name\": \"something_happened\",\n * \"Payload\": {\n * \"Foo\": \"Bar\",\n * \"Nums\": [\n * 1,\n * 2,\n * 3\n * ]\n * }\n * }\n * ]\n * });\n */\n WriteTelemetryEvents (request: WriteEventsRequest, extraHeaders?: Record<string, string>) {\n return this.ExecuteRequestWrapper<WriteEventsResponse>(\"/Event/WriteTelemetryEvents\", request, \"X-EntityToken\", extraHeaders);\n }\n\n};\n"],"mappings":";;;;;AAkCA,IAAqB,mBAArB,cAA8C,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAW1D,mBAAoB,S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