import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Currency } from "./currency.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; /** * A balance sheet assets account represents the financial position of a company at a specific point in time. */ export type BalanceSheetAssetsAccount = { /** * The unique identifier for the account. */ accountId?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ name?: string | undefined; /** * The amount or value of the item */ value?: number | undefined; /** * A list of balance sheet accounts */ items?: any | undefined; }; /** * A balance sheet liabilities account represents the financial position of a company at a specific point in time. */ export type BalanceSheetLiabilitiesAccount = { /** * The unique identifier for the account. */ accountId?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ name?: string | undefined; /** * The amount or value of the item */ value?: number | undefined; /** * A list of balance sheet accounts */ items?: any | undefined; }; /** * A balance sheet equity account represents the financial position of a company at a specific point in time. */ export type BalanceSheetEquityAccount = { /** * The unique identifier for the account. */ accountId?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ name?: string | undefined; /** * The amount or value of the item */ value?: number | undefined; /** * A list of balance sheet accounts */ items?: any | undefined; }; /** * A balance sheet uncategorized items account represents the financial position of a company at a specific point in time. */ export type BalanceSheetUncategorizedItemsAccount = { /** * The unique identifier for the account. */ accountId?: string | undefined; /** * The account code of the account */ code?: string | undefined; /** * The name of the account. */ name?: string | undefined; /** * The amount or value of the item */ value?: number | undefined; /** * A list of balance sheet accounts */ items?: any | undefined; }; export type Reports = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The name of the report */ reportName?: string | undefined; /** * The start date of the report */ startDate?: string | undefined; /** * The start date of the report */ endDate: string; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; /** * A balance sheet assets account represents the financial position of a company at a specific point in time. */ assets: BalanceSheetAssetsAccount; /** * A balance sheet liabilities account represents the financial position of a company at a specific point in time. */ liabilities: BalanceSheetLiabilitiesAccount; /** * A balance sheet equity account represents the financial position of a company at a specific point in time. */ equity: BalanceSheetEquityAccount; /** * The net assets of the balance sheet */ netAssets?: number | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; /** * The user who last updated the object. */ updatedBy?: string | null | undefined; /** * The user who created the object. */ createdBy?: string | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * A balance sheet uncategorized items account represents the financial position of a company at a specific point in time. */ uncategorizedItems?: BalanceSheetUncategorizedItemsAccount | undefined; }; export type BalanceSheet = { reports: Array; }; /** @internal */ export declare const BalanceSheetAssetsAccount$inboundSchema: z.ZodType; /** @internal */ export type BalanceSheetAssetsAccount$Outbound = { account_id?: string | undefined; code?: string | undefined; name?: string | undefined; value?: number | undefined; items?: any | undefined; }; /** @internal */ export declare const BalanceSheetAssetsAccount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BalanceSheetAssetsAccount$ { /** @deprecated use `BalanceSheetAssetsAccount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BalanceSheetAssetsAccount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BalanceSheetAssetsAccount$Outbound` instead. */ type Outbound = BalanceSheetAssetsAccount$Outbound; } export declare function balanceSheetAssetsAccountToJSON(balanceSheetAssetsAccount: BalanceSheetAssetsAccount): string; export declare function balanceSheetAssetsAccountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BalanceSheetLiabilitiesAccount$inboundSchema: z.ZodType; /** @internal */ export type BalanceSheetLiabilitiesAccount$Outbound = { account_id?: string | undefined; code?: string | undefined; name?: string | undefined; value?: number | undefined; items?: any | undefined; }; /** @internal */ export declare const BalanceSheetLiabilitiesAccount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BalanceSheetLiabilitiesAccount$ { /** @deprecated use `BalanceSheetLiabilitiesAccount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BalanceSheetLiabilitiesAccount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BalanceSheetLiabilitiesAccount$Outbound` instead. */ type Outbound = BalanceSheetLiabilitiesAccount$Outbound; } export declare function balanceSheetLiabilitiesAccountToJSON(balanceSheetLiabilitiesAccount: BalanceSheetLiabilitiesAccount): string; export declare function balanceSheetLiabilitiesAccountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BalanceSheetEquityAccount$inboundSchema: z.ZodType; /** @internal */ export type BalanceSheetEquityAccount$Outbound = { account_id?: string | undefined; code?: string | undefined; name?: string | undefined; value?: number | undefined; items?: any | undefined; }; /** @internal */ export declare const BalanceSheetEquityAccount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BalanceSheetEquityAccount$ { /** @deprecated use `BalanceSheetEquityAccount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BalanceSheetEquityAccount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BalanceSheetEquityAccount$Outbound` instead. */ type Outbound = BalanceSheetEquityAccount$Outbound; } export declare function balanceSheetEquityAccountToJSON(balanceSheetEquityAccount: BalanceSheetEquityAccount): string; export declare function balanceSheetEquityAccountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BalanceSheetUncategorizedItemsAccount$inboundSchema: z.ZodType; /** @internal */ export type BalanceSheetUncategorizedItemsAccount$Outbound = { account_id?: string | undefined; code?: string | undefined; name?: string | undefined; value?: number | undefined; items?: any | undefined; }; /** @internal */ export declare const BalanceSheetUncategorizedItemsAccount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BalanceSheetUncategorizedItemsAccount$ { /** @deprecated use `BalanceSheetUncategorizedItemsAccount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BalanceSheetUncategorizedItemsAccount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BalanceSheetUncategorizedItemsAccount$Outbound` instead. */ type Outbound = BalanceSheetUncategorizedItemsAccount$Outbound; } export declare function balanceSheetUncategorizedItemsAccountToJSON(balanceSheetUncategorizedItemsAccount: BalanceSheetUncategorizedItemsAccount): string; export declare function balanceSheetUncategorizedItemsAccountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Reports$inboundSchema: z.ZodType; /** @internal */ export type Reports$Outbound = { id?: string | undefined; report_name?: string | undefined; start_date?: string | undefined; end_date: string; currency?: string | null | undefined; assets: BalanceSheetAssetsAccount$Outbound; liabilities: BalanceSheetLiabilitiesAccount$Outbound; equity: BalanceSheetEquityAccount$Outbound; net_assets?: number | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; updated_by?: string | null | undefined; created_by?: string | null | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; uncategorized_items?: BalanceSheetUncategorizedItemsAccount$Outbound | undefined; }; /** @internal */ export declare const Reports$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Reports$ { /** @deprecated use `Reports$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Reports$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Reports$Outbound` instead. */ type Outbound = Reports$Outbound; } export declare function reportsToJSON(reports: Reports): string; export declare function reportsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BalanceSheet$inboundSchema: z.ZodType; /** @internal */ export type BalanceSheet$Outbound = { reports: Array; }; /** @internal */ export declare const BalanceSheet$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace BalanceSheet$ { /** @deprecated use `BalanceSheet$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `BalanceSheet$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `BalanceSheet$Outbound` instead. */ type Outbound = BalanceSheet$Outbound; } export declare function balanceSheetToJSON(balanceSheet: BalanceSheet): string; export declare function balanceSheetFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=balancesheet.d.ts.map