chore(docs): Updated API Reference (automated) (#12826)

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-06-25 12:18:41 +00:00
committed by GitHub
parent 441334abf4
commit 7ac734ca21
168 changed files with 2982 additions and 25 deletions

View File

@@ -72,6 +72,7 @@ class RouteExamplesGenerator extends AbstractGenerator {
* @returns Whether the Route Examples generator can run on this file.
*/
isFileIncluded(fileName: string): boolean {
console.log(fileName, getBasePath(fileName))
return (
super.isFileIncluded(fileName) &&
minimatch(

View File

@@ -132,7 +132,12 @@ class OasKindGenerator extends FunctionKindGenerator {
]
readonly RESPONSE_TYPE_NAMES = ["MedusaResponse"]
readonly FIELD_QUERY_PARAMS = ["fields", "expand"]
readonly PAGINATION_QUERY_PARAMS = ["limit", "offset", "order"]
readonly PAGINATION_QUERY_PARAMS = [
"limit",
"offset",
"order",
"with_deleted",
]
/**
* This map collects tags of all the generated OAS, then, once the generation process finishes,

View File

@@ -5,5 +5,9 @@
* @returns The path without the relative part.
*/
export default function getBasePath(fileName: string) {
return fileName.substring(fileName.lastIndexOf("../") + 3)
let index = fileName.indexOf("packages/")
if (index === -1) {
index = fileName.indexOf("src/")
}
return fileName.substring(index)
}