@goast/kotlin 0.4.18-beta6 → 0.4.18-springwebclient1

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 (92) 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 -5
  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
@@ -7,7 +7,7 @@ const write_kt_node_js_1 = require("../utils/write-kt-node.js");
7
7
  const parameter_js_1 = require("./parameter.js");
8
8
  class KtLambdaType extends node_js_1.KtNode {
9
9
  constructor(options) {
10
- var _a, _b, _c;
10
+ var _a, _b, _c, _d;
11
11
  super(options);
12
12
  Object.defineProperty(this, "extensionFor", {
13
13
  enumerable: true,
@@ -27,11 +27,21 @@ class KtLambdaType extends node_js_1.KtNode {
27
27
  writable: true,
28
28
  value: void 0
29
29
  });
30
+ Object.defineProperty(this, "suspend", {
31
+ enumerable: true,
32
+ configurable: true,
33
+ writable: true,
34
+ value: void 0
35
+ });
30
36
  this.extensionFor = (_a = options.extensionFor) !== null && _a !== void 0 ? _a : null;
31
37
  this.parameters = (_c = (_b = options.parameters) === null || _b === void 0 ? void 0 : _b.filter(core_1.notNullish)) !== null && _c !== void 0 ? _c : [];
32
38
  this.returnType = options.returnType;
39
+ this.suspend = (_d = options.suspend) !== null && _d !== void 0 ? _d : false;
33
40
  }
34
41
  onWrite(builder) {
42
+ if (this.suspend) {
43
+ builder.append('suspend ');
44
+ }
35
45
  if (this.extensionFor) {
36
46
  builder.append(this.inject.beforeExtensionFor);
37
47
  (0, write_kt_node_js_1.writeKtNode)(builder, this.extensionFor);
@@ -42,9 +52,6 @@ class KtLambdaType extends node_js_1.KtNode {
42
52
  if (this.parameters.length === 0) {
43
53
  builder.append('()');
44
54
  }
45
- else if (this.parameters.length === 1 && !this.extensionFor) {
46
- (0, write_kt_node_js_1.writeKtNode)(builder, this.parameters[0]);
47
- }
48
55
  else {
49
56
  parameter_js_1.ktParameter.write(builder, this.parameters);
50
57
  }
@@ -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,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;CAmBpD;AA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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"}
@@ -34,16 +34,21 @@ class KtLambda extends node_js_1.KtNode {
34
34
  const singleline = this.singleline || !this.body;
35
35
  builder.parenthesize('{}', (b) => {
36
36
  if (this.arguments.length > 0) {
37
- b.append(this.inject.beforeArguments);
37
+ b.append(' ', this.inject.beforeArguments);
38
38
  (0, write_kt_node_js_1.writeKtNodes)(b, this.arguments, { separator: ', ' });
39
39
  b.append(this.inject.afterArguments);
40
- b.append(' -> ');
40
+ b.append(' ->');
41
41
  }
42
- if (!singleline)
43
- b.appendLine();
42
+ b.append(singleline ? ' ' : '\n');
44
43
  b.append(this.inject.beforeBody, this.body, this.inject.afterBody);
45
- if (!singleline)
44
+ if (singleline) {
45
+ if (!b.isCurrentLineEmpty) {
46
+ b.append(' ');
47
+ }
48
+ }
49
+ else {
46
50
  b.ensureCurrentLineEmpty();
51
+ }
47
52
  });
48
53
  }
49
54
  }
@@ -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"}
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.swagger = exports.spring = exports.reactor = exports.okhttp3 = exports.java = exports.jakarta = exports.jackson = void 0;
3
+ exports.swagger = exports.spring = exports.springReactive = exports.reactor = exports.okhttp3 = exports.kotlinx = exports.java = exports.jakarta = exports.jackson = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  exports.jackson = tslib_1.__importStar(require("./jackson.js"));
6
6
  exports.jakarta = tslib_1.__importStar(require("./jakarta.js"));
7
7
  exports.java = tslib_1.__importStar(require("./java.js"));
8
8
  tslib_1.__exportStar(require("./kotlin.js"), exports);
9
+ exports.kotlinx = tslib_1.__importStar(require("./kotlinx.js"));
9
10
  exports.okhttp3 = tslib_1.__importStar(require("./okhttp3.js"));
10
11
  exports.reactor = tslib_1.__importStar(require("./reactor.js"));
12
+ exports.springReactive = tslib_1.__importStar(require("./spring-reactive.js"));
11
13
  exports.spring = tslib_1.__importStar(require("./spring.js"));
12
14
  exports.swagger = tslib_1.__importStar(require("./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"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.optional = exports.offsetDateTime = exports.unsupportedOperationException = exports.system = exports.illegalStateException = exports.ioException = exports.file = void 0;
3
+ exports.optional = exports.offsetDateTime = exports.void_ = exports.unsupportedOperationException = exports.system = exports.illegalStateException = exports.ioException = exports.file = void 0;
4
4
  const reference_js_1 = require("../nodes/reference.js");
5
5
  // java.io
6
6
  exports.file = reference_js_1.ktReference.factory('File', 'java.io');
@@ -9,6 +9,7 @@ exports.ioException = reference_js_1.ktReference.factory('IOException', 'java.io
9
9
  exports.illegalStateException = reference_js_1.ktReference.factory('IllegalStateException', 'java.lang');
10
10
  exports.system = reference_js_1.ktReference.factory('System', 'java.lang');
11
11
  exports.unsupportedOperationException = reference_js_1.ktReference.factory('UnsupportedOperationException', 'java.lang');
12
+ exports.void_ = reference_js_1.ktReference.factory('Void', 'java.lang');
12
13
  // java.time
13
14
  exports.offsetDateTime = reference_js_1.ktReference.factory('OffsetDateTime', 'java.time');
14
15
  // 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,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mono = exports.awaitFirstOrNull = exports.awaitFirst = void 0;
4
+ const reference_js_1 = require("../nodes/reference.js");
5
+ // kotlinx.coroutines.reactive
6
+ exports.awaitFirst = reference_js_1.ktReference.genericFactory('awaitFirst', 'kotlinx.coroutines.reactive');
7
+ exports.awaitFirstOrNull = reference_js_1.ktReference.genericFactory('awaitFirstOrNull', 'kotlinx.coroutines.reactive');
8
+ // kotlinx.coroutines.reactor
9
+ exports.mono = reference_js_1.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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.awaitBodilessEntity = exports.awaitBody = exports.toEntity = exports.requestHeadersSpec = exports.clientResponse = exports.webClient = exports.bodyInserters = void 0;
4
+ const reference_js_1 = require("../nodes/reference.js");
5
+ // org.springframework.web.reactive.function
6
+ exports.bodyInserters = reference_js_1.ktReference.factory('BodyInserters', 'org.springframework.web.reactive.function');
7
+ // org.springframework.web.reactive.function.client
8
+ exports.webClient = reference_js_1.ktReference.factory('WebClient', 'org.springframework.web.reactive.function.client');
9
+ exports.clientResponse = reference_js_1.ktReference.factory('ClientResponse', 'org.springframework.web.reactive.function.client');
10
+ exports.requestHeadersSpec = reference_js_1.ktReference.genericFactory('RequestHeadersSpec', 'org.springframework.web.reactive.function.client.WebClient');
11
+ exports.toEntity = reference_js_1.ktReference.genericFactory('toEntity', 'org.springframework.web.reactive.function.client');
12
+ exports.awaitBody = reference_js_1.ktReference.genericFactory('awaitBody', 'org.springframework.web.reactive.function.client');
13
+ exports.awaitBodilessEntity = reference_js_1.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;AAG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vB,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"}
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nativeWebRequest = exports.requestHeader = exports.requestPart = exports.requestParam = exports.requestMethod = exports.requestMapping = exports.requestBody = exports.pathVariable = exports.validated = exports.linkedMultiValueMap = exports.multiValueMap = exports.controller = exports.filePart = exports.responseEntity = exports.httpStatus = exports.autowired = void 0;
3
+ exports.uriComponentsBuilder = exports.nativeWebRequest = exports.requestHeader = exports.requestPart = exports.requestParam = exports.requestMethod = exports.requestMapping = exports.requestBody = exports.pathVariable = exports.validated = exports.linkedMultiValueMap = exports.multiValueMap = exports.controller = exports.filePart = exports.multipartBodyBuilder = exports.mediaType = exports.responseEntity = exports.httpMethod = exports.httpStatus = exports.autowired = void 0;
4
4
  const reference_js_1 = require("../nodes/reference.js");
5
5
  // org.springframework.beans.factory.annotation
6
6
  exports.autowired = reference_js_1.ktReference.factory('Autowired', 'org.springframework.beans.factory.annotation');
7
7
  // org.springframework.http
8
8
  exports.httpStatus = reference_js_1.ktReference.factory('HttpStatus', 'org.springframework.http');
9
+ exports.httpMethod = reference_js_1.ktReference.factory('HttpMethod', 'org.springframework.http');
9
10
  exports.responseEntity = reference_js_1.ktReference.genericFactory('ResponseEntity', 'org.springframework.http');
11
+ exports.mediaType = reference_js_1.ktReference.factory('MediaType', 'org.springframework.http');
12
+ // org.springframework.http.client
13
+ exports.multipartBodyBuilder = reference_js_1.ktReference.factory('MultipartBodyBuilder', 'org.springframework.http.client');
10
14
  // org.springframework.http.codec.multipart
11
15
  exports.filePart = reference_js_1.ktReference.factory('FilePart', 'org.springframework.http.codec.multipart');
12
16
  // org.springframework.stereotype
@@ -26,3 +30,5 @@ exports.requestPart = reference_js_1.ktReference.factory('RequestPart', 'org.spr
26
30
  exports.requestHeader = reference_js_1.ktReference.factory('RequestHeader', 'org.springframework.web.bind.annotation');
27
31
  // org.springframework.web.context.request
28
32
  exports.nativeWebRequest = reference_js_1.ktReference.factory('NativeWebRequest', 'org.springframework.web.context.request');
33
+ // org.springframework.web.util
34
+ exports.uriComponentsBuilder = reference_js_1.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"}
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./file-generator.js"), exports);
5
5
  tslib_1.__exportStar(require("./models/index.js"), exports);
6
6
  tslib_1.__exportStar(require("./services/okhttp3-clients/index.js"), exports);
7
7
  tslib_1.__exportStar(require("./services/spring-controllers/index.js"), exports);
8
+ tslib_1.__exportStar(require("./services/spring-reactive-web-clients/index.js"), exports);
@@ -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,6BAA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AE,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"}
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,EA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AAG,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,SAAS;IAKxG,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,gBAAgB,GAAG,6BAA6B,EAAE;IAmDtG,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,GA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G;IAAE,QAAQ,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,6BAA6B,CAAA;CAAE,CAAC;AAEnG,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,CAAC;AAE3D,MAAM,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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DefaultKotlinSpringReactiveWebClientGeneratorArgs = void 0;
4
+ const tslib_1 = require("tslib");
5
+ exports.DefaultKotlinSpringReactiveWebClientGeneratorArgs = tslib_1.__importStar(require("./args.js"));
6
+ tslib_1.__exportStar(require("./models.js"), exports);
7
+ tslib_1.__exportStar(require("./spring-reactive-web-client-generator.js"), exports);
8
+ tslib_1.__exportStar(require("./spring-reactive-web-clients-generator.js"), exports);
@@ -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 { 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,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,MAAM,MAAM,6CAA6C,GAAG,qBAAqB,GAAG;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,CAAC,CAAC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defaultKotlinSpringReactiveWebClientsGeneratorConfig = void 0;
4
+ const config_js_1 = require("../../../config.js");
5
+ exports.defaultKotlinSpringReactiveWebClientsGeneratorConfig = {
6
+ ...config_js_1.defaultKotlinGeneratorConfig,
7
+ packageName: 'com.openapi.generated',
8
+ packageSuffix: '.api.client',
9
+ infrastructurePackageName: { mode: 'append-full-package-name', value: '.infrastructure' },
10
+ serializerJsonInclude: 'non-absent',
11
+ };
@@ -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,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getReferenceFactories = getReferenceFactories;
4
+ const index_js_1 = require("../../../ast/index.js");
5
+ // See packages/kotlin/assets/client/spring-reactive-web-clients for reference
6
+ function getReferenceFactories(infrastructurePackageName) {
7
+ return {
8
+ // ApiRequestFile.kt
9
+ apiRequestFile: index_js_1.kt.reference.factory('ApiRequestFile', infrastructurePackageName),
10
+ };
11
+ }
@@ -0,0 +1,46 @@
1
+ import { type ApiSchema, type AppendValueGroup, type MaybePromise, SourceBuilder } from '@goast/core';
2
+ import { kt } from '../../../ast/index.js';
3
+ import { KotlinFileBuilder } from '../../../file-builder.js';
4
+ import type { ApiParameterWithMultipartInfo } from '../../../types.js';
5
+ import { KotlinFileGenerator } from '../../file-generator.js';
6
+ import type { DefaultKotlinSpringReactiveWebClientGeneratorArgs as Args } from './index.js';
7
+ import type { KotlinSpringReactiveWebClientGeneratorContext, KotlinSpringReactiveWebClientGeneratorOutput } from './models.js';
8
+ type Context = KotlinSpringReactiveWebClientGeneratorContext;
9
+ type Output = KotlinSpringReactiveWebClientGeneratorOutput;
10
+ type Builder = KotlinFileBuilder;
11
+ export interface KotlinSpringReactiveWebClientGenerator<TOutput extends Output = Output> {
12
+ generate(ctx: Context): MaybePromise<TOutput>;
13
+ }
14
+ export declare class DefaultKotlinSpringReactiveWebClientGenerator extends KotlinFileGenerator<Context, Output> implements KotlinSpringReactiveWebClientGenerator {
15
+ generate(ctx: Context): MaybePromise<Output>;
16
+ protected getClientFileContent(ctx: Context, args: Args.GetClientFileContent): AppendValueGroup<Builder>;
17
+ protected getRequestsObject(ctx: Context, args: Args.GetRequestsObject): kt.Object<Builder>;
18
+ protected getEndpointMembers(ctx: Context, args: Args.GetEndpointMembers): kt.ObjectMember<Builder>[];
19
+ protected getEndpointFunctionName(ctx: Context, args: Args.GetEndpointFunctionName): string;
20
+ protected getEndpointFunction(ctx: Context, args: Args.GetEndpointFunction): kt.Function<Builder>;
21
+ protected getEndpointFunctionBody(ctx: Context, args: Args.GetEndpointFunctionBody): AppendValueGroup<Builder>;
22
+ protected getEndpointFunctionWithHandler(ctx: Context, args: Args.GetEndpointFunctionWithHandler): kt.Function<Builder>;
23
+ protected getEndpointFunctionWithHandlerBody(ctx: Context, args: Args.GetEndpointFunctionWithHandlerBody): AppendValueGroup<Builder>;
24
+ protected getEndpointRequestFunctionName(ctx: Context, args: Args.GetEndpointRequestFunctionName): string;
25
+ protected getEndpointRequestFunction(ctx: Context, args: Args.GetEndpointRequestFunction): kt.Function<Builder>;
26
+ protected getEndpointRequestFunctionBody(ctx: Context, args: Args.GetEndpointRequestFunctionBody): AppendValueGroup<Builder>;
27
+ protected getEndpointUriFunctionName(ctx: Context, args: Args.GetEndpointUriFunctionName): string;
28
+ protected getEndpointUriFunction(ctx: Context, args: Args.GetEndpointUriFunction): kt.Function<Builder>;
29
+ protected getEndpointUriFunctionBody(ctx: Context, args: Args.GetEndpointUriFunctionBody): AppendValueGroup<Builder>;
30
+ protected getParameterToString(ctx: Context, args: Args.GetParameterToString): kt.Value<Builder>;
31
+ protected getParameterType(ctx: Context, args: Args.GetParameterType): kt.Type<Builder>;
32
+ protected getParameterDefaultValue(ctx: Context, args: Args.GetParameterDefaultValue): kt.Value<Builder> | null;
33
+ protected getTypeUsage(ctx: Context, args: Args.GetTypeUsage<Builder>): kt.Type<Builder>;
34
+ protected getPackageName(ctx: Context, args: Args.GetPackageName): string;
35
+ protected getResponseSchema(_ctx: Context, args: Args.GetResponseSchema): ApiSchema | undefined;
36
+ protected getSchemaType(ctx: Context, args: Args.GetSchemaType): kt.Reference<SourceBuilder> | undefined;
37
+ protected getAllParameters(ctx: Context, args: Args.GetAllParameters): ApiParameterWithMultipartInfo[];
38
+ protected getRequestBodyParamName(ctx: Context, args: Args.GetRequestBodyParamName): string;
39
+ protected getBasePath(ctx: Context, _args: Args.GetBasePath): string;
40
+ protected getEndpointPath(ctx: Context, args: Args.GetEndpointPath): string;
41
+ protected getFilePath(ctx: Context, args: Args.GetFilePath): string;
42
+ protected getRequestsObjectName(ctx: Context, args: Args.GetRequestsObjectName): string;
43
+ private createApiParameter;
44
+ }
45
+ export {};
46
+ //# sourceMappingURL=spring-reactive-web-client-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spring-reactive-web-client-generator.d.ts","sourceRoot":"","sources":["../../../../../src/src/generators/services/spring-reactive-web-clients/spring-reactive-web-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;AAC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