From bc977c20b08ef7c3f82317b08a874d5280a89a07 Mon Sep 17 00:00:00 2001 From: Rostyk Date: Thu, 3 Oct 2024 15:52:44 +0300 Subject: [PATCH] fix: MLI location update body nullable fields --- src/types/mli-locations.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/types/mli-locations.d.ts b/src/types/mli-locations.d.ts index 2d7e07f..8e6d8ae 100644 --- a/src/types/mli-locations.d.ts +++ b/src/types/mli-locations.d.ts @@ -37,7 +37,16 @@ export interface Location extends Identifiable, LocationBase {} export interface CreateLocationBody extends LocationAttributes {} -export interface UpdateLocationBody extends LocationAttributes {} +export interface UpdateLocationBody + extends Omit< + LocationAttributes, + 'external_ref' | 'description' | 'address' | 'geolocation' + > { + external_ref?: string | null + description?: string | null + address?: string[] | null[] + geolocation?: GeolocationDetails | null +} /** * Location Endpoints