@layerfi/components 0.1.12 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -641,8 +641,18 @@ declare module '@layerfi/components/components/ChartOfAccountsForm/ChartOfAccoun
641
641
 
642
642
  }
643
643
  declare module '@layerfi/components/components/ChartOfAccountsForm/constants' {
644
+ import { Direction } from '@layerfi/components/types';
644
645
  import { BaseSelectOption } from '@layerfi/components/types/general';
645
- export const SUB_TYPE_OPTIONS: BaseSelectOption[];
646
+ export const LEDGER_ACCOUNT_TYPES: BaseSelectOption[];
647
+ export const DEFAULT_ACCOUNT_TYPE_DIRECTION: Record<string, Direction>;
648
+ export const NORMALITY_OPTIONS: BaseSelectOption[];
649
+ export const ASSET_LEDGER_ACCOUNT_SUBTYPES: BaseSelectOption[];
650
+ export const LIABILITY_LEDGER_ACCOUNT_SUBTYPES: BaseSelectOption[];
651
+ export const EQUITY_LEDGER_ACCOUNT_SUBTYPES: BaseSelectOption[];
652
+ export const REVENUE_LEDGER_ACCOUNT_SUBTYPES: BaseSelectOption[];
653
+ export const EXPENSE_LEDGER_ACCOUNT_SUBTYPES: BaseSelectOption[];
654
+ export const LEDGER_ACCOUNT_SUBTYPES: BaseSelectOption[];
655
+ export const LEDGER_ACCOUNT_SUBTYPES_FOR_TYPE: Record<string, BaseSelectOption[]>;
646
656
 
647
657
  }
648
658
  declare module '@layerfi/components/components/ChartOfAccountsForm/index' {
@@ -901,8 +911,10 @@ declare module '@layerfi/components/components/Input/Select' {
901
911
  onChange: (selected: T) => void;
902
912
  disabled?: boolean;
903
913
  placeholder?: string;
914
+ isInvalid?: boolean;
915
+ errorMessage?: string;
904
916
  }
905
- export const Select: <T>({ name, options, className, classNamePrefix, value, onChange, disabled, placeholder, }: SelectProps<T>) => React.JSX.Element;
917
+ export const Select: <T>({ name, options, className, classNamePrefix, value, onChange, disabled, placeholder, isInvalid, errorMessage, }: SelectProps<T>) => React.JSX.Element;
906
918
 
907
919
  }
908
920
  declare module '@layerfi/components/components/Input/index' {
@@ -1699,9 +1711,11 @@ declare module '@layerfi/components/hooks/useChartOfAccounts/useChartOfAccounts'
1699
1711
  accountId?: string;
1700
1712
  data: {
1701
1713
  parent?: BaseSelectOption;
1714
+ stable_name?: string;
1702
1715
  name?: string;
1703
- type: BaseSelectOption;
1716
+ type?: BaseSelectOption;
1704
1717
  subType?: BaseSelectOption;
1718
+ normality?: BaseSelectOption;
1705
1719
  };
1706
1720
  errors?: FormError[];
1707
1721
  }
@@ -2332,7 +2346,7 @@ declare module '@layerfi/components/types/chart_of_accounts' {
2332
2346
  account_subtype?: string;
2333
2347
  };
2334
2348
  export type EditAccount = {
2335
- stable_name: string;
2349
+ stable_name?: string;
2336
2350
  name: string;
2337
2351
  normality: Direction;
2338
2352
  parent_id?: {
@@ -2341,7 +2355,6 @@ declare module '@layerfi/components/types/chart_of_accounts' {
2341
2355
  };
2342
2356
  account_type: string;
2343
2357
  account_subtype?: string;
2344
- always_show_in_pnl: boolean;
2345
2358
  };
2346
2359
 
2347
2360
  }
@@ -2470,6 +2483,7 @@ declare module '@layerfi/components/types/ledger_accounts' {
2470
2483
  }
2471
2484
  export interface LedgerEntrySource {
2472
2485
  display_description: string;
2486
+ entity_name: string;
2473
2487
  type: string;
2474
2488
  }
2475
2489
  export interface TransactionLedgerEntrySource extends LedgerEntrySource {