@seamapi/nextlove-sdk-generator 1.15.8 → 1.16.1

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,6 @@
1
1
  export function getFilteredRoutes(openapi) {
2
2
  return Object.entries(openapi.paths)
3
- .filter(([path]) => !path.startsWith("/seam"))
3
+ .filter(([path, pathSchema]) => !path.startsWith("/seam") && pathSchema.post?.["x-undocumented"] == null)
4
4
  .map(([path, route]) => ({ path, ...route }));
5
5
  }
6
6
  //# 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,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SAC7C,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,CACL,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,EAAE,CACrB,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAC3E;SACA,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAA;AACjD,CAAC"}
package/lib/types.d.ts CHANGED
@@ -93,6 +93,7 @@ export type Route = {
93
93
  200: RequestResponseDef;
94
94
  };
95
95
  requestBody: RequestResponseDef;
96
+ "x-undocumented"?: string;
96
97
  };
97
98
  };
98
99
  export type SdkGeneratorOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/nextlove-sdk-generator",
3
- "version": "1.15.8",
3
+ "version": "1.16.1",
4
4
  "description": "Utilities for building NextLove SDK Generators",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2,6 +2,9 @@ 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(([path]) => !path.startsWith("/seam"))
5
+ .filter(
6
+ ([path, pathSchema]) =>
7
+ !path.startsWith("/seam") && pathSchema.post?.["x-undocumented"] == null
8
+ )
6
9
  .map(([path, route]) => ({ path, ...route }))
7
10
  }
package/src/lib/types.ts CHANGED
@@ -98,6 +98,7 @@ export type Route = {
98
98
  "x-response-key": string | null
99
99
  responses: { 200: RequestResponseDef }
100
100
  requestBody: RequestResponseDef
101
+ "x-undocumented"?: string
101
102
  }
102
103
  }
103
104