@seamapi/nextlove-sdk-generator 1.19.1 → 1.19.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,12 @@
1
1
  export function getFilteredRoutes(openapi) {
2
2
  return Object.entries(openapi.paths)
3
- .filter(([_, pathSchema]) => pathSchema.post?.["x-undocumented"] == null)
3
+ .filter(([, pathSchema]) => {
4
+ const post = pathSchema.post;
5
+ const summary = post.summary;
6
+ const isDocumented = post?.["x-undocumented"] == null;
7
+ const isSeamInternalRoute = summary.startsWith("/seam/");
8
+ return isDocumented && !isSeamInternalRoute;
9
+ })
4
10
  .map(([path, route]) => ({ path, ...route }));
5
11
  }
6
12
  //# sourceMappingURL=get-filtered-routes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-filtered-routes.js","sourceRoot":"","sources":["../../src/lib/openapi/get-filtered-routes.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACtD,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;SACjC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAAC;SACxE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAA;AACjD,CAAC"}
1
+ {"version":3,"file":"get-filtered-routes.js","sourceRoot":"","sources":["../../src/lib/openapi/get-filtered-routes.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,OAAsB;IACtD,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;SACjC,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE;QACzB,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAA;QAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAE5B,MAAM,YAAY,GAAG,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAAA;QACrD,MAAM,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;QAExD,OAAO,YAAY,IAAI,CAAC,mBAAmB,CAAA;IAC7C,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAA;AACjD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/nextlove-sdk-generator",
3
- "version": "1.19.1",
3
+ "version": "1.19.4",
4
4
  "description": "Utilities for building NextLove SDK Generators",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2,6 +2,14 @@ import type { Route, OpenAPISchema } from "lib/types.js"
2
2
 
3
3
  export function getFilteredRoutes(openapi: OpenAPISchema): Route[] {
4
4
  return Object.entries(openapi.paths)
5
- .filter(([_, pathSchema]) => pathSchema.post?.["x-undocumented"] == null)
5
+ .filter(([, pathSchema]) => {
6
+ const post = pathSchema.post
7
+ const summary = post.summary
8
+
9
+ const isDocumented = post?.["x-undocumented"] == null
10
+ const isSeamInternalRoute = summary.startsWith("/seam/")
11
+
12
+ return isDocumented && !isSeamInternalRoute
13
+ })
6
14
  .map(([path, route]) => ({ path, ...route }))
7
15
  }