Некорректное значение DaDataAddressBounds
VikThor13 opened this issue · 0 comments
VikThor13 commented
Добрый день!
Согласно документации Dadata https://confluence.hflabs.ru/pages/viewpage.action?pageId=222888017 одно из возможных значений DaDataAddressBounds должно быть house, вместо houses которое указано сейчас.
При указании параметра filterToBound="house" подсказки выводятся с точностью до номера дома. Значение houses не работает.
Решение проблемы:
diff --git a/node_modules/react-dadata/dist/types.d.ts b/node_modules/react-dadata/dist/types.d.ts
index ce61739..1811e83 100644
--- a/node_modules/react-dadata/dist/types.d.ts
+++ b/node_modules/react-dadata/dist/types.d.ts
@@ -143,7 +143,7 @@ export interface DaDataAddress {
metro: Nullable<DaDataAddressMetro[]>;
divisions?: unknown;
}
-export declare type DaDataAddressBounds = 'country' | 'region' | 'area' | 'city' | 'settlement' | 'street' | 'houses';
+export declare type DaDataAddressBounds = 'country' | 'region' | 'area' | 'city' | 'settlement' | 'street' | 'house';
export declare type DaDataPartyType = 'LEGAL' | 'INDIVIDUAL';
export declare type DaDataPartyBranchType = 'MAIN' | 'BRANCH';
export declare type DaDataPartyStatus = 'ACTIVE' | 'LIQUIDATING' | 'LIQUIDATED' | 'REORGANIZING' | 'BANKRUPT';