@odata2ts/odata2ts 0.18.3 → 0.18.6

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 (3) hide show
  1. package/CHANGELOG.md +477 -577
  2. package/README.md +18 -112
  3. package/package.json +11 -10
package/CHANGELOG.md CHANGED
@@ -3,632 +3,532 @@
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
- ## [0.18.3](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.2...@odata2ts/odata2ts@0.18.3) (2023-02-03)
7
-
6
+ ## [0.18.6](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.3...@odata2ts/odata2ts@0.18.6) (2023-02-13)
8
7
 
9
8
  ### Bug Fixes
10
9
 
11
- * **odata2ts:** peer dep versions did not get auto upated ([#120](https://github.com/odata2ts/odata2ts/issues/120)) ([586627e](https://github.com/odata2ts/odata2ts/commit/586627e354c03ed36135d0b7f21a05b97a11072f))
10
+ * build ([2a54611](https://github.com/odata2ts/odata2ts/commit/2a54611ff0dbad14621743361307c261785ca62a))
12
11
 
12
+ ## [0.18.5](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.3...@odata2ts/odata2ts@0.18.5) (2023-02-13)
13
13
 
14
+ ### Bug Fixes
14
15
 
16
+ * build ([2a54611](https://github.com/odata2ts/odata2ts/commit/2a54611ff0dbad14621743361307c261785ca62a))
15
17
 
18
+ ## [0.18.4](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.3...@odata2ts/odata2ts@0.18.4) (2023-02-13)
16
19
 
17
- ## [0.18.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.1...@odata2ts/odata2ts@0.18.2) (2023-01-11)
20
+ **Note:** Version bump only for package @odata2ts/odata2ts
18
21
 
22
+ ## [0.18.3](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.2...@odata2ts/odata2ts@0.18.3) (2023-02-03)
19
23
 
20
24
  ### Bug Fixes
21
25
 
22
- * **odata2ts:** wrong generation of complex and enum params for q operations ([#111](https://github.com/odata2ts/odata2ts/issues/111)) ([f69aadf](https://github.com/odata2ts/odata2ts/commit/f69aadf52201fbf854d00103f763f465c7557de4))
23
-
26
+ * **odata2ts:** peer dep versions did not get auto upated ([#120](https://github.com/odata2ts/odata2ts/issues/120)) ([586627e](https://github.com/odata2ts/odata2ts/commit/586627e354c03ed36135d0b7f21a05b97a11072f))
24
27
 
28
+ ## [0.18.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.1...@odata2ts/odata2ts@0.18.2) (2023-01-11)
25
29
 
30
+ ### Bug Fixes
26
31
 
32
+ * **odata2ts:** wrong generation of complex and enum params for q operations ([#111](https://github.com/odata2ts/odata2ts/issues/111)) ([f69aadf](https://github.com/odata2ts/odata2ts/commit/f69aadf52201fbf854d00103f763f465c7557de4))
27
33
 
28
34
  ## [0.18.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2ts@0.18.0...@odata2ts/odata2ts@0.18.1) (2023-01-10)
29
35
 
30
-
31
36
  ### Bug Fixes
32
37
 
33
38
  * **odata2ts:** no model param and no q operation generation for collection bound operations ([#110](https://github.com/odata2ts/odata2ts/issues/110)) ([71769c2](https://github.com/odata2ts/odata2ts/commit/71769c22affa37c3a443e91f5070fa07f90d03d6))
34
39
 
35
-
36
-
37
-
38
-
39
40
  # 0.18.0 (2023-01-07)
40
41
 
41
-
42
42
  ### Bug Fixes
43
43
 
44
44
  * **odata2ts:** configurable naming of main service ([c2bdeeb](https://github.com/odata2ts/odata2ts/commit/c2bdeeb9e35f8a4ed31e35c41e4f01ddef9bd9a6))
45
45
 
46
-
47
46
  ### Code Refactoring
48
47
 
49
48
  * odata2model => odata2ts ([#97](https://github.com/odata2ts/odata2ts/issues/97)) ([4085c7c](https://github.com/odata2ts/odata2ts/commit/4085c7ccf173c6712c5238f8b43e86842eecb19a))
50
- * rename odata-uri-builder to odata-query-builder ([#98](https://github.com/odata2ts/odata2ts/issues/98)) ([e0de825](https://github.com/odata2ts/odata2ts/commit/e0de825663fab15c37854ae08f75ab8df761cd3e))
51
49
 
50
+ * rename odata-uri-builder to odata-query-builder ([#98](https://github.com/odata2ts/odata2ts/issues/98)) ([e0de825](https://github.com/odata2ts/odata2ts/commit/e0de825663fab15c37854ae08f75ab8df761cd3e))
52
51
 
53
52
  ### Features
54
53
 
55
54
  * **odata-service:** introduce entity service resolver ([#100](https://github.com/odata2ts/odata2ts/issues/100)) ([66dd853](https://github.com/odata2ts/odata2ts/commit/66dd853bbc28a0758fae04abd5e8885689aeabc2))
55
+
56
56
  * **odata2ts:** add snakeCase as new renaming strategy ([#101](https://github.com/odata2ts/odata2ts/issues/101)) ([09f9bfb](https://github.com/odata2ts/odata2ts/commit/09f9bfbde7f1e75c9a29ff774f7d771cfab7106b))
57
+
57
58
  * **odata2ts:** minimal naming options ([#104](https://github.com/odata2ts/odata2ts/issues/104)) ([67ddfa7](https://github.com/odata2ts/odata2ts/commit/67ddfa74f977e164892c2953dc8c5459a92c11d4))
58
- * **odata2ts:** use navToX instead of getXSrv ([#99](https://github.com/odata2ts/odata2ts/issues/99)) ([4aafcb0](https://github.com/odata2ts/odata2ts/commit/4aafcb0cd307748feed4df075459e17e83876f3b))
59
59
 
60
+ * **odata2ts:** use navToX instead of getXSrv ([#99](https://github.com/odata2ts/odata2ts/issues/99)) ([4aafcb0](https://github.com/odata2ts/odata2ts/commit/4aafcb0cd307748feed4df075459e17e83876f3b))
60
61
 
61
62
  ### BREAKING CHANGES
62
63
 
63
64
  * **odata2ts:** option `service.fileNames` was removed in favour of `service.main`, so that the main service can be configured individually; the underlying bug was that file names SHOULD NOT be configurable for services
65
+
64
66
  * **odata2ts:** changed default: uses "navToX" instead of "getXSrv" to navigate to other services; old behaviour can be restored via naming configuration prefix: "get", suffix: "Srv"
67
+
65
68
  * rename module odata-uri-builder to odata-query-builder; API completely refactored by renaming all models, classes, functions, props from "uri" to "query"
69
+
66
70
  * rename odata2model to odata2ts; affects import in `odata2ts.config`, affects scripts in `package.json` or any scripts which use to call `odata2model` command directly
67
71
 
72
+ # [0.17.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.16.1...@odata2ts/odata2model@0.17.0) (2023-01-05)
73
+
74
+ ### Bug Fixes
75
+
76
+ * **odata2ts:** broken js generation ([#95](https://github.com/odata2ts/odata2ts/issues/95)) ([6df7392](https://github.com/odata2ts/odata2ts/commit/6df7392b6bf72fc1621585d299ed3adebee53021))
77
+
78
+ * **odata2ts:** operation return type for primitive values is wrong ([#91](https://github.com/odata2ts/odata2ts/issues/91)) ([fcbc28a](https://github.com/odata2ts/odata2ts/commit/fcbc28a8c388d256cb14ddf2a5935431e3a50478))
79
+
80
+ ### Code Refactoring
81
+
82
+ * **odata2ts:** changing default regarding renaming ([#94](https://github.com/odata2ts/odata2ts/issues/94)) ([67124a2](https://github.com/odata2ts/odata2ts/commit/67124a206d28442e86ab4db50b4aa3eb17056727))
83
+
84
+ ### Features
85
+
86
+ * dedicated number params for V2 ([#84](https://github.com/odata2ts/odata2ts/issues/84)) ([7a440d9](https://github.com/odata2ts/odata2ts/commit/7a440d92c40b39aedd4479ceed4afa18cc3a0ce9))
87
+
88
+ * encode & decode function params properly ([#96](https://github.com/odata2ts/odata2ts/issues/96)) ([ca88f57](https://github.com/odata2ts/odata2ts/commit/ca88f572674181962760005cf33f820e231a2b51))
89
+
90
+ * improved number handling ([#86](https://github.com/odata2ts/odata2ts/issues/86)) ([08e9fe0](https://github.com/odata2ts/odata2ts/commit/08e9fe0feaf5af6fcfe0ab8af7ff27d1d52eb097))
91
+
92
+ * **odata2ts:** automatically handle managed props ([#88](https://github.com/odata2ts/odata2ts/issues/88)) ([37eef19](https://github.com/odata2ts/odata2ts/commit/37eef1918f25a4943ae19475dc987463639ab9f4))
93
+
94
+ ### BREAKING CHANGES
95
+
96
+ * **odata2ts:** new default: allowRenaming=false; removed prop `naming.disableNamingStrategy`
97
+
98
+ ## [0.16.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.16.0...@odata2ts/odata2model@0.16.1) (2022-12-21)
99
+
100
+ ### Bug Fixes
101
+
102
+ * **odata2ts:** import deferred content from core (V2 only) ([66bee43](https://github.com/odata2ts/odata2ts/commit/66bee43bfe16bc930614bd82df48c46348e25b2b))
103
+
104
+ * only import QEntityPath when needed ([81a4e77](https://github.com/odata2ts/odata2ts/commit/81a4e77b78d0fb02505b7989e7ae6737dc279e80))
105
+
106
+ # [0.16.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.2...@odata2ts/odata2model@0.16.0) (2022-12-18)
107
+
108
+ ### Bug Fixes
109
+
110
+ * **odata2model:** don't generate useless constructors ([f495604](https://github.com/odata2ts/odata2ts/commit/f4956044df9cc081e90208fb3a961fa6572911db))
111
+
112
+ * **odata2ts:** disable entities by name from config interfaces => not implemented yet ([96fefbe](https://github.com/odata2ts/odata2ts/commit/96fefbe22dc10cf7549a61551eadc93b870dcc0d))
113
+
114
+ * **odata2ts:** disable own section about entitiesByName ([78d9c6e](https://github.com/odata2ts/odata2ts/commit/78d9c6e7e9eccd31f47a7f7b34af9e77dfeeb000))
115
+
116
+ ### Features
117
+
118
+ * **odata2model:** extensive configuration model via config file ([#67](https://github.com/odata2ts/odata2ts/issues/67)) ([a42aee4](https://github.com/odata2ts/odata2ts/commit/a42aee494a4e30d8704569d7262fc31020ed7711))
119
+
120
+ * **odata2ts:** adapt method generation for services ([486a85c](https://github.com/odata2ts/odata2ts/commit/486a85cffc2ee06e6461ecd1f3dd00a8208b95f7))
121
+
122
+ * **odata2ts:** adapt query object generation to OperationReturnTypes ([734e2bd](https://github.com/odata2ts/odata2ts/commit/734e2bd51a67cc285153c97f96655b950c62a230))
123
+
124
+ * **odata2ts:** apply name mapping in all places ([dd5a6fd](https://github.com/odata2ts/odata2ts/commit/dd5a6fdde83cdc3f803eb1d96553571e78364849))
125
+
126
+ * **odata2ts:** property configuration with name mapping and managed flag ([#78](https://github.com/odata2ts/odata2ts/issues/78)) ([797566c](https://github.com/odata2ts/odata2ts/commit/797566cf962e8c9b1f3a1a8081e066c9f0829b91))
127
+
128
+ # [0.15.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.2...@odata2ts/odata2model@0.15.0) (2022-12-18)
129
+
130
+ ### Bug Fixes
131
+
132
+ * **odata2model:** don't generate useless constructors ([f495604](https://github.com/odata2ts/odata2ts/commit/f4956044df9cc081e90208fb3a961fa6572911db))
133
+
134
+ * **odata2ts:** disable entities by name from config interfaces => not implemented yet ([96fefbe](https://github.com/odata2ts/odata2ts/commit/96fefbe22dc10cf7549a61551eadc93b870dcc0d))
135
+
136
+ * **odata2ts:** disable own section about entitiesByName ([78d9c6e](https://github.com/odata2ts/odata2ts/commit/78d9c6e7e9eccd31f47a7f7b34af9e77dfeeb000))
137
+
138
+ ### Features
139
+
140
+ * **odata2model:** extensive configuration model via config file ([#67](https://github.com/odata2ts/odata2ts/issues/67)) ([a42aee4](https://github.com/odata2ts/odata2ts/commit/a42aee494a4e30d8704569d7262fc31020ed7711))
141
+
142
+ * **odata2ts:** adapt method generation for services ([486a85c](https://github.com/odata2ts/odata2ts/commit/486a85cffc2ee06e6461ecd1f3dd00a8208b95f7))
143
+
144
+ * **odata2ts:** adapt query object generation to OperationReturnTypes ([734e2bd](https://github.com/odata2ts/odata2ts/commit/734e2bd51a67cc285153c97f96655b950c62a230))
145
+
146
+ * **odata2ts:** apply name mapping in all places ([dd5a6fd](https://github.com/odata2ts/odata2ts/commit/dd5a6fdde83cdc3f803eb1d96553571e78364849))
147
+
148
+ * **odata2ts:** property configuration with name mapping and managed flag ([#78](https://github.com/odata2ts/odata2ts/issues/78)) ([797566c](https://github.com/odata2ts/odata2ts/commit/797566cf962e8c9b1f3a1a8081e066c9f0829b91))
149
+
150
+ ## [0.14.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.1...@odata2ts/odata2model@0.14.2) (2022-09-09)
151
+
152
+ ### Bug Fixes
153
+
154
+ * IdFunction never gets v2Mode flag ([f36d173](https://github.com/odata2ts/odata2ts/commit/f36d173c3e48255777e5346441030b711706b1ad))
155
+
156
+ ## [0.14.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.0...@odata2ts/odata2model@0.14.1) (2022-09-08)
157
+
158
+ ### Bug Fixes
159
+
160
+ * corrected int tests ([fff88be](https://github.com/odata2ts/odata2ts/commit/fff88be110cc53a5193ed72bd39a53cddc997a93))
161
+
162
+ * don't map param names for now ([f39f541](https://github.com/odata2ts/odata2ts/commit/f39f541672f8a61a1d7554b8e86e58f606bd117b))
163
+
164
+ # [0.14.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.13.1...@odata2ts/odata2model@0.14.0) (2022-09-08)
165
+
166
+ ### Code Refactoring
167
+
168
+ * centralize formatting and parsing of params & attributes ([#62](https://github.com/odata2ts/odata2ts/issues/62)) ([ba93a27](https://github.com/odata2ts/odata2ts/commit/ba93a278afd2de356675973fb2889483bc370f7a))
169
+
170
+ ### Features
171
+
172
+ * **odata-service:** allow to pass custom headers per request ([#58](https://github.com/odata2ts/odata2ts/issues/58)) ([d783e51](https://github.com/odata2ts/odata2ts/commit/d783e51e4b5a69892c79a03bedc6bf041abba9ec))
173
+
174
+ * **odata2model:** add typescript support for odata2ts.config ([70a01e5](https://github.com/odata2ts/odata2ts/commit/70a01e5fd03baa5a470bc26b876df6a526782668))
175
+
176
+ * **odata2model:** support V2 functions with HTTP method POST ([#61](https://github.com/odata2ts/odata2ts/issues/61)) ([c9213fa](https://github.com/odata2ts/odata2ts/commit/c9213faecd9e0ee7bebe049879b58a0f1b2ccd95))
177
+
178
+ ### BREAKING CHANGES
179
+
180
+ * UrlHelper including compile and parse methods have been removed; interfaces for EntityKeyProp, EntityKeySpec, InlineUrlProp, and InlineUrlProps have been removed; parsing of passed parameters is more strict.
181
+
182
+ Introducing static functions on QPath objects to format and parse url conform values.
183
+
184
+ Introducing QParams, QFunction and QAction to bundle logic around operations including the id function (url path generation).
185
+
186
+ Generate models for IdType of entity & parameter models for functions / actions in general
187
+
188
+ Generate Q-objects for EntityIdFunctions, and functions & actions in general
189
+
190
+ ## [0.13.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.13.0...@odata2ts/odata2model@0.13.1) (2022-08-25)
191
+
192
+ ### Bug Fixes
193
+
194
+ * always create errors with new operator ([#54](https://github.com/odata2ts/odata2ts/issues/54)) ([562dede](https://github.com/odata2ts/odata2ts/commit/562dede85d7ce276957a4b1683856d4adfee3ad1))
195
+
196
+ # [0.13.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.12.1...@odata2ts/odata2model@0.13.0) (2022-08-11)
197
+
198
+ ### Code Refactoring
199
+
200
+ * **uri-builder:** composition over inheritance, proper interfaces ([#48](https://github.com/odata2ts/odata2ts/issues/48)) ([36c8a0a](https://github.com/odata2ts/odata2ts/commit/36c8a0a27dabfbcfbd2359d040dcda518615a4e0))
201
+
202
+ ### Features
203
+
204
+ * **uri-builder:** V2 implementation of "expanding" method ([#49](https://github.com/odata2ts/odata2ts/issues/49)) ([e237c61](https://github.com/odata2ts/odata2ts/commit/e237c61710125daa6e7e6617ebf377304f1b5d89))
205
+
206
+ ### BREAKING CHANGES
207
+
208
+ * **uri-builder:** It was possible to select nested props by using q-props (V2 only); this syntax has been removed and will be replaced by making use of the current V4 syntax: you first expand the property (method "expanding") and then select (or expand) on the expanded entity.
209
+
210
+ * **uri-builder:** ODataUriBuilder was removed from export, it might have served as base class but was of no other use.
211
+
212
+ ## [0.12.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.12.0...@odata2ts/odata2model@0.12.1) (2022-08-01)
213
+
214
+ ### Bug Fixes
215
+
216
+ * add imports for returnType & don't camel case function / action params ([#44](https://github.com/odata2ts/odata2ts/issues/44)) ([b46e4fd](https://github.com/odata2ts/odata2ts/commit/b46e4fdf5bd1566c03c8833daf1a7afcbb471d53))
217
+
218
+ # [0.12.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.2...@odata2ts/odata2model@0.12.0) (2022-08-01)
219
+
220
+ ### Bug Fixes
221
+
222
+ * remove superfluous constructor from qObjects ([#41](https://github.com/odata2ts/odata2ts/issues/41)) ([f5f5623](https://github.com/odata2ts/odata2ts/commit/f5f56233eeadff584dc91c4a05c4d3d8196a7af3))
223
+
224
+ ### Code Refactoring
225
+
226
+ * consistent casing for services, models and props ([#42](https://github.com/odata2ts/odata2ts/issues/42)) ([70e6e92](https://github.com/odata2ts/odata2ts/commit/70e6e92a888c67f65dadb643ed12ace692d2cc8a))
227
+
228
+ * use proper getMethods for services ([#43](https://github.com/odata2ts/odata2ts/issues/43)) ([e05c818](https://github.com/odata2ts/odata2ts/commit/e05c818f193711a161a34be8e7a4c3ba71572a75))
229
+
230
+ ### Features
231
+
232
+ * createKey and parseKey for EntitySetService & correct V2 type prefixing ([#39](https://github.com/odata2ts/odata2ts/issues/39)) ([edd05bb](https://github.com/odata2ts/odata2ts/commit/edd05bbf7747ba280786c9ba274160ef274c030a))
233
+
234
+ * typing improvements & editable model versions ([#27](https://github.com/odata2ts/odata2ts/issues/27)) ([df290df](https://github.com/odata2ts/odata2ts/commit/df290dff953a9e37c64c39c18ffdec74ce1874d4))
235
+
236
+ ### BREAKING CHANGES
237
+
238
+ * use proper getMethods for services "getXxxSrv()" instead of get accessors "xxx"
239
+
240
+ * consistent camel or pascal casing for services, models and props
241
+
242
+ * fix: always empty output dir before generating
243
+
244
+ * model has become a true query response model.
245
+
246
+ Properties which are nullable now allow null values instead of undefined;
247
+
248
+ complex types are never undefined, but can be nullable;
249
+
250
+ collections are never nullable.
251
+
252
+ V2 only: added deferred content typings for entity and entity collection properties.
253
+
254
+ * feat: generate EditableModels and use in service for create, update, and patch
255
+
256
+ * different signatures for all actions
257
+
258
+ * test: proper test for ModelImportContainer & dataModel.getEditableModelName
259
+
260
+ * test: proper test for DataModel
261
+
262
+ * refactor(odata2model): don't always combine handling of complex and entity types
263
+
264
+ ## [0.11.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.1...@odata2ts/odata2model@0.11.2) (2022-07-20)
265
+
266
+ ### Bug Fixes
267
+
268
+ * guids in v2 have special syntax (guid'xxxx-...') ([#35](https://github.com/odata2ts/odata2ts/issues/35)) ([a551bcc](https://github.com/odata2ts/odata2ts/commit/a551bccf27dc7e8348020840402372582f9448e5))
269
+
270
+ ## [0.11.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.0...@odata2ts/odata2model@0.11.1) (2022-07-11)
271
+
272
+ **Note:** Version bump only for package @odata2ts/odata2model
273
+
274
+ # [0.11.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.10.1...@odata2ts/odata2model@0.11.0) (2022-07-06)
275
+
276
+ ### Features
277
+
278
+ * **odata2model:** actions & function on collection level ([#33](https://github.com/odata2ts/odata2ts/issues/33)) ([985b2dc](https://github.com/odata2ts/odata2ts/commit/985b2dc6ca443a73b3a4c877712199c23c5a75cb))
279
+
280
+ ## [0.10.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.10.0...@odata2ts/odata2model@0.10.1) (2022-06-30)
281
+
282
+ ### Bug Fixes
283
+
284
+ * add prebulish script to guarantee building before publishing ([b6986db](https://github.com/odata2ts/odata2ts/commit/b6986dbdb258b7b3cb8f36ab52ae1ff7b093f7dc))
285
+
286
+ # [0.10.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.9.0...@odata2ts/odata2model@0.10.0) (2022-06-30)
287
+
288
+ ### Features
289
+
290
+ * use pascalCase for file names and allow to override serviceName ([#30](https://github.com/odata2ts/odata2ts/issues/30)) ([5aa1e44](https://github.com/odata2ts/odata2ts/commit/5aa1e44a32099d781649ffbed87daa85d0647f5f))
291
+
292
+ ### BREAKING CHANGES
293
+
294
+ * new file names
295
+
296
+ # [0.9.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.2...@odata2ts/odata2model@0.9.0) (2022-05-21)
297
+
298
+ ### Bug Fixes
299
+
300
+ * V2 function params as query params ([07a1f29](https://github.com/odata2ts/odata2ts/commit/07a1f294005b9af7f1ebadecd8978ffca7caa80f))
301
+
302
+ * **odata2model:** fix tests ([efd12bc](https://github.com/odata2ts/odata2ts/commit/efd12bcfb44b7522f3d5ff6c157acd8ca12f74cf))
303
+
304
+ * **odata2model:DataModel:** Duplicate keys when extending multiple times ([157aa13](https://github.com/odata2ts/odata2ts/commit/157aa13a1ffc765b90abdfd2824a4da5fd0729ec))
305
+
306
+ * **odata2model:test:** name northwind-v4 fixture correctly ([39e77f4](https://github.com/odata2ts/odata2ts/commit/39e77f46ea2de2fa381480d89e7c5551cd57d411))
307
+
308
+ * **test:** collect code coverage from src folders, thus exhibiting untested code ([3acef8b](https://github.com/odata2ts/odata2ts/commit/3acef8b83b2625579bbce4a967724e884c39c358))
309
+
310
+ * **test:** fix data-model tests ([b8abb8a](https://github.com/odata2ts/odata2ts/commit/b8abb8afe7dfdf4d940bb4cbc8d92575e0416087))
311
+
312
+ * **test:** make coverage test run again ([f2d360b](https://github.com/odata2ts/odata2ts/commit/f2d360bac59901bd056dab5755dcf66d66988af5))
313
+
314
+ * on windows ts-node needs cwd-mode flag ([4f3c0f5](https://github.com/odata2ts/odata2ts/commit/4f3c0f5da9257504f842ca7a51af31e0ef578018))
315
+
316
+ ### Features
317
+
318
+ * integration tests for V2 (ODataV2 sample service) ([98bf0b8](https://github.com/odata2ts/odata2ts/commit/98bf0b8fc950337c970b408036d103c2c5934402))
319
+
320
+ * **odata2model:** FixtureComparator ignores [@ts-ignore](https://github.com/ts-ignore) ([b483ed5](https://github.com/odata2ts/odata2ts/commit/b483ed569394b3fb69c9b8d3904e377d2dc7a341))
321
+
322
+ * **odata2model:** move v4 tests & adapt expectations of fixtures ([2f84127](https://github.com/odata2ts/odata2ts/commit/2f841278397564ed1e815a8087068921628ec15e))
323
+
324
+ * **odata2model:** V2 service generation support ([2b17a01](https://github.com/odata2ts/odata2ts/commit/2b17a013d65fc12aac8315bc34bce441eb505870))
325
+
326
+ * **odata2model:Cli:** load config from file via cosmiconfig ([a490778](https://github.com/odata2ts/odata2ts/commit/a4907785b90a513f6a4c910e861d63e14139908b))
327
+
328
+ * **odata2model:Cli:** log file paths relative to working dir of process ([fc1ce86](https://github.com/odata2ts/odata2ts/commit/fc1ce86420858f72d87901435adccaba93280d8c))
329
+
330
+ * **test:** add run-cli integration test ([45a2da1](https://github.com/odata2ts/odata2ts/commit/45a2da1ede37c2734003b40eadafffbc8a82c14a))
331
+
332
+ * **test:** app test ([ad9d3f2](https://github.com/odata2ts/odata2ts/commit/ad9d3f2536828363ef153f54e31f3882089ee3a1))
333
+
334
+ * **test:** Builder for generating Edmx schemas in JSON ([227279a](https://github.com/odata2ts/odata2ts/commit/227279a5faed92a8befa86e5c893e8c6d48df5d6))
335
+
336
+ * **test:** FixtureComparator ([38b03bf](https://github.com/odata2ts/odata2ts/commit/38b03bf67019d45807c90f281bd935aa914f95e5))
337
+
338
+ * **test:** ProjectManager test without testing formatting including some refactorings ([8f666f3](https://github.com/odata2ts/odata2ts/commit/8f666f35b10fb2b2a29c62ec01778fb73e1ab789))
339
+
340
+ * **test:** same tests for model & qobject generation ([a4d882d](https://github.com/odata2ts/odata2ts/commit/a4d882da0bc6dd3c785d13d376b34245c82b0f4a))
341
+
342
+ * **test:** ServiceGenerator tests & fixes ([6a2c242](https://github.com/odata2ts/odata2ts/commit/6a2c24225d9f8b9197c8223e507cf75ba5b74307))
343
+
344
+ * **test:** test for ProjectManager (first draft) ([f705b0b](https://github.com/odata2ts/odata2ts/commit/f705b0bc29f4c848588a5c252ca22a5aebdefe0e))
345
+
346
+ * **test:** testing Model generation ([6d7c530](https://github.com/odata2ts/odata2ts/commit/6d7c53084758b23a3a4525bd9ee8bc5efb25e71e))
347
+
348
+ * **test:** Tests for DataModel and EDMX digestion ([5740292](https://github.com/odata2ts/odata2ts/commit/574029264fdf5af9dcd410108cd8aeb692fa623b))
349
+
350
+ * Feat/refactor query objects (#20) ([67b662a](https://github.com/odata2ts/odata2ts/commit/67b662a6da3344eb215b4f1276bf26464d2126f5)), closes [#20](https://github.com/odata2ts/odata2ts/issues/20)
351
+
352
+ ### BREAKING CHANGES
353
+
354
+ * no EntityFactory anymore, no nominalized types in interfaces anymore, etc.
355
+
356
+ * refactor(qObjects): getEntity with prefix option; by default without prefix
357
+
358
+ * fix(qObjects): better QPath modelling
359
+
360
+ * refactor(uri-builder): only use QueryObjects for typing & remove QEntityModel stuff
361
+
362
+ * refactor(odata2model): generate new QObject classes
363
+
364
+ * refactor(service): services now require Model as well as QClass
365
+
366
+ * refactor(odata2model): generate services with new QObject classes
367
+
368
+ * fix(odata2model): fix integration tests
369
+
370
+ * fix: make int-tests for coverage task work again
371
+
372
+ * fix: skip run-cli tests (don't work on github)
373
+
374
+ ## [0.8.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.1...@odata2ts/odata2model@0.8.2) (2021-10-12)
375
+
376
+ **Note:** Version bump only for package @odata2ts/odata2model
377
+
378
+ ## [0.8.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.0...@odata2ts/odata2model@0.8.1) (2021-09-17)
379
+
380
+ ### Bug Fixes
381
+
382
+ * **odata-service:** revert exposure of Unnominalized ([6ce4ea7](https://github.com/odata2ts/odata2ts/commit/6ce4ea779f3a83e67aa02d6d9213dcec2711df8a))
383
+
384
+ # [0.8.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.7.1...@odata2ts/odata2model@0.8.0) (2021-09-17)
385
+
386
+ ### Bug Fixes
387
+
388
+ * fix test ([2144cca](https://github.com/odata2ts/odata2ts/commit/2144cca49cda81ecc929425ca4171d99446c1ee1))
389
+
390
+ ### Code Refactoring
391
+
392
+ * **odata-service:** use odata names as param names ([73b130a](https://github.com/odata2ts/odata2ts/commit/73b130a06411e9e7bf030a3dd605d2bcaebf1d70))
393
+
394
+ ### Features
395
+
396
+ * **odata2model:** unnominalize response values of actions / functions ([4f284fa](https://github.com/odata2ts/odata2ts/commit/4f284fab3782ca5deb47d0e1b8ab25f5a2fc2bb2))
397
+
398
+ ### BREAKING CHANGES
399
+
400
+ * **odata-service:** param names of complex keys have changed
401
+
402
+ ## [0.7.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.7.0...@odata2ts/odata2model@0.7.1) (2021-09-16)
403
+
404
+ **Note:** Version bump only for package @odata2ts/odata2model
68
405
 
406
+ # [0.7.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.6.0...@odata2ts/odata2model@0.7.0) (2021-08-31)
69
407
 
408
+ ### Bug Fixes
409
+
410
+ * **odata2model:** correct typing for returned collection types ([3943f08](https://github.com/odata2ts/odata2ts/commit/3943f089a57e3f37e703f577096bf58d18dda0fa))
411
+
412
+ * **odata2model:** fix tests ([96556cd](https://github.com/odata2ts/odata2ts/commit/96556cd68aae86f2ac231925a49d7350a3670816))
413
+
414
+ * **service:** don't use nominal types for input; use string instead ([788dc5c](https://github.com/odata2ts/odata2ts/commit/788dc5c091e5d1e29e2cf9f44cf1485f65691a6b))
415
+
416
+ ### Features
417
+
418
+ * map ID to id ([a0652fa](https://github.com/odata2ts/odata2ts/commit/a0652fa70617de2ce9de70d9b294532bce8c8b91))
419
+
420
+ # [0.6.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.5.0...@odata2ts/odata2model@0.6.0) (2021-08-17)
421
+
422
+ ### Features
423
+
424
+ * **odata2model:** add emitMode to allow js and/or d.ts generation ([88e69ca](https://github.com/odata2ts/odata2ts/commit/88e69caff9d9b48f3f607f7f26d3d7d8d4449514))
425
+
426
+ # [0.5.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.4.0...@odata2ts/odata2model@0.5.0) (2021-08-16)
427
+
428
+ ### Bug Fixes
429
+
430
+ * **odata2model:** add import for parameter types ([03f25f4](https://github.com/odata2ts/odata2ts/commit/03f25f406aa5f304eeef5f7a89cfda478eb05d2a))
431
+
432
+ ### Features
433
+
434
+ * **odata2model:** add bound func/actions & add primitive collections ([c18daac](https://github.com/odata2ts/odata2ts/commit/c18daac8135f17e1554e65ff4c5f4a7a76b4886b))
435
+
436
+ * **odata2model:** check for missing type & throw error ([39cdd55](https://github.com/odata2ts/odata2ts/commit/39cdd55802afdcbc5846e4119a1696d236550009))
437
+
438
+ # [0.4.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.3.0...@odata2ts/odata2model@0.4.0) (2021-08-16)
439
+
440
+ ### Bug Fixes
441
+
442
+ * more service tests, fix prop names vs odata names ([489b690](https://github.com/odata2ts/odata2ts/commit/489b69078144d3ed6a478373f7a22d8d923567ec))
443
+
444
+ * **odata2model:** fix path for main entity sets ([c8fba2a](https://github.com/odata2ts/odata2ts/commit/c8fba2a5053a69621539e9cf71f792795b786f3e))
445
+
446
+ * **odata2model:** wrong imort for service from root ([1de6eef](https://github.com/odata2ts/odata2ts/commit/1de6eef34dbc151c04dee91b119e59d3af28f94f))
447
+
448
+ ### Features
449
+
450
+ * **odata2model:** add CollectionService, rework main service file ([026e999](https://github.com/odata2ts/odata2ts/commit/026e999c266a2f2a60807519a79a30f8eba98b08))
451
+
452
+ * **odata2model:** add jest & add dev and peer deps ([4076d1f](https://github.com/odata2ts/odata2ts/commit/4076d1fa64d64075722c3d137cf90ea31b587908))
453
+
454
+ * **odata2model:** add keySpec to EntitySets & implement get() ([500e576](https://github.com/odata2ts/odata2ts/commit/500e576a95206bb23985f7a24de3e2e054f9c084))
455
+
456
+ * **odata2model:** dataModel with fileNames, qNames, models with baseProps & baseKeys & qObjects(collections only) ([42d1630](https://github.com/odata2ts/odata2ts/commit/42d163013f8b273e54f7bf3549e4d5db7ba11386))
457
+
458
+ * **odata2model:** generate ModelServices & EntitySetService ([347bbbb](https://github.com/odata2ts/odata2ts/commit/347bbbb350b97689cb8b17844c200dc9e021ea0b))
459
+
460
+ * **odata2model:** introduce ImportContainer to organize imports ([6fab097](https://github.com/odata2ts/odata2ts/commit/6fab097b0e3286f07dcbde66b4648f965ec7e999))
461
+
462
+ * **odata2model:** parse functions & actions & entityContainer stuff into DataModel ([7fb9bb8](https://github.com/odata2ts/odata2ts/commit/7fb9bb8884696484d333e48f8e653f0b06fb760a))
463
+
464
+ * **odata2model:** realize new QEntityCollectionPath prop ([5eaf31a](https://github.com/odata2ts/odata2ts/commit/5eaf31a109058d9d0084c5a021ffad3b0b848c7a))
465
+
466
+ * **odata2model:** service gen for unbound funcs with params ([d7516da](https://github.com/odata2ts/odata2ts/commit/d7516dad3dc60d12bb885d3d7e9b52bc36a92b8f))
467
+
468
+ * **odata2model:** service generation for unbound parameterless functions ([2441aad](https://github.com/odata2ts/odata2ts/commit/2441aadc18941b866d7c702d5133f1d0743f1e0d))
469
+
470
+ * **odata2model:** setup ServiceGenerator ([8fbfffc](https://github.com/odata2ts/odata2ts/commit/8fbfffcbde532f1bcfba4d23bab64b80d9964717))
471
+
472
+ * **odata2model:** use dataModel.fileNames for app ([9487893](https://github.com/odata2ts/odata2ts/commit/9487893b233603ac6b4c7f581bb01a884cae475b))
473
+
474
+ * **service:** add singletons ([5695389](https://github.com/odata2ts/odata2ts/commit/56953890ab157bc50ab4eae9d48aeb98ebdb1951))
475
+
476
+ * **service:** init navProps via accessor instead of getter methods ([bb93f30](https://github.com/odata2ts/odata2ts/commit/bb93f304c06ff5e3e3e2ec1ce0ff27f884108feb))
477
+
478
+ # [0.3.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.2.1...@odata2ts/odata2model@0.3.0) (2021-08-10)
479
+
480
+ ### Bug Fixes
481
+
482
+ * **odata2model:** give first schema priority ([8fed26f](https://github.com/odata2ts/odata2ts/commit/8fed26f570e2435548d959f069f28b7d5533351a))
483
+
484
+ ### Code Refactoring
485
+
486
+ * QEntityModel without key spec ([913cd11](https://github.com/odata2ts/odata2ts/commit/913cd11df132969aca80054b2d1584bfe678a729))
487
+
488
+ ### Features
489
+
490
+ * **odata2model:** add type knowledge for function, action, complex & singleton ([56f7e5f](https://github.com/odata2ts/odata2ts/commit/56f7e5fe7ec1c699bacd6ea12a6c54f43002aca5))
491
+
492
+ * **odata2model:** generate Enums & CollectionPaths & respect baseClasses for QObjects ([e9dfce5](https://github.com/odata2ts/odata2ts/commit/e9dfce5ba15d8d10e56c63c9c88674f6c6b5b2cb))
493
+
494
+ * **odata2model:** model gen with support for complex types, enum types ([f2d5b3b](https://github.com/odata2ts/odata2ts/commit/f2d5b3b020bb1fbe2d81753432bd54738a3f1e67))
495
+
496
+ * **odata2model:** support BaseType for entity & complex types ([20c5ab2](https://github.com/odata2ts/odata2ts/commit/20c5ab2890fd8482c8897033b628a32ad88d4f2f))
497
+
498
+ * **odata2model:** support complex types & primitive collections ([6481920](https://github.com/odata2ts/odata2ts/commit/64819204f711d7e84ba1d2f153d826721780750c))
499
+
500
+ * add sample requests covering trippin features ([2cc900f](https://github.com/odata2ts/odata2ts/commit/2cc900fa4344c98ee8a521f50b158e8e7cb96dcc))
501
+
502
+ ### BREAKING CHANGES
503
+
504
+ * **odata2model:** qObjects are generated differently
505
+
506
+ * [query-objects]: QEntityModel without key spec & __collectionPath; [UrlBuilder]: path must be provided explicitly now for any entity set
507
+
508
+ ## [0.2.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.2.0...@odata2ts/odata2model@0.2.1) (2021-07-23)
509
+
510
+ ### Bug Fixes
511
+
512
+ * **odata2model:** respect suffix & prefix in relationships ([cc59d9f](https://github.com/odata2ts/odata2ts/commit/cc59d9f6b8e12a7a729dd297921f2f2c7be9fe50))
513
+
514
+ # [0.2.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.4...@odata2ts/odata2model@0.2.0) (2021-07-23)
515
+
516
+ ### Features
517
+
518
+ * **odata2model:** add options for suffix & prefix ([d5d9a81](https://github.com/odata2ts/odata2ts/commit/d5d9a8186304954c4700a05b2cab47fccf86d63c))
519
+
520
+ ## [0.1.4](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.3...@odata2ts/odata2model@0.1.4) (2021-07-08)
521
+
522
+ **Note:** Version bump only for package @odata2ts/odata2model
523
+
524
+ ## [0.1.3](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.2...@odata2ts/odata2model@0.1.3) (2021-07-01)
525
+
526
+ **Note:** Version bump only for package @odata2ts/odata2model
527
+
528
+ ## [0.1.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.1...@odata2ts/odata2model@0.1.2) (2021-07-01)
529
+
530
+ **Note:** Version bump only for package @odata2ts/odata2model
70
531
 
532
+ ## [0.1.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.0...@odata2ts/odata2model@0.1.1) (2021-07-01)
71
533
 
72
-
73
- # [0.17.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.16.1...@odata2ts/odata2model@0.17.0) (2023-01-05)
74
-
75
-
76
- ### Bug Fixes
77
-
78
- * **odata2ts:** broken js generation ([#95](https://github.com/odata2ts/odata2ts/issues/95)) ([6df7392](https://github.com/odata2ts/odata2ts/commit/6df7392b6bf72fc1621585d299ed3adebee53021))
79
- * **odata2ts:** operation return type for primitive values is wrong ([#91](https://github.com/odata2ts/odata2ts/issues/91)) ([fcbc28a](https://github.com/odata2ts/odata2ts/commit/fcbc28a8c388d256cb14ddf2a5935431e3a50478))
80
-
81
-
82
- ### Code Refactoring
83
-
84
- * **odata2ts:** changing default regarding renaming ([#94](https://github.com/odata2ts/odata2ts/issues/94)) ([67124a2](https://github.com/odata2ts/odata2ts/commit/67124a206d28442e86ab4db50b4aa3eb17056727))
85
-
86
-
87
- ### Features
88
-
89
- * dedicated number params for V2 ([#84](https://github.com/odata2ts/odata2ts/issues/84)) ([7a440d9](https://github.com/odata2ts/odata2ts/commit/7a440d92c40b39aedd4479ceed4afa18cc3a0ce9))
90
- * encode & decode function params properly ([#96](https://github.com/odata2ts/odata2ts/issues/96)) ([ca88f57](https://github.com/odata2ts/odata2ts/commit/ca88f572674181962760005cf33f820e231a2b51))
91
- * improved number handling ([#86](https://github.com/odata2ts/odata2ts/issues/86)) ([08e9fe0](https://github.com/odata2ts/odata2ts/commit/08e9fe0feaf5af6fcfe0ab8af7ff27d1d52eb097))
92
- * **odata2ts:** automatically handle managed props ([#88](https://github.com/odata2ts/odata2ts/issues/88)) ([37eef19](https://github.com/odata2ts/odata2ts/commit/37eef1918f25a4943ae19475dc987463639ab9f4))
93
-
94
-
95
- ### BREAKING CHANGES
96
-
97
- * **odata2ts:** new default: allowRenaming=false; removed prop `naming.disableNamingStrategy`
98
-
99
-
100
-
101
-
102
-
103
- ## [0.16.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.16.0...@odata2ts/odata2model@0.16.1) (2022-12-21)
104
-
105
-
106
- ### Bug Fixes
107
-
108
- * **odata2ts:** import deferred content from core (V2 only) ([66bee43](https://github.com/odata2ts/odata2ts/commit/66bee43bfe16bc930614bd82df48c46348e25b2b))
109
- * only import QEntityPath when needed ([81a4e77](https://github.com/odata2ts/odata2ts/commit/81a4e77b78d0fb02505b7989e7ae6737dc279e80))
110
-
111
-
112
-
113
-
114
-
115
-
116
- # [0.16.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.2...@odata2ts/odata2model@0.16.0) (2022-12-18)
117
-
118
-
119
- ### Bug Fixes
120
-
121
- * **odata2model:** don't generate useless constructors ([f495604](https://github.com/odata2ts/odata2ts/commit/f4956044df9cc081e90208fb3a961fa6572911db))
122
- * **odata2ts:** disable entities by name from config interfaces => not implemented yet ([96fefbe](https://github.com/odata2ts/odata2ts/commit/96fefbe22dc10cf7549a61551eadc93b870dcc0d))
123
- * **odata2ts:** disable own section about entitiesByName ([78d9c6e](https://github.com/odata2ts/odata2ts/commit/78d9c6e7e9eccd31f47a7f7b34af9e77dfeeb000))
124
-
125
-
126
- ### Features
127
-
128
- * **odata2model:** extensive configuration model via config file ([#67](https://github.com/odata2ts/odata2ts/issues/67)) ([a42aee4](https://github.com/odata2ts/odata2ts/commit/a42aee494a4e30d8704569d7262fc31020ed7711))
129
- * **odata2ts:** adapt method generation for services ([486a85c](https://github.com/odata2ts/odata2ts/commit/486a85cffc2ee06e6461ecd1f3dd00a8208b95f7))
130
- * **odata2ts:** adapt query object generation to OperationReturnTypes ([734e2bd](https://github.com/odata2ts/odata2ts/commit/734e2bd51a67cc285153c97f96655b950c62a230))
131
- * **odata2ts:** apply name mapping in all places ([dd5a6fd](https://github.com/odata2ts/odata2ts/commit/dd5a6fdde83cdc3f803eb1d96553571e78364849))
132
- * **odata2ts:** property configuration with name mapping and managed flag ([#78](https://github.com/odata2ts/odata2ts/issues/78)) ([797566c](https://github.com/odata2ts/odata2ts/commit/797566cf962e8c9b1f3a1a8081e066c9f0829b91))
133
-
134
-
135
-
136
-
137
-
138
- # [0.15.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.2...@odata2ts/odata2model@0.15.0) (2022-12-18)
139
-
140
-
141
- ### Bug Fixes
142
-
143
- * **odata2model:** don't generate useless constructors ([f495604](https://github.com/odata2ts/odata2ts/commit/f4956044df9cc081e90208fb3a961fa6572911db))
144
- * **odata2ts:** disable entities by name from config interfaces => not implemented yet ([96fefbe](https://github.com/odata2ts/odata2ts/commit/96fefbe22dc10cf7549a61551eadc93b870dcc0d))
145
- * **odata2ts:** disable own section about entitiesByName ([78d9c6e](https://github.com/odata2ts/odata2ts/commit/78d9c6e7e9eccd31f47a7f7b34af9e77dfeeb000))
146
-
147
-
148
- ### Features
149
-
150
- * **odata2model:** extensive configuration model via config file ([#67](https://github.com/odata2ts/odata2ts/issues/67)) ([a42aee4](https://github.com/odata2ts/odata2ts/commit/a42aee494a4e30d8704569d7262fc31020ed7711))
151
- * **odata2ts:** adapt method generation for services ([486a85c](https://github.com/odata2ts/odata2ts/commit/486a85cffc2ee06e6461ecd1f3dd00a8208b95f7))
152
- * **odata2ts:** adapt query object generation to OperationReturnTypes ([734e2bd](https://github.com/odata2ts/odata2ts/commit/734e2bd51a67cc285153c97f96655b950c62a230))
153
- * **odata2ts:** apply name mapping in all places ([dd5a6fd](https://github.com/odata2ts/odata2ts/commit/dd5a6fdde83cdc3f803eb1d96553571e78364849))
154
- * **odata2ts:** property configuration with name mapping and managed flag ([#78](https://github.com/odata2ts/odata2ts/issues/78)) ([797566c](https://github.com/odata2ts/odata2ts/commit/797566cf962e8c9b1f3a1a8081e066c9f0829b91))
155
-
156
-
157
-
158
-
159
-
160
-
161
- ## [0.14.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.1...@odata2ts/odata2model@0.14.2) (2022-09-09)
162
-
163
-
164
- ### Bug Fixes
165
-
166
- * IdFunction never gets v2Mode flag ([f36d173](https://github.com/odata2ts/odata2ts/commit/f36d173c3e48255777e5346441030b711706b1ad))
167
-
168
-
169
-
170
-
171
-
172
- ## [0.14.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.0...@odata2ts/odata2model@0.14.1) (2022-09-08)
173
-
174
-
175
- ### Bug Fixes
176
-
177
- * corrected int tests ([fff88be](https://github.com/odata2ts/odata2ts/commit/fff88be110cc53a5193ed72bd39a53cddc997a93))
178
- * don't map param names for now ([f39f541](https://github.com/odata2ts/odata2ts/commit/f39f541672f8a61a1d7554b8e86e58f606bd117b))
179
-
180
-
181
-
182
-
183
-
184
- # [0.14.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.13.1...@odata2ts/odata2model@0.14.0) (2022-09-08)
185
-
186
-
187
- ### Code Refactoring
188
-
189
- * centralize formatting and parsing of params & attributes ([#62](https://github.com/odata2ts/odata2ts/issues/62)) ([ba93a27](https://github.com/odata2ts/odata2ts/commit/ba93a278afd2de356675973fb2889483bc370f7a))
190
-
191
-
192
- ### Features
193
-
194
- * **odata-service:** allow to pass custom headers per request ([#58](https://github.com/odata2ts/odata2ts/issues/58)) ([d783e51](https://github.com/odata2ts/odata2ts/commit/d783e51e4b5a69892c79a03bedc6bf041abba9ec))
195
- * **odata2model:** add typescript support for odata2ts.config ([70a01e5](https://github.com/odata2ts/odata2ts/commit/70a01e5fd03baa5a470bc26b876df6a526782668))
196
- * **odata2model:** support V2 functions with HTTP method POST ([#61](https://github.com/odata2ts/odata2ts/issues/61)) ([c9213fa](https://github.com/odata2ts/odata2ts/commit/c9213faecd9e0ee7bebe049879b58a0f1b2ccd95))
197
-
198
-
199
- ### BREAKING CHANGES
200
-
201
- * UrlHelper including compile and parse methods have been removed; interfaces for EntityKeyProp, EntityKeySpec, InlineUrlProp, and InlineUrlProps have been removed; parsing of passed parameters is more strict.
202
-
203
- Introducing static functions on QPath objects to format and parse url conform values.
204
- Introducing QParams, QFunction and QAction to bundle logic around operations including the id function (url path generation).
205
- Generate models for IdType of entity & parameter models for functions / actions in general
206
- Generate Q-objects for EntityIdFunctions, and functions & actions in general
207
-
208
-
209
-
210
-
211
-
212
- ## [0.13.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.13.0...@odata2ts/odata2model@0.13.1) (2022-08-25)
213
-
214
-
215
- ### Bug Fixes
216
-
217
- * always create errors with new operator ([#54](https://github.com/odata2ts/odata2ts/issues/54)) ([562dede](https://github.com/odata2ts/odata2ts/commit/562dede85d7ce276957a4b1683856d4adfee3ad1))
218
-
219
-
220
-
221
-
222
-
223
- # [0.13.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.12.1...@odata2ts/odata2model@0.13.0) (2022-08-11)
224
-
225
-
226
- ### Code Refactoring
227
-
228
- * **uri-builder:** composition over inheritance, proper interfaces ([#48](https://github.com/odata2ts/odata2ts/issues/48)) ([36c8a0a](https://github.com/odata2ts/odata2ts/commit/36c8a0a27dabfbcfbd2359d040dcda518615a4e0))
229
-
230
-
231
- ### Features
232
-
233
- * **uri-builder:** V2 implementation of "expanding" method ([#49](https://github.com/odata2ts/odata2ts/issues/49)) ([e237c61](https://github.com/odata2ts/odata2ts/commit/e237c61710125daa6e7e6617ebf377304f1b5d89))
234
-
235
-
236
- ### BREAKING CHANGES
237
-
238
- * **uri-builder:** It was possible to select nested props by using q-props (V2 only); this syntax has been removed and will be replaced by making use of the current V4 syntax: you first expand the property (method "expanding") and then select (or expand) on the expanded entity.
239
- * **uri-builder:** ODataUriBuilder was removed from export, it might have served as base class but was of no other use.
240
-
241
-
242
-
243
-
244
-
245
- ## [0.12.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.12.0...@odata2ts/odata2model@0.12.1) (2022-08-01)
246
-
247
-
248
- ### Bug Fixes
249
-
250
- * add imports for returnType & don't camel case function / action params ([#44](https://github.com/odata2ts/odata2ts/issues/44)) ([b46e4fd](https://github.com/odata2ts/odata2ts/commit/b46e4fdf5bd1566c03c8833daf1a7afcbb471d53))
251
-
252
-
253
-
254
-
255
-
256
- # [0.12.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.2...@odata2ts/odata2model@0.12.0) (2022-08-01)
257
-
258
-
259
- ### Bug Fixes
260
-
261
- * remove superfluous constructor from qObjects ([#41](https://github.com/odata2ts/odata2ts/issues/41)) ([f5f5623](https://github.com/odata2ts/odata2ts/commit/f5f56233eeadff584dc91c4a05c4d3d8196a7af3))
262
-
263
-
264
- ### Code Refactoring
265
-
266
- * consistent casing for services, models and props ([#42](https://github.com/odata2ts/odata2ts/issues/42)) ([70e6e92](https://github.com/odata2ts/odata2ts/commit/70e6e92a888c67f65dadb643ed12ace692d2cc8a))
267
- * use proper getMethods for services ([#43](https://github.com/odata2ts/odata2ts/issues/43)) ([e05c818](https://github.com/odata2ts/odata2ts/commit/e05c818f193711a161a34be8e7a4c3ba71572a75))
268
-
269
-
270
- ### Features
271
-
272
- * createKey and parseKey for EntitySetService & correct V2 type prefixing ([#39](https://github.com/odata2ts/odata2ts/issues/39)) ([edd05bb](https://github.com/odata2ts/odata2ts/commit/edd05bbf7747ba280786c9ba274160ef274c030a))
273
- * typing improvements & editable model versions ([#27](https://github.com/odata2ts/odata2ts/issues/27)) ([df290df](https://github.com/odata2ts/odata2ts/commit/df290dff953a9e37c64c39c18ffdec74ce1874d4))
274
-
275
-
276
- ### BREAKING CHANGES
277
-
278
- * use proper getMethods for services "getXxxSrv()" instead of get accessors "xxx"
279
- * consistent camel or pascal casing for services, models and props
280
-
281
- * fix: always empty output dir before generating
282
- * model has become a true query response model.
283
- Properties which are nullable now allow null values instead of undefined;
284
- complex types are never undefined, but can be nullable;
285
- collections are never nullable.
286
- V2 only: added deferred content typings for entity and entity collection properties.
287
-
288
- * feat: generate EditableModels and use in service for create, update, and patch
289
- * different signatures for all actions
290
-
291
- * test: proper test for ModelImportContainer & dataModel.getEditableModelName
292
-
293
- * test: proper test for DataModel
294
-
295
- * refactor(odata2model): don't always combine handling of complex and entity types
296
-
297
-
298
-
299
-
300
-
301
- ## [0.11.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.1...@odata2ts/odata2model@0.11.2) (2022-07-20)
302
-
303
-
304
- ### Bug Fixes
305
-
306
- * guids in v2 have special syntax (guid'xxxx-...') ([#35](https://github.com/odata2ts/odata2ts/issues/35)) ([a551bcc](https://github.com/odata2ts/odata2ts/commit/a551bccf27dc7e8348020840402372582f9448e5))
307
-
308
-
309
-
310
-
311
-
312
- ## [0.11.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.0...@odata2ts/odata2model@0.11.1) (2022-07-11)
313
-
314
- **Note:** Version bump only for package @odata2ts/odata2model
315
-
316
-
317
-
318
-
319
-
320
- # [0.11.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.10.1...@odata2ts/odata2model@0.11.0) (2022-07-06)
321
-
322
-
323
- ### Features
324
-
325
- * **odata2model:** actions & function on collection level ([#33](https://github.com/odata2ts/odata2ts/issues/33)) ([985b2dc](https://github.com/odata2ts/odata2ts/commit/985b2dc6ca443a73b3a4c877712199c23c5a75cb))
326
-
327
-
328
-
329
-
330
-
331
- ## [0.10.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.10.0...@odata2ts/odata2model@0.10.1) (2022-06-30)
332
-
333
-
334
- ### Bug Fixes
335
-
336
- * add prebulish script to guarantee building before publishing ([b6986db](https://github.com/odata2ts/odata2ts/commit/b6986dbdb258b7b3cb8f36ab52ae1ff7b093f7dc))
337
-
338
-
339
-
340
-
341
-
342
- # [0.10.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.9.0...@odata2ts/odata2model@0.10.0) (2022-06-30)
343
-
344
-
345
- ### Features
346
-
347
- * use pascalCase for file names and allow to override serviceName ([#30](https://github.com/odata2ts/odata2ts/issues/30)) ([5aa1e44](https://github.com/odata2ts/odata2ts/commit/5aa1e44a32099d781649ffbed87daa85d0647f5f))
348
-
349
-
350
- ### BREAKING CHANGES
351
-
352
- * new file names
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
- # [0.9.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.2...@odata2ts/odata2model@0.9.0) (2022-05-21)
361
-
362
-
363
- ### Bug Fixes
364
-
365
- * V2 function params as query params ([07a1f29](https://github.com/odata2ts/odata2ts/commit/07a1f294005b9af7f1ebadecd8978ffca7caa80f))
366
- * **odata2model:** fix tests ([efd12bc](https://github.com/odata2ts/odata2ts/commit/efd12bcfb44b7522f3d5ff6c157acd8ca12f74cf))
367
- * **odata2model:DataModel:** Duplicate keys when extending multiple times ([157aa13](https://github.com/odata2ts/odata2ts/commit/157aa13a1ffc765b90abdfd2824a4da5fd0729ec))
368
- * **odata2model:test:** name northwind-v4 fixture correctly ([39e77f4](https://github.com/odata2ts/odata2ts/commit/39e77f46ea2de2fa381480d89e7c5551cd57d411))
369
- * **test:** collect code coverage from src folders, thus exhibiting untested code ([3acef8b](https://github.com/odata2ts/odata2ts/commit/3acef8b83b2625579bbce4a967724e884c39c358))
370
- * **test:** fix data-model tests ([b8abb8a](https://github.com/odata2ts/odata2ts/commit/b8abb8afe7dfdf4d940bb4cbc8d92575e0416087))
371
- * **test:** make coverage test run again ([f2d360b](https://github.com/odata2ts/odata2ts/commit/f2d360bac59901bd056dab5755dcf66d66988af5))
372
- * on windows ts-node needs cwd-mode flag ([4f3c0f5](https://github.com/odata2ts/odata2ts/commit/4f3c0f5da9257504f842ca7a51af31e0ef578018))
373
-
374
-
375
- ### Features
376
-
377
- * integration tests for V2 (ODataV2 sample service) ([98bf0b8](https://github.com/odata2ts/odata2ts/commit/98bf0b8fc950337c970b408036d103c2c5934402))
378
- * **odata2model:** FixtureComparator ignores [@ts-ignore](https://github.com/ts-ignore) ([b483ed5](https://github.com/odata2ts/odata2ts/commit/b483ed569394b3fb69c9b8d3904e377d2dc7a341))
379
- * **odata2model:** move v4 tests & adapt expectations of fixtures ([2f84127](https://github.com/odata2ts/odata2ts/commit/2f841278397564ed1e815a8087068921628ec15e))
380
- * **odata2model:** V2 service generation support ([2b17a01](https://github.com/odata2ts/odata2ts/commit/2b17a013d65fc12aac8315bc34bce441eb505870))
381
- * **odata2model:Cli:** load config from file via cosmiconfig ([a490778](https://github.com/odata2ts/odata2ts/commit/a4907785b90a513f6a4c910e861d63e14139908b))
382
- * **odata2model:Cli:** log file paths relative to working dir of process ([fc1ce86](https://github.com/odata2ts/odata2ts/commit/fc1ce86420858f72d87901435adccaba93280d8c))
383
- * **test:** add run-cli integration test ([45a2da1](https://github.com/odata2ts/odata2ts/commit/45a2da1ede37c2734003b40eadafffbc8a82c14a))
384
- * **test:** app test ([ad9d3f2](https://github.com/odata2ts/odata2ts/commit/ad9d3f2536828363ef153f54e31f3882089ee3a1))
385
- * **test:** Builder for generating Edmx schemas in JSON ([227279a](https://github.com/odata2ts/odata2ts/commit/227279a5faed92a8befa86e5c893e8c6d48df5d6))
386
- * **test:** FixtureComparator ([38b03bf](https://github.com/odata2ts/odata2ts/commit/38b03bf67019d45807c90f281bd935aa914f95e5))
387
- * **test:** ProjectManager test without testing formatting including some refactorings ([8f666f3](https://github.com/odata2ts/odata2ts/commit/8f666f35b10fb2b2a29c62ec01778fb73e1ab789))
388
- * **test:** same tests for model & qobject generation ([a4d882d](https://github.com/odata2ts/odata2ts/commit/a4d882da0bc6dd3c785d13d376b34245c82b0f4a))
389
- * **test:** ServiceGenerator tests & fixes ([6a2c242](https://github.com/odata2ts/odata2ts/commit/6a2c24225d9f8b9197c8223e507cf75ba5b74307))
390
- * **test:** test for ProjectManager (first draft) ([f705b0b](https://github.com/odata2ts/odata2ts/commit/f705b0bc29f4c848588a5c252ca22a5aebdefe0e))
391
- * **test:** testing Model generation ([6d7c530](https://github.com/odata2ts/odata2ts/commit/6d7c53084758b23a3a4525bd9ee8bc5efb25e71e))
392
- * **test:** Tests for DataModel and EDMX digestion ([5740292](https://github.com/odata2ts/odata2ts/commit/574029264fdf5af9dcd410108cd8aeb692fa623b))
393
-
394
-
395
- * Feat/refactor query objects (#20) ([67b662a](https://github.com/odata2ts/odata2ts/commit/67b662a6da3344eb215b4f1276bf26464d2126f5)), closes [#20](https://github.com/odata2ts/odata2ts/issues/20)
396
-
397
-
398
- ### BREAKING CHANGES
399
-
400
- * no EntityFactory anymore, no nominalized types in interfaces anymore, etc.
401
-
402
- * refactor(qObjects): getEntity with prefix option; by default without prefix
403
-
404
- * fix(qObjects): better QPath modelling
405
-
406
- * refactor(uri-builder): only use QueryObjects for typing & remove QEntityModel stuff
407
-
408
- * refactor(odata2model): generate new QObject classes
409
-
410
- * refactor(service): services now require Model as well as QClass
411
-
412
- * refactor(odata2model): generate services with new QObject classes
413
-
414
- * fix(odata2model): fix integration tests
415
-
416
- * fix: make int-tests for coverage task work again
417
-
418
- * fix: skip run-cli tests (don't work on github)
419
-
420
-
421
-
422
-
423
-
424
- ## [0.8.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.1...@odata2ts/odata2model@0.8.2) (2021-10-12)
425
-
426
- **Note:** Version bump only for package @odata2ts/odata2model
427
-
428
-
429
-
430
-
431
-
432
- ## [0.8.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.0...@odata2ts/odata2model@0.8.1) (2021-09-17)
433
-
434
-
435
- ### Bug Fixes
436
-
437
- * **odata-service:** revert exposure of Unnominalized ([6ce4ea7](https://github.com/odata2ts/odata2ts/commit/6ce4ea779f3a83e67aa02d6d9213dcec2711df8a))
438
-
439
-
440
-
441
-
442
-
443
- # [0.8.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.7.1...@odata2ts/odata2model@0.8.0) (2021-09-17)
444
-
445
-
446
- ### Bug Fixes
447
-
448
- * fix test ([2144cca](https://github.com/odata2ts/odata2ts/commit/2144cca49cda81ecc929425ca4171d99446c1ee1))
449
-
450
-
451
- ### Code Refactoring
452
-
453
- * **odata-service:** use odata names as param names ([73b130a](https://github.com/odata2ts/odata2ts/commit/73b130a06411e9e7bf030a3dd605d2bcaebf1d70))
454
-
455
-
456
- ### Features
457
-
458
- * **odata2model:** unnominalize response values of actions / functions ([4f284fa](https://github.com/odata2ts/odata2ts/commit/4f284fab3782ca5deb47d0e1b8ab25f5a2fc2bb2))
459
-
460
-
461
- ### BREAKING CHANGES
462
-
463
- * **odata-service:** param names of complex keys have changed
464
-
465
-
466
-
467
-
468
-
469
- ## [0.7.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.7.0...@odata2ts/odata2model@0.7.1) (2021-09-16)
470
-
471
- **Note:** Version bump only for package @odata2ts/odata2model
472
-
473
-
474
-
475
-
476
-
477
- # [0.7.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.6.0...@odata2ts/odata2model@0.7.0) (2021-08-31)
478
-
479
-
480
- ### Bug Fixes
481
-
482
- * **odata2model:** correct typing for returned collection types ([3943f08](https://github.com/odata2ts/odata2ts/commit/3943f089a57e3f37e703f577096bf58d18dda0fa))
483
- * **odata2model:** fix tests ([96556cd](https://github.com/odata2ts/odata2ts/commit/96556cd68aae86f2ac231925a49d7350a3670816))
484
- * **service:** don't use nominal types for input; use string instead ([788dc5c](https://github.com/odata2ts/odata2ts/commit/788dc5c091e5d1e29e2cf9f44cf1485f65691a6b))
485
-
486
-
487
- ### Features
488
-
489
- * map ID to id ([a0652fa](https://github.com/odata2ts/odata2ts/commit/a0652fa70617de2ce9de70d9b294532bce8c8b91))
490
-
491
-
492
-
493
-
494
-
495
- # [0.6.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.5.0...@odata2ts/odata2model@0.6.0) (2021-08-17)
496
-
497
-
498
- ### Features
499
-
500
- * **odata2model:** add emitMode to allow js and/or d.ts generation ([88e69ca](https://github.com/odata2ts/odata2ts/commit/88e69caff9d9b48f3f607f7f26d3d7d8d4449514))
501
-
502
-
503
-
504
-
505
-
506
- # [0.5.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.4.0...@odata2ts/odata2model@0.5.0) (2021-08-16)
507
-
508
-
509
- ### Bug Fixes
510
-
511
- * **odata2model:** add import for parameter types ([03f25f4](https://github.com/odata2ts/odata2ts/commit/03f25f406aa5f304eeef5f7a89cfda478eb05d2a))
512
-
513
-
514
- ### Features
515
-
516
- * **odata2model:** add bound func/actions & add primitive collections ([c18daac](https://github.com/odata2ts/odata2ts/commit/c18daac8135f17e1554e65ff4c5f4a7a76b4886b))
517
- * **odata2model:** check for missing type & throw error ([39cdd55](https://github.com/odata2ts/odata2ts/commit/39cdd55802afdcbc5846e4119a1696d236550009))
518
-
519
-
520
-
521
-
522
-
523
- # [0.4.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.3.0...@odata2ts/odata2model@0.4.0) (2021-08-16)
524
-
525
-
526
- ### Bug Fixes
527
-
528
- * more service tests, fix prop names vs odata names ([489b690](https://github.com/odata2ts/odata2ts/commit/489b69078144d3ed6a478373f7a22d8d923567ec))
529
- * **odata2model:** fix path for main entity sets ([c8fba2a](https://github.com/odata2ts/odata2ts/commit/c8fba2a5053a69621539e9cf71f792795b786f3e))
530
- * **odata2model:** wrong imort for service from root ([1de6eef](https://github.com/odata2ts/odata2ts/commit/1de6eef34dbc151c04dee91b119e59d3af28f94f))
531
-
532
-
533
- ### Features
534
-
535
- * **odata2model:** add CollectionService, rework main service file ([026e999](https://github.com/odata2ts/odata2ts/commit/026e999c266a2f2a60807519a79a30f8eba98b08))
536
- * **odata2model:** add jest & add dev and peer deps ([4076d1f](https://github.com/odata2ts/odata2ts/commit/4076d1fa64d64075722c3d137cf90ea31b587908))
537
- * **odata2model:** add keySpec to EntitySets & implement get() ([500e576](https://github.com/odata2ts/odata2ts/commit/500e576a95206bb23985f7a24de3e2e054f9c084))
538
- * **odata2model:** dataModel with fileNames, qNames, models with baseProps & baseKeys & qObjects(collections only) ([42d1630](https://github.com/odata2ts/odata2ts/commit/42d163013f8b273e54f7bf3549e4d5db7ba11386))
539
- * **odata2model:** generate ModelServices & EntitySetService ([347bbbb](https://github.com/odata2ts/odata2ts/commit/347bbbb350b97689cb8b17844c200dc9e021ea0b))
540
- * **odata2model:** introduce ImportContainer to organize imports ([6fab097](https://github.com/odata2ts/odata2ts/commit/6fab097b0e3286f07dcbde66b4648f965ec7e999))
541
- * **odata2model:** parse functions & actions & entityContainer stuff into DataModel ([7fb9bb8](https://github.com/odata2ts/odata2ts/commit/7fb9bb8884696484d333e48f8e653f0b06fb760a))
542
- * **odata2model:** realize new QEntityCollectionPath prop ([5eaf31a](https://github.com/odata2ts/odata2ts/commit/5eaf31a109058d9d0084c5a021ffad3b0b848c7a))
543
- * **odata2model:** service gen for unbound funcs with params ([d7516da](https://github.com/odata2ts/odata2ts/commit/d7516dad3dc60d12bb885d3d7e9b52bc36a92b8f))
544
- * **odata2model:** service generation for unbound parameterless functions ([2441aad](https://github.com/odata2ts/odata2ts/commit/2441aadc18941b866d7c702d5133f1d0743f1e0d))
545
- * **odata2model:** setup ServiceGenerator ([8fbfffc](https://github.com/odata2ts/odata2ts/commit/8fbfffcbde532f1bcfba4d23bab64b80d9964717))
546
- * **odata2model:** use dataModel.fileNames for app ([9487893](https://github.com/odata2ts/odata2ts/commit/9487893b233603ac6b4c7f581bb01a884cae475b))
547
- * **service:** add singletons ([5695389](https://github.com/odata2ts/odata2ts/commit/56953890ab157bc50ab4eae9d48aeb98ebdb1951))
548
- * **service:** init navProps via accessor instead of getter methods ([bb93f30](https://github.com/odata2ts/odata2ts/commit/bb93f304c06ff5e3e3e2ec1ce0ff27f884108feb))
549
-
550
-
551
-
552
-
553
-
554
- # [0.3.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.2.1...@odata2ts/odata2model@0.3.0) (2021-08-10)
555
-
556
-
557
- ### Bug Fixes
558
-
559
- * **odata2model:** give first schema priority ([8fed26f](https://github.com/odata2ts/odata2ts/commit/8fed26f570e2435548d959f069f28b7d5533351a))
560
-
561
-
562
- ### Code Refactoring
563
-
564
- * QEntityModel without key spec ([913cd11](https://github.com/odata2ts/odata2ts/commit/913cd11df132969aca80054b2d1584bfe678a729))
565
-
566
-
567
- ### Features
568
-
569
- * **odata2model:** add type knowledge for function, action, complex & singleton ([56f7e5f](https://github.com/odata2ts/odata2ts/commit/56f7e5fe7ec1c699bacd6ea12a6c54f43002aca5))
570
- * **odata2model:** generate Enums & CollectionPaths & respect baseClasses for QObjects ([e9dfce5](https://github.com/odata2ts/odata2ts/commit/e9dfce5ba15d8d10e56c63c9c88674f6c6b5b2cb))
571
- * **odata2model:** model gen with support for complex types, enum types ([f2d5b3b](https://github.com/odata2ts/odata2ts/commit/f2d5b3b020bb1fbe2d81753432bd54738a3f1e67))
572
- * **odata2model:** support BaseType for entity & complex types ([20c5ab2](https://github.com/odata2ts/odata2ts/commit/20c5ab2890fd8482c8897033b628a32ad88d4f2f))
573
- * **odata2model:** support complex types & primitive collections ([6481920](https://github.com/odata2ts/odata2ts/commit/64819204f711d7e84ba1d2f153d826721780750c))
574
- * add sample requests covering trippin features ([2cc900f](https://github.com/odata2ts/odata2ts/commit/2cc900fa4344c98ee8a521f50b158e8e7cb96dcc))
575
-
576
-
577
- ### BREAKING CHANGES
578
-
579
- * **odata2model:** qObjects are generated differently
580
- * [query-objects]: QEntityModel without key spec & __collectionPath; [UrlBuilder]: path must be provided explicitly now for any entity set
581
-
582
-
583
-
584
-
585
-
586
- ## [0.2.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.2.0...@odata2ts/odata2model@0.2.1) (2021-07-23)
587
-
588
-
589
- ### Bug Fixes
590
-
591
- * **odata2model:** respect suffix & prefix in relationships ([cc59d9f](https://github.com/odata2ts/odata2ts/commit/cc59d9f6b8e12a7a729dd297921f2f2c7be9fe50))
592
-
593
-
594
-
595
-
596
-
597
- # [0.2.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.4...@odata2ts/odata2model@0.2.0) (2021-07-23)
598
-
599
-
600
- ### Features
601
-
602
- * **odata2model:** add options for suffix & prefix ([d5d9a81](https://github.com/odata2ts/odata2ts/commit/d5d9a8186304954c4700a05b2cab47fccf86d63c))
603
-
604
-
605
-
606
-
607
-
608
- ## [0.1.4](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.3...@odata2ts/odata2model@0.1.4) (2021-07-08)
609
-
610
- **Note:** Version bump only for package @odata2ts/odata2model
611
-
612
-
613
-
614
-
615
-
616
- ## [0.1.3](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.2...@odata2ts/odata2model@0.1.3) (2021-07-01)
617
-
618
- **Note:** Version bump only for package @odata2ts/odata2model
619
-
620
-
621
-
622
-
623
-
624
- ## [0.1.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.1...@odata2ts/odata2model@0.1.2) (2021-07-01)
625
-
626
- **Note:** Version bump only for package @odata2ts/odata2model
627
-
628
-
629
-
630
-
631
-
632
- ## [0.1.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.0...@odata2ts/odata2model@0.1.1) (2021-07-01)
633
-
634
534
  **Note:** Version bump only for package @odata2ts/odata2model
package/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  [![npm (scoped)](https://img.shields.io/npm/v/@odata2ts/odata2ts?style=for-the-badge)](https://www.npmjs.com/package/@odata2ts/odata2ts)
2
2
 
3
- # OData 2 TS
3
+ # odata2ts
4
4
 
5
- Generate TypeScript models, query objects and / or complete client services from a given metadata description of an OData service.
5
+ Generate TypeScript models, magical q-objects and / or complete client services
6
+ from readily available metadata descriptions of your OData service.
6
7
 
7
8
  ## Installation
8
9
 
@@ -12,118 +13,23 @@ npm install --save-dev @odata2ts/odata2ts
12
13
  yarn add --dev @odata2ts/odata2ts
13
14
  ```
14
15
 
15
- ## Prerequisites
16
+ ## Implicit Dependencies
17
+ The generated artefacts depend on other libraries. `odata2ts` lists them as peer dependencies.
18
+ Hence, you will need to add runtime dependencies matching the mentioned peer dependencies.
19
+ See the Getting Started Guide of the documentation.
16
20
 
17
- First download the metadata description file of your OData service.
21
+ ## Documentation
22
+ Main documentation for the odata2ts eco system:
23
+ [https://odata2ts.github.io](https://odata2ts.github.io/)
18
24
 
19
- You just add `/$metadata` to the base path of the service, e.g. https://services.odata.org/V4/Northwind/Northwind.svc/$metadata.
20
- <br/>Save the XML in an own file, e.g. `src/odata/northwind.xml`.
25
+ ## Examples
26
+ See [example packages](https://github.com/odata2ts/odata2ts/tree/main/examples) for examples of how to integrate `odata2ts`.
21
27
 
22
- ## Usage
28
+ ## Spirit
29
+ * Adhere to the OData specification as much as possible
30
+ * Test Driven Development
31
+ * High Code Coverage: > 90%
23
32
 
24
- `odata2ts` is the main command which is called via script in package.json, or directly via npx or yarn:
25
- ```
26
- // package.json script
27
- scripts: {
28
- ...
29
- "gen-odata": "npm run odata2ts -s src/odata/northwind.xml -o build/northwind"
30
- }
31
- // then from command line
32
- npm run gen-odata
33
- ```
34
- ```
35
- // directly from command line via npx or yarn
36
- yarn odata2ts -s src/odata/northwind.xml -o build/northwind
37
- ```
38
- These usage examples highlight the minimal configuration which is required for each OData service:
39
- - source: the downloaded metadata file
40
- - output: the output directory for the generated files
41
-
42
- ### Config file: `odata2ts.config.ts`
43
- Instead of specifying these or other parameters via the command line you can use a config file written in TypeScript.
44
- It centralizes all configurations and allows for handling multiple OData services:
45
- ```ts
46
- import { ConfigFileOptions } from "@odata2ts/odata2ts";
47
-
48
- const config: ConfigFileOptions = {
49
- services: {
50
- northwind: {
51
- source: "src/odata/northwind.xml",
52
- output: "build/northwind",
53
- },
54
- trippin: {
55
- source: "src/odata/trippin.xml",
56
- output: "build/trippin",
57
- }
58
- }
59
- }
60
- export default config;
61
- ```
62
- With this configuration in place, we can now call `odata2ts` without any options.
63
- Additionally, individual services can be addressed as arguments:
64
- ```
65
- yarn odata2ts // start generation process for all configured services
66
- yarn odata2ts northwind // start generation process for one specific service
67
- yarn odata2ts northwind trippin // start generation process for multiple services
68
- ```
69
-
70
- ## Command Line Options
71
- Options specified on the command line always win over other configuration possibilities.
72
-
73
- Options `source` and `output` are required unless the config file is used
74
- containing appropriate service definitions.
75
-
76
-
77
- | Option | Shorthand | Required | Default | Description |
78
- |----------------------------|-----------|:--------:|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
79
- | --source | -s | (x) | | Specifies the source file, i.e. metadata description |
80
- | --output | -o | (x) | | Specifies the output directory |
81
- | --mode | -m | | "all" | Allowed are: all, models, qobjects, service |
82
- | --emit-mode | -e | | "js_dts" | Specify what to emit. ALlowed values: ts, js, dts, js_dts |
83
- | --prettier | -p | | false | Use prettier to pretty print the TS result files; only applies when emitMode = ts |
84
- | --tsconfig | -t | | "tsconfig.json" | When compiling TS to JS, the compilerOptions of the specified file are used; only takes effect, when emitMode != ts |
85
- | --allow-renaming | -r | | false | Allow renaming of model entities and their props by applying naming strategies like camelCase or PascalCase |
86
- | --disable-auto-managed-key | -n | | false | odata2ts will automatically decide if a key prop is managed on the server side and therefore not editable; here you can turn off this automatism |
87
- | --debug | -d | | false | Add debug information |
88
- | --service-name | -name | | | Overwrites the service name found in OData metadata => controls name of main odata service |
89
-
90
- ## Configuration File
91
-
92
- Create a file at the root of your project (beside package.json)
93
- and call it: `odata2ts.config.ts`.
94
-
95
- None of the options are required, so here is just an example:
96
- ```ts
97
- import { ConfigFileOptions, EmitModes } from "@odata2ts/odata2ts";
98
-
99
- const config: ConfigFileOptions = {
100
- debug: true,
101
- emitMode: EmitModes.ts,
102
- prettier: true,
103
- converters: ["@odata2ts/v2-to-v4-converter"],
104
- services: {
105
- northwind: {
106
- source: "src/odata/northwind.xml",
107
- output: "build/northwind",
108
- serviceName: "StrongWind"
109
- }
110
- }
111
- }
112
- export default config;
113
- ```
114
- As you can see, enums are provided for `emitMode` and the same goes for the `mode` option.
115
-
116
- The usage of converters is documented in the [converter-api](../converter-api).
117
-
118
-
119
- ### Default Settings vs Base Settings vs Service Settings
120
- The [defaultConfig](src/defaultConfig.ts) lists all default values, which are always used.
121
-
122
- All settings except the `services` attribute are **base settings**, which will also be used as default settings,
123
- i.e. on top of the defaultConfig.
124
-
125
- All settings starting from the `services` attribute are only valid for a specific service and only applied
126
- for its generation run. Service specific settings are applied on top of the base settings.
127
-
128
- Additionally, CLI options can be used to override base or service settings.
33
+ ## License
34
+ MIT
129
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odata2ts/odata2ts",
3
- "version": "0.18.3",
3
+ "version": "0.18.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,6 +8,7 @@
8
8
  "license": "MIT",
9
9
  "repository": "git@github.com:odata2ts/odata2ts.git",
10
10
  "author": "texttechne",
11
+ "homepage": "https://odata2ts.github.io/",
11
12
  "main": "lib/index.js",
12
13
  "bin": "lib/run-cli.js",
13
14
  "scripts": {
@@ -46,13 +47,13 @@
46
47
  ],
47
48
  "peerDependencies": {
48
49
  "@odata2ts/odata-client-api": "^0.6.0",
49
- "@odata2ts/odata-query-objects": "^0.16.0",
50
- "@odata2ts/odata-service": "^0.13.0"
50
+ "@odata2ts/odata-query-objects": "^0.16.4",
51
+ "@odata2ts/odata-service": "^0.13.4"
51
52
  },
52
53
  "dependencies": {
53
- "@odata2ts/converter-api": "^0.1.0",
54
- "@odata2ts/converter-runtime": "^0.1.0",
55
- "@odata2ts/odata-core": "^0.3.3",
54
+ "@odata2ts/converter-api": "^0.1.1",
55
+ "@odata2ts/converter-runtime": "^0.1.2",
56
+ "@odata2ts/odata-core": "^0.3.6",
56
57
  "camel-case": "^4.1.2",
57
58
  "commander": "^9.1.0",
58
59
  "constant-case": "^3.0.4",
@@ -69,10 +70,10 @@
69
70
  "xml2js": "^0.4.23"
70
71
  },
71
72
  "devDependencies": {
72
- "@odata2ts/converter-v2-to-v4": "^0.1.0",
73
+ "@odata2ts/converter-v2-to-v4": "^0.1.2",
73
74
  "@odata2ts/odata-client-api": "^0.6.2",
74
- "@odata2ts/odata-query-objects": "^0.16.1",
75
- "@odata2ts/odata-service": "^0.13.1",
75
+ "@odata2ts/odata-query-objects": "^0.16.4",
76
+ "@odata2ts/odata-service": "^0.13.4",
76
77
  "@types/fs-extra": "^9.0.13",
77
78
  "@types/jest": "^27.4.1",
78
79
  "@types/node": "^17.0.23",
@@ -87,6 +88,6 @@
87
88
  "typescript": "^4.9.4"
88
89
  },
89
90
  "types": "./lib/index.d.ts",
90
- "gitHead": "3bc1f2a95ebc55a99d353d8a3d12a6c17eeff1f2",
91
+ "gitHead": "c9cb50ef2ed02a057ffd1654fd088d4feae1a5e1",
91
92
  "readme": "README.md"
92
93
  }