Skip to content

Commit 55a08c4

Browse files
refactor(audience): remove redundant Required/Optional JSDoc (SDK-116) (#2852)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e39cfed commit 55a08c4

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

packages/audience/sdk/src/events.ts

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -15,107 +15,73 @@ export const AudienceEvents = {
1515
} as const;
1616

1717
export interface SignUpProperties {
18-
/** Optional. */
1918
method?: string;
2019
}
2120

2221
export interface SignInProperties {
23-
/** Optional. */
2422
method?: string;
2523
}
2624

2725
export interface WishlistAddProperties {
28-
/** Required. */
2926
gameId: string;
30-
/** Optional. */
3127
source?: string;
32-
/** Optional. */
3328
platform?: string;
3429
}
3530

3631
export interface WishlistRemoveProperties {
37-
/** Required. */
3832
gameId: string;
3933
}
4034

4135
export interface PurchaseProperties {
42-
/** Required. */
4336
currency: string;
44-
/** Required. */
4537
value: number;
46-
/** Optional. */
4738
itemId?: string;
48-
/** Optional. */
4939
itemName?: string;
50-
/** Optional. */
5140
quantity?: number;
52-
/** Optional. */
5341
transactionId?: string;
5442
}
5543

5644
export interface GameLaunchProperties {
57-
/** Optional. */
5845
platform?: string;
59-
/** Optional. */
6046
version?: string;
61-
/** Optional. */
6247
buildId?: string;
6348
}
6449

6550
export type ProgressionStatus = 'start' | 'complete' | 'fail';
6651

6752
export interface ProgressionProperties {
68-
/** Required. */
6953
status: ProgressionStatus;
70-
/** Optional. */
7154
world?: string;
72-
/** Optional. */
7355
level?: string;
74-
/** Optional. */
7556
stage?: string;
76-
/** Optional. */
7757
score?: number;
78-
/** Optional. */
7958
durationSec?: number;
8059
}
8160

8261
export type ResourceFlow = 'sink' | 'source';
8362

8463
export interface ResourceProperties {
85-
/** Required. */
8664
flow: ResourceFlow;
87-
/** Required. */
8865
currency: string;
89-
/** Required. */
9066
amount: number;
91-
/** Optional. */
9267
itemType?: string;
93-
/** Optional. */
9468
itemId?: string;
9569
}
9670

9771
export interface EmailAcquiredProperties {
98-
/** Optional. */
9972
source?: string;
10073
}
10174

10275
export interface GamePageViewedProperties {
103-
/** Required. */
10476
gameId: string;
105-
/** Optional. */
10677
gameName?: string;
107-
/** Optional. */
10878
slug?: string;
10979
}
11080

11181
export interface LinkClickedProperties {
112-
/** Required. */
11382
url: string;
114-
/** Optional. */
11583
label?: string;
116-
/** Optional. */
11784
source?: string;
118-
/** Optional. */
11985
gameId?: string;
12086
}
12187

0 commit comments

Comments
 (0)