@sap/ux-specification 1.120.35 → 1.120.37

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 (497) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/dist/documentation/runDocu-min.js +1 -1
  3. package/dist/documentation/runDocu-min.js.map +2 -2
  4. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  5. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  6. package/dist/documentation/v2/v2-ListReport.html +2 -2
  7. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  8. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  9. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  10. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  11. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  12. package/dist/documentation/v4/v4-ListReport.html +2 -2
  13. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  14. package/dist/index-min.js +86 -86
  15. package/dist/index-min.js.map +4 -4
  16. package/dist/schemas/v2/ApplicationV2.json +2 -1
  17. package/dist/schemas/v4/ApplicationV4.json +6 -1
  18. package/dist/specification/package.json +6 -6
  19. package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts +21 -0
  20. package/dist/specification/scripts/documentation/components/TreeDiagram.d.ts.map +1 -1
  21. package/dist/specification/scripts/documentation/components/TreeDiagram.js +21 -0
  22. package/dist/specification/scripts/documentation/components/TreeDiagram.js.map +1 -1
  23. package/dist/specification/scripts/documentation/components/filter.d.ts +7 -0
  24. package/dist/specification/scripts/documentation/components/filter.d.ts.map +1 -1
  25. package/dist/specification/scripts/documentation/components/filter.js +30 -0
  26. package/dist/specification/scripts/documentation/components/filter.js.map +1 -1
  27. package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts +70 -0
  28. package/dist/specification/scripts/documentation/components/ui/TreeUI.d.ts.map +1 -1
  29. package/dist/specification/scripts/documentation/components/ui/TreeUI.js +70 -3
  30. package/dist/specification/scripts/documentation/components/ui/TreeUI.js.map +1 -1
  31. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts +17 -0
  32. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.d.ts.map +1 -1
  33. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js +23 -0
  34. package/dist/specification/scripts/documentation/components/ui/keyboardNavigation.js.map +1 -1
  35. package/dist/specification/scripts/documentation/components/ui/search.d.ts +12 -0
  36. package/dist/specification/scripts/documentation/components/ui/search.d.ts.map +1 -1
  37. package/dist/specification/scripts/documentation/components/ui/search.js +78 -8
  38. package/dist/specification/scripts/documentation/components/ui/search.js.map +1 -1
  39. package/dist/specification/scripts/documentation/components/ui/toggle.d.ts +21 -0
  40. package/dist/specification/scripts/documentation/components/ui/toggle.d.ts.map +1 -1
  41. package/dist/specification/scripts/documentation/components/ui/toggle.js +23 -6
  42. package/dist/specification/scripts/documentation/components/ui/toggle.js.map +1 -1
  43. package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts +24 -0
  44. package/dist/specification/scripts/documentation/components/ui/tooltip.d.ts.map +1 -1
  45. package/dist/specification/scripts/documentation/components/ui/tooltip.js +24 -3
  46. package/dist/specification/scripts/documentation/components/ui/tooltip.js.map +1 -1
  47. package/dist/specification/scripts/documentation/components/ui/utils.d.ts +36 -0
  48. package/dist/specification/scripts/documentation/components/ui/utils.d.ts.map +1 -1
  49. package/dist/specification/scripts/documentation/components/ui/utils.js +36 -4
  50. package/dist/specification/scripts/documentation/components/ui/utils.js.map +1 -1
  51. package/dist/specification/scripts/extractDocu.js +51 -7
  52. package/dist/specification/scripts/extractDocu.js.map +1 -1
  53. package/dist/specification/scripts/macros/api.d.ts +4 -1
  54. package/dist/specification/scripts/macros/api.d.ts.map +1 -1
  55. package/dist/specification/scripts/macros/api.js +9 -1
  56. package/dist/specification/scripts/macros/api.js.map +1 -1
  57. package/dist/specification/scripts/macros/cmd.d.ts +1 -0
  58. package/dist/specification/scripts/macros/cmd.d.ts.map +1 -1
  59. package/dist/specification/scripts/macros/cmd.js +1 -0
  60. package/dist/specification/scripts/macros/cmd.js.map +1 -1
  61. package/dist/specification/scripts/macros/corrections.d.ts +1 -0
  62. package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
  63. package/dist/specification/scripts/macros/corrections.js +5 -0
  64. package/dist/specification/scripts/macros/corrections.js.map +1 -1
  65. package/dist/specification/scripts/macros/i18n.d.ts +1 -0
  66. package/dist/specification/scripts/macros/i18n.d.ts.map +1 -1
  67. package/dist/specification/scripts/macros/i18n.js +1 -0
  68. package/dist/specification/scripts/macros/i18n.js.map +1 -1
  69. package/dist/specification/scripts/macros/schema.d.ts +1 -0
  70. package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
  71. package/dist/specification/scripts/macros/schema.js +18 -5
  72. package/dist/specification/scripts/macros/schema.js.map +1 -1
  73. package/dist/specification/scripts/schema/to-json-schema.d.ts +9 -5
  74. package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
  75. package/dist/specification/scripts/schema/to-json-schema.js +32 -5
  76. package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
  77. package/dist/specification/scripts/spec.js +19 -9
  78. package/dist/specification/scripts/spec.js.map +1 -1
  79. package/dist/specification/src/api.d.ts +20 -12
  80. package/dist/specification/src/api.d.ts.map +1 -1
  81. package/dist/specification/src/api.js +22 -14
  82. package/dist/specification/src/api.js.map +1 -1
  83. package/dist/specification/src/extensionLogger.d.ts +3 -2
  84. package/dist/specification/src/extensionLogger.d.ts.map +1 -1
  85. package/dist/specification/src/extensionLogger.js +3 -2
  86. package/dist/specification/src/extensionLogger.js.map +1 -1
  87. package/dist/specification/src/i18n/i18n.d.ts +5 -0
  88. package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
  89. package/dist/specification/src/i18n/i18n.js +5 -0
  90. package/dist/specification/src/i18n/i18n.js.map +1 -1
  91. package/dist/specification/src/project.d.ts +3 -1
  92. package/dist/specification/src/project.d.ts.map +1 -1
  93. package/dist/specification/src/project.js +3 -1
  94. package/dist/specification/src/project.js.map +1 -1
  95. package/dist/specification/src/specification/schemaAccess.d.ts +6 -2
  96. package/dist/specification/src/specification/schemaAccess.d.ts.map +1 -1
  97. package/dist/specification/src/specification/schemaAccess.js +10 -4
  98. package/dist/specification/src/specification/schemaAccess.js.map +1 -1
  99. package/dist/specification/src/sync/common/appProvider.d.ts +17 -6
  100. package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
  101. package/dist/specification/src/sync/common/appProvider.js +33 -17
  102. package/dist/specification/src/sync/common/appProvider.js.map +1 -1
  103. package/dist/specification/src/sync/common/decoration/control.d.ts +26 -10
  104. package/dist/specification/src/sync/common/decoration/control.d.ts.map +1 -1
  105. package/dist/specification/src/sync/common/decoration/control.js +32 -13
  106. package/dist/specification/src/sync/common/decoration/control.js.map +1 -1
  107. package/dist/specification/src/sync/common/decoration/decorators.d.ts +14 -0
  108. package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
  109. package/dist/specification/src/sync/common/decoration/decorators.js +14 -0
  110. package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
  111. package/dist/specification/src/sync/common/decoration/factory.d.ts +12 -3
  112. package/dist/specification/src/sync/common/decoration/factory.d.ts.map +1 -1
  113. package/dist/specification/src/sync/common/decoration/factory.js +6 -3
  114. package/dist/specification/src/sync/common/decoration/factory.js.map +1 -1
  115. package/dist/specification/src/sync/common/decoration/flex.d.ts +7 -0
  116. package/dist/specification/src/sync/common/decoration/flex.d.ts.map +1 -1
  117. package/dist/specification/src/sync/common/decoration/flex.js +7 -0
  118. package/dist/specification/src/sync/common/decoration/flex.js.map +1 -1
  119. package/dist/specification/src/sync/common/distTagEvaluator.d.ts +13 -3
  120. package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
  121. package/dist/specification/src/sync/common/distTagEvaluator.js +13 -3
  122. package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
  123. package/dist/specification/src/sync/common/flexUtils.d.ts +11 -10
  124. package/dist/specification/src/sync/common/flexUtils.d.ts.map +1 -1
  125. package/dist/specification/src/sync/common/flexUtils.js +11 -10
  126. package/dist/specification/src/sync/common/flexUtils.js.map +1 -1
  127. package/dist/specification/src/sync/common/generate/objectPage.d.ts +27 -18
  128. package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
  129. package/dist/specification/src/sync/common/generate/objectPage.js +54 -33
  130. package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
  131. package/dist/specification/src/sync/common/generate/utils.d.ts +65 -37
  132. package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
  133. package/dist/specification/src/sync/common/generate/utils.js +67 -37
  134. package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
  135. package/dist/specification/src/sync/common/import/utils.d.ts +9 -3
  136. package/dist/specification/src/sync/common/import/utils.d.ts.map +1 -1
  137. package/dist/specification/src/sync/common/import/utils.js +9 -3
  138. package/dist/specification/src/sync/common/import/utils.js.map +1 -1
  139. package/dist/specification/src/sync/common/importProject.d.ts +17 -6
  140. package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
  141. package/dist/specification/src/sync/common/importProject.js +60 -30
  142. package/dist/specification/src/sync/common/importProject.js.map +1 -1
  143. package/dist/specification/src/sync/common/utils.d.ts +129 -53
  144. package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
  145. package/dist/specification/src/sync/common/utils.js +235 -94
  146. package/dist/specification/src/sync/common/utils.js.map +1 -1
  147. package/dist/specification/src/sync/i18n.d.ts +5 -0
  148. package/dist/specification/src/sync/i18n.d.ts.map +1 -1
  149. package/dist/specification/src/sync/i18n.js +5 -0
  150. package/dist/specification/src/sync/i18n.js.map +1 -1
  151. package/dist/specification/src/sync/v2/export/controls/Action.d.ts +3 -3
  152. package/dist/specification/src/sync/v2/export/controls/Action.js +15 -15
  153. package/dist/specification/src/sync/v2/export/controls/Card.d.ts +14 -0
  154. package/dist/specification/src/sync/v2/export/controls/Card.d.ts.map +1 -1
  155. package/dist/specification/src/sync/v2/export/controls/Card.js +20 -0
  156. package/dist/specification/src/sync/v2/export/controls/Card.js.map +1 -1
  157. package/dist/specification/src/sync/v2/export/controls/Field.js +5 -5
  158. package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts +13 -0
  159. package/dist/specification/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
  160. package/dist/specification/src/sync/v2/export/controls/FilterBar.js +21 -0
  161. package/dist/specification/src/sync/v2/export/controls/FilterBar.js.map +1 -1
  162. package/dist/specification/src/sync/v2/export/controls/FormAction.js +4 -4
  163. package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +10 -5
  164. package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
  165. package/dist/specification/src/sync/v2/export/controls/Fragment.js +62 -25
  166. package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
  167. package/dist/specification/src/sync/v2/export/controls/ObjectPageFooterAction.js +6 -6
  168. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderAction.js +6 -6
  169. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  170. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js +20 -16
  171. package/dist/specification/src/sync/v2/export/controls/ObjectPageHeaderSection.js.map +1 -1
  172. package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.d.ts.map +1 -1
  173. package/dist/specification/src/sync/v2/export/controls/ObjectPageSection.js.map +1 -1
  174. package/dist/specification/src/sync/v2/export/controls/ObjectPageToolBarAction.js +6 -6
  175. package/dist/specification/src/sync/v2/export/controls/Table.d.ts +24 -0
  176. package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
  177. package/dist/specification/src/sync/v2/export/controls/Table.js +48 -3
  178. package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
  179. package/dist/specification/src/sync/v2/export/controls/TableColumn.js +10 -10
  180. package/dist/specification/src/sync/v2/export/export.d.ts +7 -3
  181. package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
  182. package/dist/specification/src/sync/v2/export/export.js +133 -44
  183. package/dist/specification/src/sync/v2/export/export.js.map +1 -1
  184. package/dist/specification/src/sync/v2/export/exportPage.d.ts +18 -10
  185. package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
  186. package/dist/specification/src/sync/v2/export/exportPage.js +34 -20
  187. package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
  188. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +6 -3
  189. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
  190. package/dist/specification/src/sync/v2/export/exportPageGeneric.js +27 -17
  191. package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
  192. package/dist/specification/src/sync/v2/export/manifest.d.ts +5 -2
  193. package/dist/specification/src/sync/v2/export/manifest.d.ts.map +1 -1
  194. package/dist/specification/src/sync/v2/export/manifest.js +30 -6
  195. package/dist/specification/src/sync/v2/export/manifest.js.map +1 -1
  196. package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts +21 -0
  197. package/dist/specification/src/sync/v2/export/pages/OverviewPage.d.ts.map +1 -1
  198. package/dist/specification/src/sync/v2/export/pages/OverviewPage.js +36 -2
  199. package/dist/specification/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
  200. package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +25 -15
  201. package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
  202. package/dist/specification/src/sync/v2/export/view-controller-generator.js +27 -16
  203. package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
  204. package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts +2 -0
  205. package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
  206. package/dist/specification/src/sync/v2/generate/analyticalListReport.js +8 -1
  207. package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  208. package/dist/specification/src/sync/v2/generate/generate.d.ts +5 -9
  209. package/dist/specification/src/sync/v2/generate/generate.d.ts.map +1 -1
  210. package/dist/specification/src/sync/v2/generate/generate.js +9 -12
  211. package/dist/specification/src/sync/v2/generate/generate.js.map +1 -1
  212. package/dist/specification/src/sync/v2/generate/listReport.d.ts +4 -2
  213. package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
  214. package/dist/specification/src/sync/v2/generate/listReport.js +26 -8
  215. package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
  216. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +118 -0
  217. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -0
  218. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js +151 -0
  219. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js.map +1 -0
  220. package/dist/specification/src/sync/v2/generate/objectPage.d.ts +2 -2
  221. package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  222. package/dist/specification/src/sync/v2/generate/objectPage.js +75 -43
  223. package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
  224. package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +2 -2
  225. package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
  226. package/dist/specification/src/sync/v2/generate/overviewPage.js +2 -2
  227. package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
  228. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
  229. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +8 -8
  230. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  231. package/dist/specification/src/sync/v2/generate/utils.d.ts +47 -36
  232. package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
  233. package/dist/specification/src/sync/v2/generate/utils.js +92 -71
  234. package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
  235. package/dist/specification/src/sync/v2/import/app/appProvider.d.ts +7 -0
  236. package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
  237. package/dist/specification/src/sync/v2/import/app/appProvider.js +20 -4
  238. package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
  239. package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts +4 -0
  240. package/dist/specification/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -1
  241. package/dist/specification/src/sync/v2/import/app/ovpProvider.js +4 -0
  242. package/dist/specification/src/sync/v2/import/app/ovpProvider.js.map +1 -1
  243. package/dist/specification/src/sync/v2/import/common/index.d.ts +28 -15
  244. package/dist/specification/src/sync/v2/import/common/index.d.ts.map +1 -1
  245. package/dist/specification/src/sync/v2/import/common/index.js +91 -35
  246. package/dist/specification/src/sync/v2/import/common/index.js.map +1 -1
  247. package/dist/specification/src/sync/v2/import/controls/table.d.ts +6 -2
  248. package/dist/specification/src/sync/v2/import/controls/table.d.ts.map +1 -1
  249. package/dist/specification/src/sync/v2/import/controls/table.js +6 -2
  250. package/dist/specification/src/sync/v2/import/controls/table.js.map +1 -1
  251. package/dist/specification/src/sync/v2/import/importPage.d.ts +3 -2
  252. package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
  253. package/dist/specification/src/sync/v2/import/importPage.js +4 -5
  254. package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
  255. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +3 -3
  256. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
  257. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +9 -10
  258. package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  259. package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +8 -7
  260. package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
  261. package/dist/specification/src/sync/v2/import/pages/listReport.js +28 -24
  262. package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
  263. package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts +3 -3
  264. package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
  265. package/dist/specification/src/sync/v2/import/pages/objectPage.js +107 -76
  266. package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
  267. package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts +2 -1
  268. package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
  269. package/dist/specification/src/sync/v2/import/pages/overviewPage.js +27 -12
  270. package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
  271. package/dist/specification/src/sync/v2/import/utils.d.ts +18 -9
  272. package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
  273. package/dist/specification/src/sync/v2/import/utils.js +27 -15
  274. package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
  275. package/dist/specification/src/sync/v2/utils.d.ts +26 -1
  276. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  277. package/dist/specification/src/sync/v2/utils.js +47 -1
  278. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  279. package/dist/specification/src/sync/v4/application.d.ts +7 -5
  280. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  281. package/dist/specification/src/sync/v4/application.js +7 -5
  282. package/dist/specification/src/sync/v4/application.js.map +1 -1
  283. package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
  284. package/dist/specification/src/sync/v4/export/controls/FilterBar.js +8 -0
  285. package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
  286. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -1
  287. package/dist/specification/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -1
  288. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
  289. package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
  290. package/dist/specification/src/sync/v4/export/controls/Table.d.ts +14 -9
  291. package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  292. package/dist/specification/src/sync/v4/export/controls/Table.js +44 -17
  293. package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
  294. package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
  295. package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
  296. package/dist/specification/src/sync/v4/export/export.d.ts +6 -4
  297. package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
  298. package/dist/specification/src/sync/v4/export/export.js +136 -58
  299. package/dist/specification/src/sync/v4/export/export.js.map +1 -1
  300. package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts +6 -4
  301. package/dist/specification/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -1
  302. package/dist/specification/src/sync/v4/export/exportCustomColumn.js +6 -4
  303. package/dist/specification/src/sync/v4/export/exportCustomColumn.js.map +1 -1
  304. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts +3 -2
  305. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.d.ts.map +1 -1
  306. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js +13 -9
  307. package/dist/specification/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
  308. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +6 -4
  309. package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
  310. package/dist/specification/src/sync/v4/export/fpmCustomPage.js +9 -4
  311. package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
  312. package/dist/specification/src/sync/v4/export/manifest.d.ts +6 -2
  313. package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
  314. package/dist/specification/src/sync/v4/export/manifest.js +46 -17
  315. package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
  316. package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
  317. package/dist/specification/src/sync/v4/export/pages/ListReport.js +4 -3
  318. package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
  319. package/dist/specification/src/sync/v4/export/utils.d.ts +6 -4
  320. package/dist/specification/src/sync/v4/export/utils.d.ts.map +1 -1
  321. package/dist/specification/src/sync/v4/export/utils.js +6 -4
  322. package/dist/specification/src/sync/v4/export/utils.js.map +1 -1
  323. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
  324. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +4 -0
  325. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
  326. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts +5 -3
  327. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
  328. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +14 -5
  329. package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
  330. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts +1 -0
  331. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
  332. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +18 -0
  333. package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
  334. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts +1 -1
  335. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.d.ts.map +1 -1
  336. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js +2 -1
  337. package/dist/specification/src/sync/v4/generate/fpm-custom-page/pageExtensions.js.map +1 -1
  338. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts +2 -0
  339. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.d.ts.map +1 -1
  340. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +2 -0
  341. package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
  342. package/dist/specification/src/sync/v4/generate/freestylePage.d.ts +2 -2
  343. package/dist/specification/src/sync/v4/generate/freestylePage.js +2 -2
  344. package/dist/specification/src/sync/v4/generate/generate.d.ts +13 -11
  345. package/dist/specification/src/sync/v4/generate/generate.d.ts.map +1 -1
  346. package/dist/specification/src/sync/v4/generate/generate.js +13 -11
  347. package/dist/specification/src/sync/v4/generate/generate.js.map +1 -1
  348. package/dist/specification/src/sync/v4/generate/listReport.d.ts +10 -7
  349. package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
  350. package/dist/specification/src/sync/v4/generate/listReport.js +124 -78
  351. package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
  352. package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -1
  353. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  354. package/dist/specification/src/sync/v4/generate/objectPage.js +210 -162
  355. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  356. package/dist/specification/src/sync/v4/import/app/appProvider.d.ts +18 -4
  357. package/dist/specification/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
  358. package/dist/specification/src/sync/v4/import/app/appProvider.js +56 -24
  359. package/dist/specification/src/sync/v4/import/app/appProvider.js.map +1 -1
  360. package/dist/specification/src/sync/v4/import/fragment.d.ts +29 -4
  361. package/dist/specification/src/sync/v4/import/fragment.d.ts.map +1 -1
  362. package/dist/specification/src/sync/v4/import/fragment.js +46 -7
  363. package/dist/specification/src/sync/v4/import/fragment.js.map +1 -1
  364. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts +3 -2
  365. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
  366. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +7 -2
  367. package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -1
  368. package/dist/specification/src/sync/v4/import/pages/listReport.d.ts +12 -10
  369. package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
  370. package/dist/specification/src/sync/v4/import/pages/listReport.js +70 -46
  371. package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
  372. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts +7 -6
  373. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  374. package/dist/specification/src/sync/v4/import/pages/objectPage.js +52 -39
  375. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  376. package/dist/specification/src/sync/v4/import/utils.d.ts +4 -2
  377. package/dist/specification/src/sync/v4/import/utils.d.ts.map +1 -1
  378. package/dist/specification/src/sync/v4/import/utils.js +4 -2
  379. package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
  380. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.d.ts.map +1 -1
  381. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js +5 -2
  382. package/dist/specification/src/sync/v4/sync-rules/controllerExtensions.js.map +1 -1
  383. package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts +12 -0
  384. package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
  385. package/dist/specification/src/sync/v4/utils/StableIdHelper.js +18 -0
  386. package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  387. package/dist/specification/src/sync/v4/utils/macros.d.ts +4 -0
  388. package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
  389. package/dist/specification/src/sync/v4/utils/macros.js +17 -1
  390. package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
  391. package/dist/specification/src/sync/v4/utils/utils.d.ts +38 -20
  392. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  393. package/dist/specification/src/sync/v4/utils/utils.js +99 -52
  394. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  395. package/dist/types/src/apiTypes.d.ts +13 -0
  396. package/dist/types/src/apiTypes.d.ts.map +1 -1
  397. package/dist/types/src/apiTypes.js +18 -1
  398. package/dist/types/src/apiTypes.js.map +1 -1
  399. package/dist/types/src/common/Application.d.ts +6 -0
  400. package/dist/types/src/common/Application.d.ts.map +1 -1
  401. package/dist/types/src/common/Application.js +4 -0
  402. package/dist/types/src/common/Application.js.map +1 -1
  403. package/dist/types/src/common/types.d.ts +51 -2
  404. package/dist/types/src/common/types.d.ts.map +1 -1
  405. package/dist/types/src/common/types.js +2 -1
  406. package/dist/types/src/common/types.js.map +1 -1
  407. package/dist/types/src/common/webapp/manifest/sapUi5.d.ts +3 -2
  408. package/dist/types/src/common/webapp/manifest/sapUi5.d.ts.map +1 -1
  409. package/dist/types/src/common/webapp/manifest/sapUi5.js +3 -2
  410. package/dist/types/src/common/webapp/manifest/sapUi5.js.map +1 -1
  411. package/dist/types/src/v2/application.d.ts +1 -1
  412. package/dist/types/src/v2/controls/Action.d.ts +12 -0
  413. package/dist/types/src/v2/controls/Action.d.ts.map +1 -1
  414. package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts +1 -0
  415. package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts.map +1 -1
  416. package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts +1 -0
  417. package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts.map +1 -1
  418. package/dist/types/src/v2/controls/Card.d.ts +13 -0
  419. package/dist/types/src/v2/controls/Card.d.ts.map +1 -1
  420. package/dist/types/src/v2/controls/Card.js.map +1 -1
  421. package/dist/types/src/v2/controls/Field.d.ts +1 -0
  422. package/dist/types/src/v2/controls/Field.d.ts.map +1 -1
  423. package/dist/types/src/v2/controls/FilterBar.d.ts +6 -0
  424. package/dist/types/src/v2/controls/FilterBar.d.ts.map +1 -1
  425. package/dist/types/src/v2/controls/FilterBar.js.map +1 -1
  426. package/dist/types/src/v2/controls/Header.d.ts +1 -0
  427. package/dist/types/src/v2/controls/Header.d.ts.map +1 -1
  428. package/dist/types/src/v2/controls/ObjectPageChart.d.ts +1 -0
  429. package/dist/types/src/v2/controls/ObjectPageChart.d.ts.map +1 -1
  430. package/dist/types/src/v2/controls/ObjectPageFooter.d.ts +2 -0
  431. package/dist/types/src/v2/controls/ObjectPageFooter.d.ts.map +1 -1
  432. package/dist/types/src/v2/controls/ObjectPageForm.d.ts +1 -0
  433. package/dist/types/src/v2/controls/ObjectPageForm.d.ts.map +1 -1
  434. package/dist/types/src/v2/controls/ObjectPageHeader.d.ts +1 -0
  435. package/dist/types/src/v2/controls/ObjectPageHeader.d.ts.map +1 -1
  436. package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts +3 -0
  437. package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  438. package/dist/types/src/v2/controls/ObjectPageLayout.d.ts +1 -0
  439. package/dist/types/src/v2/controls/ObjectPageLayout.d.ts.map +1 -1
  440. package/dist/types/src/v2/controls/ObjectPageSection.d.ts +13 -0
  441. package/dist/types/src/v2/controls/ObjectPageSection.d.ts.map +1 -1
  442. package/dist/types/src/v2/controls/ObjectPageSection.js.map +1 -1
  443. package/dist/types/src/v2/controls/ObjectPageTable.d.ts +6 -0
  444. package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
  445. package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts +2 -0
  446. package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts.map +1 -1
  447. package/dist/types/src/v2/controls/Table.d.ts +28 -0
  448. package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
  449. package/dist/types/src/v2/controls/Table.js.map +1 -1
  450. package/dist/types/src/v2/controls/ToolBar.d.ts +1 -0
  451. package/dist/types/src/v2/controls/ToolBar.d.ts.map +1 -1
  452. package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts +1 -0
  453. package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts.map +1 -1
  454. package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts +4 -0
  455. package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts.map +1 -1
  456. package/dist/types/src/v4/application.d.ts +1 -1
  457. package/dist/types/src/v4/controls/CustomAction.d.ts +10 -0
  458. package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
  459. package/dist/types/src/v4/controls/FilterBar.d.ts +11 -0
  460. package/dist/types/src/v4/controls/FilterBar.d.ts.map +1 -1
  461. package/dist/types/src/v4/controls/FilterBar.js.map +1 -1
  462. package/dist/types/src/v4/controls/Header.d.ts +1 -0
  463. package/dist/types/src/v4/controls/Header.d.ts.map +1 -1
  464. package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +1 -0
  465. package/dist/types/src/v4/controls/ObjectPageFooter.d.ts.map +1 -1
  466. package/dist/types/src/v4/controls/ObjectPageForm.d.ts +1 -0
  467. package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
  468. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +2 -0
  469. package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
  470. package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts +6 -0
  471. package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  472. package/dist/types/src/v4/controls/ObjectPageLayout.d.ts +1 -0
  473. package/dist/types/src/v4/controls/ObjectPageLayout.d.ts.map +1 -1
  474. package/dist/types/src/v4/controls/ObjectPageSection.d.ts +17 -0
  475. package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
  476. package/dist/types/src/v4/controls/ObjectPageSection.js.map +1 -1
  477. package/dist/types/src/v4/controls/ObjectPageTable.d.ts +9 -0
  478. package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
  479. package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
  480. package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +4 -0
  481. package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
  482. package/dist/types/src/v4/controls/Table.d.ts +16 -0
  483. package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
  484. package/dist/types/src/v4/controls/ToolBar.d.ts +9 -0
  485. package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
  486. package/dist/types/src/v4/page.d.ts +4 -0
  487. package/dist/types/src/v4/page.d.ts.map +1 -1
  488. package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +22 -0
  489. package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
  490. package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts +3 -0
  491. package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts.map +1 -1
  492. package/dist/types/src/v4/webapp/manifest/sapUi5.js.map +1 -1
  493. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts +1 -1
  494. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -1
  495. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js +2 -2
  496. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  497. package/package.json +7 -7
@@ -7,13 +7,16 @@ import type * as Edm from '@sap-ux/vocabularies-types/Edm';
7
7
  import type { EntityTypeAnnotations_UI } from '@sap-ux/vocabularies-types/vocabularies/UI_Edm';
8
8
  import { ActionTypeV2 } from '../types';
9
9
  import type { FacetBase } from '../../../../../types/src/common/types';
10
- import type { ExtensionLogger } from '../../..';
11
10
  /**
12
- * Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation
11
+ * Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation.
12
+ *
13
13
  * @param appSchema - the app specific schema that shall get enhanced
14
- * @param entityType - the entity type as part of the AVT ConvertedMetadata
15
14
  * @param actions - actions definition in schema, parent object
16
- * @param lineItemProperties - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
15
+ * @param lineItemProps - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
16
+ * @param lineItemProps.lineItemPath - The path to the line item in the schema.
17
+ * @param lineItemProps.lineItemRecord - The record of the line item in the collection.
18
+ * @param lineItemProps.lineItemId - The identifier of the line item.
19
+ * @param lineItemProps.entityType - the entity type as part of the AVT ConvertedMetadata
17
20
  * @param actionType - type of action
18
21
  * @param recordIndex - record index in the collection
19
22
  */
@@ -31,7 +34,8 @@ export declare function handleActionRecord(appSchema: Definition, actions: Defin
31
34
  */
32
35
  export declare function retrieveNameWithoutVocabularyFromVisualization(annotationTerm: FacetBase, visualization: Edm.AnnotationPath<Chart | DataPoint | LineItem>): string;
33
36
  /**
34
- * Adds the line item records to the app schema (for the list report or an object page section comprising a table)
37
+ * Adds the line item records to the app schema (for the list report or an object page section comprising a table).
38
+ *
35
39
  * @param isObjectPage - indicates that the page is an object page
36
40
  * @param appSchema - the app specific schema that shall get enhanced
37
41
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
@@ -43,6 +47,7 @@ export declare function retrieveNameWithoutVocabularyFromVisualization(annotatio
43
47
  export declare function addLineItemsType(isObjectPage: boolean, appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId?: string, customColumnRef?: string): void;
44
48
  /**
45
49
  * Adds enum entries of possible leading properties for 'leadingProperty' property in TableCustomColumn properties.
50
+ *
46
51
  * @param appSchema - the app specific schema that shall get enhanced
47
52
  * @param entityType - the entity type as part of the AVT ConvertedMetadata
48
53
  * @param definitionName - definition name of CustomColumn definition
@@ -50,14 +55,16 @@ export declare function addLineItemsType(isObjectPage: boolean, appSchema: Defin
50
55
  export declare function addListReportLeadingProperties(appSchema: Definition, entityType: EntityType, definitionName: string): void;
51
56
  /**
52
57
  * Adds enum entries of posible tabKey properties for 'leadingProperty' property in TableCustomColumn properties.
58
+ *
53
59
  * @param appSchema - the app specific schema that shall get enhanced
54
60
  * @param definitionName - definition name of CustomColumn definition
55
61
  * @param page - sapui5 page object
56
- * @param {string} facet ID - The facet ID
62
+ * @param facetID - The facet ID
57
63
  */
58
64
  export declare function addTabkeyEnum(appSchema: Definition, definitionName: string, page?: v2.SapUiAppPageV2, facetID?: string): void;
59
65
  /**
60
66
  * Adds enum entries of posible fragment entries.
67
+ *
61
68
  * @param {object} appSchema The app specific schema that shall get enhanced.
62
69
  * @param {FileData[]} fragments Array of fragments.
63
70
  * @param {string[]} appId Application id.
@@ -67,20 +74,23 @@ export declare function addTabkeyEnum(appSchema: Definition, definitionName: str
67
74
  export declare function addFragmentEnum(appSchema: Definition, fragments: FileData[], appId: string, property: string, definitionName: string): void;
68
75
  /**
69
76
  * Adds the custom columns to the line item records of the app schema (for the list report comprising a table).
70
- * @param {object} appSchema The app specific schema that shall get enhanced.
71
- * @param {EntityType} entityType The entity type as part of the AVT ConvertedMetadata.
72
- * @param {SapUiAppPageV2} page Sapui5 page object.
73
- * @param {object} manifest Application manifest.
74
- * @param {FileData[]} [fragments] Array of fragments.
75
- * @param {string} [customColumnsDefinitionName=DefinitionName.CustomColumns] Definition name of Custom Columns definition.
76
- * @param {string} [customColumnDefinitionName=DefinitionName.CustomColumn] Definition name of Custom Column definition.
77
- * @param {string} facetID - Facet ID
77
+ *
78
+ * @param appSchema The app specific schema that shall get enhanced.
79
+ * @param entityType The entity type as part of the AVT ConvertedMetadata.
80
+ * @param page Sapui5 page object.
81
+ * @param manifest Application manifest.
82
+ * @param [fragments] Array of fragments.
83
+ * @param [customColumnsDefinitionName] Definition name of Custom Columns definition.
84
+ * @param [customColumnDefinitionName] Definition name of Custom Column definition.
85
+ * @param facetID - Facet ID
78
86
  */
79
87
  export declare function addTableColumnExtensions(appSchema: object, entityType: EntityType, page: v2.SapUiAppPageV2, manifest: object, fragments?: FileData[], customColumnsDefinitionName?: string, customColumnDefinitionName?: string, facetID?: string): void;
80
88
  /**
81
- * Apply post-processing rules as specified in form of "generate" at the syncRule
89
+ * Apply post-processing rules as specified in form of "generate" at the syncRule.
90
+ *
82
91
  * @param schema - given app schema, to be adapted
83
92
  * @param schemaDefinition - the current entry point or definition in the app schema
93
+ * @param metaDataDefinition - the current entry point or definition in the metadata
84
94
  * @param pageType - page type
85
95
  * @param factory - factory for creating metadata instances
86
96
  * @param processedRefs - array of already processed refs which used to avoid cycling recursion
@@ -91,57 +101,71 @@ export declare function processMetadata(schema: object, schemaDefinition: object
91
101
  }, pageType: PageTypeV2 | PageTypeV4, factory: MetadataInstanceInterface, processedRefs: string[], ref?: string): void;
92
102
  /**
93
103
  * Method updates passed 'enum' array by removing passed matching entries.
104
+ *
94
105
  * @param {Array<unknown>} values Array of values.
95
106
  * @param {Array<unknown>} valuesToRemove Array of values to remove.
96
107
  */
97
108
  export declare function removeElementsFromEnum(values: Array<unknown>, valuesToRemove: Array<unknown>): void;
98
109
  /**
99
- * Adds the selection fields to the app schema, as properties of the Filterbar
100
- * @param entityType - the entity type as part of the AVT ConvertedMetadata
110
+ * Adds the selection fields to the app schema, as properties of the Filterbar.
111
+ *
101
112
  * @param appSchema - the app specific schema that shall get enhanced
102
113
  * @param selectionFieldsAnnotation - the UI.SelectionField annotation
114
+ * @param entityType - the entity type as part of the AVT ConvertedMetadata
103
115
  */
104
116
  export declare function addSelectionFields(appSchema: Definition, selectionFieldsAnnotation: AnnotationTerm<SelectionFields>, entityType: EntityType): void;
105
117
  /**
106
- * Add entityProperties to passed a passed enum entry
118
+ * Add entityProperties to passed a passed enum entry.
119
+ *
107
120
  * @param {string[]} appSchemaEnum - Enum to be enhanced
108
121
  * @param {EntityType} entityType - Given entity type for which entries shall get generated
109
122
  */
110
123
  export declare function addEntityPropertiesToEnum(appSchemaEnum: string[], entityType: EntityType): void;
111
124
  /**
112
- * Checks if an entity supports draft capabilities
125
+ * Checks if an entity supports draft capabilities.
126
+ *
113
127
  * @param {EntitySet} entitySet Entity Set
114
128
  * @returns true if the entity supports draft
115
129
  */
116
130
  export declare function isDraftEnabled(entitySet: EntitySet): boolean;
117
131
  /**
118
132
  * Function to determine if the entity is deletable.
133
+ *
119
134
  * @param {EntitySet} entitySet - current entity set
120
135
  * returns {boolean} return true if the Entity is deletable
121
136
  */
137
+ /**
138
+ * Checks if an entity supports draft capabilities.
139
+ *
140
+ * @param entitySet - The entity set to check for draft capabilities.
141
+ * @returns {boolean} True if the entity supports draft capabilities, otherwise false.
142
+ */
122
143
  export declare function isEntityDeletable(entitySet: EntitySet): boolean;
123
144
  /**
124
145
  * Function to determine if the entity is updatable.
146
+ *
125
147
  * @param {EntitySet} entitySet - current entity set
126
148
  * @returns returns true if the Entity is updatable
127
149
  */
128
150
  export declare function isEntityUpdatable(entitySet: EntitySet): boolean;
129
151
  /**
130
- * Adds standard header actions to schema (LR, ALP or OP)
152
+ * Adds standard header actions to schema (LR, ALP or OP).
153
+ *
131
154
  * @param {Definition} appSchema - app-specific JSON schema
132
155
  * @param {boolean} isOP - flag to add to either LR/ALP or OP definition
133
156
  * @param {Definition} actions - optional standard actions definition
134
157
  */
135
158
  export declare function addStandardHeaderActions(appSchema: Definition, isOP?: boolean, actions?: Definition): void;
136
159
  /**
137
- * Adds standard footer actions to schema of Object Page
160
+ * Adds standard footer actions to schema of Object Page.
161
+ *
138
162
  * @param {Definition} appSchema - app-specific JSON schema
139
- * @param {EntityType} entityType Entity Type of the page
140
163
  * @param {Definition} actions - optional standard actions definition
141
164
  */
142
165
  export declare function addStandardFooterActionsOP(appSchema: Definition, actions: Definition): void;
143
166
  /**
144
- * Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist
167
+ * Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist.
168
+ *
145
169
  * @param {GenerateAppSchemaParameters} generateParameters list of API input parameters
146
170
  * @returns the entity type and the ui annotations for the given entity set
147
171
  */
@@ -149,17 +173,4 @@ export declare function getUIAnnotationForEntitySet(generateParameters: Generate
149
173
  entityType?: Edm.EntityType;
150
174
  uIAnnotations?: EntityTypeAnnotations_UI;
151
175
  };
152
- /**
153
- * Type check for properties coming from the manifest.
154
- *
155
- * @param parent - the parent object in manifest which may contain the property.
156
- * @param propertyName - name of the property name to be checked
157
- * @param logger - a logger which may receive the error message in case a type error is detected
158
- * @param expectedType - the expected type of the value of the property (if it is not undefined)
159
- * @param mandatory - specifies handling handling of null and undefined: If parent is null this is always considered an error.
160
- * undefined value for parent or its specified property is considered an error when parameter mandatory is true.
161
- * null value for the specified property is considered an error when mandatory is true or the expected type is not 'object'.
162
- * @returns the information whether a type error was detected.
163
- */
164
- export declare function hasPropertyTypeError(parent: unknown, propertyName: string, logger?: ExtensionLogger, expectedType?: string, mandatory?: boolean): boolean;
165
176
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EACR,EAAE,EACF,UAAU,EACV,UAAU,EACV,QAAQ,EAER,2BAA2B,EAC9B,MAAM,6BAA6B,CAAC;AAUrC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EACR,KAAK,EACL,SAAS,EAET,QAAQ,EACR,eAAe,EAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAC3D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAoB/F,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAkEhD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,UAAU,EACnB,aAAa,EAAE;IAAE,YAAY,MAAC;IAAC,cAAc,MAAC;IAAC,UAAU,MAAC;IAAC,UAAU,EAAE,UAAU,CAAA;CAAE,EACn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AAI,CAS3F;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,kBAAkB,EAAE,2BAA2B,GAAG;IAC1F,UAAU,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC;IAC5B,aAAa,CAAC,EAAE,wBAAwB,CAAC;CAC5C,CAaA"}
@@ -20,7 +20,6 @@ exports.isEntityUpdatable = isEntityUpdatable;
20
20
  exports.addStandardHeaderActions = addStandardHeaderActions;
21
21
  exports.addStandardFooterActionsOP = addStandardFooterActionsOP;
22
22
  exports.getUIAnnotationForEntitySet = getUIAnnotationForEntitySet;
23
- exports.hasPropertyTypeError = hasPropertyTypeError;
24
23
  const ux_specification_types_1 = require("@sap/ux-specification-types");
25
24
  const common_1 = require("../../common");
26
25
  const decorators_1 = require("../../common/decoration/decorators");
@@ -30,7 +29,8 @@ const types_1 = require("../types");
30
29
  const extensionLogger_1 = require("../../../extensionLogger");
31
30
  const i18next_1 = __importDefault(require("i18next"));
32
31
  /**
33
- * Common function for enhancing the LineItems definiton of app schema by custom columns
32
+ * Common function for enhancing the LineItems definition of app schema by custom columns.
33
+ *
34
34
  * @param appSchema - app-specific JSON schema
35
35
  * @param customColumnsDefinitionName - custom column definition name (plural)
36
36
  * @param customColumnDefinitionName - custom column definition name (singular)
@@ -55,9 +55,14 @@ function addCustomColumnDefinition(appSchema, customColumnsDefinitionName, custo
55
55
  }
56
56
  }
57
57
  /**
58
- * Prepares and returns id of action for further use and reference
58
+ * Prepares and returns id of action for further use and reference.
59
+ *
59
60
  * @param actionType - type of action
60
61
  * @param lineItemProperties - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
62
+ * @param lineItemProperties.lineItemPath - The path to the line item in the schema.
63
+ * @param lineItemProperties.lineItemRecord - The record of the line item in the collection.
64
+ * @param lineItemProperties.lineItemId - The identifier of the line item.
65
+ * @param lineItemProperties.entityType - The entity type as part of the AVT ConvertedMetadata.
61
66
  * @returns {string} actionId
62
67
  */
63
68
  function getActionId(actionType, lineItemProperties) {
@@ -83,11 +88,15 @@ function getActionId(actionType, lineItemProperties) {
83
88
  }
84
89
  }
85
90
  /**
86
- * Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation
91
+ * Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation.
92
+ *
87
93
  * @param appSchema - the app specific schema that shall get enhanced
88
- * @param entityType - the entity type as part of the AVT ConvertedMetadata
89
94
  * @param actions - actions definition in schema, parent object
90
- * @param lineItemProperties - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
95
+ * @param lineItemProps - properties of the line item collection: lineItemPath, lineItemRecord, lineItemId
96
+ * @param lineItemProps.lineItemPath - The path to the line item in the schema.
97
+ * @param lineItemProps.lineItemRecord - The record of the line item in the collection.
98
+ * @param lineItemProps.lineItemId - The identifier of the line item.
99
+ * @param lineItemProps.entityType - the entity type as part of the AVT ConvertedMetadata
91
100
  * @param actionType - type of action
92
101
  * @param recordIndex - record index in the collection
93
102
  */
@@ -141,7 +150,8 @@ function handleActionRecord(appSchema, actions, lineItemProps, actionType, recor
141
150
  }
142
151
  }
143
152
  /**
144
- * Returns the type of a column lineItem action
153
+ * Returns the type of a column lineItem action.
154
+ *
145
155
  * @param lineItemId - optional: in case of OP the parameter must be passed to distinguish the OP tables;
146
156
  * @param {object} lineItemRecord - actual record of the line item collection
147
157
  * @param actionTypes - array of action types to be filled
@@ -162,8 +172,10 @@ function getColumnActionType(lineItemId, lineItemRecord, actionTypes) {
162
172
  }
163
173
  }
164
174
  /**
165
- * Returns the type of a lineItem action
175
+ * Returns the type of a lineItem action.
176
+ *
166
177
  * @param {object} lineItemRecord - actual record of the line item collection
178
+ * @param lineItemId - The identifier of the line item, used to distinguish between different line item collections.
167
179
  * @returns {string[] | undefined } ActionTypeV2[] - action type(s) of the lineItem
168
180
  */
169
181
  function getActionType(lineItemRecord, lineItemId) {
@@ -192,6 +204,13 @@ function getActionType(lineItemRecord, lineItemId) {
192
204
  getColumnActionType(lineItemId, lineItemRecord, actionTypes);
193
205
  return actionTypes;
194
206
  }
207
+ /**
208
+ * Generates a generic column for the line item collection.
209
+ *
210
+ * @param lineItemProperties - Properties of the line item collection, including path, record, ID, and entity type.
211
+ * @param appSchema - The app-specific JSON schema to be enhanced.
212
+ * @param recordIndex - The index of the current record in the line item collection.
213
+ */
195
214
  function generateGenericColumn(lineItemProperties, appSchema, recordIndex) {
196
215
  const schemaKey = (0, common_1.getSchemaKeyOfLineItemRecord)(lineItemProperties.lineItemRecord);
197
216
  if (schemaKey) {
@@ -208,6 +227,17 @@ function generateGenericColumn(lineItemProperties, appSchema, recordIndex) {
208
227
  (0, common_1.addKeyToDefinition)(lineItemProperties.lineItemRecord, lineItemDefinition.properties, schemaKey);
209
228
  }
210
229
  }
230
+ /**
231
+ * Handles any action type of a line item record.
232
+ *
233
+ * @param actionType - The type of action being processed.
234
+ * @param appSchema - The app-specific JSON schema to be enhanced.
235
+ * @param actions - The actions definition in the schema, parent object.
236
+ * @param lineItemProperties - Properties of the line item collection, including path, record, ID, and entity type.
237
+ * @param recordIndex - The index of the current record in the line item collection.
238
+ * @param footerActions - The footer actions definition in the schema, if applicable.
239
+ * @param lineItemId - The identifier of the line item, used to distinguish between different line item collections.
240
+ */
211
241
  function handleAnyAction(actionType, appSchema, actions, lineItemProperties, recordIndex, footerActions, lineItemId) {
212
242
  switch (actionType) {
213
243
  case types_1.ActionTypeV2.ToolBar:
@@ -246,7 +276,8 @@ function retrieveNameWithoutVocabularyFromVisualization(annotationTerm, visualiz
246
276
  : '';
247
277
  }
248
278
  /**
249
- * Adds the line item records to the app schema (for the list report or an object page section comprising a table)
279
+ * Adds the line item records to the app schema (for the list report or an object page section comprising a table).
280
+ *
250
281
  * @param isObjectPage - indicates that the page is an object page
251
282
  * @param appSchema - the app specific schema that shall get enhanced
252
283
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
@@ -283,6 +314,7 @@ function addLineItemsType(isObjectPage, appSchema, lineItemAnnotation, entityTyp
283
314
  }
284
315
  /**
285
316
  * Adds enum entries of possible leading properties for 'leadingProperty' property in TableCustomColumn properties.
317
+ *
286
318
  * @param appSchema - the app specific schema that shall get enhanced
287
319
  * @param entityType - the entity type as part of the AVT ConvertedMetadata
288
320
  * @param definitionName - definition name of CustomColumn definition
@@ -307,10 +339,11 @@ function addListReportLeadingProperties(appSchema, entityType, definitionName) {
307
339
  }
308
340
  /**
309
341
  * Adds enum entries of posible tabKey properties for 'leadingProperty' property in TableCustomColumn properties.
342
+ *
310
343
  * @param appSchema - the app specific schema that shall get enhanced
311
344
  * @param definitionName - definition name of CustomColumn definition
312
345
  * @param page - sapui5 page object
313
- * @param {string} facet ID - The facet ID
346
+ * @param facetID - The facet ID
314
347
  */
315
348
  function addTabkeyEnum(appSchema, definitionName, page, facetID) {
316
349
  const tabkeyPropertySchema = appSchema.definitions[definitionName]?.['properties']?.['tabKey'];
@@ -336,6 +369,7 @@ function addTabkeyEnum(appSchema, definitionName, page, facetID) {
336
369
  }
337
370
  /**
338
371
  * Adds enum entries of posible fragment entries.
372
+ *
339
373
  * @param {object} appSchema The app specific schema that shall get enhanced.
340
374
  * @param {FileData[]} fragments Array of fragments.
341
375
  * @param {string[]} appId Application id.
@@ -372,14 +406,15 @@ function addFragmentEnum(appSchema, fragments, appId, property, definitionName)
372
406
  }
373
407
  /**
374
408
  * Adds the custom columns to the line item records of the app schema (for the list report comprising a table).
375
- * @param {object} appSchema The app specific schema that shall get enhanced.
376
- * @param {EntityType} entityType The entity type as part of the AVT ConvertedMetadata.
377
- * @param {SapUiAppPageV2} page Sapui5 page object.
378
- * @param {object} manifest Application manifest.
379
- * @param {FileData[]} [fragments] Array of fragments.
380
- * @param {string} [customColumnsDefinitionName=DefinitionName.CustomColumns] Definition name of Custom Columns definition.
381
- * @param {string} [customColumnDefinitionName=DefinitionName.CustomColumn] Definition name of Custom Column definition.
382
- * @param {string} facetID - Facet ID
409
+ *
410
+ * @param appSchema The app specific schema that shall get enhanced.
411
+ * @param entityType The entity type as part of the AVT ConvertedMetadata.
412
+ * @param page Sapui5 page object.
413
+ * @param manifest Application manifest.
414
+ * @param [fragments] Array of fragments.
415
+ * @param [customColumnsDefinitionName] Definition name of Custom Columns definition.
416
+ * @param [customColumnDefinitionName] Definition name of Custom Column definition.
417
+ * @param facetID - Facet ID
383
418
  */
384
419
  function addTableColumnExtensions(appSchema, entityType, page, manifest, fragments, customColumnsDefinitionName = ux_specification_types_1.DefinitionName.CustomColumns, customColumnDefinitionName = ux_specification_types_1.DefinitionName.CustomColumn, facetID) {
385
420
  addCustomColumnDefinition(appSchema, customColumnsDefinitionName, customColumnDefinitionName);
@@ -396,7 +431,8 @@ function addTableColumnExtensions(appSchema, entityType, page, manifest, fragmen
396
431
  addFragmentEnum(appSchema, fragments, appId, 'cellsFragmentName', ux_specification_types_1.DefinitionName.CustomColumn);
397
432
  }
398
433
  /**
399
- * Processes an anyOf definition of the generic schema
434
+ * Processes an anyOf definition of the generic schema.
435
+ *
400
436
  * @param propertyDefinition - current definition in the generic schema
401
437
  * @param schema - the app-specific schema
402
438
  * @param propertyKey - key of the single property
@@ -413,8 +449,9 @@ function processAnyOf(propertyDefinition, schema, propertyKey, factory, pageType
413
449
  });
414
450
  }
415
451
  /**
416
- * Processes an object reference of the generic schema
417
- * @param schema
452
+ * Processes an object reference of the generic schema.
453
+ *
454
+ * @param schema - The JSON schema to be processed.
418
455
  * @param propertyDefinition - current definition in the generic schema
419
456
  * @param propertyKey - key of the single property
420
457
  * @param factory - factory for creating metadata instances
@@ -428,7 +465,8 @@ function processObject(schema, propertyDefinition, propertyKey, factory, pageTyp
428
465
  }
429
466
  }
430
467
  /**
431
- * Determines the artifact type of a property and adds it to the property definition in schema
468
+ * Determines the artifact type of a property and adds it to the property definition in schema.
469
+ *
432
470
  * @param syncRule - sync rule of the current property
433
471
  * @param propertyDefinition - current definition in the generic schema
434
472
  */
@@ -449,8 +487,9 @@ function addArtifactType(syncRule, propertyDefinition) {
449
487
  }
450
488
  }
451
489
  /**
452
- * After the generation of a generic schema, apply post-generation rule to a single property
453
- * @param metaDataDefinition
490
+ * After the generation of a generic schema, apply post-generation rule to a single property.
491
+ *
492
+ * @param metaDataDefinition - The metadata definition object containing property configurations and rules.
454
493
  * @param schema - given app schema, to be adapted
455
494
  * @param pageType - page type
456
495
  * @param factory - factory for creating metadata instances
@@ -485,9 +524,12 @@ function processSingleProperty(metaDataDefinition, schema, pageType, factory, pr
485
524
  }
486
525
  }
487
526
  /**
488
- * After the generation of a generic schema, apply rules to a list of properties of the given schema section
527
+ * After the generation of a generic schema, apply rules to a list of properties of the given schema section.
528
+ *
489
529
  * @param schema - given app schema, to be adapted
490
530
  * @param schemaDefinition - the current entry point or definition in the app schema
531
+ * @param metaDataDefinition - the current entry point or definition in the metadata
532
+ * @param propertiesSection - the section of the schema containing properties to process (e.g., 'properties', 'additionalProperties', or 'patternProperties')
491
533
  * @param pageType - page type
492
534
  * @param factory - factory for creating metadata instances
493
535
  * @param processedRefs - array of already processed refs which used to avoid cycling recursion
@@ -514,9 +556,11 @@ function processProperties(schema, schemaDefinition, metaDataDefinition, propert
514
556
  }
515
557
  }
516
558
  /**
517
- * Apply post-processing rules as specified in form of "generate" at the syncRule
559
+ * Apply post-processing rules as specified in form of "generate" at the syncRule.
560
+ *
518
561
  * @param schema - given app schema, to be adapted
519
562
  * @param schemaDefinition - the current entry point or definition in the app schema
563
+ * @param metaDataDefinition - the current entry point or definition in the metadata
520
564
  * @param pageType - page type
521
565
  * @param factory - factory for creating metadata instances
522
566
  * @param processedRefs - array of already processed refs which used to avoid cycling recursion
@@ -535,6 +579,7 @@ function processMetadata(schema, schemaDefinition, metaDataDefinition, pageType,
535
579
  }
536
580
  /**
537
581
  * Method updates passed 'enum' array by removing passed matching entries.
582
+ *
538
583
  * @param {Array<unknown>} values Array of values.
539
584
  * @param {Array<unknown>} valuesToRemove Array of values to remove.
540
585
  */
@@ -548,10 +593,11 @@ function removeElementsFromEnum(values, valuesToRemove) {
548
593
  }
549
594
  }
550
595
  /**
551
- * Adds the selection fields to the app schema, as properties of the Filterbar
552
- * @param entityType - the entity type as part of the AVT ConvertedMetadata
596
+ * Adds the selection fields to the app schema, as properties of the Filterbar.
597
+ *
553
598
  * @param appSchema - the app specific schema that shall get enhanced
554
599
  * @param selectionFieldsAnnotation - the UI.SelectionField annotation
600
+ * @param entityType - the entity type as part of the AVT ConvertedMetadata
555
601
  */
556
602
  function addSelectionFields(appSchema, selectionFieldsAnnotation, entityType) {
557
603
  appSchema.definitions.SelectionFields = {
@@ -601,7 +647,8 @@ function addSelectionFields(appSchema, selectionFieldsAnnotation, entityType) {
601
647
  });
602
648
  }
603
649
  /**
604
- * Add entityProperties to passed a passed enum entry
650
+ * Add entityProperties to passed a passed enum entry.
651
+ *
605
652
  * @param {string[]} appSchemaEnum - Enum to be enhanced
606
653
  * @param {EntityType} entityType - Given entity type for which entries shall get generated
607
654
  */
@@ -611,7 +658,8 @@ function addEntityPropertiesToEnum(appSchemaEnum, entityType) {
611
658
  }
612
659
  }
613
660
  /**
614
- * Checks if an entity supports draft capabilities
661
+ * Checks if an entity supports draft capabilities.
662
+ *
615
663
  * @param {EntitySet} entitySet Entity Set
616
664
  * @returns true if the entity supports draft
617
665
  */
@@ -620,14 +668,22 @@ function isDraftEnabled(entitySet) {
620
668
  }
621
669
  /**
622
670
  * Function to determine if the entity is deletable.
671
+ *
623
672
  * @param {EntitySet} entitySet - current entity set
624
673
  * returns {boolean} return true if the Entity is deletable
625
674
  */
675
+ /**
676
+ * Checks if an entity supports draft capabilities.
677
+ *
678
+ * @param entitySet - The entity set to check for draft capabilities.
679
+ * @returns {boolean} True if the entity supports draft capabilities, otherwise false.
680
+ */
626
681
  function isEntityDeletable(entitySet) {
627
682
  return entitySet.annotations?.Capabilities?.DeleteRestrictions?.Deletable !== false;
628
683
  }
629
684
  /**
630
685
  * Function to determine if the entity is updatable.
686
+ *
631
687
  * @param {EntitySet} entitySet - current entity set
632
688
  * @returns returns true if the Entity is updatable
633
689
  */
@@ -635,7 +691,8 @@ function isEntityUpdatable(entitySet) {
635
691
  return entitySet.annotations?.Capabilities?.UpdateRestrictions?.Updatable !== false;
636
692
  }
637
693
  /**
638
- * Adds standard header actions to schema (LR, ALP or OP)
694
+ * Adds standard header actions to schema (LR, ALP or OP).
695
+ *
639
696
  * @param {Definition} appSchema - app-specific JSON schema
640
697
  * @param {boolean} isOP - flag to add to either LR/ALP or OP definition
641
698
  * @param {Definition} actions - optional standard actions definition
@@ -661,9 +718,9 @@ function addStandardHeaderActions(appSchema, isOP = false, actions) {
661
718
  });
662
719
  }
663
720
  /**
664
- * Adds standard footer actions to schema of Object Page
721
+ * Adds standard footer actions to schema of Object Page.
722
+ *
665
723
  * @param {Definition} appSchema - app-specific JSON schema
666
- * @param {EntityType} entityType Entity Type of the page
667
724
  * @param {Definition} actions - optional standard actions definition
668
725
  */
669
726
  function addStandardFooterActionsOP(appSchema, actions) {
@@ -677,7 +734,8 @@ function addStandardFooterActionsOP(appSchema, actions) {
677
734
  }
678
735
  }
679
736
  /**
680
- * Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist
737
+ * Extract entity type and ui annotations for a entity set and log an error in case that either of these objects does not exist.
738
+ *
681
739
  * @param {GenerateAppSchemaParameters} generateParameters list of API input parameters
682
740
  * @returns the entity type and the ui annotations for the given entity set
683
741
  */
@@ -695,41 +753,4 @@ function getUIAnnotationForEntitySet(generateParameters) {
695
753
  }
696
754
  return { entityType, uIAnnotations };
697
755
  }
698
- /**
699
- * Type check for properties coming from the manifest.
700
- *
701
- * @param parent - the parent object in manifest which may contain the property.
702
- * @param propertyName - name of the property name to be checked
703
- * @param logger - a logger which may receive the error message in case a type error is detected
704
- * @param expectedType - the expected type of the value of the property (if it is not undefined)
705
- * @param mandatory - specifies handling handling of null and undefined: If parent is null this is always considered an error.
706
- * undefined value for parent or its specified property is considered an error when parameter mandatory is true.
707
- * null value for the specified property is considered an error when mandatory is true or the expected type is not 'object'.
708
- * @returns the information whether a type error was detected.
709
- */
710
- function hasPropertyTypeError(parent, propertyName, logger, expectedType = 'string', mandatory = false) {
711
- let hasTypeError;
712
- if (parent === undefined) {
713
- hasTypeError = mandatory;
714
- }
715
- else if (parent === null || typeof parent !== 'object') {
716
- hasTypeError = true;
717
- }
718
- else {
719
- const propValue = parent[propertyName];
720
- if (propValue === undefined) {
721
- hasTypeError = mandatory;
722
- }
723
- else {
724
- hasTypeError = typeof propValue !== expectedType || (propValue === null && mandatory);
725
- }
726
- }
727
- if (hasTypeError) {
728
- (0, extensionLogger_1.log)(logger, {
729
- severity: "error" /* LogSeverity.Error */,
730
- message: i18next_1.default.t('TYPEERROR', { propertyName: propertyName, expectedType: expectedType })
731
- });
732
- }
733
- return hasTypeError;
734
- }
735
756
  //# sourceMappingURL=utils.js.map