feat: Console SDK update for version 12.2.0#91
Conversation
Greptile SummaryThis PR updates the Console SDK to version 12.2.0, adding a new
Confidence Score: 2/5Not safe to merge as-is — two enum files contain syntax errors that will prevent the TypeScript compiler from building the package. The
Important Files Changed
Reviews (1): Last reviewed commit: "feat: Console SDK update for version 12...." | Re-trigger Greptile |
| Stats = 'presencelogs', | ||
| Stats = 'stats', |
There was a problem hiding this comment.
Duplicate enum member
Stats causes a compile error
Lines 73 and 74 both declare Stats, which TypeScript rejects with TS2300: Duplicate identifier 'Stats'. The first entry maps to 'presencelogs' and the second to 'stats', so only one can survive — and as written, the file will not compile at all. The 'presencelogs' entry needs its own unique name (e.g. PresenceLogs = 'presencelogs').
| export enum Range { | ||
| 24h = '24h', | ||
| 30d = '30d', | ||
| 90d = '90d', | ||
| } No newline at end of file |
There was a problem hiding this comment.
Enum member names starting with digits are invalid TypeScript identifiers
24h, 30d, and 90d are not valid TypeScript identifiers — they start with numeric digits, which is a syntax error. The TypeScript compiler will reject this file entirely. Member names must either be valid identifiers (e.g. H24 = '24h') or quoted string literals (e.g. '24h' = '24h'). Because Presences.getUsage passes a Range value directly to the API payload string, the simplest fix is to use string-literal member names: '24h' = '24h', '30d' = '30d', '90d' = '90d'.
This PR contains updates to the Console SDK for version 12.2.0.\n\nThis branch is generated from main to avoid legacy dev-branch history (e.g. removed presences artifacts).