import {z} from 'zod' export type CalculationGridItem1Key = {alerts?: string | undefined, allCalculationResults?: Array<{[key: string]: Record}> | undefined, allowedOverrides?: string | undefined, attribute1?: string | undefined, attribute2?: string | undefined, attribute3?: string | undefined, attribute4?: string | undefined, attribute5?: string | undefined, attribute6?: string | undefined, attribute7?: string | undefined, attribute8?: string | undefined, attribute9?: string | undefined, attribute10?: string | undefined, attribute11?: string | undefined, attribute12?: string | undefined, attribute13?: string | undefined, attribute14?: string | undefined, attribute15?: string | undefined, attribute16?: string | undefined, attribute17?: string | undefined, attribute18?: string | undefined, attribute19?: string | undefined, attribute20?: string | undefined, attribute21?: string | undefined, attribute22?: string | undefined, attribute23?: string | undefined, attribute24?: string | undefined, attribute25?: string | undefined, attribute26?: string | undefined, attribute27?: string | undefined, attribute28?: string | undefined, attribute29?: string | undefined, attribute30?: string | undefined, attribute31?: string | undefined, attribute32?: string | undefined, attribute33?: string | undefined, attribute34?: string | undefined, attribute35?: string | undefined, attribute36?: string | undefined, attribute37?: string | undefined, attribute38?: string | undefined, attribute39?: string | undefined, attribute40?: string | undefined, attribute41?: string | undefined, attribute42?: string | undefined, attribute43?: string | undefined, attribute44?: string | undefined, attribute45?: string | undefined, attribute46?: string | undefined, attribute47?: string | undefined, attribute48?: string | undefined, attribute49?: string | undefined, attribute50?: string | undefined, attribute51?: string | undefined, attribute52?: string | undefined, attribute53?: string | undefined, attribute54?: string | undefined, attribute55?: string | undefined, attribute56?: string | undefined, attribute57?: string | undefined, attribute58?: string | undefined, attribute59?: string | undefined, attribute60?: string | undefined, attribute61?: string | undefined, attribute62?: string | undefined, attribute63?: string | undefined, attribute64?: string | undefined, attribute65?: string | undefined, attribute66?: string | undefined, attribute67?: string | undefined, attribute68?: string | undefined, attribute69?: string | undefined, attribute70?: string | undefined, attribute71?: string | undefined, attribute72?: string | undefined, attribute73?: string | undefined, attribute74?: string | undefined, attribute75?: string | undefined, attribute76?: string | undefined, attribute77?: string | undefined, attribute78?: string | undefined, attribute79?: string | undefined, attribute80?: string | undefined, attribute81?: string | undefined, attribute82?: string | undefined, attribute83?: string | undefined, attribute84?: string | undefined, attribute85?: string | undefined, attribute86?: string | undefined, attribute87?: string | undefined, attribute88?: string | undefined, attribute89?: string | undefined, attribute90?: string | undefined, attribute91?: string | undefined, attribute92?: string | undefined, attribute93?: string | undefined, attribute94?: string | undefined, attribute95?: string | undefined, attribute96?: string | undefined, attribute97?: string | undefined, attribute98?: string | undefined, attribute99?: string | undefined, attribute100?: string | undefined, calculatedResultSignificantValue?: number | undefined, calculationGridId?: number | undefined, calculationResults?: (Array<{alertMessage?: string | undefined, alertType?: ('CRITICAL' | 'RED' | 'YELLOW') | undefined, cssProperties?: string | undefined, displayOptions?: number | undefined, excludeFromExport?: boolean | undefined, formatType?: ('NUMERIC' | 'NUMERIC_LONG' | 'MONEY' | 'PERCENT' | 'TEXT' | 'MONEY_EUR' | 'MONEY_USD' | 'MONEY_GBP' | 'MONEY_JPY' | 'MONEY_CHF' | 'MONEY_PLN' | 'DATETIME' | 'DATE' | 'INTEGER' | 'LINK' | 'COMPLEX' | 'SPARKLINE') | undefined, labelTranslations?: string | undefined, overridable?: boolean | undefined, overridden?: boolean | undefined, overrideAllowEmpty?: boolean | undefined, overrideValueOptions?: Array | undefined, result?: Record | undefined, resultDescription?: string | undefined, resultGroup?: string | undefined, resultLabel?: string | undefined, resultName?: string | undefined, resultType?: string | undefined, suffix?: string | undefined, userGroup?: string | undefined, warnings?: Array | undefined}>) | undefined, comments?: string | undefined, completeResultsAvailable?: string | undefined, createDate?: string | undefined, createdBy?: number | undefined, itemExtensions?: string | undefined, key1?: string | undefined, label?: string | undefined, lastUpdateBy?: number | undefined, lastUpdateDate?: string | undefined, manualEditUser?: number | undefined, manualEditVersion?: number | undefined, manualOverrides?: string | undefined, manualResultSignificantValue?: number | undefined, name?: string | undefined, previousSignificantValue?: number | undefined, resultSignificantValue?: number | undefined, significantValueChange?: number | undefined, significantValueChangePct?: number | undefined, tableId?: number | undefined, typedId?: string | undefined, version?: number | undefined, warnings?: string | undefined, workStatus?: string | undefined}; export type CalculationGridItem2Key = {alerts?: string | undefined, allCalculationResults?: Array<{[key: string]: Record}> | undefined, allowedOverrides?: string | undefined, attribute1?: string | undefined, attribute2?: string | undefined, attribute3?: string | undefined, attribute4?: string | undefined, attribute5?: string | undefined, attribute6?: string | undefined, attribute7?: string | undefined, attribute8?: string | undefined, attribute9?: string | undefined, attribute10?: string | undefined, attribute11?: string | undefined, attribute12?: string | undefined, attribute13?: string | undefined, attribute14?: string | undefined, attribute15?: string | undefined, attribute16?: string | undefined, attribute17?: string | undefined, attribute18?: string | undefined, attribute19?: string | undefined, attribute20?: string | undefined, attribute21?: string | undefined, attribute22?: string | undefined, attribute23?: string | undefined, attribute24?: string | undefined, attribute25?: string | undefined, attribute26?: string | undefined, attribute27?: string | undefined, attribute28?: string | undefined, attribute29?: string | undefined, attribute30?: string | undefined, attribute31?: string | undefined, attribute32?: string | undefined, attribute33?: string | undefined, attribute34?: string | undefined, attribute35?: string | undefined, attribute36?: string | undefined, attribute37?: string | undefined, attribute38?: string | undefined, attribute39?: string | undefined, attribute40?: string | undefined, attribute41?: string | undefined, attribute42?: string | undefined, attribute43?: string | undefined, attribute44?: string | undefined, attribute45?: string | undefined, attribute46?: string | undefined, attribute47?: string | undefined, attribute48?: string | undefined, attribute49?: string | undefined, attribute50?: string | undefined, attribute51?: string | undefined, attribute52?: string | undefined, attribute53?: string | undefined, attribute54?: string | undefined, attribute55?: string | undefined, attribute56?: string | undefined, attribute57?: string | undefined, attribute58?: string | undefined, attribute59?: string | undefined, attribute60?: string | undefined, attribute61?: string | undefined, attribute62?: string | undefined, attribute63?: string | undefined, attribute64?: string | undefined, attribute65?: string | undefined, attribute66?: string | undefined, attribute67?: string | undefined, attribute68?: string | undefined, attribute69?: string | undefined, attribute70?: string | undefined, attribute71?: string | undefined, attribute72?: string | undefined, attribute73?: string | undefined, attribute74?: string | undefined, attribute75?: string | undefined, attribute76?: string | undefined, attribute77?: string | undefined, attribute78?: string | undefined, attribute79?: string | undefined, attribute80?: string | undefined, attribute81?: string | undefined, attribute82?: string | undefined, attribute83?: string | undefined, attribute84?: string | undefined, attribute85?: string | undefined, attribute86?: string | undefined, attribute87?: string | undefined, attribute88?: string | undefined, attribute89?: string | undefined, attribute90?: string | undefined, attribute91?: string | undefined, attribute92?: string | undefined, attribute93?: string | undefined, attribute94?: string | undefined, attribute95?: string | undefined, attribute96?: string | undefined, attribute97?: string | undefined, attribute98?: string | undefined, attribute99?: string | undefined, attribute100?: string | undefined, calculatedResultSignificantValue?: number | undefined, calculationGridId?: number | undefined, calculationResults?: (Array<{alertMessage?: string | undefined, alertType?: ('CRITICAL' | 'RED' | 'YELLOW') | undefined, cssProperties?: string | undefined, displayOptions?: number | undefined, excludeFromExport?: boolean | undefined, formatType?: ('NUMERIC' | 'NUMERIC_LONG' | 'MONEY' | 'PERCENT' | 'TEXT' | 'MONEY_EUR' | 'MONEY_USD' | 'MONEY_GBP' | 'MONEY_JPY' | 'MONEY_CHF' | 'MONEY_PLN' | 'DATETIME' | 'DATE' | 'INTEGER' | 'LINK' | 'COMPLEX' | 'SPARKLINE') | undefined, labelTranslations?: string | undefined, overridable?: boolean | undefined, overridden?: boolean | undefined, overrideAllowEmpty?: boolean | undefined, overrideValueOptions?: Array | undefined, result?: Record | undefined, resultDescription?: string | undefined, resultGroup?: string | undefined, resultLabel?: string | undefined, resultName?: string | undefined, resultType?: string | undefined, suffix?: string | undefined, userGroup?: string | undefined, warnings?: Array | undefined}>) | undefined, comments?: string | undefined, completeResultsAvailable?: string | undefined, createDate?: string | undefined, createdBy?: number | undefined, itemExtensions?: string | undefined, key1?: string | undefined, key2?: string | undefined, label?: string | undefined, lastUpdateBy?: number | undefined, lastUpdateDate?: string | undefined, manualEditUser?: number | undefined, manualEditVersion?: number | undefined, manualOverrides?: string | undefined, manualResultSignificantValue?: number | undefined, name?: string | undefined, previousSignificantValue?: number | undefined, resultSignificantValue?: number | undefined, significantValueChange?: number | undefined, significantValueChangePct?: number | undefined, tableId?: number | undefined, typedId?: string | undefined, version?: number | undefined, warnings?: string | undefined, workStatus?: string | undefined}; export type CalculationGridItem3Key = {alerts?: string | undefined, allCalculationResults?: Array<{[key: string]: Record}> | undefined, allowedOverrides?: string | undefined, attribute1?: string | undefined, attribute2?: string | undefined, attribute3?: string | undefined, attribute4?: string | undefined, attribute5?: string | undefined, attribute6?: string | undefined, attribute7?: string | undefined, attribute8?: string | undefined, attribute9?: string | undefined, attribute10?: string | undefined, attribute11?: string | undefined, attribute12?: string | undefined, attribute13?: string | undefined, attribute14?: string | undefined, attribute15?: string | undefined, attribute16?: string | undefined, attribute17?: string | undefined, attribute18?: string | undefined, attribute19?: string | undefined, attribute20?: string | undefined, attribute21?: string | undefined, attribute22?: string | undefined, attribute23?: string | undefined, attribute24?: string | undefined, attribute25?: string | undefined, attribute26?: string | undefined, attribute27?: string | undefined, attribute28?: string | undefined, attribute29?: string | undefined, attribute30?: string | undefined, attribute31?: string | undefined, attribute32?: string | undefined, attribute33?: string | undefined, attribute34?: string | undefined, attribute35?: string | undefined, attribute36?: string | undefined, attribute37?: string | undefined, attribute38?: string | undefined, attribute39?: string | undefined, attribute40?: string | undefined, attribute41?: string | undefined, attribute42?: string | undefined, attribute43?: string | undefined, attribute44?: string | undefined, attribute45?: string | undefined, attribute46?: string | undefined, attribute47?: string | undefined, attribute48?: string | undefined, attribute49?: string | undefined, attribute50?: string | undefined, attribute51?: string | undefined, attribute52?: string | undefined, attribute53?: string | undefined, attribute54?: string | undefined, attribute55?: string | undefined, attribute56?: string | undefined, attribute57?: string | undefined, attribute58?: string | undefined, attribute59?: string | undefined, attribute60?: string | undefined, attribute61?: string | undefined, attribute62?: string | undefined, attribute63?: string | undefined, attribute64?: string | undefined, attribute65?: string | undefined, attribute66?: string | undefined, attribute67?: string | undefined, attribute68?: string | undefined, attribute69?: string | undefined, attribute70?: string | undefined, attribute71?: string | undefined, attribute72?: string | undefined, attribute73?: string | undefined, attribute74?: string | undefined, attribute75?: string | undefined, attribute76?: string | undefined, attribute77?: string | undefined, attribute78?: string | undefined, attribute79?: string | undefined, attribute80?: string | undefined, attribute81?: string | undefined, attribute82?: string | undefined, attribute83?: string | undefined, attribute84?: string | undefined, attribute85?: string | undefined, attribute86?: string | undefined, attribute87?: string | undefined, attribute88?: string | undefined, attribute89?: string | undefined, attribute90?: string | undefined, attribute91?: string | undefined, attribute92?: string | undefined, attribute93?: string | undefined, attribute94?: string | undefined, attribute95?: string | undefined, attribute96?: string | undefined, attribute97?: string | undefined, attribute98?: string | undefined, attribute99?: string | undefined, attribute100?: string | undefined, calculatedResultSignificantValue?: number | undefined, calculationGridId?: number | undefined, calculationResults?: (Array<{alertMessage?: string | undefined, alertType?: ('CRITICAL' | 'RED' | 'YELLOW') | undefined, cssProperties?: string | undefined, displayOptions?: number | undefined, excludeFromExport?: boolean | undefined, formatType?: ('NUMERIC' | 'NUMERIC_LONG' | 'MONEY' | 'PERCENT' | 'TEXT' | 'MONEY_EUR' | 'MONEY_USD' | 'MONEY_GBP' | 'MONEY_JPY' | 'MONEY_CHF' | 'MONEY_PLN' | 'DATETIME' | 'DATE' | 'INTEGER' | 'LINK' | 'COMPLEX' | 'SPARKLINE') | undefined, labelTranslations?: string | undefined, overridable?: boolean | undefined, overridden?: boolean | undefined, overrideAllowEmpty?: boolean | undefined, overrideValueOptions?: Array | undefined, result?: Record | undefined, resultDescription?: string | undefined, resultGroup?: string | undefined, resultLabel?: string | undefined, resultName?: string | undefined, resultType?: string | undefined, suffix?: string | undefined, userGroup?: string | undefined, warnings?: Array | undefined}>) | undefined, comments?: string | undefined, completeResultsAvailable?: string | undefined, createDate?: string | undefined, createdBy?: number | undefined, itemExtensions?: string | undefined, key1?: string | undefined, key2?: string | undefined, key3?: string | undefined, label?: string | undefined, lastUpdateBy?: number | undefined, lastUpdateDate?: string | undefined, manualEditUser?: number | undefined, manualEditVersion?: number | undefined, manualOverrides?: string | undefined, manualResultSignificantValue?: number | undefined, name?: string | undefined, previousSignificantValue?: number | undefined, resultSignificantValue?: number | undefined, significantValueChange?: number | undefined, significantValueChangePct?: number | undefined, tableId?: number | undefined, typedId?: string | undefined, version?: number | undefined, warnings?: string | undefined, workStatus?: string | undefined}; export type CalculationGridItem4Key = {alerts?: string | undefined, allCalculationResults?: Array<{[key: string]: Record}> | undefined, allowedOverrides?: string | undefined, attribute1?: string | undefined, attribute2?: string | undefined, attribute3?: string | undefined, attribute4?: string | undefined, attribute5?: string | undefined, attribute6?: string | undefined, attribute7?: string | undefined, attribute8?: string | undefined, attribute9?: string | undefined, attribute10?: string | undefined, attribute11?: string | undefined, attribute12?: string | undefined, attribute13?: string | undefined, attribute14?: string | undefined, attribute15?: string | undefined, attribute16?: string | undefined, attribute17?: string | undefined, attribute18?: string | undefined, attribute19?: string | undefined, attribute20?: string | undefined, attribute21?: string | undefined, attribute22?: string | undefined, attribute23?: string | undefined, attribute24?: string | undefined, attribute25?: string | undefined, attribute26?: string | undefined, attribute27?: string | undefined, attribute28?: string | undefined, attribute29?: string | undefined, attribute30?: string | undefined, attribute31?: string | undefined, attribute32?: string | undefined, attribute33?: string | undefined, attribute34?: string | undefined, attribute35?: string | undefined, attribute36?: string | undefined, attribute37?: string | undefined, attribute38?: string | undefined, attribute39?: string | undefined, attribute40?: string | undefined, attribute41?: string | undefined, attribute42?: string | undefined, attribute43?: string | undefined, attribute44?: string | undefined, attribute45?: string | undefined, attribute46?: string | undefined, attribute47?: string | undefined, attribute48?: string | undefined, attribute49?: string | undefined, attribute50?: string | undefined, attribute51?: string | undefined, attribute52?: string | undefined, attribute53?: string | undefined, attribute54?: string | undefined, attribute55?: string | undefined, attribute56?: string | undefined, attribute57?: string | undefined, attribute58?: string | undefined, attribute59?: string | undefined, attribute60?: string | undefined, attribute61?: string | undefined, attribute62?: string | undefined, attribute63?: string | undefined, attribute64?: string | undefined, attribute65?: string | undefined, attribute66?: string | undefined, attribute67?: string | undefined, attribute68?: string | undefined, attribute69?: string | undefined, attribute70?: string | undefined, attribute71?: string | undefined, attribute72?: string | undefined, attribute73?: string | undefined, attribute74?: string | undefined, attribute75?: string | undefined, attribute76?: string | undefined, attribute77?: string | undefined, attribute78?: string | undefined, attribute79?: string | undefined, attribute80?: string | undefined, attribute81?: string | undefined, attribute82?: string | undefined, attribute83?: string | undefined, attribute84?: string | undefined, attribute85?: string | undefined, attribute86?: string | undefined, attribute87?: string | undefined, attribute88?: string | undefined, attribute89?: string | undefined, attribute90?: string | undefined, attribute91?: string | undefined, attribute92?: string | undefined, attribute93?: string | undefined, attribute94?: string | undefined, attribute95?: string | undefined, attribute96?: string | undefined, attribute97?: string | undefined, attribute98?: string | undefined, attribute99?: string | undefined, attribute100?: string | undefined, calculatedResultSignificantValue?: number | undefined, calculationGridId?: number | undefined, calculationResults?: (Array<{alertMessage?: string | undefined, alertType?: ('CRITICAL' | 'RED' | 'YELLOW') | undefined, cssProperties?: string | undefined, displayOptions?: number | undefined, excludeFromExport?: boolean | undefined, formatType?: ('NUMERIC' | 'NUMERIC_LONG' | 'MONEY' | 'PERCENT' | 'TEXT' | 'MONEY_EUR' | 'MONEY_USD' | 'MONEY_GBP' | 'MONEY_JPY' | 'MONEY_CHF' | 'MONEY_PLN' | 'DATETIME' | 'DATE' | 'INTEGER' | 'LINK' | 'COMPLEX' | 'SPARKLINE') | undefined, labelTranslations?: string | undefined, overridable?: boolean | undefined, overridden?: boolean | undefined, overrideAllowEmpty?: boolean | undefined, overrideValueOptions?: Array | undefined, result?: Record | undefined, resultDescription?: string | undefined, resultGroup?: string | undefined, resultLabel?: string | undefined, resultName?: string | undefined, resultType?: string | undefined, suffix?: string | undefined, userGroup?: string | undefined, warnings?: Array | undefined}>) | undefined, comments?: string | undefined, completeResultsAvailable?: string | undefined, createDate?: string | undefined, createdBy?: number | undefined, itemExtensions?: string | undefined, key1?: string | undefined, key2?: string | undefined, key3?: string | undefined, key4?: string | undefined, label?: string | undefined, lastUpdateBy?: number | undefined, lastUpdateDate?: string | undefined, manualEditUser?: number | undefined, manualEditVersion?: number | undefined, manualOverrides?: string | undefined, manualResultSignificantValue?: number | undefined, name?: string | undefined, previousSignificantValue?: number | undefined, resultSignificantValue?: number | undefined, significantValueChange?: number | undefined, significantValueChangePct?: number | undefined, tableId?: number | undefined, typedId?: string | undefined, version?: number | undefined, warnings?: string | undefined, workStatus?: string | undefined}; export type CalculationGridItem5Key = {alerts?: string | undefined, allCalculationResults?: Array<{[key: string]: Record}> | undefined, allowedOverrides?: string | undefined, attribute1?: string | undefined, attribute2?: string | undefined, attribute3?: string | undefined, attribute4?: string | undefined, attribute5?: string | undefined, attribute6?: string | undefined, attribute7?: string | undefined, attribute8?: string | undefined, attribute9?: string | undefined, attribute10?: string | undefined, attribute11?: string | undefined, attribute12?: string | undefined, attribute13?: string | undefined, attribute14?: string | undefined, attribute15?: string | undefined, attribute16?: string | undefined, attribute17?: string | undefined, attribute18?: string | undefined, attribute19?: string | undefined, attribute20?: string | undefined, attribute21?: string | undefined, attribute22?: string | undefined, attribute23?: string | undefined, attribute24?: string | undefined, attribute25?: string | undefined, attribute26?: string | undefined, attribute27?: string | undefined, attribute28?: string | undefined, attribute29?: string | undefined, attribute30?: string | undefined, attribute31?: string | undefined, attribute32?: string | undefined, attribute33?: string | undefined, attribute34?: string | undefined, attribute35?: string | undefined, attribute36?: string | undefined, attribute37?: string | undefined, attribute38?: string | undefined, attribute39?: string | undefined, attribute40?: string | undefined, attribute41?: string | undefined, attribute42?: string | undefined, attribute43?: string | undefined, attribute44?: string | undefined, attribute45?: string | undefined, attribute46?: string | undefined, attribute47?: string | undefined, attribute48?: string | undefined, attribute49?: string | undefined, attribute50?: string | undefined, attribute51?: string | undefined, attribute52?: string | undefined, attribute53?: string | undefined, attribute54?: string | undefined, attribute55?: string | undefined, attribute56?: string | undefined, attribute57?: string | undefined, attribute58?: string | undefined, attribute59?: string | undefined, attribute60?: string | undefined, attribute61?: string | undefined, attribute62?: string | undefined, attribute63?: string | undefined, attribute64?: string | undefined, attribute65?: string | undefined, attribute66?: string | undefined, attribute67?: string | undefined, attribute68?: string | undefined, attribute69?: string | undefined, attribute70?: string | undefined, attribute71?: string | undefined, attribute72?: string | undefined, attribute73?: string | undefined, attribute74?: string | undefined, attribute75?: string | undefined, attribute76?: string | undefined, attribute77?: string | undefined, attribute78?: string | undefined, attribute79?: string | undefined, attribute80?: string | undefined, attribute81?: string | undefined, attribute82?: string | undefined, attribute83?: string | undefined, attribute84?: string | undefined, attribute85?: string | undefined, attribute86?: string | undefined, attribute87?: string | undefined, attribute88?: string | undefined, attribute89?: string | undefined, attribute90?: string | undefined, attribute91?: string | undefined, attribute92?: string | undefined, attribute93?: string | undefined, attribute94?: string | undefined, attribute95?: string | undefined, attribute96?: string | undefined, attribute97?: string | undefined, attribute98?: string | undefined, attribute99?: string | undefined, attribute100?: string | undefined, calculatedResultSignificantValue?: number | undefined, calculationGridId?: number | undefined, calculationResults?: (Array<{alertMessage?: string | undefined, alertType?: ('CRITICAL' | 'RED' | 'YELLOW') | undefined, cssProperties?: string | undefined, displayOptions?: number | undefined, excludeFromExport?: boolean | undefined, formatType?: ('NUMERIC' | 'NUMERIC_LONG' | 'MONEY' | 'PERCENT' | 'TEXT' | 'MONEY_EUR' | 'MONEY_USD' | 'MONEY_GBP' | 'MONEY_JPY' | 'MONEY_CHF' | 'MONEY_PLN' | 'DATETIME' | 'DATE' | 'INTEGER' | 'LINK' | 'COMPLEX' | 'SPARKLINE') | undefined, labelTranslations?: string | undefined, overridable?: boolean | undefined, overridden?: boolean | undefined, overrideAllowEmpty?: boolean | undefined, overrideValueOptions?: Array | undefined, result?: Record | undefined, resultDescription?: string | undefined, resultGroup?: string | undefined, resultLabel?: string | undefined, resultName?: string | undefined, resultType?: string | undefined, suffix?: string | undefined, userGroup?: string | undefined, warnings?: Array | undefined}>) | undefined, comments?: string | undefined, completeResultsAvailable?: string | undefined, createDate?: string | undefined, createdBy?: number | undefined, itemExtensions?: string | undefined, key1?: string | undefined, key2?: string | undefined, key3?: string | undefined, key4?: string | undefined, key5?: string | undefined, label?: string | undefined, lastUpdateBy?: number | undefined, lastUpdateDate?: string | undefined, manualEditUser?: number | undefined, manualEditVersion?: number | undefined, manualOverrides?: string | undefined, manualResultSignificantValue?: number | undefined, name?: string | undefined, previousSignificantValue?: number | undefined, resultSignificantValue?: number | undefined, significantValueChange?: number | undefined, significantValueChangePct?: number | undefined, tableId?: number | undefined, typedId?: string | undefined, version?: number | undefined, warnings?: string | undefined, workStatus?: string | undefined}; export type CalculationGridItem6Key = {alerts?: (string | null) | undefined, allCalculationResults?: Array<{[key: string]: Record}> | undefined, allowedOverrides?: (string | null) | undefined, attribute1?: (string | null) | undefined, attribute2?: (string | null) | undefined, attribute3?: (string | null) | undefined, attribute4?: (string | null) | undefined, attribute5?: (string | null) | undefined, attribute6?: (string | null) | undefined, attribute7?: (string | null) | undefined, attribute8?: (string | null) | undefined, attribute9?: (string | null) | undefined, attribute10?: (string | null) | undefined, attribute11?: (string | null) | undefined, attribute12?: (string | null) | undefined, attribute13?: (string | null) | undefined, attribute14?: (string | null) | undefined, attribute15?: (string | null) | undefined, attribute16?: (string | null) | undefined, attribute17?: (string | null) | undefined, attribute18?: (string | null) | undefined, attribute19?: (string | null) | undefined, attribute20?: (string | null) | undefined, attribute21?: (string | null) | undefined, attribute22?: (string | null) | undefined, attribute23?: (string | null) | undefined, attribute24?: (string | null) | undefined, attribute25?: (string | null) | undefined, attribute26?: (string | null) | undefined, attribute27?: (string | null) | undefined, attribute28?: (string | null) | undefined, attribute29?: (string | null) | undefined, attribute30?: (string | null) | undefined, attribute31?: (string | null) | undefined, attribute32?: (string | null) | undefined, attribute33?: (string | null) | undefined, attribute34?: (string | null) | undefined, attribute35?: (string | null) | undefined, attribute36?: (string | null) | undefined, attribute37?: (string | null) | undefined, attribute38?: (string | null) | undefined, attribute39?: (string | null) | undefined, attribute40?: (string | null) | undefined, attribute41?: (string | null) | undefined, attribute42?: (string | null) | undefined, attribute43?: (string | null) | undefined, attribute44?: (string | null) | undefined, attribute45?: (string | null) | undefined, attribute46?: (string | null) | undefined, attribute47?: (string | null) | undefined, attribute48?: (string | null) | undefined, attribute49?: (string | null) | undefined, attribute50?: (string | null) | undefined, attribute51?: (string | null) | undefined, attribute52?: (string | null) | undefined, attribute53?: (string | null) | undefined, attribute54?: (string | null) | undefined, attribute55?: (string | null) | undefined, attribute56?: (string | null) | undefined, attribute57?: (string | null) | undefined, attribute58?: (string | null) | undefined, attribute59?: (string | null) | undefined, attribute60?: (string | null) | undefined, attribute61?: (string | null) | undefined, attribute62?: (string | null) | undefined, attribute63?: (string | null) | undefined, attribute64?: (string | null) | undefined, attribute65?: (string | null) | undefined, attribute66?: (string | null) | undefined, attribute67?: (string | null) | undefined, attribute68?: (string | null) | undefined, attribute69?: (string | null) | undefined, attribute70?: (string | null) | undefined, attribute71?: (string | null) | undefined, attribute72?: (string | null) | undefined, attribute73?: (string | null) | undefined, attribute74?: (string | null) | undefined, attribute75?: (string | null) | undefined, attribute76?: (string | null) | undefined, attribute77?: (string | null) | undefined, attribute78?: (string | null) | undefined, attribute79?: (string | null) | undefined, attribute80?: (string | null) | undefined, attribute81?: (string | null) | undefined, attribute82?: (string | null) | undefined, attribute83?: (string | null) | undefined, attribute84?: (string | null) | undefined, attribute85?: (string | null) | undefined, attribute86?: (string | null) | undefined, attribute87?: (string | null) | undefined, attribute88?: (string | null) | undefined, attribute89?: (string | null) | undefined, attribute90?: (string | null) | undefined, attribute91?: (string | null) | undefined, attribute92?: (string | null) | undefined, attribute93?: (string | null) | undefined, attribute94?: (string | null) | undefined, attribute95?: (string | null) | undefined, attribute96?: (string | null) | undefined, attribute97?: (string | null) | undefined, attribute98?: (string | null) | undefined, attribute99?: (string | null) | undefined, attribute100?: (string | null) | undefined, calculatedResultSignificantValue?: (number | null) | undefined, calculationGridId?: number | undefined, calculationResults?: (Array<{alertMessage?: string | undefined, alertType?: ('CRITICAL' | 'RED' | 'YELLOW') | undefined, cssProperties?: string | undefined, displayOptions?: number | undefined, excludeFromExport?: boolean | undefined, formatType?: ('NUMERIC' | 'NUMERIC_LONG' | 'MONEY' | 'PERCENT' | 'TEXT' | 'MONEY_EUR' | 'MONEY_USD' | 'MONEY_GBP' | 'MONEY_JPY' | 'MONEY_CHF' | 'MONEY_PLN' | 'DATETIME' | 'DATE' | 'INTEGER' | 'LINK' | 'COMPLEX' | 'SPARKLINE') | undefined, labelTranslations?: string | undefined, overridable?: boolean | undefined, overridden?: boolean | undefined, overrideAllowEmpty?: boolean | undefined, overrideValueOptions?: Array | undefined, result?: Record | undefined, resultDescription?: string | undefined, resultGroup?: string | undefined, resultLabel?: string | undefined, resultName?: string | undefined, resultType?: string | undefined, suffix?: string | undefined, userGroup?: string | undefined, warnings?: Array | undefined}>) | undefined, comments?: (string | null) | undefined, completeResultsAvailable?: boolean | undefined, createDate?: string | undefined, createdBy?: number | undefined, itemExtensions?: (Record | null) | undefined, key1?: string | undefined, key2?: string | undefined, key3?: string | undefined, key4?: string | undefined, key5?: string | undefined, key6?: string | undefined, label?: (string | null) | undefined, lastUpdateBy?: number | undefined, lastUpdateDate?: string | undefined, manualEditUser?: (number | null) | undefined, manualEditVersion?: number | undefined, manualOverrides?: (string | null) | undefined, manualResultSignificantValue?: (number | null) | undefined, name?: string | undefined, previousSignificantValue?: (number | null) | undefined, resultSignificantValue?: (number | null) | undefined, significantValueChange?: (number | null) | undefined, significantValueChangePct?: (number | null) | undefined, tableId?: (number | null) | undefined, typedId?: string | undefined, version?: number | undefined, warnings?: (string | null) | undefined, workStatus?: (string | null) | undefined}; export type CreateApiAddCGIKeyNumberArgs = {body: {data?: (CalculationGridItem1Key | CalculationGridItem2Key | CalculationGridItem3Key | CalculationGridItem4Key | CalculationGridItem5Key | CalculationGridItem6Key) | undefined}}; export type CreateApiAddCGIKeyNumberOptions = {baseUrl?: string | undefined, basic?: {username: string, password: string} | undefined, fetch?: typeof fetch | undefined}; export const calculationGridItem6Key = z.object({alerts: z.string().nullable().optional(), allCalculationResults: z.array(z.record(z.string(), z.object({}))).optional(), allowedOverrides: z.string().max(1300).nullable().optional(), attribute1: z.string().max(70).nullable().optional(), attribute2: z.string().max(70).nullable().optional(), attribute3: z.string().max(70).nullable().optional(), attribute4: z.string().max(70).nullable().optional(), attribute5: z.string().max(70).nullable().optional(), attribute6: z.string().max(70).nullable().optional(), attribute7: z.string().max(70).nullable().optional(), attribute8: z.string().max(70).nullable().optional(), attribute9: z.string().max(70).nullable().optional(), attribute10: z.string().max(70).nullable().optional(), attribute11: z.string().max(70).nullable().optional(), attribute12: z.string().max(70).nullable().optional(), attribute13: z.string().max(70).nullable().optional(), attribute14: z.string().max(70).nullable().optional(), attribute15: z.string().max(70).nullable().optional(), attribute16: z.string().max(70).nullable().optional(), attribute17: z.string().max(70).nullable().optional(), attribute18: z.string().max(70).nullable().optional(), attribute19: z.string().max(70).nullable().optional(), attribute20: z.string().max(70).nullable().optional(), attribute21: z.string().max(70).nullable().optional(), attribute22: z.string().max(70).nullable().optional(), attribute23: z.string().max(70).nullable().optional(), attribute24: z.string().max(70).nullable().optional(), attribute25: z.string().max(70).nullable().optional(), attribute26: z.string().max(70).nullable().optional(), attribute27: z.string().max(70).nullable().optional(), attribute28: z.string().max(70).nullable().optional(), attribute29: z.string().max(70).nullable().optional(), attribute30: z.string().max(70).nullable().optional(), attribute31: z.string().max(70).nullable().optional(), attribute32: z.string().max(70).nullable().optional(), attribute33: z.string().max(70).nullable().optional(), attribute34: z.string().max(70).nullable().optional(), attribute35: z.string().max(70).nullable().optional(), attribute36: z.string().max(70).nullable().optional(), attribute37: z.string().max(70).nullable().optional(), attribute38: z.string().max(70).nullable().optional(), attribute39: z.string().max(70).nullable().optional(), attribute40: z.string().max(70).nullable().optional(), attribute41: z.string().max(70).nullable().optional(), attribute42: z.string().max(70).nullable().optional(), attribute43: z.string().max(70).nullable().optional(), attribute44: z.string().max(70).nullable().optional(), attribute45: z.string().max(70).nullable().optional(), attribute46: z.string().max(70).nullable().optional(), attribute47: z.string().max(70).nullable().optional(), attribute48: z.string().max(70).nullable().optional(), attribute49: z.string().max(70).nullable().optional(), attribute50: z.string().max(70).nullable().optional(), attribute51: z.string().max(70).nullable().optional(), attribute52: z.string().max(70).nullable().optional(), attribute53: z.string().max(70).nullable().optional(), attribute54: z.string().max(70).nullable().optional(), attribute55: z.string().max(70).nullable().optional(), attribute56: z.string().max(70).nullable().optional(), attribute57: z.string().max(70).nullable().optional(), attribute58: z.string().max(70).nullable().optional(), attribute59: z.string().max(70).nullable().optional(), attribute60: z.string().max(70).nullable().optional(), attribute61: z.string().max(70).nullable().optional(), attribute62: z.string().max(70).nullable().optional(), attribute63: z.string().max(70).nullable().optional(), attribute64: z.string().max(70).nullable().optional(), attribute65: z.string().max(70).nullable().optional(), attribute66: z.string().max(70).nullable().optional(), attribute67: z.string().max(70).nullable().optional(), attribute68: z.string().max(70).nullable().optional(), attribute69: z.string().max(70).nullable().optional(), attribute70: z.string().max(70).nullable().optional(), attribute71: z.string().max(70).nullable().optional(), attribute72: z.string().max(70).nullable().optional(), attribute73: z.string().max(70).nullable().optional(), attribute74: z.string().max(70).nullable().optional(), attribute75: z.string().max(70).nullable().optional(), attribute76: z.string().max(70).nullable().optional(), attribute77: z.string().max(70).nullable().optional(), attribute78: z.string().max(70).nullable().optional(), attribute79: z.string().max(70).nullable().optional(), attribute80: z.string().max(70).nullable().optional(), attribute81: z.string().max(70).nullable().optional(), attribute82: z.string().max(70).nullable().optional(), attribute83: z.string().max(70).nullable().optional(), attribute84: z.string().max(70).nullable().optional(), attribute85: z.string().max(70).nullable().optional(), attribute86: z.string().max(70).nullable().optional(), attribute87: z.string().max(70).nullable().optional(), attribute88: z.string().max(70).nullable().optional(), attribute89: z.string().max(70).nullable().optional(), attribute90: z.string().max(70).nullable().optional(), attribute91: z.string().max(70).nullable().optional(), attribute92: z.string().max(70).nullable().optional(), attribute93: z.string().max(70).nullable().optional(), attribute94: z.string().max(70).nullable().optional(), attribute95: z.string().max(70).nullable().optional(), attribute96: z.string().max(70).nullable().optional(), attribute97: z.string().max(70).nullable().optional(), attribute98: z.string().max(70).nullable().optional(), attribute99: z.string().max(70).nullable().optional(), attribute100: z.string().max(70).nullable().optional(), calculatedResultSignificantValue: z.number().nullable().optional(), calculationGridId: z.number().int().optional(), calculationResults: z.array(z.object({alertMessage: z.string().optional(), alertType: z.enum(["CRITICAL", "RED", "YELLOW"]).optional(), cssProperties: z.string().optional(), displayOptions: z.number().int().optional(), excludeFromExport: z.boolean().optional(), formatType: z.enum(["NUMERIC", "NUMERIC_LONG", "MONEY", "PERCENT", "TEXT", "MONEY_EUR", "MONEY_USD", "MONEY_GBP", "MONEY_JPY", "MONEY_CHF", "MONEY_PLN", "DATETIME", "DATE", "INTEGER", "LINK", "COMPLEX", "SPARKLINE"]).optional(), labelTranslations: z.string().optional(), overridable: z.boolean().optional(), overridden: z.boolean().optional(), overrideAllowEmpty: z.boolean().optional(), overrideValueOptions: z.array(z.unknown()).optional(), result: z.object({}).optional(), resultDescription: z.string().optional(), resultGroup: z.string().optional(), resultLabel: z.string().optional(), resultName: z.string().optional(), resultType: z.string().optional(), suffix: z.string().optional(), userGroup: z.string().optional(), warnings: z.array(z.string()).optional()})).optional(), comments: z.string().max(255).nullable().optional(), completeResultsAvailable: z.boolean().optional(), createDate: z.string().optional(), createdBy: z.number().int().optional(), itemExtensions: z.object({}).nullable().optional(), key1: z.string().optional(), key2: z.string().optional(), key3: z.string().optional(), key4: z.string().optional(), key5: z.string().optional(), key6: z.string().optional(), label: z.string().max(255).nullable().optional(), lastUpdateBy: z.number().int().optional(), lastUpdateDate: z.string().optional(), manualEditUser: z.number().int().nullable().optional(), manualEditVersion: z.number().int().optional(), manualOverrides: z.string().nullable().optional(), manualResultSignificantValue: z.number().nullable().optional(), name: z.string().optional(), previousSignificantValue: z.number().nullable().optional(), resultSignificantValue: z.number().nullable().optional(), significantValueChange: z.number().nullable().optional(), significantValueChangePct: z.number().nullable().optional(), tableId: z.number().int().nullable().optional(), typedId: z.string().optional(), version: z.number().int().optional(), warnings: z.string().nullable().optional(), workStatus: z.string().max(15).nullable().optional()}); export const createApiAddCGIKeyNumberResponse = z.object({response: z.object({node: z.string().optional(), data: z.array(calculationGridItem6Key).optional(), status: z.number().int().optional()}).optional()}); export const validateResponse = async ( schema: { readonly '~standard': { readonly validate: (value: unknown) => ({ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }) | Promise<{ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }> } }, value: unknown ): Promise => { const result = await schema['~standard'].validate(value) if (result.issues !== undefined) { const detail = result.issues .map(({ message, path }) => path?.length ? `${path.map((segment) => String(typeof segment === 'object' ? segment.key : segment)).join('.')}: ${message}` : message ) .join('; ') throw new Error(`Response does not match the schema: ${detail}`, { cause: { issues: result.issues } }) } return result.value }; /** * Add a Calculation Grid Item * * POST /add/CGI{keyNumber} * * Also accepts auth: X-PriceFx-jwt */ export const createApiAddCGIKeyNumber = async (args: CreateApiAddCGIKeyNumberArgs, options?: CreateApiAddCGIKeyNumberOptions) => { const {baseUrl = "https://companynode.pricefx.com/pricefx/companypartition", fetch: fetchFn = fetch, basic} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "application/json") if (basic !== undefined) headers.set('authorization', `Basic ${btoa(`${basic.username}:${basic.password}`)}`) const url = `${baseUrl.replace(/\/+$/, '')}/add/CGI${encodeURIComponent(String(args.keyNumber))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return validateResponse(createApiAddCGIKeyNumberResponse, await res.json()) };