Skip to content

Commit aff056f

Browse files
committed
feat(spec): the analytics result wire schema carries currencyField beside currency
Claude-Session: https://claude.ai/code/session_01Utp6Ca8jzC2P7EAQvqjNBb Co-authored-by: Claude <noreply@anthropic.com>
1 parent 80b98fb commit aff056f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎packages/spec/src/api/analytics.zod.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,13 @@ export const AnalyticsResultResponseSchema = lazySchema(() => BaseResponseSchema
102102
+ '`currency`, then the source field\'s fixed currency — its '
103103
+ '`currencyConfig.defaultCurrency`, read only under `currencyMode: \'fixed\'` '
104104
+ '— then the tenant default). Absent on non-monetary columns, which must '
105-
+ 'never render a symbol.',
105+
+ 'never render a symbol, and on a column that carries `currencyField`.',
106+
),
107+
currencyField: z.string().optional().describe(
108+
'[ADR-0144 D2] The PER-ROW currency of a measure column over a `currencyMode: \'record\'` '
109+
+ 'amount: the `name` of the dimension column in this answer that groups by the amount\'s '
110+
+ 'code field, whose value in each row is that row\'s ISO 4217 code. `currency` is absent '
111+
+ 'when this is present. Only on a `queryDataset` measure column.',
106112
),
107113
percentScale: z.enum(['fraction', 'whole']).optional().describe(
108114
'The column\'s percent SCALE, when it is a percentage: `fraction` for a '

0 commit comments

Comments
 (0)