@goast/kotlin 0.5.8 → 0.5.9-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/LICENSE +21 -21
  2. package/assets/client/okhttp3/ApiAbstractions.kt +30 -30
  3. package/assets/client/okhttp3/ApiClient.kt +253 -253
  4. package/assets/client/okhttp3/ApiResponse.kt +43 -43
  5. package/assets/client/okhttp3/Errors.kt +21 -21
  6. package/assets/client/okhttp3/PartConfig.kt +11 -11
  7. package/assets/client/okhttp3/RequestConfig.kt +18 -18
  8. package/assets/client/okhttp3/RequestMethod.kt +8 -8
  9. package/assets/client/okhttp3/ResponseExtensions.kt +24 -24
  10. package/assets/client/spring-reactive-web-clients/ApiRequestFile.kt +33 -33
  11. package/esm/src/ast/references/jackson.d.ts +8 -5
  12. package/esm/src/ast/references/jackson.d.ts.map +1 -1
  13. package/esm/src/ast/references/jackson.js +14 -6
  14. package/esm/src/config.d.ts +10 -0
  15. package/esm/src/config.d.ts.map +1 -1
  16. package/esm/src/config.js +1 -0
  17. package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
  18. package/esm/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +36 -32
  19. package/esm/src/generators/services/okhttp3-clients/okhttp3-clients-generator.d.ts.map +1 -1
  20. package/esm/src/generators/services/okhttp3-clients/okhttp3-clients-generator.js +22 -6
  21. package/esm/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
  22. package/esm/src/generators/services/spring-controllers/spring-controller-generator.js +23 -13
  23. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.d.ts.map +1 -1
  24. package/esm/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.js +4 -1
  25. package/package.json +2 -2
  26. package/script/src/ast/references/jackson.d.ts +8 -5
  27. package/script/src/ast/references/jackson.d.ts.map +1 -1
  28. package/script/src/ast/references/jackson.js +20 -7
  29. package/script/src/config.d.ts +10 -0
  30. package/script/src/config.d.ts.map +1 -1
  31. package/script/src/config.js +1 -0
  32. package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts.map +1 -1
  33. package/script/src/generators/services/okhttp3-clients/okhttp3-client-generator.js +36 -32
  34. package/script/src/generators/services/okhttp3-clients/okhttp3-clients-generator.d.ts.map +1 -1
  35. package/script/src/generators/services/okhttp3-clients/okhttp3-clients-generator.js +22 -6
  36. package/script/src/generators/services/spring-controllers/spring-controller-generator.d.ts.map +1 -1
  37. package/script/src/generators/services/spring-controllers/spring-controller-generator.js +23 -13
  38. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.d.ts.map +1 -1
  39. package/script/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.js +4 -1
  40. package/src/mod.ts +0 -8
  41. package/src/src/assets.ts +0 -9
  42. package/src/src/ast/_index.ts +0 -66
  43. package/src/src/ast/common.ts +0 -1
  44. package/src/src/ast/index.ts +0 -1
  45. package/src/src/ast/node.ts +0 -10
  46. package/src/src/ast/nodes/annotation.ts +0 -79
  47. package/src/src/ast/nodes/argument.ts +0 -62
  48. package/src/src/ast/nodes/call.ts +0 -75
  49. package/src/src/ast/nodes/class.ts +0 -178
  50. package/src/src/ast/nodes/collection-literal.ts +0 -49
  51. package/src/src/ast/nodes/constructor.ts +0 -126
  52. package/src/src/ast/nodes/doc-tag.ts +0 -138
  53. package/src/src/ast/nodes/doc.ts +0 -111
  54. package/src/src/ast/nodes/enum-value.ts +0 -100
  55. package/src/src/ast/nodes/enum.ts +0 -163
  56. package/src/src/ast/nodes/function.ts +0 -178
  57. package/src/src/ast/nodes/generic-parameter.ts +0 -54
  58. package/src/src/ast/nodes/init-block.ts +0 -38
  59. package/src/src/ast/nodes/interface.ts +0 -133
  60. package/src/src/ast/nodes/lambda-type.ts +0 -73
  61. package/src/src/ast/nodes/lambda.ts +0 -74
  62. package/src/src/ast/nodes/object.ts +0 -102
  63. package/src/src/ast/nodes/parameter.ts +0 -118
  64. package/src/src/ast/nodes/property.ts +0 -225
  65. package/src/src/ast/nodes/reference.ts +0 -178
  66. package/src/src/ast/nodes/string.ts +0 -114
  67. package/src/src/ast/nodes/types.ts +0 -23
  68. package/src/src/ast/references/index.ts +0 -10
  69. package/src/src/ast/references/jackson.ts +0 -44
  70. package/src/src/ast/references/jakarta.ts +0 -14
  71. package/src/src/ast/references/java.ts +0 -27
  72. package/src/src/ast/references/kotlin.ts +0 -41
  73. package/src/src/ast/references/kotlinx.ts +0 -14
  74. package/src/src/ast/references/okhttp3.ts +0 -5
  75. package/src/src/ast/references/reactor.ts +0 -5
  76. package/src/src/ast/references/spring-reactive.ts +0 -33
  77. package/src/src/ast/references/spring.ts +0 -86
  78. package/src/src/ast/references/swagger.ts +0 -23
  79. package/src/src/ast/utils/get-kotlin-builder-options.ts +0 -19
  80. package/src/src/ast/utils/to-kt-node.ts +0 -31
  81. package/src/src/ast/utils/write-kt-annotations.ts +0 -15
  82. package/src/src/ast/utils/write-kt-arguments.ts +0 -45
  83. package/src/src/ast/utils/write-kt-enum-values.ts +0 -27
  84. package/src/src/ast/utils/write-kt-generic-parameters.ts +0 -12
  85. package/src/src/ast/utils/write-kt-members.ts +0 -25
  86. package/src/src/ast/utils/write-kt-node.ts +0 -37
  87. package/src/src/ast/utils/write-kt-parameters.ts +0 -25
  88. package/src/src/common-results.ts +0 -4
  89. package/src/src/config.ts +0 -48
  90. package/src/src/file-builder.ts +0 -112
  91. package/src/src/generators/file-generator.ts +0 -29
  92. package/src/src/generators/index.ts +0 -5
  93. package/src/src/generators/models/args.ts +0 -136
  94. package/src/src/generators/models/index.ts +0 -4
  95. package/src/src/generators/models/model-generator.ts +0 -725
  96. package/src/src/generators/models/models-generator.ts +0 -65
  97. package/src/src/generators/models/models.ts +0 -95
  98. package/src/src/generators/services/okhttp3-clients/args.ts +0 -90
  99. package/src/src/generators/services/okhttp3-clients/index.ts +0 -4
  100. package/src/src/generators/services/okhttp3-clients/models.ts +0 -73
  101. package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +0 -609
  102. package/src/src/generators/services/okhttp3-clients/okhttp3-clients-generator.ts +0 -169
  103. package/src/src/generators/services/okhttp3-clients/refs.ts +0 -59
  104. package/src/src/generators/services/spring-controllers/args.ts +0 -95
  105. package/src/src/generators/services/spring-controllers/index.ts +0 -4
  106. package/src/src/generators/services/spring-controllers/models.ts +0 -76
  107. package/src/src/generators/services/spring-controllers/refs.ts +0 -17
  108. package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +0 -1097
  109. package/src/src/generators/services/spring-controllers/spring-controllers-generator.ts +0 -140
  110. package/src/src/generators/services/spring-reactive-web-clients/args.ts +0 -103
  111. package/src/src/generators/services/spring-reactive-web-clients/index.ts +0 -4
  112. package/src/src/generators/services/spring-reactive-web-clients/models.ts +0 -62
  113. package/src/src/generators/services/spring-reactive-web-clients/refs.ts +0 -11
  114. package/src/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.ts +0 -583
  115. package/src/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.ts +0 -125
  116. package/src/src/import-collection.ts +0 -98
  117. package/src/src/types.ts +0 -3
  118. package/src/src/utils.ts +0 -47
@@ -1,136 +0,0 @@
1
- import type { ApiSchema, ApiSchemaProperty } from '@goast/core';
2
-
3
- export type GetFileContent = object;
4
-
5
- export type GetSchemaDeclaration = {
6
- schema: ApiSchema;
7
- };
8
-
9
- export type GetClass = {
10
- schema: ApiSchema<'object'>;
11
- };
12
-
13
- export type GetInterface = {
14
- schema: ApiSchema<'object'>;
15
- };
16
-
17
- export type GetEnum = {
18
- schema: ApiSchema;
19
- };
20
-
21
- export type GetSchemaDocDescription = {
22
- schema: ApiSchema;
23
- };
24
-
25
- export type GetType = {
26
- schema: ApiSchema;
27
- nullable?: boolean;
28
- };
29
-
30
- export type GetGeneratedType = {
31
- schema: ApiSchema;
32
- nullable?: boolean;
33
- };
34
-
35
- export type GetAdditionalPropertiesType = {
36
- schema: ApiSchema<'object'>;
37
- };
38
-
39
- export type GetDefaultValue = {
40
- schema: ApiSchema;
41
- };
42
-
43
- export type GetClassParameter = {
44
- schema: ApiSchema<'object'>;
45
- inheritedSchemas: ApiSchema[];
46
- parameters: ApiSchemaProperty[];
47
- property: ApiSchemaProperty;
48
- };
49
-
50
- export type GetInterfaceProperty = {
51
- schema: ApiSchema<'object'>;
52
- property: ApiSchemaProperty;
53
- };
54
-
55
- export type GetAdditionalPropertiesProperty = {
56
- schema: ApiSchema<'object'>;
57
- };
58
-
59
- export type GetAdditionalPropertiesSetter = {
60
- schema: ApiSchema<'object'>;
61
- };
62
-
63
- export type GetAdditionalPropertiesGetter = {
64
- schema: ApiSchema<'object'>;
65
- };
66
-
67
- export type GetJacksonJsonTypeInfoAnnotation = {
68
- schema: ApiSchema;
69
- };
70
-
71
- export type GetJacksonJsonSubTypesAnnotation = {
72
- schema: ApiSchema;
73
- };
74
-
75
- export type GetJacksonJsonClassDescriptionAnnotation = {
76
- schema: ApiSchema;
77
- };
78
-
79
- export type GetJacksonJsonPropertyAnnotation = {
80
- schema: ApiSchema;
81
- property: ApiSchemaProperty;
82
- };
83
-
84
- export type GetJacksonJsonPropertyDescriptionAnnotation = {
85
- schema: ApiSchema;
86
- property: ApiSchemaProperty;
87
- };
88
-
89
- export type GetJacksonJsonIncludeAnnotation = {
90
- schema: ApiSchema;
91
- property: ApiSchemaProperty;
92
- };
93
-
94
- export type GetJakartaValidationAnnotations = {
95
- schema: ApiSchema;
96
- property: ApiSchemaProperty;
97
- };
98
-
99
- export type GetSwaggerSchemaAnnotation = {
100
- schema: ApiSchema;
101
- property: ApiSchemaProperty;
102
- };
103
-
104
- export type GetPackageName = {
105
- schema: ApiSchema;
106
- };
107
-
108
- export type ShouldGenerateTypeDeclaration = {
109
- schema: ApiSchema;
110
- };
111
-
112
- export type GetDeclarationTypeName = {
113
- schema: ApiSchema;
114
- };
115
-
116
- export type GetInheritedSchemas = {
117
- schema: ApiSchema;
118
- };
119
-
120
- export type GetClassProperties = {
121
- schema: ApiSchema<'object'>;
122
- };
123
-
124
- export type SortProperties = {
125
- schema: ApiSchema;
126
- properties: Iterable<ApiSchemaProperty>;
127
- };
128
-
129
- export type NormalizeSchema = {
130
- schema: ApiSchema;
131
- };
132
-
133
- export type HasProperty = {
134
- schema: ApiSchema;
135
- propertyName: string;
136
- };
@@ -1,4 +0,0 @@
1
- export * as DefaultKotlinModelGeneratorArgs from './args.js';
2
- export * from './model-generator.js';
3
- export * from './models-generator.js';
4
- export * from './models.js';