Skip to content

Commit bc977c2

Browse files
fix: MLI location update body nullable fields
1 parent 9a314ae commit bc977c2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/types/mli-locations.d.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ export interface Location extends Identifiable, LocationBase {}
3737

3838
export interface CreateLocationBody extends LocationAttributes {}
3939

40-
export interface UpdateLocationBody extends LocationAttributes {}
40+
export interface UpdateLocationBody
41+
extends Omit<
42+
LocationAttributes,
43+
'external_ref' | 'description' | 'address' | 'geolocation'
44+
> {
45+
external_ref?: string | null
46+
description?: string | null
47+
address?: string[] | null[]
48+
geolocation?: GeolocationDetails | null
49+
}
4150

4251
/**
4352
* Location Endpoints

0 commit comments

Comments
 (0)