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

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 +41 -191
  2. package/README.md +7 -6
  3. package/collection.json +9 -0
  4. package/package.json +50 -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,91 @@
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
6
+ # [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)
9
7
 
8
+ ### Bug Fixes
10
9
 
10
+ - restructure and merge mono repos packages, schematics, plugins and nest ([653b4cd](https://gitlab.com/rxap/packages/commit/653b4cd39fc92d322df9b3959651fea0aa6079da))
11
11
 
12
+ # [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)
12
13
 
14
+ **Note:** Version bump only for package @rxap/schematics-open-api
13
15
 
14
16
  # [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
17
 
16
-
17
18
  ### Bug Fixes
18
19
 
19
- * remove deprecated pack target concept ([eeb3748](https://gitlab.com/rxap/schematics/commit/eeb3748be1201fa7f5b3cd05771b95502376d4a3))
20
-
21
-
22
-
23
-
20
+ - remove deprecated pack targetconcept ([eeb3748](https://gitlab.com/rxap/schematics/commit/eeb3748be1201fa7f5b3cd05771b95502376d4a3))
24
21
 
25
22
  # [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)
26
23
 
27
-
28
24
  ### Bug Fixes
29
25
 
30
- * **deps:** update rxap packages to 16.x.x ([f9c2263](https://gitlab.com/rxap/schematics/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
31
-
32
-
33
-
34
-
26
+ - **deps:** update rxap packages to16.x.x ([f9c2263](https://gitlab.com/rxap/schematics/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
35
27
 
36
28
  # [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
29
 
38
-
39
30
  ### chore
40
31
 
41
- * upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/schematics/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
42
-
32
+ - upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/schematics/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
43
33
 
44
34
  ### BREAKING CHANGES
45
35
 
46
- * upgrade to 16.x.x
47
-
48
-
49
-
50
-
36
+ - upgrade to 16.x.x
51
37
 
52
38
  ## [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
39
 
54
-
55
40
  ### Bug Fixes
56
41
 
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
-
42
+ - cleanup serialized open api operationobject ([f5322e0](https://gitlab.com/rxap/schematics/commit/f5322e050f5077d4b4a3fe5fb6f41634bd17f8d7))
43
+ - **schematics:** pre generate interfaceimports ([1b1cf87](https://gitlab.com/rxap/schematics/commit/1b1cf8788e052dfd32c95be47e116aae7cae5caf))
44
+ - **schematics:** update open api schematicspackage ([cc01087](https://gitlab.com/rxap/schematics/commit/cc010878bf2eee788a0f61e3b2dbfa1a08b45bd8))
45
+ - support open api projects with subdirectories ([73c88f9](https://gitlab.com/rxap/schematics/commit/73c88f9473770df4063b487d646f68243d011b1c))
65
46
 
66
47
  # [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
48
 
68
-
69
49
  ### chore
70
50
 
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
-
51
+ - upgrade to nrwl 15.x.x ([c0a94f6](https://gitlab.com/rxap/schematics/commit/c0a94f6b044213fe55dbda0634bef60859daa345))
52
+ - upgrade to nrwl 15.x.x ([de2b991](https://gitlab.com/rxap/schematics/commit/de2b99196ee6d388f37efd17b464a5bfa744de7e))
74
53
 
75
54
  ### BREAKING CHANGES
76
55
 
77
- * upgrade nrwl 15.x.x
78
- * upgrade nrwl 15.x.x
79
-
80
-
81
-
82
-
56
+ - upgrade nrwl 15.x.x
57
+ - upgrade nrwl 15.x.x
83
58
 
84
59
  ## [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
60
 
86
61
  **Note:** Version bump only for package @rxap/schematics-open-api
87
62
 
88
-
89
-
90
-
91
-
92
63
  # [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
64
 
94
-
95
65
  ### Bug Fixes
96
66
 
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
-
67
+ - async generatorexecution ([ebca4f0](https://gitlab.com/rxap/schematics/commit/ebca4f0187cfcb8255824ed89172db708e7ae862))
68
+ - only create type if defined and prefervoid ([34bb6ce](https://gitlab.com/rxap/schematics/commit/34bb6ce9bc140d5e941fbcb574f179b3741fc824))
69
+ - only create type if defined and prefervoid ([6cf0827](https://gitlab.com/rxap/schematics/commit/6cf08271d6745f24ef8888e666a699f67292bb27))
70
+ - use any return type ([85c1959](https://gitlab.com/rxap/schematics/commit/85c19598c619c77e7cdbc7013d4b51eb6781fb5f))
102
71
 
103
72
  ### Features
104
73
 
105
- * add coerce open api project function ([8eafe9d](https://gitlab.com/rxap/schematics/commit/8eafe9d2acf7f21dbe0a48c5b80d0a9502597233))
106
-
107
-
108
-
109
-
74
+ - add coerce open api projectfunction ([8eafe9d](https://gitlab.com/rxap/schematics/commit/8eafe9d2acf7f21dbe0a48c5b80d0a9502597233))
110
75
 
111
76
  ## [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
77
 
113
-
114
78
  ### Bug Fixes
115
79
 
116
- * update package json deps ([99c7002](https://gitlab.com/rxap/schematics/commit/99c70028a34927902ece991748a7d0fc857c5223))
117
-
118
-
119
-
120
-
80
+ - update package jsondeps ([99c7002](https://gitlab.com/rxap/schematics/commit/99c70028a34927902ece991748a7d0fc857c5223))
121
81
 
122
82
  # [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
83
 
124
-
125
84
  ### chore
126
85
 
127
- * upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/schematics/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
128
-
86
+ - upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/schematics/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
129
87
 
130
88
  ### BREAKING CHANGES
131
89
 
132
- * upgrade to 14.x.x
133
-
134
-
135
-
136
-
90
+ - upgrade to 14.x.x
137
91
 
138
92
  # [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
93
 
@@ -143,236 +97,132 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
143
97
 
144
98
  ### Bug Fixes
145
99
 
146
- * update typescript generator
147
- package ([3bd311c](https://gitlab.com/rxap/schematics/commit/3bd311ca5697bdbed598cdf8c9ec44f297fd2215))
100
+ - update typescript generatorpackage ([3bd311c](https://gitlab.com/rxap/schematics/commit/3bd311ca5697bdbed598cdf8c9ec44f297fd2215))
148
101
 
149
102
  # [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
103
 
151
-
152
104
  ### Bug Fixes
153
105
 
154
- * convert ref into object for parameters ([81f8f9e](https://gitlab.com/rxap/schematics/commit/81f8f9e02b8feffe24ca43ee0684740bd59e0f88))
155
-
156
-
157
-
158
-
106
+ - convert ref into object forparameters ([81f8f9e](https://gitlab.com/rxap/schematics/commit/81f8f9e02b8feffe24ca43ee0684740bd59e0f88))
159
107
 
160
108
  # [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
109
 
162
110
  **Note:** Version bump only for package @rxap/schematics-open-api
163
111
 
164
-
165
-
166
-
167
-
168
112
  # [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
113
 
170
-
171
114
  ### Bug Fixes
172
115
 
173
- * remove rxap/utilities dependency ([d8dfe16](https://gitlab.com/rxap/schematics/commit/d8dfe168f5d3afd5cd88d4fd143bd2c7b2c687b7))
174
-
175
-
176
-
177
-
116
+ - remove rxap/utilitiesdependency ([d8dfe16](https://gitlab.com/rxap/schematics/commit/d8dfe168f5d3afd5cd88d4fd143bd2c7b2c687b7))
178
117
 
179
118
  # [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
119
 
181
-
182
120
  ### Build System
183
121
 
184
- * upgrade to nrwl 13.x.x ([5cd07c1](https://gitlab.com/rxap/schematics/commit/5cd07c19645528c787ef01a121a4a4367db78902))
185
-
122
+ - upgrade to nrwl 13.x.x ([5cd07c1](https://gitlab.com/rxap/schematics/commit/5cd07c19645528c787ef01a121a4a4367db78902))
186
123
 
187
124
  ### BREAKING CHANGES
188
125
 
189
- * update the core nrwl packages to 13.x.x
126
+ - update the core nrwl packages to 13.x.x
190
127
 
191
128
  Signed-off-by: Merzough Münker <mmuenker@digitaix.com>
192
129
 
193
-
194
-
195
-
196
-
197
130
  ## [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
131
 
199
-
200
132
  ### Bug Fixes
201
133
 
202
- * add missing peer dependencies ([83481ea](https://gitlab.com/rxap/schematics/commit/83481eafb7912aef4e9574abc416edfd5f025898))
203
-
204
-
205
-
206
-
134
+ - add missing peerdependencies ([83481ea](https://gitlab.com/rxap/schematics/commit/83481eafb7912aef4e9574abc416edfd5f025898))
207
135
 
208
136
  ## [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
137
 
210
138
  **Note:** Version bump only for package @rxap/schematics-open-api
211
139
 
212
-
213
-
214
-
215
-
216
140
  ## [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
141
 
218
142
  **Note:** Version bump only for package @rxap/schematics-open-api
219
143
 
220
-
221
-
222
-
223
-
224
144
  ## [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
145
 
226
146
  **Note:** Version bump only for package @rxap/schematics-open-api
227
147
 
228
-
229
-
230
-
231
-
232
148
  ## [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
149
 
234
150
  **Note:** Version bump only for package @rxap/schematics-open-api
235
151
 
236
-
237
-
238
-
239
-
240
152
  ## [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
153
 
242
154
  **Note:** Version bump only for package @rxap/schematics-open-api
243
155
 
244
-
245
-
246
-
247
-
248
156
  ## [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
157
 
250
-
251
158
  ### Bug Fixes
252
159
 
253
- * set correct peerDependencies and dependencies ([92c5eae](https://gitlab.com/rxap/schematics/commit/92c5eae7eb84c65381ed005da1900ce5f0ce80a3))
254
-
255
-
256
-
257
-
160
+ - set correct peerDependencies anddependencies ([92c5eae](https://gitlab.com/rxap/schematics/commit/92c5eae7eb84c65381ed005da1900ce5f0ce80a3))
258
161
 
259
162
  ## 12.0.3 (2021-06-14)
260
163
 
261
164
  **Note:** Version bump only for package @rxap/schematics-open-api
262
165
 
263
-
264
-
265
-
266
-
267
166
  ## [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
167
 
269
168
  **Note:** Version bump only for package @rxap/schematics-open-api
270
169
 
271
-
272
-
273
-
274
-
275
170
  ## [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
171
 
277
172
  **Note:** Version bump only for package @rxap/schematics-open-api
278
173
 
279
-
280
-
281
-
282
-
283
174
  # [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
175
 
285
176
  **Note:** Version bump only for package @rxap/schematics-open-api
286
177
 
287
-
288
-
289
-
290
-
291
178
  # [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
179
 
293
-
294
180
  ### Features
295
181
 
296
- * add GenerateIndexExports Function ([e3fce4c](https://gitlab.com/rxap/schematics/commit/e3fce4cf3104f77c8122ff257ba69f3968cff6a4))
297
-
298
-
299
-
300
-
182
+ - add GenerateIndexExportsFunction ([e3fce4c](https://gitlab.com/rxap/schematics/commit/e3fce4cf3104f77c8122ff257ba69f3968cff6a4))
301
183
 
302
184
  ## [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
185
 
304
-
305
186
  ### Bug Fixes
306
187
 
307
- * add missing export ([0f1d683](https://gitlab.com/rxap/schematics/commit/0f1d683108952b5658eb08e59f4f504183dbe17d))
308
-
309
-
310
-
311
-
188
+ - add missing export ([0f1d683](https://gitlab.com/rxap/schematics/commit/0f1d683108952b5658eb08e59f4f504183dbe17d))
312
189
 
313
190
  ## [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
191
 
315
-
316
192
  ### Bug Fixes
317
193
 
318
- * **schematics:** add support for void request body type ([6b49540](https://gitlab.com/rxap/schematics/commit/6b49540ba3c0248dc107ad7c76a344ee1daeb771))
319
-
320
-
321
-
322
-
194
+ - **schematics:** add support for void request bodytype ([6b49540](https://gitlab.com/rxap/schematics/commit/6b49540ba3c0248dc107ad7c76a344ee1daeb771))
323
195
 
324
196
  ## [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
197
 
326
-
327
198
  ### Bug Fixes
328
199
 
329
- * **schematics:** add support for void request body type ([0feac0f](https://gitlab.com/rxap/schematics/commit/0feac0f0e5447dfafc8e51166b2d63cf66fce208))
330
-
331
-
332
-
333
-
200
+ - **schematics:** add support for void request bodytype ([0feac0f](https://gitlab.com/rxap/schematics/commit/0feac0f0e5447dfafc8e51166b2d63cf66fce208))
334
201
 
335
202
  # [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
203
 
337
-
338
204
  ### Features
339
205
 
340
- * add ClearOperation function ([c6fe1b2](https://gitlab.com/rxap/schematics/commit/c6fe1b2497d36e9668d9d18513f584d656f973dd))
341
-
342
-
343
-
344
-
206
+ - add ClearOperationfunction ([c6fe1b2](https://gitlab.com/rxap/schematics/commit/c6fe1b2497d36e9668d9d18513f584d656f973dd))
345
207
 
346
208
  ## [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
209
 
348
-
349
210
  ### Bug Fixes
350
211
 
351
- * **schematics:** change module to commonjs ([39a3700](https://gitlab.com/rxap/schematics/commit/39a3700a1d1194a81fb9e7944288984f64b46b88))
352
-
353
-
354
-
355
-
212
+ - **schematics:** change module tocommonjs ([39a3700](https://gitlab.com/rxap/schematics/commit/39a3700a1d1194a81fb9e7944288984f64b46b88))
356
213
 
357
214
  ## [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
215
 
359
-
360
216
  ### Bug Fixes
361
217
 
362
- * update build target to es6 ([6418b27](https://gitlab.com/rxap/schematics/commit/6418b27af301db0c794bb584504d786ad20cfe8c))
363
-
364
-
365
-
366
-
218
+ - update build target toes6 ([6418b27](https://gitlab.com/rxap/schematics/commit/6418b27af301db0c794bb584504d786ad20cfe8c))
367
219
 
368
220
  # 11.1.0 (2021-04-30)
369
221
 
370
-
371
222
  ### Bug Fixes
372
223
 
373
- * add support for custom options object ([181aa69](https://gitlab.com/rxap/schematics/commit/181aa69a49a5ed48a2db5ba51b420c759b091c31))
374
-
224
+ - add support for custom optionsobject ([181aa69](https://gitlab.com/rxap/schematics/commit/181aa69a49a5ed48a2db5ba51b420c759b091c31))
375
225
 
376
226
  ### Features
377
227
 
378
- * add IsCollectionResponse function ([61e13a9](https://gitlab.com/rxap/schematics/commit/61e13a954b4e92140fd4b18c9ff0a2688d7a359b))
228
+ - 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,65 @@
1
1
  {
2
2
  "name": "@rxap/schematics-open-api",
3
- "version": "16.0.0-dev.3",
3
+ "version": "16.0.0-dev.4",
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.0.0",
13
+ "@angular-devkit/schematics": "^16.0.0",
14
+ "@rxap/json-schema-to-typescript": "^16.0.0-dev.3",
15
+ "@rxap/schematics-ts-morph": "^16.0.0-dev.3",
16
+ "@rxap/schematics-utilities": "^16.0.0-dev.3",
17
+ "@rxap/utilities": "^16.0.0-dev.2",
18
+ "ts-morph": "^18.0.0"
16
19
  },
17
20
  "publishConfig": {
18
- "directory": "../../dist/libs/open-api",
19
- "access": "public"
21
+ "access": "public",
22
+ "directory": "../../../dist/packages/schematic/open-api"
20
23
  },
21
- "main": "src/index.js",
22
- "ng-add": {
23
- "save": "devDependencies"
24
- },
25
- "license": "GPL-3.0",
26
24
  "keywords": [
27
- "rxap",
28
- "angular",
29
- "schematics",
30
- "open-api"
25
+ "rxap"
31
26
  ],
32
- "repository": "git@gitlab.com:rxap/packages.git",
33
- "homepage": "https://gitlab.com/rxap/schematics",
34
- "author": "Merzough Münker",
35
- "private": false,
27
+ "homepage": "https:/gitlab.com/rxap/packages/packages/schematic/open-api",
36
28
  "bugs": {
37
- "url": "https://gitlab.com/rxap/plugins/-/issues",
29
+ "url": "https://gitlab.com/rxap/packages/-/issues",
38
30
  "email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
39
31
  },
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"
32
+ "license": "GPL-3.0-or-later",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://gitlab.com/rxap/packages.git",
36
+ "directory": "packages/schematic/open-api"
37
+ },
38
+ "author": {
39
+ "name": "Merzough Münker",
40
+ "email": "mmuenker@digitaix.com"
41
+ },
42
+ "schematics": "./collection.json",
43
+ "nx-migrations": {
44
+ "packageGroup": [
45
+ {
46
+ "package": "@rxap/json-schema-to-typescript",
47
+ "version": "16.0.0-dev.3"
48
+ },
49
+ {
50
+ "package": "@rxap/schematics-ts-morph",
51
+ "version": "16.0.0-dev.3"
52
+ },
53
+ {
54
+ "package": "@rxap/schematics-utilities",
55
+ "version": "16.0.0-dev.3"
56
+ },
57
+ {
58
+ "package": "@rxap/utilities",
59
+ "version": "16.0.0-dev.2"
60
+ }
61
+ ]
47
62
  },
63
+ "main": "./src/index.js",
48
64
  "types": "./src/index.d.ts"
49
65
  }
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
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generate-index-exports.js","sourceRoot":"","sources":["../../../../../libs/open-api/src/lib/generate-index-exports.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAE5B,SAAgB,oBAAoB,CAAC,OAAgB;IAEnD,MAAM,OAAO,GAAa,EAAE,CAAC;IAE7B,KAAK,IAAI,UAAU,IAAI,OAAO,CAAC,cAAc,EAAE,EAAE;QAE/C,UAAU,CAAC,gBAAgB,EAAE,CAAC;QAE9B,OAAO,CAAC,IAAI,CAAC,mBAAmB,IAAA,WAAI,EAAC,MAAM,EAAE,UAAU,CAAC,gBAAgB,EAAE,EAAE,UAAU,CAAC,2BAA2B,EAAE,CAAC,IAAI,CAAC,CAAC;KAE5H;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE5B,CAAC;AAdD,oDAcC"}
1
+ {"version":3,"file":"generate-index-exports.js","sourceRoot":"","sources":["../../../../../../packages/schematic/open-api/src/lib/generate-index-exports.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAE5B,SAAgB,oBAAoB,CAAC,OAAgB;IAEnD,MAAM,OAAO,GAAa,EAAE,CAAC;IAE7B,KAAK,MAAM,UAAU,IAAI,OAAO,CAAC,cAAc,EAAE,EAAE;QAEjD,UAAU,CAAC,gBAAgB,EAAE,CAAC;QAE9B,OAAO,CAAC,IAAI,CAAC,mBAAoB,IAAA,WAAI,EACnC,MAAM,EACN,UAAU,CAAC,gBAAgB,EAAE,EAC7B,UAAU,CAAC,2BAA2B,EAAE,CACxC,IAAI,CAAC,CAAC;KAET;IAED,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAE5B,CAAC;AAlBD,oDAkBC"}