Skip to content

Commit 3a61e2c

Browse files
committed
fix(party_ru): adds fio for party type
1 parent d5ef5f8 commit 3a61e2c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

packages/react-dadata/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dadata",
3-
"version": "2.25.0",
3+
"version": "2.26.0",
44
"description": "React-компонент для подсказок адресов, организаций и банков с помощью сервиса DaData.ru",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

packages/react-dadata/src/types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,15 @@ interface DaDataPartyAddress
179179
flat_price: Nullable<string>;
180180
}
181181

182+
export interface DaDataPartyRussiaFio {
183+
name: string;
184+
patronymic: string;
185+
surname: string;
186+
gender: null;
187+
qc: null;
188+
source: null;
189+
}
190+
182191
export interface DaDataParty {
183192
inn: string;
184193
kpp: string;
@@ -187,6 +196,7 @@ export interface DaDataParty {
187196
hid: string;
188197
capital: Nullable<string>;
189198
type: DaDataPartyType;
199+
fio?: DaDataPartyRussiaFio;
190200
name: {
191201
full_with_opf: string;
192202
short_with_opf: string;

0 commit comments

Comments
 (0)