@jest-com/types 1.260923.7 → 1.260928.9
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/index.d.ts +6 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -89,6 +89,10 @@ export type SubscriptionData = {
|
|
|
89
89
|
|
|
90
90
|
export type RedirectToTeamGameErrorCode = "game_not_found" | "different_team" | "internal_error";
|
|
91
91
|
export type NotificationPriority = "low" | "medium" | "high" | "critical";
|
|
92
|
+
export type CaptureEventOptions = {
|
|
93
|
+
send_instantly?: boolean;
|
|
94
|
+
transport?: "XHR" | "fetch" | "sendBeacon";
|
|
95
|
+
};
|
|
92
96
|
export type ReferralNotificationVariant = {
|
|
93
97
|
title?: string | null;
|
|
94
98
|
body: string;
|
|
@@ -1176,9 +1180,10 @@ export interface JestSDK {
|
|
|
1176
1180
|
* Use stable, lowercase, snake_case names.
|
|
1177
1181
|
* @param properties - Optional structured data attached to the event
|
|
1178
1182
|
* (e.g. `{ level: 5, score: 1200 }`).
|
|
1183
|
+
* @param options - Optional immediate sending and transport overrides.
|
|
1179
1184
|
* @throws {Error} If the SDK is not initialized or arguments are invalid.
|
|
1180
1185
|
*/
|
|
1181
|
-
captureEvent(eventName: string, properties?: Record<string, unknown
|
|
1186
|
+
captureEvent(eventName: string, properties?: Record<string, unknown>, options?: CaptureEventOptions): void;
|
|
1182
1187
|
/**
|
|
1183
1188
|
* Redirects the player to another game owned by the same team as the
|
|
1184
1189
|
* calling game. The platform performs the navigation after verifying
|