fixing error handling

This commit is contained in:
John Yeo
2025-10-01 16:17:15 +01:00
parent c2a4b9aab9
commit 5fb28db4bc
53 changed files with 1381 additions and 604 deletions

View File

@@ -0,0 +1,4 @@
export const CusProductErrorCode = {
CustomerProductNotFound: "customer_product_not_found",
CustomerProductAlreadyExists: "customer_product_already_exists",
} as const;

View File

@@ -0,0 +1,11 @@
/**
* Product-related error codes
*/
export const ProductErrorCode = {
ProductNotFound: "product_not_found",
ProductAlreadyExists: "product_already_exists",
InvalidProductItem: "invalid_product_item",
} as const;
export type ProductErrorCode =
(typeof ProductErrorCode)[keyof typeof ProductErrorCode];