Feat: admin return reason list (#8482)

* feat: add missing endpoints to return reason sdk

* add return reason list route

* add return reason query hooks

* fix update return reasons in order modules service

* fix store/return-reasons middleware

* add missing tests for /return-resasons/:id
This commit is contained in:
Christian
2024-08-08 16:24:13 +02:00
committed by GitHub
parent f9989e1659
commit d4c5f6593d
36 changed files with 724 additions and 90 deletions

View File

@@ -184,6 +184,11 @@ const TAX_INJECTION_ZONES = [
"tax.list.after",
] as const
const RETURN_REASON_INJECTION_ZONES = [
"return_reason.list.before",
"return_reason.list.after",
] as const
/**
* All valid injection zones in the admin panel. An injection zone is a specific place
* in the admin panel where a plugin can inject custom widgets.
@@ -214,4 +219,5 @@ export const INJECTION_ZONES = [
...TAX_INJECTION_ZONES,
...PRODUCT_TYPE_INJECTION_ZONES,
...PRODUCT_TAG_INJECTION_ZONES,
...RETURN_REASON_INJECTION_ZONES,
] as const