Skip to content

Commit

Permalink
fix(party_ru): adds fio for party type
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybaev committed Dec 29, 2024
1 parent d5ef5f8 commit 3a61e2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dadata/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dadata",
"version": "2.25.0",
"version": "2.26.0",
"description": "React-компонент для подсказок адресов, организаций и банков с помощью сервиса DaData.ru",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
10 changes: 10 additions & 0 deletions packages/react-dadata/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ interface DaDataPartyAddress
flat_price: Nullable<string>;
}

export interface DaDataPartyRussiaFio {
name: string;
patronymic: string;
surname: string;
gender: null;
qc: null;
source: null;
}

export interface DaDataParty {
inn: string;
kpp: string;
Expand All @@ -187,6 +196,7 @@ export interface DaDataParty {
hid: string;
capital: Nullable<string>;
type: DaDataPartyType;
fio?: DaDataPartyRussiaFio;
name: {
full_with_opf: string;
short_with_opf: string;
Expand Down

0 comments on commit 3a61e2c

Please sign in to comment.