docs: add loyalty plugin routes to OAS (#12811)

* generated OAS

* remove unused schemas

* generated specs

* add cloud badge for routes

* add to loyalty plugin page

* allow clicking the tooltip
This commit is contained in:
Shahed Nasser
2025-06-24 19:17:55 +03:00
committed by GitHub
parent 3826bde591
commit 93cf79cb0f
164 changed files with 16001 additions and 88 deletions

View File

@@ -83,7 +83,7 @@ class OasGenerator extends AbstractGenerator {
isFileIncluded(fileName: string): boolean {
return (
super.isFileIncluded(fileName) &&
minimatch(getBasePath(fileName), "packages/medusa/**/api**/**", {
minimatch(getBasePath(fileName), "**/api**/**", {
matchBase: true,
})
)

View File

@@ -121,6 +121,14 @@ class OasKindGenerator extends FunctionKindGenerator {
requiresAuthentication: true,
allowedAuthTypes: ["cookie_auth", "jwt_token"],
},
{
startsWith: "store/gift-card",
requiresAuthentication: true,
},
{
startsWith: "store/store-credit-accounts",
requiresAuthentication: true,
},
]
readonly RESPONSE_TYPE_NAMES = ["MedusaResponse"]
readonly FIELD_QUERY_PARAMS = ["fields", "expand"]