@goast/kotlin 0.4.18 → 0.4.19

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 (108) hide show
  1. package/assets/client/spring-reactive-web-clients/ApiRequestFile.kt +33 -0
  2. package/esm/src/ast/nodes/call.d.ts.map +1 -1
  3. package/esm/src/ast/nodes/call.js +11 -1
  4. package/esm/src/ast/nodes/lambda-type.d.ts +2 -0
  5. package/esm/src/ast/nodes/lambda-type.d.ts.map +1 -1
  6. package/esm/src/ast/nodes/lambda-type.js +11 -4
  7. package/esm/src/ast/nodes/lambda.d.ts.map +1 -1
  8. package/esm/src/ast/nodes/lambda.js +10 -5
  9. package/esm/src/ast/references/index.d.ts +2 -0
  10. package/esm/src/ast/references/index.d.ts.map +1 -1
  11. package/esm/src/ast/references/index.js +2 -0
  12. package/esm/src/ast/references/java.d.ts +1 -0
  13. package/esm/src/ast/references/java.d.ts.map +1 -1
  14. package/esm/src/ast/references/java.js +1 -0
  15. package/esm/src/ast/references/kotlinx.d.ts +5 -0
  16. package/esm/src/ast/references/kotlinx.d.ts.map +1 -0
  17. package/esm/src/ast/references/kotlinx.js +6 -0
  18. package/esm/src/ast/references/spring-reactive.d.ts +9 -0
  19. package/esm/src/ast/references/spring-reactive.d.ts.map +1 -0
  20. package/esm/src/ast/references/spring-reactive.js +10 -0
  21. package/esm/src/ast/references/spring.d.ts +4 -0
  22. package/esm/src/ast/references/spring.d.ts.map +1 -1
  23. package/esm/src/ast/references/spring.js +6 -0
  24. package/esm/src/generators/index.d.ts +1 -0
  25. package/esm/src/generators/index.d.ts.map +1 -1
  26. package/esm/src/generators/index.js +1 -0
  27. package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts +1 -2
  28. package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
  29. package/esm/src/generators/services/spring-reactive-web-clients/args.d.ts +99 -0
  30. package/esm/src/generators/services/spring-reactive-web-clients/args.d.ts.map +1 -0
  31. package/esm/src/generators/services/spring-reactive-web-clients/args.js +1 -0
  32. package/esm/src/generators/services/spring-reactive-web-clients/index.d.ts +5 -0
  33. package/esm/src/generators/services/spring-reactive-web-clients/index.d.ts.map +1 -0
  34. package/esm/src/generators/services/spring-reactive-web-clients/index.js +4 -0
  35. package/esm/src/generators/services/spring-reactive-web-clients/models.d.ts +34 -0
  36. package/esm/src/generators/services/spring-reactive-web-clients/models.d.ts.map +1 -0
  37. package/esm/src/generators/services/spring-reactive-web-clients/models.js +8 -0
  38. package/esm/src/generators/services/spring-reactive-web-clients/refs.d.ts +5 -0
  39. package/esm/src/generators/services/spring-reactive-web-clients/refs.d.ts.map +1 -0
  40. package/esm/src/generators/services/spring-reactive-web-clients/refs.js +8 -0
  41. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.d.ts +46 -0
  42. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.d.ts.map +1 -0
  43. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.js +383 -0
  44. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.d.ts +23 -0
  45. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.d.ts.map +1 -0
  46. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.js +79 -0
  47. package/package.json +2 -2
  48. package/script/src/ast/nodes/call.d.ts.map +1 -1
  49. package/script/src/ast/nodes/call.js +11 -1
  50. package/script/src/ast/nodes/lambda-type.d.ts +2 -0
  51. package/script/src/ast/nodes/lambda-type.d.ts.map +1 -1
  52. package/script/src/ast/nodes/lambda-type.js +11 -4
  53. package/script/src/ast/nodes/lambda.d.ts.map +1 -1
  54. package/script/src/ast/nodes/lambda.js +10 -5
  55. package/script/src/ast/references/index.d.ts +2 -0
  56. package/script/src/ast/references/index.d.ts.map +1 -1
  57. package/script/src/ast/references/index.js +3 -1
  58. package/script/src/ast/references/java.d.ts +1 -0
  59. package/script/src/ast/references/java.d.ts.map +1 -1
  60. package/script/src/ast/references/java.js +2 -1
  61. package/script/src/ast/references/kotlinx.d.ts +5 -0
  62. package/script/src/ast/references/kotlinx.d.ts.map +1 -0
  63. package/script/src/ast/references/kotlinx.js +9 -0
  64. package/script/src/ast/references/spring-reactive.d.ts +9 -0
  65. package/script/src/ast/references/spring-reactive.d.ts.map +1 -0
  66. package/script/src/ast/references/spring-reactive.js +13 -0
  67. package/script/src/ast/references/spring.d.ts +4 -0
  68. package/script/src/ast/references/spring.d.ts.map +1 -1
  69. package/script/src/ast/references/spring.js +7 -1
  70. package/script/src/generators/index.d.ts +1 -0
  71. package/script/src/generators/index.d.ts.map +1 -1
  72. package/script/src/generators/index.js +1 -0
  73. package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts +1 -2
  74. package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
  75. package/script/src/generators/services/spring-reactive-web-clients/args.d.ts +99 -0
  76. package/script/src/generators/services/spring-reactive-web-clients/args.d.ts.map +1 -0
  77. package/script/src/generators/services/spring-reactive-web-clients/args.js +2 -0
  78. package/script/src/generators/services/spring-reactive-web-clients/index.d.ts +5 -0
  79. package/script/src/generators/services/spring-reactive-web-clients/index.d.ts.map +1 -0
  80. package/script/src/generators/services/spring-reactive-web-clients/index.js +8 -0
  81. package/script/src/generators/services/spring-reactive-web-clients/models.d.ts +34 -0
  82. package/script/src/generators/services/spring-reactive-web-clients/models.d.ts.map +1 -0
  83. package/script/src/generators/services/spring-reactive-web-clients/models.js +11 -0
  84. package/script/src/generators/services/spring-reactive-web-clients/refs.d.ts +5 -0
  85. package/script/src/generators/services/spring-reactive-web-clients/refs.d.ts.map +1 -0
  86. package/script/src/generators/services/spring-reactive-web-clients/refs.js +11 -0
  87. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.d.ts +46 -0
  88. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.d.ts.map +1 -0
  89. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.js +388 -0
  90. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.d.ts +23 -0
  91. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.d.ts.map +1 -0
  92. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.js +84 -0
  93. package/src/src/ast/nodes/call.ts +10 -1
  94. package/src/src/ast/nodes/lambda-type.ts +7 -2
  95. package/src/src/ast/nodes/lambda.ts +10 -4
  96. package/src/src/ast/references/index.ts +2 -0
  97. package/src/src/ast/references/java.ts +1 -0
  98. package/src/src/ast/references/kotlinx.ts +14 -0
  99. package/src/src/ast/references/spring-reactive.ts +33 -0
  100. package/src/src/ast/references/spring.ts +14 -0
  101. package/src/src/generators/index.ts +1 -0
  102. package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +1 -2
  103. package/src/src/generators/services/spring-reactive-web-clients/args.ts +101 -0
  104. package/src/src/generators/services/spring-reactive-web-clients/index.ts +4 -0
  105. package/src/src/generators/services/spring-reactive-web-clients/models.ts +62 -0
  106. package/src/src/generators/services/spring-reactive-web-clients/refs.ts +11 -0
  107. package/src/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.ts +572 -0
  108. package/src/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.ts +128 -0
@@ -0,0 +1,33 @@
1
+ package @PACKAGE_NAME@
2
+
3
+ import org.springframework.core.io.buffer.DataBuffer
4
+ import org.springframework.http.MediaType
5
+ import org.springframework.http.client.MultipartBodyBuilder
6
+ import org.springframework.http.codec.multipart.FilePart
7
+ import java.io.File
8
+
9
+ interface ApiRequestFile {
10
+ companion object {
11
+ fun from(file: File): ApiRequestFile =
12
+ object : ApiRequestFile {
13
+ override fun addToBuilder(builder: MultipartBodyBuilder) {
14
+ builder
15
+ .part("file", file)
16
+ .filename(file.name)
17
+ .contentType(MediaType.APPLICATION_OCTET_STREAM)
18
+ }
19
+ }
20
+
21
+ fun from(filePart: FilePart): ApiRequestFile =
22
+ object : ApiRequestFile {
23
+ override fun addToBuilder(builder: MultipartBodyBuilder) {
24
+ builder
25
+ .asyncPart("file", filePart.content(), DataBuffer::class.java)
26
+ .filename(filePart.filename())
27
+ .contentType(filePart.headers().contentType ?: MediaType.APPLICATION_OCTET_STREAM)
28
+ }
29
+ }
30
+ }
31
+
32
+ fun addToBuilder(builder: MultipartBodyBuilder)
33
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/nodes/call.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,cAAc,EAEnB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAe,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAElD,KAAK,OAAO,GAAG,KAAK,CAAC;AAErB,KAAK,OAAO,CAAC,QAAQ,SAAS,aAAa,EAAE,QAAQ,SAAS,MAAM,GAAG,KAAK,IAAI,cAAc,CAC5F,OAAO,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,EAC3C;IACE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC;IACvD,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IAC3E,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,C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AAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,SAC/D,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,YAC3B,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,KAChE,MAAM,CAAC,QAAQ,CAAqG,CAAC;AAExH,eAAO,MAAM,MAAM,EAAE,OAAO,UAAU,GAAG;IAAE,KAAK,EAAE,OAAO,YAAY,CAAA;CAEnE,CAAC"}
@@ -38,7 +38,17 @@ export class KtCall extends KtNode {
38
38
  writeKtNode(builder, this.arguments[0]);
39
39
  }
40
40
  else {
41
- writeKtNodes(builder, this.path, { separator: '.' });
41
+ if (this.path.length > 2) {
42
+ writeKtNode(builder, this.path[0]);
43
+ builder.ensureCurrentLineEmpty();
44
+ builder.indent((builder) => {
45
+ builder.append('.');
46
+ writeKtNodes(builder, this.path.slice(1), { separator: '\n.' });
47
+ });
48
+ }
49
+ else {
50
+ writeKtNodes(builder, this.path, { separator: '.' });
51
+ }
42
52
  if (this.arguments) {
43
53
  ktArgument.write(builder, this.arguments);
44
54
  }
@@ -7,11 +7,13 @@ type Options<TBuilder extends SourceBuilder, TInjects extends string = never> =
7
7
  extensionFor?: Nullable<KtType<TBuilder>>;
8
8
  parameters?: Nullable<Nullable<KtType<TBuilder>>[]>;
9
9
  returnType: KtType<TBuilder>;
10
+ suspend?: boolean;
10
11
  }>;
11
12
  export declare class KtLambdaType<TBuilder extends SourceBuilder, TInjects extends string = never> extends KtNode<TBuilder, TInjects | Injects> {
12
13
  extensionFor: KtType<TBuilder> | null;
13
14
  parameters: KtType<TBuilder>[];
14
15
  returnType: KtType<TBuilder>;
16
+ suspend: boolean;
15
17
  constructor(options: Options<TBuilder, TInjects>);
16
18
  protected onWrite(builder: TBuilder): void;
17
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lambda-type.d.ts","sourceRoot":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,MAAM,GAAG,KAAK,CAAE,SAAQ,MAAM,CACvG,QAAQ,EACR,QAAQ,GAAG,OAAO,CACnB;IACQ,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;gBAEZ,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC;cAQ7B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI;CA0BpD;AAED,QAAA,MAAM,gBAAgB,GAAI,QAAQ,SAAS,aAAa,cAC1C,OAAO,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,cAC/B,OAAO,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,YACjC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC,KAC7D,YAAY,CAAC,QAAQ,CAAuE,CAAC;AAEhG,eAAO,MAAM,YAAY,EAAE,OAAO,gBAAgB,GAAG;IAAE,KAAK,EAAE,OAAO,YAAY,CAAA;CAE/E,CAAC"}
@@ -4,7 +4,7 @@ import { writeKtNode, writeKtNodes } from '../utils/write-kt-node.js';
4
4
  import { ktParameter } from './parameter.js';
5
5
  export class KtLambdaType extends KtNode {
6
6
  constructor(options) {
7
- var _a, _b, _c;
7
+ var _a, _b, _c, _d;
8
8
  super(options);
9
9
  Object.defineProperty(this, "extensionFor", {
10
10
  enumerable: true,
@@ -24,11 +24,21 @@ export class KtLambdaType extends KtNode {
24
24
  writable: true,
25
25
  value: void 0
26
26
  });
27
+ Object.defineProperty(this, "suspend", {
28
+ enumerable: true,
29
+ configurable: true,
30
+ writable: true,
31
+ value: void 0
32
+ });
27
33
  this.extensionFor = (_a = options.extensionFor) !== null && _a !== void 0 ? _a : null;
28
34
  this.parameters = (_c = (_b = options.parameters) === null || _b === void 0 ? void 0 : _b.filter(notNullish)) !== null && _c !== void 0 ? _c : [];
29
35
  this.returnType = options.returnType;
36
+ this.suspend = (_d = options.suspend) !== null && _d !== void 0 ? _d : false;
30
37
  }
31
38
  onWrite(builder) {
39
+ if (this.suspend) {
40
+ builder.append('suspend ');
41
+ }
32
42
  if (this.extensionFor) {
33
43
  builder.append(this.inject.beforeExtensionFor);
34
44
  writeKtNode(builder, this.extensionFor);
@@ -39,9 +49,6 @@ export class KtLambdaType extends KtNode {
39
49
  if (this.parameters.length === 0) {
40
50
  builder.append('()');
41
51
  }
42
- else if (this.parameters.length === 1 && !this.extensionFor) {
43
- writeKtNode(builder, this.parameters[0]);
44
- }
45
52
  else {
46
53
  ktParameter.write(builder, this.parameters);
47
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lambda.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/nodes/lambda.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,QAAQ,EACb,KAAK,aAAa,EACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,KAAK,OAAO,GAAG,WAAW,GAAG,MAAM,CAAC;AAEpC,KAAK,OAAO,CAAC,QAAQ,SAAS,aAAa,EAAE,QAAQ,SAAS,MAAM,GAAG,KAAK,IAAI,cAAc,CAC5F,OAAO,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,EAC3C;IACE,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7D,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAA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AAK,IAAI,cAAc,CAC5F,OAAO,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,EAC3C;IACE,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IAC7D,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CACF,CAAC;AAEF,qBAAa,QAAQ,CAAC,QAAQ,SAAS,aAAa,EAAE,QAAQ,SAAS,MAAM,GAAG,KAAK,CAAE,SAAQ,MAAM,CACnG,QAAQ,EACR,QAAQ,GAAG,OAAO,CACnB;IACQ,SAAS,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC;IACxC,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;gBAEf,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC;cAO7B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,IAAI;CAyBpD;AAED,QAAA,MAAM,YAAY,GAAI,QAAQ,SAAS,aAAa,QAC5C,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,QAC9B,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,YACrB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC,KACtD,QAAQ,CAAC,QAAQ,CAAkE,CAAC;AAEvF,eAAO,MAAM,QAAQ,EAAE,OAAO,YAAY,GAAG;IAAE,KAAK,EAAE,OAAO,YAAY,CAAA;CAEvE,CAAC"}
@@ -31,16 +31,21 @@ export class KtLambda extends KtNode {
31
31
  const singleline = this.singleline || !this.body;
32
32
  builder.parenthesize('{}', (b) => {
33
33
  if (this.arguments.length > 0) {
34
- b.append(this.inject.beforeArguments);
34
+ b.append(' ', this.inject.beforeArguments);
35
35
  writeKtNodes(b, this.arguments, { separator: ', ' });
36
36
  b.append(this.inject.afterArguments);
37
- b.append(' -> ');
37
+ b.append(' ->');
38
38
  }
39
- if (!singleline)
40
- b.appendLine();
39
+ b.append(singleline ? ' ' : '\n');
41
40
  b.append(this.inject.beforeBody, this.body, this.inject.afterBody);
42
- if (!singleline)
41
+ if (singleline) {
42
+ if (!b.isCurrentLineEmpty) {
43
+ b.append(' ');
44
+ }
45
+ }
46
+ else {
43
47
  b.ensureCurrentLineEmpty();
48
+ }
44
49
  });
45
50
  }
46
51
  }
@@ -2,8 +2,10 @@ export * as jackson from './jackson.js';
2
2
  export * as jakarta from './jakarta.js';
3
3
  export * as java from './java.js';
4
4
  export * from './kotlin.js';
5
+ export * as kotlinx from './kotlinx.js';
5
6
  export * as okhttp3 from './okhttp3.js';
6
7
  export * as reactor from './reactor.js';
8
+ export * as springReactive from './spring-reactive.js';
7
9
  export * as spring from './spring.js';
8
10
  export * as swagger from './swagger.js';
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC"}
@@ -2,7 +2,9 @@ export * as jackson from './jackson.js';
2
2
  export * as jakarta from './jakarta.js';
3
3
  export * as java from './java.js';
4
4
  export * from './kotlin.js';
5
+ export * as kotlinx from './kotlinx.js';
5
6
  export * as okhttp3 from './okhttp3.js';
6
7
  export * as reactor from './reactor.js';
8
+ export * as springReactive from './spring-reactive.js';
7
9
  export * as spring from './spring.js';
8
10
  export * as swagger from './swagger.js';
@@ -4,6 +4,7 @@ export declare const ioException: KtReferenceFactory;
4
4
  export declare const illegalStateException: KtReferenceFactory;
5
5
  export declare const system: KtReferenceFactory;
6
6
  export declare const unsupportedOperationException: KtReferenceFactory;
7
+ export declare const void_: KtReferenceFactory;
7
8
  export declare const offsetDateTime: KtReferenceFactory;
8
9
  export declare const optional: KtGenericReferenceFactory<1>;
9
10
  //# sourceMappingURL=java.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"java.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/java.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,IAAI,EAAE,kBAA2D,CAAC;AAC/E,eAAO,MAAM,WAAW,EAAE,kBAAkE,CAAC;AAG7F,eAAO,MAAM,qBAAqB,EAAE,kBAA8E,CAAC;AACnH,eAAO,MAAM,MAAM,EAAE,kBAA+D,CAAC;AACrF,eAAO,MAAM,6BAA6B,EAAE,kBAG3C,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,kBAAuE,CAAC;AAGrG,eAAO,MAAM,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAA0D,CAAC"}
1
+ {"version":3,"file":"java.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/java.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,IAAI,EAAE,kBAA2D,CAAC;AAC/E,eAAO,MAAM,WAAW,EAAE,kBAAkE,CAAC;AAG7F,eAAO,MAAM,qBAAqB,EAAE,kBAA8E,CAAC;AACnH,eAAO,MAAM,MAAM,EAAE,kBAA+D,CAAC;AACrF,eAAO,MAAM,6BAA6B,EAAE,kBAG3C,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,kBAA6D,CAAC;AAGlF,eAAO,MAAM,cAAc,EAAE,kBAAuE,CAAC;AAGrG,eAAO,MAAM,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAA0D,CAAC"}
@@ -6,6 +6,7 @@ export const ioException = ktReference.factory('IOException', 'java.io');
6
6
  export const illegalStateException = ktReference.factory('IllegalStateException', 'java.lang');
7
7
  export const system = ktReference.factory('System', 'java.lang');
8
8
  export const unsupportedOperationException = ktReference.factory('UnsupportedOperationException', 'java.lang');
9
+ export const void_ = ktReference.factory('Void', 'java.lang');
9
10
  // java.time
10
11
  export const offsetDateTime = ktReference.factory('OffsetDateTime', 'java.time');
11
12
  // java.util
@@ -0,0 +1,5 @@
1
+ import { type KtGenericReferenceFactory } from '../nodes/reference.js';
2
+ export declare const awaitFirst: KtGenericReferenceFactory<1>;
3
+ export declare const awaitFirstOrNull: KtGenericReferenceFactory<1>;
4
+ export declare const mono: KtGenericReferenceFactory<1>;
5
+ //# sourceMappingURL=kotlinx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kotlinx.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/kotlinx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,MAAM,uBAAuB,CAAC;AAGpF,eAAO,MAAM,UAAU,EAAE,yBAAyB,CAAC,CAAC,CAGnD,CAAC;AACF,eAAO,MAAM,gBAAgB,EAAE,yBAAyB,CAAC,CAAC,CAGzD,CAAC;AAGF,eAAO,MAAM,IAAI,EAAE,yBAAyB,CAAC,CAAC,CAAoE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ktReference } from '../nodes/reference.js';
2
+ // kotlinx.coroutines.reactive
3
+ export const awaitFirst = ktReference.genericFactory('awaitFirst', 'kotlinx.coroutines.reactive');
4
+ export const awaitFirstOrNull = ktReference.genericFactory('awaitFirstOrNull', 'kotlinx.coroutines.reactive');
5
+ // kotlinx.coroutines.reactor
6
+ export const mono = ktReference.genericFactory('mono', 'kotlinx.coroutines.reactor');
@@ -0,0 +1,9 @@
1
+ import { type KtGenericReferenceFactory, type KtReferenceFactory } from '../nodes/reference.js';
2
+ export declare const bodyInserters: KtReferenceFactory;
3
+ export declare const webClient: KtReferenceFactory;
4
+ export declare const clientResponse: KtReferenceFactory;
5
+ export declare const requestHeadersSpec: KtGenericReferenceFactory<1>;
6
+ export declare const toEntity: KtGenericReferenceFactory<1>;
7
+ export declare const awaitBody: KtGenericReferenceFactory<1>;
8
+ export declare const awaitBodilessEntity: KtReferenceFactory;
9
+ //# sourceMappingURL=spring-reactive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spring-reactive.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/spring-reactive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,yBAAyB,CAAC,CAAC,CAG3D,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,yBAAyB,CAAC,CAAC,CAGjD,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,yBAAyB,CAAC,CAAC,CAGlD,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,kBAGjC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ktReference } from '../nodes/reference.js';
2
+ // org.springframework.web.reactive.function
3
+ export const bodyInserters = ktReference.factory('BodyInserters', 'org.springframework.web.reactive.function');
4
+ // org.springframework.web.reactive.function.client
5
+ export const webClient = ktReference.factory('WebClient', 'org.springframework.web.reactive.function.client');
6
+ export const clientResponse = ktReference.factory('ClientResponse', 'org.springframework.web.reactive.function.client');
7
+ export const requestHeadersSpec = ktReference.genericFactory('RequestHeadersSpec', 'org.springframework.web.reactive.function.client.WebClient');
8
+ export const toEntity = ktReference.genericFactory('toEntity', 'org.springframework.web.reactive.function.client');
9
+ export const awaitBody = ktReference.genericFactory('awaitBody', 'org.springframework.web.reactive.function.client');
10
+ export const awaitBodilessEntity = ktReference.factory('awaitBodilessEntity', 'org.springframework.web.reactive.function.client');
@@ -1,7 +1,10 @@
1
1
  import { type KtGenericReferenceFactory, type KtReferenceFactory } from '../nodes/reference.js';
2
2
  export declare const autowired: KtReferenceFactory;
3
3
  export declare const httpStatus: KtReferenceFactory;
4
+ export declare const httpMethod: KtReferenceFactory;
4
5
  export declare const responseEntity: KtGenericReferenceFactory<1>;
6
+ export declare const mediaType: KtReferenceFactory;
7
+ export declare const multipartBodyBuilder: KtReferenceFactory;
5
8
  export declare const filePart: KtReferenceFactory;
6
9
  export declare const controller: KtReferenceFactory;
7
10
  export declare const multiValueMap: KtGenericReferenceFactory<2>;
@@ -15,4 +18,5 @@ export declare const requestParam: KtReferenceFactory;
15
18
  export declare const requestPart: KtReferenceFactory;
16
19
  export declare const requestHeader: KtReferenceFactory;
17
20
  export declare const nativeWebRequest: KtReferenceFactory;
21
+ export declare const uriComponentsBuilder: KtReferenceFactory;
18
22
  //# sourceMappingURL=spring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"spring.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/spring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,kBAAkF,CAAC;AAC5G,eAAO,MAAM,cAAc,EAAE,yBAAyB,CAAC,CAAC,CAGvD,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,kBAAgG,CAAC;AAGxH,eAAO,MAAM,UAAU,EAAE,kBAAwF,CAAC;AAGlH,eAAO,MAAM,aAAa,EAAE,yBAAyB,CAAC,CAAC,CAGtD,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,CAAC,CAG5D,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC"}
1
+ {"version":3,"file":"spring.d.ts","sourceRoot":"","sources":["../../../../src/src/ast/references/spring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,yBAAyB,EAAe,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG7G,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,kBAAkF,CAAC;AAC5G,eAAO,MAAM,UAAU,EAAE,kBAAkF,CAAC;AAC5G,eAAO,MAAM,cAAc,EAAE,yBAAyB,CAAC,CAAC,CAGvD,CAAC;AACF,eAAO,MAAM,SAAS,EAAE,kBAAiF,CAAC;AAG1G,eAAO,MAAM,oBAAoB,EAAE,kBAGlC,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,kBAAgG,CAAC;AAGxH,eAAO,MAAM,UAAU,EAAE,kBAAwF,CAAC;AAGlH,eAAO,MAAM,aAAa,EAAE,yBAAyB,CAAC,CAAC,CAGtD,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,CAAC,CAG5D,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,kBAGvB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,cAAc,EAAE,kBAG5B,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AACF,eAAO,MAAM,YAAY,EAAE,kBAG1B,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,kBAGzB,CAAC;AACF,eAAO,MAAM,aAAa,EAAE,kBAG3B,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,kBAG9B,CAAC;AAGF,eAAO,MAAM,oBAAoB,EAAE,kBAGlC,CAAC"}
@@ -3,7 +3,11 @@ import { ktReference } from '../nodes/reference.js';
3
3
  export const autowired = ktReference.factory('Autowired', 'org.springframework.beans.factory.annotation');
4
4
  // org.springframework.http
5
5
  export const httpStatus = ktReference.factory('HttpStatus', 'org.springframework.http');
6
+ export const httpMethod = ktReference.factory('HttpMethod', 'org.springframework.http');
6
7
  export const responseEntity = ktReference.genericFactory('ResponseEntity', 'org.springframework.http');
8
+ export const mediaType = ktReference.factory('MediaType', 'org.springframework.http');
9
+ // org.springframework.http.client
10
+ export const multipartBodyBuilder = ktReference.factory('MultipartBodyBuilder', 'org.springframework.http.client');
7
11
  // org.springframework.http.codec.multipart
8
12
  export const filePart = ktReference.factory('FilePart', 'org.springframework.http.codec.multipart');
9
13
  // org.springframework.stereotype
@@ -23,3 +27,5 @@ export const requestPart = ktReference.factory('RequestPart', 'org.springframewo
23
27
  export const requestHeader = ktReference.factory('RequestHeader', 'org.springframework.web.bind.annotation');
24
28
  // org.springframework.web.context.request
25
29
  export const nativeWebRequest = ktReference.factory('NativeWebRequest', 'org.springframework.web.context.request');
30
+ // org.springframework.web.util
31
+ export const uriComponentsBuilder = ktReference.factory('UriComponentsBuilder', 'org.springframework.web.util');
@@ -2,4 +2,5 @@ export * from './file-generator.js';
2
2
  export * from './models/index.js';
3
3
  export * from './services/okhttp3-clients/index.js';
4
4
  export * from './services/spring-controllers/index.js';
5
+ export * from './services/spring-reactive-web-clients/index.js';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iDAAiD,CAAC"}
@@ -2,3 +2,4 @@ export * from './file-generator.js';
2
2
  export * from './models/index.js';
3
3
  export * from './services/okhttp3-clients/index.js';
4
4
  export * from './services/spring-controllers/index.js';
5
+ export * from './services/spring-reactive-web-clients/index.js';
@@ -1,6 +1,5 @@
1
1
  import { type ApiSchema, type AppendValueGroup, type MaybePromise, SourceBuilder } from '@goast/core';
2
2
  import { kt } from '../../../ast/index.js';
3
- import type { KotlinImport } from '../../../common-results.js';
4
3
  import { KotlinFileBuilder } from '../../../file-builder.js';
5
4
  import type { ApiParameterWithMultipartInfo } from '../../../types.js';
6
5
  import { KotlinFileGenerator } from '../../file-generator.js';
@@ -13,7 +12,7 @@ export interface KotlinOkHttp3Generator<TOutput extends Output = Output> {
13
12
  generate(ctx: Context): MaybePromise<TOutput>;
14
13
  }
15
14
  export declare class DefaultKotlinOkHttp3Generator extends KotlinFileGenerator<Context, Output> implements KotlinOkHttp3Generator {
16
- generate(ctx: KotlinOkHttp3ClientGeneratorContext): MaybePromise<KotlinImport>;
15
+ generate(ctx: KotlinOkHttp3ClientGeneratorContext): MaybePromise<Output>;
17
16
  protected getClientFileContent(ctx: Context, _args: Args.GetClientFileContent): AppendValueGroup<Builder>;
18
17
  protected getClientClass(ctx: Context, _args: Args.GetClientClass): kt.Class<Builder>;
19
18
  protected getClientCompanionObject(ctx: Context, _args: Args.GetClientCompanionObject): kt.Object<Builder>;
@@ -1 +1 @@
1
- {"version":3,"file":"okhttp3-client-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EAEjB,aAAa,EAEd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAE3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iCAAiC,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO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gB3B"}
1
+ {"version":3,"file":"okhttp3-client-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EAEjB,aAAa,EAEd,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iCAAiC,IAAI,IAAI,EAAE,MAAM,YAAY,CAAC;AAC5E,OAAO,KAAK,EAAE,mCAAmC,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAE3G,KAAK,OAAO,GAAG,mCAAmC,CAAC;AACnD,KAAK,MAAM,GAAG,kCAAkC,CAAC;AACjD,KAAK,OAAO,GAAG,iBAAiB,CAAC;AAEjC,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACrE,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;CAC/C;AAED,qBAAa,6BAA8B,SAAQ,mBAAmB,CAAC,OAAO,EAAE,MAAM,CACpF,YAAW,sBAAsB;IAC1B,QAAQ,CAAC,GAAG,EAAE,mCAAmC,GAAG,YAAY,CAAC,MAAM,CAAC;IAgB/E,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,oBAAoB,GAAG,gBAAgB,CAAC,OAAO,CAAC;IAIzG,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,KAAK,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mDtG,SAAS,CAAC,uBAAuB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,uBAAuB,GAAG,MAAM;IAU3F,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,GAAG,MAAM;IAQpE,SAAS,CAAC,eAAe,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,eAAe,GAAG,MAAM;IAK3E,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,GAAG,MAAM;IAKnE,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,gBAAgB,GAAG,MAAM;IAI9E,OAAO,CAAC,kBAAkB;CAgB3B"}
@@ -0,0 +1,99 @@
1
+ import type { ApiEndpoint, ApiParameter, ApiSchema, SourceBuilder } from '@goast/core';
2
+ import type { kt } from '../../../ast/index.js';
3
+ import type { ApiParameterWithMultipartInfo } from '../../../types.js';
4
+ export type GetClientFileContent = object;
5
+ export type GetRequestsObject = object;
6
+ export type GetEndpointMembers = {
7
+ endpoint: ApiEndpoint;
8
+ parameters: ApiParameterWithMultipartInfo[];
9
+ };
10
+ export type GetEndpointFunctionName = {
11
+ endpoint: ApiEndpoint;
12
+ };
13
+ export type GetEndpointFunction = {
14
+ endpoint: ApiEndpoint;
15
+ parameters: ApiParameterWithMultipartInfo[];
16
+ responseSchema: ApiSchema | undefined;
17
+ };
18
+ export type GetEndpointFunctionBody = {
19
+ endpoint: ApiEndpoint;
20
+ parameters: ApiParameterWithMultipartInfo[];
21
+ responseSchema: ApiSchema | undefined;
22
+ };
23
+ export type GetEndpointRequestFunctionName = {
24
+ endpoint: ApiEndpoint;
25
+ };
26
+ export type GetEndpointRequestFunction = {
27
+ endpoint: ApiEndpoint;
28
+ parameters: ApiParameterWithMultipartInfo[];
29
+ responseSchema: ApiSchema | undefined;
30
+ };
31
+ export type GetEndpointRequestFunctionBody = {
32
+ endpoint: ApiEndpoint;
33
+ parameters: ApiParameterWithMultipartInfo[];
34
+ responseSchema: ApiSchema | undefined;
35
+ };
36
+ export type GetEndpointFunctionWithHandler = {
37
+ endpoint: ApiEndpoint;
38
+ parameters: ApiParameterWithMultipartInfo[];
39
+ responseSchema: ApiSchema | undefined;
40
+ };
41
+ export type GetEndpointFunctionWithHandlerBody = {
42
+ endpoint: ApiEndpoint;
43
+ parameters: ApiParameterWithMultipartInfo[];
44
+ responseSchema: ApiSchema | undefined;
45
+ };
46
+ export type GetEndpointUriFunctionName = {
47
+ endpoint: ApiEndpoint;
48
+ };
49
+ export type GetEndpointUriFunction = {
50
+ endpoint: ApiEndpoint;
51
+ parameters: ApiParameterWithMultipartInfo[];
52
+ };
53
+ export type GetEndpointUriFunctionBody = {
54
+ endpoint: ApiEndpoint;
55
+ parameters: ApiParameterWithMultipartInfo[];
56
+ };
57
+ export type GetParameterToString = {
58
+ endpoint: ApiEndpoint;
59
+ parameter: ApiParameterWithMultipartInfo;
60
+ };
61
+ export type GetAdditionalClientMembers = object;
62
+ export type GetParameterType = {
63
+ endpoint: ApiEndpoint;
64
+ parameter: ApiParameterWithMultipartInfo;
65
+ };
66
+ export type GetRequestBodyType = {
67
+ endpoint: ApiEndpoint;
68
+ };
69
+ export type GetParameterDefaultValue = {
70
+ endpoint: ApiEndpoint;
71
+ parameter: ApiParameter;
72
+ };
73
+ export type GetTypeUsage<TBuilder extends SourceBuilder> = {
74
+ schema: ApiSchema | undefined;
75
+ nullable?: boolean;
76
+ fallback?: kt.Type<TBuilder>;
77
+ };
78
+ export type GetPackageName = object;
79
+ export type GetResponseSchema = {
80
+ endpoint: ApiEndpoint;
81
+ };
82
+ export type GetSchemaType = {
83
+ schema: ApiSchema | undefined;
84
+ };
85
+ export type GetAllParameters = {
86
+ endpoint: ApiEndpoint;
87
+ };
88
+ export type GetRequestBodyParamName = {
89
+ endpoint: ApiEndpoint;
90
+ };
91
+ export type GetBasePath = object;
92
+ export type GetEndpointPath = {
93
+ endpoint: ApiEndpoint;
94
+ };
95
+ export type GetFilePath = {
96
+ packageName: string;
97
+ };
98
+ export type GetRequestsObjectName = object;
99
+ //# sourceMappingURL=args.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-reactive-web-clients/args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAEvE,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,6BAA6B,EAAE,CAAA;CAAE,CAAC;AAExG,MAAM,MAAM,uBAAuB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,6BAA6B,EAAE,CAAC;IAC5C,cAAc,EAAE,SAAS,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,WAAW,CAAC;IACtB,UAAU,EAAE,6BAA6B,EAAE,CAAC;IAC5C,cAAc,EAAE,SAAS,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAEvE,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,WAAW,CAA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M,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,WAAW,CAAC;IACtB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,aAAa,IAAI;IACzD,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,EAAE,SAAS,GAAG,SAAS,CAAA;CAAE,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * as DefaultKotlinSpringReactiveWebClientGeneratorArgs from './args.js';
2
+ export * from './models.js';
3
+ export * from './spring-reactive-web-client-generator.js';
4
+ export * from './spring-reactive-web-clients-generator.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-reactive-web-clients/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iDAAiD,MAAM,WAAW,CAAC;AAC/E,cAAc,aAAa,CAAC;AAC5B,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * as DefaultKotlinSpringReactiveWebClientGeneratorArgs from './args.js';
2
+ export * from './models.js';
3
+ export * from './spring-reactive-web-client-generator.js';
4
+ export * from './spring-reactive-web-clients-generator.js';
@@ -0,0 +1,34 @@
1
+ import type { ApiEndpoint, ApiService, DefaultGenerationProviderConfig, OpenApiServicesGenerationProviderContext } from '@goast/core';
2
+ import type { KotlinImport } from '../../../common-results.js';
3
+ import { type KotlinGeneratorConfig } from '../../../config.js';
4
+ import type { KotlinModelsGeneratorOutput } from '../../models/index.js';
5
+ import type { getReferenceFactories } from './refs.js';
6
+ export type KotlinSpringReactiveWebClientsGeneratorConfig = KotlinGeneratorConfig & {
7
+ packageName: string;
8
+ packageSuffix: string | ((service?: ApiService) => string);
9
+ infrastructurePackageName: string | {
10
+ mode: 'append-package-name' | 'append-full-package-name' | 'replace';
11
+ value: string;
12
+ };
13
+ basePath?: string | RegExp | ((basePath: string, service: ApiService) => string);
14
+ pathModifier?: RegExp | ((path: string, endpoint: ApiEndpoint) => string);
15
+ serializerJsonInclude: 'always' | 'non-null' | 'non-absent' | 'non-default' | 'non-empty' | 'use-defaults';
16
+ };
17
+ export declare const defaultKotlinSpringReactiveWebClientsGeneratorConfig: DefaultGenerationProviderConfig<KotlinSpringReactiveWebClientsGeneratorConfig>;
18
+ export type KotlinSpringReactiveWebClientsGeneratorInput = KotlinModelsGeneratorOutput;
19
+ export type KotlinSpringReactiveWebClientsGeneratorOutput = {
20
+ kotlin: {
21
+ clients: {
22
+ [serviceId: string]: KotlinSpringReactiveWebClientGeneratorOutput;
23
+ };
24
+ };
25
+ };
26
+ export type KotlinSpringReactiveWebClientGeneratorOutput = KotlinImport;
27
+ export type KotlinSpringReactiveWebClientsGeneratorContext = OpenApiServicesGenerationProviderContext<KotlinSpringReactiveWebClientsGeneratorInput, KotlinSpringReactiveWebClientsGeneratorOutput, KotlinSpringReactiveWebClientsGeneratorConfig, KotlinSpringReactiveWebClientGeneratorOutput> & {
28
+ infrastructurePackageName: string;
29
+ refs: ReturnType<typeof getReferenceFactories>;
30
+ };
31
+ export type KotlinSpringReactiveWebClientGeneratorContext = KotlinSpringReactiveWebClientsGeneratorContext & {
32
+ service: ApiService;
33
+ };
34
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-reactive-web-clients/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,+BAA+B,EAC/B,wCAAwC,EACzC,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAgC,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC9F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEvD,MAAM,MAAM,6CAA6C,GAAG,qBAAqB,GAAG;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC,CAAC;IAC3D,yBAAyB,EACrB,MAAM,GACN;QAAE,IAAI,EAAE,qBAAqB,GAAG,0BAA0B,GAAG,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5F,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,KAAK,MAAM,CAAC,CAAC;IACjF,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,KAAK,MAAM,CAAC,CAAC;IAC1E,qBAAqB,EAAE,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,aAAa,GAAG,WAAW,GAAG,cAAc,CAAC;CAC5G,CAAC;AAEF,eAAO,MAAM,oDAAoD,EAAE,+BAA+B,CAChG,6CAA6C,CAQ9C,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG,2BAA2B,CAAC;AAEvF,MAAM,MAAM,6CAA6C,GAAG;IAC1D,MAAM,EAAE;QACN,OAAO,EAAE;YACP,CAAC,SAAS,EAAE,MAAM,GAAG,4CAA4C,CAAC;SACnE,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG,YAAY,CAAC;AAExE,MAAM,MAAM,8CAA8C,GACtD,wCAAwC,CACxC,4CAA4C,EAC5C,6CAA6C,EAC7C,6CAA6C,EAC7C,4CAA4C,CAC7C,GACC;IACA,yBAAyB,EAAE,MAAM,CAAC;IAClC,IAAI,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;CAChD,CAAC;AAEJ,MAAM,MAAM,6CAA6C,GAAG,8CAA8C,GAAG;IAC3G,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { defaultKotlinGeneratorConfig } from '../../../config.js';
2
+ export const defaultKotlinSpringReactiveWebClientsGeneratorConfig = {
3
+ ...defaultKotlinGeneratorConfig,
4
+ packageName: 'com.openapi.generated',
5
+ packageSuffix: '.api.client',
6
+ infrastructurePackageName: { mode: 'append-full-package-name', value: '.infrastructure' },
7
+ serializerJsonInclude: 'non-absent',
8
+ };
@@ -0,0 +1,5 @@
1
+ import { kt } from '../../../ast/index.js';
2
+ export declare function getReferenceFactories(infrastructurePackageName: string): {
3
+ apiRequestFile: kt.ReferenceFactory;
4
+ };
5
+ //# sourceMappingURL=refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-reactive-web-clients/refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,uBAAuB,CAAC;AAG3C,wBAAgB,qBAAqB,CAAC,yBAAyB,EAAE,MAAM,GAAG;IACxE,cAAc,EAAE,EAAE,CAAC,gBAAgB,CAAC;CACrC,CAKA"}
@@ -0,0 +1,8 @@
1
+ import { kt } from '../../../ast/index.js';
2
+ // See packages/kotlin/assets/client/spring-reactive-web-clients for reference
3
+ export function getReferenceFactories(infrastructurePackageName) {
4
+ return {
5
+ // ApiRequestFile.kt
6
+ apiRequestFile: kt.reference.factory('ApiRequestFile', infrastructurePackageName),
7
+ };
8
+ }