@odata2ts/odata2ts 0.18.0

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 (97) hide show
  1. package/CHANGELOG.md +601 -0
  2. package/LICENSE +21 -0
  3. package/README.md +129 -0
  4. package/lib/FactoryFunctionModel.d.ts +13 -0
  5. package/lib/FactoryFunctionModel.js +3 -0
  6. package/lib/FactoryFunctionModel.js.map +1 -0
  7. package/lib/NamingModel.d.ts +191 -0
  8. package/lib/NamingModel.js +12 -0
  9. package/lib/NamingModel.js.map +1 -0
  10. package/lib/OptionModel.d.ts +208 -0
  11. package/lib/OptionModel.js +24 -0
  12. package/lib/OptionModel.js.map +1 -0
  13. package/lib/app.d.ts +8 -0
  14. package/lib/app.js +61 -0
  15. package/lib/app.js.map +1 -0
  16. package/lib/cli.d.ts +3 -0
  17. package/lib/cli.js +154 -0
  18. package/lib/cli.js.map +1 -0
  19. package/lib/data-model/DataModel.d.ts +68 -0
  20. package/lib/data-model/DataModel.js +114 -0
  21. package/lib/data-model/DataModel.js.map +1 -0
  22. package/lib/data-model/DataModelDigestion.d.ts +43 -0
  23. package/lib/data-model/DataModelDigestion.js +224 -0
  24. package/lib/data-model/DataModelDigestion.js.map +1 -0
  25. package/lib/data-model/DataModelDigestionV2.d.ts +10 -0
  26. package/lib/data-model/DataModelDigestionV2.js +201 -0
  27. package/lib/data-model/DataModelDigestionV2.js.map +1 -0
  28. package/lib/data-model/DataModelDigestionV4.d.ts +3 -0
  29. package/lib/data-model/DataModelDigestionV4.js +196 -0
  30. package/lib/data-model/DataModelDigestionV4.js.map +1 -0
  31. package/lib/data-model/DataTypeModel.d.ts +102 -0
  32. package/lib/data-model/DataTypeModel.js +9 -0
  33. package/lib/data-model/DataTypeModel.js.map +1 -0
  34. package/lib/data-model/NamingHelper.d.ts +57 -0
  35. package/lib/data-model/NamingHelper.js +225 -0
  36. package/lib/data-model/NamingHelper.js.map +1 -0
  37. package/lib/data-model/ServiceConfigHelper.d.ts +13 -0
  38. package/lib/data-model/ServiceConfigHelper.js +63 -0
  39. package/lib/data-model/ServiceConfigHelper.js.map +1 -0
  40. package/lib/data-model/edmx/ODataEdmxModelBase.d.ts +79 -0
  41. package/lib/data-model/edmx/ODataEdmxModelBase.js +3 -0
  42. package/lib/data-model/edmx/ODataEdmxModelBase.js.map +1 -0
  43. package/lib/data-model/edmx/ODataEdmxModelV3.d.ts +63 -0
  44. package/lib/data-model/edmx/ODataEdmxModelV3.js +3 -0
  45. package/lib/data-model/edmx/ODataEdmxModelV3.js.map +1 -0
  46. package/lib/data-model/edmx/ODataEdmxModelV4.d.ts +67 -0
  47. package/lib/data-model/edmx/ODataEdmxModelV4.js +3 -0
  48. package/lib/data-model/edmx/ODataEdmxModelV4.js.map +1 -0
  49. package/lib/defaultConfig.d.ts +9 -0
  50. package/lib/defaultConfig.js +176 -0
  51. package/lib/defaultConfig.js.map +1 -0
  52. package/lib/evaluateConfig.d.ts +25 -0
  53. package/lib/evaluateConfig.js +78 -0
  54. package/lib/evaluateConfig.js.map +1 -0
  55. package/lib/generator/ImportContainer.d.ts +16 -0
  56. package/lib/generator/ImportContainer.js +92 -0
  57. package/lib/generator/ImportContainer.js.map +1 -0
  58. package/lib/generator/ModelGenerator.d.ts +2 -0
  59. package/lib/generator/ModelGenerator.js +178 -0
  60. package/lib/generator/ModelGenerator.js.map +1 -0
  61. package/lib/generator/QueryObjectGenerator.d.ts +2 -0
  62. package/lib/generator/QueryObjectGenerator.js +234 -0
  63. package/lib/generator/QueryObjectGenerator.js.map +1 -0
  64. package/lib/generator/ServiceGenerator.d.ts +5 -0
  65. package/lib/generator/ServiceGenerator.js +412 -0
  66. package/lib/generator/ServiceGenerator.js.map +1 -0
  67. package/lib/generator/index.d.ts +3 -0
  68. package/lib/generator/index.js +10 -0
  69. package/lib/generator/index.js.map +1 -0
  70. package/lib/index.d.ts +3 -0
  71. package/lib/index.js +7 -0
  72. package/lib/index.js.map +1 -0
  73. package/lib/project/ProjectManager.d.ts +30 -0
  74. package/lib/project/ProjectManager.js +177 -0
  75. package/lib/project/ProjectManager.js.map +1 -0
  76. package/lib/project/formatter/BaseFormatter.d.ts +49 -0
  77. package/lib/project/formatter/BaseFormatter.js +31 -0
  78. package/lib/project/formatter/BaseFormatter.js.map +1 -0
  79. package/lib/project/formatter/FileFormatter.d.ts +16 -0
  80. package/lib/project/formatter/FileFormatter.js +3 -0
  81. package/lib/project/formatter/FileFormatter.js.map +1 -0
  82. package/lib/project/formatter/NoopFormatter.d.ts +29 -0
  83. package/lib/project/formatter/NoopFormatter.js +43 -0
  84. package/lib/project/formatter/NoopFormatter.js.map +1 -0
  85. package/lib/project/formatter/PrettierFormatter.d.ts +46 -0
  86. package/lib/project/formatter/PrettierFormatter.js +93 -0
  87. package/lib/project/formatter/PrettierFormatter.js.map +1 -0
  88. package/lib/project/formatter/index.d.ts +2 -0
  89. package/lib/project/formatter/index.js +15 -0
  90. package/lib/project/formatter/index.js.map +1 -0
  91. package/lib/project/logger/logFilePath.d.ts +1 -0
  92. package/lib/project/logger/logFilePath.js +13 -0
  93. package/lib/project/logger/logFilePath.js.map +1 -0
  94. package/lib/run-cli.d.ts +2 -0
  95. package/lib/run-cli.js +7 -0
  96. package/lib/run-cli.js.map +1 -0
  97. package/package.json +91 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,601 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ # 0.18.0 (2023-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **odata2ts:** configurable naming of main service ([c2bdeeb](https://github.com/odata2ts/odata2ts/commit/c2bdeeb9e35f8a4ed31e35c41e4f01ddef9bd9a6))
12
+
13
+
14
+ ### Code Refactoring
15
+
16
+ * odata2model => odata2ts ([#97](https://github.com/odata2ts/odata2ts/issues/97)) ([4085c7c](https://github.com/odata2ts/odata2ts/commit/4085c7ccf173c6712c5238f8b43e86842eecb19a))
17
+ * rename odata-uri-builder to odata-query-builder ([#98](https://github.com/odata2ts/odata2ts/issues/98)) ([e0de825](https://github.com/odata2ts/odata2ts/commit/e0de825663fab15c37854ae08f75ab8df761cd3e))
18
+
19
+
20
+ ### Features
21
+
22
+ * **odata-service:** introduce entity service resolver ([#100](https://github.com/odata2ts/odata2ts/issues/100)) ([66dd853](https://github.com/odata2ts/odata2ts/commit/66dd853bbc28a0758fae04abd5e8885689aeabc2))
23
+ * **odata2ts:** add snakeCase as new renaming strategy ([#101](https://github.com/odata2ts/odata2ts/issues/101)) ([09f9bfb](https://github.com/odata2ts/odata2ts/commit/09f9bfbde7f1e75c9a29ff774f7d771cfab7106b))
24
+ * **odata2ts:** minimal naming options ([#104](https://github.com/odata2ts/odata2ts/issues/104)) ([67ddfa7](https://github.com/odata2ts/odata2ts/commit/67ddfa74f977e164892c2953dc8c5459a92c11d4))
25
+ * **odata2ts:** use navToX instead of getXSrv ([#99](https://github.com/odata2ts/odata2ts/issues/99)) ([4aafcb0](https://github.com/odata2ts/odata2ts/commit/4aafcb0cd307748feed4df075459e17e83876f3b))
26
+
27
+
28
+ ### BREAKING CHANGES
29
+
30
+ * **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
31
+ * **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"
32
+ * rename module odata-uri-builder to odata-query-builder; API completely refactored by renaming all models, classes, functions, props from "uri" to "query"
33
+ * rename odata2model to odata2ts; affects import in `odata2ts.config`, affects scripts in `package.json` or any scripts which use to call `odata2model` command directly
34
+
35
+
36
+
37
+
38
+
39
+
40
+ # [0.17.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.16.1...@odata2ts/odata2model@0.17.0) (2023-01-05)
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **odata2ts:** broken js generation ([#95](https://github.com/odata2ts/odata2ts/issues/95)) ([6df7392](https://github.com/odata2ts/odata2ts/commit/6df7392b6bf72fc1621585d299ed3adebee53021))
46
+ * **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))
47
+
48
+
49
+ ### Code Refactoring
50
+
51
+ * **odata2ts:** changing default regarding renaming ([#94](https://github.com/odata2ts/odata2ts/issues/94)) ([67124a2](https://github.com/odata2ts/odata2ts/commit/67124a206d28442e86ab4db50b4aa3eb17056727))
52
+
53
+
54
+ ### Features
55
+
56
+ * dedicated number params for V2 ([#84](https://github.com/odata2ts/odata2ts/issues/84)) ([7a440d9](https://github.com/odata2ts/odata2ts/commit/7a440d92c40b39aedd4479ceed4afa18cc3a0ce9))
57
+ * encode & decode function params properly ([#96](https://github.com/odata2ts/odata2ts/issues/96)) ([ca88f57](https://github.com/odata2ts/odata2ts/commit/ca88f572674181962760005cf33f820e231a2b51))
58
+ * improved number handling ([#86](https://github.com/odata2ts/odata2ts/issues/86)) ([08e9fe0](https://github.com/odata2ts/odata2ts/commit/08e9fe0feaf5af6fcfe0ab8af7ff27d1d52eb097))
59
+ * **odata2ts:** automatically handle managed props ([#88](https://github.com/odata2ts/odata2ts/issues/88)) ([37eef19](https://github.com/odata2ts/odata2ts/commit/37eef1918f25a4943ae19475dc987463639ab9f4))
60
+
61
+
62
+ ### BREAKING CHANGES
63
+
64
+ * **odata2ts:** new default: allowRenaming=false; removed prop `naming.disableNamingStrategy`
65
+
66
+
67
+
68
+
69
+
70
+ ## [0.16.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.16.0...@odata2ts/odata2model@0.16.1) (2022-12-21)
71
+
72
+
73
+ ### Bug Fixes
74
+
75
+ * **odata2ts:** import deferred content from core (V2 only) ([66bee43](https://github.com/odata2ts/odata2ts/commit/66bee43bfe16bc930614bd82df48c46348e25b2b))
76
+ * only import QEntityPath when needed ([81a4e77](https://github.com/odata2ts/odata2ts/commit/81a4e77b78d0fb02505b7989e7ae6737dc279e80))
77
+
78
+
79
+
80
+
81
+
82
+
83
+ # [0.16.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.2...@odata2ts/odata2model@0.16.0) (2022-12-18)
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * **odata2model:** don't generate useless constructors ([f495604](https://github.com/odata2ts/odata2ts/commit/f4956044df9cc081e90208fb3a961fa6572911db))
89
+ * **odata2ts:** disable entities by name from config interfaces => not implemented yet ([96fefbe](https://github.com/odata2ts/odata2ts/commit/96fefbe22dc10cf7549a61551eadc93b870dcc0d))
90
+ * **odata2ts:** disable own section about entitiesByName ([78d9c6e](https://github.com/odata2ts/odata2ts/commit/78d9c6e7e9eccd31f47a7f7b34af9e77dfeeb000))
91
+
92
+
93
+ ### Features
94
+
95
+ * **odata2model:** extensive configuration model via config file ([#67](https://github.com/odata2ts/odata2ts/issues/67)) ([a42aee4](https://github.com/odata2ts/odata2ts/commit/a42aee494a4e30d8704569d7262fc31020ed7711))
96
+ * **odata2ts:** adapt method generation for services ([486a85c](https://github.com/odata2ts/odata2ts/commit/486a85cffc2ee06e6461ecd1f3dd00a8208b95f7))
97
+ * **odata2ts:** adapt query object generation to OperationReturnTypes ([734e2bd](https://github.com/odata2ts/odata2ts/commit/734e2bd51a67cc285153c97f96655b950c62a230))
98
+ * **odata2ts:** apply name mapping in all places ([dd5a6fd](https://github.com/odata2ts/odata2ts/commit/dd5a6fdde83cdc3f803eb1d96553571e78364849))
99
+ * **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))
100
+
101
+
102
+
103
+
104
+
105
+ # [0.15.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.2...@odata2ts/odata2model@0.15.0) (2022-12-18)
106
+
107
+
108
+ ### Bug Fixes
109
+
110
+ * **odata2model:** don't generate useless constructors ([f495604](https://github.com/odata2ts/odata2ts/commit/f4956044df9cc081e90208fb3a961fa6572911db))
111
+ * **odata2ts:** disable entities by name from config interfaces => not implemented yet ([96fefbe](https://github.com/odata2ts/odata2ts/commit/96fefbe22dc10cf7549a61551eadc93b870dcc0d))
112
+ * **odata2ts:** disable own section about entitiesByName ([78d9c6e](https://github.com/odata2ts/odata2ts/commit/78d9c6e7e9eccd31f47a7f7b34af9e77dfeeb000))
113
+
114
+
115
+ ### Features
116
+
117
+ * **odata2model:** extensive configuration model via config file ([#67](https://github.com/odata2ts/odata2ts/issues/67)) ([a42aee4](https://github.com/odata2ts/odata2ts/commit/a42aee494a4e30d8704569d7262fc31020ed7711))
118
+ * **odata2ts:** adapt method generation for services ([486a85c](https://github.com/odata2ts/odata2ts/commit/486a85cffc2ee06e6461ecd1f3dd00a8208b95f7))
119
+ * **odata2ts:** adapt query object generation to OperationReturnTypes ([734e2bd](https://github.com/odata2ts/odata2ts/commit/734e2bd51a67cc285153c97f96655b950c62a230))
120
+ * **odata2ts:** apply name mapping in all places ([dd5a6fd](https://github.com/odata2ts/odata2ts/commit/dd5a6fdde83cdc3f803eb1d96553571e78364849))
121
+ * **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))
122
+
123
+
124
+
125
+
126
+
127
+
128
+ ## [0.14.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.1...@odata2ts/odata2model@0.14.2) (2022-09-09)
129
+
130
+
131
+ ### Bug Fixes
132
+
133
+ * IdFunction never gets v2Mode flag ([f36d173](https://github.com/odata2ts/odata2ts/commit/f36d173c3e48255777e5346441030b711706b1ad))
134
+
135
+
136
+
137
+
138
+
139
+ ## [0.14.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.14.0...@odata2ts/odata2model@0.14.1) (2022-09-08)
140
+
141
+
142
+ ### Bug Fixes
143
+
144
+ * corrected int tests ([fff88be](https://github.com/odata2ts/odata2ts/commit/fff88be110cc53a5193ed72bd39a53cddc997a93))
145
+ * don't map param names for now ([f39f541](https://github.com/odata2ts/odata2ts/commit/f39f541672f8a61a1d7554b8e86e58f606bd117b))
146
+
147
+
148
+
149
+
150
+
151
+ # [0.14.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.13.1...@odata2ts/odata2model@0.14.0) (2022-09-08)
152
+
153
+
154
+ ### Code Refactoring
155
+
156
+ * centralize formatting and parsing of params & attributes ([#62](https://github.com/odata2ts/odata2ts/issues/62)) ([ba93a27](https://github.com/odata2ts/odata2ts/commit/ba93a278afd2de356675973fb2889483bc370f7a))
157
+
158
+
159
+ ### Features
160
+
161
+ * **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))
162
+ * **odata2model:** add typescript support for odata2ts.config ([70a01e5](https://github.com/odata2ts/odata2ts/commit/70a01e5fd03baa5a470bc26b876df6a526782668))
163
+ * **odata2model:** support V2 functions with HTTP method POST ([#61](https://github.com/odata2ts/odata2ts/issues/61)) ([c9213fa](https://github.com/odata2ts/odata2ts/commit/c9213faecd9e0ee7bebe049879b58a0f1b2ccd95))
164
+
165
+
166
+ ### BREAKING CHANGES
167
+
168
+ * 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.
169
+
170
+ Introducing static functions on QPath objects to format and parse url conform values.
171
+ Introducing QParams, QFunction and QAction to bundle logic around operations including the id function (url path generation).
172
+ Generate models for IdType of entity & parameter models for functions / actions in general
173
+ Generate Q-objects for EntityIdFunctions, and functions & actions in general
174
+
175
+
176
+
177
+
178
+
179
+ ## [0.13.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.13.0...@odata2ts/odata2model@0.13.1) (2022-08-25)
180
+
181
+
182
+ ### Bug Fixes
183
+
184
+ * always create errors with new operator ([#54](https://github.com/odata2ts/odata2ts/issues/54)) ([562dede](https://github.com/odata2ts/odata2ts/commit/562dede85d7ce276957a4b1683856d4adfee3ad1))
185
+
186
+
187
+
188
+
189
+
190
+ # [0.13.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.12.1...@odata2ts/odata2model@0.13.0) (2022-08-11)
191
+
192
+
193
+ ### Code Refactoring
194
+
195
+ * **uri-builder:** composition over inheritance, proper interfaces ([#48](https://github.com/odata2ts/odata2ts/issues/48)) ([36c8a0a](https://github.com/odata2ts/odata2ts/commit/36c8a0a27dabfbcfbd2359d040dcda518615a4e0))
196
+
197
+
198
+ ### Features
199
+
200
+ * **uri-builder:** V2 implementation of "expanding" method ([#49](https://github.com/odata2ts/odata2ts/issues/49)) ([e237c61](https://github.com/odata2ts/odata2ts/commit/e237c61710125daa6e7e6617ebf377304f1b5d89))
201
+
202
+
203
+ ### BREAKING CHANGES
204
+
205
+ * **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.
206
+ * **uri-builder:** ODataUriBuilder was removed from export, it might have served as base class but was of no other use.
207
+
208
+
209
+
210
+
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
+
215
+ ### Bug Fixes
216
+
217
+ * 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))
218
+
219
+
220
+
221
+
222
+
223
+ # [0.12.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.2...@odata2ts/odata2model@0.12.0) (2022-08-01)
224
+
225
+
226
+ ### Bug Fixes
227
+
228
+ * remove superfluous constructor from qObjects ([#41](https://github.com/odata2ts/odata2ts/issues/41)) ([f5f5623](https://github.com/odata2ts/odata2ts/commit/f5f56233eeadff584dc91c4a05c4d3d8196a7af3))
229
+
230
+
231
+ ### Code Refactoring
232
+
233
+ * consistent casing for services, models and props ([#42](https://github.com/odata2ts/odata2ts/issues/42)) ([70e6e92](https://github.com/odata2ts/odata2ts/commit/70e6e92a888c67f65dadb643ed12ace692d2cc8a))
234
+ * use proper getMethods for services ([#43](https://github.com/odata2ts/odata2ts/issues/43)) ([e05c818](https://github.com/odata2ts/odata2ts/commit/e05c818f193711a161a34be8e7a4c3ba71572a75))
235
+
236
+
237
+ ### Features
238
+
239
+ * 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))
240
+ * typing improvements & editable model versions ([#27](https://github.com/odata2ts/odata2ts/issues/27)) ([df290df](https://github.com/odata2ts/odata2ts/commit/df290dff953a9e37c64c39c18ffdec74ce1874d4))
241
+
242
+
243
+ ### BREAKING CHANGES
244
+
245
+ * use proper getMethods for services "getXxxSrv()" instead of get accessors "xxx"
246
+ * consistent camel or pascal casing for services, models and props
247
+
248
+ * fix: always empty output dir before generating
249
+ * model has become a true query response model.
250
+ Properties which are nullable now allow null values instead of undefined;
251
+ complex types are never undefined, but can be nullable;
252
+ collections are never nullable.
253
+ V2 only: added deferred content typings for entity and entity collection properties.
254
+
255
+ * feat: generate EditableModels and use in service for create, update, and patch
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
+
265
+
266
+
267
+
268
+ ## [0.11.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.1...@odata2ts/odata2model@0.11.2) (2022-07-20)
269
+
270
+
271
+ ### Bug Fixes
272
+
273
+ * guids in v2 have special syntax (guid'xxxx-...') ([#35](https://github.com/odata2ts/odata2ts/issues/35)) ([a551bcc](https://github.com/odata2ts/odata2ts/commit/a551bccf27dc7e8348020840402372582f9448e5))
274
+
275
+
276
+
277
+
278
+
279
+ ## [0.11.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.11.0...@odata2ts/odata2model@0.11.1) (2022-07-11)
280
+
281
+ **Note:** Version bump only for package @odata2ts/odata2model
282
+
283
+
284
+
285
+
286
+
287
+ # [0.11.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.10.1...@odata2ts/odata2model@0.11.0) (2022-07-06)
288
+
289
+
290
+ ### Features
291
+
292
+ * **odata2model:** actions & function on collection level ([#33](https://github.com/odata2ts/odata2ts/issues/33)) ([985b2dc](https://github.com/odata2ts/odata2ts/commit/985b2dc6ca443a73b3a4c877712199c23c5a75cb))
293
+
294
+
295
+
296
+
297
+
298
+ ## [0.10.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.10.0...@odata2ts/odata2model@0.10.1) (2022-06-30)
299
+
300
+
301
+ ### Bug Fixes
302
+
303
+ * add prebulish script to guarantee building before publishing ([b6986db](https://github.com/odata2ts/odata2ts/commit/b6986dbdb258b7b3cb8f36ab52ae1ff7b093f7dc))
304
+
305
+
306
+
307
+
308
+
309
+ # [0.10.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.9.0...@odata2ts/odata2model@0.10.0) (2022-06-30)
310
+
311
+
312
+ ### Features
313
+
314
+ * 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))
315
+
316
+
317
+ ### BREAKING CHANGES
318
+
319
+ * new file names
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+ # [0.9.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.2...@odata2ts/odata2model@0.9.0) (2022-05-21)
328
+
329
+
330
+ ### Bug Fixes
331
+
332
+ * V2 function params as query params ([07a1f29](https://github.com/odata2ts/odata2ts/commit/07a1f294005b9af7f1ebadecd8978ffca7caa80f))
333
+ * **odata2model:** fix tests ([efd12bc](https://github.com/odata2ts/odata2ts/commit/efd12bcfb44b7522f3d5ff6c157acd8ca12f74cf))
334
+ * **odata2model:DataModel:** Duplicate keys when extending multiple times ([157aa13](https://github.com/odata2ts/odata2ts/commit/157aa13a1ffc765b90abdfd2824a4da5fd0729ec))
335
+ * **odata2model:test:** name northwind-v4 fixture correctly ([39e77f4](https://github.com/odata2ts/odata2ts/commit/39e77f46ea2de2fa381480d89e7c5551cd57d411))
336
+ * **test:** collect code coverage from src folders, thus exhibiting untested code ([3acef8b](https://github.com/odata2ts/odata2ts/commit/3acef8b83b2625579bbce4a967724e884c39c358))
337
+ * **test:** fix data-model tests ([b8abb8a](https://github.com/odata2ts/odata2ts/commit/b8abb8afe7dfdf4d940bb4cbc8d92575e0416087))
338
+ * **test:** make coverage test run again ([f2d360b](https://github.com/odata2ts/odata2ts/commit/f2d360bac59901bd056dab5755dcf66d66988af5))
339
+ * on windows ts-node needs cwd-mode flag ([4f3c0f5](https://github.com/odata2ts/odata2ts/commit/4f3c0f5da9257504f842ca7a51af31e0ef578018))
340
+
341
+
342
+ ### Features
343
+
344
+ * integration tests for V2 (ODataV2 sample service) ([98bf0b8](https://github.com/odata2ts/odata2ts/commit/98bf0b8fc950337c970b408036d103c2c5934402))
345
+ * **odata2model:** FixtureComparator ignores [@ts-ignore](https://github.com/ts-ignore) ([b483ed5](https://github.com/odata2ts/odata2ts/commit/b483ed569394b3fb69c9b8d3904e377d2dc7a341))
346
+ * **odata2model:** move v4 tests & adapt expectations of fixtures ([2f84127](https://github.com/odata2ts/odata2ts/commit/2f841278397564ed1e815a8087068921628ec15e))
347
+ * **odata2model:** V2 service generation support ([2b17a01](https://github.com/odata2ts/odata2ts/commit/2b17a013d65fc12aac8315bc34bce441eb505870))
348
+ * **odata2model:Cli:** load config from file via cosmiconfig ([a490778](https://github.com/odata2ts/odata2ts/commit/a4907785b90a513f6a4c910e861d63e14139908b))
349
+ * **odata2model:Cli:** log file paths relative to working dir of process ([fc1ce86](https://github.com/odata2ts/odata2ts/commit/fc1ce86420858f72d87901435adccaba93280d8c))
350
+ * **test:** add run-cli integration test ([45a2da1](https://github.com/odata2ts/odata2ts/commit/45a2da1ede37c2734003b40eadafffbc8a82c14a))
351
+ * **test:** app test ([ad9d3f2](https://github.com/odata2ts/odata2ts/commit/ad9d3f2536828363ef153f54e31f3882089ee3a1))
352
+ * **test:** Builder for generating Edmx schemas in JSON ([227279a](https://github.com/odata2ts/odata2ts/commit/227279a5faed92a8befa86e5c893e8c6d48df5d6))
353
+ * **test:** FixtureComparator ([38b03bf](https://github.com/odata2ts/odata2ts/commit/38b03bf67019d45807c90f281bd935aa914f95e5))
354
+ * **test:** ProjectManager test without testing formatting including some refactorings ([8f666f3](https://github.com/odata2ts/odata2ts/commit/8f666f35b10fb2b2a29c62ec01778fb73e1ab789))
355
+ * **test:** same tests for model & qobject generation ([a4d882d](https://github.com/odata2ts/odata2ts/commit/a4d882da0bc6dd3c785d13d376b34245c82b0f4a))
356
+ * **test:** ServiceGenerator tests & fixes ([6a2c242](https://github.com/odata2ts/odata2ts/commit/6a2c24225d9f8b9197c8223e507cf75ba5b74307))
357
+ * **test:** test for ProjectManager (first draft) ([f705b0b](https://github.com/odata2ts/odata2ts/commit/f705b0bc29f4c848588a5c252ca22a5aebdefe0e))
358
+ * **test:** testing Model generation ([6d7c530](https://github.com/odata2ts/odata2ts/commit/6d7c53084758b23a3a4525bd9ee8bc5efb25e71e))
359
+ * **test:** Tests for DataModel and EDMX digestion ([5740292](https://github.com/odata2ts/odata2ts/commit/574029264fdf5af9dcd410108cd8aeb692fa623b))
360
+
361
+
362
+ * Feat/refactor query objects (#20) ([67b662a](https://github.com/odata2ts/odata2ts/commit/67b662a6da3344eb215b4f1276bf26464d2126f5)), closes [#20](https://github.com/odata2ts/odata2ts/issues/20)
363
+
364
+
365
+ ### BREAKING CHANGES
366
+
367
+ * no EntityFactory anymore, no nominalized types in interfaces anymore, etc.
368
+
369
+ * refactor(qObjects): getEntity with prefix option; by default without prefix
370
+
371
+ * fix(qObjects): better QPath modelling
372
+
373
+ * refactor(uri-builder): only use QueryObjects for typing & remove QEntityModel stuff
374
+
375
+ * refactor(odata2model): generate new QObject classes
376
+
377
+ * refactor(service): services now require Model as well as QClass
378
+
379
+ * refactor(odata2model): generate services with new QObject classes
380
+
381
+ * fix(odata2model): fix integration tests
382
+
383
+ * fix: make int-tests for coverage task work again
384
+
385
+ * fix: skip run-cli tests (don't work on github)
386
+
387
+
388
+
389
+
390
+
391
+ ## [0.8.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.1...@odata2ts/odata2model@0.8.2) (2021-10-12)
392
+
393
+ **Note:** Version bump only for package @odata2ts/odata2model
394
+
395
+
396
+
397
+
398
+
399
+ ## [0.8.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.8.0...@odata2ts/odata2model@0.8.1) (2021-09-17)
400
+
401
+
402
+ ### Bug Fixes
403
+
404
+ * **odata-service:** revert exposure of Unnominalized ([6ce4ea7](https://github.com/odata2ts/odata2ts/commit/6ce4ea779f3a83e67aa02d6d9213dcec2711df8a))
405
+
406
+
407
+
408
+
409
+
410
+ # [0.8.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.7.1...@odata2ts/odata2model@0.8.0) (2021-09-17)
411
+
412
+
413
+ ### Bug Fixes
414
+
415
+ * fix test ([2144cca](https://github.com/odata2ts/odata2ts/commit/2144cca49cda81ecc929425ca4171d99446c1ee1))
416
+
417
+
418
+ ### Code Refactoring
419
+
420
+ * **odata-service:** use odata names as param names ([73b130a](https://github.com/odata2ts/odata2ts/commit/73b130a06411e9e7bf030a3dd605d2bcaebf1d70))
421
+
422
+
423
+ ### Features
424
+
425
+ * **odata2model:** unnominalize response values of actions / functions ([4f284fa](https://github.com/odata2ts/odata2ts/commit/4f284fab3782ca5deb47d0e1b8ab25f5a2fc2bb2))
426
+
427
+
428
+ ### BREAKING CHANGES
429
+
430
+ * **odata-service:** param names of complex keys have changed
431
+
432
+
433
+
434
+
435
+
436
+ ## [0.7.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.7.0...@odata2ts/odata2model@0.7.1) (2021-09-16)
437
+
438
+ **Note:** Version bump only for package @odata2ts/odata2model
439
+
440
+
441
+
442
+
443
+
444
+ # [0.7.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.6.0...@odata2ts/odata2model@0.7.0) (2021-08-31)
445
+
446
+
447
+ ### Bug Fixes
448
+
449
+ * **odata2model:** correct typing for returned collection types ([3943f08](https://github.com/odata2ts/odata2ts/commit/3943f089a57e3f37e703f577096bf58d18dda0fa))
450
+ * **odata2model:** fix tests ([96556cd](https://github.com/odata2ts/odata2ts/commit/96556cd68aae86f2ac231925a49d7350a3670816))
451
+ * **service:** don't use nominal types for input; use string instead ([788dc5c](https://github.com/odata2ts/odata2ts/commit/788dc5c091e5d1e29e2cf9f44cf1485f65691a6b))
452
+
453
+
454
+ ### Features
455
+
456
+ * map ID to id ([a0652fa](https://github.com/odata2ts/odata2ts/commit/a0652fa70617de2ce9de70d9b294532bce8c8b91))
457
+
458
+
459
+
460
+
461
+
462
+ # [0.6.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.5.0...@odata2ts/odata2model@0.6.0) (2021-08-17)
463
+
464
+
465
+ ### Features
466
+
467
+ * **odata2model:** add emitMode to allow js and/or d.ts generation ([88e69ca](https://github.com/odata2ts/odata2ts/commit/88e69caff9d9b48f3f607f7f26d3d7d8d4449514))
468
+
469
+
470
+
471
+
472
+
473
+ # [0.5.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.4.0...@odata2ts/odata2model@0.5.0) (2021-08-16)
474
+
475
+
476
+ ### Bug Fixes
477
+
478
+ * **odata2model:** add import for parameter types ([03f25f4](https://github.com/odata2ts/odata2ts/commit/03f25f406aa5f304eeef5f7a89cfda478eb05d2a))
479
+
480
+
481
+ ### Features
482
+
483
+ * **odata2model:** add bound func/actions & add primitive collections ([c18daac](https://github.com/odata2ts/odata2ts/commit/c18daac8135f17e1554e65ff4c5f4a7a76b4886b))
484
+ * **odata2model:** check for missing type & throw error ([39cdd55](https://github.com/odata2ts/odata2ts/commit/39cdd55802afdcbc5846e4119a1696d236550009))
485
+
486
+
487
+
488
+
489
+
490
+ # [0.4.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.3.0...@odata2ts/odata2model@0.4.0) (2021-08-16)
491
+
492
+
493
+ ### Bug Fixes
494
+
495
+ * more service tests, fix prop names vs odata names ([489b690](https://github.com/odata2ts/odata2ts/commit/489b69078144d3ed6a478373f7a22d8d923567ec))
496
+ * **odata2model:** fix path for main entity sets ([c8fba2a](https://github.com/odata2ts/odata2ts/commit/c8fba2a5053a69621539e9cf71f792795b786f3e))
497
+ * **odata2model:** wrong imort for service from root ([1de6eef](https://github.com/odata2ts/odata2ts/commit/1de6eef34dbc151c04dee91b119e59d3af28f94f))
498
+
499
+
500
+ ### Features
501
+
502
+ * **odata2model:** add CollectionService, rework main service file ([026e999](https://github.com/odata2ts/odata2ts/commit/026e999c266a2f2a60807519a79a30f8eba98b08))
503
+ * **odata2model:** add jest & add dev and peer deps ([4076d1f](https://github.com/odata2ts/odata2ts/commit/4076d1fa64d64075722c3d137cf90ea31b587908))
504
+ * **odata2model:** add keySpec to EntitySets & implement get() ([500e576](https://github.com/odata2ts/odata2ts/commit/500e576a95206bb23985f7a24de3e2e054f9c084))
505
+ * **odata2model:** dataModel with fileNames, qNames, models with baseProps & baseKeys & qObjects(collections only) ([42d1630](https://github.com/odata2ts/odata2ts/commit/42d163013f8b273e54f7bf3549e4d5db7ba11386))
506
+ * **odata2model:** generate ModelServices & EntitySetService ([347bbbb](https://github.com/odata2ts/odata2ts/commit/347bbbb350b97689cb8b17844c200dc9e021ea0b))
507
+ * **odata2model:** introduce ImportContainer to organize imports ([6fab097](https://github.com/odata2ts/odata2ts/commit/6fab097b0e3286f07dcbde66b4648f965ec7e999))
508
+ * **odata2model:** parse functions & actions & entityContainer stuff into DataModel ([7fb9bb8](https://github.com/odata2ts/odata2ts/commit/7fb9bb8884696484d333e48f8e653f0b06fb760a))
509
+ * **odata2model:** realize new QEntityCollectionPath prop ([5eaf31a](https://github.com/odata2ts/odata2ts/commit/5eaf31a109058d9d0084c5a021ffad3b0b848c7a))
510
+ * **odata2model:** service gen for unbound funcs with params ([d7516da](https://github.com/odata2ts/odata2ts/commit/d7516dad3dc60d12bb885d3d7e9b52bc36a92b8f))
511
+ * **odata2model:** service generation for unbound parameterless functions ([2441aad](https://github.com/odata2ts/odata2ts/commit/2441aadc18941b866d7c702d5133f1d0743f1e0d))
512
+ * **odata2model:** setup ServiceGenerator ([8fbfffc](https://github.com/odata2ts/odata2ts/commit/8fbfffcbde532f1bcfba4d23bab64b80d9964717))
513
+ * **odata2model:** use dataModel.fileNames for app ([9487893](https://github.com/odata2ts/odata2ts/commit/9487893b233603ac6b4c7f581bb01a884cae475b))
514
+ * **service:** add singletons ([5695389](https://github.com/odata2ts/odata2ts/commit/56953890ab157bc50ab4eae9d48aeb98ebdb1951))
515
+ * **service:** init navProps via accessor instead of getter methods ([bb93f30](https://github.com/odata2ts/odata2ts/commit/bb93f304c06ff5e3e3e2ec1ce0ff27f884108feb))
516
+
517
+
518
+
519
+
520
+
521
+ # [0.3.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.2.1...@odata2ts/odata2model@0.3.0) (2021-08-10)
522
+
523
+
524
+ ### Bug Fixes
525
+
526
+ * **odata2model:** give first schema priority ([8fed26f](https://github.com/odata2ts/odata2ts/commit/8fed26f570e2435548d959f069f28b7d5533351a))
527
+
528
+
529
+ ### Code Refactoring
530
+
531
+ * QEntityModel without key spec ([913cd11](https://github.com/odata2ts/odata2ts/commit/913cd11df132969aca80054b2d1584bfe678a729))
532
+
533
+
534
+ ### Features
535
+
536
+ * **odata2model:** add type knowledge for function, action, complex & singleton ([56f7e5f](https://github.com/odata2ts/odata2ts/commit/56f7e5fe7ec1c699bacd6ea12a6c54f43002aca5))
537
+ * **odata2model:** generate Enums & CollectionPaths & respect baseClasses for QObjects ([e9dfce5](https://github.com/odata2ts/odata2ts/commit/e9dfce5ba15d8d10e56c63c9c88674f6c6b5b2cb))
538
+ * **odata2model:** model gen with support for complex types, enum types ([f2d5b3b](https://github.com/odata2ts/odata2ts/commit/f2d5b3b020bb1fbe2d81753432bd54738a3f1e67))
539
+ * **odata2model:** support BaseType for entity & complex types ([20c5ab2](https://github.com/odata2ts/odata2ts/commit/20c5ab2890fd8482c8897033b628a32ad88d4f2f))
540
+ * **odata2model:** support complex types & primitive collections ([6481920](https://github.com/odata2ts/odata2ts/commit/64819204f711d7e84ba1d2f153d826721780750c))
541
+ * add sample requests covering trippin features ([2cc900f](https://github.com/odata2ts/odata2ts/commit/2cc900fa4344c98ee8a521f50b158e8e7cb96dcc))
542
+
543
+
544
+ ### BREAKING CHANGES
545
+
546
+ * **odata2model:** qObjects are generated differently
547
+ * [query-objects]: QEntityModel without key spec & __collectionPath; [UrlBuilder]: path must be provided explicitly now for any entity set
548
+
549
+
550
+
551
+
552
+
553
+ ## [0.2.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.2.0...@odata2ts/odata2model@0.2.1) (2021-07-23)
554
+
555
+
556
+ ### Bug Fixes
557
+
558
+ * **odata2model:** respect suffix & prefix in relationships ([cc59d9f](https://github.com/odata2ts/odata2ts/commit/cc59d9f6b8e12a7a729dd297921f2f2c7be9fe50))
559
+
560
+
561
+
562
+
563
+
564
+ # [0.2.0](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.4...@odata2ts/odata2model@0.2.0) (2021-07-23)
565
+
566
+
567
+ ### Features
568
+
569
+ * **odata2model:** add options for suffix & prefix ([d5d9a81](https://github.com/odata2ts/odata2ts/commit/d5d9a8186304954c4700a05b2cab47fccf86d63c))
570
+
571
+
572
+
573
+
574
+
575
+ ## [0.1.4](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.3...@odata2ts/odata2model@0.1.4) (2021-07-08)
576
+
577
+ **Note:** Version bump only for package @odata2ts/odata2model
578
+
579
+
580
+
581
+
582
+
583
+ ## [0.1.3](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.2...@odata2ts/odata2model@0.1.3) (2021-07-01)
584
+
585
+ **Note:** Version bump only for package @odata2ts/odata2model
586
+
587
+
588
+
589
+
590
+
591
+ ## [0.1.2](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.1...@odata2ts/odata2model@0.1.2) (2021-07-01)
592
+
593
+ **Note:** Version bump only for package @odata2ts/odata2model
594
+
595
+
596
+
597
+
598
+
599
+ ## [0.1.1](https://github.com/odata2ts/odata2ts/compare/@odata2ts/odata2model@0.1.0...@odata2ts/odata2model@0.1.1) (2021-07-01)
600
+
601
+ **Note:** Version bump only for package @odata2ts/odata2model
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 odata2ts
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.