@rxap/schematics-open-api 16.0.0-dev.2 → 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 (78) hide show
  1. package/CHANGELOG.md +73 -215
  2. package/README.md +7 -6
  3. package/collection.json +9 -0
  4. package/package.json +50 -34
  5. package/src/index.d.ts +2 -27
  6. package/src/index.js +2 -29
  7. package/src/index.js.map +1 -1
  8. package/src/lib/clear-operation.js.map +1 -1
  9. package/src/lib/coerce-open-api-project.js +3 -3
  10. package/src/lib/coerce-open-api-project.js.map +1 -1
  11. package/src/lib/config.js.map +1 -1
  12. package/src/lib/generate-components.js +4 -1
  13. package/src/lib/generate-components.js.map +1 -1
  14. package/src/lib/generate-index-exports.js +1 -1
  15. package/src/lib/generate-index-exports.js.map +1 -1
  16. package/src/lib/generate-operation.js.map +1 -1
  17. package/src/lib/generate-parameters.js +6 -2
  18. package/src/lib/generate-parameters.js.map +1 -1
  19. package/src/lib/generate-request-body.js +5 -1
  20. package/src/lib/generate-request-body.js.map +1 -1
  21. package/src/lib/generate-response.js +5 -1
  22. package/src/lib/generate-response.js.map +1 -1
  23. package/src/lib/index.d.ts +11 -0
  24. package/src/lib/index.js +15 -0
  25. package/src/lib/index.js.map +1 -0
  26. package/src/lib/load-open-api-config.js.map +1 -1
  27. package/src/lib/types.js.map +1 -1
  28. package/src/lib/utilities/any-schema-object.js +1 -1
  29. package/src/lib/utilities/any-schema-object.js.map +1 -1
  30. package/src/lib/utilities/get-parameter-type.js.map +1 -1
  31. package/src/lib/utilities/get-reqeust-body.js +2 -2
  32. package/src/lib/utilities/get-reqeust-body.js.map +1 -1
  33. package/src/lib/utilities/get-request-body-type.js.map +1 -1
  34. package/src/lib/utilities/get-response-type.js.map +1 -1
  35. package/src/lib/utilities/get-response.js +5 -5
  36. package/src/lib/utilities/get-response.js.map +1 -1
  37. package/src/lib/utilities/has-operation-paramters.js.map +1 -1
  38. package/src/lib/utilities/has-operation-request-body.js.map +1 -1
  39. package/src/lib/utilities/http-request.js +3 -1
  40. package/src/lib/utilities/http-request.js.map +1 -1
  41. package/src/lib/utilities/ignore-operation.js.map +1 -1
  42. package/src/lib/utilities/index.d.ts +16 -0
  43. package/src/lib/utilities/index.js +20 -0
  44. package/src/lib/utilities/index.js.map +1 -0
  45. package/src/lib/utilities/is-collection-response.js.map +1 -1
  46. package/src/lib/utilities/is-http-method.js.map +1 -1
  47. package/src/lib/utilities/is-open-api-schema-from-path.js +2 -1
  48. package/src/lib/utilities/is-open-api-schema-from-path.js.map +1 -1
  49. package/src/lib/utilities/is-operation-object.js +1 -1
  50. package/src/lib/utilities/is-operation-object.js.map +1 -1
  51. package/src/lib/utilities/is-reference-object.js +1 -1
  52. package/src/lib/utilities/is-reference-object.js.map +1 -1
  53. package/src/lib/utilities/is-without-parameters.js.map +1 -1
  54. package/src/schematics/generate/coerce-open-api-project.d.ts +5 -0
  55. package/src/schematics/generate/coerce-open-api-project.js +52 -0
  56. package/src/schematics/generate/coerce-open-api-project.js.map +1 -0
  57. package/src/schematics/generate/const.d.ts +4 -0
  58. package/src/schematics/generate/const.js +8 -0
  59. package/src/schematics/generate/const.js.map +1 -0
  60. package/src/schematics/generate/create-directive.d.ts +2 -0
  61. package/src/schematics/generate/create-directive.js +292 -0
  62. package/src/schematics/generate/create-directive.js.map +1 -0
  63. package/src/schematics/generate/generate-openapi-provider.d.ts +3 -0
  64. package/src/schematics/generate/generate-openapi-provider.js +41 -0
  65. package/src/schematics/generate/generate-openapi-provider.js.map +1 -0
  66. package/src/schematics/generate/generate-remote-method.d.ts +3 -0
  67. package/src/schematics/generate/generate-remote-method.js +176 -0
  68. package/src/schematics/generate/generate-remote-method.js.map +1 -0
  69. package/src/schematics/generate/index.d.ts +3 -0
  70. package/src/schematics/generate/index.js +100 -0
  71. package/src/schematics/generate/index.js.map +1 -0
  72. package/src/schematics/generate/options.d.ts +14 -0
  73. package/src/schematics/generate/options.js +3 -0
  74. package/src/schematics/generate/options.js.map +1 -0
  75. package/src/schematics/generate/schema.d.ts +23 -0
  76. package/src/schematics/generate/schema.json +116 -0
  77. package/LICENSE +0 -630
  78. package/migration.json +0 -4
package/CHANGELOG.md CHANGED
@@ -3,368 +3,226 @@
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.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@16.0.0-dev.1...@rxap/schematics-open-api@16.0.0-dev.2) (2023-05-18)
7
-
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)
8
7
 
9
8
  ### Bug Fixes
10
9
 
11
- * remove deprecated pack target concept ([eeb3748](https://gitlab.com/rxap/packages/commit/eeb3748be1201fa7f5b3cd05771b95502376d4a3))
12
-
13
-
10
+ - restructure and merge mono repos packages, schematics, plugins and nest ([653b4cd](https://gitlab.com/rxap/packages/commit/653b4cd39fc92d322df9b3959651fea0aa6079da))
14
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)
15
13
 
14
+ **Note:** Version bump only for package @rxap/schematics-open-api
16
15
 
17
- # [16.0.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@16.0.0-dev.0...@rxap/schematics-open-api@16.0.0-dev.1) (2023-05-18)
18
-
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)
19
17
 
20
18
  ### Bug Fixes
21
19
 
22
- * **deps:** update rxap packages to 16.x.x ([f9c2263](https://gitlab.com/rxap/packages/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
23
-
24
-
20
+ - remove deprecated pack targetconcept ([eeb3748](https://gitlab.com/rxap/schematics/commit/eeb3748be1201fa7f5b3cd05771b95502376d4a3))
25
21
 
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
 
24
+ ### Bug Fixes
27
25
 
28
- # [16.0.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@15.0.1...@rxap/schematics-open-api@16.0.0-dev.0) (2023-05-17)
26
+ - **deps:** update rxap packages to16.x.x ([f9c2263](https://gitlab.com/rxap/schematics/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
29
27
 
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)
30
29
 
31
30
  ### chore
32
31
 
33
- * upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/packages/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
34
-
32
+ - upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/schematics/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
35
33
 
36
34
  ### BREAKING CHANGES
37
35
 
38
- * upgrade to 16.x.x
39
-
40
-
41
-
42
-
43
-
44
- ## [15.0.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@15.0.0...@rxap/schematics-open-api@15.0.1) (2023-05-17)
36
+ - upgrade to 16.x.x
45
37
 
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)
46
39
 
47
40
  ### Bug Fixes
48
41
 
49
- * cleanup serialized open api operation object ([f5322e0](https://gitlab.com/rxap/packages/commit/f5322e050f5077d4b4a3fe5fb6f41634bd17f8d7))
50
- * **schematics:** pre generate interface imports ([1b1cf87](https://gitlab.com/rxap/packages/commit/1b1cf8788e052dfd32c95be47e116aae7cae5caf))
51
- * **schematics:** update open api schematics package ([cc01087](https://gitlab.com/rxap/packages/commit/cc010878bf2eee788a0f61e3b2dbfa1a08b45bd8))
52
- * support open api projects with sub directories ([73c88f9](https://gitlab.com/rxap/packages/commit/73c88f9473770df4063b487d646f68243d011b1c))
53
-
54
-
55
-
56
-
57
-
58
- # [15.0.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@14.1.1...@rxap/schematics-open-api@15.0.0) (2022-12-14)
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))
59
46
 
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)
60
48
 
61
49
  ### chore
62
50
 
63
- * upgrade to nrwl 15.x.x ([c0a94f6](https://gitlab.com/rxap/packages/commit/c0a94f6b044213fe55dbda0634bef60859daa345))
64
- * upgrade to nrwl 15.x.x ([de2b991](https://gitlab.com/rxap/packages/commit/de2b99196ee6d388f37efd17b464a5bfa744de7e))
65
-
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))
66
53
 
67
54
  ### BREAKING CHANGES
68
55
 
69
- * upgrade nrwl 15.x.x
70
- * upgrade nrwl 15.x.x
71
-
72
-
73
-
74
-
56
+ - upgrade nrwl 15.x.x
57
+ - upgrade nrwl 15.x.x
75
58
 
76
- ## [14.1.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@14.1.0...@rxap/schematics-open-api@14.1.1) (2022-12-14)
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)
77
60
 
78
61
  **Note:** Version bump only for package @rxap/schematics-open-api
79
62
 
80
-
81
-
82
-
83
-
84
- # [14.1.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@14.0.1...@rxap/schematics-open-api@14.1.0) (2022-12-13)
85
-
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)
86
64
 
87
65
  ### Bug Fixes
88
66
 
89
- * async generator execution ([ebca4f0](https://gitlab.com/rxap/packages/commit/ebca4f0187cfcb8255824ed89172db708e7ae862))
90
- * only create type if defined and prefer void ([34bb6ce](https://gitlab.com/rxap/packages/commit/34bb6ce9bc140d5e941fbcb574f179b3741fc824))
91
- * only create type if defined and prefer void ([6cf0827](https://gitlab.com/rxap/packages/commit/6cf08271d6745f24ef8888e666a699f67292bb27))
92
- * use any return type ([85c1959](https://gitlab.com/rxap/packages/commit/85c19598c619c77e7cdbc7013d4b51eb6781fb5f))
93
-
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))
94
71
 
95
72
  ### Features
96
73
 
97
- * add coerce open api project function ([8eafe9d](https://gitlab.com/rxap/packages/commit/8eafe9d2acf7f21dbe0a48c5b80d0a9502597233))
98
-
99
-
100
-
101
-
102
-
103
- ## [14.0.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@14.0.0...@rxap/schematics-open-api@14.0.1) (2022-10-06)
74
+ - add coerce open api projectfunction ([8eafe9d](https://gitlab.com/rxap/schematics/commit/8eafe9d2acf7f21dbe0a48c5b80d0a9502597233))
104
75
 
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)
105
77
 
106
78
  ### Bug Fixes
107
79
 
108
- * update package json deps ([99c7002](https://gitlab.com/rxap/packages/commit/99c70028a34927902ece991748a7d0fc857c5223))
109
-
110
-
111
-
112
-
113
-
114
- # [14.0.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0...@rxap/schematics-open-api@14.0.0) (2022-09-11)
80
+ - update package jsondeps ([99c7002](https://gitlab.com/rxap/schematics/commit/99c70028a34927902ece991748a7d0fc857c5223))
115
81
 
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)
116
83
 
117
84
  ### chore
118
85
 
119
- * upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/packages/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
120
-
86
+ - upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/schematics/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
121
87
 
122
88
  ### BREAKING CHANGES
123
89
 
124
- * upgrade to 14.x.x
125
-
90
+ - upgrade to 14.x.x
126
91
 
127
-
128
-
129
-
130
- # [13.0.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0-next.4...@rxap/schematics-open-api@13.0.0) (2022-09-11)
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)
131
93
 
132
94
  **Note:** Version bump only for package @rxap/schematics-open-api
133
95
 
134
- # [13.0.0-next.4](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0-next.3...@rxap/schematics-open-api@13.0.0-next.4) (2022-05-23)
96
+ # [13.0.0-next.4](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-open-api@13.0.0-next.3...@rxap/schematics-open-api@13.0.0-next.4) (2022-05-23)
135
97
 
136
98
  ### Bug Fixes
137
99
 
138
- * update typescript generator
139
- package ([3bd311c](https://gitlab.com/rxap/packages/commit/3bd311ca5697bdbed598cdf8c9ec44f297fd2215))
140
-
141
- # [13.0.0-next.3](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0-next.2...@rxap/schematics-open-api@13.0.0-next.3) (2022-05-09)
100
+ - update typescript generatorpackage ([3bd311c](https://gitlab.com/rxap/schematics/commit/3bd311ca5697bdbed598cdf8c9ec44f297fd2215))
142
101
 
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)
143
103
 
144
104
  ### Bug Fixes
145
105
 
146
- * convert ref into object for parameters ([81f8f9e](https://gitlab.com/rxap/packages/commit/81f8f9e02b8feffe24ca43ee0684740bd59e0f88))
147
-
106
+ - convert ref into object forparameters ([81f8f9e](https://gitlab.com/rxap/schematics/commit/81f8f9e02b8feffe24ca43ee0684740bd59e0f88))
148
107
 
149
-
150
-
151
-
152
- # [13.0.0-next.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0-next.1...@rxap/schematics-open-api@13.0.0-next.2) (2022-05-09)
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)
153
109
 
154
110
  **Note:** Version bump only for package @rxap/schematics-open-api
155
111
 
156
-
157
-
158
-
159
-
160
- # [13.0.0-next.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@13.0.0-next.0...@rxap/schematics-open-api@13.0.0-next.1) (2022-03-23)
161
-
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)
162
113
 
163
114
  ### Bug Fixes
164
115
 
165
- * remove rxap/utilities dependency ([d8dfe16](https://gitlab.com/rxap/packages/commit/d8dfe168f5d3afd5cd88d4fd143bd2c7b2c687b7))
166
-
167
-
168
-
169
-
170
-
171
- # [13.0.0-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.9...@rxap/schematics-open-api@13.0.0-next.0) (2022-02-19)
116
+ - remove rxap/utilitiesdependency ([d8dfe16](https://gitlab.com/rxap/schematics/commit/d8dfe168f5d3afd5cd88d4fd143bd2c7b2c687b7))
172
117
 
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)
173
119
 
174
120
  ### Build System
175
121
 
176
- * upgrade to nrwl 13.x.x ([5cd07c1](https://gitlab.com/rxap/packages/commit/5cd07c19645528c787ef01a121a4a4367db78902))
177
-
122
+ - upgrade to nrwl 13.x.x ([5cd07c1](https://gitlab.com/rxap/schematics/commit/5cd07c19645528c787ef01a121a4a4367db78902))
178
123
 
179
124
  ### BREAKING CHANGES
180
125
 
181
- * update the core nrwl packages to 13.x.x
126
+ - update the core nrwl packages to 13.x.x
182
127
 
183
128
  Signed-off-by: Merzough Münker <mmuenker@digitaix.com>
184
129
 
185
-
186
-
187
-
188
-
189
- ## [12.0.9](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.8...@rxap/schematics-open-api@12.0.9) (2021-08-02)
190
-
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)
191
131
 
192
132
  ### Bug Fixes
193
133
 
194
- * add missing peer dependencies ([83481ea](https://gitlab.com/rxap/packages/commit/83481eafb7912aef4e9574abc416edfd5f025898))
195
-
196
-
197
-
198
-
134
+ - add missing peerdependencies ([83481ea](https://gitlab.com/rxap/schematics/commit/83481eafb7912aef4e9574abc416edfd5f025898))
199
135
 
200
- ## [12.0.8](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.8-next.0...@rxap/schematics-open-api@12.0.8) (2021-06-29)
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)
201
137
 
202
138
  **Note:** Version bump only for package @rxap/schematics-open-api
203
139
 
204
-
205
-
206
-
207
-
208
- ## [12.0.8-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.7...@rxap/schematics-open-api@12.0.8-next.0) (2021-06-23)
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)
209
141
 
210
142
  **Note:** Version bump only for package @rxap/schematics-open-api
211
143
 
212
-
213
-
214
-
215
-
216
- ## [12.0.7](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.6...@rxap/schematics-open-api@12.0.7) (2021-06-23)
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)
217
145
 
218
146
  **Note:** Version bump only for package @rxap/schematics-open-api
219
147
 
220
-
221
-
222
-
223
-
224
- ## [12.0.7-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.6...@rxap/schematics-open-api@12.0.7-next.0) (2021-06-23)
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)
225
149
 
226
150
  **Note:** Version bump only for package @rxap/schematics-open-api
227
151
 
228
-
229
-
230
-
231
-
232
- ## [12.0.6](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.4...@rxap/schematics-open-api@12.0.6) (2021-06-22)
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)
233
153
 
234
154
  **Note:** Version bump only for package @rxap/schematics-open-api
235
155
 
236
-
237
-
238
-
239
-
240
- ## [12.0.4](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.3...@rxap/schematics-open-api@12.0.4) (2021-06-17)
241
-
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)
242
157
 
243
158
  ### Bug Fixes
244
159
 
245
- * set correct peerDependencies and dependencies ([92c5eae](https://gitlab.com/rxap/packages/commit/92c5eae7eb84c65381ed005da1900ce5f0ce80a3))
246
-
247
-
248
-
249
-
160
+ - set correct peerDependencies anddependencies ([92c5eae](https://gitlab.com/rxap/schematics/commit/92c5eae7eb84c65381ed005da1900ce5f0ce80a3))
250
161
 
251
162
  ## 12.0.3 (2021-06-14)
252
163
 
253
164
  **Note:** Version bump only for package @rxap/schematics-open-api
254
165
 
255
-
256
-
257
-
258
-
259
- ## [12.0.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.3.1...@rxap/schematics-open-api@12.0.2) (2021-06-09)
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)
260
167
 
261
168
  **Note:** Version bump only for package @rxap/schematics-open-api
262
169
 
263
-
264
-
265
-
266
-
267
- ## [12.0.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@12.0.0...@rxap/schematics-open-api@12.0.1) (2021-05-24)
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)
268
171
 
269
172
  **Note:** Version bump only for package @rxap/schematics-open-api
270
173
 
271
-
272
-
273
-
274
-
275
- # [12.0.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.3.0...@rxap/schematics-open-api@12.0.0) (2021-05-24)
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)
276
175
 
277
176
  **Note:** Version bump only for package @rxap/schematics-open-api
278
177
 
279
-
280
-
281
-
282
-
283
- # [11.3.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.2.3...@rxap/schematics-open-api@11.3.0) (2021-05-04)
284
-
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)
285
179
 
286
180
  ### Features
287
181
 
288
- * add GenerateIndexExports Function ([e3fce4c](https://gitlab.com/rxap/packages/commit/e3fce4cf3104f77c8122ff257ba69f3968cff6a4))
289
-
290
-
291
-
292
-
293
-
294
- ## [11.2.3](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.2.2...@rxap/schematics-open-api@11.2.3) (2021-05-03)
182
+ - add GenerateIndexExportsFunction ([e3fce4c](https://gitlab.com/rxap/schematics/commit/e3fce4cf3104f77c8122ff257ba69f3968cff6a4))
295
183
 
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)
296
185
 
297
186
  ### Bug Fixes
298
187
 
299
- * add missing export ([0f1d683](https://gitlab.com/rxap/packages/commit/0f1d683108952b5658eb08e59f4f504183dbe17d))
300
-
301
-
302
-
303
-
304
-
305
- ## [11.2.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.2.1...@rxap/schematics-open-api@11.2.2) (2021-04-30)
188
+ - add missing export ([0f1d683](https://gitlab.com/rxap/schematics/commit/0f1d683108952b5658eb08e59f4f504183dbe17d))
306
189
 
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)
307
191
 
308
192
  ### Bug Fixes
309
193
 
310
- * **schematics:** add support for void request body type ([6b49540](https://gitlab.com/rxap/packages/commit/6b49540ba3c0248dc107ad7c76a344ee1daeb771))
311
-
312
-
313
-
314
-
315
-
316
- ## [11.2.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.2.0...@rxap/schematics-open-api@11.2.1) (2021-04-30)
194
+ - **schematics:** add support for void request bodytype ([6b49540](https://gitlab.com/rxap/schematics/commit/6b49540ba3c0248dc107ad7c76a344ee1daeb771))
317
195
 
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)
318
197
 
319
198
  ### Bug Fixes
320
199
 
321
- * **schematics:** add support for void request body type ([0feac0f](https://gitlab.com/rxap/packages/commit/0feac0f0e5447dfafc8e51166b2d63cf66fce208))
322
-
323
-
324
-
325
-
326
-
327
- # [11.2.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.1.2...@rxap/schematics-open-api@11.2.0) (2021-04-30)
200
+ - **schematics:** add support for void request bodytype ([0feac0f](https://gitlab.com/rxap/schematics/commit/0feac0f0e5447dfafc8e51166b2d63cf66fce208))
328
201
 
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)
329
203
 
330
204
  ### Features
331
205
 
332
- * add ClearOperation function ([c6fe1b2](https://gitlab.com/rxap/packages/commit/c6fe1b2497d36e9668d9d18513f584d656f973dd))
333
-
334
-
335
-
336
-
337
-
338
- ## [11.1.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.1.1...@rxap/schematics-open-api@11.1.2) (2021-04-30)
206
+ - add ClearOperationfunction ([c6fe1b2](https://gitlab.com/rxap/schematics/commit/c6fe1b2497d36e9668d9d18513f584d656f973dd))
339
207
 
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)
340
209
 
341
210
  ### Bug Fixes
342
211
 
343
- * **schematics:** change module to commonjs ([39a3700](https://gitlab.com/rxap/packages/commit/39a3700a1d1194a81fb9e7944288984f64b46b88))
344
-
345
-
346
-
347
-
348
-
349
- ## [11.1.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-open-api@11.1.0...@rxap/schematics-open-api@11.1.1) (2021-04-30)
212
+ - **schematics:** change module tocommonjs ([39a3700](https://gitlab.com/rxap/schematics/commit/39a3700a1d1194a81fb9e7944288984f64b46b88))
350
213
 
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)
351
215
 
352
216
  ### Bug Fixes
353
217
 
354
- * update build target to es6 ([6418b27](https://gitlab.com/rxap/packages/commit/6418b27af301db0c794bb584504d786ad20cfe8c))
355
-
356
-
357
-
358
-
218
+ - update build target toes6 ([6418b27](https://gitlab.com/rxap/schematics/commit/6418b27af301db0c794bb584504d786ad20cfe8c))
359
219
 
360
220
  # 11.1.0 (2021-04-30)
361
221
 
362
-
363
222
  ### Bug Fixes
364
223
 
365
- * add support for custom options object ([181aa69](https://gitlab.com/rxap/packages/commit/181aa69a49a5ed48a2db5ba51b420c759b091c31))
366
-
224
+ - add support for custom optionsobject ([181aa69](https://gitlab.com/rxap/schematics/commit/181aa69a49a5ed48a2db5ba51b420c759b091c31))
367
225
 
368
226
  ### Features
369
227
 
370
- * add IsCollectionResponse function ([61e13a9](https://gitlab.com/rxap/packages/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.0
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.2",
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/packages",
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.1",
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.d.ts CHANGED
@@ -1,27 +1,2 @@
1
- export * from './lib/clear-operation';
2
- export * from './lib/config';
3
- export * from './lib/generate-components';
4
- export * from './lib/generate-operation';
5
- export * from './lib/generate-parameters';
6
- export * from './lib/generate-request-body';
7
- export * from './lib/generate-index-exports';
8
- export * from './lib/generate-response';
9
- export * from './lib/load-open-api-config';
10
- export * from './lib/types';
11
- export * from './lib/coerce-open-api-project';
12
- export * from './lib/utilities/any-schema-object';
13
- export * from './lib/utilities/get-parameter-type';
14
- export * from './lib/utilities/get-reqeust-body';
15
- export * from './lib/utilities/get-request-body-type';
16
- export * from './lib/utilities/get-response';
17
- export * from './lib/utilities/get-response-type';
18
- export * from './lib/utilities/has-operation-paramters';
19
- export * from './lib/utilities/has-operation-request-body';
20
- export * from './lib/utilities/http-request';
21
- export * from './lib/utilities/ignore-operation';
22
- export * from './lib/utilities/is-collection-response';
23
- export * from './lib/utilities/is-http-method';
24
- export * from './lib/utilities/is-open-api-schema-from-path';
25
- export * from './lib/utilities/is-reference-object';
26
- export * from './lib/utilities/is-without-parameters';
27
- export * from './lib/utilities/is-operation-object';
1
+ export * from './lib';
2
+ export * from './lib/utilities';
package/src/index.js CHANGED
@@ -1,33 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./lib/clear-operation"), exports);
5
- tslib_1.__exportStar(require("./lib/config"), exports);
6
- tslib_1.__exportStar(require("./lib/generate-components"), exports);
7
- tslib_1.__exportStar(require("./lib/generate-operation"), exports);
8
- tslib_1.__exportStar(require("./lib/generate-parameters"), exports);
9
- tslib_1.__exportStar(require("./lib/generate-request-body"), exports);
10
- tslib_1.__exportStar(require("./lib/generate-index-exports"), exports);
11
- tslib_1.__exportStar(require("./lib/generate-response"), exports);
12
- tslib_1.__exportStar(require("./lib/load-open-api-config"), exports);
13
- tslib_1.__exportStar(require("./lib/types"), exports);
14
- tslib_1.__exportStar(require("./lib/coerce-open-api-project"), exports);
15
- // region utilities
16
- tslib_1.__exportStar(require("./lib/utilities/any-schema-object"), exports);
17
- tslib_1.__exportStar(require("./lib/utilities/get-parameter-type"), exports);
18
- tslib_1.__exportStar(require("./lib/utilities/get-reqeust-body"), exports);
19
- tslib_1.__exportStar(require("./lib/utilities/get-request-body-type"), exports);
20
- tslib_1.__exportStar(require("./lib/utilities/get-response"), exports);
21
- tslib_1.__exportStar(require("./lib/utilities/get-response-type"), exports);
22
- tslib_1.__exportStar(require("./lib/utilities/has-operation-paramters"), exports);
23
- tslib_1.__exportStar(require("./lib/utilities/has-operation-request-body"), exports);
24
- tslib_1.__exportStar(require("./lib/utilities/http-request"), exports);
25
- tslib_1.__exportStar(require("./lib/utilities/ignore-operation"), exports);
26
- tslib_1.__exportStar(require("./lib/utilities/is-collection-response"), exports);
27
- tslib_1.__exportStar(require("./lib/utilities/is-http-method"), exports);
28
- tslib_1.__exportStar(require("./lib/utilities/is-open-api-schema-from-path"), exports);
29
- tslib_1.__exportStar(require("./lib/utilities/is-reference-object"), exports);
30
- tslib_1.__exportStar(require("./lib/utilities/is-without-parameters"), exports);
31
- tslib_1.__exportStar(require("./lib/utilities/is-operation-object"), exports);
32
- // endregion
4
+ tslib_1.__exportStar(require("./lib"), exports);
5
+ tslib_1.__exportStar(require("./lib/utilities"), exports);
33
6
  //# sourceMappingURL=index.js.map