diff --git a/src/types/api/master-data/location.ts b/src/types/api/master-data/location.ts new file mode 100644 index 00000000..91912ab7 --- /dev/null +++ b/src/types/api/master-data/location.ts @@ -0,0 +1,19 @@ +import { BaseMetadata } from '@/types/api/api-general'; +import { BaseArea } from '@/types/api/master-data/area'; + +export type BaseLocation = { + id: number; + name: string; + address: string; + area: BaseArea; +}; + +export type Location = BaseMetadata & BaseLocation; + +export type CreateLocationPayload = { + name: string; + address: string; + area_id: number; +}; + +export type UpdateLocationPayload = CreateLocationPayload;