@rxap/schematics-open-api 16.0.0-dev.3 → 16.0.0-dev.5

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 (72) hide show
  1. package/CHANGELOG.md +46 -190
  2. package/README.md +7 -6
  3. package/collection.json +9 -0
  4. package/package.json +52 -34
  5. package/src/index.js.map +1 -1
  6. package/src/lib/clear-operation.js.map +1 -1
  7. package/src/lib/coerce-open-api-project.js +3 -3
  8. package/src/lib/coerce-open-api-project.js.map +1 -1
  9. package/src/lib/config.js.map +1 -1
  10. package/src/lib/generate-components.js +4 -1
  11. package/src/lib/generate-components.js.map +1 -1
  12. package/src/lib/generate-index-exports.js +1 -1
  13. package/src/lib/generate-index-exports.js.map +1 -1
  14. package/src/lib/generate-operation.js.map +1 -1
  15. package/src/lib/generate-parameters.js +6 -2
  16. package/src/lib/generate-parameters.js.map +1 -1
  17. package/src/lib/generate-request-body.js +5 -1
  18. package/src/lib/generate-request-body.js.map +1 -1
  19. package/src/lib/generate-response.js +5 -1
  20. package/src/lib/generate-response.js.map +1 -1
  21. package/src/lib/index.js.map +1 -1
  22. package/src/lib/load-open-api-config.js.map +1 -1
  23. package/src/lib/types.js.map +1 -1
  24. package/src/lib/utilities/any-schema-object.js +1 -1
  25. package/src/lib/utilities/any-schema-object.js.map +1 -1
  26. package/src/lib/utilities/get-parameter-type.js.map +1 -1
  27. package/src/lib/utilities/get-reqeust-body.js +2 -2
  28. package/src/lib/utilities/get-reqeust-body.js.map +1 -1
  29. package/src/lib/utilities/get-request-body-type.js.map +1 -1
  30. package/src/lib/utilities/get-response-type.js.map +1 -1
  31. package/src/lib/utilities/get-response.js +5 -5
  32. package/src/lib/utilities/get-response.js.map +1 -1
  33. package/src/lib/utilities/has-operation-paramters.js.map +1 -1
  34. package/src/lib/utilities/has-operation-request-body.js.map +1 -1
  35. package/src/lib/utilities/http-request.js +3 -1
  36. package/src/lib/utilities/http-request.js.map +1 -1
  37. package/src/lib/utilities/ignore-operation.js.map +1 -1
  38. package/src/lib/utilities/index.js.map +1 -1
  39. package/src/lib/utilities/is-collection-response.js.map +1 -1
  40. package/src/lib/utilities/is-http-method.js.map +1 -1
  41. package/src/lib/utilities/is-open-api-schema-from-path.js +2 -1
  42. package/src/lib/utilities/is-open-api-schema-from-path.js.map +1 -1
  43. package/src/lib/utilities/is-operation-object.js +1 -1
  44. package/src/lib/utilities/is-operation-object.js.map +1 -1
  45. package/src/lib/utilities/is-reference-object.js +1 -1
  46. package/src/lib/utilities/is-reference-object.js.map +1 -1
  47. package/src/lib/utilities/is-without-parameters.js.map +1 -1
  48. package/src/schematics/generate/coerce-open-api-project.d.ts +5 -0
  49. package/src/schematics/generate/coerce-open-api-project.js +52 -0
  50. package/src/schematics/generate/coerce-open-api-project.js.map +1 -0
  51. package/src/schematics/generate/const.d.ts +4 -0
  52. package/src/schematics/generate/const.js +8 -0
  53. package/src/schematics/generate/const.js.map +1 -0
  54. package/src/schematics/generate/create-directive.d.ts +2 -0
  55. package/src/schematics/generate/create-directive.js +292 -0
  56. package/src/schematics/generate/create-directive.js.map +1 -0
  57. package/src/schematics/generate/generate-openapi-provider.d.ts +3 -0
  58. package/src/schematics/generate/generate-openapi-provider.js +41 -0
  59. package/src/schematics/generate/generate-openapi-provider.js.map +1 -0
  60. package/src/schematics/generate/generate-remote-method.d.ts +3 -0
  61. package/src/schematics/generate/generate-remote-method.js +176 -0
  62. package/src/schematics/generate/generate-remote-method.js.map +1 -0
  63. package/src/schematics/generate/index.d.ts +3 -0
  64. package/src/schematics/generate/index.js +100 -0
  65. package/src/schematics/generate/index.js.map +1 -0
  66. package/src/schematics/generate/options.d.ts +14 -0
  67. package/src/schematics/generate/options.js +3 -0
  68. package/src/schematics/generate/options.js.map +1 -0
  69. package/src/schematics/generate/schema.d.ts +23 -0
  70. package/src/schematics/generate/schema.json +116 -0
  71. package/LICENSE +0 -630
  72. package/migration.json +0 -4
package/CHANGELOG.md CHANGED
@@ -3,137 +3,97 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [16.0.0-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@16.0.0-dev.2...@rxap/schematics-open-api@16.0.0-dev.3) (2023-05-31)
7
-
8
- **Note:** Version bump only for package @rxap/schematics-open-api
9
-
10
-
11
-
12
-
13
-
14
- # [16.0.0-dev.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@16.0.0-dev.1...@rxap/schematics-open-api@16.0.0-dev.2) (2023-05-18)
15
-
6
+ # [16.0.0-dev.5](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@16.0.0-dev.4...@rxap/schematics-open-api@16.0.0-dev.5) (2023-07-10)
16
7
 
17
8
  ### Bug Fixes
18
9
 
19
- * remove deprecated pack target concept ([eeb3748](https://gitlab.com/rxap/schematics/commit/eeb3748be1201fa7f5b3cd05771b95502376d4a3))
10
+ - update package dependency versions ([8479f5c](https://gitlab.com/rxap/packages/commit/8479f5c405a885cc0f300cec6156584e4c65d59c))
20
11
 
12
+ # [16.0.0-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.2...@rxap/schematics-open-api@16.0.0-dev.4) (2023-07-10)
21
13
 
14
+ ### Bug Fixes
22
15
 
16
+ - restructure and merge mono repos packages, schematics, plugins and nest ([653b4cd](https://gitlab.com/rxap/packages/commit/653b4cd39fc92d322df9b3959651fea0aa6079da))
23
17
 
18
+ # [16.0.0-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@16.0.0-dev.2...@rxap/schematics-open-api@16.0.0-dev.3) (2023-05-31)
24
19
 
25
- # [16.0.0-dev.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@16.0.0-dev.0...@rxap/schematics-open-api@16.0.0-dev.1) (2023-05-18)
20
+ **Note:** Version bump only for package @rxap/schematics-open-api
26
21
 
22
+ # [16.0.0-dev.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@16.0.0-dev.1...@rxap/schematics-open-api@16.0.0-dev.2) (2023-05-18)
27
23
 
28
24
  ### Bug Fixes
29
25
 
30
- * **deps:** update rxap packages to 16.x.x ([f9c2263](https://gitlab.com/rxap/schematics/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
31
-
26
+ - remove deprecated pack targetconcept ([eeb3748](https://gitlab.com/rxap/schematics/commit/eeb3748be1201fa7f5b3cd05771b95502376d4a3))
32
27
 
28
+ # [16.0.0-dev.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@16.0.0-dev.0...@rxap/schematics-open-api@16.0.0-dev.1) (2023-05-18)
33
29
 
30
+ ### Bug Fixes
34
31
 
32
+ - **deps:** update rxap packages to16.x.x ([f9c2263](https://gitlab.com/rxap/schematics/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
35
33
 
36
34
  # [16.0.0-dev.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@15.0.1...@rxap/schematics-open-api@16.0.0-dev.0) (2023-05-17)
37
35
 
38
-
39
36
  ### chore
40
37
 
41
- * upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/schematics/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
42
-
38
+ - upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/schematics/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
43
39
 
44
40
  ### BREAKING CHANGES
45
41
 
46
- * upgrade to 16.x.x
47
-
48
-
49
-
50
-
42
+ - upgrade to 16.x.x
51
43
 
52
44
  ## [15.0.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@15.0.0...@rxap/schematics-open-api@15.0.1) (2023-05-17)
53
45
 
54
-
55
46
  ### Bug Fixes
56
47
 
57
- * cleanup serialized open api operation object ([f5322e0](https://gitlab.com/rxap/schematics/commit/f5322e050f5077d4b4a3fe5fb6f41634bd17f8d7))
58
- * **schematics:** pre generate interface imports ([1b1cf87](https://gitlab.com/rxap/schematics/commit/1b1cf8788e052dfd32c95be47e116aae7cae5caf))
59
- * **schematics:** update open api schematics package ([cc01087](https://gitlab.com/rxap/schematics/commit/cc010878bf2eee788a0f61e3b2dbfa1a08b45bd8))
60
- * support open api projects with sub directories ([73c88f9](https://gitlab.com/rxap/schematics/commit/73c88f9473770df4063b487d646f68243d011b1c))
61
-
62
-
63
-
64
-
48
+ - cleanup serialized open api operationobject ([f5322e0](https://gitlab.com/rxap/schematics/commit/f5322e050f5077d4b4a3fe5fb6f41634bd17f8d7))
49
+ - **schematics:** pre generate interfaceimports ([1b1cf87](https://gitlab.com/rxap/schematics/commit/1b1cf8788e052dfd32c95be47e116aae7cae5caf))
50
+ - **schematics:** update open api schematicspackage ([cc01087](https://gitlab.com/rxap/schematics/commit/cc010878bf2eee788a0f61e3b2dbfa1a08b45bd8))
51
+ - support open api projects with subdirectories ([73c88f9](https://gitlab.com/rxap/schematics/commit/73c88f9473770df4063b487d646f68243d011b1c))
65
52
 
66
53
  # [15.0.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@14.1.1...@rxap/schematics-open-api@15.0.0) (2022-12-14)
67
54
 
68
-
69
55
  ### chore
70
56
 
71
- * upgrade to nrwl 15.x.x ([c0a94f6](https://gitlab.com/rxap/schematics/commit/c0a94f6b044213fe55dbda0634bef60859daa345))
72
- * upgrade to nrwl 15.x.x ([de2b991](https://gitlab.com/rxap/schematics/commit/de2b99196ee6d388f37efd17b464a5bfa744de7e))
73
-
57
+ - upgrade to nrwl 15.x.x ([c0a94f6](https://gitlab.com/rxap/schematics/commit/c0a94f6b044213fe55dbda0634bef60859daa345))
58
+ - upgrade to nrwl 15.x.x ([de2b991](https://gitlab.com/rxap/schematics/commit/de2b99196ee6d388f37efd17b464a5bfa744de7e))
74
59
 
75
60
  ### BREAKING CHANGES
76
61
 
77
- * upgrade nrwl 15.x.x
78
- * upgrade nrwl 15.x.x
79
-
80
-
81
-
82
-
62
+ - upgrade nrwl 15.x.x
63
+ - upgrade nrwl 15.x.x
83
64
 
84
65
  ## [14.1.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@14.1.0...@rxap/schematics-open-api@14.1.1) (2022-12-14)
85
66
 
86
67
  **Note:** Version bump only for package @rxap/schematics-open-api
87
68
 
88
-
89
-
90
-
91
-
92
69
  # [14.1.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@14.0.1...@rxap/schematics-open-api@14.1.0) (2022-12-13)
93
70
 
94
-
95
71
  ### Bug Fixes
96
72
 
97
- * async generator execution ([ebca4f0](https://gitlab.com/rxap/schematics/commit/ebca4f0187cfcb8255824ed89172db708e7ae862))
98
- * only create type if defined and prefer void ([34bb6ce](https://gitlab.com/rxap/schematics/commit/34bb6ce9bc140d5e941fbcb574f179b3741fc824))
99
- * only create type if defined and prefer void ([6cf0827](https://gitlab.com/rxap/schematics/commit/6cf08271d6745f24ef8888e666a699f67292bb27))
100
- * use any return type ([85c1959](https://gitlab.com/rxap/schematics/commit/85c19598c619c77e7cdbc7013d4b51eb6781fb5f))
101
-
73
+ - async generatorexecution ([ebca4f0](https://gitlab.com/rxap/schematics/commit/ebca4f0187cfcb8255824ed89172db708e7ae862))
74
+ - only create type if defined and prefervoid ([34bb6ce](https://gitlab.com/rxap/schematics/commit/34bb6ce9bc140d5e941fbcb574f179b3741fc824))
75
+ - only create type if defined and prefervoid ([6cf0827](https://gitlab.com/rxap/schematics/commit/6cf08271d6745f24ef8888e666a699f67292bb27))
76
+ - use any return type ([85c1959](https://gitlab.com/rxap/schematics/commit/85c19598c619c77e7cdbc7013d4b51eb6781fb5f))
102
77
 
103
78
  ### Features
104
79
 
105
- * add coerce open api project function ([8eafe9d](https://gitlab.com/rxap/schematics/commit/8eafe9d2acf7f21dbe0a48c5b80d0a9502597233))
106
-
107
-
108
-
109
-
80
+ - add coerce open api projectfunction ([8eafe9d](https://gitlab.com/rxap/schematics/commit/8eafe9d2acf7f21dbe0a48c5b80d0a9502597233))
110
81
 
111
82
  ## [14.0.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@14.0.0...@rxap/schematics-open-api@14.0.1) (2022-10-06)
112
83
 
113
-
114
84
  ### Bug Fixes
115
85
 
116
- * update package json deps ([99c7002](https://gitlab.com/rxap/schematics/commit/99c70028a34927902ece991748a7d0fc857c5223))
117
-
118
-
119
-
120
-
86
+ - update package jsondeps ([99c7002](https://gitlab.com/rxap/schematics/commit/99c70028a34927902ece991748a7d0fc857c5223))
121
87
 
122
88
  # [14.0.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@13.0.0...@rxap/schematics-open-api@14.0.0) (2022-09-11)
123
89
 
124
-
125
90
  ### chore
126
91
 
127
- * upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/schematics/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
128
-
92
+ - upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/schematics/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
129
93
 
130
94
  ### BREAKING CHANGES
131
95
 
132
- * upgrade to 14.x.x
133
-
134
-
135
-
136
-
96
+ - upgrade to 14.x.x
137
97
 
138
98
  # [13.0.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@13.0.0-next.4...@rxap/schematics-open-api@13.0.0) (2022-09-11)
139
99
 
@@ -143,236 +103,132 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
143
103
 
144
104
  ### Bug Fixes
145
105
 
146
- * update typescript generator
147
- package ([3bd311c](https://gitlab.com/rxap/schematics/commit/3bd311ca5697bdbed598cdf8c9ec44f297fd2215))
106
+ - update typescript generatorpackage ([3bd311c](https://gitlab.com/rxap/schematics/commit/3bd311ca5697bdbed598cdf8c9ec44f297fd2215))
148
107
 
149
108
  # [13.0.0-next.3](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@13.0.0-next.2...@rxap/schematics-open-api@13.0.0-next.3) (2022-05-09)
150
109
 
151
-
152
110
  ### Bug Fixes
153
111
 
154
- * convert ref into object for parameters ([81f8f9e](https://gitlab.com/rxap/schematics/commit/81f8f9e02b8feffe24ca43ee0684740bd59e0f88))
155
-
156
-
157
-
158
-
112
+ - convert ref into object forparameters ([81f8f9e](https://gitlab.com/rxap/schematics/commit/81f8f9e02b8feffe24ca43ee0684740bd59e0f88))
159
113
 
160
114
  # [13.0.0-next.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@13.0.0-next.1...@rxap/schematics-open-api@13.0.0-next.2) (2022-05-09)
161
115
 
162
116
  **Note:** Version bump only for package @rxap/schematics-open-api
163
117
 
164
-
165
-
166
-
167
-
168
118
  # [13.0.0-next.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@13.0.0-next.0...@rxap/schematics-open-api@13.0.0-next.1) (2022-03-23)
169
119
 
170
-
171
120
  ### Bug Fixes
172
121
 
173
- * remove rxap/utilities dependency ([d8dfe16](https://gitlab.com/rxap/schematics/commit/d8dfe168f5d3afd5cd88d4fd143bd2c7b2c687b7))
174
-
175
-
176
-
177
-
122
+ - remove rxap/utilitiesdependency ([d8dfe16](https://gitlab.com/rxap/schematics/commit/d8dfe168f5d3afd5cd88d4fd143bd2c7b2c687b7))
178
123
 
179
124
  # [13.0.0-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.9...@rxap/schematics-open-api@13.0.0-next.0) (2022-02-19)
180
125
 
181
-
182
126
  ### Build System
183
127
 
184
- * upgrade to nrwl 13.x.x ([5cd07c1](https://gitlab.com/rxap/schematics/commit/5cd07c19645528c787ef01a121a4a4367db78902))
185
-
128
+ - upgrade to nrwl 13.x.x ([5cd07c1](https://gitlab.com/rxap/schematics/commit/5cd07c19645528c787ef01a121a4a4367db78902))
186
129
 
187
130
  ### BREAKING CHANGES
188
131
 
189
- * update the core nrwl packages to 13.x.x
132
+ - update the core nrwl packages to 13.x.x
190
133
 
191
134
  Signed-off-by: Merzough Münker <mmuenker@digitaix.com>
192
135
 
193
-
194
-
195
-
196
-
197
136
  ## [12.0.9](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.8...@rxap/schematics-open-api@12.0.9) (2021-08-02)
198
137
 
199
-
200
138
  ### Bug Fixes
201
139
 
202
- * add missing peer dependencies ([83481ea](https://gitlab.com/rxap/schematics/commit/83481eafb7912aef4e9574abc416edfd5f025898))
203
-
204
-
205
-
206
-
140
+ - add missing peerdependencies ([83481ea](https://gitlab.com/rxap/schematics/commit/83481eafb7912aef4e9574abc416edfd5f025898))
207
141
 
208
142
  ## [12.0.8](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.8-next.0...@rxap/schematics-open-api@12.0.8) (2021-06-29)
209
143
 
210
144
  **Note:** Version bump only for package @rxap/schematics-open-api
211
145
 
212
-
213
-
214
-
215
-
216
146
  ## [12.0.8-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.7...@rxap/schematics-open-api@12.0.8-next.0) (2021-06-23)
217
147
 
218
148
  **Note:** Version bump only for package @rxap/schematics-open-api
219
149
 
220
-
221
-
222
-
223
-
224
150
  ## [12.0.7](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.6...@rxap/schematics-open-api@12.0.7) (2021-06-23)
225
151
 
226
152
  **Note:** Version bump only for package @rxap/schematics-open-api
227
153
 
228
-
229
-
230
-
231
-
232
154
  ## [12.0.7-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.6...@rxap/schematics-open-api@12.0.7-next.0) (2021-06-23)
233
155
 
234
156
  **Note:** Version bump only for package @rxap/schematics-open-api
235
157
 
236
-
237
-
238
-
239
-
240
158
  ## [12.0.6](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.4...@rxap/schematics-open-api@12.0.6) (2021-06-22)
241
159
 
242
160
  **Note:** Version bump only for package @rxap/schematics-open-api
243
161
 
244
-
245
-
246
-
247
-
248
162
  ## [12.0.4](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.3...@rxap/schematics-open-api@12.0.4) (2021-06-17)
249
163
 
250
-
251
164
  ### Bug Fixes
252
165
 
253
- * set correct peerDependencies and dependencies ([92c5eae](https://gitlab.com/rxap/schematics/commit/92c5eae7eb84c65381ed005da1900ce5f0ce80a3))
254
-
255
-
256
-
257
-
166
+ - set correct peerDependencies anddependencies ([92c5eae](https://gitlab.com/rxap/schematics/commit/92c5eae7eb84c65381ed005da1900ce5f0ce80a3))
258
167
 
259
168
  ## 12.0.3 (2021-06-14)
260
169
 
261
170
  **Note:** Version bump only for package @rxap/schematics-open-api
262
171
 
263
-
264
-
265
-
266
-
267
172
  ## [12.0.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.3.1...@rxap/schematics-open-api@12.0.2) (2021-06-09)
268
173
 
269
174
  **Note:** Version bump only for package @rxap/schematics-open-api
270
175
 
271
-
272
-
273
-
274
-
275
176
  ## [12.0.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@12.0.0...@rxap/schematics-open-api@12.0.1) (2021-05-24)
276
177
 
277
178
  **Note:** Version bump only for package @rxap/schematics-open-api
278
179
 
279
-
280
-
281
-
282
-
283
180
  # [12.0.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.3.0...@rxap/schematics-open-api@12.0.0) (2021-05-24)
284
181
 
285
182
  **Note:** Version bump only for package @rxap/schematics-open-api
286
183
 
287
-
288
-
289
-
290
-
291
184
  # [11.3.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.2.3...@rxap/schematics-open-api@11.3.0) (2021-05-04)
292
185
 
293
-
294
186
  ### Features
295
187
 
296
- * add GenerateIndexExports Function ([e3fce4c](https://gitlab.com/rxap/schematics/commit/e3fce4cf3104f77c8122ff257ba69f3968cff6a4))
297
-
298
-
299
-
300
-
188
+ - add GenerateIndexExportsFunction ([e3fce4c](https://gitlab.com/rxap/schematics/commit/e3fce4cf3104f77c8122ff257ba69f3968cff6a4))
301
189
 
302
190
  ## [11.2.3](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.2.2...@rxap/schematics-open-api@11.2.3) (2021-05-03)
303
191
 
304
-
305
192
  ### Bug Fixes
306
193
 
307
- * add missing export ([0f1d683](https://gitlab.com/rxap/schematics/commit/0f1d683108952b5658eb08e59f4f504183dbe17d))
308
-
309
-
310
-
311
-
194
+ - add missing export ([0f1d683](https://gitlab.com/rxap/schematics/commit/0f1d683108952b5658eb08e59f4f504183dbe17d))
312
195
 
313
196
  ## [11.2.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.2.1...@rxap/schematics-open-api@11.2.2) (2021-04-30)
314
197
 
315
-
316
198
  ### Bug Fixes
317
199
 
318
- * **schematics:** add support for void request body type ([6b49540](https://gitlab.com/rxap/schematics/commit/6b49540ba3c0248dc107ad7c76a344ee1daeb771))
319
-
320
-
321
-
322
-
200
+ - **schematics:** add support for void request bodytype ([6b49540](https://gitlab.com/rxap/schematics/commit/6b49540ba3c0248dc107ad7c76a344ee1daeb771))
323
201
 
324
202
  ## [11.2.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.2.0...@rxap/schematics-open-api@11.2.1) (2021-04-30)
325
203
 
326
-
327
204
  ### Bug Fixes
328
205
 
329
- * **schematics:** add support for void request body type ([0feac0f](https://gitlab.com/rxap/schematics/commit/0feac0f0e5447dfafc8e51166b2d63cf66fce208))
330
-
331
-
332
-
333
-
206
+ - **schematics:** add support for void request bodytype ([0feac0f](https://gitlab.com/rxap/schematics/commit/0feac0f0e5447dfafc8e51166b2d63cf66fce208))
334
207
 
335
208
  # [11.2.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.1.2...@rxap/schematics-open-api@11.2.0) (2021-04-30)
336
209
 
337
-
338
210
  ### Features
339
211
 
340
- * add ClearOperation function ([c6fe1b2](https://gitlab.com/rxap/schematics/commit/c6fe1b2497d36e9668d9d18513f584d656f973dd))
341
-
342
-
343
-
344
-
212
+ - add ClearOperationfunction ([c6fe1b2](https://gitlab.com/rxap/schematics/commit/c6fe1b2497d36e9668d9d18513f584d656f973dd))
345
213
 
346
214
  ## [11.1.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.1.1...@rxap/schematics-open-api@11.1.2) (2021-04-30)
347
215
 
348
-
349
216
  ### Bug Fixes
350
217
 
351
- * **schematics:** change module to commonjs ([39a3700](https://gitlab.com/rxap/schematics/commit/39a3700a1d1194a81fb9e7944288984f64b46b88))
352
-
353
-
354
-
355
-
218
+ - **schematics:** change module tocommonjs ([39a3700](https://gitlab.com/rxap/schematics/commit/39a3700a1d1194a81fb9e7944288984f64b46b88))
356
219
 
357
220
  ## [11.1.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@11.1.0...@rxap/schematics-open-api@11.1.1) (2021-04-30)
358
221
 
359
-
360
222
  ### Bug Fixes
361
223
 
362
- * update build target to es6 ([6418b27](https://gitlab.com/rxap/schematics/commit/6418b27af301db0c794bb584504d786ad20cfe8c))
363
-
364
-
365
-
366
-
224
+ - update build target toes6 ([6418b27](https://gitlab.com/rxap/schematics/commit/6418b27af301db0c794bb584504d786ad20cfe8c))
367
225
 
368
226
  # 11.1.0 (2021-04-30)
369
227
 
370
-
371
228
  ### Bug Fixes
372
229
 
373
- * add support for custom options object ([181aa69](https://gitlab.com/rxap/schematics/commit/181aa69a49a5ed48a2db5ba51b420c759b091c31))
374
-
230
+ - add support for custom optionsobject ([181aa69](https://gitlab.com/rxap/schematics/commit/181aa69a49a5ed48a2db5ba51b420c759b091c31))
375
231
 
376
232
  ### Features
377
233
 
378
- * add IsCollectionResponse function ([61e13a9](https://gitlab.com/rxap/schematics/commit/61e13a954b4e92140fd4b18c9ff0a2688d7a359b))
234
+ - add IsCollectionResponsefunction ([61e13a9](https://gitlab.com/rxap/schematics/commit/61e13a954b4e92140fd4b18c9ff0a2688d7a359b))
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
- @rxap/schematics-open-api
2
- ======
1
+ # @rxap/schematics-open-api
3
2
 
4
3
  [![npm version](https://img.shields.io/npm/v/@rxap/schematics-open-api?style=flat-square)](https://www.npmjs.com/package/@rxap/schematics-open-api)
5
4
  [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/)
@@ -8,13 +7,15 @@
8
7
  ![npm](https://img.shields.io/npm/dm/@rxap/schematics-open-api)
9
8
  ![NPM](https://img.shields.io/npm/l/@rxap/schematics-open-api)
10
9
 
11
- >
12
-
13
10
  - [Installation](#installation)
14
11
 
15
12
  # Installation
16
13
 
14
+ **Add the package to your workspace:**
15
+ ```bash
16
+ yarn add @rxap/schematics-open-api
17
17
  ```
18
- yarn add @rxap/schematics-open-api @rxap/json-schema-to-typescript@^16.0.0-dev.0 @rxap/schematics-utilities@^16.0.0-dev.1
18
+ **Install peer dependencies:**
19
+ ```bash
20
+ yarn add
19
21
  ```
20
-
@@ -0,0 +1,9 @@
1
+ {
2
+ "schematics": {
3
+ "generate": {
4
+ "factory": "./src/schematics/generate/index",
5
+ "schema": "./src/schematics/generate/schema.json",
6
+ "description": "Generates for each operation a remote method or data source"
7
+ }
8
+ }
9
+ }
package/package.json CHANGED
@@ -1,49 +1,67 @@
1
1
  {
2
2
  "name": "@rxap/schematics-open-api",
3
- "version": "16.0.0-dev.3",
3
+ "version": "16.0.0-dev.5",
4
+ "type": "commonjs",
4
5
  "dependencies": {
5
- "semver": "^7.3.5",
6
- "tslib": "^2.3.1"
6
+ "@apidevtools/json-schema-ref-parser": "9.0.9",
7
+ "openapi-types": "10.0.0",
8
+ "semver": "7.5.3",
9
+ "tslib": "2.5.3"
7
10
  },
8
- "schematics": "./schematics/collection.json",
9
- "ng-update": {
10
- "migrations": "./migration.json",
11
- "packageGroup": [
12
- "@rxap/json-schema-to-typescript",
13
- "@rxap/schematics-open-api",
14
- "@rxap/schematics-utilities"
15
- ]
11
+ "peerDependencies": {
12
+ "@angular-devkit/core": "^16.1.4",
13
+ "@angular-devkit/schematics": "^16.1.4",
14
+ "@rxap/json-schema-to-typescript": "^16.0.0-dev.3",
15
+ "@rxap/schematics-ts-morph": "^16.0.0-dev.4",
16
+ "@rxap/schematics-utilities": "^16.0.0-dev.4",
17
+ "@rxap/utilities": "^16.0.0-dev.2",
18
+ "ts-morph": "^18.0.0",
19
+ "@rxap/node-utilities": "1.0.1-dev.1"
16
20
  },
17
21
  "publishConfig": {
18
- "directory": "../../dist/libs/open-api",
19
- "access": "public"
22
+ "access": "public",
23
+ "directory": "../../../dist/packages/schematic/open-api"
20
24
  },
21
- "main": "src/index.js",
22
- "ng-add": {
23
- "save": "devDependencies"
24
- },
25
- "license": "GPL-3.0",
26
25
  "keywords": [
27
- "rxap",
28
- "angular",
29
- "schematics",
30
- "open-api"
26
+ "rxap"
31
27
  ],
32
- "repository": "git@gitlab.com:rxap/packages.git",
33
- "homepage": "https://gitlab.com/rxap/schematics",
34
- "author": "Merzough Münker",
35
- "private": false,
28
+ "homepage": "https:/gitlab.com/rxap/packages/packages/schematic/open-api",
36
29
  "bugs": {
37
- "url": "https://gitlab.com/rxap/plugins/-/issues",
30
+ "url": "https://gitlab.com/rxap/packages/-/issues",
38
31
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
39
32
  },
40
- "peerDependencies": {
41
- "@angular-devkit/schematics": "^16.0.2",
42
- "@apidevtools/json-schema-ref-parser": "^9.1.0",
43
- "@rxap/json-schema-to-typescript": "^16.0.0-dev.0",
44
- "@rxap/schematics-utilities": "^16.0.0-dev.2",
45
- "openapi-types": "^10.0.0",
46
- "ts-morph": "^13.0.3"
33
+ "license": "GPL-3.0-or-later",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://gitlab.com/rxap/packages.git",
37
+ "directory": "packages/schematic/open-api"
38
+ },
39
+ "author": {
40
+ "name": "Merzough Münker",
41
+ "email": "mmuenker@digitaix.com"
42
+ },
43
+ "schematics": "./collection.json",
44
+ "nx-migrations": {
45
+ "packageGroup": [
46
+ {
47
+ "package": "@rxap/json-schema-to-typescript",
48
+ "version": "16.0.0-dev.3"
49
+ },
50
+ {
51
+ "package": "@rxap/schematics-ts-morph",
52
+ "version": "16.0.0-dev.4"
53
+ },
54
+ {
55
+ "package": "@rxap/schematics-utilities",
56
+ "version": "16.0.0-dev.4"
57
+ },
58
+ {
59
+ "package": "@rxap/utilities",
60
+ "version": "16.0.0-dev.2"
61
+ }
62
+ ]
47
63
  },
64
+ "gitHead": "9ad96f2d4db9225ab199d03fc172efff52609d5d",
65
+ "main": "./src/index.js",
48
66
  "types": "./src/index.d.ts"
49
67
  }
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/open-api/src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,0DAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/schematic/open-api/src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,0DAAgC"}
@@ -1 +1 @@
1
- {"version":3,"file":"clear-operation.js","sourceRoot":"","sources":["../../../../../libs/open-api/src/lib/clear-operation.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAE5B,SAAgB,cAAc,CAC5B,QAAkB,EAClB,WAAmB,EAAE;IAErB,OAAO,IAAI,CAAC,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,kCAAkC,QAAQ,oBAAoB,QAAQ,GAAG,CAAC,CAAC;QACzF,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;YAC3B,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YACtC,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;gBACzB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;aACvB;iBAAM;gBACL,OAAO,CAAC,KAAK,CAAC,SAAS,QAAQ,oBAAoB,CAAC,CAAC;aACtD;SACF;IACH,CAAC,CAAC;AACJ,CAAC;AAfD,wCAeC"}
1
+ {"version":3,"file":"clear-operation.js","sourceRoot":"","sources":["../../../../../../packages/schematic/open-api/src/lib/clear-operation.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAE5B,SAAgB,cAAc,CAC5B,QAAkB,EAClB,QAAQ,GAAG,EAAE;IAEb,OAAO,IAAI,CAAC,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,kCAAmC,QAAS,oBAAqB,QAAS,GAAG,CAAC,CAAC;QAC7F,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;YAC3B,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YACtC,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;gBACzB,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;aACvB;iBAAM;gBACL,OAAO,CAAC,KAAK,CAAC,SAAU,QAAS,oBAAoB,CAAC,CAAC;aACxD;SACF;IACH,CAAC,CAAC;AACJ,CAAC;AAfD,wCAeC"}
@@ -7,7 +7,7 @@ function CoerceOpenApiProject(project, prefix, directory) {
7
7
  return (host) => {
8
8
  const angularJson = (0, schematics_utilities_1.GetAngularJson)(host);
9
9
  const projectName = `${directory ? directory.split('/').join('-') + '-' : ''}${project}`;
10
- if (!angularJson.projects.hasOwnProperty(projectName)) {
10
+ if (!angularJson.projects[projectName]) {
11
11
  const defaultProject = angularJson.projects[angularJson.defaultProject];
12
12
  const defaultProjectPrefix = prefix !== null && prefix !== void 0 ? prefix : defaultProject.prefix;
13
13
  return (0, schematics_1.chain)([
@@ -24,13 +24,13 @@ function CoerceOpenApiProject(project, prefix, directory) {
24
24
  if (Object.keys(paths).length) {
25
25
  for (const key of Object.keys(paths)) {
26
26
  if (directory) {
27
- if (key.match(new RegExp(`\/${directory.split('/').join('-')}-${project}$`))) {
27
+ if (key.match(new RegExp(`/${directory.split('/').join('-')}-${project}$`))) {
28
28
  delete paths[key];
29
29
  paths[key + '/*'] = [`libs/${directory}/${project}/src/lib/*`];
30
30
  }
31
31
  }
32
32
  else {
33
- if (key.match(new RegExp(`\/${project}$`))) {
33
+ if (key.match(new RegExp(`/${project}$`))) {
34
34
  delete paths[key];
35
35
  paths[key + '/*'] = [`libs/${project}/src/lib/*`];
36
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"coerce-open-api-project.js","sourceRoot":"","sources":["../../../../../libs/open-api/src/lib/coerce-open-api-project.ts"],"names":[],"mappings":";;;AAAA,2DAAwF;AACxF,qEAA4D;AAE5D,SAAgB,oBAAoB,CAAC,OAAe,EAAE,MAAc,EAAE,SAAkB;IACtF,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,WAAW,GAAG,IAAA,qCAAc,EAAC,IAAI,CAAQ,CAAC;QAEhD,MAAM,WAAW,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC;QAEzF,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE;YACrD,MAAM,cAAc,GAAS,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;YAC9E,MAAM,oBAAoB,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,cAAc,CAAC,MAAM,CAAC;YAC7D,OAAO,IAAA,kBAAK,EAAC;gBACX,IAAA,8BAAiB,EAAC,eAAe,EAAE,SAAS,EAAE;oBAC5C,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE,IAAI,oBAAoB,IAAI,WAAW,EAAE;oBACrD,MAAM;oBACN,SAAS;iBACV,CAAC;gBACF,CAAC,IAAI,EAAE,EAAE;;oBACP,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAC7B,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,0CAAE,QAAQ,EAAE,mCAAI,IAAI,CACrD,CAAC;oBAEF,MAAM,KAAK,GAAG,MAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,eAAe,0CAAE,KAAK,mCAAI,EAAE,CAAC;oBAEzD,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE;wBAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;4BACpC,IAAI,SAAS,EAAE;gCACb,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC,CAAC,EAAE;oCAC5E,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;oCAClB,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,SAAS,IAAI,OAAO,YAAY,CAAC,CAAC;iCAChE;6BACF;iCAAM;gCACL,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,KAAK,OAAO,GAAG,CAAC,CAAC,EAAE;oCAC1C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;oCAClB,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,OAAO,YAAY,CAAC,CAAC;iCACnD;6BACF;yBACF;wBAED,IAAI,CAAC,SAAS,CACZ,qBAAqB,EACrB,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,CAC3C,CAAC;qBACH;gBACH,CAAC;aACF,CAAC,CAAC;SACJ;QAED,OAAO,IAAA,iBAAI,GAAE,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC;AAjDD,oDAiDC"}
1
+ {"version":3,"file":"coerce-open-api-project.js","sourceRoot":"","sources":["../../../../../../packages/schematic/open-api/src/lib/coerce-open-api-project.ts"],"names":[],"mappings":";;;AAAA,2DAMoC;AACpC,qEAA4D;AAE5D,SAAgB,oBAAoB,CAAC,OAAe,EAAE,MAAc,EAAE,SAAkB;IACtF,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,WAAW,GAAG,IAAA,qCAAc,EAAC,IAAI,CAAQ,CAAC;QAEhD,MAAM,WAAW,GAAG,GAAI,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAG,GAAI,OAAQ,EAAE,CAAC;QAE7F,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;YACtC,MAAM,cAAc,GAAG,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;YACxE,MAAM,oBAAoB,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,cAAc,CAAC,MAAM,CAAC;YAC7D,OAAO,IAAA,kBAAK,EAAC;gBACX,IAAA,8BAAiB,EAAC,eAAe,EAAE,SAAS,EAAE;oBAC5C,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE,IAAK,oBAAqB,IAAK,WAAY,EAAE;oBACzD,MAAM;oBACN,SAAS;iBACV,CAAC;gBACF,CAAC,IAAI,EAAE,EAAE;;oBACP,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAC7B,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,0CAAE,QAAQ,EAAE,mCAAI,IAAI,CACrD,CAAC;oBAEF,MAAM,KAAK,GAAG,MAAA,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,eAAe,0CAAE,KAAK,mCAAI,EAAE,CAAC;oBAEzD,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE;wBAC7B,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;4BACpC,IAAI,SAAS,EAAE;gCACb,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAK,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAE,IAAK,OAAQ,GAAG,CAAC,CAAC,EAAE;oCAC/E,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;oCAClB,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAE,QAAS,SAAU,IAAK,OAAQ,YAAY,CAAE,CAAC;iCACtE;6BACF;iCAAM;gCACL,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAK,OAAQ,GAAG,CAAC,CAAC,EAAE;oCAC3C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;oCAClB,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAE,QAAS,OAAQ,YAAY,CAAE,CAAC;iCACvD;6BACF;yBACF;wBAED,IAAI,CAAC,SAAS,CACZ,qBAAqB,EACrB,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,CAC3C,CAAC;qBACH;gBACH,CAAC;aACF,CAAC,CAAC;SACJ;QAED,OAAO,IAAA,iBAAI,GAAE,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC;AAjDD,oDAiDC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/open-api/src/lib/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,YAAY,CAAC;AAEpC,QAAA,mBAAmB,GAAK,YAAY,CAAC;AACrC,QAAA,qBAAqB,GAAG,WAAW,CAAC;AAEpC,QAAA,kBAAkB,GAAK,WAAW,CAAC;AACnC,QAAA,oBAAoB,GAAG,UAAU,CAAC;AAElC,QAAA,wBAAwB,GAAG,cAAc,CAAC;AAC1C,QAAA,sBAAsB,GAAK,gBAAgB,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../../packages/schematic/open-api/src/lib/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,YAAY,CAAC;AAEpC,QAAA,mBAAmB,GAAG,YAAY,CAAC;AACnC,QAAA,qBAAqB,GAAG,WAAW,CAAC;AAEpC,QAAA,kBAAkB,GAAG,WAAW,CAAC;AACjC,QAAA,oBAAoB,GAAG,UAAU,CAAC;AAElC,QAAA,wBAAwB,GAAG,cAAc,CAAC;AAC1C,QAAA,sBAAsB,GAAG,gBAAgB,CAAC"}
@@ -6,7 +6,10 @@ const json_schema_to_typescript_1 = require("@rxap/json-schema-to-typescript");
6
6
  const config_1 = require("./config");
7
7
  function executeInterfaceBuild(components, project, schema, name) {
8
8
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
- const generator = new json_schema_to_typescript_1.TypescriptInterfaceGenerator(Object.assign(Object.assign({}, schema), { components }), { basePath: config_1.COMPONENTS_BASE_PATH, addImports: true }, project);
9
+ const generator = new json_schema_to_typescript_1.TypescriptInterfaceGenerator(Object.assign(Object.assign({}, schema), { components }), {
10
+ basePath: config_1.COMPONENTS_BASE_PATH,
11
+ addImports: true,
12
+ }, project);
10
13
  console.debug(`Generate component interface for: ${name}`);
11
14
  try {
12
15
  yield generator.build(name);
@@ -1 +1 @@
1
- {"version":3,"file":"generate-components.js","sourceRoot":"","sources":["../../../../../libs/open-api/src/lib/generate-components.ts"],"names":[],"mappings":";;;;AACA,+EAA+E;AAI/E,qCAAgD;AAEhD,SAAe,qBAAqB,CAClC,UAAsC,EACtC,OAAgB,EAChB,MAAkB,EAClB,IAAY;;QAGZ,MAAM,SAAS,GAAG,IAAI,wDAA4B,iCAC3C,MAAM,KAAE,UAAU,KACvB,EAAE,QAAQ,EAAE,6BAAoB,EAAE,UAAU,EAAE,IAAI,EAAE,EACpD,OAAO,CACR,CAAC;QAEF,OAAO,CAAC,KAAK,CAAC,qCAAqC,IAAI,EAAE,CAAC,CAAC;QAE3D,IAAI;YAEF,MAAM,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SAE7B;QAAC,OAAO,KAAU,EAAE;YACnB,OAAO,CAAC,KAAK,CAAC,8CAA8C,IAAI,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;SACpF;IACH,CAAC;CAAA;AAED,SAAgB,kBAAkB,CAChC,UAAsC,EACtC,OAAgB;IAGhB,MAAM,WAAW,GAAyB,EAAE,CAAC;IAE7C,IAAI,UAAU,CAAC,OAAO,EAAE;QACtB,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;YAC/D,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;SAC5E;KACF;IAED,OAAO,WAAW,CAAC;AAErB,CAAC;AAfD,gDAeC"}
1
+ {"version":3,"file":"generate-components.js","sourceRoot":"","sources":["../../../../../../packages/schematic/open-api/src/lib/generate-components.ts"],"names":[],"mappings":";;;;AAAA,+EAA+E;AAI/E,qCAAgD;AAEhD,SAAe,qBAAqB,CAClC,UAAsC,EACtC,OAAgB,EAChB,MAAW,EACX,IAAY;;QAGZ,MAAM,SAAS,GAAG,IAAI,wDAA4B,iCAE3C,MAAM,KACT,UAAU,KAEZ;YACE,QAAQ,EAAE,6BAAoB;YAC9B,UAAU,EAAE,IAAI;SACjB,EACD,OAAO,CACR,CAAC;QAEF,OAAO,CAAC,KAAK,CAAC,qCAAsC,IAAK,EAAE,CAAC,CAAC;QAE7D,IAAI;YAEF,MAAM,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SAE7B;QAAC,OAAO,KAAU,EAAE;YACnB,OAAO,CAAC,KAAK,CAAC,8CAA+C,IAAK,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;SACtF;IACH,CAAC;CAAA;AAED,SAAgB,kBAAkB,CAChC,UAAsC,EACtC,OAAgB;IAGhB,MAAM,WAAW,GAAyB,EAAE,CAAC;IAE7C,IAAI,UAAU,CAAC,OAAO,EAAE;QACtB,KAAK,MAAM,CAAE,IAAI,EAAE,MAAM,CAAE,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;YACjE,WAAW,CAAC,IAAI,CAAC,qBAAqB,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;SAC5E;KACF;IAED,OAAO,WAAW,CAAC;AAErB,CAAC;AAfD,gDAeC"}
@@ -4,7 +4,7 @@ exports.GenerateIndexExports = void 0;
4
4
  const path_1 = require("path");
5
5
  function GenerateIndexExports(project) {
6
6
  const exports = [];
7
- for (let sourceFile of project.getSourceFiles()) {
7
+ for (const sourceFile of project.getSourceFiles()) {
8
8
  sourceFile.getDirectoryPath();
9
9
  exports.push(`export * from '.${(0, path_1.join)('/lib', sourceFile.getDirectoryPath(), sourceFile.getBaseNameWithoutExtension())}';`);
10
10
  }