@goast/kotlin 0.5.0 → 0.5.1-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 (94) 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/generators/models/model-generator.d.ts.map +1 -1
  12. package/esm/src/generators/models/model-generator.js +10 -5
  13. package/package.json +2 -2
  14. package/script/src/generators/models/model-generator.d.ts.map +1 -1
  15. package/script/src/generators/models/model-generator.js +10 -5
  16. package/src/mod.ts +0 -8
  17. package/src/src/assets.ts +0 -9
  18. package/src/src/ast/_index.ts +0 -66
  19. package/src/src/ast/common.ts +0 -1
  20. package/src/src/ast/index.ts +0 -1
  21. package/src/src/ast/node.ts +0 -10
  22. package/src/src/ast/nodes/annotation.ts +0 -79
  23. package/src/src/ast/nodes/argument.ts +0 -62
  24. package/src/src/ast/nodes/call.ts +0 -75
  25. package/src/src/ast/nodes/class.ts +0 -178
  26. package/src/src/ast/nodes/collection-literal.ts +0 -49
  27. package/src/src/ast/nodes/constructor.ts +0 -126
  28. package/src/src/ast/nodes/doc-tag.ts +0 -138
  29. package/src/src/ast/nodes/doc.ts +0 -111
  30. package/src/src/ast/nodes/enum-value.ts +0 -100
  31. package/src/src/ast/nodes/enum.ts +0 -163
  32. package/src/src/ast/nodes/function.ts +0 -178
  33. package/src/src/ast/nodes/generic-parameter.ts +0 -54
  34. package/src/src/ast/nodes/init-block.ts +0 -38
  35. package/src/src/ast/nodes/interface.ts +0 -133
  36. package/src/src/ast/nodes/lambda-type.ts +0 -73
  37. package/src/src/ast/nodes/lambda.ts +0 -74
  38. package/src/src/ast/nodes/object.ts +0 -102
  39. package/src/src/ast/nodes/parameter.ts +0 -118
  40. package/src/src/ast/nodes/property.ts +0 -225
  41. package/src/src/ast/nodes/reference.ts +0 -178
  42. package/src/src/ast/nodes/string.ts +0 -114
  43. package/src/src/ast/nodes/types.ts +0 -23
  44. package/src/src/ast/references/index.ts +0 -10
  45. package/src/src/ast/references/jackson.ts +0 -44
  46. package/src/src/ast/references/jakarta.ts +0 -14
  47. package/src/src/ast/references/java.ts +0 -20
  48. package/src/src/ast/references/kotlin.ts +0 -41
  49. package/src/src/ast/references/kotlinx.ts +0 -14
  50. package/src/src/ast/references/okhttp3.ts +0 -5
  51. package/src/src/ast/references/reactor.ts +0 -5
  52. package/src/src/ast/references/spring-reactive.ts +0 -33
  53. package/src/src/ast/references/spring.ts +0 -86
  54. package/src/src/ast/references/swagger.ts +0 -23
  55. package/src/src/ast/utils/get-kotlin-builder-options.ts +0 -19
  56. package/src/src/ast/utils/to-kt-node.ts +0 -31
  57. package/src/src/ast/utils/write-kt-annotations.ts +0 -15
  58. package/src/src/ast/utils/write-kt-arguments.ts +0 -45
  59. package/src/src/ast/utils/write-kt-enum-values.ts +0 -27
  60. package/src/src/ast/utils/write-kt-generic-parameters.ts +0 -12
  61. package/src/src/ast/utils/write-kt-members.ts +0 -25
  62. package/src/src/ast/utils/write-kt-node.ts +0 -37
  63. package/src/src/ast/utils/write-kt-parameters.ts +0 -25
  64. package/src/src/common-results.ts +0 -4
  65. package/src/src/config.ts +0 -41
  66. package/src/src/file-builder.ts +0 -112
  67. package/src/src/generators/file-generator.ts +0 -29
  68. package/src/src/generators/index.ts +0 -5
  69. package/src/src/generators/models/args.ts +0 -132
  70. package/src/src/generators/models/index.ts +0 -4
  71. package/src/src/generators/models/model-generator.ts +0 -695
  72. package/src/src/generators/models/models-generator.ts +0 -65
  73. package/src/src/generators/models/models.ts +0 -95
  74. package/src/src/generators/services/okhttp3-clients/args.ts +0 -88
  75. package/src/src/generators/services/okhttp3-clients/index.ts +0 -4
  76. package/src/src/generators/services/okhttp3-clients/models.ts +0 -73
  77. package/src/src/generators/services/okhttp3-clients/okhttp3-client-generator.ts +0 -597
  78. package/src/src/generators/services/okhttp3-clients/okhttp3-clients-generator.ts +0 -169
  79. package/src/src/generators/services/okhttp3-clients/refs.ts +0 -59
  80. package/src/src/generators/services/spring-controllers/args.ts +0 -93
  81. package/src/src/generators/services/spring-controllers/index.ts +0 -4
  82. package/src/src/generators/services/spring-controllers/models.ts +0 -76
  83. package/src/src/generators/services/spring-controllers/refs.ts +0 -17
  84. package/src/src/generators/services/spring-controllers/spring-controller-generator.ts +0 -1084
  85. package/src/src/generators/services/spring-controllers/spring-controllers-generator.ts +0 -140
  86. package/src/src/generators/services/spring-reactive-web-clients/args.ts +0 -101
  87. package/src/src/generators/services/spring-reactive-web-clients/index.ts +0 -4
  88. package/src/src/generators/services/spring-reactive-web-clients/models.ts +0 -62
  89. package/src/src/generators/services/spring-reactive-web-clients/refs.ts +0 -11
  90. package/src/src/generators/services/spring-reactive-web-clients/spring-reactive-web-client-generator.ts +0 -571
  91. package/src/src/generators/services/spring-reactive-web-clients/spring-reactive-web-clients-generator.ts +0 -125
  92. package/src/src/import-collection.ts +0 -98
  93. package/src/src/types.ts +0 -3
  94. package/src/src/utils.ts +0 -39
@@ -1,132 +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 GetType = {
22
- schema: ApiSchema;
23
- nullable?: boolean;
24
- };
25
-
26
- export type GetGeneratedType = {
27
- schema: ApiSchema;
28
- nullable?: boolean;
29
- };
30
-
31
- export type GetAdditionalPropertiesType = {
32
- schema: ApiSchema<'object'>;
33
- };
34
-
35
- export type GetDefaultValue = {
36
- schema: ApiSchema;
37
- };
38
-
39
- export type GetClassParameter = {
40
- schema: ApiSchema<'object'>;
41
- inheritedSchemas: ApiSchema[];
42
- parameters: ApiSchemaProperty[];
43
- property: ApiSchemaProperty;
44
- };
45
-
46
- export type GetInterfaceProperty = {
47
- schema: ApiSchema<'object'>;
48
- property: ApiSchemaProperty;
49
- };
50
-
51
- export type GetAdditionalPropertiesProperty = {
52
- schema: ApiSchema<'object'>;
53
- };
54
-
55
- export type GetAdditionalPropertiesSetter = {
56
- schema: ApiSchema<'object'>;
57
- };
58
-
59
- export type GetAdditionalPropertiesGetter = {
60
- schema: ApiSchema<'object'>;
61
- };
62
-
63
- export type GetJacksonJsonTypeInfoAnnotation = {
64
- schema: ApiSchema;
65
- };
66
-
67
- export type GetJacksonJsonSubTypesAnnotation = {
68
- schema: ApiSchema;
69
- };
70
-
71
- export type GetJacksonJsonClassDescriptionAnnotation = {
72
- schema: ApiSchema;
73
- };
74
-
75
- export type GetJacksonJsonPropertyAnnotation = {
76
- schema: ApiSchema;
77
- property: ApiSchemaProperty;
78
- };
79
-
80
- export type GetJacksonJsonPropertyDescriptionAnnotation = {
81
- schema: ApiSchema;
82
- property: ApiSchemaProperty;
83
- };
84
-
85
- export type GetJacksonJsonIncludeAnnotation = {
86
- schema: ApiSchema;
87
- property: ApiSchemaProperty;
88
- };
89
-
90
- export type GetJakartaValidationAnnotations = {
91
- schema: ApiSchema;
92
- property: ApiSchemaProperty;
93
- };
94
-
95
- export type GetSwaggerSchemaAnnotation = {
96
- schema: ApiSchema;
97
- property: ApiSchemaProperty;
98
- };
99
-
100
- export type GetPackageName = {
101
- schema: ApiSchema;
102
- };
103
-
104
- export type ShouldGenerateTypeDeclaration = {
105
- schema: ApiSchema;
106
- };
107
-
108
- export type GetDeclarationTypeName = {
109
- schema: ApiSchema;
110
- };
111
-
112
- export type GetInheritedSchemas = {
113
- schema: ApiSchema;
114
- };
115
-
116
- export type GetClassProperties = {
117
- schema: ApiSchema<'object'>;
118
- };
119
-
120
- export type SortProperties = {
121
- schema: ApiSchema;
122
- properties: Iterable<ApiSchemaProperty>;
123
- };
124
-
125
- export type NormalizeSchema = {
126
- schema: ApiSchema;
127
- };
128
-
129
- export type HasProperty = {
130
- schema: ApiSchema;
131
- propertyName: string;
132
- };
@@ -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';