@keq-request/cli 5.0.0-alpha.23 → 5.0.0-alpha.25

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cli.cjs +112 -151
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +112 -151
  5. package/dist/cli.js.map +1 -1
  6. package/dist/compiler/tasks/download/index.d.ts.map +1 -1
  7. package/dist/compiler/tasks/setup/index.d.ts.map +1 -1
  8. package/dist/index.cjs +110 -151
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.js +110 -151
  11. package/dist/index.js.map +1 -1
  12. package/dist/models/api-document_v3_1.d.ts +0 -1
  13. package/dist/models/api-document_v3_1.d.ts.map +1 -1
  14. package/dist/models/artifact.d.ts +0 -2
  15. package/dist/models/artifact.d.ts.map +1 -1
  16. package/dist/plugins/generate-micro-function/generators/micro_function/micro-function.generator.d.ts.map +1 -1
  17. package/dist/plugins/generate-nestjs-module/generators/nestjs-module.generator.d.ts.map +1 -1
  18. package/dist/plugins/index.d.ts +2 -0
  19. package/dist/plugins/index.d.ts.map +1 -1
  20. package/dist/plugins/initialize/initialize.plugin.d.ts.map +1 -1
  21. package/dist/plugins/overwrite-operation-id/index.d.ts +2 -0
  22. package/dist/plugins/overwrite-operation-id/index.d.ts.map +1 -0
  23. package/dist/plugins/overwrite-operation-id/overwrite-operation-id.plugin.d.ts +20 -0
  24. package/dist/plugins/overwrite-operation-id/overwrite-operation-id.plugin.d.ts.map +1 -0
  25. package/dist/plugins/overwrite-query-options/index.d.ts +2 -0
  26. package/dist/plugins/overwrite-query-options/index.d.ts.map +1 -0
  27. package/dist/plugins/overwrite-query-options/overwrite-query-options.plugin.d.ts +18 -0
  28. package/dist/plugins/overwrite-query-options/overwrite-query-options.plugin.d.ts.map +1 -0
  29. package/dist/plugins/prettier/index.d.ts +1 -5
  30. package/dist/plugins/prettier/index.d.ts.map +1 -1
  31. package/dist/plugins/prettier/prettier.plugin.d.ts +6 -0
  32. package/dist/plugins/prettier/prettier.plugin.d.ts.map +1 -0
  33. package/dist/plugins/shaking/shaking.plugin.d.ts.map +1 -1
  34. package/dist/plugins.cjs +173 -94
  35. package/dist/plugins.cjs.map +1 -1
  36. package/dist/plugins.js +171 -94
  37. package/dist/plugins.js.map +1 -1
  38. package/dist/transformers/api-document/nestjs-client.renderer.d.ts +0 -3
  39. package/dist/transformers/api-document/nestjs-client.renderer.d.ts.map +1 -1
  40. package/dist/transformers/operation-definition/declaration.renderer.d.ts.map +1 -1
  41. package/dist/transformers/operation-definition/micro-function.renderer.d.ts +1 -1
  42. package/dist/transformers/operation-definition/micro-function.renderer.d.ts.map +1 -1
  43. package/dist/transformers/operation-definition/nestjs-method.renderer.d.ts +1 -1
  44. package/dist/transformers/operation-definition/nestjs-method.renderer.d.ts.map +1 -1
  45. package/dist/transformers/operation-definition/{typescript-helper.d.ts → typescript-snippet.d.ts} +1 -4
  46. package/dist/transformers/operation-definition/typescript-snippet.d.ts.map +1 -0
  47. package/dist/types/index.d.ts +0 -2
  48. package/dist/types/index.d.ts.map +1 -1
  49. package/dist/types/runtime-config.d.ts +1 -17
  50. package/dist/types/runtime-config.d.ts.map +1 -1
  51. package/dist/utils/openapi-utils/index.d.ts +4 -2
  52. package/dist/utils/openapi-utils/index.d.ts.map +1 -1
  53. package/dist/utils/openapi-utils/map-operation.d.ts +4 -0
  54. package/dist/utils/openapi-utils/map-operation.d.ts.map +1 -0
  55. package/dist/utils/openapi-utils/map-parameter.d.ts +4 -0
  56. package/dist/utils/openapi-utils/map-parameter.d.ts.map +1 -0
  57. package/package.json +3 -3
  58. package/dist/transformers/operation-definition/typescript-helper.d.ts.map +0 -1
  59. package/dist/types/operation-id-factory.d.ts +0 -10
  60. package/dist/types/operation-id-factory.d.ts.map +0 -1
  61. package/dist/types/qs.d.ts +0 -9
  62. package/dist/types/qs.d.ts.map +0 -1
  63. package/dist/utils/openapi-utils/update-operation-id.d.ts +0 -5
  64. package/dist/utils/openapi-utils/update-operation-id.d.ts.map +0 -1
@@ -1,10 +1,7 @@
1
1
  import { ApiDocumentV3_1, OperationDefinition } from '../../models/index.js';
2
2
  import { Renderer } from '../types/renderer.js';
3
- import { KeqQueryOptionsFactory } from '../../types/index.js';
4
- import { KeqQueryOptions } from 'keq';
5
3
  export interface ApiDocumentNestjsClientRendererOptions {
6
4
  esm?: boolean;
7
- qs?: KeqQueryOptions | KeqQueryOptionsFactory;
8
5
  getOperationDefinitionDeclarationFilepath(this: void, operationDefinition: OperationDefinition): string;
9
6
  }
10
7
  export declare class NestjsClientRenderer implements Renderer {
@@ -1 +1 @@
1
- {"version":3,"file":"nestjs-client.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/api-document/nestjs-client.renderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AAIrC,MAAM,WAAW,sCAAsC;IACrD,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,EAAE,CAAC,EAAE,eAAe,GAAG,sBAAsB,CAAA;IAE7C,yCAAyC,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,EAAE,mBAAmB,GAAG,MAAM,CAAA;CACxG;AAGD,qBAAa,oBAAqB,YAAW,QAAQ;IAEjD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,sCAAsC;IAKlE,OAAO,CAAC,kBAAkB;IAkB1B,MAAM,IAAI,MAAM;CAgCjB"}
1
+ {"version":3,"file":"nestjs-client.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/api-document/nestjs-client.renderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAK/C,MAAM,WAAW,sCAAsC;IACrD,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb,yCAAyC,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,EAAE,mBAAmB,GAAG,MAAM,CAAA;CACxG;AAGD,qBAAa,oBAAqB,YAAW,QAAQ;IAEjD,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,sCAAsC;IAKlE,OAAO,CAAC,kBAAkB;IAkB1B,MAAM,IAAI,MAAM;CA+BjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"declaration.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/declaration.renderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAMzE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAG/C,MAAM,WAAW,6CAA6C;IAC5D,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb,oCAAoC,CAAC,yBAAyB,EAAE,gBAAgB,GAAG,MAAM,CAAA;CAC1F;AAID,qBAAa,mBAAoB,YAAW,QAAQ;IAIhD,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,OAAO,CAAC,QAAQ,CAAY;gBAGT,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,6CAA6C;IAKzE,OAAO,CAAC,oBAAoB;IA0B5B,OAAO,CAAC,mBAAmB;IA6B3B,OAAO,CAAC,qBAAqB;IAoC7B,OAAO,CAAC,uBAAuB;IAsB/B,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,kBAAkB;IAmB1B,MAAM,IAAI,MAAM;CA8DjB"}
1
+ {"version":3,"file":"declaration.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/declaration.renderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAMzE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAG/C,MAAM,WAAW,6CAA6C;IAC5D,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb,oCAAoC,CAAC,yBAAyB,EAAE,gBAAgB,GAAG,MAAM,CAAA;CAC1F;AAID,qBAAa,mBAAoB,YAAW,QAAQ;IAIhD,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,OAAO,CAAC,QAAQ,CAAY;gBAGT,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,6CAA6C;IAKzE,OAAO,CAAC,oBAAoB;IA+B5B,OAAO,CAAC,mBAAmB;IA6B3B,OAAO,CAAC,qBAAqB;IAoC7B,OAAO,CAAC,uBAAuB;IAsB/B,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,kBAAkB;IAmB1B,MAAM,IAAI,MAAM;CA8DjB"}
@@ -1,7 +1,7 @@
1
1
  import { OperationDefinition } from '../../models/index.js';
2
2
  import { Renderer } from '../types/renderer.js';
3
3
  import { TypeNameFn } from './utils/index.js';
4
- import { OperationDefinitionSnippet, OperationDefinitionSnippetOptions } from './typescript-helper.js';
4
+ import { OperationDefinitionSnippet, OperationDefinitionSnippetOptions } from './typescript-snippet.js';
5
5
  export interface OperationDefinitionMicroFunctionRendererOptions extends OperationDefinitionSnippetOptions {
6
6
  getOperationDefinitionDeclarationFilepath(operationDefinition: OperationDefinition): string;
7
7
  getRequestFilepath(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"micro-function.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/micro-function.renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAI9D,OAAO,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AAGtG,MAAM,WAAW,+CAAgD,SAAQ,iCAAiC;IACxG,yCAAyC,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAC3F,kBAAkB,IAAI,MAAM,CAAA;CAC7B;AAED,qBAAa,wCAAyC,YAAW,QAAQ;IAKrE,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,MAAM,EAAE,0BAA0B,CAAA;IAClC,QAAQ,EAAE,UAAU,CAAA;gBAGD,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,+CAA+C;IAM3E,MAAM,IAAI,MAAM;IA6DhB,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,0BAA0B;CAenC"}
1
+ {"version":3,"file":"micro-function.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/micro-function.renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAI9D,OAAO,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAGvG,MAAM,WAAW,+CAAgD,SAAQ,iCAAiC;IACxG,yCAAyC,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAC3F,kBAAkB,IAAI,MAAM,CAAA;CAC7B;AAED,qBAAa,wCAAyC,YAAW,QAAQ;IAKrE,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,MAAM,EAAE,0BAA0B,CAAA;IAClC,QAAQ,EAAE,UAAU,CAAA;gBAGD,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,+CAA+C;IAM3E,MAAM,IAAI,MAAM;IA6DhB,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,0BAA0B;CAenC"}
@@ -1,6 +1,6 @@
1
1
  import { TypeNameFn } from './utils/index.js';
2
2
  import { OperationDefinition } from '../../models/index.js';
3
- import { OperationDefinitionSnippet, OperationDefinitionSnippetOptions } from './typescript-helper.js';
3
+ import { OperationDefinitionSnippet, OperationDefinitionSnippetOptions } from './typescript-snippet.js';
4
4
  import { Renderer } from '../types/renderer.js';
5
5
  export type OperationDefinitionNestjsMethodRendererOptions = OperationDefinitionSnippetOptions;
6
6
  export declare class OperationDefinitionNestjsMethodRenderer implements Renderer {
@@ -1 +1 @@
1
- {"version":3,"file":"nestjs-method.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/nestjs-method.renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAmB,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,MAAM,wBAAwB,CAAA;AAGtG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,8CAA8C,GAAG,iCAAiC,CAAA;AAE9F,qBAAa,uCAAwC,YAAW,QAAQ;IAKpE,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,MAAM,EAAE,0BAA0B,CAAA;IAClC,QAAQ,EAAE,UAAU,CAAA;gBAGD,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,8CAA8C;IAO1E,MAAM,IAAI,MAAM;IAiDhB,OAAO,CAAC,0BAA0B;CAgBnC"}
1
+ {"version":3,"file":"nestjs-method.renderer.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/nestjs-method.renderer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAmB,MAAM,kBAAkB,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAGvG,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,8CAA8C,GAAG,iCAAiC,CAAA;AAE9F,qBAAa,uCAAwC,YAAW,QAAQ;IAKpE,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,MAAM,EAAE,0BAA0B,CAAA;IAClC,QAAQ,EAAE,UAAU,CAAA;gBAGD,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,8CAA8C;IAO1E,MAAM,IAAI,MAAM;IAiDhB,OAAO,CAAC,0BAA0B;CAgBnC"}
@@ -1,10 +1,7 @@
1
- import { KeqQueryOptions } from 'keq';
2
1
  import { OperationDefinition } from '../../models/index.js';
3
- import { KeqQueryOptionsFactory } from '../../types/index.js';
4
2
  import { TypeNameFn } from './utils/index.js';
5
3
  export interface OperationDefinitionSnippetOptions {
6
4
  esm?: boolean;
7
- qs?: KeqQueryOptions | KeqQueryOptionsFactory;
8
5
  }
9
6
  export declare class OperationDefinitionSnippet {
10
7
  private readonly operationDefinition;
@@ -22,4 +19,4 @@ export declare class OperationDefinitionSnippet {
22
19
  renderRequestBody(): string;
23
20
  private renderErrorComment;
24
21
  }
25
- //# sourceMappingURL=typescript-helper.d.ts.map
22
+ //# sourceMappingURL=typescript-snippet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-snippet.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/typescript-snippet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAIvD,OAAO,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAG9D,MAAM,WAAW,iCAAiC;IAChD,GAAG,CAAC,EAAE,OAAO,CAAA;CACd;AAED,qBAAa,0BAA0B;IAInC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,QAAQ,EAAE,UAAU,CAAA;gBAGD,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,iCAAiC;IAM7D,OAAO,CAAC,eAAe;IAgDvB,oBAAoB,IAAI,MAAM;IAa9B,kBAAkB,IAAI,MAAM;IAkB5B,2BAA2B,IAAI,MAAM;IAYrC,oBAAoB,IAAI,MAAM,EAAE;IAOhC,eAAe,IAAI,MAAM;IAmBzB,OAAO,CAAC,mCAAmC;IA+B3C,OAAO,CAAC,2BAA2B;IAenC,iBAAiB,IAAI,MAAM;IA8B3B,OAAO,CAAC,kBAAkB;CAa3B"}
@@ -1,8 +1,6 @@
1
1
  export * from './build-cli-options.js';
2
- export * from './operation-id-factory.js';
3
2
  export * from './plugin.js';
4
3
  export * from './generator.js';
5
- export * from './qs.js';
6
4
  export * from './runtime-config.js';
7
5
  export * from './to-code-options.js';
8
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
@@ -1,7 +1,4 @@
1
- import { KeqQueryOptions } from 'keq';
2
1
  import { Static } from '@sinclair/typebox';
3
- import { OpenAPIV3_1 } from '@scalar/openapi-types';
4
- import { OperationIdFactory } from './operation-id-factory.js';
5
2
  import { FileNamingStyle } from '../constants/file-naming-style.js';
6
3
  import { Plugin } from './plugin.js';
7
4
  export declare const RuntimeConfig: import("@sinclair/typebox").TObject<{
@@ -22,16 +19,6 @@ export declare const RuntimeConfig: import("@sinclair/typebox").TObject<{
22
19
  */
23
20
  fileNamingStyle: import("@sinclair/typebox").TEnum<typeof FileNamingStyle>;
24
21
  modules: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
25
- operationIdFactory: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TAny], import("@sinclair/typebox").TString>>;
26
- qs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
27
- indices: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
28
- arrayFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof import("../index.js").QsArrayFormat>>;
29
- allowDots: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
30
- }>, import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TAny], import("@sinclair/typebox").TObject<{
31
- indices: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
32
- arrayFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof import("../index.js").QsArrayFormat>>;
33
- allowDots: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
34
- }>>]>>;
35
22
  debug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
36
23
  /**
37
24
  * Whether to tolerate wrong openapi/swagger structure
@@ -39,10 +26,7 @@ export declare const RuntimeConfig: import("@sinclair/typebox").TObject<{
39
26
  tolerant: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
40
27
  plugins: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
41
28
  }>;
42
- export type KeqQueryOptionsFactory = (parameter: OpenAPIV3_1.ParameterObject) => KeqQueryOptions | undefined;
43
- export interface RuntimeConfig extends Omit<Static<typeof RuntimeConfig>, 'operationId' | 'qs' | 'plugins'> {
44
- operationIdFactory?: OperationIdFactory;
45
- qs?: KeqQueryOptions | KeqQueryOptionsFactory;
29
+ export interface RuntimeConfig extends Omit<Static<typeof RuntimeConfig>, 'operationId' | 'plugins'> {
46
30
  plugins?: Plugin[];
47
31
  }
48
32
  //# sourceMappingURL=runtime-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-config.d.ts","sourceRoot":"","sources":["../../src/types/runtime-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGpC,eAAO,MAAM,aAAa;;IASxB;;;;;OAKG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;IAcH;;OAEG;;;EAIH,CAAA;AAGF,MAAM,MAAM,sBAAsB,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,eAAe,KAAK,eAAe,GAAG,SAAS,CAAA;AAE5G,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC;IACzG,kBAAkB,CAAC,EAAE,kBAAkB,CAAA;IACvC,EAAE,CAAC,EAAE,eAAe,GAAG,sBAAsB,CAAA;IAC7C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB"}
1
+ {"version":3,"file":"runtime-config.d.ts","sourceRoot":"","sources":["../../src/types/runtime-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGpC,eAAO,MAAM,aAAa;;IASxB;;;;;OAKG;;IAGH;;OAEG;;IAGH;;OAEG;;;;IAOH;;OAEG;;;EAIH,CAAA;AAGF,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,MAAM,CAAC,OAAO,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAClG,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACnB"}
@@ -2,16 +2,18 @@ import { dereference } from './dereference.js';
2
2
  import { dereferenceOperation } from './dereference-operation.js';
3
3
  import { isRefDefined } from './is-ref-defined.js';
4
4
  import { removeUndefinedRef } from './remove-undefined-ref.js';
5
- import { updateOperationId } from './update-operation-id.js';
6
5
  import { dereferenceDeep } from './dereference-deep.js';
7
6
  import { To3_1 } from './to-3_1.js';
7
+ import { mapOperation } from './map-operation.js';
8
+ import { mapParameter } from './map-parameter.js';
8
9
  export declare class OpenapiUtils {
9
10
  static isRefDefined: typeof isRefDefined;
10
11
  static dereference: typeof dereference;
11
12
  static dereferenceDeep: typeof dereferenceDeep;
12
13
  static removeUndefinedRef: typeof removeUndefinedRef;
13
14
  static dereferenceOperation: typeof dereferenceOperation;
14
- static updateOperationId: typeof updateOperationId;
15
+ static mapOperation: typeof mapOperation;
16
+ static mapParameter: typeof mapParameter;
15
17
  static to3_1: typeof To3_1;
16
18
  }
17
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAGnC,qBAAa,YAAY;IACvB,MAAM,CAAC,YAAY,sBAAe;IAClC,MAAM,CAAC,WAAW,qBAAc;IAChC,MAAM,CAAC,eAAe,yBAAkB;IACxC,MAAM,CAAC,kBAAkB,4BAAqB;IAC9C,MAAM,CAAC,oBAAoB,8BAAuB;IAClD,MAAM,CAAC,iBAAiB,2BAAoB;IAC5C,MAAM,CAAC,KAAK,eAAQ;CACrB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjD,qBAAa,YAAY;IACvB,MAAM,CAAC,YAAY,sBAAe;IAClC,MAAM,CAAC,WAAW,qBAAc;IAChC,MAAM,CAAC,eAAe,yBAAkB;IACxC,MAAM,CAAC,kBAAkB,4BAAqB;IAC9C,MAAM,CAAC,oBAAoB,8BAAuB;IAClD,MAAM,CAAC,YAAY,sBAAe;IAClC,MAAM,CAAC,YAAY,sBAAe;IAElC,MAAM,CAAC,KAAK,eAAQ;CACrB"}
@@ -0,0 +1,4 @@
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ export type OpenapiOperationMapper = (method: string, pathname: string, operation: OpenAPIV3_1.OperationObject) => OpenAPIV3_1.OperationObject;
3
+ export declare function mapOperation(specification: OpenAPIV3_1.Document, mapper: OpenapiOperationMapper): OpenAPIV3_1.Document;
4
+ //# sourceMappingURL=map-operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-operation.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/map-operation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,eAAe,KAAK,WAAW,CAAC,eAAe,CAAA;AAG9I,wBAAgB,YAAY,CAAC,aAAa,EAAE,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,sBAAsB,GAAG,WAAW,CAAC,QAAQ,CAetH"}
@@ -0,0 +1,4 @@
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ export type OpenapiParameterMapper = (method: string, pathname: string, operation: OpenAPIV3_1.OperationObject, parameter: OpenAPIV3_1.ParameterObject) => OpenAPIV3_1.ParameterObject;
3
+ export declare function mapParameter(specification: OpenAPIV3_1.Document, mapper: OpenapiParameterMapper): OpenAPIV3_1.Document;
4
+ //# sourceMappingURL=map-parameter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-parameter.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/map-parameter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,eAAe,EAAE,SAAS,EAAE,WAAW,CAAC,eAAe,KAAK,WAAW,CAAC,eAAe,CAAA;AAEtL,wBAAgB,YAAY,CAC1B,aAAa,EAAE,WAAW,CAAC,QAAQ,EACnC,MAAM,EAAE,sBAAsB,GAC7B,WAAW,CAAC,QAAQ,CAStB"}
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "keq": "dist/cli.cjs"
8
8
  },
9
9
  "description": "Transform Swagger/OpenAPI to the function that send request by keq",
10
- "version": "5.0.0-alpha.23",
10
+ "version": "5.0.0-alpha.25",
11
11
  "engines": {
12
12
  "node": ">=20.0.0"
13
13
  },
@@ -50,7 +50,7 @@
50
50
  "@types/node": "^20.19.25",
51
51
  "@types/ramda": "^0.31.1",
52
52
  "@types/swagger2openapi": "^7.0.4",
53
- "keq": "5.0.0-alpha.23"
53
+ "keq": "5.0.0-alpha.25"
54
54
  },
55
55
  "dependencies": {
56
56
  "@inquirer/prompts": "^7.10.1",
@@ -82,7 +82,7 @@
82
82
  "word-wrap": "^1.2.5"
83
83
  },
84
84
  "peerDependencies": {
85
- "keq": "5.0.0-alpha.23"
85
+ "keq": "5.0.0-alpha.25"
86
86
  },
87
87
  "optionalDependencies": {
88
88
  "eslint": "^9.39.1"
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript-helper.d.ts","sourceRoot":"","sources":["../../../src/transformers/operation-definition/typescript-helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAM9D,MAAM,WAAW,iCAAiC;IAChD,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,EAAE,CAAC,EAAE,eAAe,GAAG,sBAAsB,CAAA;CAC9C;AAED,qBAAa,0BAA0B;IAInC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,QAAQ,EAAE,UAAU,CAAA;gBAGD,mBAAmB,EAAE,mBAAmB,EACxC,OAAO,EAAE,iCAAiC;IAM7D,OAAO,CAAC,eAAe;IA6BvB,oBAAoB,IAAI,MAAM;IAa9B,kBAAkB,IAAI,MAAM;IAkB5B,2BAA2B,IAAI,MAAM;IAYrC,oBAAoB,IAAI,MAAM,EAAE;IAOhC,eAAe,IAAI,MAAM;IAmBzB,OAAO,CAAC,mCAAmC;IA+B3C,OAAO,CAAC,2BAA2B;IAenC,iBAAiB,IAAI,MAAM;IA8B3B,OAAO,CAAC,kBAAkB;CAa3B"}
@@ -1,10 +0,0 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
- import { ModuleDefinition } from '../models/index.js';
3
- export interface OperationIdFactoryOptions {
4
- module: ModuleDefinition;
5
- method: string;
6
- pathname: string;
7
- operation: OpenAPIV3_1.OperationObject;
8
- }
9
- export type OperationIdFactory = (context: OperationIdFactoryOptions) => string;
10
- //# sourceMappingURL=operation-id-factory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operation-id-factory.d.ts","sourceRoot":"","sources":["../../src/types/operation-id-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,gBAAgB,CAAA;IAExB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;CACvC;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,yBAAyB,KAAK,MAAM,CAAA"}
@@ -1,9 +0,0 @@
1
- import { Static } from '@sinclair/typebox';
2
- import { QsArrayFormat } from '../constants/qs-array-format.js';
3
- export declare const Qs: import("@sinclair/typebox").TObject<{
4
- indices: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
5
- arrayFormat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<typeof QsArrayFormat>>;
6
- allowDots: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
7
- }>;
8
- export type Qs = Static<typeof Qs>;
9
- //# sourceMappingURL=qs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"qs.d.ts","sourceRoot":"","sources":["../../src/types/qs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAQ,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAG9D,eAAO,MAAM,EAAE;;;;EAIb,CAAA;AAEF,MAAM,MAAM,EAAE,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
- type OperationUpdater = (method: string, pathname: string, operation: OpenAPIV3_1.OperationObject) => string | undefined;
3
- export declare function updateOperationId(swagger: OpenAPIV3_1.Document, fn: OperationUpdater): OpenAPIV3_1.Document;
4
- export {};
5
- //# sourceMappingURL=update-operation-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-operation-id.d.ts","sourceRoot":"","sources":["../../../src/utils/openapi-utils/update-operation-id.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,KAAK,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,eAAe,KAAK,MAAM,GAAG,SAAS,CAAA;AAGxH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,EAAE,gBAAgB,GAAG,WAAW,CAAC,QAAQ,CAmB3G"}