feat(FE-40): create api type for nonstock

This commit is contained in:
ValdiANS
2025-10-02 12:02:02 +07:00
parent 8dd1ebdfe4
commit 62b3894983
+18
View File
@@ -0,0 +1,18 @@
import { BaseApiResponse } from '@/types/api/api-general';
export type Nonstock = {
id: number;
name: string;
};
export type CreateNonstockPayload = {
name: string;
};
export type UpdateNonstockPayload = CreateNonstockPayload;
export type NonstockResponse = BaseApiResponse<Nonstock>;
export type NonstocksResponse = BaseApiResponse<Nonstock[]>;
export type DeleteNonstockResponse = BaseApiResponse;