@povio/openapi-codegen-cli 0.3.4 → 0.3.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/openapi-codegen-cli",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "main": "./dist/index.js",
5
5
  "bin": {
6
6
  "openapi-codegen": "./dist/sh.js"
@@ -1,5 +1,8 @@
1
1
  export const keys = {
2
+ {{#each (allQueryKeys endpoints) as | queryKey |}}
3
+ {{queryKey.name}}: ["{{queryKey.path}}"] as const,
4
+ {{/each}}
2
5
  {{#each endpoints as | endpoint |}}
3
- {{endpointName endpoint}}: ({{{genEndpointParams endpoint}}}) => ["{{endpoint.path}}", {{{endpointArgs endpoint}}}] as const,
6
+ {{endpointName endpoint}}: ({{{genEndpointParams endpoint}}}) => [{{{commaSeparated (endpointPathQueryKeys endpoint ../endpoints)}}}, {{{endpointArgs endpoint}}}] as const,
4
7
  {{/each}}
5
8
  };