@abaplint/transpiler-cli 2.3.110 → 2.3.112

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 (651) hide show
  1. package/build/bundle.js +74715 -1517
  2. package/output/#ui2#cl_json.clas.locals.mjs +207 -0
  3. package/output/#ui2#cl_json.clas.locals.mjs.map +10 -0
  4. package/output/#ui2#cl_json.clas.mjs +160 -0
  5. package/output/#ui2#cl_json.clas.mjs.map +10 -0
  6. package/output/_init.mjs +8964 -0
  7. package/output/_top.mjs +2 -0
  8. package/output/_unit_open.mjs +25 -0
  9. package/output/abap_boolean.dtel.mjs +6 -0
  10. package/output/abap_callstack.ttyp.mjs +4 -0
  11. package/output/abap_callstack_line.tabl.mjs +5 -0
  12. package/output/abap_encod.dtel.mjs +6 -0
  13. package/output/balmnr.dtel.mjs +6 -0
  14. package/output/balognr.dtel.mjs +6 -0
  15. package/output/bapi_fld.dtel.mjs +6 -0
  16. package/output/bapi_line.dtel.mjs +6 -0
  17. package/output/bapi_msg.dtel.mjs +6 -0
  18. package/output/bapi_mtype.dtel.mjs +6 -0
  19. package/output/bapi_param.dtel.mjs +6 -0
  20. package/output/bapi_rcode.dtel.mjs +6 -0
  21. package/output/bapilogsys.dtel.mjs +6 -0
  22. package/output/bapioption.dtel.mjs +6 -0
  23. package/output/bapiret2.tabl.mjs +5 -0
  24. package/output/bapireturn.tabl.mjs +5 -0
  25. package/output/bapisign.dtel.mjs +6 -0
  26. package/output/boolean.dtel.mjs +6 -0
  27. package/output/char1.dtel.mjs +6 -0
  28. package/output/char10.dtel.mjs +6 -0
  29. package/output/char15.dtel.mjs +6 -0
  30. package/output/char25.dtel.mjs +6 -0
  31. package/output/char32.dtel.mjs +6 -0
  32. package/output/char4.dtel.mjs +6 -0
  33. package/output/cl_abap_char_utilities.clas.mjs +72 -0
  34. package/output/cl_abap_char_utilities.clas.mjs.map +10 -0
  35. package/output/cl_abap_classdescr.clas.mjs +31 -0
  36. package/output/cl_abap_classdescr.clas.mjs.map +10 -0
  37. package/output/cl_abap_codepage.clas.mjs +54 -0
  38. package/output/cl_abap_codepage.clas.mjs.map +10 -0
  39. package/output/cl_abap_complexdescr.clas.mjs +16 -0
  40. package/output/cl_abap_complexdescr.clas.mjs.map +10 -0
  41. package/output/cl_abap_conv_codepage.clas.locals.mjs +42 -0
  42. package/output/cl_abap_conv_codepage.clas.locals.mjs.map +10 -0
  43. package/output/cl_abap_conv_codepage.clas.mjs +31 -0
  44. package/output/cl_abap_conv_codepage.clas.mjs.map +10 -0
  45. package/output/cl_abap_conv_in_ce.clas.mjs +118 -0
  46. package/output/cl_abap_conv_in_ce.clas.mjs.map +10 -0
  47. package/output/cl_abap_conv_out_ce.clas.mjs +82 -0
  48. package/output/cl_abap_conv_out_ce.clas.mjs.map +10 -0
  49. package/output/cl_abap_datadescr.clas.mjs +35 -0
  50. package/output/cl_abap_datadescr.clas.mjs.map +10 -0
  51. package/output/cl_abap_elemdescr.clas.mjs +148 -0
  52. package/output/cl_abap_elemdescr.clas.mjs.map +10 -0
  53. package/output/cl_abap_enumdescr.clas.mjs +19 -0
  54. package/output/cl_abap_enumdescr.clas.mjs.map +10 -0
  55. package/output/cl_abap_exceptional_values.clas.mjs +65 -0
  56. package/output/cl_abap_exceptional_values.clas.mjs.map +10 -0
  57. package/output/cl_abap_format.clas.mjs +26 -0
  58. package/output/cl_abap_format.clas.mjs.map +10 -0
  59. package/output/cl_abap_gzip.clas.mjs +87 -0
  60. package/output/cl_abap_gzip.clas.mjs.map +10 -0
  61. package/output/cl_abap_hmac.clas.mjs +64 -0
  62. package/output/cl_abap_hmac.clas.mjs.map +10 -0
  63. package/output/cl_abap_intfdescr.clas.mjs +16 -0
  64. package/output/cl_abap_intfdescr.clas.mjs.map +10 -0
  65. package/output/cl_abap_matcher.clas.mjs +76 -0
  66. package/output/cl_abap_matcher.clas.mjs.map +10 -0
  67. package/output/cl_abap_math.clas.mjs +41 -0
  68. package/output/cl_abap_math.clas.mjs.map +10 -0
  69. package/output/cl_abap_objectdescr.clas.mjs +76 -0
  70. package/output/cl_abap_objectdescr.clas.mjs.map +10 -0
  71. package/output/cl_abap_random.clas.mjs +52 -0
  72. package/output/cl_abap_random.clas.mjs.map +10 -0
  73. package/output/cl_abap_random_int.clas.mjs +35 -0
  74. package/output/cl_abap_random_int.clas.mjs.map +10 -0
  75. package/output/cl_abap_refdescr.clas.mjs +35 -0
  76. package/output/cl_abap_refdescr.clas.mjs.map +10 -0
  77. package/output/cl_abap_regex.clas.mjs +43 -0
  78. package/output/cl_abap_regex.clas.mjs.map +10 -0
  79. package/output/cl_abap_structdescr.clas.mjs +180 -0
  80. package/output/cl_abap_structdescr.clas.mjs.map +10 -0
  81. package/output/cl_abap_tabledescr.clas.mjs +152 -0
  82. package/output/cl_abap_tabledescr.clas.mjs.map +10 -0
  83. package/output/cl_abap_tstmp.clas.mjs +99 -0
  84. package/output/cl_abap_tstmp.clas.mjs.map +10 -0
  85. package/output/cl_abap_typedescr.clas.mjs +368 -0
  86. package/output/cl_abap_typedescr.clas.mjs.map +10 -0
  87. package/output/cl_abap_unit_assert.clas.locals.mjs +57 -0
  88. package/output/cl_abap_unit_assert.clas.locals.mjs.map +10 -0
  89. package/output/cl_abap_unit_assert.clas.mjs +323 -0
  90. package/output/cl_abap_unit_assert.clas.mjs.map +10 -0
  91. package/output/cl_abap_zip.clas.locals.mjs +115 -0
  92. package/output/cl_abap_zip.clas.locals.mjs.map +10 -0
  93. package/output/cl_abap_zip.clas.mjs +95 -0
  94. package/output/cl_abap_zip.clas.mjs.map +10 -0
  95. package/output/cl_apc_tcp_client_manager.clas.locals.mjs +86 -0
  96. package/output/cl_apc_tcp_client_manager.clas.locals.mjs.map +10 -0
  97. package/output/cl_apc_tcp_client_manager.clas.mjs +31 -0
  98. package/output/cl_apc_tcp_client_manager.clas.mjs.map +10 -0
  99. package/output/cl_apc_wsp_ext_stateless_base.clas.mjs +30 -0
  100. package/output/cl_apc_wsp_ext_stateless_base.clas.mjs.map +10 -0
  101. package/output/cl_bcs.clas.mjs +63 -0
  102. package/output/cl_bcs.clas.mjs.map +10 -0
  103. package/output/cl_bcs_convert.clas.mjs +34 -0
  104. package/output/cl_bcs_convert.clas.mjs.map +10 -0
  105. package/output/cl_cam_address_bcs.clas.mjs +28 -0
  106. package/output/cl_cam_address_bcs.clas.mjs.map +10 -0
  107. package/output/cl_demo_output.clas.mjs +40 -0
  108. package/output/cl_demo_output.clas.mjs.map +10 -0
  109. package/output/cl_document_bcs.clas.mjs +45 -0
  110. package/output/cl_document_bcs.clas.mjs.map +10 -0
  111. package/output/cl_gdt_conversion.clas.mjs +122 -0
  112. package/output/cl_gdt_conversion.clas.mjs.map +10 -0
  113. package/output/cl_gui_cfw.clas.mjs +32 -0
  114. package/output/cl_gui_cfw.clas.mjs.map +10 -0
  115. package/output/cl_gui_container.clas.mjs +22 -0
  116. package/output/cl_gui_container.clas.mjs.map +10 -0
  117. package/output/cl_gui_frontend_services.clas.mjs +273 -0
  118. package/output/cl_gui_frontend_services.clas.mjs.map +10 -0
  119. package/output/cl_http_client.clas.mjs +164 -0
  120. package/output/cl_http_client.clas.mjs.map +10 -0
  121. package/output/cl_http_entity.clas.mjs +493 -0
  122. package/output/cl_http_entity.clas.mjs.map +10 -0
  123. package/output/cl_http_server.clas.mjs +28 -0
  124. package/output/cl_http_server.clas.mjs.map +10 -0
  125. package/output/cl_http_utility.clas.mjs +178 -0
  126. package/output/cl_http_utility.clas.mjs.map +10 -0
  127. package/output/cl_i18n_languages.clas.mjs +318 -0
  128. package/output/cl_i18n_languages.clas.mjs.map +10 -0
  129. package/output/cl_ixml.clas.locals.mjs +1161 -0
  130. package/output/cl_ixml.clas.locals.mjs.map +10 -0
  131. package/output/cl_ixml.clas.mjs +62 -0
  132. package/output/cl_ixml.clas.mjs.map +10 -0
  133. package/output/cl_message_helper.clas.mjs +81 -0
  134. package/output/cl_message_helper.clas.mjs.map +10 -0
  135. package/output/cl_numberrange_runtime.clas.mjs +32 -0
  136. package/output/cl_numberrange_runtime.clas.mjs.map +10 -0
  137. package/output/cl_oo_factory.clas.mjs +38 -0
  138. package/output/cl_oo_factory.clas.mjs.map +10 -0
  139. package/output/cl_progress_indicator.clas.mjs +30 -0
  140. package/output/cl_progress_indicator.clas.mjs.map +10 -0
  141. package/output/cl_salv_aggregations.clas.mjs +14 -0
  142. package/output/cl_salv_aggregations.clas.mjs.map +10 -0
  143. package/output/cl_salv_column.clas.mjs +35 -0
  144. package/output/cl_salv_column.clas.mjs.map +10 -0
  145. package/output/cl_salv_columns_table.clas.mjs +42 -0
  146. package/output/cl_salv_columns_table.clas.mjs.map +10 -0
  147. package/output/cl_salv_events_table.clas.mjs +14 -0
  148. package/output/cl_salv_events_table.clas.mjs.map +10 -0
  149. package/output/cl_salv_functions_list.clas.mjs +19 -0
  150. package/output/cl_salv_functions_list.clas.mjs.map +10 -0
  151. package/output/cl_salv_table.clas.mjs +122 -0
  152. package/output/cl_salv_table.clas.mjs.map +10 -0
  153. package/output/cl_shm_area.clas.mjs +267 -0
  154. package/output/cl_shm_area.clas.mjs.map +10 -0
  155. package/output/cl_shm_service.clas.mjs +56 -0
  156. package/output/cl_shm_service.clas.mjs.map +10 -0
  157. package/output/cl_sxml_string_reader.clas.locals.mjs +323 -0
  158. package/output/cl_sxml_string_reader.clas.locals.mjs.map +10 -0
  159. package/output/cl_sxml_string_reader.clas.mjs +25 -0
  160. package/output/cl_sxml_string_reader.clas.mjs.map +10 -0
  161. package/output/cl_sxml_string_writer.clas.mjs +146 -0
  162. package/output/cl_sxml_string_writer.clas.mjs.map +10 -0
  163. package/output/cl_system_uuid.clas.mjs +35 -0
  164. package/output/cl_system_uuid.clas.mjs.map +10 -0
  165. package/output/cx_abap_message_digest.clas.mjs +16 -0
  166. package/output/cx_abap_message_digest.clas.mjs.map +10 -0
  167. package/output/cx_abap_random.clas.mjs +16 -0
  168. package/output/cx_abap_random.clas.mjs.map +10 -0
  169. package/output/cx_apc_error.clas.mjs +16 -0
  170. package/output/cx_apc_error.clas.mjs.map +10 -0
  171. package/output/cx_bcs.clas.mjs +16 -0
  172. package/output/cx_bcs.clas.mjs.map +10 -0
  173. package/output/cx_dynamic_check.clas.mjs +15 -0
  174. package/output/cx_dynamic_check.clas.mjs.map +10 -0
  175. package/output/cx_gdt_conversion.clas.mjs +16 -0
  176. package/output/cx_gdt_conversion.clas.mjs.map +10 -0
  177. package/output/cx_no_check.clas.mjs +17 -0
  178. package/output/cx_no_check.clas.mjs.map +10 -0
  179. package/output/cx_oo_clif_not_exists.clas.mjs +16 -0
  180. package/output/cx_oo_clif_not_exists.clas.mjs.map +10 -0
  181. package/output/cx_parameter_invalid.clas.mjs +16 -0
  182. package/output/cx_parameter_invalid.clas.mjs.map +10 -0
  183. package/output/cx_parameter_invalid_range.clas.mjs +16 -0
  184. package/output/cx_parameter_invalid_range.clas.mjs.map +10 -0
  185. package/output/cx_parameter_invalid_type.clas.mjs +16 -0
  186. package/output/cx_parameter_invalid_type.clas.mjs.map +10 -0
  187. package/output/cx_root.clas.mjs +44 -0
  188. package/output/cx_root.clas.mjs.map +10 -0
  189. package/output/cx_salv_access_error.clas.mjs +16 -0
  190. package/output/cx_salv_access_error.clas.mjs.map +10 -0
  191. package/output/cx_salv_data_error.clas.mjs +16 -0
  192. package/output/cx_salv_data_error.clas.mjs.map +10 -0
  193. package/output/cx_salv_error.clas.mjs +16 -0
  194. package/output/cx_salv_error.clas.mjs.map +10 -0
  195. package/output/cx_salv_msg.clas.mjs +16 -0
  196. package/output/cx_salv_msg.clas.mjs.map +10 -0
  197. package/output/cx_salv_not_found.clas.mjs +16 -0
  198. package/output/cx_salv_not_found.clas.mjs.map +10 -0
  199. package/output/cx_salv_static_check.clas.mjs +16 -0
  200. package/output/cx_salv_static_check.clas.mjs.map +10 -0
  201. package/output/cx_shm_already_detached.clas.mjs +16 -0
  202. package/output/cx_shm_already_detached.clas.mjs.map +10 -0
  203. package/output/cx_shm_attach_error.clas.mjs +16 -0
  204. package/output/cx_shm_attach_error.clas.mjs.map +10 -0
  205. package/output/cx_shm_build_failed.clas.mjs +16 -0
  206. package/output/cx_shm_build_failed.clas.mjs.map +10 -0
  207. package/output/cx_shm_change_lock_active.clas.mjs +16 -0
  208. package/output/cx_shm_change_lock_active.clas.mjs.map +10 -0
  209. package/output/cx_shm_completion_error.clas.mjs +16 -0
  210. package/output/cx_shm_completion_error.clas.mjs.map +10 -0
  211. package/output/cx_shm_detach_error.clas.mjs +16 -0
  212. package/output/cx_shm_detach_error.clas.mjs.map +10 -0
  213. package/output/cx_shm_error.clas.mjs +16 -0
  214. package/output/cx_shm_error.clas.mjs.map +10 -0
  215. package/output/cx_shm_event_execution_failed.clas.mjs +16 -0
  216. package/output/cx_shm_event_execution_failed.clas.mjs.map +10 -0
  217. package/output/cx_shm_exclusive_lock_active.clas.mjs +16 -0
  218. package/output/cx_shm_exclusive_lock_active.clas.mjs.map +10 -0
  219. package/output/cx_shm_general_error.clas.mjs +16 -0
  220. package/output/cx_shm_general_error.clas.mjs.map +10 -0
  221. package/output/cx_shm_inconsistent.clas.mjs +16 -0
  222. package/output/cx_shm_inconsistent.clas.mjs.map +10 -0
  223. package/output/cx_shm_initial_reference.clas.mjs +16 -0
  224. package/output/cx_shm_initial_reference.clas.mjs.map +10 -0
  225. package/output/cx_shm_no_active_version.clas.mjs +16 -0
  226. package/output/cx_shm_no_active_version.clas.mjs.map +10 -0
  227. package/output/cx_shm_parameter_error.clas.mjs +16 -0
  228. package/output/cx_shm_parameter_error.clas.mjs.map +10 -0
  229. package/output/cx_shm_pending_lock_removed.clas.mjs +16 -0
  230. package/output/cx_shm_pending_lock_removed.clas.mjs.map +10 -0
  231. package/output/cx_shm_read_lock_active.clas.mjs +16 -0
  232. package/output/cx_shm_read_lock_active.clas.mjs.map +10 -0
  233. package/output/cx_shm_secondary_commit.clas.mjs +16 -0
  234. package/output/cx_shm_secondary_commit.clas.mjs.map +10 -0
  235. package/output/cx_shm_version_limit_exceeded.clas.mjs +16 -0
  236. package/output/cx_shm_version_limit_exceeded.clas.mjs.map +10 -0
  237. package/output/cx_shm_wrong_handle.clas.mjs +16 -0
  238. package/output/cx_shm_wrong_handle.clas.mjs.map +10 -0
  239. package/output/cx_shma_dynamic.clas.mjs +16 -0
  240. package/output/cx_shma_dynamic.clas.mjs.map +10 -0
  241. package/output/cx_shma_inconsistent.clas.mjs +16 -0
  242. package/output/cx_shma_inconsistent.clas.mjs.map +10 -0
  243. package/output/cx_shma_not_configured.clas.mjs +16 -0
  244. package/output/cx_shma_not_configured.clas.mjs.map +10 -0
  245. package/output/cx_static_check.clas.mjs +27 -0
  246. package/output/cx_static_check.clas.mjs.map +10 -0
  247. package/output/cx_sxml_error.clas.mjs +16 -0
  248. package/output/cx_sxml_error.clas.mjs.map +10 -0
  249. package/output/cx_sxml_illegal_argument_error.clas.mjs +16 -0
  250. package/output/cx_sxml_illegal_argument_error.clas.mjs.map +10 -0
  251. package/output/cx_sxml_name_error.clas.mjs +16 -0
  252. package/output/cx_sxml_name_error.clas.mjs.map +10 -0
  253. package/output/cx_sxml_parse_error.clas.mjs +20 -0
  254. package/output/cx_sxml_parse_error.clas.mjs.map +10 -0
  255. package/output/cx_sxml_state_error.clas.mjs +16 -0
  256. package/output/cx_sxml_state_error.clas.mjs.map +10 -0
  257. package/output/cx_sy_arithmetic_error.clas.mjs +16 -0
  258. package/output/cx_sy_arithmetic_error.clas.mjs.map +10 -0
  259. package/output/cx_sy_buffer_overflow.clas.mjs +16 -0
  260. package/output/cx_sy_buffer_overflow.clas.mjs.map +10 -0
  261. package/output/cx_sy_codepage_converter_init.clas.mjs +16 -0
  262. package/output/cx_sy_codepage_converter_init.clas.mjs.map +10 -0
  263. package/output/cx_sy_compression_error.clas.mjs +16 -0
  264. package/output/cx_sy_compression_error.clas.mjs.map +10 -0
  265. package/output/cx_sy_conversion_codepage.clas.mjs +17 -0
  266. package/output/cx_sy_conversion_codepage.clas.mjs.map +10 -0
  267. package/output/cx_sy_conversion_data_loss.clas.mjs +16 -0
  268. package/output/cx_sy_conversion_data_loss.clas.mjs.map +10 -0
  269. package/output/cx_sy_conversion_error.clas.mjs +16 -0
  270. package/output/cx_sy_conversion_error.clas.mjs.map +10 -0
  271. package/output/cx_sy_conversion_no_number.clas.mjs +16 -0
  272. package/output/cx_sy_conversion_no_number.clas.mjs.map +10 -0
  273. package/output/cx_sy_conversion_overflow.clas.mjs +16 -0
  274. package/output/cx_sy_conversion_overflow.clas.mjs.map +10 -0
  275. package/output/cx_sy_create_data_error.clas.mjs +16 -0
  276. package/output/cx_sy_create_data_error.clas.mjs.map +10 -0
  277. package/output/cx_sy_create_object_error.clas.mjs +29 -0
  278. package/output/cx_sy_create_object_error.clas.mjs.map +10 -0
  279. package/output/cx_sy_data_access_error.clas.mjs +16 -0
  280. package/output/cx_sy_data_access_error.clas.mjs.map +10 -0
  281. package/output/cx_sy_duplicate_key.clas.mjs +16 -0
  282. package/output/cx_sy_duplicate_key.clas.mjs.map +10 -0
  283. package/output/cx_sy_dyn_call_error.clas.mjs +16 -0
  284. package/output/cx_sy_dyn_call_error.clas.mjs.map +10 -0
  285. package/output/cx_sy_dyn_call_illegal_class.clas.mjs +16 -0
  286. package/output/cx_sy_dyn_call_illegal_class.clas.mjs.map +10 -0
  287. package/output/cx_sy_dyn_call_illegal_func.clas.mjs +16 -0
  288. package/output/cx_sy_dyn_call_illegal_func.clas.mjs.map +10 -0
  289. package/output/cx_sy_dyn_call_illegal_method.clas.mjs +27 -0
  290. package/output/cx_sy_dyn_call_illegal_method.clas.mjs.map +10 -0
  291. package/output/cx_sy_dyn_call_param_not_found.clas.mjs +16 -0
  292. package/output/cx_sy_dyn_call_param_not_found.clas.mjs.map +10 -0
  293. package/output/cx_sy_dyn_call_parameter_error.clas.mjs +17 -0
  294. package/output/cx_sy_dyn_call_parameter_error.clas.mjs.map +10 -0
  295. package/output/cx_sy_dynamic_osql_error.clas.mjs +18 -0
  296. package/output/cx_sy_dynamic_osql_error.clas.mjs.map +10 -0
  297. package/output/cx_sy_dynamic_osql_semantics.clas.mjs +18 -0
  298. package/output/cx_sy_dynamic_osql_semantics.clas.mjs.map +10 -0
  299. package/output/cx_sy_itab_duplicate_key.clas.mjs +16 -0
  300. package/output/cx_sy_itab_duplicate_key.clas.mjs.map +10 -0
  301. package/output/cx_sy_itab_error.clas.mjs +16 -0
  302. package/output/cx_sy_itab_error.clas.mjs.map +10 -0
  303. package/output/cx_sy_itab_line_not_found.clas.mjs +16 -0
  304. package/output/cx_sy_itab_line_not_found.clas.mjs.map +10 -0
  305. package/output/cx_sy_message_illegal_text.clas.mjs +16 -0
  306. package/output/cx_sy_message_illegal_text.clas.mjs.map +10 -0
  307. package/output/cx_sy_move_cast_error.clas.mjs +16 -0
  308. package/output/cx_sy_move_cast_error.clas.mjs.map +10 -0
  309. package/output/cx_sy_open_sql_error.clas.mjs +18 -0
  310. package/output/cx_sy_open_sql_error.clas.mjs.map +10 -0
  311. package/output/cx_sy_range_out_of_bounds.clas.mjs +16 -0
  312. package/output/cx_sy_range_out_of_bounds.clas.mjs.map +10 -0
  313. package/output/cx_sy_ref_is_initial.clas.mjs +16 -0
  314. package/output/cx_sy_ref_is_initial.clas.mjs.map +10 -0
  315. package/output/cx_sy_sql_error.clas.mjs +20 -0
  316. package/output/cx_sy_sql_error.clas.mjs.map +10 -0
  317. package/output/cx_sy_strg_par_val.clas.mjs +16 -0
  318. package/output/cx_sy_strg_par_val.clas.mjs.map +10 -0
  319. package/output/cx_sy_struct_attributes.clas.mjs +16 -0
  320. package/output/cx_sy_struct_attributes.clas.mjs.map +10 -0
  321. package/output/cx_sy_struct_comp_name.clas.mjs +16 -0
  322. package/output/cx_sy_struct_comp_name.clas.mjs.map +10 -0
  323. package/output/cx_sy_struct_comp_type.clas.mjs +16 -0
  324. package/output/cx_sy_struct_comp_type.clas.mjs.map +10 -0
  325. package/output/cx_sy_struct_creation.clas.mjs +16 -0
  326. package/output/cx_sy_struct_creation.clas.mjs.map +10 -0
  327. package/output/cx_sy_type_creation.clas.mjs +16 -0
  328. package/output/cx_sy_type_creation.clas.mjs.map +10 -0
  329. package/output/cx_sy_zerodivide.clas.mjs +16 -0
  330. package/output/cx_sy_zerodivide.clas.mjs.map +10 -0
  331. package/output/cx_transformation_error.clas.mjs +16 -0
  332. package/output/cx_transformation_error.clas.mjs.map +10 -0
  333. package/output/cx_uuid_error.clas.mjs +16 -0
  334. package/output/cx_uuid_error.clas.mjs.map +10 -0
  335. package/output/cx_xslt_exception.clas.mjs +16 -0
  336. package/output/cx_xslt_exception.clas.mjs.map +10 -0
  337. package/output/cx_xslt_format_error.clas.mjs +16 -0
  338. package/output/cx_xslt_format_error.clas.mjs.map +10 -0
  339. package/output/cx_xslt_runtime_error.clas.mjs +16 -0
  340. package/output/cx_xslt_runtime_error.clas.mjs.map +10 -0
  341. package/output/cx_xslt_system_error.clas.mjs +16 -0
  342. package/output/cx_xslt_system_error.clas.mjs.map +10 -0
  343. package/output/dats.dtel.mjs +6 -0
  344. package/output/ddfields.ttyp.mjs +4 -0
  345. package/output/ddoption.dtel.mjs +6 -0
  346. package/output/ddsign.dtel.mjs +6 -0
  347. package/output/devclass.dtel.mjs +6 -0
  348. package/output/dfies.tabl.mjs +5 -0
  349. package/output/doku_obj.dtel.mjs +6 -0
  350. package/output/dynprofld.dtel.mjs +6 -0
  351. package/output/file_table.tabl.mjs +5 -0
  352. package/output/filetable.ttyp.mjs +4 -0
  353. package/output/flag.dtel.mjs +6 -0
  354. package/output/funcname.dtel.mjs +6 -0
  355. package/output/guid.dtel.mjs +6 -0
  356. package/output/if_abap_channel_types.intf.mjs +9 -0
  357. package/output/if_abap_channel_types.intf.mjs.map +8 -0
  358. package/output/if_abap_conv_in.intf.mjs +8 -0
  359. package/output/if_abap_conv_in.intf.mjs.map +8 -0
  360. package/output/if_abap_conv_out.intf.mjs +8 -0
  361. package/output/if_abap_conv_out.intf.mjs.map +8 -0
  362. package/output/if_abap_unit_constant.intf.mjs +15 -0
  363. package/output/if_abap_unit_constant.intf.mjs.map +8 -0
  364. package/output/if_apc_tcp_frame_types.intf.mjs +14 -0
  365. package/output/if_apc_tcp_frame_types.intf.mjs.map +8 -0
  366. package/output/if_apc_wsp_binding_manager.intf.mjs +8 -0
  367. package/output/if_apc_wsp_binding_manager.intf.mjs.map +8 -0
  368. package/output/if_apc_wsp_client.intf.mjs +8 -0
  369. package/output/if_apc_wsp_client.intf.mjs.map +8 -0
  370. package/output/if_apc_wsp_event_handler.intf.mjs +8 -0
  371. package/output/if_apc_wsp_event_handler.intf.mjs.map +8 -0
  372. package/output/if_apc_wsp_extension.intf.mjs +8 -0
  373. package/output/if_apc_wsp_extension.intf.mjs.map +8 -0
  374. package/output/if_apc_wsp_initial_request.intf.mjs +8 -0
  375. package/output/if_apc_wsp_initial_request.intf.mjs.map +8 -0
  376. package/output/if_apc_wsp_message.intf.mjs +8 -0
  377. package/output/if_apc_wsp_message.intf.mjs.map +8 -0
  378. package/output/if_apc_wsp_message_manager.intf.mjs +8 -0
  379. package/output/if_apc_wsp_message_manager.intf.mjs.map +8 -0
  380. package/output/if_apc_wsp_server_context.intf.mjs +8 -0
  381. package/output/if_apc_wsp_server_context.intf.mjs.map +8 -0
  382. package/output/if_aunit_constants.intf.mjs +27 -0
  383. package/output/if_aunit_constants.intf.mjs.map +8 -0
  384. package/output/if_document_bcs.intf.mjs +8 -0
  385. package/output/if_document_bcs.intf.mjs.map +8 -0
  386. package/output/if_http_client.intf.mjs +12 -0
  387. package/output/if_http_client.intf.mjs.map +8 -0
  388. package/output/if_http_entity.intf.mjs +14 -0
  389. package/output/if_http_entity.intf.mjs.map +8 -0
  390. package/output/if_http_extension.intf.mjs +12 -0
  391. package/output/if_http_extension.intf.mjs.map +8 -0
  392. package/output/if_http_request.intf.mjs +16 -0
  393. package/output/if_http_request.intf.mjs.map +8 -0
  394. package/output/if_http_response.intf.mjs +8 -0
  395. package/output/if_http_response.intf.mjs.map +8 -0
  396. package/output/if_http_server.intf.mjs +20 -0
  397. package/output/if_http_server.intf.mjs.map +8 -0
  398. package/output/if_http_utility.intf.mjs +8 -0
  399. package/output/if_http_utility.intf.mjs.map +8 -0
  400. package/output/if_ixml.intf.mjs +8 -0
  401. package/output/if_ixml.intf.mjs.map +8 -0
  402. package/output/if_ixml_attribute.intf.mjs +8 -0
  403. package/output/if_ixml_attribute.intf.mjs.map +8 -0
  404. package/output/if_ixml_document.intf.mjs +8 -0
  405. package/output/if_ixml_document.intf.mjs.map +8 -0
  406. package/output/if_ixml_element.intf.mjs +8 -0
  407. package/output/if_ixml_element.intf.mjs.map +8 -0
  408. package/output/if_ixml_encoding.intf.mjs +10 -0
  409. package/output/if_ixml_encoding.intf.mjs.map +8 -0
  410. package/output/if_ixml_istream.intf.mjs +8 -0
  411. package/output/if_ixml_istream.intf.mjs.map +8 -0
  412. package/output/if_ixml_named_node_map.intf.mjs +8 -0
  413. package/output/if_ixml_named_node_map.intf.mjs.map +8 -0
  414. package/output/if_ixml_node.intf.mjs +12 -0
  415. package/output/if_ixml_node.intf.mjs.map +8 -0
  416. package/output/if_ixml_node_iterator.intf.mjs +8 -0
  417. package/output/if_ixml_node_iterator.intf.mjs.map +8 -0
  418. package/output/if_ixml_node_list.intf.mjs +8 -0
  419. package/output/if_ixml_node_list.intf.mjs.map +8 -0
  420. package/output/if_ixml_ostream.intf.mjs +8 -0
  421. package/output/if_ixml_ostream.intf.mjs.map +8 -0
  422. package/output/if_ixml_parse_error.intf.mjs +8 -0
  423. package/output/if_ixml_parse_error.intf.mjs.map +8 -0
  424. package/output/if_ixml_parser.intf.mjs +10 -0
  425. package/output/if_ixml_parser.intf.mjs.map +8 -0
  426. package/output/if_ixml_renderer.intf.mjs +8 -0
  427. package/output/if_ixml_renderer.intf.mjs.map +8 -0
  428. package/output/if_ixml_stream_factory.intf.mjs +8 -0
  429. package/output/if_ixml_stream_factory.intf.mjs.map +8 -0
  430. package/output/if_ixml_unknown.intf.mjs +8 -0
  431. package/output/if_ixml_unknown.intf.mjs.map +8 -0
  432. package/output/if_message.intf.mjs +8 -0
  433. package/output/if_message.intf.mjs.map +8 -0
  434. package/output/if_oo_adt_classrun.intf.mjs +8 -0
  435. package/output/if_oo_adt_classrun.intf.mjs.map +8 -0
  436. package/output/if_oo_adt_classrun_out.intf.mjs +8 -0
  437. package/output/if_oo_adt_classrun_out.intf.mjs.map +8 -0
  438. package/output/if_oo_clif_source.intf.mjs +8 -0
  439. package/output/if_oo_clif_source.intf.mjs.map +8 -0
  440. package/output/if_recipient_bcs.intf.mjs +8 -0
  441. package/output/if_recipient_bcs.intf.mjs.map +8 -0
  442. package/output/if_salv_c_bool_sap.intf.mjs +12 -0
  443. package/output/if_salv_c_bool_sap.intf.mjs.map +8 -0
  444. package/output/if_salv_c_selection_mode.intf.mjs +18 -0
  445. package/output/if_salv_c_selection_mode.intf.mjs.map +8 -0
  446. package/output/if_sender_bcs.intf.mjs +8 -0
  447. package/output/if_sender_bcs.intf.mjs.map +8 -0
  448. package/output/if_serializable_object.intf.mjs +8 -0
  449. package/output/if_serializable_object.intf.mjs.map +8 -0
  450. package/output/if_shm_build_instance.intf.mjs +8 -0
  451. package/output/if_shm_build_instance.intf.mjs.map +8 -0
  452. package/output/if_shm_trace.intf.mjs +8 -0
  453. package/output/if_shm_trace.intf.mjs.map +8 -0
  454. package/output/if_sxml.intf.mjs +17 -0
  455. package/output/if_sxml.intf.mjs.map +8 -0
  456. package/output/if_sxml_attribute.intf.mjs +9 -0
  457. package/output/if_sxml_attribute.intf.mjs.map +8 -0
  458. package/output/if_sxml_close_element.intf.mjs +8 -0
  459. package/output/if_sxml_close_element.intf.mjs.map +8 -0
  460. package/output/if_sxml_node.intf.mjs +19 -0
  461. package/output/if_sxml_node.intf.mjs.map +8 -0
  462. package/output/if_sxml_open_element.intf.mjs +8 -0
  463. package/output/if_sxml_open_element.intf.mjs.map +8 -0
  464. package/output/if_sxml_reader.intf.mjs +8 -0
  465. package/output/if_sxml_reader.intf.mjs.map +8 -0
  466. package/output/if_sxml_value.intf.mjs +11 -0
  467. package/output/if_sxml_value.intf.mjs.map +8 -0
  468. package/output/if_sxml_value_node.intf.mjs +8 -0
  469. package/output/if_sxml_value_node.intf.mjs.map +8 -0
  470. package/output/if_sxml_writer.intf.mjs +26 -0
  471. package/output/if_sxml_writer.intf.mjs.map +8 -0
  472. package/output/if_sxmlp_factory.intf.mjs +8 -0
  473. package/output/if_sxmlp_factory.intf.mjs.map +8 -0
  474. package/output/if_sxmlp_list.intf.mjs +8 -0
  475. package/output/if_sxmlp_list.intf.mjs.map +8 -0
  476. package/output/if_sxmlp_part.intf.mjs +8 -0
  477. package/output/if_sxmlp_part.intf.mjs.map +8 -0
  478. package/output/if_sxmlp_simple.intf.mjs +8 -0
  479. package/output/if_sxmlp_simple.intf.mjs.map +8 -0
  480. package/output/if_system_uuid_rfc4122_static.intf.mjs +8 -0
  481. package/output/if_system_uuid_rfc4122_static.intf.mjs.map +8 -0
  482. package/output/if_system_uuid_static.intf.mjs +8 -0
  483. package/output/if_system_uuid_static.intf.mjs.map +8 -0
  484. package/output/if_t100_dyn_msg.intf.mjs +8 -0
  485. package/output/if_t100_dyn_msg.intf.mjs.map +8 -0
  486. package/output/if_t100_message.intf.mjs +15 -0
  487. package/output/if_t100_message.intf.mjs.map +8 -0
  488. package/output/ihttpnvp.tabl.mjs +5 -0
  489. package/output/index.mjs +35 -0
  490. package/output/init.mjs +8965 -0
  491. package/output/int1.dtel.mjs +6 -0
  492. package/output/int2.dtel.mjs +6 -0
  493. package/output/int4.dtel.mjs +6 -0
  494. package/output/kernel_authority_check.clas.mjs +20 -0
  495. package/output/kernel_authority_check.clas.mjs.map +10 -0
  496. package/output/kernel_call.clas.mjs +28 -0
  497. package/output/kernel_call.clas.mjs.map +10 -0
  498. package/output/kernel_call_transformation.clas.mjs +182 -0
  499. package/output/kernel_call_transformation.clas.mjs.map +10 -0
  500. package/output/kernel_create_data_handle.clas.mjs +121 -0
  501. package/output/kernel_create_data_handle.clas.mjs.map +10 -0
  502. package/output/kernel_cx_assert.clas.mjs +33 -0
  503. package/output/kernel_cx_assert.clas.mjs.map +10 -0
  504. package/output/kernel_fugr_test.clas.mjs +14 -0
  505. package/output/kernel_fugr_test.clas.mjs.map +10 -0
  506. package/output/kernel_ixml_json_to_data.clas.mjs +145 -0
  507. package/output/kernel_ixml_json_to_data.clas.mjs.map +10 -0
  508. package/output/kernel_ixml_xml_to_data.clas.mjs +96 -0
  509. package/output/kernel_ixml_xml_to_data.clas.mjs.map +10 -0
  510. package/output/kernel_json_to_ixml.clas.mjs +78 -0
  511. package/output/kernel_json_to_ixml.clas.mjs.map +10 -0
  512. package/output/kernel_lock.clas.mjs +31 -0
  513. package/output/kernel_lock.clas.mjs.map +10 -0
  514. package/output/kernel_numberrange.clas.mjs +38 -0
  515. package/output/kernel_numberrange.clas.mjs.map +10 -0
  516. package/output/kernel_push_channels.clas.mjs +20 -0
  517. package/output/kernel_push_channels.clas.mjs.map +10 -0
  518. package/output/kernel_scan_abap_source.clas.mjs +212 -0
  519. package/output/kernel_scan_abap_source.clas.mjs.map +10 -0
  520. package/output/kernel_unit_runner.clas.mjs +199 -0
  521. package/output/kernel_unit_runner.clas.mjs.map +10 -0
  522. package/output/laiso.dtel.mjs +6 -0
  523. package/output/land1.dtel.mjs +6 -0
  524. package/output/langu.dtel.mjs +6 -0
  525. package/output/lvc_nokeyc.dtel.mjs +6 -0
  526. package/output/mandt.dtel.mjs +6 -0
  527. package/output/match_result.tabl.mjs +5 -0
  528. package/output/match_result_tab.ttyp.mjs +4 -0
  529. package/output/msehi.dtel.mjs +6 -0
  530. package/output/number_get_next.fugr.number_get_next.mjs +23 -0
  531. package/output/number_get_next.fugr.number_get_next.mjs.map +8 -0
  532. package/output/number_get_next.fugr.saplnumber_get_next.mjs +5 -0
  533. package/output/number_get_next.fugr.saplnumber_get_next.mjs.map +8 -0
  534. package/output/numc4.dtel.mjs +6 -0
  535. package/output/openabap.fugr.conversion_exit_alpha_input.mjs +17 -0
  536. package/output/openabap.fugr.conversion_exit_alpha_input.mjs.map +8 -0
  537. package/output/openabap.fugr.conversion_exit_alpha_output.mjs +18 -0
  538. package/output/openabap.fugr.conversion_exit_alpha_output.mjs.map +8 -0
  539. package/output/openabap.fugr.conversion_exit_isola_input.mjs +20 -0
  540. package/output/openabap.fugr.conversion_exit_isola_input.mjs.map +8 -0
  541. package/output/openabap.fugr.conversion_exit_isola_output.mjs +17 -0
  542. package/output/openabap.fugr.conversion_exit_isola_output.mjs.map +8 -0
  543. package/output/openabap.fugr.convert_itf_to_stream_text.mjs +21 -0
  544. package/output/openabap.fugr.convert_itf_to_stream_text.mjs.map +8 -0
  545. package/output/openabap.fugr.docu_get.mjs +29 -0
  546. package/output/openabap.fugr.docu_get.mjs.map +8 -0
  547. package/output/openabap.fugr.generate_sec_random.mjs +19 -0
  548. package/output/openabap.fugr.generate_sec_random.mjs.map +8 -0
  549. package/output/openabap.fugr.get_system_timezone.mjs +12 -0
  550. package/output/openabap.fugr.get_system_timezone.mjs.map +8 -0
  551. package/output/openabap.fugr.saplzopenabap.mjs +5 -0
  552. package/output/openabap.fugr.saplzopenabap.mjs.map +8 -0
  553. package/output/openabap.fugr.system_callstack.mjs +16 -0
  554. package/output/openabap.fugr.system_callstack.mjs.map +8 -0
  555. package/output/openabap.fugr.system_installed_languages.mjs +13 -0
  556. package/output/openabap.fugr.system_installed_languages.mjs.map +8 -0
  557. package/output/openabap.fugr.text_split.mjs +33 -0
  558. package/output/openabap.fugr.text_split.mjs.map +8 -0
  559. package/output/reposrc.tabl.mjs +5 -0
  560. package/output/rfcdest.dtel.mjs +6 -0
  561. package/output/scrtext_l.dtel.mjs +6 -0
  562. package/output/scrtext_m.dtel.mjs +6 -0
  563. package/output/scrtext_s.dtel.mjs +6 -0
  564. package/output/scx_attrname.dtel.mjs +6 -0
  565. package/output/scx_t100key.tabl.mjs +5 -0
  566. package/output/seoclsname.dtel.mjs +6 -0
  567. package/output/shm_affect_server.dtel.mjs +6 -0
  568. package/output/shm_area_name.dtel.mjs +6 -0
  569. package/output/shm_attach_mode.dtel.mjs +6 -0
  570. package/output/shm_auto_build_class_name.dtel.mjs +6 -0
  571. package/output/shm_client.dtel.mjs +6 -0
  572. package/output/shm_constr_invocation_mode.dtel.mjs +6 -0
  573. package/output/shm_inst_infos.dtel.mjs +6 -0
  574. package/output/shm_inst_name.dtel.mjs +6 -0
  575. package/output/shm_life_context.dtel.mjs +6 -0
  576. package/output/shm_properties.tabl.mjs +5 -0
  577. package/output/shm_rc.dtel.mjs +6 -0
  578. package/output/shma_attributes.tabl.mjs +5 -0
  579. package/output/shma_client.dtel.mjs +6 -0
  580. package/output/shmm_trc_variant_name.dtel.mjs +6 -0
  581. package/output/so_raw255.dtel.mjs +6 -0
  582. package/output/so_text255.dtel.mjs +6 -0
  583. package/output/soli.tabl.mjs +5 -0
  584. package/output/soli_tab.ttyp.mjs +4 -0
  585. package/output/solix.tabl.mjs +5 -0
  586. package/output/solix_tab.ttyp.mjs +4 -0
  587. package/output/sotr_conc.dtel.mjs +6 -0
  588. package/output/spras.dtel.mjs +6 -0
  589. package/output/ssfapplssl.dtel.mjs +6 -0
  590. package/output/sstmnt.tabl.mjs +5 -0
  591. package/output/sstmnt_tab.ttyp.mjs +4 -0
  592. package/output/sstruc.tabl.mjs +5 -0
  593. package/output/sstruc_tab.ttyp.mjs +4 -0
  594. package/output/stokes.tabl.mjs +5 -0
  595. package/output/stokes_tab.ttyp.mjs +4 -0
  596. package/output/stokesx.tabl.mjs +5 -0
  597. package/output/string_table.ttyp.mjs +4 -0
  598. package/output/submatch_result.tabl.mjs +5 -0
  599. package/output/submatch_result_tab.ttyp.mjs +4 -0
  600. package/output/sydate.dtel.mjs +6 -0
  601. package/output/symsg.tabl.mjs +5 -0
  602. package/output/symsgid.dtel.mjs +6 -0
  603. package/output/symsgno.dtel.mjs +6 -0
  604. package/output/symsgty.dtel.mjs +6 -0
  605. package/output/symsgv.dtel.mjs +6 -0
  606. package/output/syst_host.dtel.mjs +6 -0
  607. package/output/sysubrc.dtel.mjs +6 -0
  608. package/output/sysuuid_c36.dtel.mjs +6 -0
  609. package/output/sysuuid_x16.dtel.mjs +6 -0
  610. package/output/syuname.dtel.mjs +6 -0
  611. package/output/t000.tabl.mjs +5 -0
  612. package/output/t100.tabl.mjs +5 -0
  613. package/output/tabfdpos.dtel.mjs +6 -0
  614. package/output/tabname.dtel.mjs +6 -0
  615. package/output/tadir.tabl.mjs +5 -0
  616. package/output/tdevc.tabl.mjs +5 -0
  617. package/output/tdline.dtel.mjs +6 -0
  618. package/output/text20.dtel.mjs +6 -0
  619. package/output/text200.dtel.mjs +6 -0
  620. package/output/text255.dtel.mjs +6 -0
  621. package/output/text30.dtel.mjs +6 -0
  622. package/output/text80.dtel.mjs +6 -0
  623. package/output/textpool.tabl.mjs +5 -0
  624. package/output/tfdir.tabl.mjs +5 -0
  625. package/output/tihttpnvp.ttyp.mjs +4 -0
  626. package/output/timestamp.dtel.mjs +6 -0
  627. package/output/timestampl.dtel.mjs +6 -0
  628. package/output/timezone.dtel.mjs +6 -0
  629. package/output/tline.tabl.mjs +5 -0
  630. package/output/tline_tab.ttyp.mjs +4 -0
  631. package/output/trfunction.dtel.mjs +6 -0
  632. package/output/trkorr.dtel.mjs +6 -0
  633. package/output/tzntstmpl.dtel.mjs +6 -0
  634. package/output/uname.dtel.mjs +6 -0
  635. package/output/w3mime.tabl.mjs +5 -0
  636. package/output/wwwdatatab.tabl.mjs +5 -0
  637. package/output/wwwparams.tabl.mjs +5 -0
  638. package/output/xfeld.dtel.mjs +6 -0
  639. package/output/xsdboolean.dtel.mjs +6 -0
  640. package/output/xsdtime_t.dtel.mjs +6 -0
  641. package/output/zw3mi.fugr.saplzw3mi.mjs +5 -0
  642. package/output/zw3mi.fugr.saplzw3mi.mjs.map +8 -0
  643. package/output/zw3mi.fugr.wwwdata_export.mjs +14 -0
  644. package/output/zw3mi.fugr.wwwdata_export.mjs.map +8 -0
  645. package/output/zw3mi.fugr.wwwdata_import.mjs +14 -0
  646. package/output/zw3mi.fugr.wwwdata_import.mjs.map +8 -0
  647. package/output/zw3mi.fugr.wwwparams_insert.mjs +12 -0
  648. package/output/zw3mi.fugr.wwwparams_insert.mjs.map +8 -0
  649. package/output/zw3mi.fugr.wwwparams_read.mjs +27 -0
  650. package/output/zw3mi.fugr.wwwparams_read.mjs.map +8 -0
  651. package/package.json +3 -3
@@ -0,0 +1,273 @@
1
+ const {cx_root} = await import("./cx_root.clas.mjs");
2
+ // cl_gui_frontend_services.clas.abap
3
+ class cl_gui_frontend_services {
4
+ static INTERNAL_TYPE = 'CLAS';
5
+ static IMPLEMENTED_INTERFACES = [];
6
+ async constructor_(INPUT) {
7
+ this.me = new abap.types.ABAPObject();
8
+ this.me.set(this);
9
+ this.filetype_all = cl_gui_frontend_services.filetype_all;
10
+ this.action_cancel = cl_gui_frontend_services.action_cancel;
11
+ this.action_ok = cl_gui_frontend_services.action_ok;
12
+ this.platform_nt351 = cl_gui_frontend_services.platform_nt351;
13
+ this.platform_nt40 = cl_gui_frontend_services.platform_nt40;
14
+ this.platform_nt50 = cl_gui_frontend_services.platform_nt50;
15
+ this.platform_windows95 = cl_gui_frontend_services.platform_windows95;
16
+ this.platform_windows98 = cl_gui_frontend_services.platform_windows98;
17
+ this.platform_windowsxp = cl_gui_frontend_services.platform_windowsxp;
18
+ return this;
19
+ }
20
+ async directory_exist(INPUT) {
21
+ return cl_gui_frontend_services.directory_exist(INPUT);
22
+ }
23
+ static async directory_exist(INPUT) {
24
+ let result = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
25
+ let directory = new abap.types.String({qualifiedName: "STRING"});
26
+ if (INPUT && INPUT.directory) {directory.set(INPUT.directory);}
27
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(29).set('directory_exist not supported')));
28
+ return result;
29
+ }
30
+ async get_sapgui_workdir(INPUT) {
31
+ return cl_gui_frontend_services.get_sapgui_workdir(INPUT);
32
+ }
33
+ static async get_sapgui_workdir(INPUT) {
34
+ let sapworkdir = new abap.types.String({qualifiedName: "STRING"});
35
+ if (INPUT && INPUT.sapworkdir) {sapworkdir = INPUT.sapworkdir;}
36
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(32).set('get_sapgui_workdir not supported')));
37
+ }
38
+ async file_exist(INPUT) {
39
+ return cl_gui_frontend_services.file_exist(INPUT);
40
+ }
41
+ static async file_exist(INPUT) {
42
+ let result = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
43
+ let file = new abap.types.String({qualifiedName: "STRING"});
44
+ if (INPUT && INPUT.file) {file.set(INPUT.file);}
45
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(24).set('file_exist not supported')));
46
+ return result;
47
+ }
48
+ async file_delete(INPUT) {
49
+ return cl_gui_frontend_services.file_delete(INPUT);
50
+ }
51
+ static async file_delete(INPUT) {
52
+ let filename = new abap.types.String({qualifiedName: "STRING"});
53
+ if (INPUT && INPUT.filename) {filename.set(INPUT.filename);}
54
+ let rc = new abap.types.Integer({qualifiedName: "I"});
55
+ if (INPUT && INPUT.rc) {rc = INPUT.rc;}
56
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(25).set('file_delete not supported')));
57
+ }
58
+ async clipboard_import(INPUT) {
59
+ return cl_gui_frontend_services.clipboard_import(INPUT);
60
+ }
61
+ static async clipboard_import(INPUT) {
62
+ let data = new abap.types.Table(new abap.types.Character(4), {"withHeader":false});
63
+ if (INPUT && INPUT.data) {data = INPUT.data;}
64
+ let length = new abap.types.Integer({qualifiedName: "I"});
65
+ if (INPUT && INPUT.length) {length = INPUT.length;}
66
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(30).set('clipboard_import not supported')));
67
+ }
68
+ async directory_list_files(INPUT) {
69
+ return cl_gui_frontend_services.directory_list_files(INPUT);
70
+ }
71
+ static async directory_list_files(INPUT) {
72
+ let directory = new abap.types.String({qualifiedName: "STRING"});
73
+ if (INPUT && INPUT.directory) {directory.set(INPUT.directory);}
74
+ let file_table = new abap.types.Character(4);
75
+ if (INPUT && INPUT.file_table) {file_table = INPUT.file_table;}
76
+ let count = new abap.types.Integer({qualifiedName: "I"});
77
+ if (INPUT && INPUT.count) {count = INPUT.count;}
78
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(34).set('directory_list_files not supported')));
79
+ }
80
+ async directory_create(INPUT) {
81
+ return cl_gui_frontend_services.directory_create(INPUT);
82
+ }
83
+ static async directory_create(INPUT) {
84
+ let directory = new abap.types.String({qualifiedName: "STRING"});
85
+ if (INPUT && INPUT.directory) {directory.set(INPUT.directory);}
86
+ let rc = new abap.types.Integer({qualifiedName: "I"});
87
+ if (INPUT && INPUT.rc) {rc = INPUT.rc;}
88
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(30).set('directory_create not supported')));
89
+ }
90
+ async gui_download(INPUT) {
91
+ return cl_gui_frontend_services.gui_download(INPUT);
92
+ }
93
+ static async gui_download(INPUT) {
94
+ let bin_filesize = new abap.types.Integer({qualifiedName: "I"});
95
+ if (INPUT && INPUT.bin_filesize) {bin_filesize.set(INPUT.bin_filesize);}
96
+ let filename = new abap.types.String({qualifiedName: "STRING"});
97
+ if (INPUT && INPUT.filename) {filename.set(INPUT.filename);}
98
+ let filetype = new abap.types.String({qualifiedName: "STRING"});
99
+ if (INPUT && INPUT.filetype) {filetype.set(INPUT.filetype);}
100
+ let write_lf = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
101
+ if (INPUT && INPUT.write_lf) {write_lf = INPUT.write_lf;}
102
+ let write_field_separator = new abap.types.Character(1, {"qualifiedName":"CHAR1"});
103
+ if (INPUT && INPUT.write_field_separator) {write_field_separator = INPUT.write_field_separator;}
104
+ let data_tab = new abap.types.Character(4);
105
+ if (INPUT && INPUT.data_tab) {data_tab = INPUT.data_tab;}
106
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(26).set('gui_download not supported')));
107
+ }
108
+ async get_file_separator(INPUT) {
109
+ return cl_gui_frontend_services.get_file_separator(INPUT);
110
+ }
111
+ static async get_file_separator(INPUT) {
112
+ let file_separator = new abap.types.String({qualifiedName: "STRING"});
113
+ if (INPUT && INPUT.file_separator) {file_separator = INPUT.file_separator;}
114
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(32).set('get_file_separator not supported')));
115
+ }
116
+ async execute(INPUT) {
117
+ return cl_gui_frontend_services.execute(INPUT);
118
+ }
119
+ static async execute(INPUT) {
120
+ let document = new abap.types.String({qualifiedName: "STRING"});
121
+ if (INPUT && INPUT.document) {document.set(INPUT.document);}
122
+ let application = new abap.types.String({qualifiedName: "STRING"});
123
+ if (INPUT && INPUT.application) {application.set(INPUT.application);}
124
+ let parameter = new abap.types.String({qualifiedName: "STRING"});
125
+ if (INPUT && INPUT.parameter) {parameter.set(INPUT.parameter);}
126
+ let default_directory = new abap.types.String({qualifiedName: "STRING"});
127
+ if (INPUT && INPUT.default_directory) {default_directory.set(INPUT.default_directory);}
128
+ let maximized = new abap.types.String({qualifiedName: "STRING"});
129
+ if (INPUT && INPUT.maximized) {maximized.set(INPUT.maximized);}
130
+ let minimized = new abap.types.String({qualifiedName: "STRING"});
131
+ if (INPUT && INPUT.minimized) {minimized.set(INPUT.minimized);}
132
+ let synchronous = new abap.types.String({qualifiedName: "STRING"});
133
+ if (INPUT && INPUT.synchronous) {synchronous.set(INPUT.synchronous);}
134
+ let operation = new abap.types.String({qualifiedName: "STRING"});
135
+ if (INPUT && INPUT.operation) {operation.set(INPUT.operation);}
136
+ if (INPUT === undefined || INPUT.operation === undefined) {operation = new abap.types.Character(4).set('OPEN');}
137
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(21).set('execute not supported')));
138
+ }
139
+ async directory_browse(INPUT) {
140
+ return cl_gui_frontend_services.directory_browse(INPUT);
141
+ }
142
+ static async directory_browse(INPUT) {
143
+ let window_title = new abap.types.String({qualifiedName: "STRING"});
144
+ if (INPUT && INPUT.window_title) {window_title.set(INPUT.window_title);}
145
+ let initial_folder = new abap.types.String({qualifiedName: "STRING"});
146
+ if (INPUT && INPUT.initial_folder) {initial_folder.set(INPUT.initial_folder);}
147
+ let selected_folder = new abap.types.String({qualifiedName: "STRING"});
148
+ if (INPUT && INPUT.selected_folder) {selected_folder = INPUT.selected_folder;}
149
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(30).set('directory_browse not supported')));
150
+ }
151
+ async gui_upload(INPUT) {
152
+ return cl_gui_frontend_services.gui_upload(INPUT);
153
+ }
154
+ static async gui_upload(INPUT) {
155
+ let filename = new abap.types.String({qualifiedName: "STRING"});
156
+ if (INPUT && INPUT.filename) {filename.set(INPUT.filename);}
157
+ let filetype = new abap.types.String({qualifiedName: "STRING"});
158
+ if (INPUT && INPUT.filetype) {filetype.set(INPUT.filetype);}
159
+ let codepage = new abap.types.Character(20, {"qualifiedName":"abap_encoding"});
160
+ if (INPUT && INPUT.codepage) {codepage.set(INPUT.codepage);}
161
+ if (INPUT === undefined || INPUT.codepage === undefined) {codepage = abap.builtin.space;}
162
+ let filelength = new abap.types.Integer({qualifiedName: "I"});
163
+ if (INPUT && INPUT.filelength) {filelength = INPUT.filelength;}
164
+ let data_tab = new abap.types.Character(4);
165
+ if (INPUT && INPUT.data_tab) {data_tab = INPUT.data_tab;}
166
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(24).set('gui_upload not supported')));
167
+ }
168
+ async file_open_dialog(INPUT) {
169
+ return cl_gui_frontend_services.file_open_dialog(INPUT);
170
+ }
171
+ static async file_open_dialog(INPUT) {
172
+ let window_title = new abap.types.String({qualifiedName: "STRING"});
173
+ if (INPUT && INPUT.window_title) {window_title.set(INPUT.window_title);}
174
+ let default_filename = new abap.types.String({qualifiedName: "STRING"});
175
+ if (INPUT && INPUT.default_filename) {default_filename.set(INPUT.default_filename);}
176
+ let default_extension = new abap.types.String({qualifiedName: "STRING"});
177
+ if (INPUT && INPUT.default_extension) {default_extension.set(INPUT.default_extension);}
178
+ let multiselection = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
179
+ if (INPUT && INPUT.multiselection) {multiselection = INPUT.multiselection;}
180
+ let file_filter = new abap.types.String({qualifiedName: "STRING"});
181
+ if (INPUT && INPUT.file_filter) {file_filter.set(INPUT.file_filter);}
182
+ let initial_directory = new abap.types.String({qualifiedName: "STRING"});
183
+ if (INPUT && INPUT.initial_directory) {initial_directory.set(INPUT.initial_directory);}
184
+ let file_table = new abap.types.Table(new abap.types.Structure({"filename": new abap.types.Character(1024, {})}, "FILE_TABLE"), {"withHeader":false}, "FILETABLE");
185
+ if (INPUT && INPUT.file_table) {file_table = INPUT.file_table;}
186
+ let rc = new abap.types.Integer({qualifiedName: "I"});
187
+ if (INPUT && INPUT.rc) {rc = INPUT.rc;}
188
+ let user_action = new abap.types.Integer({qualifiedName: "I"});
189
+ if (INPUT && INPUT.user_action) {user_action = INPUT.user_action;}
190
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(30).set('file_open_dialog not supported')));
191
+ }
192
+ async file_save_dialog(INPUT) {
193
+ return cl_gui_frontend_services.file_save_dialog(INPUT);
194
+ }
195
+ static async file_save_dialog(INPUT) {
196
+ let window_title = new abap.types.String({qualifiedName: "STRING"});
197
+ if (INPUT && INPUT.window_title) {window_title.set(INPUT.window_title);}
198
+ let default_extension = new abap.types.String({qualifiedName: "STRING"});
199
+ if (INPUT && INPUT.default_extension) {default_extension.set(INPUT.default_extension);}
200
+ let default_file_name = new abap.types.String({qualifiedName: "STRING"});
201
+ if (INPUT && INPUT.default_file_name) {default_file_name.set(INPUT.default_file_name);}
202
+ let file_filter = new abap.types.String({qualifiedName: "STRING"});
203
+ if (INPUT && INPUT.file_filter) {file_filter.set(INPUT.file_filter);}
204
+ let filename = new abap.types.String({qualifiedName: "STRING"});
205
+ if (INPUT && INPUT.filename) {filename = INPUT.filename;}
206
+ let path = new abap.types.String({qualifiedName: "STRING"});
207
+ if (INPUT && INPUT.path) {path = INPUT.path;}
208
+ let fullpath = new abap.types.String({qualifiedName: "STRING"});
209
+ if (INPUT && INPUT.fullpath) {fullpath = INPUT.fullpath;}
210
+ let user_action = new abap.types.Integer({qualifiedName: "I"});
211
+ if (INPUT && INPUT.user_action) {user_action = INPUT.user_action;}
212
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(30).set('file_save_dialog not supported')));
213
+ }
214
+ async get_platform() {
215
+ return cl_gui_frontend_services.get_platform();
216
+ }
217
+ static async get_platform() {
218
+ let platform = new abap.types.Integer({qualifiedName: "I"});
219
+ platform.set(cl_gui_frontend_services.platform_windowsxp);
220
+ return platform;
221
+ }
222
+ async clipboard_export(INPUT) {
223
+ return cl_gui_frontend_services.clipboard_export(INPUT);
224
+ }
225
+ static async clipboard_export(INPUT) {
226
+ let no_auth_check = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
227
+ if (INPUT && INPUT.no_auth_check) {no_auth_check = INPUT.no_auth_check;}
228
+ let data = new abap.types.Character(4);
229
+ if (INPUT && INPUT.data) {data = INPUT.data;}
230
+ let rc = new abap.types.Integer({qualifiedName: "I"});
231
+ if (INPUT && INPUT.rc) {rc = INPUT.rc;}
232
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(30).set('clipboard_export not supported')));
233
+ }
234
+ async get_system_directory(INPUT) {
235
+ return cl_gui_frontend_services.get_system_directory(INPUT);
236
+ }
237
+ static async get_system_directory(INPUT) {
238
+ let system_directory = new abap.types.String({qualifiedName: "STRING"});
239
+ if (INPUT && INPUT.system_directory) {system_directory = INPUT.system_directory;}
240
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(34).set('get_system_directory not supported')));
241
+ }
242
+ async get_gui_version(INPUT) {
243
+ return cl_gui_frontend_services.get_gui_version(INPUT);
244
+ }
245
+ static async get_gui_version(INPUT) {
246
+ let version_table = new abap.types.Table(new abap.types.Structure({"filename": new abap.types.Character(1024, {})}, "FILE_TABLE"), {"withHeader":false}, "FILETABLE");
247
+ if (INPUT && INPUT.version_table) {version_table = INPUT.version_table;}
248
+ let rc = new abap.types.Integer({qualifiedName: "I"});
249
+ if (INPUT && INPUT.rc) {rc = INPUT.rc;}
250
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(29).set('get_gui_verison not supported')));
251
+ }
252
+ }
253
+ abap.Classes['CL_GUI_FRONTEND_SERVICES'] = cl_gui_frontend_services;
254
+ cl_gui_frontend_services.filetype_all = new abap.types.String({qualifiedName: "STRING"});
255
+ cl_gui_frontend_services.filetype_all.set('abc');
256
+ cl_gui_frontend_services.action_cancel = new abap.types.Integer({qualifiedName: "I"});
257
+ cl_gui_frontend_services.action_cancel.set(1);
258
+ cl_gui_frontend_services.action_ok = new abap.types.Integer({qualifiedName: "I"});
259
+ cl_gui_frontend_services.action_ok.set(1);
260
+ cl_gui_frontend_services.platform_nt351 = new abap.types.Integer({qualifiedName: "I"});
261
+ cl_gui_frontend_services.platform_nt351.set(1);
262
+ cl_gui_frontend_services.platform_nt40 = new abap.types.Integer({qualifiedName: "I"});
263
+ cl_gui_frontend_services.platform_nt40.set(2);
264
+ cl_gui_frontend_services.platform_nt50 = new abap.types.Integer({qualifiedName: "I"});
265
+ cl_gui_frontend_services.platform_nt50.set(3);
266
+ cl_gui_frontend_services.platform_windows95 = new abap.types.Integer({qualifiedName: "I"});
267
+ cl_gui_frontend_services.platform_windows95.set(4);
268
+ cl_gui_frontend_services.platform_windows98 = new abap.types.Integer({qualifiedName: "I"});
269
+ cl_gui_frontend_services.platform_windows98.set(5);
270
+ cl_gui_frontend_services.platform_windowsxp = new abap.types.Integer({qualifiedName: "I"});
271
+ cl_gui_frontend_services.platform_windowsxp.set(6);
272
+ export {cl_gui_frontend_services};
273
+ //# sourceMappingURL=cl_gui_frontend_services.clas.mjs.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [
4
+ "cl_gui_frontend_services.clas.abap"
5
+ ],
6
+ "names": [],
7
+ "mappings": ";;AA6JA;;;;;;;;;;;;;;;;;EACE;;;;;;;IACE,oCAAS,GAAF,iCAAI,kEAA+B;IAC5C;;EAEA;;;;;;IACE,oCAAS,GAAF,iCAAI,qEAAkC;EAC/C;EAEA;;;;;;;IACE,oCAAS,GAAF,iCAAI,6DAA0B;IACvC;;EAEA;;;;;;;;IACE,oCAAS,GAAF,iCAAI,8DAA2B;EACxC;EAEA;;;;;;;;IACE,oCAAS,GAAF,iCAAI,mEAAgC;EAC7C;EAEA;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,uEAAoC;EACjD;EAEA;;;;;;;;IACE,oCAAS,GAAF,iCAAI,mEAAgC;EAC7C;EAEA;;;;;;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,+DAA4B;EACzC;EAEA;;;;;;IACE,oCAAS,GAAF,iCAAI,qEAAkC;EAC/C;EAEA;;;;;;;;;;;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,0DAAuB;EACpC;EAEA;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,mEAAgC;EAC7C;EAEA;;;;;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,6DAA0B;EACvC;EAEA;;;;;;;;;;;;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,mEAAgC;EAC7C;EAEA;;;;;;;;;;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,mEAAgC;EAC7C;EAEA;;;;;IACE,aAAW,2CAAkB;IAC/B;;EAEA;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,mEAAgC;EAC7C;EAEA;;;;;;IACE,oCAAS,GAAF,iCAAI,uEAAoC;EACjD;EAEA;;;;;;;;IACE,oCAAS,GAAF,iCAAI,kEAA+B;EAC5C;AACF",
8
+ "file": "cl_gui_frontend_services.clas.mjs",
9
+ "sourceRoot": ""
10
+ }
@@ -0,0 +1,164 @@
1
+ const {cx_root} = await import("./cx_root.clas.mjs");
2
+ // cl_http_client.clas.abap
3
+ class cl_http_client {
4
+ static INTERNAL_TYPE = 'CLAS';
5
+ static IMPLEMENTED_INTERFACES = ["IF_HTTP_CLIENT"];
6
+ async constructor_(INPUT) {
7
+ this.me = new abap.types.ABAPObject();
8
+ this.me.set(this);
9
+ this.mv_host = new abap.types.String({qualifiedName: "STRING"});
10
+ this.if_http_client$request = new abap.types.ABAPObject({qualifiedName: "IF_HTTP_REQUEST"});
11
+ this.if_http_client$response = new abap.types.ABAPObject({qualifiedName: "IF_HTTP_RESPONSE"});
12
+ this.if_http_client$propertytype_logon_popup = new abap.types.Integer({qualifiedName: "I"});
13
+ this.if_http_client$propertytype_accept_cookie = new abap.types.Integer({qualifiedName: "I"});
14
+ let url = new abap.types.String({qualifiedName: "STRING"});
15
+ if (INPUT && INPUT.url) {url.set(INPUT.url);}
16
+ let lv_uri = new abap.types.String({qualifiedName: "STRING"});
17
+ let lv_query = new abap.types.String({qualifiedName: "STRING"});
18
+ this.if_http_client$response.set(await (new abap.Classes['CL_HTTP_ENTITY']()).constructor_());
19
+ abap.statements.find(url, {regex: new abap.types.Character(19).set('\\w(\\/[\\w\\d\\.\\-\\/]+)'), submatches: [lv_uri]});
20
+ this.mv_host.set(url);
21
+ abap.statements.replace({target: this.mv_host, all: false, with: new abap.types.Character(0).set(''), of: lv_uri});
22
+ this.if_http_client$request.set(await (new abap.Classes['CL_HTTP_ENTITY']()).constructor_());
23
+ await this.if_http_client$request.get().if_http_entity$set_header_field({name: new abap.types.Character(12).set('~request_uri'), value: lv_uri});
24
+ abap.statements.find(url, {regex: new abap.types.Character(6).set('\\?(.*)'), submatches: [lv_query]});
25
+ if (abap.compare.eq(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0))) {
26
+ await abap.Classes['CL_HTTP_UTILITY'].set_query({request: this.if_http_client$request, query: lv_query});
27
+ }
28
+ return this;
29
+ }
30
+ async create_by_url(INPUT) {
31
+ return cl_http_client.create_by_url(INPUT);
32
+ }
33
+ static async create_by_url(INPUT) {
34
+ let url = new abap.types.String({qualifiedName: "STRING"});
35
+ if (INPUT && INPUT.url) {url.set(INPUT.url);}
36
+ let ssl_id = new abap.types.Character(6, {"qualifiedName":"SSFAPPLSSL"});
37
+ if (INPUT && INPUT.ssl_id) {ssl_id.set(INPUT.ssl_id);}
38
+ let proxy_host = new abap.types.String({qualifiedName: "STRING"});
39
+ if (INPUT && INPUT.proxy_host) {proxy_host.set(INPUT.proxy_host);}
40
+ let proxy_service = new abap.types.String({qualifiedName: "STRING"});
41
+ if (INPUT && INPUT.proxy_service) {proxy_service.set(INPUT.proxy_service);}
42
+ let client = new abap.types.ABAPObject({qualifiedName: "IF_HTTP_CLIENT"});
43
+ if (INPUT && INPUT.client) {client = INPUT.client;}
44
+ client.set(await (new abap.Classes['CL_HTTP_CLIENT']()).constructor_({url: url}));
45
+ abap.builtin.sy.get().subrc.set(new abap.types.Integer().set(0));
46
+ }
47
+ async if_http_client$authenticate(INPUT) {
48
+ let proxy_authentication = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
49
+ if (INPUT && INPUT.proxy_authentication) {proxy_authentication = INPUT.proxy_authentication;}
50
+ let username = new abap.types.String({qualifiedName: "STRING"});
51
+ if (INPUT && INPUT.username) {username.set(INPUT.username);}
52
+ let password = new abap.types.String({qualifiedName: "STRING"});
53
+ if (INPUT && INPUT.password) {password.set(INPUT.password);}
54
+ let lv_base64 = new abap.types.String({qualifiedName: "STRING"});
55
+ lv_base64.set((await abap.Classes['CL_HTTP_UTILITY'].if_http_utility$encode_base64({unencoded: new abap.types.String().set(`${abap.templateFormatting(username)}:${abap.templateFormatting(password)}`)})));
56
+ await this.if_http_client$request.get().if_http_entity$set_header_field({name: new abap.types.Character(13).set('authorization'), value: new abap.types.String().set(`Basic ${abap.templateFormatting(lv_base64)}`)});
57
+ }
58
+ async if_http_client$close() {
59
+ return;
60
+ }
61
+ async create_by_destination(INPUT) {
62
+ return cl_http_client.create_by_destination(INPUT);
63
+ }
64
+ static async create_by_destination(INPUT) {
65
+ let destination = new abap.types.String({qualifiedName: "STRING"});
66
+ if (INPUT && INPUT.destination) {destination.set(INPUT.destination);}
67
+ let client = new abap.types.ABAPObject({qualifiedName: "IF_HTTP_CLIENT"});
68
+ if (INPUT && INPUT.client) {client = INPUT.client;}
69
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
70
+ }
71
+ async if_http_client$send() {
72
+ let lv_method = new abap.types.String({qualifiedName: "STRING"});
73
+ let lv_url = new abap.types.String({qualifiedName: "STRING"});
74
+ let lv_body = new abap.types.String({qualifiedName: "STRING"});
75
+ let lv_name = new abap.types.String({qualifiedName: "STRING"});
76
+ let lv_value = new abap.types.String({qualifiedName: "STRING"});
77
+ let lv_content_type = new abap.types.String({qualifiedName: "STRING"});
78
+ let lt_form_fields = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String(), "value": new abap.types.String()}, "IHTTPNVP"), {"withHeader":false}, "TIHTTPNVP");
79
+ let lt_header_fields = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String(), "value": new abap.types.String()}, "IHTTPNVP"), {"withHeader":false}, "TIHTTPNVP");
80
+ let ls_field = new abap.types.Structure({"name": new abap.types.String(), "value": new abap.types.String()}, "IHTTPNVP");
81
+ lv_method.set((await this.if_http_client$request.get().if_http_request$get_method()));
82
+ if (abap.compare.initial(lv_method)) {
83
+ lv_method.set(new abap.types.Character(3).set('GET'));
84
+ }
85
+ if (abap.compare.initial((await this.if_http_client$request.get().if_http_entity$get_header_field({name: new abap.types.Character(10).set('user-agent')})))) {
86
+ await this.if_http_client$request.get().if_http_entity$set_header_field({name: new abap.types.Character(10).set('user-agent'), value: new abap.types.Character(14).set('open-abap-http')});
87
+ }
88
+ lv_url.set((await this.if_http_client$request.get().if_http_entity$get_header_field({name: new abap.types.Character(12).set('~request_uri')})));
89
+ abap.statements.replace({target: lv_url, all: false, with: new abap.types.Character(0).set(''), of: this.mv_host});
90
+ lv_url.set(abap.operators.concat(this.mv_host,lv_url));
91
+ await this.if_http_client$request.get().if_http_entity$get_form_fields({fields: lt_form_fields});
92
+ if (abap.compare.gt(abap.builtin.lines({val: lt_form_fields}), new abap.types.Integer().set(0))) {
93
+ let unique18 = lv_method;
94
+ if (abap.compare.eq(unique18, new abap.types.Character(3).set('GET'))) {
95
+ lv_url.set(abap.operators.concat(lv_url,abap.operators.concat(new abap.types.Character(1).set('?'),(await abap.Classes['CL_HTTP_UTILITY'].if_http_utility$fields_to_string({fields: lt_form_fields})))));
96
+ } else if (abap.compare.eq(unique18, new abap.types.Character(4).set('POST'))) {
97
+ await this.if_http_client$request.get().if_http_entity$set_cdata({data: (await abap.Classes['CL_HTTP_UTILITY'].if_http_utility$fields_to_string({fields: lt_form_fields}))});
98
+ }
99
+ }
100
+ await this.if_http_client$request.get().if_http_entity$get_header_fields({fields: lt_header_fields});
101
+ let headers = {};
102
+ for await (const unique19 of abap.statements.loop(lt_header_fields,{where: async (I) => {return abap.compare.ne(I.name, new abap.types.Character(12).set('~request_uri'));}})) {
103
+ ls_field.set(unique19);
104
+ headers[ls_field.get().name.get()] = ls_field.get().value.get();
105
+ }
106
+ lv_content_type.set((await this.if_http_client$request.get().if_http_entity$get_content_type()));
107
+ if (abap.compare.initial(lv_content_type) === false) {
108
+ headers["content-type"] = lv_content_type.get();
109
+ }
110
+ lv_body.set((await this.if_http_client$request.get().if_http_entity$get_cdata()));
111
+ if (abap.compare.gt(abap.builtin.strlen({val: lv_body}), new abap.types.Integer().set(0))) {
112
+ headers["content-length"] = lv_body.get().length;
113
+ }
114
+ const https = await import("https");
115
+ const http = await import("http");
116
+ function postData(url, options, requestBody) {
117
+ return new Promise((resolve, reject) => {
118
+ const prot = url.startsWith("http://") ? http : https;
119
+ const req = prot.request(url, options,
120
+ (res) => {
121
+ let chunks = [];
122
+ res.on("data", (chunk) => {chunks.push(chunk);});
123
+ res.on("error", reject);
124
+ res.on("end", () => {
125
+ resolve({statusCode: res.statusCode, headers: res.headers, body: Buffer.concat(chunks)});
126
+ });
127
+ });
128
+ req.on("error", reject);
129
+ req.write(requestBody, "binary");
130
+ req.end();
131
+ });
132
+ }
133
+ const prot = lv_url.get().startsWith("http://") ? http : https;
134
+ if (this.agent === undefined) {this.agent = new prot.Agent({keepAlive: true, maxSockets: 1});}
135
+ let response = await postData(lv_url.get(), {method: lv_method.get(), headers: headers, agent: this.agent}, lv_body.get());
136
+ for (const h in response.headers) {
137
+ lv_name.set(h);
138
+ if (Array.isArray(response.headers[h])) continue;
139
+ lv_value.set(response.headers[h]);
140
+ await this.if_http_client$response.get().if_http_entity$set_header_field({name: lv_name, value: lv_value});
141
+ }
142
+ this.if_http_client$response.get().mv_content_type.set(response.headers["content-type"] || "");
143
+ this.if_http_client$response.get().mv_status.set(response.statusCode);
144
+ this.if_http_client$response.get().mv_data.set(response.body.toString("hex").toUpperCase());
145
+ abap.builtin.sy.get().subrc.set(new abap.types.Integer().set(0));
146
+ }
147
+ async if_http_client$receive() {
148
+ abap.builtin.sy.get().subrc.set(new abap.types.Integer().set(0));
149
+ }
150
+ async if_http_client$get_last_error(INPUT) {
151
+ let code = new abap.types.Integer({qualifiedName: "I"});
152
+ if (INPUT && INPUT.code) {code = INPUT.code;}
153
+ let message = new abap.types.String({qualifiedName: "STRING"});
154
+ if (INPUT && INPUT.message) {message = INPUT.message;}
155
+ await this.if_http_client$response.get().if_http_response$get_status({code: code});
156
+ message.set(new abap.types.Character(14).set('todo_open_abap'));
157
+ }
158
+ async if_http_client$send_sap_logon_ticket() {
159
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(2), new abap.types.Character(13).set('not supported')));
160
+ }
161
+ }
162
+ abap.Classes['CL_HTTP_CLIENT'] = cl_http_client;
163
+ export {cl_http_client};
164
+ //# sourceMappingURL=cl_http_client.clas.mjs.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [
4
+ "cl_http_client.clas.abap"
5
+ ],
6
+ "names": [],
7
+ "mappings": ";;AA8BA;;;EAEE;;;;;;;;;;QAGO,yDAAkB;QAClB,2DAAoB;;;IAKzB,iBAAU,GAAG;IAGb,gHAAqD;;oJAKnC;;IAGlB,iBAAY,GAAT,eAAE,MAAC,QAAQ,gCAAC;8GAGS;IACxB;IAEF;;EAEA;;;;;;;;;;;;;;;IAIE,eAAE,MAAC,WAAQ,+BAAC;EACd;EAEA;;;;;;;QACO,4DAAqB;IAC1B,eAAY,2LAA6D;yNAGxC;EACnC;EAEA;IAEE;EACF;EAEA;;;;;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;EACnB;EAEA;QACO,4DAA4B;QAC5B,yDAA4B;QAC5B,0DAA4B;QAC5B,0DAA4B;QAC5B,2DAA4B;QAC5B,kEAA4B;QAC5B,mLAA+B;QAC/B,qLAA+B;QAC/B,oHAA8C;IAEnD,eAAY,qEAAqC;IACjD,yBAAG,UAAoB;MACrB,cAAY,sCAAK;IACnB;IAGA,0BAAG,iIAAmE;gMAGxC;IAC9B;IAGA,YAAS,kIAA0D;IACnE,gHAAqD;IACrD,iCAAS,aAAW,OAAM;oGACiD;IAC3E,iBAA2B,GAAxB,yBAAO,kBAAmB,gCAAC;MAC5B,IACE,OAEA,IAHG,SAAL;;QAEI,iCAAS,6BAAU,sCAAO,mGAAmD;;oLAEW;;IAE9F;wGAI+E;IAC/E;;;MAEE;IACF;IAEA,qBAAkB,0EAA2C;IAC7D,yBAAG,0BAA8B;MAC/B;IACF;IAIA,aAAU,mEAAoC;IAE9C,iBAAqB,GAAlB,0BAAQ,WAAY,gCAAC;MACtB;IACF;IAEA;IACA;IACA;MACA;QACA;QACA;QACA;UACA;UACA;UACA;UACA;YAGA;YAIA;YACA;YACA;YACA;YACA;YACA;UACA;UAEA;UACA;UACA;UAKA;YACA;YACA;YACA;sHAGoB;UACpB;UAGA;UACA;UACA;UAGA,eAAE,MAAC,WAAQ,+BAAC;QAEd;QAEA;UAIE,eAAE,MAAC,WAAQ,+BAAC;QAEd;QAEA;;;;;4FAC8D;UAC5D,YAAU,kDAAgB;QAC5B;QAEA;UACE,oCAAS,GAAF,iCAAI,kDAAe;QAC5B;MAEF",
8
+ "file": "cl_http_client.clas.mjs",
9
+ "sourceRoot": ""
10
+ }