From d3977a0951f3808e8fc3820f043ad9d18d85944e Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Sat, 4 Oct 2025 14:57:17 +0700 Subject: [PATCH] feat(FE-41): create Location type --- src/types/api/master-data/location.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/types/api/master-data/location.ts 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;