@odoo/o-spreadsheet
Version:
A spreadsheet component
60 lines (59 loc) • 4.97 kB
TypeScript
import { Locale } from "../types/locale";
export declare const expectCashFlowsAndDatesHaveSameDimension: string;
export declare const expectCashFlowsHavePositiveAndNegativesValues: string;
export declare const expectCostPositiveOrZero: (cost: number) => string;
export declare const expectCostStrictlyPositive: (cost: number) => string;
export declare const expectCouponFrequencyIsValid: (frequency: number) => string;
export declare const expectDayCountConventionIsValid: (dayCountConvention: number) => string;
export declare const expectDeprecationFactorStrictlyPositive: (factor: number) => string;
export declare const expectDiscountDifferentFromMinusOne: (discount: number) => string;
export declare const expectDiscountStrictlyPositive: (discount: number) => string;
export declare const expectDiscountStrictlySmallerThanOne: (discount: number) => string;
export declare const expectEffectiveRateStrictlyPositive: (effectiveRate: number) => string;
export declare const expectEndPeriodPositiveOrZero: (endPeriod: number) => string;
export declare const expectEndPeriodSmallerOrEqualToLife: (end: number, life: number) => string;
export declare const expectEveryDateGreaterThanFirstDateOfCashFlowDates: (firstDate: number) => string;
export declare const expectFirstPeriodSmallerOrEqualLastPeriod: (first: number, last: number) => string;
export declare const expectFirstPeriodStrictlyPositive: (period: number) => string;
export declare const expectFutureValueStrictlyPositive: (pv: number) => string;
export declare const expectInvestmentStrictlyPositive: (investment: number) => string;
export declare const expectIssuePositiveOrZero: (issue: number) => string;
export declare const expectLastPeriodSmallerOrEqualNumberOfPeriods: (last: number, nPeriods: number) => string;
export declare const expectLastPeriodStrictlyPositive: (period: number) => string;
export declare const expectLifeStrictlyPositive: (life: number) => string;
export declare const expectMaturityStrictlyGreaterThanSettlement: (settlement: number, maturity: number) => string;
export declare const expectMonthBetweenOneAndTwelve: (month: number) => string;
export declare const expectNominalRateStrictlyPositive: (nominalRate: number) => string;
export declare const expectNumberOfPeriodDifferentFromZero: (nPeriods: number) => string;
export declare const expectNumberOfPeriodsStrictlyPositive: (nPeriods: number) => string;
export declare const expectPeriodBetweenOneAndNumberOfPeriods: (nPeriods: number) => string;
export declare const expectPeriodLessOrEqualToLifeLimit: (period: number, lifeLimit: number) => string;
export declare const expectPeriodPositiveOrZero: (period: number) => string;
export declare const expectPeriodsByYearStrictlyPositive: (periodsByYear: number) => string;
export declare const expectPeriodSmallerOrEqualToLife: (period: number, life: number) => string;
export declare const expectPeriodStrictlyPositive: (period: number) => string;
export declare const expectPresentValueStrictlyPositive: (pv: number) => string;
export declare const expectPriceStrictlyPositive: (price: number) => string;
export declare const expectPurchaseDateBeforeFirstPeriodEnd: (purchaseDate: number, firstPeriodEnd: number) => string;
export declare const expectPurchaseDatePositiveOrZero: (purchaseDate: number) => string;
export declare const expectRateGuessStrictlyGreaterThanMinusOne: (guess: number) => string;
export declare const expectRatePositiveOrZero: (rate: number) => string;
export declare const expectRateStrictlyPositive: (rate: number) => string;
export declare const expectRedemptionStrictlyPositive: (redemption: number) => string;
export declare const expectSalvagePositiveOrZero: (salvage: number) => string;
export declare const expectSalvageSmallerOrEqualThanCost: (salvage: number, cost: number) => string;
export declare const expectSettlementGreaterOrEqualToIssue: (settlement: number, issue: number) => string;
export declare const expectSettlementLessThanOneYearBeforeMaturity: (settlement: number, maturity: number) => string;
export declare const expectSettlementStrictlyGreaterThanIssue: (settlement: number, issue: number) => string;
export declare const expectStartPeriodPositiveOrZero: (startPeriod: number) => string;
export declare const expectStartPeriodSmallerOrEqualEndPeriod: (start: number, end: number) => string;
export declare const expectUnitStrictlyPositive: (unit: number) => string;
export declare const expectYieldPositiveOrZero: (yeld: number) => string;
export declare function havePositiveAndNegativeValues(arrayNumbers: number[]): boolean;
export declare function isInvalidDayCountConvention(dayCountConvention: number): boolean;
export declare function isInvalidFrequency(frequency: number): boolean;
export declare function isSettlementLessThanOneYearBeforeMaturity(settlement: number, maturity: number, locale: Locale): boolean;
export declare const DAY_COUNT_CONVENTION_OPTIONS: {
value: number;
label: string;
}[];