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:
committed by
GitHub
parent
441334abf4
commit
7ac734ca21
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user