@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.2

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 (322) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.js +1 -1
  246. package/lib/core/bff/config.js +1 -1
  247. package/lib/core/bff/file-system.js +1 -1
  248. package/lib/core/bff/hash.js +1 -1
  249. package/lib/core/bff/lock.js +1 -1
  250. package/lib/core/bff/utils.js +1 -1
  251. package/lib/core/db-resolver.js +1 -1
  252. package/lib/core/instant-api-policy/config.js +1 -1
  253. package/lib/core/kb-search-client.js +1 -1
  254. package/lib/core/page/file-system.js +1 -1
  255. package/lib/core/page/hash.js +1 -1
  256. package/lib/core/page/lock.js +1 -1
  257. package/lib/core/sql-index-auditor.js +1 -1
  258. package/lib/core/sql-sync/config.js +1 -1
  259. package/lib/core/sql-sync/file-system.js +1 -1
  260. package/lib/core/sql-sync/hash.js +1 -1
  261. package/lib/core/sql-sync/lock.js +1 -1
  262. package/lib/core/sql-sync/utils.js +1 -1
  263. package/lib/core/sql-validator.js +1 -1
  264. package/lib/errors.js +1 -1
  265. package/lib/framework/build-all-flags.js +1 -1
  266. package/lib/framework/error-output.js +1 -1
  267. package/lib/framework/explicit-yes.js +1 -1
  268. package/lib/framework/flags.js +1 -1
  269. package/lib/framework/help.js +1 -1
  270. package/lib/framework/index.js +1 -1
  271. package/lib/framework/output.js +1 -1
  272. package/lib/framework/response.js +1 -1
  273. package/lib/framework/runner-alias.js +1 -1
  274. package/lib/framework/runner.js +1 -1
  275. package/lib/framework/schema-export.js +1 -1
  276. package/lib/framework/supported-flags.js +1 -1
  277. package/lib/framework/types.js +1 -1
  278. package/lib/generated/build-info.d.ts +4 -4
  279. package/lib/generated/build-info.js +1 -1
  280. package/lib/generated/official-routing.js +1 -1
  281. package/lib/generated/routing-contract.js +1 -1
  282. package/lib/help.js +1 -1
  283. package/lib/postinstall.js +1 -1
  284. package/lib/runtime/confirmation.js +1 -1
  285. package/lib/runtime/event.js +1 -1
  286. package/lib/runtime/index.js +1 -1
  287. package/lib/runtime/queue.js +1 -1
  288. package/lib/runtime/resolve.js +1 -1
  289. package/lib/skills/builtin-skill.js +1 -1
  290. package/lib/skills/main.js +1 -1
  291. package/lib/skills/npx-skills-add.js +1 -1
  292. package/lib/skills/skill-presence.js +1 -1
  293. package/lib/telemetry/cli-command-trace.js +1 -1
  294. package/lib/telemetry/cli-help-trace.js +1 -1
  295. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  296. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  297. package/lib/telemetry/send-cli-trace-log.js +1 -1
  298. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  299. package/lib/utils/ai_config.js +1 -1
  300. package/lib/utils/apply-jq-filter.js +1 -1
  301. package/lib/utils/cdn-config.js +1 -1
  302. package/lib/utils/check-sdk-version.js +1 -1
  303. package/lib/utils/cli-version-check.js +1 -1
  304. package/lib/utils/cli-version-policy.js +1 -1
  305. package/lib/utils/config.js +1 -1
  306. package/lib/utils/entity-with-id.js +1 -1
  307. package/lib/utils/file-utils.js +1 -1
  308. package/lib/utils/guides-cdn.js +1 -1
  309. package/lib/utils/http-client.js +1 -1
  310. package/lib/utils/is-non-interactive.js +1 -1
  311. package/lib/utils/logger.js +1 -1
  312. package/lib/utils/params.js +1 -1
  313. package/lib/utils/platform.js +1 -1
  314. package/lib/utils/sleep.js +1 -1
  315. package/lib/utils/template-replacer.js +1 -1
  316. package/lib/utils/update-notice.js +1 -1
  317. package/lib/utils/version.js +1 -1
  318. package/lib/utils/with-active-cookie.js +1 -1
  319. package/lib/utils/write-cli-side-channel.js +1 -1
  320. package/package.json +1 -1
  321. package/skills/rabetbase/SKILL.md +1 -1
  322. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a48_0x2ef8f7=a48_0x30fb;(function(_0xd63ba5,_0x430cc4){const _0x67336e=a48_0x30fb,_0x55ab28=_0xd63ba5();while(!![]){try{const _0x2d9ba9=parseInt(_0x67336e(0x84))/0x1+parseInt(_0x67336e(0x90))/0x2*(-parseInt(_0x67336e(0x8f))/0x3)+-parseInt(_0x67336e(0x8a))/0x4+parseInt(_0x67336e(0x81))/0x5*(parseInt(_0x67336e(0x97))/0x6)+-parseInt(_0x67336e(0x92))/0x7*(parseInt(_0x67336e(0x93))/0x8)+parseInt(_0x67336e(0x87))/0x9+-parseInt(_0x67336e(0x80))/0xa;if(_0x2d9ba9===_0x430cc4)break;else _0x55ab28['push'](_0x55ab28['shift']());}catch(_0x332a09){_0x55ab28['push'](_0x55ab28['shift']());}}}(a48_0x223c,0x3a7e0));export const GLOBAL_SCOPE_FLAG={'name':a48_0x2ef8f7(0x99),'type':a48_0x2ef8f7(0x91),'default':![],'description':a48_0x2ef8f7(0x82)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a48_0x2ef8f7(0x85)};export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':a48_0x2ef8f7(0x7f),'pattern':DATASET_CODE_PATTERN};function a48_0x223c(){const _0x56b720=['Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','global','string','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','1268190UNtmsv','1753475tZeAxO','Write\x20to\x20the\x20global\x20configuration','dbtype','359540IRTzeA','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','number','1034397QIRkBF','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','POSTGRESQL','384836uNZuAP','skip-connection-test','appcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','sqlcode','3vOrhFH','590074BVRjxV','boolean','472633gmPnZg','8OakvfC','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','Database\x20product\x20type','MYSQL','6BrmnjH'];a48_0x223c=function(){return _0x56b720;};return a48_0x223c();}function a48_0x30fb(_0x4df84f,_0x26bba3){_0x4df84f=_0x4df84f-0x7e;const _0x223cc6=a48_0x223c();let _0x30fbcb=_0x223cc6[_0x4df84f];return _0x30fbcb;}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)'};export const SQLCODE_FLAG={'name':a48_0x2ef8f7(0x8e),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a48_0x2ef8f7(0x8d)}};export const APPCODE_FLAG_OPTIONAL={'name':a48_0x2ef8f7(0x8c),'type':a48_0x2ef8f7(0x7e),'required':![],'description':a48_0x2ef8f7(0x94)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':'App\x20code\x20(e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a48_0x2ef8f7(0x86),'required':!![],'description':a48_0x2ef8f7(0x98)};export const DB_TYPE_FLAG={'name':a48_0x2ef8f7(0x83),'type':'string','required':!![],'description':a48_0x2ef8f7(0x95),'enum':[a48_0x2ef8f7(0x96),a48_0x2ef8f7(0x89)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a48_0x2ef8f7(0x8b),'type':'boolean','description':a48_0x2ef8f7(0x88)};
1
+ const a48_0x1ad7fd=a48_0xc520;(function(_0x3d58ce,_0x284618){const _0x2c0f2f=a48_0xc520,_0x41a381=_0x3d58ce();while(!![]){try{const _0x1cc23e=parseInt(_0x2c0f2f(0x1f5))/0x1+-parseInt(_0x2c0f2f(0x1f2))/0x2*(parseInt(_0x2c0f2f(0x1f6))/0x3)+-parseInt(_0x2c0f2f(0x206))/0x4+parseInt(_0x2c0f2f(0x207))/0x5*(parseInt(_0x2c0f2f(0x1fd))/0x6)+-parseInt(_0x2c0f2f(0x1f8))/0x7+parseInt(_0x2c0f2f(0x1fa))/0x8+parseInt(_0x2c0f2f(0x203))/0x9;if(_0x1cc23e===_0x284618)break;else _0x41a381['push'](_0x41a381['shift']());}catch(_0x2de457){_0x41a381['push'](_0x41a381['shift']());}}}(a48_0x1e2e,0x27e30));export const GLOBAL_SCOPE_FLAG={'name':a48_0x1ad7fd(0x202),'type':a48_0x1ad7fd(0x1fc),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a48_0x1ad7fd(0x1f9)};export const CODE_FLAG={'name':a48_0x1ad7fd(0x1f3),'type':'string','required':!![],'description':a48_0x1ad7fd(0x20a),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a48_0xc520(_0x19df8a,_0x19d5a8){_0x19df8a=_0x19df8a-0x1f2;const _0x1e2ef0=a48_0x1e2e();let _0xc520a3=_0x1e2ef0[_0x19df8a];return _0xc520a3;}export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a48_0x1ad7fd(0x1f4),'description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)'};export const SQLCODE_FLAG={'name':a48_0x1ad7fd(0x204),'type':'string','required':!![],'description':a48_0x1ad7fd(0x201),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a48_0x1ad7fd(0x209),'type':a48_0x1ad7fd(0x1f7),'required':![],'description':a48_0x1ad7fd(0x208)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':'App\x20code\x20(e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};function a48_0x1e2e(){const _0x4d48c9=['2226511UxegyD','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','862840YsWbyR','Database\x20product\x20type','boolean','12KaPgLK','MYSQL','dbtype','skip-connection-test','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','global','5777712LYkUxX','sqlcode','POSTGRESQL','707908wxdLtL','209870OWWKKM','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','appcode','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','178cTHuBa','code','datasetcode','102246jDugST','9357pLIHUA','string'];a48_0x1e2e=function(){return _0x4d48c9;};return a48_0x1e2e();}export const DB_TYPE_FLAG={'name':a48_0x1ad7fd(0x1ff),'type':'string','required':!![],'description':a48_0x1ad7fd(0x1fb),'enum':[a48_0x1ad7fd(0x1fe),a48_0x1ad7fd(0x205)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a48_0x1ad7fd(0x200),'type':a48_0x1ad7fd(0x1fc),'description':'Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update'};
@@ -1 +1 @@
1
- (function(_0x3d6339,_0x2f4a97){const _0x308359=a49_0x450b,_0x57e9d5=_0x3d6339();while(!![]){try{const _0x2b4ac1=parseInt(_0x308359(0x1d9))/0x1+parseInt(_0x308359(0x1d2))/0x2+parseInt(_0x308359(0x1df))/0x3*(parseInt(_0x308359(0x1dc))/0x4)+-parseInt(_0x308359(0x1d3))/0x5*(-parseInt(_0x308359(0x1d0))/0x6)+parseInt(_0x308359(0x1db))/0x7+-parseInt(_0x308359(0x1cf))/0x8+parseInt(_0x308359(0x1d6))/0x9*(-parseInt(_0x308359(0x1dd))/0xa);if(_0x2b4ac1===_0x2f4a97)break;else _0x57e9d5['push'](_0x57e9d5['shift']());}catch(_0x67cb12){_0x57e9d5['push'](_0x57e9d5['shift']());}}}(a49_0x1f91,0xd3aad));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a49_0x450b(_0x17f1d2,_0x264a6a){_0x17f1d2=_0x17f1d2-0x1cf;const _0x1f917e=a49_0x1f91();let _0x450b45=_0x1f917e[_0x17f1d2];return _0x450b45;}function a49_0x1f91(){const _0x4310db=['toFixed','357806XyJgyk','validation','3337040gpwfdy','4vvLxai','30NrAwEI','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','161319JoExZj','isFile','File\x20is\x20not\x20a\x20regular\x20file:\x20','ceil','11741104VyPTSi','2946DdTNhG','size','2651344BfOaZb','11060dWIIKa','\x20path\x20is\x20required.','File\x20not\x20found:\x20','2896308OZJVie','\x20MB'];a49_0x1f91=function(){return _0x4310db;};return a49_0x1f91();}const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x438d0e){const _0x4b9fdc=a49_0x450b;if(_0x438d0e>=BYTES_PER_MB){const _0x5c5253=Math[_0x4b9fdc(0x1e2)](_0x438d0e/BYTES_PER_MB*0x64)/0x64;return _0x5c5253[_0x4b9fdc(0x1d8)](0x2)+_0x4b9fdc(0x1d7);}return _0x438d0e+'\x20B';}export function requireDevelopmentUploadFile(_0x321789,_0x163ad2){const _0x3c113d=a49_0x450b,_0x59baaf=_0x321789['trim']();if(!_0x59baaf)throw CliErrors[_0x3c113d(0x1da)](_0x163ad2+_0x3c113d(0x1d4));if(!existsSync(_0x59baaf))throw CliErrors[_0x3c113d(0x1da)](_0x3c113d(0x1d5)+_0x59baaf);const _0x2eede2=statSync(_0x59baaf);if(!_0x2eede2[_0x3c113d(0x1e0)]())throw CliErrors[_0x3c113d(0x1da)](_0x3c113d(0x1e1)+_0x59baaf);if(_0x2eede2['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x3c113d(0x1da)](_0x3c113d(0x1de)+_0x59baaf+'\x20('+formatBytes(_0x2eede2[_0x3c113d(0x1d1)])+')');return{'path':_0x59baaf,'size':_0x2eede2[_0x3c113d(0x1d1)]};}
1
+ (function(_0x311524,_0x200cb8){const _0x5329fd=a49_0x3dc4,_0x12b941=_0x311524();while(!![]){try{const _0x592281=parseInt(_0x5329fd(0xbf))/0x1*(-parseInt(_0x5329fd(0xbb))/0x2)+parseInt(_0x5329fd(0xc4))/0x3*(-parseInt(_0x5329fd(0xb8))/0x4)+-parseInt(_0x5329fd(0xbc))/0x5*(-parseInt(_0x5329fd(0xc9))/0x6)+-parseInt(_0x5329fd(0xc3))/0x7+parseInt(_0x5329fd(0xca))/0x8+parseInt(_0x5329fd(0xc2))/0x9+-parseInt(_0x5329fd(0xbe))/0xa;if(_0x592281===_0x200cb8)break;else _0x12b941['push'](_0x12b941['shift']());}catch(_0x1af32e){_0x12b941['push'](_0x12b941['shift']());}}}(a49_0x1d24,0xaa985));import{existsSync,statSync}from'node:fs';function a49_0x1d24(){const _0x1ac7b5=['File\x20is\x20not\x20a\x20regular\x20file:\x20','10431610EFUnYe','2127KVZGEW','\x20MB','toFixed','9555822ULZKTw','2641289UjQysV','537fNnqFk','isFile','size','validation','trim','12AtnRHC','8200072wGSvwk','28108Fkgksm','ceil','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','46UwSnmC','3348080nyiHXC'];a49_0x1d24=function(){return _0x1ac7b5;};return a49_0x1d24();}import{CliErrors}from'../../errors.js';function a49_0x3dc4(_0x3f9391,_0x565138){_0x3f9391=_0x3f9391-0xb8;const _0x1d2409=a49_0x1d24();let _0x3dc46a=_0x1d2409[_0x3f9391];return _0x3dc46a;}const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5e33fb){const _0x50f4ca=a49_0x3dc4;if(_0x5e33fb>=BYTES_PER_MB){const _0x5c8af3=Math[_0x50f4ca(0xb9)](_0x5e33fb/BYTES_PER_MB*0x64)/0x64;return _0x5c8af3[_0x50f4ca(0xc1)](0x2)+_0x50f4ca(0xc0);}return _0x5e33fb+'\x20B';}export function requireDevelopmentUploadFile(_0x3476bb,_0x2da357){const _0x34c1b7=a49_0x3dc4,_0x501ad2=_0x3476bb[_0x34c1b7(0xc8)]();if(!_0x501ad2)throw CliErrors[_0x34c1b7(0xc7)](_0x2da357+'\x20path\x20is\x20required.');if(!existsSync(_0x501ad2))throw CliErrors[_0x34c1b7(0xc7)]('File\x20not\x20found:\x20'+_0x501ad2);const _0x313d5f=statSync(_0x501ad2);if(!_0x313d5f[_0x34c1b7(0xc5)]())throw CliErrors['validation'](_0x34c1b7(0xbd)+_0x501ad2);if(_0x313d5f[_0x34c1b7(0xc6)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x34c1b7(0xc7)](_0x34c1b7(0xba)+_0x501ad2+'\x20('+formatBytes(_0x313d5f[_0x34c1b7(0xc6)])+')');return{'path':_0x501ad2,'size':_0x313d5f[_0x34c1b7(0xc6)]};}
@@ -1 +1 @@
1
- function a50_0x1f3b(_0x25e834,_0x30dbda){_0x25e834=_0x25e834-0x6c;const _0x576b19=a50_0x576b();let _0x1f3b08=_0x576b19[_0x25e834];return _0x1f3b08;}(function(_0x3c97a3,_0x257d83){const _0x55eb43=a50_0x1f3b,_0x3aef4f=_0x3c97a3();while(!![]){try{const _0x24a755=-parseInt(_0x55eb43(0x6d))/0x1*(parseInt(_0x55eb43(0x7a))/0x2)+parseInt(_0x55eb43(0x72))/0x3+-parseInt(_0x55eb43(0x78))/0x4+-parseInt(_0x55eb43(0x74))/0x5+parseInt(_0x55eb43(0x6c))/0x6*(-parseInt(_0x55eb43(0x77))/0x7)+parseInt(_0x55eb43(0x75))/0x8+parseInt(_0x55eb43(0x6e))/0x9;if(_0x24a755===_0x257d83)break;else _0x3aef4f['push'](_0x3aef4f['shift']());}catch(_0x34cbb7){_0x3aef4f['push'](_0x3aef4f['shift']());}}}(a50_0x576b,0xa2fe6));export function validateAppcode(_0x132d9c){const _0x3de70c=a50_0x1f3b,_0x16f7e1=_0x132d9c[_0x3de70c(0x70)]();if(!_0x16f7e1)return{'valid':![],'message':_0x3de70c(0x79)};if(_0x16f7e1[_0x3de70c(0x71)]>0x64)return{'valid':![],'message':_0x3de70c(0x6f)};if(!/^[A-Za-z0-9_-]+$/[_0x3de70c(0x76)](_0x16f7e1))return{'valid':![],'message':_0x3de70c(0x73)};return{'valid':!![]};}function a50_0x576b(){const _0x24a5b4=['421446avxAXH','1qpZZzd','24543774mvolTt','App\x20Code\x20cannot\x20exceed\x20100\x20characters','trim','length','2488446oJcaSy','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','5042060JLeGlA','3872744qQvqsW','test','91WTCNlh','4020364iYiElf','App\x20Code\x20cannot\x20be\x20empty','892806gjGOwR'];a50_0x576b=function(){return _0x24a5b4;};return a50_0x576b();}
1
+ function a50_0x19d2(_0x2d040b,_0x4a8d41){_0x2d040b=_0x2d040b-0xf4;const _0x5e4ae3=a50_0x5e4a();let _0x19d282=_0x5e4ae3[_0x2d040b];return _0x19d282;}function a50_0x5e4a(){const _0xa509c0=['2636428KDdICu','552VWflju','8202zEkoum','12405519PwFuPJ','App\x20Code\x20cannot\x20exceed\x20100\x20characters','14917Wnhbop','App\x20Code\x20cannot\x20be\x20empty','length','910357wWqfFW','test','12owMsxE','485yWAWBL','17868350ZpnDVn','973074UKwzsK'];a50_0x5e4a=function(){return _0xa509c0;};return a50_0x5e4a();}(function(_0x371487,_0x526383){const _0x42d514=a50_0x19d2,_0x271f5d=_0x371487();while(!![]){try{const _0x3a4f03=-parseInt(_0x42d514(0xfe))/0x1+parseInt(_0x42d514(0xf6))/0x2+-parseInt(_0x42d514(0xf5))/0x3*(-parseInt(_0x42d514(0x100))/0x4)+-parseInt(_0x42d514(0x101))/0x5*(parseInt(_0x42d514(0xf8))/0x6)+parseInt(_0x42d514(0xfb))/0x7*(-parseInt(_0x42d514(0xf7))/0x8)+parseInt(_0x42d514(0xf9))/0x9+-parseInt(_0x42d514(0xf4))/0xa;if(_0x3a4f03===_0x526383)break;else _0x271f5d['push'](_0x271f5d['shift']());}catch(_0x4631ed){_0x271f5d['push'](_0x271f5d['shift']());}}}(a50_0x5e4a,0xa9271));export function validateAppcode(_0x437dd1){const _0x455006=a50_0x19d2,_0x242267=_0x437dd1['trim']();if(!_0x242267)return{'valid':![],'message':_0x455006(0xfc)};if(_0x242267[_0x455006(0xfd)]>0x64)return{'valid':![],'message':_0x455006(0xfa)};if(!/^[A-Za-z0-9_-]+$/[_0x455006(0xff)](_0x242267))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
@@ -1 +1 @@
1
- function a51_0x1149(_0x4a7cb7,_0x8d4348){_0x4a7cb7=_0x4a7cb7-0x178;const _0x3ea5f5=a51_0x3ea5();let _0x11499c=_0x3ea5f5[_0x4a7cb7];return _0x11499c;}const a51_0x667928=a51_0x1149;(function(_0x5af95a,_0x1c3696){const _0x100241=a51_0x1149,_0x1e480f=_0x5af95a();while(!![]){try{const _0x1dc30c=-parseInt(_0x100241(0x17e))/0x1+-parseInt(_0x100241(0x18c))/0x2*(parseInt(_0x100241(0x18f))/0x3)+-parseInt(_0x100241(0x192))/0x4+-parseInt(_0x100241(0x181))/0x5*(-parseInt(_0x100241(0x188))/0x6)+-parseInt(_0x100241(0x18a))/0x7+-parseInt(_0x100241(0x18e))/0x8*(-parseInt(_0x100241(0x191))/0x9)+parseInt(_0x100241(0x197))/0xa*(parseInt(_0x100241(0x194))/0xb);if(_0x1dc30c===_0x1c3696)break;else _0x1e480f['push'](_0x1e480f['shift']());}catch(_0x2ccb11){_0x1e480f['push'](_0x1e480f['shift']());}}}(a51_0x3ea5,0x30be8));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';function a51_0x3ea5(){const _0x916c71=['Missing\x20key\x20argument.','7518OkQmbS','bool','55657dpwnSh','key','4JbZirn','prototype','83432pevkmD','17601dikUFt','Project','288YaIwkO','800404LHFDuy','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','22LbgyrR','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','has','1310210khcfsx','trim','\x20deleted','call','inherit','riskLevel','args','182593RJNNzq','Global','\x22\x20is\x20not\x20deletable.','25REAloB','\x20already\x20absent','validation','boolean','global','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.'];a51_0x3ea5=function(){return _0x916c71;};return a51_0x3ea5();}const LEGACY_DELETABLE_KEYS=new Set([a51_0x667928(0x17b)]),EXTRA_DELETABLE_KEYS=new Set(['defaultApp','routing']);async function execute(_0x4ec30e){const _0x1c9b9c=a51_0x667928,_0x5f35d7=_0x4ec30e[_0x1c9b9c(0x17d)][0x0]?.[_0x1c9b9c(0x178)]();if(!_0x5f35d7)throw CliErrors[_0x1c9b9c(0x183)](_0x1c9b9c(0x187),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(_0x5f35d7===_0x1c9b9c(0x17c))throw CliErrors[_0x1c9b9c(0x183)](_0x1c9b9c(0x186));if(!isTopLevelConfigKey(_0x5f35d7)&&!EXTRA_DELETABLE_KEYS[_0x1c9b9c(0x196)](_0x5f35d7)&&!LEGACY_DELETABLE_KEYS['has'](_0x5f35d7))throw CliErrors[_0x1c9b9c(0x183)]('Top-level\x20key\x20\x22'+_0x5f35d7+_0x1c9b9c(0x180),_0x1c9b9c(0x193));const _0x443203=resolveWriteScope({'global':_0x4ec30e[_0x1c9b9c(0x189)]('global')}),_0x57c85e=readScopedConfig(_0x443203),_0x5919e6=Object[_0x1c9b9c(0x18d)]['hasOwnProperty'][_0x1c9b9c(0x17a)](_0x57c85e,_0x5f35d7);_0x5919e6&&(delete _0x57c85e[_0x5f35d7],writeScopedConfig(_0x57c85e,_0x443203));const _0x5a330b=_0x443203===_0x1c9b9c(0x185)?_0x1c9b9c(0x17f):_0x1c9b9c(0x190);return{'ok':!![],'message':_0x5919e6?'✓\x20'+_0x5a330b+'\x20'+_0x5f35d7+_0x1c9b9c(0x179):'✓\x20'+_0x5a330b+'\x20'+_0x5f35d7+_0x1c9b9c(0x182),'data':{'key':_0x5f35d7,'scope':_0x443203,'changed':_0x5919e6}};}export const configDeleteDefinition={'service':'config','command':'delete','description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a51_0x667928(0x18b),'description':'Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','required':!![]}],'flags':[{'name':a51_0x667928(0x185),'type':a51_0x667928(0x184),'description':a51_0x667928(0x195),'default':![]}],'execute':execute};
1
+ function a51_0x45c4(_0x3deae8,_0x3e2697){_0x3deae8=_0x3deae8-0x1eb;const _0x4a15f0=a51_0x4a15();let _0x45c466=_0x4a15f0[_0x3deae8];return _0x45c466;}const a51_0x1f0320=a51_0x45c4;(function(_0x5ad61e,_0x5e1a42){const _0x5507bc=a51_0x45c4,_0x285872=_0x5ad61e();while(!![]){try{const _0x396e69=-parseInt(_0x5507bc(0x1f7))/0x1+parseInt(_0x5507bc(0x1f1))/0x2*(-parseInt(_0x5507bc(0x1eb))/0x3)+-parseInt(_0x5507bc(0x206))/0x4*(-parseInt(_0x5507bc(0x1ef))/0x5)+-parseInt(_0x5507bc(0x200))/0x6+-parseInt(_0x5507bc(0x1fb))/0x7*(-parseInt(_0x5507bc(0x1f5))/0x8)+-parseInt(_0x5507bc(0x203))/0x9+parseInt(_0x5507bc(0x20d))/0xa*(parseInt(_0x5507bc(0x20e))/0xb);if(_0x396e69===_0x5e1a42)break;else _0x285872['push'](_0x285872['shift']());}catch(_0x22a919){_0x285872['push'](_0x285872['shift']());}}}(a51_0x4a15,0x4709e));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';function a51_0x4a15(){const _0x11800a=['\x20deleted','2050945ySvGmI','Missing\x20key\x20argument.','39782OUYykp','defaultApp','config','call','64VXZjOe','write','318454Klqfba','Global','hasOwnProperty','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','124901KppCAi','validation','\x20already\x20absent','args','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','969408gpZVYw','delete','Usage:\x20','3582252KPvxOC','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','key','4iUssYE','trim','prototype','boolean','\x22\x20is\x20not\x20deletable.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','has','114780UCuoGj','1067iPAjpq','75ibdlai','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','routing'];a51_0x4a15=function(){return _0x11800a;};return a51_0x4a15();}const LEGACY_DELETABLE_KEYS=new Set(['inherit']),EXTRA_DELETABLE_KEYS=new Set([a51_0x1f0320(0x1f2),a51_0x1f0320(0x1ed)]);async function execute(_0xaf095e){const _0x423e52=a51_0x1f0320,_0x41c858=_0xaf095e[_0x423e52(0x1fe)][0x0]?.[_0x423e52(0x207)]();if(!_0x41c858)throw CliErrors[_0x423e52(0x1fc)](_0x423e52(0x1f0),_0x423e52(0x202)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(_0x41c858==='riskLevel')throw CliErrors[_0x423e52(0x1fc)](_0x423e52(0x20b));if(!isTopLevelConfigKey(_0x41c858)&&!EXTRA_DELETABLE_KEYS[_0x423e52(0x20c)](_0x41c858)&&!LEGACY_DELETABLE_KEYS[_0x423e52(0x20c)](_0x41c858))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x41c858+_0x423e52(0x20a),_0x423e52(0x204));const _0x3611e3=resolveWriteScope({'global':_0xaf095e['bool']('global')}),_0x4d2c18=readScopedConfig(_0x3611e3),_0x218348=Object[_0x423e52(0x208)][_0x423e52(0x1f9)][_0x423e52(0x1f4)](_0x4d2c18,_0x41c858);_0x218348&&(delete _0x4d2c18[_0x41c858],writeScopedConfig(_0x4d2c18,_0x3611e3));const _0x444c04=_0x3611e3==='global'?_0x423e52(0x1f8):'Project';return{'ok':!![],'message':_0x218348?'✓\x20'+_0x444c04+'\x20'+_0x41c858+_0x423e52(0x1ee):'✓\x20'+_0x444c04+'\x20'+_0x41c858+_0x423e52(0x1fd),'data':{'key':_0x41c858,'scope':_0x3611e3,'changed':_0x218348}};}export const configDeleteDefinition={'service':a51_0x1f0320(0x1f3),'command':a51_0x1f0320(0x201),'description':a51_0x1f0320(0x1ec),'risk':a51_0x1f0320(0x1f6),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a51_0x1f0320(0x205),'description':a51_0x1f0320(0x1ff),'required':!![]}],'flags':[{'name':'global','type':a51_0x1f0320(0x209),'description':a51_0x1f0320(0x1fa),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a52_0xd22213=a52_0x5cbf;(function(_0x3fc73,_0x4e7da1){const _0x11f053=a52_0x5cbf,_0x553d44=_0x3fc73();while(!![]){try{const _0x214f48=-parseInt(_0x11f053(0x108))/0x1+-parseInt(_0x11f053(0x10c))/0x2+parseInt(_0x11f053(0x113))/0x3+parseInt(_0x11f053(0x10e))/0x4+-parseInt(_0x11f053(0x10f))/0x5*(-parseInt(_0x11f053(0x114))/0x6)+-parseInt(_0x11f053(0x111))/0x7+-parseInt(_0x11f053(0x10b))/0x8*(-parseInt(_0x11f053(0x10a))/0x9);if(_0x214f48===_0x4e7da1)break;else _0x553d44['push'](_0x553d44['shift']());}catch(_0x2aa15a){_0x553d44['push'](_0x553d44['shift']());}}}(a52_0x44fe,0x3fc65));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a52_0x5cbf(_0x1977d5,_0x1e67fd){_0x1977d5=_0x1977d5-0x106;const _0x44fe7c=a52_0x44fe();let _0x5cbfbe=_0x44fe7c[_0x1977d5];return _0x5cbfbe;}function a52_0x44fe(){const _0x255c73=['key','713216mKQegp','2108285BVUaNM','object','1447572AcqWFg','validation','174525somhcV','6gRtGaK','appcode','Missing\x20key.','read','Usage:\x20','app','53075QoHAkF','Get\x20a\x20config\x20value\x20by\x20key','4707VaXkMe','960NgBdUa','399608Anzofb'];a52_0x44fe=function(){return _0x255c73;};return a52_0x44fe();}async function execute(_0x4c0ff8){const _0x4a620f=a52_0x5cbf,_0x156854=_0x4c0ff8['str'](_0x4a620f(0x10d));if(!_0x156854)throw CliErrors[_0x4a620f(0x112)](_0x4a620f(0x116),_0x4a620f(0x106)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x28fde3=readConfig(),_0x14e651=_0x156854===_0x4a620f(0x107)?_0x4a620f(0x115):_0x156854,_0x2df699=_0x28fde3[_0x14e651];if(_0x2df699===undefined)throw CliErrors[_0x4a620f(0x112)]('Key\x20not\x20found:\x20'+_0x156854);return{'ok':!![],'data':typeof _0x2df699==='object'?_0x2df699:{[_0x14e651]:_0x2df699},'message':typeof _0x2df699===_0x4a620f(0x110)?undefined:String(_0x2df699)};}export const configGetDefinition={'service':'config','command':'get','description':a52_0xd22213(0x109),'risk':a52_0xd22213(0x117),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0xd22213(0x10d),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a52_0x203a02=a52_0x3a01;(function(_0x46cea5,_0x163e0e){const _0x3d90c4=a52_0x3a01,_0x3260c9=_0x46cea5();while(!![]){try{const _0x288616=parseInt(_0x3d90c4(0xbe))/0x1*(parseInt(_0x3d90c4(0xb5))/0x2)+-parseInt(_0x3d90c4(0xbb))/0x3+parseInt(_0x3d90c4(0xb2))/0x4+-parseInt(_0x3d90c4(0xb1))/0x5+-parseInt(_0x3d90c4(0xbd))/0x6+-parseInt(_0x3d90c4(0xad))/0x7*(parseInt(_0x3d90c4(0xaf))/0x8)+parseInt(_0x3d90c4(0xb3))/0x9;if(_0x288616===_0x163e0e)break;else _0x3260c9['push'](_0x3260c9['shift']());}catch(_0x4be07b){_0x3260c9['push'](_0x3260c9['shift']());}}}(a52_0x8616,0x46cb7));import{CliErrors}from'../../errors.js';function a52_0x8616(){const _0x2ed00c=['string','4146TCnzgM','str','object','appcode','get','key','1517238hZVRUu','Missing\x20key.','3152430EXzufv','137xXdYcB','3570266hJTIhn','Key\x20not\x20found:\x20','8YnMCcH','Usage:\x20','2439565AAdaqG','1106656CkfZKm','15825708SZduIZ'];a52_0x8616=function(){return _0x2ed00c;};return a52_0x8616();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a52_0x3a01(_0x514435,_0x4a09b2){_0x514435=_0x514435-0xad;const _0x8616e8=a52_0x8616();let _0x3a0176=_0x8616e8[_0x514435];return _0x3a0176;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x395124){const _0x5c5083=a52_0x3a01,_0x10d790=_0x395124[_0x5c5083(0xb6)]('key');if(!_0x10d790)throw CliErrors['validation'](_0x5c5083(0xbc),_0x5c5083(0xb0)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x4e77ff=readConfig(),_0x275139=_0x10d790==='app'?_0x5c5083(0xb8):_0x10d790,_0x2ebc21=_0x4e77ff[_0x275139];if(_0x2ebc21===undefined)throw CliErrors['validation'](_0x5c5083(0xae)+_0x10d790);return{'ok':!![],'data':typeof _0x2ebc21==='object'?_0x2ebc21:{[_0x275139]:_0x2ebc21},'message':typeof _0x2ebc21===_0x5c5083(0xb7)?undefined:String(_0x2ebc21)};}export const configGetDefinition={'service':'config','command':a52_0x203a02(0xb9),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x203a02(0xba),'type':a52_0x203a02(0xb4),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x438a0b,_0x410d83){const _0x71b8bf=a53_0x1c2a,_0x28b426=_0x438a0b();while(!![]){try{const _0x34c942=-parseInt(_0x71b8bf(0x14a))/0x1*(parseInt(_0x71b8bf(0x146))/0x2)+-parseInt(_0x71b8bf(0x14b))/0x3*(parseInt(_0x71b8bf(0x150))/0x4)+parseInt(_0x71b8bf(0x148))/0x5*(parseInt(_0x71b8bf(0x14f))/0x6)+parseInt(_0x71b8bf(0x14d))/0x7*(-parseInt(_0x71b8bf(0x14e))/0x8)+parseInt(_0x71b8bf(0x14c))/0x9+-parseInt(_0x71b8bf(0x149))/0xa*(-parseInt(_0x71b8bf(0x151))/0xb)+parseInt(_0x71b8bf(0x147))/0xc;if(_0x34c942===_0x410d83)break;else _0x28b426['push'](_0x28b426['shift']());}catch(_0x5cfc18){_0x28b426['push'](_0x28b426['shift']());}}}(a53_0x5902,0x9f295));function a53_0x1c2a(_0x2ea3b9,_0x547b67){_0x2ea3b9=_0x2ea3b9-0x146;const _0x5902ce=a53_0x5902();let _0x1c2a58=_0x5902ce[_0x2ea3b9];return _0x1c2a58;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';function a53_0x5902(){const _0x553597=['3198768RutNVl','201066EjFGqa','47132dFkbSf','165IZAnmN','575348OOaOiI','21938292FIJmes','5QdLlYg','638090PSCVua','1tleUWX','297FzYbVm','4381353Pdrkol','21MzGulm'];a53_0x5902=function(){return _0x553597;};return a53_0x5902();}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
1
+ (function(_0x43128b,_0x39db74){const _0x420c54=a53_0xd32d,_0x407fd0=_0x43128b();while(!![]){try{const _0x1ecd61=-parseInt(_0x420c54(0x166))/0x1+parseInt(_0x420c54(0x163))/0x2+parseInt(_0x420c54(0x169))/0x3*(parseInt(_0x420c54(0x160))/0x4)+-parseInt(_0x420c54(0x165))/0x5*(parseInt(_0x420c54(0x164))/0x6)+parseInt(_0x420c54(0x162))/0x7+-parseInt(_0x420c54(0x168))/0x8+-parseInt(_0x420c54(0x161))/0x9*(parseInt(_0x420c54(0x167))/0xa);if(_0x1ecd61===_0x39db74)break;else _0x407fd0['push'](_0x407fd0['shift']());}catch(_0x5c16b9){_0x407fd0['push'](_0x407fd0['shift']());}}}(a53_0x4566,0x2acd9));import{configListDefinition}from'../../commands/config/list.js';function a53_0x4566(){const _0x421170=['4yBHnoe','9KRZJdQ','2229143puWmJD','677626kDQJUc','6294BewJbp','965uoNIHP','44025EMGEnz','63460CXOUTu','2091280hYHJCw','96891KpRFRi'];a53_0x4566=function(){return _0x421170;};return a53_0x4566();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';function a53_0xd32d(_0x55e220,_0x5dfd0e){_0x55e220=_0x55e220-0x160;const _0x45660a=a53_0x4566();let _0xd32dce=_0x45660a[_0x55e220];return _0xd32dce;}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
@@ -1 +1 @@
1
- const a54_0x2d2f12=a54_0x1d9d;(function(_0x4785fd,_0x2476eb){const _0x3603e8=a54_0x1d9d,_0x4c5c23=_0x4785fd();while(!![]){try{const _0x4cbd48=-parseInt(_0x3603e8(0x1e8))/0x1+parseInt(_0x3603e8(0x1db))/0x2+parseInt(_0x3603e8(0x1d8))/0x3+-parseInt(_0x3603e8(0x1d7))/0x4*(-parseInt(_0x3603e8(0x1dd))/0x5)+parseInt(_0x3603e8(0x1ba))/0x6+parseInt(_0x3603e8(0x1e7))/0x7+-parseInt(_0x3603e8(0x1c4))/0x8*(parseInt(_0x3603e8(0x1d0))/0x9);if(_0x4cbd48===_0x2476eb)break;else _0x4c5c23['push'](_0x4c5c23['shift']());}catch(_0x29d1c4){_0x4c5c23['push'](_0x4c5c23['shift']());}}}(a54_0x542d,0xdc978));import{select}from'@inquirer/prompts';function a54_0x542d(){const _0x56beb6=['40LTkxUw','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','kb-domain','Custom\x20local\x20callback\x20HTTPS\x20origin','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','localDomain','certificate-domain','join','manifestDomains','api-domain','Custom\x20User\x20HTTPS\x20origin','nonInteractive','3539637bCqmwK','string','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','global','mode','Region\x20\x22','length','628676djULhx','449127KOIKAd','Independent-deployment\x20Domain\x20JSON\x20file','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','1291026vmEMAy','map','25blzHYR','runtime-domain','ExitPromptError','certificateDomain','routing','bool','validation','enterprise-v1','Custom\x20Runtime\x20HTTPS\x20origin','str','10508414ZaarAL','975175ggvZlW','domains','user-domain','Select\x20Lovrabet\x20region','project','region','independent','write','domain-config','skill-domain','keys','4577490bYzBty','cancelled','init','\x22\x20is\x20not\x20currently\x20available.','Custom\x20knowledge-base\x20HTTPS\x20origin','config','cdn','Official\x20Lovrabet\x20region:\x20','Custom\x20certificate\x20service\x20HTTPS\x20origin','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'];a54_0x542d=function(){return _0x56beb6;};return a54_0x542d();}import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a54_0x1d9d(_0x394d5b,_0x5d0400){_0x394d5b=_0x394d5b-0x1b8;const _0x542da2=a54_0x542d();let _0x1d9d3e=_0x542da2[_0x394d5b];return _0x1d9d3e;}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a54_0x2d2f12(0x1ed),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c1)+ENABLED_LOVRABET_REGION_VALUES[a54_0x2d2f12(0x1cb)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a54_0x2d2f12(0x1f0),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1d9)},{'name':a54_0x2d2f12(0x1ea),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1ce)},{'name':a54_0x2d2f12(0x1cd),'type':a54_0x2d2f12(0x1d1),'description':'Custom\x20platform\x20API\x20HTTPS\x20origin'},{'name':a54_0x2d2f12(0x1de),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1e5)},{'name':a54_0x2d2f12(0x1b8),'type':a54_0x2d2f12(0x1d1),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a54_0x2d2f12(0x1c6),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1be)},{'name':'app-domain','type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c8)},{'name':'local-domain','type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c7)},{'name':a54_0x2d2f12(0x1ca),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c2)}];async function resolveRegion(_0x410155){const _0x2ed6e7=a54_0x2d2f12,_0xfdfb15=_0x410155['str'](_0x2ed6e7(0x1ed));if(_0xfdfb15){if(!isEnabledLovrabetRegion(_0xfdfb15))throw CliErrors[_0x2ed6e7(0x1e3)](_0x2ed6e7(0x1d5)+_0xfdfb15+_0x2ed6e7(0x1bd),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x2ed6e7(0x1cb)](',\x20'));return _0xfdfb15;}if(_0x410155[_0x2ed6e7(0x1cf)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x2ed6e7(0x1eb),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x2ed6e7(0x1dc)](_0x27f708=>({'name':getOfficialRoutingProfile(_0x27f708)['label']+'\x20('+_0x27f708+')','value':_0x27f708}))});}catch(_0x1fb83e){if(_0x1fb83e?.['name']===_0x2ed6e7(0x1df))throw CliErrors[_0x2ed6e7(0x1bb)]();throw _0x1fb83e;}}export async function executeConfigInit(_0x26f157){const _0x418e64=a54_0x2d2f12,_0x165ce0=resolveDomainConfigInput(_0x26f157),_0x1dae2a=_0x165ce0[_0x418e64(0x1e9)],_0x5bb666=Object[_0x418e64(0x1b9)](_0x1dae2a)[_0x418e64(0x1d6)]>0x0;if(_0x5bb666&&_0x26f157[_0x418e64(0x1e6)](_0x418e64(0x1ed)))throw CliErrors[_0x418e64(0x1e3)](_0x418e64(0x1c5));if(!!_0x1dae2a[_0x418e64(0x1c9)]!==!!_0x1dae2a[_0x418e64(0x1e0)])throw CliErrors[_0x418e64(0x1e3)](_0x418e64(0x1da));const _0x12c66f=_0x26f157[_0x418e64(0x1e2)](_0x418e64(0x1d3))?_0x418e64(0x1d3):_0x418e64(0x1ec),_0x28ff33=readScopedConfig(_0x12c66f);for(const _0x83d9dc of DOMAIN_CONFIG_FIELDS)delete _0x28ff33[_0x83d9dc];for(const _0x5082ea of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x28ff33[_0x5082ea];delete _0x28ff33[_0x418e64(0x1e1)];let _0x3e501a=null;if(_0x5bb666)delete _0x28ff33[_0x418e64(0x1ed)],_0x165ce0[_0x418e64(0x1d4)]===_0x418e64(0x1e4)?_0x28ff33['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x165ce0['manifestDomains'],'cdn':_0x165ce0[_0x418e64(0x1c0)]}:Object['assign'](_0x28ff33,_0x1dae2a);else{_0x3e501a=await resolveRegion(_0x26f157);if(_0x3e501a===DEFAULT_LOVRABET_REGION)delete _0x28ff33[_0x418e64(0x1ed)];else _0x28ff33[_0x418e64(0x1ed)]=_0x3e501a;}return writeScopedConfig(_0x28ff33,_0x12c66f),{'ok':!![],'message':_0x5bb666?_0x418e64(0x1c3)+Object[_0x418e64(0x1b9)](_0x165ce0[_0x418e64(0x1d4)]===_0x418e64(0x1e4)?_0x165ce0[_0x418e64(0x1cc)]:_0x1dae2a)['join'](',\x20')+'.':_0x418e64(0x1d2)+_0x3e501a+'.','data':{'mode':_0x5bb666?_0x418e64(0x1ee):'official','protocol':_0x165ce0[_0x418e64(0x1d4)]===_0x418e64(0x1e4)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x3e501a,'domains':_0x1dae2a,'cdn':_0x165ce0[_0x418e64(0x1d4)]==='enterprise-v1'?_0x165ce0['cdn']:undefined}};}export const configInitDefinition={'service':a54_0x2d2f12(0x1bf),'command':a54_0x2d2f12(0x1bc),'description':'Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':a54_0x2d2f12(0x1ef),'confirmationDescription':'Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a54_0x2ba554=a54_0xee63;(function(_0x3bed85,_0x1a401d){const _0xae4452=a54_0xee63,_0x587b1=_0x3bed85();while(!![]){try{const _0x477fec=-parseInt(_0xae4452(0x1da))/0x1*(parseInt(_0xae4452(0x1dd))/0x2)+parseInt(_0xae4452(0x1ed))/0x3*(-parseInt(_0xae4452(0x1f0))/0x4)+-parseInt(_0xae4452(0x1d5))/0x5+parseInt(_0xae4452(0x1d9))/0x6+-parseInt(_0xae4452(0x1e1))/0x7+-parseInt(_0xae4452(0x1e7))/0x8+parseInt(_0xae4452(0x1ea))/0x9*(parseInt(_0xae4452(0x1e6))/0xa);if(_0x477fec===_0x1a401d)break;else _0x587b1['push'](_0x587b1['shift']());}catch(_0x23df43){_0x587b1['push'](_0x587b1['shift']());}}}(a54_0x5bde,0x3aa09));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a54_0x5bde(){const _0x472ced=['label','manifestDomains','2718762KEWkMI','102233GsFquU','Custom\x20knowledge-base\x20HTTPS\x20origin','global','2IxYGuO','skill-domain','Custom\x20certificate\x20service\x20HTTPS\x20origin','Independent-deployment\x20Domain\x20JSON\x20file','2495374TQAcNb','Custom\x20platform\x20API\x20HTTPS\x20origin','keys','Official\x20Lovrabet\x20region:\x20','api-domain','14910PMvNmC','3663144JwbypG','independent','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','6129BfnAhF','local-domain','\x22\x20is\x20not\x20currently\x20available.','411fnPbqj','mode','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','2796SvTrlv','length','assign','runtime-domain','join','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','string','init','config','str','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','validation','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','Custom\x20User\x20HTTPS\x20origin','certificate-domain','bool','app-domain','ExitPromptError','certificateDomain','cdn','project','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','cancelled','Select\x20Lovrabet\x20region','Custom\x20Runtime\x20HTTPS\x20origin','routing','write','domain-config','enterprise-v1','Custom\x20SkillHub\x20HTTPS\x20origin','kb-domain','region','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','1079950xEVowl','Available\x20regions:\x20'];a54_0x5bde=function(){return _0x472ced;};return a54_0x5bde();}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';function a54_0xee63(_0x46ae5a,_0x412224){_0x46ae5a=_0x46ae5a-0x1b7;const _0x5bde0d=a54_0x5bde();let _0xee63cd=_0x5bde0d[_0x46ae5a];return _0xee63cd;}export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a54_0x2ba554(0x1d3),'type':a54_0x2ba554(0x1ba),'description':a54_0x2ba554(0x1e4)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a54_0x2ba554(0x1cf),'type':'string','description':a54_0x2ba554(0x1e0)},{'name':'user-domain','type':a54_0x2ba554(0x1ba),'description':a54_0x2ba554(0x1c1)},{'name':a54_0x2ba554(0x1e5),'type':a54_0x2ba554(0x1ba),'description':a54_0x2ba554(0x1e2)},{'name':a54_0x2ba554(0x1b7),'type':a54_0x2ba554(0x1ba),'description':a54_0x2ba554(0x1cc)},{'name':a54_0x2ba554(0x1de),'type':a54_0x2ba554(0x1ba),'description':a54_0x2ba554(0x1d1)},{'name':a54_0x2ba554(0x1d2),'type':a54_0x2ba554(0x1ba),'description':a54_0x2ba554(0x1db)},{'name':a54_0x2ba554(0x1c4),'type':a54_0x2ba554(0x1ba),'description':a54_0x2ba554(0x1c0)},{'name':a54_0x2ba554(0x1eb),'type':a54_0x2ba554(0x1ba),'description':'Custom\x20local\x20callback\x20HTTPS\x20origin'},{'name':a54_0x2ba554(0x1c2),'type':'string','description':a54_0x2ba554(0x1df)}];async function resolveRegion(_0x22a959){const _0x578542=a54_0x2ba554,_0x4bbe1a=_0x22a959[_0x578542(0x1bd)](_0x578542(0x1d3));if(_0x4bbe1a){if(!isEnabledLovrabetRegion(_0x4bbe1a))throw CliErrors[_0x578542(0x1bf)]('Region\x20\x22'+_0x4bbe1a+_0x578542(0x1ec),_0x578542(0x1d6)+ENABLED_LOVRABET_REGION_VALUES[_0x578542(0x1b8)](',\x20'));return _0x4bbe1a;}if(_0x22a959['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x578542(0x1cb),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x53224f=>({'name':getOfficialRoutingProfile(_0x53224f)[_0x578542(0x1d7)]+'\x20('+_0x53224f+')','value':_0x53224f}))});}catch(_0x154426){if(_0x154426?.['name']===_0x578542(0x1c5))throw CliErrors[_0x578542(0x1ca)]();throw _0x154426;}}export async function executeConfigInit(_0x5da8fb){const _0x35abd6=a54_0x2ba554,_0x1361aa=resolveDomainConfigInput(_0x5da8fb),_0x32d217=_0x1361aa['domains'],_0x27861c=Object[_0x35abd6(0x1e3)](_0x32d217)[_0x35abd6(0x1f1)]>0x0;if(_0x27861c&&_0x5da8fb[_0x35abd6(0x1bd)](_0x35abd6(0x1d3)))throw CliErrors[_0x35abd6(0x1bf)](_0x35abd6(0x1ef));if(!!_0x32d217['localDomain']!==!!_0x32d217[_0x35abd6(0x1c6)])throw CliErrors[_0x35abd6(0x1bf)](_0x35abd6(0x1d4));const _0x17ec28=_0x5da8fb[_0x35abd6(0x1c3)](_0x35abd6(0x1dc))?_0x35abd6(0x1dc):_0x35abd6(0x1c8),_0x10e094=readScopedConfig(_0x17ec28);for(const _0x5ce606 of DOMAIN_CONFIG_FIELDS)delete _0x10e094[_0x5ce606];for(const _0x59c109 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x10e094[_0x59c109];delete _0x10e094[_0x35abd6(0x1cd)];let _0x6c6623=null;if(_0x27861c)delete _0x10e094[_0x35abd6(0x1d3)],_0x1361aa['mode']===_0x35abd6(0x1d0)?_0x10e094[_0x35abd6(0x1cd)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x1361aa[_0x35abd6(0x1d8)],'cdn':_0x1361aa['cdn']}:Object[_0x35abd6(0x1f2)](_0x10e094,_0x32d217);else{_0x6c6623=await resolveRegion(_0x5da8fb);if(_0x6c6623===DEFAULT_LOVRABET_REGION)delete _0x10e094[_0x35abd6(0x1d3)];else _0x10e094[_0x35abd6(0x1d3)]=_0x6c6623;}return writeScopedConfig(_0x10e094,_0x17ec28),{'ok':!![],'message':_0x27861c?_0x35abd6(0x1c9)+Object[_0x35abd6(0x1e3)](_0x1361aa[_0x35abd6(0x1ee)]==='enterprise-v1'?_0x1361aa['manifestDomains']:_0x32d217)[_0x35abd6(0x1b8)](',\x20')+'.':_0x35abd6(0x1b9)+_0x6c6623+'.','data':{'mode':_0x27861c?_0x35abd6(0x1e8):'official','protocol':_0x1361aa['mode']==='enterprise-v1'?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x6c6623,'domains':_0x32d217,'cdn':_0x1361aa[_0x35abd6(0x1ee)]===_0x35abd6(0x1d0)?_0x1361aa[_0x35abd6(0x1c7)]:undefined}};}export const configInitDefinition={'service':a54_0x2ba554(0x1bc),'command':a54_0x2ba554(0x1bb),'description':a54_0x2ba554(0x1e9),'risk':a54_0x2ba554(0x1ce),'confirmationDescription':a54_0x2ba554(0x1be),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- const a55_0x3f4d0b=a55_0x2e03;(function(_0x47855b,_0x6b0a73){const _0x47d895=a55_0x2e03,_0x2fe822=_0x47855b();while(!![]){try{const _0x597759=parseInt(_0x47d895(0x1b4))/0x1+-parseInt(_0x47d895(0x1a8))/0x2*(parseInt(_0x47d895(0x1ab))/0x3)+-parseInt(_0x47d895(0x1aa))/0x4*(parseInt(_0x47d895(0x1a5))/0x5)+-parseInt(_0x47d895(0x1a6))/0x6*(parseInt(_0x47d895(0x1af))/0x7)+parseInt(_0x47d895(0x1a9))/0x8*(parseInt(_0x47d895(0x1ad))/0x9)+-parseInt(_0x47d895(0x1ae))/0xa+-parseInt(_0x47d895(0x1ac))/0xb*(-parseInt(_0x47d895(0x1b5))/0xc);if(_0x597759===_0x6b0a73)break;else _0x2fe822['push'](_0x2fe822['shift']());}catch(_0xaf6523){_0x2fe822['push'](_0x2fe822['shift']());}}}(a55_0x42a4,0xe7446));function a55_0x2e03(_0x45b274,_0x1044f8){_0x45b274=_0x45b274-0x1a4;const _0x42a40a=a55_0x42a4();let _0x2e03d5=_0x42a40a[_0x45b274];return _0x2e03d5;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3f66c0){const _0x2ea9ad=a55_0x2e03,_0x1a2436=_0x3f66c0['bool'](_0x2ea9ad(0x1b2))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x1a2436};}function a55_0x42a4(){const _0x3464c5=['Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','50ceHKld','84LhWvPV','List\x20all\x20config\x20values','73960chIShP','136SePbYm','662796uCsEEd','129tLWMRp','11mwoJKz','338967aiZZkl','15222100jBVPbn','846006jzZQDh','read','config','global','list','1395560gzLbVx','64473492TcJVtE'];a55_0x42a4=function(){return _0x3464c5;};return a55_0x42a4();}export const configListDefinition={'service':a55_0x3f4d0b(0x1b1),'command':a55_0x3f4d0b(0x1b3),'description':a55_0x3f4d0b(0x1a7),'risk':a55_0x3f4d0b(0x1b0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a55_0x3f4d0b(0x1a4),'default':![]}],'execute':execute};
1
+ const a55_0x31e95d=a55_0x540f;(function(_0x132714,_0x3fb8b6){const _0x189ddf=a55_0x540f,_0xd24700=_0x132714();while(!![]){try{const _0x3fe203=parseInt(_0x189ddf(0x157))/0x1+-parseInt(_0x189ddf(0x160))/0x2*(parseInt(_0x189ddf(0x15e))/0x3)+parseInt(_0x189ddf(0x152))/0x4+-parseInt(_0x189ddf(0x15a))/0x5*(-parseInt(_0x189ddf(0x15d))/0x6)+parseInt(_0x189ddf(0x15f))/0x7*(-parseInt(_0x189ddf(0x159))/0x8)+parseInt(_0x189ddf(0x151))/0x9*(-parseInt(_0x189ddf(0x153))/0xa)+parseInt(_0x189ddf(0x158))/0xb;if(_0x3fe203===_0x3fb8b6)break;else _0xd24700['push'](_0xd24700['shift']());}catch(_0x54615a){_0xd24700['push'](_0xd24700['shift']());}}}(a55_0x2947,0x7ce31));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a55_0x540f(_0x38a82,_0x5c983d){_0x38a82=_0x38a82-0x151;const _0x2947f9=a55_0x2947();let _0x540f86=_0x2947f9[_0x38a82];return _0x540f86;}async function execute(_0xb56ab3){const _0x4f522d=a55_0x540f,_0x276c65=_0xb56ab3[_0x4f522d(0x156)](_0x4f522d(0x15c))?readScopedConfig(_0x4f522d(0x15c)):readConfig();return{'ok':!![],'data':_0x276c65};}export const configListDefinition={'service':a55_0x31e95d(0x155),'command':a55_0x31e95d(0x15b),'description':'List\x20all\x20config\x20values','risk':a55_0x31e95d(0x162),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a55_0x31e95d(0x15c),'type':a55_0x31e95d(0x161),'description':a55_0x31e95d(0x154),'default':![]}],'execute':execute};function a55_0x2947(){const _0x3ccae2=['read','58149yOzdwh','2365476jLgOza','430RONkID','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','config','bool','28098JeZMro','9868936wACOFM','1192GytheM','19390ygQpkW','list','global','906atFAtW','25050BWXZte','21273xRzrEH','206NYmmif','boolean'];a55_0x2947=function(){return _0x3ccae2;};return a55_0x2947();}
@@ -1 +1 @@
1
- const a56_0x568b80=a56_0x2a37;(function(_0x471cb3,_0x2e0dc3){const _0x83a3c1=a56_0x2a37,_0x5dffe3=_0x471cb3();while(!![]){try{const _0x448ca1=parseInt(_0x83a3c1(0x166))/0x1+parseInt(_0x83a3c1(0x16c))/0x2*(-parseInt(_0x83a3c1(0x18a))/0x3)+parseInt(_0x83a3c1(0x17d))/0x4*(-parseInt(_0x83a3c1(0x170))/0x5)+parseInt(_0x83a3c1(0x15f))/0x6*(-parseInt(_0x83a3c1(0x167))/0x7)+-parseInt(_0x83a3c1(0x174))/0x8+parseInt(_0x83a3c1(0x16f))/0x9*(-parseInt(_0x83a3c1(0x16b))/0xa)+-parseInt(_0x83a3c1(0x18e))/0xb*(-parseInt(_0x83a3c1(0x169))/0xc);if(_0x448ca1===_0x2e0dc3)break;else _0x5dffe3['push'](_0x5dffe3['shift']());}catch(_0x40b824){_0x5dffe3['push'](_0x5dffe3['shift']());}}}(a56_0x56d3,0xa4434));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a56_0x56d3(){const _0x18a0dc=['str','boolean','locale','value','string','join','Invalid\x20locale\x20value.','Set\x20a\x20config\x20value','Global','6120XFyiTR','app','riskLevel','object','11kvSuDF','validation','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','write','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Usage:\x20','env','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','35808ezjAEx','includes','Config\x20value','Settable\x20top-level\x20keys:\x20','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','set','41553RTUDkt','56kGBaPy','\x20set\x20to:\x20','25221696tMIlXt','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','47060ZrTDbC','398EbhIbU','Missing\x20key.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','1467lDLzNv','137120erXCCM','Project','length','`,\x20`','462328fTADXO','appcode','config','Top-level\x20key\x20\x22','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','apps','global','bool','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','28pbjWYO','keys','Missing\x20value.','Invalid\x20value\x20for\x20\x22'];a56_0x56d3=function(){return _0x18a0dc;};return a56_0x56d3();}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x5bcf8c){const _0x4ff1f3=a56_0x2a37,_0x44213b=_0x5bcf8c[_0x4ff1f3(0x181)]('key'),_0x81fde8=_0x5bcf8c[_0x4ff1f3(0x181)]('value');if(!_0x44213b)throw CliErrors['validation'](_0x4ff1f3(0x16d),_0x4ff1f3(0x193)+CLI_BIN_NAME+_0x4ff1f3(0x190));if(_0x81fde8===undefined||_0x81fde8==='')throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x17f),_0x4ff1f3(0x193)+CLI_BIN_NAME+_0x4ff1f3(0x190));let _0x20331d=_0x44213b,_0x6b1a89=_0x81fde8;if(_0x81fde8[_0x4ff1f3(0x172)]>0x1f4)throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x178));if(_0x44213b===_0x4ff1f3(0x18c))throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x192));if(!isTopLevelConfigKey(_0x44213b))throw CliErrors['validation'](_0x4ff1f3(0x177)+_0x44213b+'\x22\x20is\x20not\x20settable.',_0x4ff1f3(0x162)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x44213b]&&!CONFIG_ENUM_VALUES[_0x44213b][_0x4ff1f3(0x160)](_0x81fde8))throw CliErrors['validation'](_0x4ff1f3(0x180)+_0x44213b+_0x4ff1f3(0x163)+CONFIG_ENUM_VALUES[_0x44213b][_0x4ff1f3(0x186)](',\x20'));if(_0x44213b===_0x4ff1f3(0x183)&&!normalizeLocale(_0x81fde8))throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x187),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');DOMAIN_CONFIG_FIELDS[_0x4ff1f3(0x160)](_0x44213b)&&(_0x6b1a89=normalizeDomainOrigin(_0x44213b,_0x81fde8));const _0x22afd0={'global':_0x5bcf8c[_0x4ff1f3(0x17b)](_0x4ff1f3(0x17a))},_0x1454ad=resolveWriteScope(_0x22afd0),_0x142103=readScopedConfig(_0x1454ad);_0x44213b===_0x4ff1f3(0x18b)&&(_0x20331d='appcode',delete _0x142103[_0x4ff1f3(0x18b)]);_0x44213b===_0x4ff1f3(0x183)&&(_0x6b1a89=normalizeLocale(_0x81fde8));if(_0x44213b==='env'){_0x6b1a89=normalizeEnv(_0x81fde8);if(!isProduction(_0x6b1a89)&&!isDaily(_0x6b1a89))throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x164),_0x4ff1f3(0x16e));}if(_0x44213b===_0x4ff1f3(0x175)){const _0x3b0114=_0x142103[_0x4ff1f3(0x179)]&&typeof _0x142103[_0x4ff1f3(0x179)]===_0x4ff1f3(0x18d)?Object[_0x4ff1f3(0x17e)](_0x142103['apps']):[];if(_0x3b0114['length']>0x0)throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x15e),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x6b1a89+_0x4ff1f3(0x173)+CLI_BIN_NAME+_0x4ff1f3(0x17c));const _0x2a3143=buildCanonicalProjectConfig({..._0x142103},{'appCodes':[_0x6b1a89],'env':typeof _0x142103[_0x4ff1f3(0x15d)]===_0x4ff1f3(0x185)?_0x142103[_0x4ff1f3(0x15d)]:undefined});writeScopedConfig(_0x2a3143,_0x1454ad);const _0x3aa73b=_0x1454ad===_0x4ff1f3(0x17a)?'Global':_0x4ff1f3(0x171);return{'ok':!![],'message':'✓\x20'+_0x3aa73b+'\x20appcode\x20set\x20to:\x20'+_0x6b1a89+_0x4ff1f3(0x16a)};}_0x142103[_0x20331d]=_0x6b1a89,writeScopedConfig(_0x142103,_0x1454ad);const _0x140d84=_0x1454ad===_0x4ff1f3(0x17a)?_0x4ff1f3(0x189):_0x4ff1f3(0x171);return{'ok':!![],'message':'✓\x20'+_0x140d84+'\x20'+_0x20331d+_0x4ff1f3(0x168)+_0x6b1a89};}function a56_0x2a37(_0xb6dc54,_0xae6579){_0xb6dc54=_0xb6dc54-0x15d;const _0x56d3aa=a56_0x56d3();let _0x2a3799=_0x56d3aa[_0xb6dc54];return _0x2a3799;}export const configSetDefinition={'service':a56_0x568b80(0x176),'command':a56_0x568b80(0x165),'description':a56_0x568b80(0x188),'risk':a56_0x568b80(0x191),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a56_0x568b80(0x184),'type':a56_0x568b80(0x185),'description':a56_0x568b80(0x161),'required':!![]},{'name':'global','type':a56_0x568b80(0x182),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a56_0x2ad338=a56_0x445a;function a56_0x580f(){const _0x5b0d55=['Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','18PwXCvo','Global','347920DXSKws','Usage:\x20','\x20appcode\x20set\x20to:\x20','Missing\x20key.','Project','write','528076oDJuEF','app','`,\x20`','3230140gaqqDR','value','\x22.\x20Allowed:\x20','config','1FMYENS','Top-level\x20key\x20\x22','Missing\x20value.','join','468188KDWwzE','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','env','Settable\x20top-level\x20keys:\x20','str','set','3dQMYft','validation','keys','4891315BkZLFc','Invalid\x20value\x20for\x20\x22','apps','string','\x22\x20is\x20not\x20settable.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','locale','includes','Invalid\x20locale\x20value.','riskLevel','43638wYXVIS','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','length','Config\x20value','boolean','1602730AOfMcm','key','77acrPPP','global','appcode','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Set\x20a\x20config\x20value','Use\x20`'];a56_0x580f=function(){return _0x5b0d55;};return a56_0x580f();}(function(_0x5365f5,_0x402ea4){const _0x12b4fd=a56_0x445a,_0x5aea1c=_0x5365f5();while(!![]){try{const _0x47e134=-parseInt(_0x12b4fd(0x13e))/0x1*(-parseInt(_0x12b4fd(0x142))/0x2)+-parseInt(_0x12b4fd(0x148))/0x3*(-parseInt(_0x12b4fd(0x137))/0x4)+-parseInt(_0x12b4fd(0x15a))/0x5+-parseInt(_0x12b4fd(0x155))/0x6*(parseInt(_0x12b4fd(0x15c))/0x7)+parseInt(_0x12b4fd(0x165))/0x8*(parseInt(_0x12b4fd(0x163))/0x9)+-parseInt(_0x12b4fd(0x13a))/0xa+parseInt(_0x12b4fd(0x14b))/0xb;if(_0x47e134===_0x402ea4)break;else _0x5aea1c['push'](_0x5aea1c['shift']());}catch(_0x2442c1){_0x5aea1c['push'](_0x5aea1c['shift']());}}}(a56_0x580f,0x2a873));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x3c69c1){const _0x1b5d67=a56_0x445a,_0x3799d4=_0x3c69c1[_0x1b5d67(0x146)]('key'),_0x28fe40=_0x3c69c1['str'](_0x1b5d67(0x13b));if(!_0x3799d4)throw CliErrors[_0x1b5d67(0x149)](_0x1b5d67(0x168),_0x1b5d67(0x166)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x28fe40===undefined||_0x28fe40==='')throw CliErrors[_0x1b5d67(0x149)](_0x1b5d67(0x140),_0x1b5d67(0x166)+CLI_BIN_NAME+_0x1b5d67(0x143));let _0x2d8600=_0x3799d4,_0x75cc31=_0x28fe40;if(_0x28fe40[_0x1b5d67(0x157)]>0x1f4)throw CliErrors[_0x1b5d67(0x149)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x3799d4===_0x1b5d67(0x154))throw CliErrors[_0x1b5d67(0x149)](_0x1b5d67(0x150));if(!isTopLevelConfigKey(_0x3799d4))throw CliErrors['validation'](_0x1b5d67(0x13f)+_0x3799d4+_0x1b5d67(0x14f),_0x1b5d67(0x145)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x3799d4]&&!CONFIG_ENUM_VALUES[_0x3799d4][_0x1b5d67(0x152)](_0x28fe40))throw CliErrors[_0x1b5d67(0x149)](_0x1b5d67(0x14c)+_0x3799d4+_0x1b5d67(0x13c)+CONFIG_ENUM_VALUES[_0x3799d4][_0x1b5d67(0x141)](',\x20'));if(_0x3799d4===_0x1b5d67(0x151)&&!normalizeLocale(_0x28fe40))throw CliErrors['validation'](_0x1b5d67(0x153),_0x1b5d67(0x156));DOMAIN_CONFIG_FIELDS[_0x1b5d67(0x152)](_0x3799d4)&&(_0x75cc31=normalizeDomainOrigin(_0x3799d4,_0x28fe40));const _0x787932={'global':_0x3c69c1['bool'](_0x1b5d67(0x15d))},_0x1d4685=resolveWriteScope(_0x787932),_0xc161e7=readScopedConfig(_0x1d4685);_0x3799d4===_0x1b5d67(0x138)&&(_0x2d8600=_0x1b5d67(0x15e),delete _0xc161e7[_0x1b5d67(0x138)]);_0x3799d4===_0x1b5d67(0x151)&&(_0x75cc31=normalizeLocale(_0x28fe40));if(_0x3799d4===_0x1b5d67(0x144)){_0x75cc31=normalizeEnv(_0x28fe40);if(!isProduction(_0x75cc31)&&!isDaily(_0x75cc31))throw CliErrors['validation'](_0x1b5d67(0x15f),_0x1b5d67(0x162));}if(_0x3799d4===_0x1b5d67(0x15e)){const _0x41baea=_0xc161e7[_0x1b5d67(0x14d)]&&typeof _0xc161e7[_0x1b5d67(0x14d)]==='object'?Object[_0x1b5d67(0x14a)](_0xc161e7['apps']):[];if(_0x41baea['length']>0x0)throw CliErrors[_0x1b5d67(0x149)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x1b5d67(0x161)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x75cc31+_0x1b5d67(0x139)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x45b713=buildCanonicalProjectConfig({..._0xc161e7},{'appCodes':[_0x75cc31],'env':typeof _0xc161e7[_0x1b5d67(0x144)]===_0x1b5d67(0x14e)?_0xc161e7[_0x1b5d67(0x144)]:undefined});writeScopedConfig(_0x45b713,_0x1d4685);const _0x451346=_0x1d4685===_0x1b5d67(0x15d)?_0x1b5d67(0x164):_0x1b5d67(0x169);return{'ok':!![],'message':'✓\x20'+_0x451346+_0x1b5d67(0x167)+_0x75cc31+'\x20(stored\x20as\x20a\x20single\x20app\x20profile)'};}_0xc161e7[_0x2d8600]=_0x75cc31,writeScopedConfig(_0xc161e7,_0x1d4685);const _0x207e53=_0x1d4685===_0x1b5d67(0x15d)?_0x1b5d67(0x164):_0x1b5d67(0x169);return{'ok':!![],'message':'✓\x20'+_0x207e53+'\x20'+_0x2d8600+'\x20set\x20to:\x20'+_0x75cc31};}function a56_0x445a(_0x39769e,_0x4e3e19){_0x39769e=_0x39769e-0x137;const _0x580fd7=a56_0x580f();let _0x445af2=_0x580fd7[_0x39769e];return _0x445af2;}export const configSetDefinition={'service':a56_0x2ad338(0x13d),'command':a56_0x2ad338(0x147),'description':a56_0x2ad338(0x160),'risk':a56_0x2ad338(0x16a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a56_0x2ad338(0x15b),'type':a56_0x2ad338(0x14e),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a56_0x2ad338(0x13b),'type':a56_0x2ad338(0x14e),'description':a56_0x2ad338(0x158),'required':!![]},{'name':a56_0x2ad338(0x15d),'type':a56_0x2ad338(0x159),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x2b7b30,_0x4efae7){var _0x507ea9=a57_0x5ed1,_0x55d8af=_0x2b7b30();while(!![]){try{var _0x5343db=-parseInt(_0x507ea9(0x13a))/0x1+-parseInt(_0x507ea9(0x13c))/0x2*(parseInt(_0x507ea9(0x13d))/0x3)+-parseInt(_0x507ea9(0x13e))/0x4+parseInt(_0x507ea9(0x139))/0x5+parseInt(_0x507ea9(0x141))/0x6*(-parseInt(_0x507ea9(0x13f))/0x7)+-parseInt(_0x507ea9(0x138))/0x8+-parseInt(_0x507ea9(0x144))/0x9*(-parseInt(_0x507ea9(0x146))/0xa);if(_0x5343db===_0x4efae7)break;else _0x55d8af['push'](_0x55d8af['shift']());}catch(_0x3ee839){_0x55d8af['push'](_0x55d8af['shift']());}}}(a57_0x33bd,0x50aca));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a57_0x5ed1(_0x9fe2a5,_0x5525bc){_0x9fe2a5=_0x9fe2a5-0x138;var _0x33bd9b=a57_0x33bd();var _0x5ed1b0=_0x33bd9b[_0x9fe2a5];return _0x5ed1b0;}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};function a57_0x33bd(){var _0x50dab7=['1500072mpiylY','812820jausuz','293867oxbRFw','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','36VCNhiw','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','validation','2529XVtIzr','global','38530vhCQQT','3191872PsDDhc','3203830BuUNfk','38918OfuJCG','project','2KncFnX'];a57_0x33bd=function(){return _0x50dab7;};return a57_0x33bd();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x52d2e8){var _0x31114e=a57_0x5ed1;if(_0x52d2e8['global'])return _0x31114e(0x145);if(!isInProject())throw CliErrors[_0x31114e(0x143)](_0x31114e(0x142),_0x31114e(0x140)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0x31114e(0x13b);}export function readScopedConfig(_0x435a3f){return readConfigFile(resolveWriteConfigPath(_0x435a3f));}export function writeScopedConfig(_0x45c29e,_0x3ef051){writeConfigFile(resolveWriteConfigPath(_0x3ef051),_0x45c29e);}
1
+ (function(_0x4cfa0b,_0x549c61){var _0x4deac7=a57_0x5e4b,_0x8ac8fa=_0x4cfa0b();while(!![]){try{var _0x15d337=parseInt(_0x4deac7(0xca))/0x1+-parseInt(_0x4deac7(0xcd))/0x2+-parseInt(_0x4deac7(0xce))/0x3*(parseInt(_0x4deac7(0xd0))/0x4)+parseInt(_0x4deac7(0xcf))/0x5+-parseInt(_0x4deac7(0xc9))/0x6*(parseInt(_0x4deac7(0xcb))/0x7)+-parseInt(_0x4deac7(0xd3))/0x8+parseInt(_0x4deac7(0xd4))/0x9;if(_0x15d337===_0x549c61)break;else _0x8ac8fa['push'](_0x8ac8fa['shift']());}catch(_0x3204ff){_0x8ac8fa['push'](_0x8ac8fa['shift']());}}}(a57_0x7991,0x7762e));function a57_0x5e4b(_0x1f2f03,_0x2e1b24){_0x1f2f03=_0x1f2f03-0xc9;var _0x7991be=a57_0x7991();var _0x5e4b3e=_0x7991be[_0x1f2f03];return _0x5e4b3e;}function a57_0x7991(){var _0x5565bf=['3262635mmyEDB','100tpvsKQ','global','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','7053712BDRgDR','7729767EezNAP','391410RipoPH','955783wMrifs','21XgnbCH','project','1160146ubzhzI','38481FWOmGf'];a57_0x7991=function(){return _0x5565bf;};return a57_0x7991();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x125dec){var _0x3dd280=a57_0x5e4b;if(_0x125dec[_0x3dd280(0xd1)])return _0x3dd280(0xd1);if(!isInProject())throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x3dd280(0xd2)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0x3dd280(0xcc);}export function readScopedConfig(_0x212d47){return readConfigFile(resolveWriteConfigPath(_0x212d47));}export function writeScopedConfig(_0x339c14,_0x45c617){writeConfigFile(resolveWriteConfigPath(_0x45c617),_0x339c14);}
@@ -1 +1 @@
1
- const a58_0x2ed5af=a58_0x4ca9;(function(_0x3ab0fc,_0xee1078){const _0x1671c6=a58_0x4ca9,_0x4e2abe=_0x3ab0fc();while(!![]){try{const _0x220ad6=-parseInt(_0x1671c6(0x1cd))/0x1*(-parseInt(_0x1671c6(0x1d7))/0x2)+-parseInt(_0x1671c6(0x199))/0x3+parseInt(_0x1671c6(0x1b1))/0x4+parseInt(_0x1671c6(0x1ba))/0x5*(parseInt(_0x1671c6(0x1a9))/0x6)+-parseInt(_0x1671c6(0x1c8))/0x7+parseInt(_0x1671c6(0x1b0))/0x8+-parseInt(_0x1671c6(0x19c))/0x9;if(_0x220ad6===_0xee1078)break;else _0x4e2abe['push'](_0x4e2abe['shift']());}catch(_0x557245){_0x4e2abe['push'](_0x4e2abe['shift']());}}}(a58_0x347c,0x81b4a));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';function a58_0x347c(){const _0x5c4c3a=['--business-group\x20is\x20required','12024585myspXv','trim','sourceType','--code\x20is\x20required','businessGroup','extend','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','dbtableConfig','found','str','hasOwnProperty','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','code','13980jxkZOo','business-group','length','message','dataset','modelId','update','8413888jWhCdX','1920304oygMKe','apiError','kind','payload','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','/smartapi/question/er-config/business-group/edit','object','isFinite','data','835tdFbLZ',',\x20actual\x20','dbLinkId','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','toUpperCase','path','write','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','Update\x20business\x20scenario\x20group','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','Expected\x20','keys','validation','name','234080FjRebD','string','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','call','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','175TbdXgd','prototype','datasetId','backend','appCode','number','DB_TABLE','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','stringify','source','10036YIAnpJ','dbTableSelector','tableName','datasetName','expect-business-group','metadata','dbId','isArray','unchanged','db-table','2694879QChheo','expectBusinessGroup'];a58_0x347c=function(){return _0x5c4c3a;};return a58_0x347c();}import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH='/smartapi/dblink/updateTableBusinessGroup',METADATA_BACKEND_PATH=a58_0x2ed5af(0x1b6),UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x13896e,input:_0xa03f8e,dryRun:_0x5a8001}){const _0x1cbbbc=a58_0x2ed5af;validateInput(_0xa03f8e);const _0x514ada=normalizeBusinessGroupArgument(_0xa03f8e[_0x1cbbbc(0x1a0)]),_0x53a32e=await getDatasetDetail(_0xa03f8e[_0x1cbbbc(0x1a8)]),_0x559dd2=resolveBusinessGroupDataset(_0x53a32e,_0xa03f8e['code']);assertBusinessGroupUpdateSupported(_0x559dd2,_0x514ada);const _0x3eafa4=loadCurrentBusinessGroup(_0x53a32e,_0x559dd2);assertExpectedBusinessGroup(_0x3eafa4,_0xa03f8e[_0x1cbbbc(0x19a)]);const _0x16c3a0=buildBackendPlan(_0x13896e,_0x559dd2,_0x514ada),_0x59b900=_0x3eafa4!==_0x514ada;let _0x3e67c2;if(_0x59b900&&!_0x5a8001){_0x16c3a0[_0x1cbbbc(0x1b3)]===_0x1cbbbc(0x198)?await updateDbTableBusinessGroup(_0x16c3a0[_0x1cbbbc(0x1b4)]):await updateErBusinessGroup(_0x16c3a0[_0x1cbbbc(0x1b4)]);const _0x185bfe=await getDatasetDetail(_0x559dd2[_0x1cbbbc(0x1a8)]),_0x30ffcc=resolveBusinessGroupDataset(_0x185bfe,_0x559dd2['code']),_0x7edb51=loadCurrentBusinessGroup(_0x185bfe,_0x30ffcc);if(_0x7edb51!==_0x514ada)throw CliErrors[_0x1cbbbc(0x1b2)](_0x1cbbbc(0x1b5),_0x1cbbbc(0x1c4)+JSON[_0x1cbbbc(0x1d5)](displayBusinessGroup(_0x514ada))+',\x20actual\x20'+JSON[_0x1cbbbc(0x1d5)](displayBusinessGroup(_0x7edb51))+'.');_0x3e67c2={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x7edb51)}};}else!_0x59b900&&(_0x3e67c2={'verified':!![],'status':_0x1cbbbc(0x197),'afterReadback':{'businessGroup':displayBusinessGroup(_0x3eafa4)}});const _0x11bf04={'operation':_0x1cbbbc(0x1af),'appCode':_0x13896e,'selector':{'code':_0x559dd2[_0x1cbbbc(0x1a8)]},'dataset':{'id':_0x559dd2['id'],'code':_0x559dd2[_0x1cbbbc(0x1a8)],'name':_0x559dd2[_0x1cbbbc(0x1c7)],'sourceType':_0x559dd2[_0x1cbbbc(0x19e)]},'before':{'businessGroup':displayBusinessGroup(_0x3eafa4)},'after':{'businessGroup':displayBusinessGroup(_0x514ada)},'changed':_0x59b900,'dryRun':_0x5a8001,'submitted':_0x59b900&&!_0x5a8001,'backend':{'method':_0x16c3a0['method'],'path':_0x16c3a0[_0x1cbbbc(0x1bf)],'payload':_0x16c3a0[_0x1cbbbc(0x1b4)]},..._0x3e67c2?{'verification':_0x3e67c2}:{},'warnings':[]};return{'ok':!![],'data':_0x11bf04,'message':_0x59b900?_0x5a8001?_0x1cbbbc(0x1ca)+_0x559dd2['code']:_0x1cbbbc(0x1d4)+_0x559dd2[_0x1cbbbc(0x1a8)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x559dd2['code']};}export const datasetBusinessGroupUpdate={'service':'dataset','command':'business-group-update','description':a58_0x2ed5af(0x1c2),'risk':a58_0x2ed5af(0x1c0),'flags':[CODE_FLAG,{'name':a58_0x2ed5af(0x1aa),'type':'string','required':!![],'description':a58_0x2ed5af(0x1c3)},{'name':a58_0x2ed5af(0x1db),'type':a58_0x2ed5af(0x1c9),'required':![],'description':a58_0x2ed5af(0x1a7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3ab76c){validateInput(readBusinessGroupUpdateInput(_0x3ab76c));},async 'dryRun'(_0x2d1d61){const _0x3856f4=a58_0x2ed5af,_0x1e3a20=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2d1d61['appCode'],'input':readBusinessGroupUpdateInput(_0x2d1d61),'dryRun':!![]});return{'method':_0x1e3a20['data'][_0x3856f4(0x1d0)]['method'],'url':_0x1e3a20[_0x3856f4(0x1b9)]['backend'][_0x3856f4(0x1bf)],'body':_0x1e3a20['data']['backend'][_0x3856f4(0x1b4)],'description':_0x1e3a20[_0x3856f4(0x1ac)],..._0x1e3a20[_0x3856f4(0x1b9)]};},async 'execute'(_0x4bd191){const _0x1807fb=a58_0x2ed5af;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x4bd191[_0x1807fb(0x1d1)],'input':readBusinessGroupUpdateInput(_0x4bd191),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x19062c){const _0x2e1136=a58_0x2ed5af,_0x3d4ea9=_0x19062c[_0x2e1136(0x1a5)](_0x2e1136(0x1db));return{'code':trim(_0x19062c[_0x2e1136(0x1a5)](_0x2e1136(0x1a8))),'businessGroup':_0x19062c['str'](_0x2e1136(0x1aa)),'expectBusinessGroup':_0x3d4ea9===undefined||_0x3d4ea9===''?undefined:_0x3d4ea9};}function validateInput(_0x1d5331){const _0x1af983=a58_0x2ed5af;if(!trim(_0x1d5331[_0x1af983(0x1a8)]))throw CliErrors['validation'](_0x1af983(0x19f));if(_0x1d5331[_0x1af983(0x1a0)]===undefined)throw CliErrors[_0x1af983(0x1c6)](_0x1af983(0x19b));if(!trim(_0x1d5331[_0x1af983(0x1a0)]))throw CliErrors[_0x1af983(0x1c6)]('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x887b9a,_0x2f089b){const _0x22fad9=a58_0x2ed5af;if(_0x887b9a[_0x22fad9(0x19e)]==='DB_TABLE'&&!_0x2f089b)throw CliErrors['validation'](_0x22fad9(0x1cc));}function resolveBusinessGroupDataset(_0xa40608,_0x2a8298){const _0x1493f7=a58_0x2ed5af,_0x2bdd5d=asPlainObject(_0xa40608[_0x1493f7(0x1ad)]),_0x500e8d=asPlainObject(_0xa40608[_0x1493f7(0x1a3)]),_0x5adfaa=resolveSourceType(_0xa40608,_0x2bdd5d,_0x500e8d),_0x4d3c96=firstString(_0xa40608['modelCode'],_0xa40608[_0x1493f7(0x1a8)],_0x2bdd5d['datasetCode'],_0x2a8298)||_0x2a8298;return{'id':firstNumber(_0xa40608[_0x1493f7(0x1ae)],_0xa40608['id'],_0x2bdd5d[_0x1493f7(0x1cf)])??firstString(_0xa40608['modelId'],_0xa40608['id'],_0x2bdd5d[_0x1493f7(0x1cf)])??null,'code':_0x4d3c96,'name':firstString(_0xa40608[_0x1493f7(0x1c7)],_0x2bdd5d[_0x1493f7(0x1da)],_0x2bdd5d['name'])||null,'sourceType':_0x5adfaa,'dbTableSelector':_0x5adfaa===_0x1493f7(0x1d3)?{'dbLinkId':firstNumber(_0x500e8d[_0x1493f7(0x1dd)]),'tableName':firstString(_0x500e8d['tableName'])||null}:null};}function resolveSourceType(_0x21c5c8,_0xa0b699,_0x4d81cf){const _0x54fc69=a58_0x2ed5af,_0x4f8162=firstString(_0x21c5c8[_0x54fc69(0x1d6)],_0x21c5c8['sourceType'],_0xa0b699[_0x54fc69(0x1d6)],_0xa0b699['sourceType'])?.[_0x54fc69(0x19d)]()[_0x54fc69(0x1be)]();if(_0x4f8162===_0x54fc69(0x1d3)||_0x4f8162==='METADATA')return _0x4f8162;if(Object[_0x54fc69(0x1c5)](_0x4d81cf)[_0x54fc69(0x1ab)]>0x0)return _0x54fc69(0x1d3);throw CliErrors['validation'](_0x54fc69(0x1bd));}function loadCurrentBusinessGroup(_0x20c236,_0x1e129b){const _0x13a7e0=a58_0x2ed5af,_0xa3db18=readBusinessGroupFromDatasetDetail(_0x20c236,_0x1e129b[_0x13a7e0(0x19e)]);if(_0xa3db18[_0x13a7e0(0x1a4)])return normalizeBusinessGroup(_0xa3db18['value']);return'';}function readBusinessGroupFromDatasetDetail(_0x4f15c0,_0x39151e){const _0x2ff178=a58_0x2ed5af,_0x4c5003=asPlainObject(_0x4f15c0[_0x2ff178(0x1ad)]),_0x100ec3=firstPresent(_0x4f15c0['businessGroup']);if(_0x100ec3[_0x2ff178(0x1a4)])return _0x100ec3;const _0x5d8f0b=firstPresent(_0x4c5003[_0x2ff178(0x1a0)]);if(_0x5d8f0b[_0x2ff178(0x1a4)])return _0x5d8f0b;if(_0x39151e==='DB_TABLE')return{'found':![]};const _0x30af31=readBusinessGroupFromExtend(_0x4f15c0[_0x2ff178(0x1a1)]);if(_0x30af31[_0x2ff178(0x1a4)])return _0x30af31;return readBusinessGroupFromExtend(_0x4c5003['extend']);}function readBusinessGroupFromExtend(_0x57030b){const _0x112a16=a58_0x2ed5af;if(_0x57030b===undefined||_0x57030b===null||_0x57030b==='')return{'found':![]};if(typeof _0x57030b===_0x112a16(0x1c9))try{const _0x23578f=JSON['parse'](_0x57030b);return readBusinessGroupFromExtend(_0x23578f);}catch{return{'found':![]};}const _0x1ebe2d=asPlainObject(_0x57030b);if(Object[_0x112a16(0x1ce)][_0x112a16(0x1a6)][_0x112a16(0x1cb)](_0x1ebe2d,_0x112a16(0x1a0)))return{'found':!![],'value':_0x1ebe2d[_0x112a16(0x1a0)]};return{'found':![]};}function a58_0x4ca9(_0x3df2e7,_0x2bd703){_0x3df2e7=_0x3df2e7-0x196;const _0x347cdd=a58_0x347c();let _0x4ca924=_0x347cdd[_0x3df2e7];return _0x4ca924;}function firstPresent(..._0x5bc476){for(const _0x19d01b of _0x5bc476){if(_0x19d01b!==undefined&&_0x19d01b!==null)return{'found':!![],'value':_0x19d01b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2fda0c,_0x10b638){const _0x50c991=a58_0x2ed5af;if(_0x10b638===undefined)return;const _0x160bf4=normalizeBusinessGroupArgument(_0x10b638);if(_0x2fda0c!==_0x160bf4)throw CliErrors[_0x50c991(0x1c6)]('Expectation\x20mismatch\x20at\x20businessGroup','Expected\x20'+JSON[_0x50c991(0x1d5)](_0x160bf4)+_0x50c991(0x1bb)+JSON['stringify'](_0x2fda0c));}function buildBackendPlan(_0x212e3e,_0x3447c9,_0x3c3199){const _0xe84934=a58_0x2ed5af;if(_0x3447c9[_0xe84934(0x19e)]==='DB_TABLE'){if(!_0x3447c9['dbTableSelector']||_0x3447c9[_0xe84934(0x1d8)][_0xe84934(0x1bc)]===null||!_0x3447c9['dbTableSelector'][_0xe84934(0x1d9)])throw CliErrors['validation'](_0xe84934(0x1a2),_0xe84934(0x1c1));return{'kind':_0xe84934(0x198),'method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x3447c9[_0xe84934(0x1d8)][_0xe84934(0x1bc)],'tableName':_0x3447c9['dbTableSelector'][_0xe84934(0x1d9)],'businessGroup':_0x3c3199}};}return{'kind':_0xe84934(0x1dc),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x212e3e,'datasetCode':_0x3447c9[_0xe84934(0x1a8)],'businessGroup':_0x3c3199}};}function normalizeBusinessGroup(_0x5ec59b){const _0x1dbc55=a58_0x2ed5af;if(_0x5ec59b===undefined||_0x5ec59b===null)return'';return String(_0x5ec59b)[_0x1dbc55(0x19d)]();}function normalizeBusinessGroupArgument(_0x36926a){const _0x397db3=normalizeBusinessGroup(_0x36926a);return _0x397db3===UNGROUPED_BUSINESS_GROUP?'':_0x397db3;}function displayBusinessGroup(_0x2936e6){return _0x2936e6||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x34e491){const _0x2b2e85=a58_0x2ed5af;if(!_0x34e491||typeof _0x34e491!==_0x2b2e85(0x1b7)||Array[_0x2b2e85(0x196)](_0x34e491))return{};return _0x34e491;}function firstString(..._0x5158be){const _0x530908=a58_0x2ed5af;for(const _0x466bff of _0x5158be){if(typeof _0x466bff==='string'&&_0x466bff[_0x530908(0x19d)]())return _0x466bff[_0x530908(0x19d)]();if(typeof _0x466bff===_0x530908(0x1d2)&&Number[_0x530908(0x1b8)](_0x466bff))return String(_0x466bff);}return undefined;}function firstNumber(..._0x162c6f){const _0xba264=a58_0x2ed5af;for(const _0x2e1125 of _0x162c6f){if(typeof _0x2e1125===_0xba264(0x1d2)&&Number[_0xba264(0x1b8)](_0x2e1125))return _0x2e1125;if(typeof _0x2e1125===_0xba264(0x1c9)&&_0x2e1125[_0xba264(0x19d)]()&&Number[_0xba264(0x1b8)](Number(_0x2e1125)))return Number(_0x2e1125);}return null;}function trim(_0x278ec){return String(_0x278ec||'')['trim']();}
1
+ const a58_0x5efe81=a58_0x28da;(function(_0x35fefa,_0x4f1b53){const _0x164369=a58_0x28da,_0x47eb77=_0x35fefa();while(!![]){try{const _0x4c196f=parseInt(_0x164369(0xd5))/0x1+-parseInt(_0x164369(0xb0))/0x2+-parseInt(_0x164369(0xeb))/0x3*(-parseInt(_0x164369(0xbb))/0x4)+parseInt(_0x164369(0xef))/0x5*(parseInt(_0x164369(0xd4))/0x6)+-parseInt(_0x164369(0xcd))/0x7*(parseInt(_0x164369(0xe6))/0x8)+parseInt(_0x164369(0xad))/0x9*(parseInt(_0x164369(0xc0))/0xa)+-parseInt(_0x164369(0xbc))/0xb*(parseInt(_0x164369(0xda))/0xc);if(_0x4c196f===_0x4f1b53)break;else _0x47eb77['push'](_0x47eb77['shift']());}catch(_0x52c480){_0x47eb77['push'](_0x47eb77['shift']());}}}(a58_0x4c3a,0x28716));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';function a58_0x28da(_0x38b14c,_0x44ad4a){_0x38b14c=_0x38b14c-0xa8;const _0x4c3a68=a58_0x4c3a();let _0x28da09=_0x4c3a68[_0x38b14c];return _0x28da09;}import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH=a58_0x5efe81(0xbf),METADATA_BACKEND_PATH=a58_0x5efe81(0xf1),UNGROUPED_BUSINESS_GROUP=a58_0x5efe81(0xc1);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x19a43b,input:_0x4ccfba,dryRun:_0x14da12}){const _0x1953e7=a58_0x5efe81;validateInput(_0x4ccfba);const _0x5e3246=normalizeBusinessGroupArgument(_0x4ccfba[_0x1953e7(0xb3)]),_0x859a9c=await getDatasetDetail(_0x4ccfba['code']),_0x5c0637=resolveBusinessGroupDataset(_0x859a9c,_0x4ccfba[_0x1953e7(0xf0)]);assertBusinessGroupUpdateSupported(_0x5c0637,_0x5e3246);const _0x4b7187=loadCurrentBusinessGroup(_0x859a9c,_0x5c0637);assertExpectedBusinessGroup(_0x4b7187,_0x4ccfba[_0x1953e7(0xaa)]);const _0x4e7333=buildBackendPlan(_0x19a43b,_0x5c0637,_0x5e3246),_0x47325c=_0x4b7187!==_0x5e3246;let _0x562302;if(_0x47325c&&!_0x14da12){_0x4e7333[_0x1953e7(0xf2)]===_0x1953e7(0xd2)?await updateDbTableBusinessGroup(_0x4e7333[_0x1953e7(0xd7)]):await updateErBusinessGroup(_0x4e7333[_0x1953e7(0xd7)]);const _0x591698=await getDatasetDetail(_0x5c0637[_0x1953e7(0xf0)]),_0x1a7967=resolveBusinessGroupDataset(_0x591698,_0x5c0637[_0x1953e7(0xf0)]),_0x32651b=loadCurrentBusinessGroup(_0x591698,_0x1a7967);if(_0x32651b!==_0x5e3246)throw CliErrors['apiError'](_0x1953e7(0xcb),_0x1953e7(0xba)+JSON[_0x1953e7(0xab)](displayBusinessGroup(_0x5e3246))+_0x1953e7(0xe0)+JSON[_0x1953e7(0xab)](displayBusinessGroup(_0x32651b))+'.');_0x562302={'verified':!![],'status':_0x1953e7(0xc7),'afterReadback':{'businessGroup':displayBusinessGroup(_0x32651b)}};}else!_0x47325c&&(_0x562302={'verified':!![],'status':'unchanged','afterReadback':{'businessGroup':displayBusinessGroup(_0x4b7187)}});const _0x266895={'operation':_0x1953e7(0xd1),'appCode':_0x19a43b,'selector':{'code':_0x5c0637[_0x1953e7(0xf0)]},'dataset':{'id':_0x5c0637['id'],'code':_0x5c0637[_0x1953e7(0xf0)],'name':_0x5c0637[_0x1953e7(0xb2)],'sourceType':_0x5c0637[_0x1953e7(0xd0)]},'before':{'businessGroup':displayBusinessGroup(_0x4b7187)},'after':{'businessGroup':displayBusinessGroup(_0x5e3246)},'changed':_0x47325c,'dryRun':_0x14da12,'submitted':_0x47325c&&!_0x14da12,'backend':{'method':_0x4e7333['method'],'path':_0x4e7333[_0x1953e7(0xb9)],'payload':_0x4e7333['payload']},..._0x562302?{'verification':_0x562302}:{},'warnings':[]};return{'ok':!![],'data':_0x266895,'message':_0x47325c?_0x14da12?_0x1953e7(0xdc)+_0x5c0637[_0x1953e7(0xf0)]:_0x1953e7(0xe7)+_0x5c0637[_0x1953e7(0xf0)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x5c0637[_0x1953e7(0xf0)]};}export const datasetBusinessGroupUpdate={'service':a58_0x5efe81(0xc6),'command':a58_0x5efe81(0xd3),'description':a58_0x5efe81(0xf4),'risk':a58_0x5efe81(0xa9),'flags':[CODE_FLAG,{'name':a58_0x5efe81(0xe4),'type':a58_0x5efe81(0xdb),'required':!![],'description':a58_0x5efe81(0xe9)},{'name':a58_0x5efe81(0xdd),'type':'string','required':![],'description':a58_0x5efe81(0xdf)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x350323){validateInput(readBusinessGroupUpdateInput(_0x350323));},async 'dryRun'(_0x123c28){const _0x559a3a=a58_0x5efe81,_0x1b5211=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x123c28[_0x559a3a(0xcf)],'input':readBusinessGroupUpdateInput(_0x123c28),'dryRun':!![]});return{'method':_0x1b5211[_0x559a3a(0xb5)][_0x559a3a(0xb4)][_0x559a3a(0xc2)],'url':_0x1b5211[_0x559a3a(0xb5)]['backend']['path'],'body':_0x1b5211[_0x559a3a(0xb5)][_0x559a3a(0xb4)]['payload'],'description':_0x1b5211['message'],..._0x1b5211[_0x559a3a(0xb5)]};},async 'execute'(_0x1b3305){const _0x4d7f81=a58_0x5efe81;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x1b3305[_0x4d7f81(0xcf)],'input':readBusinessGroupUpdateInput(_0x1b3305),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x1437f3){const _0x4f3b5f=a58_0x5efe81,_0x39db7f=_0x1437f3[_0x4f3b5f(0xe1)](_0x4f3b5f(0xdd));return{'code':trim(_0x1437f3[_0x4f3b5f(0xe1)](_0x4f3b5f(0xf0))),'businessGroup':_0x1437f3[_0x4f3b5f(0xe1)](_0x4f3b5f(0xe4)),'expectBusinessGroup':_0x39db7f===undefined||_0x39db7f===''?undefined:_0x39db7f};}function validateInput(_0x100e97){const _0x34ec2c=a58_0x5efe81;if(!trim(_0x100e97[_0x34ec2c(0xf0)]))throw CliErrors['validation'](_0x34ec2c(0xb8));if(_0x100e97[_0x34ec2c(0xb3)]===undefined)throw CliErrors['validation']('--business-group\x20is\x20required');if(!trim(_0x100e97[_0x34ec2c(0xb3)]))throw CliErrors[_0x34ec2c(0xac)](_0x34ec2c(0xc9));}function assertBusinessGroupUpdateSupported(_0x32dfb5,_0x2f2b99){const _0x565318=a58_0x5efe81;if(_0x32dfb5[_0x565318(0xd0)]===_0x565318(0xcc)&&!_0x2f2b99)throw CliErrors[_0x565318(0xac)]('Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.');}function resolveBusinessGroupDataset(_0x7f0c0a,_0x4245df){const _0x476ec3=a58_0x5efe81,_0xa10ee7=asPlainObject(_0x7f0c0a[_0x476ec3(0xc6)]),_0x30082e=asPlainObject(_0x7f0c0a[_0x476ec3(0xec)]),_0x5a92f0=resolveSourceType(_0x7f0c0a,_0xa10ee7,_0x30082e),_0x1aaef6=firstString(_0x7f0c0a[_0x476ec3(0xae)],_0x7f0c0a[_0x476ec3(0xf0)],_0xa10ee7[_0x476ec3(0xe2)],_0x4245df)||_0x4245df;return{'id':firstNumber(_0x7f0c0a[_0x476ec3(0xc4)],_0x7f0c0a['id'],_0xa10ee7[_0x476ec3(0xed)])??firstString(_0x7f0c0a['modelId'],_0x7f0c0a['id'],_0xa10ee7['datasetId'])??null,'code':_0x1aaef6,'name':firstString(_0x7f0c0a[_0x476ec3(0xb2)],_0xa10ee7['datasetName'],_0xa10ee7['name'])||null,'sourceType':_0x5a92f0,'dbTableSelector':_0x5a92f0===_0x476ec3(0xcc)?{'dbLinkId':firstNumber(_0x30082e[_0x476ec3(0xe5)]),'tableName':firstString(_0x30082e['tableName'])||null}:null};}function resolveSourceType(_0x3de5ca,_0x4bb19b,_0x5361d3){const _0x279ee6=a58_0x5efe81,_0x44b839=firstString(_0x3de5ca[_0x279ee6(0xd9)],_0x3de5ca[_0x279ee6(0xd0)],_0x4bb19b[_0x279ee6(0xd9)],_0x4bb19b[_0x279ee6(0xd0)])?.[_0x279ee6(0xbe)]()['toUpperCase']();if(_0x44b839===_0x279ee6(0xcc)||_0x44b839==='METADATA')return _0x44b839;if(Object[_0x279ee6(0xc3)](_0x5361d3)[_0x279ee6(0xca)]>0x0)return _0x279ee6(0xcc);throw CliErrors[_0x279ee6(0xac)](_0x279ee6(0xb7));}function loadCurrentBusinessGroup(_0x3656f3,_0x5b1827){const _0x1e4dd3=a58_0x5efe81,_0x1b5f55=readBusinessGroupFromDatasetDetail(_0x3656f3,_0x5b1827['sourceType']);if(_0x1b5f55[_0x1e4dd3(0xde)])return normalizeBusinessGroup(_0x1b5f55[_0x1e4dd3(0xbd)]);return'';}function readBusinessGroupFromDatasetDetail(_0x3b5b5e,_0x10aa60){const _0x240056=a58_0x5efe81,_0x163df8=asPlainObject(_0x3b5b5e[_0x240056(0xc6)]),_0x573f7c=firstPresent(_0x3b5b5e[_0x240056(0xb3)]);if(_0x573f7c[_0x240056(0xde)])return _0x573f7c;const _0x586819=firstPresent(_0x163df8[_0x240056(0xb3)]);if(_0x586819['found'])return _0x586819;if(_0x10aa60==='DB_TABLE')return{'found':![]};const _0x35f90a=readBusinessGroupFromExtend(_0x3b5b5e[_0x240056(0xf3)]);if(_0x35f90a['found'])return _0x35f90a;return readBusinessGroupFromExtend(_0x163df8['extend']);}function readBusinessGroupFromExtend(_0x3e8af2){const _0x37d260=a58_0x5efe81;if(_0x3e8af2===undefined||_0x3e8af2===null||_0x3e8af2==='')return{'found':![]};if(typeof _0x3e8af2===_0x37d260(0xdb))try{const _0x2dfcd0=JSON[_0x37d260(0xb6)](_0x3e8af2);return readBusinessGroupFromExtend(_0x2dfcd0);}catch{return{'found':![]};}const _0x4f502f=asPlainObject(_0x3e8af2);if(Object[_0x37d260(0xc5)][_0x37d260(0xce)][_0x37d260(0xee)](_0x4f502f,_0x37d260(0xb3)))return{'found':!![],'value':_0x4f502f[_0x37d260(0xb3)]};return{'found':![]};}function firstPresent(..._0x3b6f26){for(const _0x20c230 of _0x3b6f26){if(_0x20c230!==undefined&&_0x20c230!==null)return{'found':!![],'value':_0x20c230};}return{'found':![]};}function assertExpectedBusinessGroup(_0x5e1018,_0x3be133){const _0x1574c2=a58_0x5efe81;if(_0x3be133===undefined)return;const _0x17b084=normalizeBusinessGroupArgument(_0x3be133);if(_0x5e1018!==_0x17b084)throw CliErrors[_0x1574c2(0xac)]('Expectation\x20mismatch\x20at\x20businessGroup',_0x1574c2(0xba)+JSON[_0x1574c2(0xab)](_0x17b084)+_0x1574c2(0xe0)+JSON['stringify'](_0x5e1018));}function buildBackendPlan(_0x3f0c5f,_0x173e03,_0x8b7537){const _0x4b95df=a58_0x5efe81;if(_0x173e03[_0x4b95df(0xd0)]===_0x4b95df(0xcc)){if(!_0x173e03['dbTableSelector']||_0x173e03[_0x4b95df(0xa8)][_0x4b95df(0xd6)]===null||!_0x173e03[_0x4b95df(0xa8)]['tableName'])throw CliErrors[_0x4b95df(0xac)](_0x4b95df(0xaf),_0x4b95df(0xe8));return{'kind':_0x4b95df(0xd2),'method':_0x4b95df(0xe3),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x173e03[_0x4b95df(0xa8)][_0x4b95df(0xd6)],'tableName':_0x173e03[_0x4b95df(0xa8)]['tableName'],'businessGroup':_0x8b7537}};}return{'kind':_0x4b95df(0xc8),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x3f0c5f,'datasetCode':_0x173e03[_0x4b95df(0xf0)],'businessGroup':_0x8b7537}};}function a58_0x4c3a(){const _0x3b2f31=['134339vKouto','dbLinkId','payload','object','source','240QqlQBZ','string','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','expect-business-group','found','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing',',\x20actual\x20','str','datasetCode','POST','business-group','dbId','7832VXPnqa','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','number','78rhFGAI','dbtableConfig','datasetId','call','105PWxmqT','code','/smartapi/question/er-config/business-group/edit','kind','extend','Update\x20business\x20scenario\x20group','dbTableSelector','write','expectBusinessGroup','stringify','validation','819711SwatJD','modelCode','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','490266QgIsDb','isFinite','name','businessGroup','backend','data','parse','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','--code\x20is\x20required','path','Expected\x20','8904xVNdBV','105743SPLlWs','value','trim','/smartapi/dblink/updateTableBusinessGroup','30ozXmDO','ungrouped','method','keys','modelId','prototype','dataset','matched','metadata','--business-group\x20must\x20not\x20be\x20blank','length','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','DB_TABLE','462UvbzZo','hasOwnProperty','appCode','sourceType','update','db-table','business-group-update','57774HjDTwv'];a58_0x4c3a=function(){return _0x3b2f31;};return a58_0x4c3a();}function normalizeBusinessGroup(_0x5712b5){const _0x4a84cb=a58_0x5efe81;if(_0x5712b5===undefined||_0x5712b5===null)return'';return String(_0x5712b5)[_0x4a84cb(0xbe)]();}function normalizeBusinessGroupArgument(_0x4a9b0b){const _0x324c73=normalizeBusinessGroup(_0x4a9b0b);return _0x324c73===UNGROUPED_BUSINESS_GROUP?'':_0x324c73;}function displayBusinessGroup(_0x36105a){return _0x36105a||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x5d8e2a){const _0x535f57=a58_0x5efe81;if(!_0x5d8e2a||typeof _0x5d8e2a!==_0x535f57(0xd8)||Array['isArray'](_0x5d8e2a))return{};return _0x5d8e2a;}function firstString(..._0x1f1285){const _0x5d2bcb=a58_0x5efe81;for(const _0x2a9a88 of _0x1f1285){if(typeof _0x2a9a88===_0x5d2bcb(0xdb)&&_0x2a9a88['trim']())return _0x2a9a88[_0x5d2bcb(0xbe)]();if(typeof _0x2a9a88===_0x5d2bcb(0xea)&&Number[_0x5d2bcb(0xb1)](_0x2a9a88))return String(_0x2a9a88);}return undefined;}function firstNumber(..._0x579829){const _0x538683=a58_0x5efe81;for(const _0x1ff7dd of _0x579829){if(typeof _0x1ff7dd===_0x538683(0xea)&&Number[_0x538683(0xb1)](_0x1ff7dd))return _0x1ff7dd;if(typeof _0x1ff7dd==='string'&&_0x1ff7dd[_0x538683(0xbe)]()&&Number[_0x538683(0xb1)](Number(_0x1ff7dd)))return Number(_0x1ff7dd);}return null;}function trim(_0x2bb7d5){const _0x312601=a58_0x5efe81;return String(_0x2bb7d5||'')[_0x312601(0xbe)]();}
@@ -1 +1 @@
1
- const a59_0x156784=a59_0x25b5;(function(_0x34394e,_0x5cc6c2){const _0x3d6038=a59_0x25b5,_0x5abcb4=_0x34394e();while(!![]){try{const _0x21d8fb=-parseInt(_0x3d6038(0x1a3))/0x1*(parseInt(_0x3d6038(0x1a0))/0x2)+parseInt(_0x3d6038(0x19e))/0x3+-parseInt(_0x3d6038(0x19f))/0x4+-parseInt(_0x3d6038(0x1a8))/0x5+parseInt(_0x3d6038(0x199))/0x6*(parseInt(_0x3d6038(0x195))/0x7)+-parseInt(_0x3d6038(0x1a1))/0x8+parseInt(_0x3d6038(0x1a4))/0x9;if(_0x21d8fb===_0x5cc6c2)break;else _0x5abcb4['push'](_0x5abcb4['shift']());}catch(_0x51dca6){_0x5abcb4['push'](_0x5abcb4['shift']());}}}(a59_0x3eab,0xb2ce3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a59_0x25b5(_0x4df20f,_0x46c7a8){_0x4df20f=_0x4df20f-0x195;const _0x3eab33=a59_0x3eab();let _0x25b53d=_0x3eab33[_0x4df20f];return _0x25b53d;}import{getErBusinessGroupSummary}from'../../core/api-client.js';function a59_0x3eab(){const _0xe82605=['6311020vqvwKx','dbid','27671JaFYQr','appCode','\x20business\x20group(s)\x20for\x20database\x20connection\x20','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','1002dHzVJA','dataset','number','business-groups','DB_TABLE','3512967vGkSFn','5583656voXqbP','4ocXtQW','6952992sKaJyB','length','258403aNjByi','26507655iFcjzt','businessGroup','trim','num'];a59_0x3eab=function(){return _0xe82605;};return a59_0x3eab();}export const datasetBusinessGroups={'service':a59_0x156784(0x19a),'command':a59_0x156784(0x19c),'description':a59_0x156784(0x198),'risk':'read','flags':[{'name':a59_0x156784(0x1a9),'type':a59_0x156784(0x19b),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x37d357){const _0x312cd0=a59_0x156784,_0x4579ee=_0x37d357[_0x312cd0(0x1a7)]('dbid'),_0x34c957=await getErBusinessGroupSummary(_0x37d357[_0x312cd0(0x196)],_0x4579ee),_0x4ce408=_0x34c957['groups']['map'](_0x2272ec=>({..._0x2272ec,'businessGroup':_0x2272ec[_0x312cd0(0x1a5)][_0x312cd0(0x1a6)]()||'ungrouped'}));return{'ok':!![],'data':{..._0x34c957,'groups':_0x4ce408,'scope':_0x312cd0(0x19d)},'message':'Found\x20'+_0x4ce408[_0x312cd0(0x1a2)]+_0x312cd0(0x197)+_0x4579ee};}};
1
+ const a59_0x1193ae=a59_0x3065;function a59_0xb86e(){const _0x202f65=['DB_TABLE','5864089FtmajE','map','5148160gBoYwX','business-groups','134258duYSfg','77000bGCuSe','trim','Found\x20','groups','length','read','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','876305liJzLA','ungrouped','appCode','number','businessGroup','1990720PUhFEX','num','30QWlAsr','1499010PJQgnD','dbid','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA'];a59_0xb86e=function(){return _0x202f65;};return a59_0xb86e();}(function(_0x1504d3,_0x20ca61){const _0x721344=a59_0x3065,_0x5187d6=_0x1504d3();while(!![]){try{const _0x35aad1=-parseInt(_0x721344(0x169))/0x1+-parseInt(_0x721344(0x168))/0x2+parseInt(_0x721344(0x160))/0x3+-parseInt(_0x721344(0x15d))/0x4+-parseInt(_0x721344(0x170))/0x5*(parseInt(_0x721344(0x15f))/0x6)+parseInt(_0x721344(0x164))/0x7+parseInt(_0x721344(0x166))/0x8;if(_0x35aad1===_0x20ca61)break;else _0x5187d6['push'](_0x5187d6['shift']());}catch(_0x18ef7b){_0x5187d6['push'](_0x5187d6['shift']());}}}(a59_0xb86e,0x70fd3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';function a59_0x3065(_0x280c12,_0xb68f19){_0x280c12=_0x280c12-0x15b;const _0xb86e88=a59_0xb86e();let _0x30656b=_0xb86e88[_0x280c12];return _0x30656b;}export const datasetBusinessGroups={'service':'dataset','command':a59_0x1193ae(0x167),'description':a59_0x1193ae(0x162),'risk':a59_0x1193ae(0x16e),'flags':[{'name':a59_0x1193ae(0x161),'type':a59_0x1193ae(0x15b),'required':!![],'description':a59_0x1193ae(0x16f)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x25ed2a){const _0xc6583d=a59_0x1193ae,_0x49b4e8=_0x25ed2a[_0xc6583d(0x15e)](_0xc6583d(0x161)),_0x133f86=await getErBusinessGroupSummary(_0x25ed2a[_0xc6583d(0x172)],_0x49b4e8),_0x29471a=_0x133f86[_0xc6583d(0x16c)][_0xc6583d(0x165)](_0x422a3f=>({..._0x422a3f,'businessGroup':_0x422a3f[_0xc6583d(0x15c)][_0xc6583d(0x16a)]()||_0xc6583d(0x171)}));return{'ok':!![],'data':{..._0x133f86,'groups':_0x29471a,'scope':_0xc6583d(0x163)},'message':_0xc6583d(0x16b)+_0x29471a[_0xc6583d(0x16d)]+'\x20business\x20group(s)\x20for\x20database\x20connection\x20'+_0x49b4e8};}};
@@ -1 +1 @@
1
- const a60_0x15aefe=a60_0xcae7;(function(_0x25c544,_0x150b46){const _0x11b36f=a60_0xcae7,_0x1397f5=_0x25c544();while(!![]){try{const _0x120d0d=parseInt(_0x11b36f(0x1b3))/0x1*(parseInt(_0x11b36f(0x19d))/0x2)+-parseInt(_0x11b36f(0x1ae))/0x3+parseInt(_0x11b36f(0x1a5))/0x4+parseInt(_0x11b36f(0x1ab))/0x5*(parseInt(_0x11b36f(0x1b8))/0x6)+-parseInt(_0x11b36f(0x1aa))/0x7+-parseInt(_0x11b36f(0x1af))/0x8*(parseInt(_0x11b36f(0x1b0))/0x9)+parseInt(_0x11b36f(0x1b2))/0xa;if(_0x120d0d===_0x150b46)break;else _0x1397f5['push'](_0x1397f5['shift']());}catch(_0x3d922e){_0x1397f5['push'](_0x1397f5['shift']());}}}(a60_0x46f4,0xa4ee8));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a60_0x15aefe(0x1a8),'getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x15aefe(0x1ac);function valueToString(_0x4a3b45){const _0x1937fe=a60_0x15aefe;return _0x4a3b45==null?'':String(_0x4a3b45)[_0x1937fe(0x1b4)]();}function a60_0xcae7(_0xcf47c4,_0x42e7c2){_0xcf47c4=_0xcf47c4-0x19d;const _0x46f433=a60_0x46f4();let _0xcae700=_0x46f433[_0xcf47c4];return _0xcae700;}function getDatasetCode(_0x57a4dc){const _0xbf9613=a60_0x15aefe;return valueToString(_0x57a4dc['code']??_0x57a4dc[_0xbf9613(0x1a4)]??_0x57a4dc['dataset']?.[_0xbf9613(0x1bd)]);}function getDatasetName(_0x577bd2){const _0x159517=a60_0x15aefe;return valueToString(_0x577bd2[_0x159517(0x1a2)]??_0x577bd2[_0x159517(0x1c0)]?.['datasetName'])||'unknown';}function getDatasetSource(_0x594fc3){const _0x235f12=a60_0x15aefe;return valueToString(_0x594fc3[_0x235f12(0x1bc)]??_0x594fc3['dataset']?.[_0x235f12(0x1bf)])[_0x235f12(0x1be)]();}function a60_0x46f4(){const _0x2293a9=['getOne','length','name','object','modelCode','2233564VuskfQ','UNKNOWN','SQL\x20schema\x20validation','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','\x20is\x20','3770431cnVwzR','10Shqgph','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','filter','2177382Vmpamt','352TuhJcg','85923dkOdKg','dbId','4277230HRgWjE','1srTSXI','trim','join','dbtable','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','2648640lnUkpG','dbtableConfig','METADATA','validation','source','datasetCode','toUpperCase','sourceType','dataset','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','982122yuwrQj','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','tableName'];a60_0x46f4=function(){return _0x2293a9;};return a60_0x46f4();}function getDbtableConfig(_0x4fac61){const _0x1c4930=a60_0x15aefe,_0xb56317=_0x4fac61[_0x1c4930(0x1b9)]??_0x4fac61[_0x1c4930(0x1b6)];return _0xb56317&&typeof _0xb56317===_0x1c4930(0x1a3)?_0xb56317:{};}export function isDbTableBackedDataset(_0x2c8b51){const _0xc9459c=a60_0x15aefe,_0x2c2f25=getDatasetSource(_0x2c8b51);if(_0x2c2f25===_0xc9459c(0x1ba))return![];const _0x36a309=getDbtableConfig(_0x2c8b51),_0x46895d=_0x36a309[_0xc9459c(0x1b1)]??_0x36a309['id'],_0x1eddc3=valueToString(_0x36a309[_0xc9459c(0x19f)]??_0x2c8b51[_0xc9459c(0x19f)]??_0x2c8b51[_0xc9459c(0x1c0)]?.['tableName']);return _0x46895d!==undefined&&_0x46895d!==null&&_0x1eddc3[_0xc9459c(0x1a1)]>0x0;}export function filterDbTableBackedDatasets(_0x3bbf25){const _0x59d3fb=a60_0x15aefe;return _0x3bbf25[_0x59d3fb(0x1ad)](_0x330b0f=>isDbTableBackedDataset(_0x330b0f));}export function buildDbTableBackedRequirementMessage(_0x292365,_0x67c6f1=a60_0x15aefe(0x1a7)){const _0x4b893f=a60_0x15aefe,_0x5ef6aa=getDatasetSource(_0x292365)||_0x4b893f(0x1a6),_0x20c599=getDatasetName(_0x292365),_0xb8ce97=getDatasetCode(_0x292365),_0x26d861=_0xb8ce97?'\x20('+_0xb8ce97+')':'';return['The\x20current\x20dataset\x20\x22'+_0x20c599+'\x22'+_0x26d861+_0x4b893f(0x1a9)+_0x5ef6aa+'\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20'+_0x67c6f1+'.',_0x4b893f(0x19e),_0x4b893f(0x1c1),_0x4b893f(0x1b7)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x4b893f(0x1a0)]+'.'][_0x4b893f(0x1b5)]('\x20');}export function assertDatasetIsDbTableBacked(_0x1c7d10,_0xa26b18){const _0x3dd4a6=a60_0x15aefe;if(!isDbTableBackedDataset(_0x1c7d10))throw CliErrors[_0x3dd4a6(0x1bb)](buildDbTableBackedRequirementMessage(_0x1c7d10,_0xa26b18));}
1
+ function a60_0xe3b9(_0x4da3ba,_0x3aa5b8){_0x4da3ba=_0x4da3ba-0x182;const _0x2768e=a60_0x2768();let _0xe3b9ce=_0x2768e[_0x4da3ba];return _0xe3b9ce;}const a60_0x3f257d=a60_0xe3b9;(function(_0x4175a3,_0xbb0271){const _0x42fe40=a60_0xe3b9,_0x3f67bd=_0x4175a3();while(!![]){try{const _0x12a62c=-parseInt(_0x42fe40(0x188))/0x1+-parseInt(_0x42fe40(0x193))/0x2+parseInt(_0x42fe40(0x186))/0x3+parseInt(_0x42fe40(0x18a))/0x4*(parseInt(_0x42fe40(0x19d))/0x5)+-parseInt(_0x42fe40(0x197))/0x6*(-parseInt(_0x42fe40(0x19b))/0x7)+parseInt(_0x42fe40(0x194))/0x8*(-parseInt(_0x42fe40(0x1a0))/0x9)+parseInt(_0x42fe40(0x185))/0xa;if(_0x12a62c===_0xbb0271)break;else _0x3f67bd['push'](_0x3f67bd['shift']());}catch(_0x451f3e){_0x3f67bd['push'](_0x3f67bd['shift']());}}}(a60_0x2768,0x49bc8));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a60_0x3f257d(0x1a2),'getOne':a60_0x3f257d(0x19c)};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x3f257d(0x195);function valueToString(_0x7e4e64){const _0x4254bf=a60_0x3f257d;return _0x7e4e64==null?'':String(_0x7e4e64)[_0x4254bf(0x18c)]();}function getDatasetCode(_0xc4556d){const _0x28f59d=a60_0x3f257d;return valueToString(_0xc4556d['code']??_0xc4556d[_0x28f59d(0x191)]??_0xc4556d[_0x28f59d(0x18f)]?.[_0x28f59d(0x1a6)]);}function getDatasetName(_0x45020d){const _0x2518c7=a60_0x3f257d;return valueToString(_0x45020d[_0x2518c7(0x19f)]??_0x45020d[_0x2518c7(0x18f)]?.[_0x2518c7(0x19e)])||'unknown';}function getDatasetSource(_0x3cf9a2){const _0x3d5a0d=a60_0x3f257d;return valueToString(_0x3cf9a2[_0x3d5a0d(0x183)]??_0x3cf9a2[_0x3d5a0d(0x18f)]?.[_0x3d5a0d(0x182)])[_0x3d5a0d(0x199)]();}function getDbtableConfig(_0x2f80d8){const _0x5c1948=a60_0x3f257d,_0x12fe30=_0x2f80d8[_0x5c1948(0x19a)]??_0x2f80d8[_0x5c1948(0x18e)];return _0x12fe30&&typeof _0x12fe30===_0x5c1948(0x1a4)?_0x12fe30:{};}function a60_0x2768(){const _0x49e109=['dbId','2226894kINcvc','SQL\x20schema\x20validation','toUpperCase','dbtableConfig','7CtItpt','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','593035SSneki','datasetName','name','3411DYMQWV','METADATA','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','UNKNOWN','object','length','datasetCode','sourceType','source','\x20is\x20','4330530GIAIsN','810747BpiPTu','tableName','583739bmRRDB','validation','20nvrBPb','The\x20current\x20dataset\x20\x22','trim','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','dbtable','dataset','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','modelCode','filter','769820QQDkYM','8376XTAtSS','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.'];a60_0x2768=function(){return _0x49e109;};return a60_0x2768();}export function isDbTableBackedDataset(_0x2934b2){const _0x1fc283=a60_0x3f257d,_0x2744eb=getDatasetSource(_0x2934b2);if(_0x2744eb===_0x1fc283(0x1a1))return![];const _0x46f1fd=getDbtableConfig(_0x2934b2),_0x138dce=_0x46f1fd[_0x1fc283(0x196)]??_0x46f1fd['id'],_0x1101f2=valueToString(_0x46f1fd['tableName']??_0x2934b2[_0x1fc283(0x187)]??_0x2934b2['dataset']?.[_0x1fc283(0x187)]);return _0x138dce!==undefined&&_0x138dce!==null&&_0x1101f2[_0x1fc283(0x1a5)]>0x0;}export function filterDbTableBackedDatasets(_0x5cae48){const _0x5cb613=a60_0x3f257d;return _0x5cae48[_0x5cb613(0x192)](_0x149db1=>isDbTableBackedDataset(_0x149db1));}export function buildDbTableBackedRequirementMessage(_0x210f2c,_0x4fc211=a60_0x3f257d(0x198)){const _0x49b7dc=a60_0x3f257d,_0x1e2649=getDatasetSource(_0x210f2c)||_0x49b7dc(0x1a3),_0x3e3e18=getDatasetName(_0x210f2c),_0x1db085=getDatasetCode(_0x210f2c),_0x3d7b34=_0x1db085?'\x20('+_0x1db085+')':'';return[_0x49b7dc(0x18b)+_0x3e3e18+'\x22'+_0x3d7b34+_0x49b7dc(0x184)+_0x1e2649+_0x49b7dc(0x18d)+_0x4fc211+'.','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x49b7dc(0x190)+RUNTIME_DATA_ACCESS_COMMANDS[_0x49b7dc(0x192)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x5325d2,_0xc19601){const _0x236f19=a60_0x3f257d;if(!isDbTableBackedDataset(_0x5325d2))throw CliErrors[_0x236f19(0x189)](buildDbTableBackedRequirementMessage(_0x5325d2,_0xc19601));}
@@ -1 +1 @@
1
- function a61_0x572c(){const _0x351f1b=['Deleted\x20','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','551654hgrdCf','title','/smartapi/dataset/delete?cascade=','dbid','\x20dataset(s);\x20','2994032frfyKh','4JocJxH','str','map','appCode','POST','Would\x20delete\x20','6LyCEtd','\x20--appcode\x20','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','false','Would\x20safely\x20delete\x20','dataset','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','\x20failed','id=','relatedPageInfoList','bool','cascade','object','1711242SaOJNr','description','Dataset\x20id','validation','1830230kXEVhc','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','length','true','add','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','expected-count','code','36AOskWi','\x20dataset(s)','dbName','Matched\x20','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','delete','boolean','750830elVTkS','\x20dataset(s)\x20and\x20their\x20listed\x20related\x20pages/menus.\x20Restore\x20each\x20Dataset\x20first,\x20then\x20restore\x20pages\x20explicitly\x20when\x20needed.','rabetbase\x20page\x20restore\x20--id\x20','deleted','dbId','isInteger','num','Also\x20delete\x20related\x20pages\x20and\x20menus;\x20requires\x20explicit\x20--confirm','type','filter','relatedPages','confirm','name','number','message','8078413bXRuiB','tableName','push','\x20dataset(s)\x20without\x20cascading\x20to\x20pages.\x20The\x20server\x20blocks\x20a\x20Dataset\x20that\x20still\x20has\x20related\x20pages.','No\x20undeleted\x20dataset\x20found\x20for\x20','dbid=','905894XsHmtA'];a61_0x572c=function(){return _0x351f1b;};return a61_0x572c();}const a61_0x315890=a61_0x1a1a;(function(_0x1493a2,_0x1a9d71){const _0x772c79=a61_0x1a1a,_0x43138a=_0x1493a2();while(!![]){try{const _0x17bd03=parseInt(_0x772c79(0x18d))/0x1+-parseInt(_0x772c79(0x190))/0x2+-parseInt(_0x772c79(0x1a9))/0x3+-parseInt(_0x772c79(0x196))/0x4*(-parseInt(_0x772c79(0x1ad))/0x5)+-parseInt(_0x772c79(0x19c))/0x6*(-parseInt(_0x772c79(0x1cc))/0x7)+-parseInt(_0x772c79(0x195))/0x8+parseInt(_0x772c79(0x1b6))/0x9*(-parseInt(_0x772c79(0x1bd))/0xa);if(_0x17bd03===_0x1a9d71)break;else _0x43138a['push'](_0x43138a['shift']());}catch(_0x7263a5){_0x43138a['push'](_0x43138a['shift']());}}}(a61_0x572c,0xdcfd4));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':'number','description':a61_0x315890(0x1ab)},DBID_FLAG={'name':a61_0x315890(0x193),'type':a61_0x315890(0x1ca),'description':a61_0x315890(0x1ba)},CONFIRM_FLAG={'name':a61_0x315890(0x1c8),'type':a61_0x315890(0x1bc),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},CASCADE_FLAG={'name':a61_0x315890(0x1a7),'type':a61_0x315890(0x1bc),'description':a61_0x315890(0x1c4)},EXPECTED_COUNT_FLAG={'name':a61_0x315890(0x1b4),'type':a61_0x315890(0x1ca),'description':a61_0x315890(0x1a2)};export const datasetDelete={'service':a61_0x315890(0x1a1),'command':a61_0x315890(0x1bb),'description':a61_0x315890(0x18f),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CASCADE_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2c6c07){const _0xa072fe=a61_0x315890,_0x2cdd6b=_0x2c6c07[_0xa072fe(0x1c3)]('id'),_0x3cb5f4=_0x2c6c07[_0xa072fe(0x197)](_0xa072fe(0x1b5)),_0x5f0d81=_0x2c6c07[_0xa072fe(0x1c3)]('dbid'),_0x157678=[_0x2cdd6b>0x0,Boolean(_0x3cb5f4),_0x5f0d81>0x0][_0xa072fe(0x1c6)](Boolean);if(_0x157678[_0xa072fe(0x1b0)]===0x0)throw CliErrors['validation'](_0xa072fe(0x1ae));if(_0x157678[_0xa072fe(0x1b0)]>0x1)throw CliErrors['validation'](_0xa072fe(0x1b3));},async 'dryRun'(_0x4f959e){const _0x2b64e9=a61_0x315890,_0x5304e1=await resolveTargets(_0x4f959e),_0x50aff7=_0x4f959e['bool']('cascade');return{'method':_0x2b64e9(0x19a),'url':_0x2b64e9(0x192)+(_0x50aff7?_0x2b64e9(0x1b1):_0x2b64e9(0x19f)),'body':{'count':_0x5304e1['length'],'cascade':_0x50aff7,'datasets':_0x5304e1},'description':_0x50aff7?_0x2b64e9(0x19b)+_0x5304e1['length']+_0x2b64e9(0x1be):_0x2b64e9(0x1a0)+_0x5304e1[_0x2b64e9(0x1b0)]+_0x2b64e9(0x1cf)};},async 'execute'(_0x1e897b){const _0x302458=a61_0x315890;if(!_0x1e897b[_0x302458(0x1a6)](_0x302458(0x1c8)))throw CliErrors['validation'](_0x302458(0x19e),_0x302458(0x1af));const _0x5d480b=await resolveTargets(_0x1e897b),_0x4d2c3e=_0x1e897b[_0x302458(0x1a6)]('cascade'),_0xd72129=[],_0x44e7ea=[];for(const _0x263480 of _0x5d480b){try{await deleteDataset(_0x263480['id'],_0x4d2c3e),_0xd72129[_0x302458(0x1ce)](_0x263480);}catch(_0x21e771){_0x44e7ea[_0x302458(0x1ce)]({..._0x263480,'error':_0x21e771 instanceof Error?_0x21e771[_0x302458(0x1cb)]:String(_0x21e771)});}}if(_0x44e7ea[_0x302458(0x1b0)]>0x0){const _0x3c233c=buildPageRestoreCommands(_0x1e897b['appCode'],_0x4d2c3e?_0xd72129:[]);return{'ok':![],'data':{'requested':_0x5d480b[_0x302458(0x1b0)],'cascade':_0x4d2c3e,'deletedCount':_0xd72129[_0x302458(0x1b0)],'failedCount':_0x44e7ea['length'],'deleted':_0xd72129,'failed':_0x44e7ea,'pageRestoreCommands':_0x3c233c},'message':'Deleted\x20'+_0xd72129[_0x302458(0x1b0)]+'/'+_0x5d480b[_0x302458(0x1b0)]+_0x302458(0x194)+_0x44e7ea['length']+_0x302458(0x1a3)};}return{'ok':!![],'data':{'requested':_0x5d480b['length'],'cascade':_0x4d2c3e,'deletedCount':_0xd72129[_0x302458(0x1b0)],'deleted':_0xd72129,'pageRestoreCommands':buildPageRestoreCommands(_0x1e897b[_0x302458(0x199)],_0x4d2c3e?_0xd72129:[])},'message':_0x302458(0x18e)+_0xd72129[_0x302458(0x1b0)]+_0x302458(0x1b7)};}};function a61_0x1a1a(_0x2ed414,_0x39832f){_0x2ed414=_0x2ed414-0x18c;const _0x572cd3=a61_0x572c();let _0x1a1ace=_0x572cd3[_0x2ed414];return _0x1a1ace;}async function resolveTargets(_0x3187e0){const _0x420cd0=a61_0x315890,_0x18d36e=_0x3187e0[_0x420cd0(0x1c3)]('id'),_0x475558=_0x3187e0[_0x420cd0(0x197)](_0x420cd0(0x1b5)),_0x3f01b8=_0x3187e0[_0x420cd0(0x1c3)](_0x420cd0(0x193));let _0xccb4e9;_0x475558?(_0xccb4e9=await listDatasets(_0x3187e0['appCode'],{'code':_0x475558}),_0xccb4e9=_0xccb4e9[_0x420cd0(0x1c6)](_0x1ffac9=>_0x1ffac9[_0x420cd0(0x1b5)]===_0x475558)):(_0xccb4e9=await listDatasets(_0x3187e0[_0x420cd0(0x199)]),_0x18d36e>0x0&&(_0xccb4e9=_0xccb4e9['filter'](_0xda3a42=>_0xda3a42['id']===_0x18d36e)),_0x3f01b8>0x0&&(_0xccb4e9=_0xccb4e9[_0x420cd0(0x1c6)](_0x1f5392=>_0x1f5392['dbtableConfig']?.[_0x420cd0(0x1c1)]===_0x3f01b8)));const _0x34e70c=[];for(const _0x564503 of _0xccb4e9){const _0x5d48da=await getDatasetDetail(_0x564503[_0x420cd0(0x1b5)]),_0x3c9be9=Array['isArray'](_0x5d48da[_0x420cd0(0x1a5)])?_0x5d48da[_0x420cd0(0x1a5)][_0x420cd0(0x1c6)](_0x5988a9=>_0x5988a9!=null&&typeof _0x5988a9==='object'&&_0x5988a9[_0x420cd0(0x1c0)]!==!![]):[];_0x34e70c[_0x420cd0(0x1ce)](normalizeTarget(_0x564503,_0x3c9be9));}if(_0x34e70c[_0x420cd0(0x1b0)]===0x0){const _0x1b8381=_0x475558||(_0x18d36e>0x0?_0x420cd0(0x1a4)+_0x18d36e:_0x420cd0(0x18c)+_0x3f01b8);throw CliErrors[_0x420cd0(0x1ac)](_0x420cd0(0x1d0)+_0x1b8381+'.');}const _0x1903e7=_0x3187e0[_0x420cd0(0x1c3)](_0x420cd0(0x1b4));if(_0x1903e7>0x0&&_0x34e70c[_0x420cd0(0x1b0)]!==_0x1903e7)throw CliErrors[_0x420cd0(0x1ac)](_0x420cd0(0x1b9)+_0x34e70c[_0x420cd0(0x1b0)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x1903e7+'.');return _0x34e70c;}function normalizeTarget(_0x413d55,_0x3c4529){const _0xad0264=a61_0x315890,_0x1f76cc=_0x413d55['dbtableConfig']??{},_0x5b1ece=_0x3c4529[_0xad0264(0x198)](_0xb2566c=>{const _0x563e2a=_0xad0264;if(_0xb2566c==null||typeof _0xb2566c!==_0x563e2a(0x1a8))return null;const _0x5d26ea=_0xb2566c,_0x45b34a=Number(_0x5d26ea['id']);if(!Number[_0x563e2a(0x1c2)](_0x45b34a)||_0x45b34a<=0x0)return null;const _0xa86e8a=_0x5d26ea[_0x563e2a(0x191)]??_0x5d26ea[_0x563e2a(0x1c9)];return{'id':_0x45b34a,..._0xa86e8a?{'name':String(_0xa86e8a)}:{},..._0x5d26ea['type']?{'type':String(_0x5d26ea[_0x563e2a(0x1c5)])}:{}};})['filter'](_0x325a65=>_0x325a65!==null);return{'id':_0x413d55['id'],'code':_0x413d55[_0xad0264(0x1b5)],'name':_0x413d55[_0xad0264(0x1c9)],'description':_0x413d55[_0xad0264(0x1aa)],'source':_0x413d55['source'],'dbId':_0x1f76cc['dbId'],'dbName':_0x1f76cc[_0xad0264(0x1b8)],'tableName':_0x1f76cc[_0xad0264(0x1cd)],'relatedPageCount':_0x5b1ece['length'],'relatedPages':_0x5b1ece};}function buildPageRestoreCommands(_0xf0842f,_0x579069){const _0x4e2e31=a61_0x315890,_0x1615bd=new Set();for(const _0xd9e7de of _0x579069){for(const _0x34b4aa of _0xd9e7de[_0x4e2e31(0x1c7)])_0x1615bd[_0x4e2e31(0x1b2)](_0x34b4aa['id']);}return[..._0x1615bd]['map'](_0x33a65d=>_0x4e2e31(0x1bf)+_0x33a65d+_0x4e2e31(0x19d)+_0xf0842f);}
1
+ const a61_0x5a9fd0=a61_0x2c04;(function(_0xcd590c,_0x49c285){const _0x5af66d=a61_0x2c04,_0xb2714=_0xcd590c();while(!![]){try{const _0x9f7698=parseInt(_0x5af66d(0x218))/0x1+-parseInt(_0x5af66d(0x1fd))/0x2+-parseInt(_0x5af66d(0x1fc))/0x3+-parseInt(_0x5af66d(0x227))/0x4*(-parseInt(_0x5af66d(0x200))/0x5)+parseInt(_0x5af66d(0x21d))/0x6+parseInt(_0x5af66d(0x221))/0x7+parseInt(_0x5af66d(0x212))/0x8*(-parseInt(_0x5af66d(0x22a))/0x9);if(_0x9f7698===_0x49c285)break;else _0xb2714['push'](_0xb2714['shift']());}catch(_0x403d2c){_0xb2714['push'](_0xb2714['shift']());}}}(a61_0x2887,0x5967c));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a61_0x2887(){const _0x420b5d=['map','delete','4010736kBaMDh','Matched\x20','filter','confirm','4106438qvuMnn','\x20dataset(s);\x20','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','\x20--appcode\x20','object','\x20dataset(s)\x20without\x20cascading\x20to\x20pages.\x20The\x20server\x20blocks\x20a\x20Dataset\x20that\x20still\x20has\x20related\x20pages.','92536UfsDMS','name','Deleted\x20','3648141JmaAZz','/smartapi/dataset/delete?cascade=','isInteger','dataset','str','false','dbid','No\x20undeleted\x20dataset\x20found\x20for\x20','relatedPageInfoList','relatedPages','source','true','Required\x20to\x20execute\x20dataset\x20deletion','\x20failed','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','1923867rOJjZi','603142prlvYK','deleted','type','85UufxqL','add','description','boolean','expected-count','dbId','num','high-risk-write','code','POST','length','cascade','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','rabetbase\x20page\x20restore\x20--id\x20','appCode','message','\x20dataset(s)\x20and\x20their\x20listed\x20related\x20pages/menus.\x20Restore\x20each\x20Dataset\x20first,\x20then\x20restore\x20pages\x20explicitly\x20when\x20needed.','bool','16rzWCBU','validation','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','push','isArray','dbtableConfig','471394XOsxeL','number','\x20dataset(s)'];a61_0x2887=function(){return _0x420b5d;};return a61_0x2887();}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x5a9fd0(0x219),'description':'Dataset\x20id'},DBID_FLAG={'name':a61_0x5a9fd0(0x1f3),'type':a61_0x5a9fd0(0x219),'description':a61_0x5a9fd0(0x20c)},CONFIRM_FLAG={'name':a61_0x5a9fd0(0x220),'type':'boolean','description':a61_0x5a9fd0(0x1f9)},CASCADE_FLAG={'name':a61_0x5a9fd0(0x20b),'type':a61_0x5a9fd0(0x203),'description':'Also\x20delete\x20related\x20pages\x20and\x20menus;\x20requires\x20explicit\x20--confirm'},EXPECTED_COUNT_FLAG={'name':'expected-count','type':'number','description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a61_0x5a9fd0(0x22d),'command':a61_0x5a9fd0(0x21c),'description':a61_0x5a9fd0(0x223),'risk':a61_0x5a9fd0(0x207),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CASCADE_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x264470){const _0x2a1c90=a61_0x5a9fd0,_0x54cc39=_0x264470[_0x2a1c90(0x206)]('id'),_0x52622c=_0x264470['str'](_0x2a1c90(0x208)),_0x33b04c=_0x264470[_0x2a1c90(0x206)]('dbid'),_0x3b05a8=[_0x54cc39>0x0,Boolean(_0x52622c),_0x33b04c>0x0][_0x2a1c90(0x21f)](Boolean);if(_0x3b05a8['length']===0x0)throw CliErrors[_0x2a1c90(0x213)](_0x2a1c90(0x1fb));if(_0x3b05a8['length']>0x1)throw CliErrors[_0x2a1c90(0x213)](_0x2a1c90(0x214));},async 'dryRun'(_0x3788f4){const _0x3cd867=a61_0x5a9fd0,_0x229775=await resolveTargets(_0x3788f4),_0x14889a=_0x3788f4[_0x3cd867(0x211)]('cascade');return{'method':_0x3cd867(0x209),'url':_0x3cd867(0x22b)+(_0x14889a?_0x3cd867(0x1f8):_0x3cd867(0x22f)),'body':{'count':_0x229775['length'],'cascade':_0x14889a,'datasets':_0x229775},'description':_0x14889a?'Would\x20delete\x20'+_0x229775[_0x3cd867(0x20a)]+_0x3cd867(0x210):'Would\x20safely\x20delete\x20'+_0x229775['length']+_0x3cd867(0x226)};},async 'execute'(_0x14a363){const _0x24427c=a61_0x5a9fd0;if(!_0x14a363['bool']('confirm'))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x3f3ab8=await resolveTargets(_0x14a363),_0x19e016=_0x14a363[_0x24427c(0x211)](_0x24427c(0x20b)),_0x31b1f7=[],_0x59530d=[];for(const _0x4a3511 of _0x3f3ab8){try{await deleteDataset(_0x4a3511['id'],_0x19e016),_0x31b1f7['push'](_0x4a3511);}catch(_0x295b2b){_0x59530d['push']({..._0x4a3511,'error':_0x295b2b instanceof Error?_0x295b2b[_0x24427c(0x20f)]:String(_0x295b2b)});}}if(_0x59530d[_0x24427c(0x20a)]>0x0){const _0x17083a=buildPageRestoreCommands(_0x14a363[_0x24427c(0x20e)],_0x19e016?_0x31b1f7:[]);return{'ok':![],'data':{'requested':_0x3f3ab8[_0x24427c(0x20a)],'cascade':_0x19e016,'deletedCount':_0x31b1f7['length'],'failedCount':_0x59530d[_0x24427c(0x20a)],'deleted':_0x31b1f7,'failed':_0x59530d,'pageRestoreCommands':_0x17083a},'message':_0x24427c(0x229)+_0x31b1f7['length']+'/'+_0x3f3ab8[_0x24427c(0x20a)]+_0x24427c(0x222)+_0x59530d[_0x24427c(0x20a)]+_0x24427c(0x1fa)};}return{'ok':!![],'data':{'requested':_0x3f3ab8[_0x24427c(0x20a)],'cascade':_0x19e016,'deletedCount':_0x31b1f7['length'],'deleted':_0x31b1f7,'pageRestoreCommands':buildPageRestoreCommands(_0x14a363[_0x24427c(0x20e)],_0x19e016?_0x31b1f7:[])},'message':_0x24427c(0x229)+_0x31b1f7[_0x24427c(0x20a)]+_0x24427c(0x21a)};}};function a61_0x2c04(_0x210e5c,_0x23d814){_0x210e5c=_0x210e5c-0x1f3;const _0x28873a=a61_0x2887();let _0x2c047e=_0x28873a[_0x210e5c];return _0x2c047e;}async function resolveTargets(_0x11af9b){const _0x1cd22f=a61_0x5a9fd0,_0x7bad03=_0x11af9b[_0x1cd22f(0x206)]('id'),_0x45d3c7=_0x11af9b[_0x1cd22f(0x22e)](_0x1cd22f(0x208)),_0x93ba70=_0x11af9b[_0x1cd22f(0x206)](_0x1cd22f(0x1f3));let _0x59136b;_0x45d3c7?(_0x59136b=await listDatasets(_0x11af9b[_0x1cd22f(0x20e)],{'code':_0x45d3c7}),_0x59136b=_0x59136b[_0x1cd22f(0x21f)](_0xdad06a=>_0xdad06a[_0x1cd22f(0x208)]===_0x45d3c7)):(_0x59136b=await listDatasets(_0x11af9b[_0x1cd22f(0x20e)]),_0x7bad03>0x0&&(_0x59136b=_0x59136b['filter'](_0x9bbb8b=>_0x9bbb8b['id']===_0x7bad03)),_0x93ba70>0x0&&(_0x59136b=_0x59136b['filter'](_0x5b5b7e=>_0x5b5b7e[_0x1cd22f(0x217)]?.[_0x1cd22f(0x205)]===_0x93ba70)));const _0x1b0615=[];for(const _0x377363 of _0x59136b){const _0x74feaf=await getDatasetDetail(_0x377363[_0x1cd22f(0x208)]),_0x53799b=Array[_0x1cd22f(0x216)](_0x74feaf['relatedPageInfoList'])?_0x74feaf[_0x1cd22f(0x1f5)][_0x1cd22f(0x21f)](_0x23a929=>_0x23a929!=null&&typeof _0x23a929===_0x1cd22f(0x225)&&_0x23a929[_0x1cd22f(0x1fe)]!==!![]):[];_0x1b0615[_0x1cd22f(0x215)](normalizeTarget(_0x377363,_0x53799b));}if(_0x1b0615[_0x1cd22f(0x20a)]===0x0){const _0x5117d3=_0x45d3c7||(_0x7bad03>0x0?'id='+_0x7bad03:'dbid='+_0x93ba70);throw CliErrors[_0x1cd22f(0x213)](_0x1cd22f(0x1f4)+_0x5117d3+'.');}const _0x445f41=_0x11af9b['num'](_0x1cd22f(0x204));if(_0x445f41>0x0&&_0x1b0615[_0x1cd22f(0x20a)]!==_0x445f41)throw CliErrors[_0x1cd22f(0x213)](_0x1cd22f(0x21e)+_0x1b0615[_0x1cd22f(0x20a)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x445f41+'.');return _0x1b0615;}function normalizeTarget(_0x937dfc,_0xdd1fa5){const _0x3ed175=a61_0x5a9fd0,_0x5cb498=_0x937dfc[_0x3ed175(0x217)]??{},_0x6af41e=_0xdd1fa5[_0x3ed175(0x21b)](_0xb3dffc=>{const _0x81fae1=_0x3ed175;if(_0xb3dffc==null||typeof _0xb3dffc!=='object')return null;const _0x5def81=_0xb3dffc,_0x4caa97=Number(_0x5def81['id']);if(!Number[_0x81fae1(0x22c)](_0x4caa97)||_0x4caa97<=0x0)return null;const _0x223791=_0x5def81['title']??_0x5def81[_0x81fae1(0x228)];return{'id':_0x4caa97,..._0x223791?{'name':String(_0x223791)}:{},..._0x5def81[_0x81fae1(0x1ff)]?{'type':String(_0x5def81[_0x81fae1(0x1ff)])}:{}};})[_0x3ed175(0x21f)](_0x573183=>_0x573183!==null);return{'id':_0x937dfc['id'],'code':_0x937dfc[_0x3ed175(0x208)],'name':_0x937dfc[_0x3ed175(0x228)],'description':_0x937dfc[_0x3ed175(0x202)],'source':_0x937dfc[_0x3ed175(0x1f7)],'dbId':_0x5cb498[_0x3ed175(0x205)],'dbName':_0x5cb498['dbName'],'tableName':_0x5cb498['tableName'],'relatedPageCount':_0x6af41e[_0x3ed175(0x20a)],'relatedPages':_0x6af41e};}function buildPageRestoreCommands(_0x4369fd,_0x3ee487){const _0x59f1af=a61_0x5a9fd0,_0x1f4c35=new Set();for(const _0x4475d9 of _0x3ee487){for(const _0x49f1a5 of _0x4475d9[_0x59f1af(0x1f6)])_0x1f4c35[_0x59f1af(0x201)](_0x49f1a5['id']);}return[..._0x1f4c35][_0x59f1af(0x21b)](_0x2c6a11=>_0x59f1af(0x20d)+_0x2c6a11+_0x59f1af(0x224)+_0x4369fd);}
@@ -1 +1 @@
1
- const a62_0x3b341b=a62_0x5bad;(function(_0x4eb12a,_0x6935bf){const _0x567c3f=a62_0x5bad,_0x2f1be3=_0x4eb12a();while(!![]){try{const _0x3ed651=parseInt(_0x567c3f(0xda))/0x1+parseInt(_0x567c3f(0xce))/0x2+parseInt(_0x567c3f(0xf0))/0x3*(parseInt(_0x567c3f(0xc5))/0x4)+parseInt(_0x567c3f(0xaf))/0x5*(parseInt(_0x567c3f(0xed))/0x6)+parseInt(_0x567c3f(0xcc))/0x7+parseInt(_0x567c3f(0xc1))/0x8+-parseInt(_0x567c3f(0xca))/0x9;if(_0x3ed651===_0x6935bf)break;else _0x2f1be3['push'](_0x2f1be3['shift']());}catch(_0x318d81){_0x2f1be3['push'](_0x2f1be3['shift']());}}}(a62_0x11dc,0x45f5e));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x2c2d07){const _0x36989d=a62_0x5bad;if(_0x2c2d07[_0x36989d(0xa8)])return null;const _0x530a22=Boolean(_0x2c2d07['displayName']!==undefined||_0x2c2d07[_0x36989d(0xc9)]!==undefined);let _0x262863={};if(!_0x530a22&&typeof _0x2c2d07['extend']===_0x36989d(0xd7))try{_0x262863=JSON[_0x36989d(0xb4)](_0x2c2d07[_0x36989d(0xea)]);}catch{}const _0x8098d0=_0x530a22?_0x2c2d07['name']:_0x2c2d07[_0x36989d(0xcb)],_0x2c7193=_0x530a22?_0x2c2d07['displayName']:_0x2c2d07['name'],_0x3c521e=_0x530a22?_0x2c2d07[_0x36989d(0xc9)]:_0x2c2d07['type']||_0x2c2d07[_0x36989d(0xe1)],_0x43256d=_0x530a22?_0x2c2d07[_0x36989d(0xee)]===!![]:_0x262863['pkField']===!![],_0x4751b5=_0x530a22?_0x2c2d07['required']===!![]:_0x262863[_0x36989d(0xb3)]===!![],_0x4e386f=_0x530a22?_0x2c2d07[_0x36989d(0xb6)]??null:_0x262863['options']??null,_0x5183c2={'name':_0x8098d0,'displayName':_0x2c7193||_0x8098d0,'type':_0x3c521e,'dbType':_0x2c2d07[_0x36989d(0xb2)],'pk':_0x43256d,'required':_0x4751b5,'deprecated':_0x2c2d07[_0x36989d(0xc8)]===!![],'description':_0x2c2d07[_0x36989d(0xe2)]||undefined};return Array[_0x36989d(0xa4)](_0x4e386f)&&_0x4e386f[_0x36989d(0xd5)]>0x0&&(_0x5183c2['options']=_0x4e386f),_0x5183c2;}function parseJsonMaybe(_0x587f41){const _0x291043=a62_0x5bad;if(typeof _0x587f41!==_0x291043(0xd7))return _0x587f41;try{return JSON[_0x291043(0xb4)](_0x587f41);}catch{return _0x587f41;}}function a62_0x5bad(_0x2fff84,_0x45575c){_0x2fff84=_0x2fff84-0xa0;const _0x11dc3c=a62_0x11dc();let _0x5bad75=_0x11dc3c[_0x2fff84];return _0x5bad75;}function normalizeOperationEntry(_0x19dffb,_0xe1cc57){const _0x36fec4=a62_0x5bad;if(!_0xe1cc57||typeof _0xe1cc57!==_0x36fec4(0xbd))return null;if(!_0xe1cc57[_0x36fec4(0xb1)]||!_0xe1cc57[_0x36fec4(0xdd)])return null;const _0x411d43={'name':_0x19dffb,'method':_0xe1cc57[_0x36fec4(0xb1)],'path':_0xe1cc57['path']};if(_0xe1cc57[_0x36fec4(0xa0)])_0x411d43[_0x36fec4(0xa0)]=_0xe1cc57[_0x36fec4(0xa0)];if(_0xe1cc57[_0x36fec4(0xb9)]!=null){const _0x434b5b=parseJsonMaybe(_0xe1cc57[_0x36fec4(0xb9)]);_0x411d43[_0x36fec4(0xb9)]=_0x434b5b;}if(_0xe1cc57[_0x36fec4(0xd0)]!=null){const _0x25f171=parseJsonMaybe(_0xe1cc57[_0x36fec4(0xd0)]);_0x411d43[_0x36fec4(0xd0)]=_0x25f171;}if(_0xe1cc57['beforeScriptId']!=null)_0x411d43[_0x36fec4(0xab)]=_0xe1cc57['beforeScriptId'];if(_0xe1cc57['afterScriptId']!=null)_0x411d43['afterScriptId']=_0xe1cc57[_0x36fec4(0xe4)];if(Array['isArray'](_0xe1cc57['requestFields']))_0x411d43[_0x36fec4(0xe0)]=_0xe1cc57['requestFields'];if(Array[_0x36fec4(0xa4)](_0xe1cc57[_0x36fec4(0xde)]))_0x411d43[_0x36fec4(0xde)]=_0xe1cc57['responseFields'];return _0x411d43;}function summarizeDbtable(_0x439aba){const _0x540e5d=a62_0x5bad,_0x414a1b={},_0x1e5f86=['dbId',_0x540e5d(0xb0),'tableName',_0x540e5d(0xac),_0x540e5d(0xee),'allFields',_0x540e5d(0xec),'createTimeField','updateTimeField',_0x540e5d(0xad),_0x540e5d(0xc7),'modifierIdField','modifierNameField',_0x540e5d(0xd2),_0x540e5d(0xeb)];for(const _0x10c0c4 of _0x1e5f86){if(_0x439aba[_0x10c0c4]!==undefined)_0x414a1b[_0x10c0c4]=_0x439aba[_0x10c0c4];}return typeof _0x414a1b['allFields']===_0x540e5d(0xd7)&&_0x414a1b[_0x540e5d(0xba)]['length']>0x0&&(_0x414a1b['allFieldNames']=_0x414a1b['allFields'][_0x540e5d(0xa6)](',')[_0x540e5d(0xc3)](_0x2445d9=>_0x2445d9[_0x540e5d(0xe7)]())['filter'](Boolean)),_0x414a1b;}function normalizeRelatedPages(_0x3aba7c){const _0x4cbd97=a62_0x5bad;if(!Array['isArray'](_0x3aba7c))return[];return _0x3aba7c[_0x4cbd97(0xa5)](_0x3ef96b=>_0x3ef96b&&typeof _0x3ef96b===_0x4cbd97(0xbd))[_0x4cbd97(0xc3)](_0x5687b7=>({'id':_0x5687b7['id'],'type':_0x5687b7[_0x4cbd97(0xaa)],'code':_0x5687b7[_0x4cbd97(0xcb)],'title':_0x5687b7[_0x4cbd97(0xd1)],'deleted':_0x5687b7['deleted']===!![]}));}function a62_0x11dc(){const _0x4d6d9d=['relatedPageInfoList','string','push','modelId','502631gVugKA','detail','doVersion','path','responseFields','toDatasetCode','requestFields','dataType','description','formatRules','afterScriptId','fields','sourceType','trim','main_sub','toFieldLabel','extend','dblinkInfoDTO','logicField','6aYbgpR','pkField','operations','234NzwEZG','modelCode','host','indexes','entries','tableComment','isArray','filter','split','bizRelationType','deleted','alias','type','beforeScriptId','datasetKey','creatorIdField','relationId','1866530YYUYLv','dbName','method','dbType','required','parse','dbId','options','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','fromField','requestBody','allFields','str','properties','object','validateRules','tableName','name','3521048uJofjg','toDatasetName','map','dbtableConfig','15696EZAhfN','source','creatorNameField','deprecated','doType','21163050QtEeSY','code','3134782SUlPZS','columnCodeListWithDeleted','1136084SxaLVc','dataset','responseBody','title','labelField','relations','read','length'];a62_0x11dc=function(){return _0x4d6d9d;};return a62_0x11dc();}export const datasetDetail={'service':a62_0x3b341b(0xcf),'command':a62_0x3b341b(0xdb),'description':a62_0x3b341b(0xb7),'risk':a62_0x3b341b(0xd4),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x3b341b(0xa9),'type':a62_0x3b341b(0xd7),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x42c371){const _0x4bacca=a62_0x3b341b,_0x2b0b79=await getDatasetDetail(_0x42c371[_0x4bacca(0xbb)](_0x4bacca(0xcb))),_0x19a2fa=Array['isArray'](_0x2b0b79[_0x4bacca(0xe5)])?_0x2b0b79['fields']:Array[_0x4bacca(0xa4)](_0x2b0b79['properties'])?_0x2b0b79[_0x4bacca(0xbc)]:[],_0x20e66f=_0x19a2fa[_0x4bacca(0xc3)](_0x4c2b62=>normalizeField(_0x4c2b62))[_0x4bacca(0xa5)](_0x26020e=>_0x26020e!==null),_0x50e459=_0x2b0b79[_0x4bacca(0xef)]??{},_0x5ea6b2=[];for(const [_0x426c41,_0x4b6c62]of Object[_0x4bacca(0xa2)](_0x50e459)){const _0x1eb77a=normalizeOperationEntry(_0x426c41,_0x4b6c62);if(_0x1eb77a)_0x5ea6b2[_0x4bacca(0xd8)](_0x1eb77a);}const _0x4b1dd8=_0x2b0b79[_0x4bacca(0xc4)]??{},_0x234063=_0x2b0b79[_0x4bacca(0xcf)]??{},_0x416a80=_0x4b1dd8['dbId']!=null?{'id':_0x4b1dd8[_0x4bacca(0xb5)],'name':_0x4b1dd8[_0x4bacca(0xb0)]??null}:undefined;let _0x5b8d80;return typeof _0x2b0b79['extend']===_0x4bacca(0xd7)&&(_0x5b8d80=parseJsonMaybe(_0x2b0b79['extend'])),{'ok':!![],'data':{'id':_0x2b0b79[_0x4bacca(0xd9)]??_0x2b0b79['id'],'name':_0x2b0b79[_0x4bacca(0xc0)],'code':_0x2b0b79[_0x4bacca(0xf1)]||_0x2b0b79[_0x4bacca(0xcb)],'doVersion':_0x2b0b79[_0x4bacca(0xdc)],'description':_0x2b0b79[_0x4bacca(0xe2)]||_0x234063[_0x4bacca(0xa3)]||undefined,'source':_0x2b0b79[_0x4bacca(0xc6)]||_0x234063[_0x4bacca(0xe6)],'table':_0x4b1dd8[_0x4bacca(0xbf)]||_0x234063[_0x4bacca(0xbf)],'datasetKey':_0x4b1dd8[_0x4bacca(0xac)],'pk':_0x4b1dd8[_0x4bacca(0xee)],'db':_0x416a80,'dbtable':summarizeDbtable(_0x4b1dd8),'fields':_0x20e66f,'operations':_0x5ea6b2,'indexes':Array[_0x4bacca(0xa4)](_0x234063['indexes'])?_0x234063[_0x4bacca(0xa1)]:[],'relations':Array[_0x4bacca(0xa4)](_0x2b0b79[_0x4bacca(0xd3)])?_0x2b0b79[_0x4bacca(0xd3)][_0x4bacca(0xc3)](_0x4d7f06=>({..._0x4d7f06['relationId']!=null?{'relationId':_0x4d7f06[_0x4bacca(0xae)]}:{},'fromDataset':_0x2b0b79[_0x4bacca(0xc0)],'fromCode':_0x2b0b79[_0x4bacca(0xf1)]||_0x2b0b79[_0x4bacca(0xcb)],'fromTable':_0x4b1dd8['tableName']||_0x234063[_0x4bacca(0xbf)],'fromField':_0x4d7f06[_0x4bacca(0xb8)],'toDataset':_0x4d7f06[_0x4bacca(0xc2)],'toCode':_0x4d7f06[_0x4bacca(0xdf)],'toTable':_0x4d7f06['toTableName'],'toField':_0x4d7f06['toField'],'labelField':_0x4d7f06[_0x4bacca(0xe9)]||undefined,'cardinality':_0x4d7f06['cardinality']||undefined,'bizRelationType':_0x4d7f06[_0x4bacca(0xa7)]===_0x4bacca(0xe8)?_0x4bacca(0xe8):null})):[],'relatedPages':normalizeRelatedPages(_0x2b0b79[_0x4bacca(0xd6)]),...Array['isArray'](_0x2b0b79[_0x4bacca(0xcd)])?{'columnCodeListWithDeleted':_0x2b0b79[_0x4bacca(0xcd)]}:{},'formatRules':Array[_0x4bacca(0xa4)](_0x2b0b79[_0x4bacca(0xe3)])?_0x2b0b79[_0x4bacca(0xe3)]:[],'validateRules':Array[_0x4bacca(0xa4)](_0x2b0b79[_0x4bacca(0xbe)])?_0x2b0b79[_0x4bacca(0xbe)]:[],..._0x5b8d80!==undefined?{'extend':_0x5b8d80}:{},'stats':{'fieldCount':_0x20e66f[_0x4bacca(0xd5)],'operationCount':_0x5ea6b2[_0x4bacca(0xd5)]}}};}};
1
+ const a62_0x13c4e8=a62_0x5a9d;(function(_0x38b1f2,_0x570686){const _0x4ed53a=a62_0x5a9d,_0x3ccc01=_0x38b1f2();while(!![]){try{const _0x4062a8=-parseInt(_0x4ed53a(0x1c5))/0x1+-parseInt(_0x4ed53a(0x1be))/0x2+parseInt(_0x4ed53a(0x1ba))/0x3*(parseInt(_0x4ed53a(0x1d3))/0x4)+parseInt(_0x4ed53a(0x1c2))/0x5+-parseInt(_0x4ed53a(0x1ac))/0x6*(parseInt(_0x4ed53a(0x1c7))/0x7)+parseInt(_0x4ed53a(0x1a6))/0x8*(parseInt(_0x4ed53a(0x1a8))/0x9)+parseInt(_0x4ed53a(0x1a1))/0xa;if(_0x4062a8===_0x570686)break;else _0x3ccc01['push'](_0x3ccc01['shift']());}catch(_0x282d82){_0x3ccc01['push'](_0x3ccc01['shift']());}}}(a62_0x34d5,0xbb3ae));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x24f0d9){const _0x31ba20=a62_0x5a9d;if(_0x24f0d9[_0x31ba20(0x19c)])return null;const _0x4e8d0f=Boolean(_0x24f0d9[_0x31ba20(0x1bc)]!==undefined||_0x24f0d9[_0x31ba20(0x1cb)]!==undefined);let _0x1d14ec={};if(!_0x4e8d0f&&typeof _0x24f0d9['extend']===_0x31ba20(0x1cc))try{_0x1d14ec=JSON[_0x31ba20(0x19f)](_0x24f0d9[_0x31ba20(0x1de)]);}catch{}const _0x3c7e25=_0x4e8d0f?_0x24f0d9[_0x31ba20(0x1ce)]:_0x24f0d9['code'],_0x31f890=_0x4e8d0f?_0x24f0d9['displayName']:_0x24f0d9[_0x31ba20(0x1ce)],_0x1db6a1=_0x4e8d0f?_0x24f0d9[_0x31ba20(0x1cb)]:_0x24f0d9['type']||_0x24f0d9[_0x31ba20(0x1d6)],_0x3f7b8b=_0x4e8d0f?_0x24f0d9[_0x31ba20(0x1a7)]===!![]:_0x1d14ec[_0x31ba20(0x1a7)]===!![],_0x51aac4=_0x4e8d0f?_0x24f0d9[_0x31ba20(0x1d2)]===!![]:_0x1d14ec[_0x31ba20(0x1d2)]===!![],_0x447fe1=_0x4e8d0f?_0x24f0d9[_0x31ba20(0x19d)]??null:_0x1d14ec[_0x31ba20(0x19d)]??null,_0x383fac={'name':_0x3c7e25,'displayName':_0x31f890||_0x3c7e25,'type':_0x1db6a1,'dbType':_0x24f0d9['dbType'],'pk':_0x3f7b8b,'required':_0x51aac4,'deprecated':_0x24f0d9[_0x31ba20(0x1b9)]===!![],'description':_0x24f0d9[_0x31ba20(0x1c8)]||undefined};return Array['isArray'](_0x447fe1)&&_0x447fe1['length']>0x0&&(_0x383fac[_0x31ba20(0x19d)]=_0x447fe1),_0x383fac;}function parseJsonMaybe(_0x4b9d57){const _0x5f0f89=a62_0x5a9d;if(typeof _0x4b9d57!=='string')return _0x4b9d57;try{return JSON[_0x5f0f89(0x19f)](_0x4b9d57);}catch{return _0x4b9d57;}}function normalizeOperationEntry(_0x1a555f,_0x1959e2){const _0x3e4d99=a62_0x5a9d;if(!_0x1959e2||typeof _0x1959e2!==_0x3e4d99(0x1d4))return null;if(!_0x1959e2[_0x3e4d99(0x1b5)]||!_0x1959e2[_0x3e4d99(0x19e)])return null;const _0x2ef16f={'name':_0x1a555f,'method':_0x1959e2['method'],'path':_0x1959e2[_0x3e4d99(0x19e)]};if(_0x1959e2[_0x3e4d99(0x1b7)])_0x2ef16f[_0x3e4d99(0x1b7)]=_0x1959e2[_0x3e4d99(0x1b7)];if(_0x1959e2[_0x3e4d99(0x1b4)]!=null){const _0x107237=parseJsonMaybe(_0x1959e2[_0x3e4d99(0x1b4)]);_0x2ef16f[_0x3e4d99(0x1b4)]=_0x107237;}if(_0x1959e2[_0x3e4d99(0x19b)]!=null){const _0x1cef38=parseJsonMaybe(_0x1959e2[_0x3e4d99(0x19b)]);_0x2ef16f['responseBody']=_0x1cef38;}if(_0x1959e2[_0x3e4d99(0x1ab)]!=null)_0x2ef16f['beforeScriptId']=_0x1959e2[_0x3e4d99(0x1ab)];if(_0x1959e2[_0x3e4d99(0x1b1)]!=null)_0x2ef16f['afterScriptId']=_0x1959e2[_0x3e4d99(0x1b1)];if(Array[_0x3e4d99(0x1b8)](_0x1959e2[_0x3e4d99(0x1a9)]))_0x2ef16f[_0x3e4d99(0x1a9)]=_0x1959e2[_0x3e4d99(0x1a9)];if(Array[_0x3e4d99(0x1b8)](_0x1959e2[_0x3e4d99(0x1b0)]))_0x2ef16f[_0x3e4d99(0x1b0)]=_0x1959e2['responseFields'];return _0x2ef16f;}function summarizeDbtable(_0x14e9c8){const _0x42847e=a62_0x5a9d,_0x1d70af={},_0x30d49d=[_0x42847e(0x1d7),_0x42847e(0x1a5),_0x42847e(0x1c6),_0x42847e(0x1d5),_0x42847e(0x1a7),_0x42847e(0x1d0),_0x42847e(0x1ca),'createTimeField',_0x42847e(0x1d1),'creatorIdField','creatorNameField',_0x42847e(0x1b2),_0x42847e(0x1cf),_0x42847e(0x1db),_0x42847e(0x1bd)];for(const _0x1e1fe4 of _0x30d49d){if(_0x14e9c8[_0x1e1fe4]!==undefined)_0x1d70af[_0x1e1fe4]=_0x14e9c8[_0x1e1fe4];}return typeof _0x1d70af['allFields']==='string'&&_0x1d70af[_0x42847e(0x1d0)][_0x42847e(0x1b6)]>0x0&&(_0x1d70af['allFieldNames']=_0x1d70af[_0x42847e(0x1d0)][_0x42847e(0x19a)](',')[_0x42847e(0x1aa)](_0x2f6360=>_0x2f6360[_0x42847e(0x1d8)]())[_0x42847e(0x1dc)](Boolean)),_0x1d70af;}function normalizeRelatedPages(_0x37d9d5){const _0x27aac5=a62_0x5a9d;if(!Array['isArray'](_0x37d9d5))return[];return _0x37d9d5[_0x27aac5(0x1dc)](_0x5d8e2d=>_0x5d8e2d&&typeof _0x5d8e2d===_0x27aac5(0x1d4))['map'](_0x30d27f=>({'id':_0x30d27f['id'],'type':_0x30d27f['type'],'code':_0x30d27f[_0x27aac5(0x1e1)],'title':_0x30d27f['title'],'deleted':_0x30d27f[_0x27aac5(0x19c)]===!![]}));}function a62_0x5a9d(_0x4c49bc,_0x5de97c){_0x4c49bc=_0x4c49bc-0x19a;const _0x34d591=a62_0x34d5();let _0x5a9d39=_0x34d591[_0x4c49bc];return _0x5a9d39;}export const datasetDetail={'service':'dataset','command':'detail','description':a62_0x13c4e8(0x1c9),'risk':a62_0x13c4e8(0x1da),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a62_0x13c4e8(0x1cc),'description':a62_0x13c4e8(0x1cd)}],async 'execute'(_0x44c52b){const _0x2c9a14=a62_0x13c4e8,_0x5c8cf7=await getDatasetDetail(_0x44c52b[_0x2c9a14(0x1a0)](_0x2c9a14(0x1e1))),_0x3de930=Array[_0x2c9a14(0x1b8)](_0x5c8cf7['fields'])?_0x5c8cf7['fields']:Array[_0x2c9a14(0x1b8)](_0x5c8cf7[_0x2c9a14(0x1e3)])?_0x5c8cf7[_0x2c9a14(0x1e3)]:[],_0xf4cf71=_0x3de930['map'](_0x44157=>normalizeField(_0x44157))['filter'](_0x132c2b=>_0x132c2b!==null),_0x3d4f5f=_0x5c8cf7[_0x2c9a14(0x1bb)]??{},_0x525d47=[];for(const [_0x4887bb,_0x5ce5f0]of Object[_0x2c9a14(0x1ae)](_0x3d4f5f)){const _0x1eec8b=normalizeOperationEntry(_0x4887bb,_0x5ce5f0);if(_0x1eec8b)_0x525d47['push'](_0x1eec8b);}const _0x1d23ed=_0x5c8cf7[_0x2c9a14(0x1a4)]??{},_0x508b59=_0x5c8cf7[_0x2c9a14(0x1b3)]??{},_0x2e8939=_0x1d23ed[_0x2c9a14(0x1d7)]!=null?{'id':_0x1d23ed['dbId'],'name':_0x1d23ed['dbName']??null}:undefined;let _0x38c999;return typeof _0x5c8cf7[_0x2c9a14(0x1de)]===_0x2c9a14(0x1cc)&&(_0x38c999=parseJsonMaybe(_0x5c8cf7['extend'])),{'ok':!![],'data':{'id':_0x5c8cf7[_0x2c9a14(0x1c4)]??_0x5c8cf7['id'],'name':_0x5c8cf7['name'],'code':_0x5c8cf7[_0x2c9a14(0x1c1)]||_0x5c8cf7[_0x2c9a14(0x1e1)],'doVersion':_0x5c8cf7[_0x2c9a14(0x1e2)],'description':_0x5c8cf7['description']||_0x508b59[_0x2c9a14(0x1e0)]||undefined,'source':_0x5c8cf7['source']||_0x508b59[_0x2c9a14(0x1c3)],'table':_0x1d23ed['tableName']||_0x508b59[_0x2c9a14(0x1c6)],'datasetKey':_0x1d23ed[_0x2c9a14(0x1d5)],'pk':_0x1d23ed[_0x2c9a14(0x1a7)],'db':_0x2e8939,'dbtable':summarizeDbtable(_0x1d23ed),'fields':_0xf4cf71,'operations':_0x525d47,'indexes':Array['isArray'](_0x508b59[_0x2c9a14(0x1ad)])?_0x508b59[_0x2c9a14(0x1ad)]:[],'relations':Array[_0x2c9a14(0x1b8)](_0x5c8cf7[_0x2c9a14(0x1df)])?_0x5c8cf7['relations'][_0x2c9a14(0x1aa)](_0x16e851=>({..._0x16e851[_0x2c9a14(0x1d9)]!=null?{'relationId':_0x16e851[_0x2c9a14(0x1d9)]}:{},'fromDataset':_0x5c8cf7[_0x2c9a14(0x1ce)],'fromCode':_0x5c8cf7['modelCode']||_0x5c8cf7[_0x2c9a14(0x1e1)],'fromTable':_0x1d23ed[_0x2c9a14(0x1c6)]||_0x508b59[_0x2c9a14(0x1c6)],'fromField':_0x16e851[_0x2c9a14(0x1dd)],'toDataset':_0x16e851['toDatasetName'],'toCode':_0x16e851['toDatasetCode'],'toTable':_0x16e851['toTableName'],'toField':_0x16e851['toField'],'labelField':_0x16e851['toFieldLabel']||undefined,'cardinality':_0x16e851[_0x2c9a14(0x1af)]||undefined,'bizRelationType':_0x16e851['bizRelationType']===_0x2c9a14(0x1a3)?_0x2c9a14(0x1a3):null})):[],'relatedPages':normalizeRelatedPages(_0x5c8cf7[_0x2c9a14(0x1a2)]),...Array[_0x2c9a14(0x1b8)](_0x5c8cf7[_0x2c9a14(0x1e4)])?{'columnCodeListWithDeleted':_0x5c8cf7['columnCodeListWithDeleted']}:{},'formatRules':Array['isArray'](_0x5c8cf7[_0x2c9a14(0x1bf)])?_0x5c8cf7[_0x2c9a14(0x1bf)]:[],'validateRules':Array[_0x2c9a14(0x1b8)](_0x5c8cf7[_0x2c9a14(0x1c0)])?_0x5c8cf7[_0x2c9a14(0x1c0)]:[],..._0x38c999!==undefined?{'extend':_0x38c999}:{},'stats':{'fieldCount':_0xf4cf71['length'],'operationCount':_0x525d47['length']}}};}};function a62_0x34d5(){const _0x6fd7c3=['properties','columnCodeListWithDeleted','split','responseBody','deleted','options','path','parse','str','5020970fdlfIO','relatedPageInfoList','main_sub','dbtableConfig','dbName','32kjaJSK','pkField','2162313XVlNIP','requestFields','map','beforeScriptId','954ODgpZF','indexes','entries','cardinality','responseFields','afterScriptId','modifierIdField','dataset','requestBody','method','length','host','isArray','deprecated','876DpSkzJ','operations','displayName','dblinkInfoDTO','1838578jNpBlq','formatRules','validateRules','modelCode','5178180nTvbse','sourceType','modelId','892368ImieHP','tableName','15526zLascY','description','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','logicField','doType','string','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','name','modifierNameField','allFields','updateTimeField','required','5924pGKqTj','object','datasetKey','dataType','dbId','trim','relationId','read','labelField','filter','fromField','extend','relations','tableComment','code','doVersion'];a62_0x34d5=function(){return _0x6fd7c3;};return a62_0x34d5();}