/*** * * SaaSquatch Type Definitions * * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. * * Generated on 2026-03-20T21:11:42.771Z * ***/ /*** * UnitPrettyValueFormatContext.schema.json * Generated on 2026-03-20T21:11:43.440Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ /** * The unit of the reward */ export type Unit = string /** * The value of the reward. If the reward is currency based, then this is the value in the currency's fractional unit. */ export type Value = number /** * The name of the reward */ export type Name = string /** * The currency symbol in the rendering locale */ export type CurrencySymbol = string /** * The currency symbol in the currency's native locale */ export type CurrencyLocalizedSymbol = string /** * The ISO 4217 currency code */ export type CurrencyCode = string /** * The ISO 4217 numeric currency code */ export type CurrencyNumericCode = number /** * The display name of the currency in the rendering locale */ export type CurrencyDisplayName = string /** * The display name of the currency in the currency's native locale */ export type CurrencyLocalizedDisplayName = string /** * The fractional unit of the currency, e.g. "Cent". */ export type CurrencyFractionalUnit = string /** * How many the currency subdivision go into the currency, e.g. 100 pence to the pound. */ export type CurrencyNumberToBasic = number /** * The value of the reward in the currency's base unit */ export type ValueInCurrencyBaseUnit = number /** * The context for rendering custom unit prettyValue */ export interface UnitPrettyValueFormatContext { unit: Unit value: Value name?: Name currencySymbol?: CurrencySymbol currencyLocalizedSymbol?: CurrencyLocalizedSymbol currencyCode?: CurrencyCode currencyNumericCode?: CurrencyNumericCode currencyDisplayName?: CurrencyDisplayName currencyLocalizedDisplayName?: CurrencyLocalizedDisplayName currencyFractionalUnit?: CurrencyFractionalUnit currencyNumberToBasic?: CurrencyNumberToBasic valueInCurrencyBaseUnit?: ValueInCurrencyBaseUnit }