@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 a84_0x243eee=a84_0x5baf;(function(_0xb49237,_0x930230){const _0x2b62e3=a84_0x5baf,_0x485543=_0xb49237();while(!![]){try{const _0x1a32c7=parseInt(_0x2b62e3(0x1b1))/0x1*(parseInt(_0x2b62e3(0x1a8))/0x2)+-parseInt(_0x2b62e3(0x1be))/0x3*(parseInt(_0x2b62e3(0x1a5))/0x4)+parseInt(_0x2b62e3(0x1a1))/0x5+parseInt(_0x2b62e3(0x1c5))/0x6*(-parseInt(_0x2b62e3(0x1ba))/0x7)+-parseInt(_0x2b62e3(0x1c6))/0x8+-parseInt(_0x2b62e3(0x1c2))/0x9*(parseInt(_0x2b62e3(0x1a3))/0xa)+parseInt(_0x2b62e3(0x1a2))/0xb*(parseInt(_0x2b62e3(0x1b0))/0xc);if(_0x1a32c7===_0x930230)break;else _0x485543['push'](_0x485543['shift']());}catch(_0x2b6fc4){_0x485543['push'](_0x485543['shift']());}}}(a84_0x19c5,0x71d09));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a84_0x5baf(_0x2f65c1,_0x4ba688){_0x2f65c1=_0x2f65c1-0x19e;const _0x19c509=a84_0x19c5();let _0x5baf24=_0x19c509[_0x2f65c1];return _0x5baf24;}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a84_0x19c5(){const _0x30f292=['Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','create','301224CXktwy','Database\x20password','write','bool','3osZTPP','dbversion','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','password','3984003toldGH','str','After\x20create,\x20start\x20schema\x20analysis','90DpjOJw','4814600WhYMLD','planId','Create\x20dblink','Created\x20db\x20link\x20','8.0','/smartapi/dblink/create','appCode','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','skip-connection-test','string','dbtype','dbdesc','autostart','username','validation','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','[redacted]','1799985pIwFhG','913seYJLb','10YHTovH','dbname','2830028QRgrJN','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','dbparam','18604lBgAcV','Extra\x20JDBC-style\x20connection\x20parameters\x20string','trim','dburl','Database\x20username','Human-readable\x20description','Host\x20and\x20port:\x20host:port',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','331044HOALQU','23idqpDY','boolean','join','No\x20follow-up\x20analysis','\x20and\x20started\x20analysis','POST'];a84_0x19c5=function(){return _0x30f292;};return a84_0x19c5();}export const dbCreate={'service':'db','command':a84_0x243eee(0x1b9),'description':a84_0x243eee(0x1cd),'risk':a84_0x243eee(0x1bc),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','required':!![],'description':a84_0x243eee(0x1b8)},DB_TYPE_FLAG,{'name':a84_0x243eee(0x1bf),'type':'string','description':a84_0x243eee(0x19f),'default':a84_0x243eee(0x1ca)},{'name':a84_0x243eee(0x1ab),'type':a84_0x243eee(0x1cf),'required':!![],'description':a84_0x243eee(0x1ae)},{'name':a84_0x243eee(0x1d3),'type':a84_0x243eee(0x1cf),'required':!![],'description':a84_0x243eee(0x1ac)},{'name':a84_0x243eee(0x1c1),'type':'string','required':!![],'description':a84_0x243eee(0x1bb)},{'name':'dbparam','type':'string','description':a84_0x243eee(0x1a9)},{'name':a84_0x243eee(0x1d1),'type':a84_0x243eee(0x1cf),'description':a84_0x243eee(0x1ad)},{'name':'autostart','type':a84_0x243eee(0x1b2),'description':a84_0x243eee(0x1c4),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x2efb9d){const _0x4b1433=a84_0x243eee,_0x35fd4b=_0x2efb9d[_0x4b1433(0x1c3)](_0x4b1433(0x1ab))[_0x4b1433(0x1aa)]();if(!validateDbUrl(_0x35fd4b))throw CliErrors[_0x4b1433(0x19e)](_0x4b1433(0x1c0)+_0x35fd4b+'\x22',_0x4b1433(0x1a6));},async 'dryRun'(_0x547550){const _0x3b1fef=a84_0x243eee,_0x2b3814={'appCode':_0x547550[_0x3b1fef(0x1cc)],'dbName':_0x547550[_0x3b1fef(0x1c3)](_0x3b1fef(0x1a4)),'dbType':_0x547550[_0x3b1fef(0x1c3)]('dbtype'),'dbVersion':_0x547550[_0x3b1fef(0x1c3)](_0x3b1fef(0x1bf))||_0x3b1fef(0x1ca),'dbUrl':_0x547550[_0x3b1fef(0x1c3)]('dburl')[_0x3b1fef(0x1aa)](),'username':_0x547550[_0x3b1fef(0x1c3)](_0x3b1fef(0x1d3)),'password':_0x3b1fef(0x1a0),..._0x547550[_0x3b1fef(0x1c3)](_0x3b1fef(0x1a7))?{'dbParam':_0x547550['str'](_0x3b1fef(0x1a7))}:{},..._0x547550[_0x3b1fef(0x1c3)]('dbdesc')?{'dbDesc':_0x547550[_0x3b1fef(0x1c3)](_0x3b1fef(0x1d1))}:{}};return{'method':_0x3b1fef(0x1b6),'url':_0x3b1fef(0x1cb),'body':_0x2b3814,'description':[_0x3b1fef(0x1c8),_0x547550[_0x3b1fef(0x1bd)](_0x3b1fef(0x1d2))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':_0x3b1fef(0x1b4)][_0x3b1fef(0x1b3)]('\x0a'),'connectionPreflight':{'enabled':!_0x547550[_0x3b1fef(0x1bd)](_0x3b1fef(0x1ce)),'executed':![]}};},async 'execute'(_0x49b142){const _0x42cccb=a84_0x243eee,_0x50906d={'appCode':_0x49b142[_0x42cccb(0x1cc)],'dbName':_0x49b142[_0x42cccb(0x1c3)]('dbname'),'dbType':_0x49b142[_0x42cccb(0x1c3)](_0x42cccb(0x1d0)),'dbVersion':_0x49b142['str'](_0x42cccb(0x1bf))||_0x42cccb(0x1ca),'dbUrl':_0x49b142[_0x42cccb(0x1c3)](_0x42cccb(0x1ab))['trim'](),'username':_0x49b142[_0x42cccb(0x1c3)]('username'),'password':_0x49b142[_0x42cccb(0x1c3)]('password'),..._0x49b142[_0x42cccb(0x1c3)]('dbparam')?{'dbParam':_0x49b142[_0x42cccb(0x1c3)]('dbparam')}:{},..._0x49b142[_0x42cccb(0x1c3)](_0x42cccb(0x1d1))?{'dbDesc':_0x49b142[_0x42cccb(0x1c3)](_0x42cccb(0x1d1))}:{}};!_0x49b142[_0x42cccb(0x1bd)](_0x42cccb(0x1ce))&&await assertDbLinkConnectionPreflight(_0x50906d);const {id:_0x2a409f,entity:_0x68c897}=normalizeEntityWithIdResponse(await createDbLink(_0x50906d));if(!_0x2a409f)return{'ok':![],'message':_0x42cccb(0x1b7),'data':sanitizeDbLinkForOutput(_0x68c897)};let _0x5276cd,_0x27e516;if(_0x49b142['bool'](_0x42cccb(0x1d2)))try{_0x5276cd=(await startDbAnalysis(_0x2a409f))[_0x42cccb(0x1c7)];}catch(_0x5b2976){_0x27e516=_0x5b2976 instanceof Error?_0x5b2976['message']:String(_0x5b2976);}const _0x1ca2aa=buildDbPageLinks(_0x49b142['appCode'],_0x2a409f),_0xeb0f67={'connection':sanitizeDbLinkForOutput(_0x68c897),..._0x1ca2aa?{'links':{'databasePage':_0x1ca2aa['databasePage']}}:{},..._0x5276cd?{'analysisPlanId':_0x5276cd}:{},..._0x27e516?{'analysisStartWarning':_0x27e516}:{}};let _0x332a94;return _0x49b142[_0x42cccb(0x1bd)](_0x42cccb(0x1d2))?_0x27e516?_0x332a94=_0x42cccb(0x1c9)+_0x2a409f+_0x42cccb(0x1af):_0x332a94=_0x42cccb(0x1c9)+_0x2a409f+_0x42cccb(0x1b5):_0x332a94=_0x42cccb(0x1c9)+_0x2a409f,{'ok':!![],'data':_0xeb0f67,'message':_0x332a94};}};
1
+ const a84_0x3295fa=a84_0x3c0e;(function(_0x1b092a,_0x2b2aa7){const _0x8210c=a84_0x3c0e,_0x3227c2=_0x1b092a();while(!![]){try{const _0xfe43f5=parseInt(_0x8210c(0x98))/0x1+parseInt(_0x8210c(0x9c))/0x2+parseInt(_0x8210c(0x8a))/0x3*(parseInt(_0x8210c(0x9b))/0x4)+-parseInt(_0x8210c(0x92))/0x5+-parseInt(_0x8210c(0x91))/0x6+-parseInt(_0x8210c(0x86))/0x7+parseInt(_0x8210c(0x78))/0x8;if(_0xfe43f5===_0x2b2aa7)break;else _0x3227c2['push'](_0x3227c2['shift']());}catch(_0xa09362){_0x3227c2['push'](_0x3227c2['shift']());}}}(a84_0x449f,0x89027));function a84_0x3c0e(_0x1618ba,_0x52ede7){_0x1618ba=_0x1618ba-0x77;const _0x449f73=a84_0x449f();let _0x3c0e9e=_0x449f73[_0x1618ba];return _0x3c0e9e;}import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a84_0x449f(){const _0x5ad9e9=['3790570blPfJf','write','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','dbdesc','validation','599471DPolrA','dbparam','dbtype','228XgkNCx','772194iXcYDi','POST','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Create\x20dblink','dbname','bool','message','str','password','dburl','5715008ZDSYmY','join','8.0','\x20and\x20started\x20analysis','Created\x20db\x20link\x20','autostart','databasePage','/smartapi/dblink/create','create','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbversion','Database\x20username','Database\x20password','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','6709381fBgFAa','Human-readable\x20description','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','trim','52098qfrULp','skip-connection-test','No\x20follow-up\x20analysis','username','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','string','appCode','2472108QHnnbB'];a84_0x449f=function(){return _0x5ad9e9;};return a84_0x449f();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a84_0x3295fa(0x80),'description':a84_0x3295fa(0x8e),'risk':a84_0x3295fa(0x93),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a84_0x3295fa(0xa0),'type':a84_0x3295fa(0x8f),'required':!![],'description':a84_0x3295fa(0x9e)},DB_TYPE_FLAG,{'name':a84_0x3295fa(0x82),'type':'string','description':a84_0x3295fa(0x94),'default':'8.0'},{'name':a84_0x3295fa(0x77),'type':a84_0x3295fa(0x8f),'required':!![],'description':'Host\x20and\x20port:\x20host:port'},{'name':a84_0x3295fa(0x8d),'type':a84_0x3295fa(0x8f),'required':!![],'description':a84_0x3295fa(0x83)},{'name':a84_0x3295fa(0xa4),'type':a84_0x3295fa(0x8f),'required':!![],'description':a84_0x3295fa(0x84)},{'name':a84_0x3295fa(0x99),'type':'string','description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a84_0x3295fa(0x96),'type':a84_0x3295fa(0x8f),'description':a84_0x3295fa(0x87)},{'name':a84_0x3295fa(0x7d),'type':'boolean','description':'After\x20create,\x20start\x20schema\x20analysis','default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x35fa40){const _0x8800e8=a84_0x3295fa,_0x23138e=_0x35fa40[_0x8800e8(0xa3)]('dburl')[_0x8800e8(0x89)]();if(!validateDbUrl(_0x23138e))throw CliErrors[_0x8800e8(0x97)](_0x8800e8(0x88)+_0x23138e+'\x22',_0x8800e8(0x95));},async 'dryRun'(_0x4d16d7){const _0x1989a0=a84_0x3295fa,_0x55fa9e={'appCode':_0x4d16d7['appCode'],'dbName':_0x4d16d7[_0x1989a0(0xa3)](_0x1989a0(0xa0)),'dbType':_0x4d16d7[_0x1989a0(0xa3)](_0x1989a0(0x9a)),'dbVersion':_0x4d16d7[_0x1989a0(0xa3)]('dbversion')||_0x1989a0(0x7a),'dbUrl':_0x4d16d7[_0x1989a0(0xa3)](_0x1989a0(0x77))[_0x1989a0(0x89)](),'username':_0x4d16d7[_0x1989a0(0xa3)]('username'),'password':'[redacted]',..._0x4d16d7[_0x1989a0(0xa3)](_0x1989a0(0x99))?{'dbParam':_0x4d16d7[_0x1989a0(0xa3)](_0x1989a0(0x99))}:{},..._0x4d16d7[_0x1989a0(0xa3)](_0x1989a0(0x96))?{'dbDesc':_0x4d16d7['str'](_0x1989a0(0x96))}:{}};return{'method':_0x1989a0(0x9d),'url':_0x1989a0(0x7f),'body':_0x55fa9e,'description':[_0x1989a0(0x9f),_0x4d16d7[_0x1989a0(0xa1)](_0x1989a0(0x7d))?_0x1989a0(0x81):_0x1989a0(0x8c)][_0x1989a0(0x79)]('\x0a'),'connectionPreflight':{'enabled':!_0x4d16d7[_0x1989a0(0xa1)](_0x1989a0(0x8b)),'executed':![]}};},async 'execute'(_0x2ccb31){const _0x2189cd=a84_0x3295fa,_0x27e6db={'appCode':_0x2ccb31[_0x2189cd(0x90)],'dbName':_0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0xa0)),'dbType':_0x2ccb31['str'](_0x2189cd(0x9a)),'dbVersion':_0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0x82))||'8.0','dbUrl':_0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0x77))[_0x2189cd(0x89)](),'username':_0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0x8d)),'password':_0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0xa4)),..._0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0x99))?{'dbParam':_0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0x99))}:{},..._0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0x96))?{'dbDesc':_0x2ccb31[_0x2189cd(0xa3)](_0x2189cd(0x96))}:{}};!_0x2ccb31['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x27e6db);const {id:_0x5e1e6c,entity:_0x32a47b}=normalizeEntityWithIdResponse(await createDbLink(_0x27e6db));if(!_0x5e1e6c)return{'ok':![],'message':_0x2189cd(0x85),'data':sanitizeDbLinkForOutput(_0x32a47b)};let _0x1aebda,_0x43a3bf;if(_0x2ccb31[_0x2189cd(0xa1)](_0x2189cd(0x7d)))try{_0x1aebda=(await startDbAnalysis(_0x5e1e6c))['planId'];}catch(_0x2569a4){_0x43a3bf=_0x2569a4 instanceof Error?_0x2569a4[_0x2189cd(0xa2)]:String(_0x2569a4);}const _0x1f3838=buildDbPageLinks(_0x2ccb31['appCode'],_0x5e1e6c),_0x534452={'connection':sanitizeDbLinkForOutput(_0x32a47b),..._0x1f3838?{'links':{'databasePage':_0x1f3838[_0x2189cd(0x7e)]}}:{},..._0x1aebda?{'analysisPlanId':_0x1aebda}:{},..._0x43a3bf?{'analysisStartWarning':_0x43a3bf}:{}};let _0x72a93;return _0x2ccb31[_0x2189cd(0xa1)]('autostart')?_0x43a3bf?_0x72a93=_0x2189cd(0x7c)+_0x5e1e6c+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x72a93='Created\x20db\x20link\x20'+_0x5e1e6c+_0x2189cd(0x7b):_0x72a93=_0x2189cd(0x7c)+_0x5e1e6c,{'ok':!![],'data':_0x534452,'message':_0x72a93};}};
@@ -1 +1 @@
1
- function a85_0x5de3(_0x1b3d64,_0x2cb7e9){_0x1b3d64=_0x1b3d64-0xc6;const _0x497472=a85_0x4974();let _0x5de373=_0x497472[_0x1b3d64];return _0x5de373;}const a85_0x3dca35=a85_0x5de3;(function(_0x330aac,_0x56a746){const _0x4e1f5f=a85_0x5de3,_0x5188ae=_0x330aac();while(!![]){try{const _0x176230=parseInt(_0x4e1f5f(0xd7))/0x1+-parseInt(_0x4e1f5f(0xd0))/0x2+parseInt(_0x4e1f5f(0xd6))/0x3*(-parseInt(_0x4e1f5f(0xc7))/0x4)+parseInt(_0x4e1f5f(0xe8))/0x5*(-parseInt(_0x4e1f5f(0xd1))/0x6)+parseInt(_0x4e1f5f(0xce))/0x7*(-parseInt(_0x4e1f5f(0xc8))/0x8)+-parseInt(_0x4e1f5f(0xe7))/0x9*(-parseInt(_0x4e1f5f(0xca))/0xa)+parseInt(_0x4e1f5f(0xde))/0xb;if(_0x176230===_0x56a746)break;else _0x5188ae['push'](_0x5188ae['shift']());}catch(_0x1e7197){_0x5188ae['push'](_0x5188ae['shift']());}}}(a85_0x4974,0x8e1cc));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a85_0x4974(){const _0x4aeb05=['isInteger','activeDatasetCount','8VRKRoq','6326648PjDyxl','\x20still\x20has\x20','259270HCgYBa','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','Expected\x20','num','7ArLVaH','bool','1421690LHogqT','2219862zlXykp','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','flag','DB_TABLE','confirm','594351pyxjWE','197077TBvPJu','\x20active\x20DB_TABLE\x20Dataset(s).','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','Database\x20connection\x20','all','high-risk-write','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','28973714etOWHD','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','Deletion\x20is\x20blocked\x20by\x20','\x20active\x20Dataset(s),\x20but\x20found\x20','datasetDependency','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','validation','135HlUwHI','10EnOBKP','expected-dataset-count','boolean','Deleted\x20db\x20link\x20'];a85_0x4974=function(){return _0x4aeb05;};return a85_0x4974();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a85_0x3dca35(0xd5),'type':a85_0x3dca35(0xea),'description':a85_0x3dca35(0xd9)},EXPECTED_DATASET_COUNT_FLAG={'name':'expected-dataset-count','type':'number','description':'Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value'};export const dbDelete={'service':'db','command':'delete','description':'Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','risk':a85_0x3dca35(0xdc),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x359dc8){const _0x2736c2=a85_0x3dca35,_0x7108e4=await loadDeleteImpact(_0x359dc8);return assertExpectedDatasetCount(_0x359dc8,_0x7108e4[_0x2736c2(0xe4)][_0x2736c2(0xc6)]),{'method':'POST','url':'/smartapi/dblink/delete','body':{'id':_0x7108e4['id']},'description':_0x7108e4['datasetDependency']['activeDatasetCount']>0x0?_0x2736c2(0xe2)+_0x7108e4[_0x2736c2(0xe4)][_0x2736c2(0xc6)]+_0x2736c2(0xd8):_0x2736c2(0xe1),..._0x7108e4};},async 'execute'(_0xe8a854){const _0x251b0d=a85_0x3dca35;if(!_0xe8a854[_0x251b0d(0xcf)](_0x251b0d(0xd5)))throw CliErrors['validation'](_0x251b0d(0xdf),_0x251b0d(0xe0));const _0x264ed3=_0xe8a854[_0x251b0d(0xcd)]('id'),_0x3341b8=await loadDeleteImpact(_0xe8a854),_0x3afa6f=_0x3341b8[_0x251b0d(0xe4)][_0x251b0d(0xc6)];assertExpectedDatasetCount(_0xe8a854,_0x3afa6f);if(_0x3afa6f>0x0)throw CliErrors['validation'](_0x251b0d(0xda)+_0x264ed3+_0x251b0d(0xc9)+_0x3afa6f+_0x251b0d(0xe5),_0x251b0d(0xcb));return await deleteDbLink(_0x264ed3),{'ok':!![],'data':{'id':_0x264ed3,'deleted':!![],'activeDatasetCount':_0x3afa6f},'message':_0x251b0d(0xeb)+_0x264ed3};}};async function loadDeleteImpact(_0x42e1e9){const _0x1611c1=a85_0x3dca35,_0x23a910=_0x42e1e9[_0x1611c1(0xcd)]('id'),[_0x51b0e6,_0xc18609]=await Promise[_0x1611c1(0xdb)]([getDbLinkInfo(_0x23a910),listDatasets(_0x42e1e9['appCode'],{'source':_0x1611c1(0xd4)})]),_0x22c7c7=buildDbDatasetDependency(_0x51b0e6,_0xc18609);return{'id':_0x23a910,'connection':sanitizeDbLinkForOutput(_0x51b0e6),'datasetDependency':_0x22c7c7[_0x1611c1(0xe4)],'activeDatasetCount':_0x22c7c7[_0x1611c1(0xe4)]['activeDatasetCount'],'datasets':_0x22c7c7['datasets']};}function assertExpectedDatasetCount(_0x5e8bd5,_0xe385e1){const _0x5b2894=a85_0x3dca35,_0xe7354a=_0x5e8bd5[_0x5b2894(0xd3)](_0x5b2894(0xe9));if(_0xe7354a===undefined||_0xe7354a==='')return;const _0x2a91f1=_0x5e8bd5[_0x5b2894(0xcd)]('expected-dataset-count');if(!Number[_0x5b2894(0xec)](_0x2a91f1)||_0x2a91f1<0x0)throw CliErrors[_0x5b2894(0xe6)](_0x5b2894(0xd2));if(_0x2a91f1!==_0xe385e1)throw CliErrors[_0x5b2894(0xe6)](_0x5b2894(0xcc)+_0x2a91f1+_0x5b2894(0xe3)+_0xe385e1+'.',_0x5b2894(0xdd));}
1
+ const a85_0x550d10=a85_0x2400;(function(_0x2c2431,_0x1bacfd){const _0x1e1ec9=a85_0x2400,_0x36cb71=_0x2c2431();while(!![]){try{const _0x41d276=-parseInt(_0x1e1ec9(0x111))/0x1+parseInt(_0x1e1ec9(0x117))/0x2*(-parseInt(_0x1e1ec9(0x119))/0x3)+parseInt(_0x1e1ec9(0x11b))/0x4*(-parseInt(_0x1e1ec9(0x121))/0x5)+parseInt(_0x1e1ec9(0x107))/0x6+parseInt(_0x1e1ec9(0x115))/0x7*(-parseInt(_0x1e1ec9(0x122))/0x8)+parseInt(_0x1e1ec9(0x128))/0x9+parseInt(_0x1e1ec9(0x10b))/0xa;if(_0x41d276===_0x1bacfd)break;else _0x36cb71['push'](_0x36cb71['shift']());}catch(_0x3bd2df){_0x36cb71['push'](_0x36cb71['shift']());}}}(a85_0x4484,0x2c7ca));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a85_0x4484(){const _0x49cd8e=['1481100Wlqnbj','expected-dataset-count','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','\x20active\x20DB_TABLE\x20Dataset(s).','5750420YeVLWd','Expected\x20','Deleted\x20db\x20link\x20','number','POST','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','129217JIdJEG','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','appCode','datasets','700364YLPvdQ','num','36AFIutc','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','52464xiYnYx','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','4444jcvlaj','activeDatasetCount','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','flag','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','confirm','635dAKpiD','8TliMBf','datasetDependency','validation','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','\x20active\x20Dataset(s),\x20but\x20found\x20','isInteger','409284PJAUHa','\x20still\x20has\x20','delete','DB_TABLE'];a85_0x4484=function(){return _0x49cd8e;};return a85_0x4484();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a85_0x550d10(0x120),'type':'boolean','description':a85_0x550d10(0x109)},EXPECTED_DATASET_COUNT_FLAG={'name':a85_0x550d10(0x108),'type':a85_0x550d10(0x10e),'description':a85_0x550d10(0x118)};function a85_0x2400(_0x3e3fc7,_0x4e7b02){_0x3e3fc7=_0x3e3fc7-0x106;const _0x4484f3=a85_0x4484();let _0x240052=_0x4484f3[_0x3e3fc7];return _0x240052;}export const dbDelete={'service':'db','command':a85_0x550d10(0x12a),'description':a85_0x550d10(0x125),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x57c327){const _0x45a244=a85_0x550d10,_0x91b83=await loadDeleteImpact(_0x57c327);return assertExpectedDatasetCount(_0x57c327,_0x91b83['datasetDependency'][_0x45a244(0x11c)]),{'method':_0x45a244(0x10f),'url':'/smartapi/dblink/delete','body':{'id':_0x91b83['id']},'description':_0x91b83['datasetDependency'][_0x45a244(0x11c)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0x91b83[_0x45a244(0x123)][_0x45a244(0x11c)]+_0x45a244(0x10a):'Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.',..._0x91b83};},async 'execute'(_0x4aee19){const _0x35f895=a85_0x550d10;if(!_0x4aee19['bool'](_0x35f895(0x120)))throw CliErrors[_0x35f895(0x124)](_0x35f895(0x112),_0x35f895(0x11a));const _0x47384a=_0x4aee19[_0x35f895(0x116)]('id'),_0x4da8eb=await loadDeleteImpact(_0x4aee19),_0x47309b=_0x4da8eb[_0x35f895(0x123)][_0x35f895(0x11c)];assertExpectedDatasetCount(_0x4aee19,_0x47309b);if(_0x47309b>0x0)throw CliErrors['validation']('Database\x20connection\x20'+_0x47384a+_0x35f895(0x129)+_0x47309b+_0x35f895(0x11d),'Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.');return await deleteDbLink(_0x47384a),{'ok':!![],'data':{'id':_0x47384a,'deleted':!![],'activeDatasetCount':_0x47309b},'message':_0x35f895(0x10d)+_0x47384a};}};async function loadDeleteImpact(_0x8c39a5){const _0x508c2e=a85_0x550d10,_0x321485=_0x8c39a5[_0x508c2e(0x116)]('id'),[_0x46b342,_0x44e021]=await Promise['all']([getDbLinkInfo(_0x321485),listDatasets(_0x8c39a5[_0x508c2e(0x113)],{'source':_0x508c2e(0x106)})]),_0x371857=buildDbDatasetDependency(_0x46b342,_0x44e021);return{'id':_0x321485,'connection':sanitizeDbLinkForOutput(_0x46b342),'datasetDependency':_0x371857[_0x508c2e(0x123)],'activeDatasetCount':_0x371857[_0x508c2e(0x123)][_0x508c2e(0x11c)],'datasets':_0x371857[_0x508c2e(0x114)]};}function assertExpectedDatasetCount(_0x407727,_0x5ba4b3){const _0x1ef900=a85_0x550d10,_0x12f0c3=_0x407727[_0x1ef900(0x11e)](_0x1ef900(0x108));if(_0x12f0c3===undefined||_0x12f0c3==='')return;const _0x17e0e1=_0x407727[_0x1ef900(0x116)]('expected-dataset-count');if(!Number[_0x1ef900(0x127)](_0x17e0e1)||_0x17e0e1<0x0)throw CliErrors[_0x1ef900(0x124)](_0x1ef900(0x110));if(_0x17e0e1!==_0x5ba4b3)throw CliErrors[_0x1ef900(0x124)](_0x1ef900(0x10c)+_0x17e0e1+_0x1ef900(0x126)+_0x5ba4b3+'.',_0x1ef900(0x11f));}
@@ -1 +1 @@
1
- const a86_0x38b6bd=a86_0x1a93;(function(_0x187e90,_0x277f4c){const _0x58ef01=a86_0x1a93,_0x442e28=_0x187e90();while(!![]){try{const _0x3c7885=parseInt(_0x58ef01(0x10a))/0x1*(-parseInt(_0x58ef01(0x10b))/0x2)+parseInt(_0x58ef01(0x111))/0x3*(-parseInt(_0x58ef01(0x108))/0x4)+parseInt(_0x58ef01(0x109))/0x5*(-parseInt(_0x58ef01(0x110))/0x6)+-parseInt(_0x58ef01(0x105))/0x7*(parseInt(_0x58ef01(0x107))/0x8)+-parseInt(_0x58ef01(0x113))/0x9*(-parseInt(_0x58ef01(0x106))/0xa)+-parseInt(_0x58ef01(0x103))/0xb*(parseInt(_0x58ef01(0x102))/0xc)+parseInt(_0x58ef01(0x104))/0xd;if(_0x3c7885===_0x277f4c)break;else _0x442e28['push'](_0x442e28['shift']());}catch(_0x316ffb){_0x442e28['push'](_0x442e28['shift']());}}}(a86_0x6af9,0x3fd86));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a86_0x1a93(_0x168a43,_0x4d1ebf){_0x168a43=_0x168a43-0x102;const _0x6af963=a86_0x6af9();let _0x1a939a=_0x6af963[_0x168a43];return _0x1a939a;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a86_0x6af9(){const _0x458a10=['Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','appCode','DB_TABLE','400206hJgKuB','196671FfsyCi','num','1052343sEmTbU','24llQFLF','1706947KVoOBi','12972492YARYDj','182FRvOxG','40dJlvKj','41928aMZNvr','16oUXWvd','5BSkfpN','428533uSGBFS','2wonQSz','dbName'];a86_0x6af9=function(){return _0x458a10;};return a86_0x6af9();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a86_0x38b6bd(0x10d),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3abc25){const _0x3d3054=a86_0x38b6bd,_0x2a058d=_0x3abc25[_0x3d3054(0x112)]('id'),_0x3c996c=await getDbLinkInfo(_0x2a058d),_0x580cc8=await listDatasets(_0x3c996c[_0x3d3054(0x10e)]||_0x3abc25[_0x3d3054(0x10e)],{'source':_0x3d3054(0x10f)}),_0x56d1a1=buildDbDatasetDependency(_0x3c996c,_0x580cc8);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x3c996c),'datasetDependency':_0x56d1a1['datasetDependency']},'message':'db\x20link\x20'+_0x2a058d+':\x20'+_0x3c996c[_0x3d3054(0x10c)]};}};
1
+ const a86_0x26339c=a86_0x52a5;(function(_0x22ee01,_0x351e48){const _0x484657=a86_0x52a5,_0x5bc584=_0x22ee01();while(!![]){try{const _0x5a3e5a=parseInt(_0x484657(0xa0))/0x1*(-parseInt(_0x484657(0xa2))/0x2)+-parseInt(_0x484657(0xa7))/0x3*(parseInt(_0x484657(0xa3))/0x4)+parseInt(_0x484657(0x9f))/0x5+parseInt(_0x484657(0xa1))/0x6*(parseInt(_0x484657(0x9d))/0x7)+parseInt(_0x484657(0x9e))/0x8*(parseInt(_0x484657(0xad))/0x9)+-parseInt(_0x484657(0xac))/0xa+parseInt(_0x484657(0xa9))/0xb*(parseInt(_0x484657(0xaa))/0xc);if(_0x5a3e5a===_0x351e48)break;else _0x5bc584['push'](_0x5bc584['shift']());}catch(_0x31f604){_0x5bc584['push'](_0x5bc584['shift']());}}}(a86_0x2508,0x3bef4));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a86_0x52a5(_0x5d4404,_0x6ad48e){_0x5d4404=_0x5d4404-0x9c;const _0x2508ae=a86_0x2508();let _0x52a5bc=_0x2508ae[_0x5d4404];return _0x52a5bc;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a86_0x2508(){const _0x30aca0=['read','1542000HtNrPG','9rXnpyD','DB_TABLE','7xujXcA','1193144cfbHxD','1653910wjqRci','6AEGCeE','404238CbvrSM','100998bHIfKd','195784BOjKXz','detail','appCode','dbName','6GiafUi','db\x20link\x20','44wfgmDj','759840BYPqtU'];a86_0x2508=function(){return _0x30aca0;};return a86_0x2508();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a86_0x26339c(0xa4),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a86_0x26339c(0xab),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xb2c603){const _0x2a4213=a86_0x26339c,_0x3dd7c5=_0xb2c603['num']('id'),_0x918c2=await getDbLinkInfo(_0x3dd7c5),_0x34b6e7=await listDatasets(_0x918c2[_0x2a4213(0xa5)]||_0xb2c603[_0x2a4213(0xa5)],{'source':_0x2a4213(0x9c)}),_0x570647=buildDbDatasetDependency(_0x918c2,_0x34b6e7);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x918c2),'datasetDependency':_0x570647['datasetDependency']},'message':_0x2a4213(0xa8)+_0x3dd7c5+':\x20'+_0x918c2[_0x2a4213(0xa6)]};}};
@@ -1 +1 @@
1
- const a87_0x1ae62d=a87_0x33fe;(function(_0x41722b,_0x35f1c){const _0x97bf60=a87_0x33fe,_0x26641b=_0x41722b();while(!![]){try{const _0x20b20e=-parseInt(_0x97bf60(0x121))/0x1+parseInt(_0x97bf60(0x124))/0x2+-parseInt(_0x97bf60(0x118))/0x3*(parseInt(_0x97bf60(0x11b))/0x4)+parseInt(_0x97bf60(0x120))/0x5*(parseInt(_0x97bf60(0x119))/0x6)+-parseInt(_0x97bf60(0x117))/0x7*(-parseInt(_0x97bf60(0x123))/0x8)+-parseInt(_0x97bf60(0x129))/0x9+-parseInt(_0x97bf60(0x122))/0xa*(-parseInt(_0x97bf60(0x114))/0xb);if(_0x20b20e===_0x35f1c)break;else _0x26641b['push'](_0x26641b['shift']());}catch(_0x3f4fef){_0x26641b['push'](_0x26641b['shift']());}}}(a87_0x26ac,0x2f25f));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a87_0x26ac(){const _0x1bb600=['trim','1100SMukNK','\x20--plan\x20','diff-refresh-start','validation','traceId','15CNxXee','65552ufxGNC','10BOULfx','8lWMRNW','54348VYCdzw','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','\x20db\x20diff-refresh-status\x20--id\x20','\x20--format\x20compress','status','1639368HUVtuf','2054789QTbIuq','appCode','write','183372dUaQZO','393WaZibB','473358vptBtT'];a87_0x26ac=function(){return _0x1bb600;};return a87_0x26ac();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a87_0x33fe(_0x370d6e,_0x25449a){_0x370d6e=_0x370d6e-0x114;const _0x26ac0d=a87_0x26ac();let _0x33fedf=_0x26ac0d[_0x370d6e];return _0x33fedf;}import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a87_0x1ae62d(0x11d),'description':a87_0x1ae62d(0x125),'risk':a87_0x1ae62d(0x116),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x5939ca){const _0x25e733=a87_0x1ae62d,_0x307bd3=_0x5939ca['num']('id'),_0x45744a=await startDbTableDiffRefresh(_0x5939ca[_0x25e733(0x115)],_0x307bd3),_0xce79a5=_0x45744a[_0x25e733(0x11f)]?.[_0x25e733(0x11a)]();if(!_0xce79a5)throw CliErrors[_0x25e733(0x11e)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x307bd3,'traceId':_0xce79a5,'status':_0x45744a[_0x25e733(0x128)]??null,'query':{'command':CLI_BIN_NAME+_0x25e733(0x126)+_0x307bd3+_0x25e733(0x11c)+_0xce79a5+_0x25e733(0x127)}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0x307bd3};}};
1
+ const a87_0x217002=a87_0x47c1;(function(_0x39fdce,_0x1de3fa){const _0x56aa97=a87_0x47c1,_0xbb4b67=_0x39fdce();while(!![]){try{const _0x1d547c=parseInt(_0x56aa97(0x1d0))/0x1*(-parseInt(_0x56aa97(0x1c7))/0x2)+-parseInt(_0x56aa97(0x1d5))/0x3*(parseInt(_0x56aa97(0x1cb))/0x4)+-parseInt(_0x56aa97(0x1d6))/0x5*(-parseInt(_0x56aa97(0x1c6))/0x6)+parseInt(_0x56aa97(0x1c8))/0x7+parseInt(_0x56aa97(0x1d9))/0x8*(parseInt(_0x56aa97(0x1c9))/0x9)+parseInt(_0x56aa97(0x1cc))/0xa*(-parseInt(_0x56aa97(0x1d4))/0xb)+parseInt(_0x56aa97(0x1d8))/0xc*(parseInt(_0x56aa97(0x1d7))/0xd);if(_0x1d547c===_0x1de3fa)break;else _0xbb4b67['push'](_0xbb4b67['shift']());}catch(_0x176f89){_0xbb4b67['push'](_0xbb4b67['shift']());}}}(a87_0x1769,0xee180));function a87_0x47c1(_0x599ece,_0x794f0e){_0x599ece=_0x599ece-0x1c6;const _0x17690b=a87_0x1769();let _0x47c14d=_0x17690b[_0x599ece];return _0x47c14d;}import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a87_0x1769(){const _0x33aef7=['12DYnsnw','7365472kPjsKp','51684EPRHuX','990690xWvavc','4573275vptThz','18dhxJsi','status','1450772XEiGNo','10jrbXMX','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','write','\x20db\x20diff-refresh-status\x20--id\x20','3NOUJQq','\x20--format\x20compress','traceId','validation','6896428EVjHFn','12wOTwPd','1130lbjJyF','1267890LMRRyz'];a87_0x1769=function(){return _0x33aef7;};return a87_0x1769();}export const dbDiffRefreshStart={'service':'db','command':'diff-refresh-start','description':'Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','risk':a87_0x217002(0x1ce),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x3d9d2a){const _0x5ebdca=a87_0x217002,_0x20e965=_0x3d9d2a['num']('id'),_0x304f8a=await startDbTableDiffRefresh(_0x3d9d2a['appCode'],_0x20e965),_0x5922e8=_0x304f8a[_0x5ebdca(0x1d2)]?.['trim']();if(!_0x5922e8)throw CliErrors[_0x5ebdca(0x1d3)](_0x5ebdca(0x1cd));return{'ok':!![],'data':{'dbLinkId':_0x20e965,'traceId':_0x5922e8,'status':_0x304f8a[_0x5ebdca(0x1ca)]??null,'query':{'command':CLI_BIN_NAME+_0x5ebdca(0x1cf)+_0x20e965+'\x20--plan\x20'+_0x5922e8+_0x5ebdca(0x1d1)}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0x20e965};}};
@@ -1 +1 @@
1
- function a88_0xd83a(_0x30a1fc,_0xbec2d){_0x30a1fc=_0x30a1fc-0x88;const _0x1dd53b=a88_0x1dd5();let _0xd83a0c=_0x1dd53b[_0x30a1fc];return _0xd83a0c;}const a88_0x362981=a88_0xd83a;(function(_0x276cfe,_0x546591){const _0x320c40=a88_0xd83a,_0x1e7613=_0x276cfe();while(!![]){try{const _0x65e815=parseInt(_0x320c40(0x9b))/0x1+parseInt(_0x320c40(0x88))/0x2+-parseInt(_0x320c40(0x93))/0x3*(-parseInt(_0x320c40(0x94))/0x4)+-parseInt(_0x320c40(0x90))/0x5+parseInt(_0x320c40(0x89))/0x6*(-parseInt(_0x320c40(0x9e))/0x7)+parseInt(_0x320c40(0x99))/0x8+parseInt(_0x320c40(0x9d))/0x9*(parseInt(_0x320c40(0x91))/0xa);if(_0x65e815===_0x546591)break;else _0x1e7613['push'](_0x1e7613['shift']());}catch(_0x42ff0a){_0x1e7613['push'](_0x1e7613['shift']());}}}(a88_0x1dd5,0x4cd6e));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a88_0x362981(0x8b),a88_0x362981(0x92),a88_0x362981(0x9f)]),RUNNING_STATUSES=new Set([a88_0x362981(0x8a),a88_0x362981(0x8f),'RETRYING']);function a88_0x1dd5(){const _0x3a48cd=['str','status','303296KtbGQN','string','591266bMAvOM','plan','974637fauHMc','658875JWhgaH','CANCELLED','384956CmVavF','30xOyCXD','PENDING','SUCCESS','\x20--plan\x20','UNKNOWN','read','RUNNING','1663175olwMUf','10eWwHQT','FAILED','195OPHHVa','11572kPNAeb','has','Table-diff\x20refresh\x20status\x20for\x20'];a88_0x1dd5=function(){return _0x3a48cd;};return a88_0x1dd5();}export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':'Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a88_0x362981(0x8e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'plan','type':a88_0x362981(0x9a),'required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x536cac){const _0xbac1ea=a88_0x362981,_0x59286b=_0x536cac['num']('id'),_0x362f3a=_0x536cac[_0xbac1ea(0x97)](_0xbac1ea(0x9c)),_0x50909d=await getDbAnalysisStatus(_0x362f3a),_0x4f96b7=_0x50909d[_0xbac1ea(0x98)]??null,_0x49a647=TERMINAL_STATUSES[_0xbac1ea(0x95)](_0x4f96b7??''),_0x5822c0=_0x4f96b7===_0xbac1ea(0x8b),_0x57b2a9=_0x49a647||RUNNING_STATUSES[_0xbac1ea(0x95)](_0x4f96b7??'');return{'ok':!![],'data':{'dbLinkId':_0x59286b,'planId':_0x362f3a,'status':_0x50909d,'knownStatus':_0x57b2a9,'isTerminal':_0x49a647,'isSuccessful':_0x5822c0,'query':_0x57b2a9&&!_0x49a647?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x59286b+_0xbac1ea(0x8c)+_0x362f3a+'\x20--format\x20compress'}:null},'message':_0xbac1ea(0x96)+_0x362f3a+':\x20'+(_0x4f96b7??_0xbac1ea(0x8d))};}};
1
+ const a88_0x1263b1=a88_0x5c5e;(function(_0x30435a,_0x2c142c){const _0x5c9e4c=a88_0x5c5e,_0x4539bd=_0x30435a();while(!![]){try{const _0x1cfedf=parseInt(_0x5c9e4c(0xc7))/0x1+parseInt(_0x5c9e4c(0xb9))/0x2*(parseInt(_0x5c9e4c(0xb7))/0x3)+parseInt(_0x5c9e4c(0xbf))/0x4+-parseInt(_0x5c9e4c(0xc1))/0x5+parseInt(_0x5c9e4c(0xc8))/0x6+parseInt(_0x5c9e4c(0xc2))/0x7*(-parseInt(_0x5c9e4c(0xc3))/0x8)+parseInt(_0x5c9e4c(0xbd))/0x9*(parseInt(_0x5c9e4c(0xbc))/0xa);if(_0x1cfedf===_0x2c142c)break;else _0x4539bd['push'](_0x4539bd['shift']());}catch(_0x5a0438){_0x4539bd['push'](_0x4539bd['shift']());}}}(a88_0x4eb2,0x62ae3));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a88_0x1263b1(0xb6),'FAILED',a88_0x1263b1(0xcb)]),RUNNING_STATUSES=new Set([a88_0x1263b1(0xc4),a88_0x1263b1(0xba),a88_0x1263b1(0xc5)]);export const dbDiffRefreshStatus={'service':'db','command':a88_0x1263b1(0xb8),'description':a88_0x1263b1(0xc9),'risk':a88_0x1263b1(0xbe),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x1263b1(0xcc),'type':a88_0x1263b1(0xcd),'required':!![],'description':a88_0x1263b1(0xca)}],async 'execute'(_0x5c7437){const _0x474d43=a88_0x1263b1,_0x5cec87=_0x5c7437['num']('id'),_0x56faea=_0x5c7437['str'](_0x474d43(0xcc)),_0x4f31b8=await getDbAnalysisStatus(_0x56faea),_0x16e99c=_0x4f31b8['status']??null,_0x3def5c=TERMINAL_STATUSES[_0x474d43(0xc0)](_0x16e99c??''),_0x5b917b=_0x16e99c==='SUCCESS',_0x1456e5=_0x3def5c||RUNNING_STATUSES['has'](_0x16e99c??'');return{'ok':!![],'data':{'dbLinkId':_0x5cec87,'planId':_0x56faea,'status':_0x4f31b8,'knownStatus':_0x1456e5,'isTerminal':_0x3def5c,'isSuccessful':_0x5b917b,'query':_0x1456e5&&!_0x3def5c?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x5cec87+'\x20--plan\x20'+_0x56faea+'\x20--format\x20compress'}:null},'message':_0x474d43(0xbb)+_0x56faea+':\x20'+(_0x16e99c??_0x474d43(0xc6))};}};function a88_0x5c5e(_0x9ad573,_0x2a5b26){_0x9ad573=_0x9ad573-0xb6;const _0x4eb2aa=a88_0x4eb2();let _0x5c5e4f=_0x4eb2aa[_0x9ad573];return _0x5c5e4f;}function a88_0x4eb2(){const _0x2fc274=['Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','CANCELLED','plan','string','SUCCESS','74523tlypBz','diff-refresh-status','34hQoAVP','RUNNING','Table-diff\x20refresh\x20status\x20for\x20','20hHUMev','1065645vtXqou','read','2483416kXOzAb','has','3497570pOQpdz','15099obejTf','1480vGphHO','PENDING','RETRYING','UNKNOWN','13679hEtkCS','1254684RlQZMv','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id'];a88_0x4eb2=function(){return _0x2fc274;};return a88_0x4eb2();}
@@ -1 +1 @@
1
- function a89_0x1cad(){const _0x5d7692=['boolean','6711771scBCGh','physicalTableCount','Page\x20size','fieldDiff','DELETED_TABLE','filter','diff','MODIFIED_TABLE','str','48GpLhfu','map','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','number','1196508gtkbgz','14884pGVVtv','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','bool','modifiedColumns','summary','num','diffType','read','pagesize','table','totalCount','datasetTableCount','appCode','string','deletedColumns','length','\x20(db\x20link\x20','all','13188MXKeyq','tableName','tableList','page','21456oqmVqO','NEW_TABLE','8FFWfgh','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','10YbxtLO','1107CypppG','1707720GbOlhp','\x20changed\x20table\x20row(s),\x20total\x20','1496405GEGjjj'];a89_0x1cad=function(){return _0x5d7692;};return a89_0x1cad();}const a89_0x42cd08=a89_0x1975;(function(_0x25d757,_0x154471){const _0x3965a2=a89_0x1975,_0x4ab326=_0x25d757();while(!![]){try{const _0x2ddbf0=-parseInt(_0x3965a2(0x139))/0x1*(-parseInt(_0x3965a2(0x123))/0x2)+-parseInt(_0x3965a2(0x11d))/0x3*(-parseInt(_0x3965a2(0x134))/0x4)+parseInt(_0x3965a2(0x129))/0x5+-parseInt(_0x3965a2(0x138))/0x6+parseInt(_0x3965a2(0x127))/0x7+parseInt(_0x3965a2(0x121))/0x8*(parseInt(_0x3965a2(0x126))/0x9)+parseInt(_0x3965a2(0x125))/0xa*(-parseInt(_0x3965a2(0x12b))/0xb);if(_0x2ddbf0===_0x154471)break;else _0x4ab326['push'](_0x4ab326['shift']());}catch(_0x371d72){_0x4ab326['push'](_0x4ab326['shift']());}}}(a89_0x1cad,0x2aedc));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0x1975(_0x3b5ccd,_0x383796){_0x3b5ccd=_0x3b5ccd-0x110;const _0x1cad99=a89_0x1cad();let _0x1975ea=_0x1cad99[_0x3b5ccd];return _0x1975ea;}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a89_0x42cd08(0x131),'description':a89_0x42cd08(0x124),'risk':a89_0x42cd08(0x112),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a89_0x42cd08(0x118),'description':a89_0x42cd08(0x13a)},{'name':a89_0x42cd08(0x120),'type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a89_0x42cd08(0x137),'description':a89_0x42cd08(0x12d),'default':0x14},{'name':'all','type':a89_0x42cd08(0x12a),'description':a89_0x42cd08(0x136)}],async 'execute'(_0x28f4e4){const _0x71ec9=a89_0x42cd08,_0xb3dc67=_0x28f4e4[_0x71ec9(0x110)]('id'),_0x4cdbb0=_0x28f4e4[_0x71ec9(0x13b)](_0x71ec9(0x11c)),_0x5b3e79=_0x4cdbb0?0x1:_0x28f4e4[_0x71ec9(0x110)]('page',0x1)||0x1,_0x1e8818=_0x4cdbb0?DB_TABLE_PAGE_SIZE:_0x28f4e4[_0x71ec9(0x110)](_0x71ec9(0x113),0x14)||0x14,_0x462f44=_0x28f4e4[_0x71ec9(0x133)](_0x71ec9(0x114))||undefined,_0x44e262=_0x4cdbb0?await getAllDbTableDiff(getDbTableDiff,_0x28f4e4[_0x71ec9(0x117)],_0xb3dc67,_0x462f44):await getDbTableDiff(_0x28f4e4[_0x71ec9(0x117)],_0xb3dc67,{'pageIndex':_0x5b3e79,'pageSize':_0x1e8818,'tableName':_0x462f44}),_0x4234ec=_0x44e262[_0x71ec9(0x11f)],_0x4cdab4=summarizeDbTableDiff(_0x4234ec),_0x305d2a=_0x4234ec[_0x71ec9(0x130)](_0x37274d=>_0x37274d[_0x71ec9(0x111)]===_0x71ec9(0x122)||_0x37274d[_0x71ec9(0x111)]===_0x71ec9(0x132))[_0x71ec9(0x135)](_0x584ee1=>_0x584ee1[_0x71ec9(0x11e)]),_0x21aa05=_0x4234ec[_0x71ec9(0x130)](_0x5452c1=>_0x5452c1['diffType']===_0x71ec9(0x12f))[_0x71ec9(0x135)](_0x1bc09e=>_0x1bc09e[_0x71ec9(0x11e)]),_0x302a9e=_0x4234ec['filter'](_0x529ea6=>_0x529ea6[_0x71ec9(0x111)]==='MODIFIED_TABLE')[_0x71ec9(0x135)](_0x3379f7=>({'tableName':_0x3379f7[_0x71ec9(0x11e)],'addedColumns':_0x3379f7['fieldDiff']?.['addedColumns']??[],'deletedColumns':_0x3379f7[_0x71ec9(0x12e)]?.[_0x71ec9(0x119)]??[],'modifiedColumns':_0x3379f7[_0x71ec9(0x12e)]?.[_0x71ec9(0x13c)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0xb3dc67,'page':_0x5b3e79,'pageSize':_0x1e8818,'totalCount':_0x44e262[_0x71ec9(0x115)],...typeof _0x44e262[_0x71ec9(0x12c)]==='number'?{'physicalTableCount':_0x44e262[_0x71ec9(0x12c)]}:{},...typeof _0x44e262[_0x71ec9(0x116)]===_0x71ec9(0x137)?{'datasetTableCount':_0x44e262[_0x71ec9(0x116)]}:{},..._0x44e262[_0x71ec9(0x13d)]?{'summary':_0x44e262[_0x71ec9(0x13d)]}:{},'summaryByType':_0x4cdab4,'toAnalyzeTables':_0x305d2a,'deletedTables':_0x21aa05,'modifiedFieldDiffs':_0x302a9e,'tables':_0x4234ec},'message':_0x4234ec[_0x71ec9(0x11a)]+_0x71ec9(0x128)+_0x44e262[_0x71ec9(0x115)]+_0x71ec9(0x11b)+_0xb3dc67+')'};}};
1
+ const a89_0x5b7d0e=a89_0x1319;(function(_0x375b09,_0x1738cd){const _0x2d2202=a89_0x1319,_0x425d83=_0x375b09();while(!![]){try{const _0xa4dd6=parseInt(_0x2d2202(0x201))/0x1*(parseInt(_0x2d2202(0x200))/0x2)+parseInt(_0x2d2202(0x206))/0x3+-parseInt(_0x2d2202(0x1fc))/0x4+-parseInt(_0x2d2202(0x1ed))/0x5+parseInt(_0x2d2202(0x1f3))/0x6+-parseInt(_0x2d2202(0x1f8))/0x7*(parseInt(_0x2d2202(0x1f6))/0x8)+-parseInt(_0x2d2202(0x20a))/0x9;if(_0xa4dd6===_0x1738cd)break;else _0x425d83['push'](_0x425d83['shift']());}catch(_0x775f9f){_0x425d83['push'](_0x425d83['shift']());}}}(a89_0x175a,0x54ecd));function a89_0x175a(){const _0x184cf1=['82163PUjSwQ','summary','datasetTableCount','pagesize','modifiedColumns','780942GRalNJ','deletedColumns','DELETED_TABLE','physicalTableCount','506277DSLcjN','read','map','page','diffType','Page\x20size','464095GUqPSP','Page\x20index\x20(1-based)','tableName','\x20changed\x20table\x20row(s),\x20total\x20','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','MODIFIED_TABLE','1317588hnHjyr','totalCount','tableList','171736RQOQjm','num','7eszbfH','diff','table','number','174732viLIqk','appCode','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','string','2TqOMHS'];a89_0x175a=function(){return _0x184cf1;};return a89_0x175a();}function a89_0x1319(_0xd7ea05,_0x170fd5){_0xd7ea05=_0xd7ea05-0x1ea;const _0x175a6d=a89_0x175a();let _0x131948=_0x175a6d[_0xd7ea05];return _0x131948;}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a89_0x5b7d0e(0x1f9),'description':a89_0x5b7d0e(0x1fe),'risk':a89_0x5b7d0e(0x20b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a89_0x5b7d0e(0x1fa),'type':a89_0x5b7d0e(0x1ff),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':a89_0x5b7d0e(0x1fb),'description':a89_0x5b7d0e(0x1ee),'default':0x1},{'name':a89_0x5b7d0e(0x204),'type':a89_0x5b7d0e(0x1fb),'description':a89_0x5b7d0e(0x1ec),'default':0x14},{'name':'all','type':'boolean','description':a89_0x5b7d0e(0x1f1)}],async 'execute'(_0x376867){const _0x1670e6=a89_0x5b7d0e,_0x497d3c=_0x376867[_0x1670e6(0x1f7)]('id'),_0x8602b2=_0x376867['bool']('all'),_0x386ea4=_0x8602b2?0x1:_0x376867[_0x1670e6(0x1f7)](_0x1670e6(0x1ea),0x1)||0x1,_0x783914=_0x8602b2?DB_TABLE_PAGE_SIZE:_0x376867['num'](_0x1670e6(0x204),0x14)||0x14,_0xbd0742=_0x376867['str']('table')||undefined,_0x569759=_0x8602b2?await getAllDbTableDiff(getDbTableDiff,_0x376867[_0x1670e6(0x1fd)],_0x497d3c,_0xbd0742):await getDbTableDiff(_0x376867[_0x1670e6(0x1fd)],_0x497d3c,{'pageIndex':_0x386ea4,'pageSize':_0x783914,'tableName':_0xbd0742}),_0x842951=_0x569759[_0x1670e6(0x1f5)],_0x348bc3=summarizeDbTableDiff(_0x842951),_0x516a0f=_0x842951['filter'](_0xb0c47a=>_0xb0c47a[_0x1670e6(0x1eb)]==='NEW_TABLE'||_0xb0c47a[_0x1670e6(0x1eb)]===_0x1670e6(0x1f2))[_0x1670e6(0x20c)](_0x4f017e=>_0x4f017e[_0x1670e6(0x1ef)]),_0x3f7c14=_0x842951['filter'](_0x5cbcfb=>_0x5cbcfb[_0x1670e6(0x1eb)]===_0x1670e6(0x208))[_0x1670e6(0x20c)](_0x14eb7e=>_0x14eb7e[_0x1670e6(0x1ef)]),_0x1f14c1=_0x842951['filter'](_0x3b8244=>_0x3b8244[_0x1670e6(0x1eb)]==='MODIFIED_TABLE')[_0x1670e6(0x20c)](_0x4927bd=>({'tableName':_0x4927bd['tableName'],'addedColumns':_0x4927bd['fieldDiff']?.['addedColumns']??[],'deletedColumns':_0x4927bd['fieldDiff']?.[_0x1670e6(0x207)]??[],'modifiedColumns':_0x4927bd['fieldDiff']?.[_0x1670e6(0x205)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x497d3c,'page':_0x386ea4,'pageSize':_0x783914,'totalCount':_0x569759[_0x1670e6(0x1f4)],...typeof _0x569759['physicalTableCount']==='number'?{'physicalTableCount':_0x569759[_0x1670e6(0x209)]}:{},...typeof _0x569759['datasetTableCount']==='number'?{'datasetTableCount':_0x569759[_0x1670e6(0x203)]}:{},..._0x569759[_0x1670e6(0x202)]?{'summary':_0x569759[_0x1670e6(0x202)]}:{},'summaryByType':_0x348bc3,'toAnalyzeTables':_0x516a0f,'deletedTables':_0x3f7c14,'modifiedFieldDiffs':_0x1f14c1,'tables':_0x842951},'message':_0x842951['length']+_0x1670e6(0x1f0)+_0x569759[_0x1670e6(0x1f4)]+'\x20(db\x20link\x20'+_0x497d3c+')'};}};
@@ -1 +1 @@
1
- (function(_0x20a341,_0x5fc1e8){const _0x371ecd=a90_0x3519,_0x20c33b=_0x20a341();while(!![]){try{const _0x3b784b=-parseInt(_0x371ecd(0x120))/0x1*(parseInt(_0x371ecd(0x125))/0x2)+-parseInt(_0x371ecd(0x124))/0x3*(parseInt(_0x371ecd(0x126))/0x4)+-parseInt(_0x371ecd(0x121))/0x5+parseInt(_0x371ecd(0x127))/0x6+-parseInt(_0x371ecd(0x128))/0x7+parseInt(_0x371ecd(0x122))/0x8+parseInt(_0x371ecd(0x123))/0x9;if(_0x3b784b===_0x5fc1e8)break;else _0x20c33b['push'](_0x20c33b['shift']());}catch(_0x5e3500){_0x20c33b['push'](_0x20c33b['shift']());}}}(a90_0x22dc,0x350d5));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';function a90_0x3519(_0x529b0f,_0x3f33b0){_0x529b0f=_0x529b0f-0x120;const _0x22dc74=a90_0x22dc();let _0x351942=_0x22dc74[_0x529b0f];return _0x351942;}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';function a90_0x22dc(){const _0x38261a=['98864YNMcon','7568478TwwTxu','142329lPaPld','6YDvWAm','36xmdLRB','2059878OBTbHO','2496802yRKOhE','47929aFQTCf','259260qRjccS'];a90_0x22dc=function(){return _0x38261a;};return a90_0x22dc();}import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
1
+ (function(_0x2daaa7,_0x42a123){const _0x45ba46=a90_0x55f1,_0x50d7ef=_0x2daaa7();while(!![]){try{const _0x5135ce=parseInt(_0x45ba46(0x19e))/0x1+parseInt(_0x45ba46(0x19d))/0x2*(-parseInt(_0x45ba46(0x1a1))/0x3)+parseInt(_0x45ba46(0x1a4))/0x4+parseInt(_0x45ba46(0x1a2))/0x5*(parseInt(_0x45ba46(0x1a6))/0x6)+-parseInt(_0x45ba46(0x19f))/0x7+-parseInt(_0x45ba46(0x1a0))/0x8*(-parseInt(_0x45ba46(0x1a5))/0x9)+-parseInt(_0x45ba46(0x1a7))/0xa*(parseInt(_0x45ba46(0x1a3))/0xb);if(_0x5135ce===_0x42a123)break;else _0x50d7ef['push'](_0x50d7ef['shift']());}catch(_0xb8ca74){_0x50d7ef['push'](_0x50d7ef['shift']());}}}(a90_0x9d90,0x62986));function a90_0x55f1(_0x998a79,_0x8c2e04){_0x998a79=_0x998a79-0x19d;const _0x9d90f2=a90_0x9d90();let _0x55f195=_0x9d90f2[_0x998a79];return _0x55f195;}import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a90_0x9d90(){const _0x51c466=['11770ruxVZP','3218336LxLdyk','1551735dKDgEh','6EBWREa','14240ZemNYc','4qXhBSD','499559OQwcNI','2936318KzMuGV','24ljSqJz','302154mEUAbU','3635240jkVZox'];a90_0x9d90=function(){return _0x51c466;};return a90_0x9d90();}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a91_0x5d8fda=a91_0x2747;function a91_0x2747(_0x29be05,_0x1d9ceb){_0x29be05=_0x29be05-0xa7;const _0xcc45=a91_0xcc45();let _0x27475f=_0xcc45[_0x29be05];return _0x27475f;}(function(_0x36d962,_0x527adf){const _0x45171a=a91_0x2747,_0x716543=_0x36d962();while(!![]){try{const _0x1d038b=-parseInt(_0x45171a(0xc3))/0x1*(parseInt(_0x45171a(0xb2))/0x2)+-parseInt(_0x45171a(0xc0))/0x3+parseInt(_0x45171a(0xbb))/0x4*(parseInt(_0x45171a(0xc1))/0x5)+-parseInt(_0x45171a(0xa8))/0x6*(parseInt(_0x45171a(0xbe))/0x7)+parseInt(_0x45171a(0xb8))/0x8*(-parseInt(_0x45171a(0xb6))/0x9)+parseInt(_0x45171a(0xb4))/0xa*(-parseInt(_0x45171a(0xb1))/0xb)+-parseInt(_0x45171a(0xb0))/0xc*(-parseInt(_0x45171a(0xb7))/0xd);if(_0x1d038b===_0x527adf)break;else _0x716543['push'](_0x716543['shift']());}catch(_0x1f21a3){_0x716543['push'](_0x716543['shift']());}}}(a91_0xcc45,0x56cc2));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a91_0xcc45(){const _0x12e380=['length','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','num','all','datasetDependency','684HsqTma','2761869uKmyxS','2278MXKNda','Page\x20index\x20(1-based)','10YjUmaz','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','3673809hResqu','351871dplsDa','8fxyKoN','Found\x20','pagesize','2514820HlzeFJ','Page\x20size','map','7973GRlmbS','appCode','1966686XrxVzi','5TdxPHG','\x20database\x20connection(s)','396ErkUFc','list','read','264xcYvha','DB_TABLE','page'];a91_0xcc45=function(){return _0x12e380;};return a91_0xcc45();}export const dbList={'service':'db','command':a91_0x5d8fda(0xc4),'description':a91_0x5d8fda(0xac),'risk':a91_0x5d8fda(0xa7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a91_0x5d8fda(0xaa),'type':'number','description':a91_0x5d8fda(0xb3),'default':0x1},{'name':'pagesize','type':'number','description':a91_0x5d8fda(0xbc),'default':0x64}],async 'execute'(_0x2231fb){const _0x49c617=a91_0x5d8fda,_0x1fd8bf=_0x2231fb[_0x49c617(0xad)](_0x49c617(0xaa),0x1)||0x1,_0x34f840=_0x2231fb[_0x49c617(0xad)](_0x49c617(0xba),0x64)||0x64,[{items:_0x15d799,paging:_0x137607},_0x117f71]=await Promise[_0x49c617(0xae)]([listDbLinks(_0x2231fb[_0x49c617(0xbf)],{'currentPage':_0x1fd8bf,'pageSize':_0x34f840}),listDatasets(_0x2231fb['appCode'],{'source':_0x49c617(0xa9)})]),_0x13238c=_0x15d799[_0x49c617(0xbd)](_0x2394a4=>({...sanitizeDbLinkForOutput(_0x2394a4),'datasetDependency':buildDbDatasetDependency(_0x2394a4,_0x117f71)[_0x49c617(0xaf)]})),_0x42880d=_0x137607?_0x137607:{'currentPage':_0x1fd8bf,'pageSize':_0x34f840,'rowsOnPage':_0x13238c[_0x49c617(0xab)],'totalCount':null,'note':_0x49c617(0xb5)};return{'ok':!![],'data':{'connections':_0x13238c,'paging':_0x42880d},'message':_0x49c617(0xb9)+_0x13238c[_0x49c617(0xab)]+_0x49c617(0xc2)};}};
1
+ function a91_0x17e1(){const _0x3dac5f=['815026bDAkgl','number','num','\x20database\x20connection(s)','Page\x20index\x20(1-based)','16954564GdAqgn','DB_TABLE','map','page','read','Page\x20size','appCode','length','6803464JwfUbf','list','3018IoNBln','3101YhgPnj','2wFgRuG','18030jgHmqg','276UQDwtK','4194DMcRys','33717NQppSP','pagesize','3246910AlWDuZ','Found\x20'];a91_0x17e1=function(){return _0x3dac5f;};return a91_0x17e1();}const a91_0x4203d8=a91_0x1260;(function(_0x3428ce,_0x3c89a1){const _0x41d319=a91_0x1260,_0x307d75=_0x3428ce();while(!![]){try{const _0x2de92d=-parseInt(_0x41d319(0x138))/0x1*(-parseInt(_0x41d319(0x140))/0x2)+parseInt(_0x41d319(0x13c))/0x3*(parseInt(_0x41d319(0x13a))/0x4)+parseInt(_0x41d319(0x13e))/0x5+-parseInt(_0x41d319(0x136))/0x6*(parseInt(_0x41d319(0x137))/0x7)+-parseInt(_0x41d319(0x134))/0x8+-parseInt(_0x41d319(0x13b))/0x9*(-parseInt(_0x41d319(0x139))/0xa)+-parseInt(_0x41d319(0x12c))/0xb;if(_0x2de92d===_0x3c89a1)break;else _0x307d75['push'](_0x307d75['shift']());}catch(_0x11139f){_0x307d75['push'](_0x307d75['shift']());}}}(a91_0x17e1,0x71a67));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a91_0x1260(_0x738d59,_0x1db1e9){_0x738d59=_0x738d59-0x12b;const _0x17e167=a91_0x17e1();let _0x1260bd=_0x17e167[_0x738d59];return _0x1260bd;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a91_0x4203d8(0x135),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a91_0x4203d8(0x130),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a91_0x4203d8(0x12f),'type':'number','description':a91_0x4203d8(0x12b),'default':0x1},{'name':a91_0x4203d8(0x13d),'type':a91_0x4203d8(0x141),'description':a91_0x4203d8(0x131),'default':0x64}],async 'execute'(_0x5dea7f){const _0x238a40=a91_0x4203d8,_0x179dd3=_0x5dea7f[_0x238a40(0x142)](_0x238a40(0x12f),0x1)||0x1,_0x502114=_0x5dea7f[_0x238a40(0x142)](_0x238a40(0x13d),0x64)||0x64,[{items:_0x2f607b,paging:_0x22f735},_0x592f19]=await Promise['all']([listDbLinks(_0x5dea7f[_0x238a40(0x132)],{'currentPage':_0x179dd3,'pageSize':_0x502114}),listDatasets(_0x5dea7f[_0x238a40(0x132)],{'source':_0x238a40(0x12d)})]),_0x53d452=_0x2f607b[_0x238a40(0x12e)](_0x2acd09=>({...sanitizeDbLinkForOutput(_0x2acd09),'datasetDependency':buildDbDatasetDependency(_0x2acd09,_0x592f19)['datasetDependency']})),_0x27f8ca=_0x22f735?_0x22f735:{'currentPage':_0x179dd3,'pageSize':_0x502114,'rowsOnPage':_0x53d452['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x53d452,'paging':_0x27f8ca},'message':_0x238a40(0x13f)+_0x53d452[_0x238a40(0x133)]+_0x238a40(0x143)};}};
@@ -1 +1 @@
1
- (function(_0x469c6e,_0x2a632d){const _0x368c08=a92_0x3f6d,_0x13d296=_0x469c6e();while(!![]){try{const _0x1bf12c=-parseInt(_0x368c08(0x191))/0x1+-parseInt(_0x368c08(0x19d))/0x2*(-parseInt(_0x368c08(0x19f))/0x3)+parseInt(_0x368c08(0x18d))/0x4*(-parseInt(_0x368c08(0x193))/0x5)+parseInt(_0x368c08(0x19e))/0x6+parseInt(_0x368c08(0x188))/0x7+parseInt(_0x368c08(0x196))/0x8*(-parseInt(_0x368c08(0x198))/0x9)+parseInt(_0x368c08(0x195))/0xa;if(_0x1bf12c===_0x2a632d)break;else _0x13d296['push'](_0x13d296['shift']());}catch(_0x355faf){_0x13d296['push'](_0x13d296['shift']());}}}(a92_0x5561,0x33c2f));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a92_0x5561(){const _0x52528e=['[redacted]','apiError','trim','authorization','tableName','secret','connectionstring','dbId','dbtableConfig','filter','/data/database','1868377elSYZa','test','includes','token','isFinite','332zklgDi','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','passwd','number','198825OLNASo','length','22005ZOcmvi','keys','1045910JMxNZd','36128AuGtgC','privatekey','603xhUzqi','name','map','toLowerCase','/data/er?dbId=','2QqkoWK','1897320SLSECx','1172919oourXP','dbpassword'];a92_0x5561=function(){return _0x52528e;};return a92_0x5561();}function shouldRedactKey(_0x8026d6){const _0x563037=a92_0x3f6d,_0x212ceb=_0x8026d6[_0x563037(0x19b)]();if(_0x212ceb==='password'||_0x212ceb===_0x563037(0x18f)||_0x212ceb===_0x563037(0x1a0))return!![];if(_0x212ceb[_0x563037(0x18a)](_0x563037(0x182))||_0x212ceb[_0x563037(0x18a)](_0x563037(0x18b))||_0x212ceb[_0x563037(0x18a)]('credential'))return!![];if(_0x212ceb[_0x563037(0x18a)](_0x563037(0x197))||_0x212ceb[_0x563037(0x18a)]('accesskey'))return!![];if(_0x212ceb===_0x563037(0x1a4)||_0x212ceb===_0x563037(0x183)||_0x212ceb==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x3b142c){const _0xc7d756=a92_0x3f6d,_0xc6427={..._0x3b142c};delete _0xc6427['hasAvailableDo'];for(const _0x1992f2 of Object[_0xc7d756(0x194)](_0xc6427)){if(!shouldRedactKey(_0x1992f2))continue;const _0x3c6534=_0xc6427[_0x1992f2];_0x3c6534!=null&&String(_0x3c6534)[_0xc7d756(0x192)]>0x0&&(_0xc6427[_0x1992f2]=_0xc7d756(0x1a1));}return _0xc6427;}export function sanitizeDbLinkList(_0x2782db){return _0x2782db['map'](_0x590218=>sanitizeDbLinkForOutput(_0x590218));}export function buildDbDatasetDependency(_0x3a61c5,_0x5f5236){const _0x482cb6=a92_0x3f6d,_0x1e83cf=_0x5f5236[_0x482cb6(0x186)](_0x38b369=>Number(_0x38b369[_0x482cb6(0x185)]?.[_0x482cb6(0x184)])===Number(_0x3a61c5['id']))[_0x482cb6(0x19a)](_0x5a6aac=>({'id':_0x5a6aac['id'],'code':_0x5a6aac['code'],'name':_0x5a6aac[_0x482cb6(0x199)],..._0x5a6aac[_0x482cb6(0x185)]?.[_0x482cb6(0x181)]?{'tableName':_0x5a6aac[_0x482cb6(0x185)][_0x482cb6(0x181)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x1e83cf[_0x482cb6(0x192)]>0x0,'activeDatasetCount':_0x1e83cf[_0x482cb6(0x192)]},'datasets':_0x1e83cf};}function a92_0x3f6d(_0x5df767,_0x57fdea){_0x5df767=_0x5df767-0x181;const _0x5561f3=a92_0x5561();let _0x3f6d8b=_0x5561f3[_0x5df767];return _0x3f6d8b;}export async function assertDbLinkConnectionPreflight(_0x372b89){const _0x57a1cf=a92_0x3f6d,_0x34f750=await testDbLinkConfigConnect(_0x372b89);if(_0x34f750!==!![])throw CliErrors[_0x57a1cf(0x1a2)]('Database\x20connection\x20preflight\x20failed.',_0x57a1cf(0x18e));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x565a7c){const _0x11fcfd=a92_0x3f6d,_0x4d749f=_0x565a7c['trim']();if(!_0x4d749f)return![];return DB_URL_PATTERN[_0x11fcfd(0x189)](_0x4d749f);}export function buildDbPageLinks(_0x5b5fdb,_0x44eb94){const _0x299dc6=a92_0x3f6d,_0x3505e9=_0x5b5fdb?.[_0x299dc6(0x1a3)]();if(!_0x3505e9)return undefined;const _0xaec25c=typeof _0x44eb94===_0x299dc6(0x190)?String(_0x44eb94):String(_0x44eb94??'')[_0x299dc6(0x1a3)]();if(!_0xaec25c)return undefined;const _0x1ccb61=Number(_0xaec25c);if(!Number[_0x299dc6(0x18c)](_0x1ccb61)||_0x1ccb61<=0x0)return undefined;const _0x349192=getAppBaseUrl(_0x3505e9),_0x74778=encodeURIComponent(String(_0x1ccb61));return{'databasePage':_0x349192+_0x299dc6(0x187),'erPage':_0x349192+_0x299dc6(0x19c)+_0x74778};}
1
+ (function(_0x53309f,_0x1e846c){const _0x5e7d9f=a92_0x5bb2,_0x535c61=_0x53309f();while(!![]){try{const _0x3ce09b=parseInt(_0x5e7d9f(0xb6))/0x1*(-parseInt(_0x5e7d9f(0xa9))/0x2)+-parseInt(_0x5e7d9f(0xa8))/0x3+parseInt(_0x5e7d9f(0xa4))/0x4*(-parseInt(_0x5e7d9f(0xb5))/0x5)+-parseInt(_0x5e7d9f(0xac))/0x6+-parseInt(_0x5e7d9f(0xbd))/0x7*(-parseInt(_0x5e7d9f(0xc3))/0x8)+-parseInt(_0x5e7d9f(0xad))/0x9+parseInt(_0x5e7d9f(0xc4))/0xa;if(_0x3ce09b===_0x1e846c)break;else _0x535c61['push'](_0x535c61['shift']());}catch(_0x5d8abe){_0x535c61['push'](_0x535c61['shift']());}}}(a92_0x4b9d,0x91581));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';function a92_0x5bb2(_0x8d63f4,_0x458c39){_0x8d63f4=_0x8d63f4-0xa4;const _0x4b9dd0=a92_0x4b9d();let _0x5bb25c=_0x4b9dd0[_0x8d63f4];return _0x5bb25c;}import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x5dcc8e){const _0x52f41a=a92_0x5bb2,_0x5e3622=_0x5dcc8e[_0x52f41a(0xb3)]();if(_0x5e3622==='password'||_0x5e3622==='passwd'||_0x5e3622===_0x52f41a(0xc1))return!![];if(_0x5e3622[_0x52f41a(0xc2)](_0x52f41a(0xbc))||_0x5e3622[_0x52f41a(0xc2)]('token')||_0x5e3622[_0x52f41a(0xc2)](_0x52f41a(0xae)))return!![];if(_0x5e3622[_0x52f41a(0xc2)]('privatekey')||_0x5e3622[_0x52f41a(0xc2)]('accesskey'))return!![];if(_0x5e3622===_0x52f41a(0xaa)||_0x5e3622===_0x52f41a(0xb2)||_0x5e3622===_0x52f41a(0xa7))return!![];return![];}export function sanitizeDbLinkForOutput(_0x86f471){const _0x90de3=a92_0x5bb2,_0x7d72c8={..._0x86f471};delete _0x7d72c8[_0x90de3(0xb4)];for(const _0x43eda3 of Object[_0x90de3(0xb8)](_0x7d72c8)){if(!shouldRedactKey(_0x43eda3))continue;const _0x2eb326=_0x7d72c8[_0x43eda3];_0x2eb326!=null&&String(_0x2eb326)[_0x90de3(0xbb)]>0x0&&(_0x7d72c8[_0x43eda3]=_0x90de3(0xb0));}return _0x7d72c8;}export function sanitizeDbLinkList(_0x534248){return _0x534248['map'](_0x5b958c=>sanitizeDbLinkForOutput(_0x5b958c));}function a92_0x4b9d(){const _0x3f2b1a=['authorization','isFinite','2123532HvCLOm','6881769vngldo','credential','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','[redacted]','Database\x20connection\x20preflight\x20failed.','connectionstring','toLowerCase','hasAvailableDo','35DogVLM','15729IHTlvZ','/data/database','keys','map','apiError','length','secret','50288dVjBhK','tableName','trim','test','dbpassword','includes','536vAXWFP','28020410MEWwjb','478160flQerZ','number','dbId','jdbcurl','2056530afOuhw','6mPMFbX'];a92_0x4b9d=function(){return _0x3f2b1a;};return a92_0x4b9d();}export function buildDbDatasetDependency(_0x19f507,_0x3eec33){const _0x40efe3=a92_0x5bb2,_0xdeb125=_0x3eec33['filter'](_0x17a79c=>Number(_0x17a79c['dbtableConfig']?.[_0x40efe3(0xa6)])===Number(_0x19f507['id']))[_0x40efe3(0xb9)](_0x745f3=>({'id':_0x745f3['id'],'code':_0x745f3['code'],'name':_0x745f3['name'],..._0x745f3['dbtableConfig']?.[_0x40efe3(0xbe)]?{'tableName':_0x745f3['dbtableConfig'][_0x40efe3(0xbe)]}:{}}));return{'datasetDependency':{'hasDependencies':_0xdeb125['length']>0x0,'activeDatasetCount':_0xdeb125[_0x40efe3(0xbb)]},'datasets':_0xdeb125};}export async function assertDbLinkConnectionPreflight(_0x588c62){const _0xbcae78=a92_0x5bb2,_0x4d91b5=await testDbLinkConfigConnect(_0x588c62);if(_0x4d91b5!==!![])throw CliErrors[_0xbcae78(0xba)](_0xbcae78(0xb1),_0xbcae78(0xaf));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x26942d){const _0x236378=a92_0x5bb2,_0x551e32=_0x26942d[_0x236378(0xbf)]();if(!_0x551e32)return![];return DB_URL_PATTERN[_0x236378(0xc0)](_0x551e32);}export function buildDbPageLinks(_0x215ba2,_0x263724){const _0x53c5a9=a92_0x5bb2,_0x439db9=_0x215ba2?.[_0x53c5a9(0xbf)]();if(!_0x439db9)return undefined;const _0x274d06=typeof _0x263724===_0x53c5a9(0xa5)?String(_0x263724):String(_0x263724??'')['trim']();if(!_0x274d06)return undefined;const _0x5c6791=Number(_0x274d06);if(!Number[_0x53c5a9(0xab)](_0x5c6791)||_0x5c6791<=0x0)return undefined;const _0x47f6d7=getAppBaseUrl(_0x439db9),_0x178f20=encodeURIComponent(String(_0x5c6791));return{'databasePage':_0x47f6d7+_0x53c5a9(0xb7),'erPage':_0x47f6d7+'/data/er?dbId='+_0x178f20};}
@@ -1 +1 @@
1
- function a93_0x124c(_0x275ec6,_0x5f0c1a){_0x275ec6=_0x275ec6-0x177;const _0x11b181=a93_0x11b1();let _0x124c01=_0x11b181[_0x275ec6];return _0x124c01;}const a93_0xabdbec=a93_0x124c;(function(_0x47f5e4,_0xa51229){const _0x5d1a1b=a93_0x124c,_0x1c3eb9=_0x47f5e4();while(!![]){try{const _0x8ef906=-parseInt(_0x5d1a1b(0x183))/0x1+-parseInt(_0x5d1a1b(0x18b))/0x2*(parseInt(_0x5d1a1b(0x18f))/0x3)+-parseInt(_0x5d1a1b(0x179))/0x4+parseInt(_0x5d1a1b(0x187))/0x5+-parseInt(_0x5d1a1b(0x17b))/0x6+-parseInt(_0x5d1a1b(0x180))/0x7+parseInt(_0x5d1a1b(0x17c))/0x8;if(_0x8ef906===_0xa51229)break;else _0x1c3eb9['push'](_0x1c3eb9['shift']());}catch(_0x503335){_0x1c3eb9['push'](_0x1c3eb9['shift']());}}}(a93_0x11b1,0x531e7));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a93_0x11b1(){const _0xeea903=['\x20of\x20','physicalTableCount','set','fromEntries','2521876DdbtIy','NEW_TABLE','2924646eZcaAe','14479816QRRLmX','DELETED_TABLE','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','size','1092938OkNQRI','datasetTableCount','map','271730ksCvkp','number','length','tableList','2694750MFWPze','ALREADY_ANALYZED','diffType','totalCount','462698aYreBd','summary','tableName','\x20row(s).','6CxFPYh','validation','MODIFIED_TABLE'];a93_0x11b1=function(){return _0xeea903;};return a93_0x11b1();}export const DB_TABLE_DIFF_TYPES=[a93_0xabdbec(0x17a),a93_0xabdbec(0x191),a93_0xabdbec(0x17d),a93_0xabdbec(0x188)];export function summarizeDbTableDiff(_0x1cef16){const _0x22192c=a93_0xabdbec;return Object[_0x22192c(0x178)](DB_TABLE_DIFF_TYPES[_0x22192c(0x182)](_0x3ca659=>[_0x3ca659,_0x1cef16['filter'](_0x581ac7=>_0x581ac7[_0x22192c(0x189)]===_0x3ca659)[_0x22192c(0x185)]]));}export async function getAllDbTableDiff(_0x38c150,_0xaaa2de,_0x331a12,_0x29dd50){const _0xdcd067=a93_0xabdbec,_0x2f6459=new Map();let _0x142b92=0x1,_0x1da433=null;while(!![]){_0x1da433=await _0x38c150(_0xaaa2de,_0x331a12,{'pageIndex':_0x142b92,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x29dd50});const _0x50fd03=_0x2f6459['size'];for(const _0x22ba34 of _0x1da433[_0xdcd067(0x186)]){_0x2f6459[_0xdcd067(0x177)](_0x22ba34[_0xdcd067(0x18d)],_0x22ba34);}if(_0x2f6459[_0xdcd067(0x17f)]>=_0x1da433[_0xdcd067(0x18a)])break;if(_0x1da433[_0xdcd067(0x186)][_0xdcd067(0x185)]===0x0||_0x2f6459[_0xdcd067(0x17f)]===_0x50fd03)throw CliErrors[_0xdcd067(0x190)](_0xdcd067(0x17e)+_0x2f6459[_0xdcd067(0x17f)]+_0xdcd067(0x192)+_0x1da433['totalCount']+_0xdcd067(0x18e));_0x142b92+=0x1;}return{'totalCount':_0x1da433?.['totalCount']??0x0,...typeof _0x1da433?.[_0xdcd067(0x193)]===_0xdcd067(0x184)?{'physicalTableCount':_0x1da433[_0xdcd067(0x193)]}:{},...typeof _0x1da433?.['datasetTableCount']===_0xdcd067(0x184)?{'datasetTableCount':_0x1da433[_0xdcd067(0x181)]}:{},..._0x1da433?.['summary']?{'summary':_0x1da433[_0xdcd067(0x18c)]}:{},'tableList':[..._0x2f6459['values']()]};}
1
+ function a93_0x3b6e(){const _0x50a5a3=['summary','datasetTableCount','ALREADY_ANALYZED','\x20of\x20','2478eUBxSn','length','28970390LCwbSu','number','fromEntries','6puFJYU','set','360878EZBvYH','2135833jVJZDP','2835200JLnBCq','size','validation','tableName','\x20row(s).','DELETED_TABLE','712jgxSeg','values','physicalTableCount','1409816OgrOkH','9aFdgbs','2525005OUepmG','totalCount'];a93_0x3b6e=function(){return _0x50a5a3;};return a93_0x3b6e();}const a93_0x9b3514=a93_0x2b3c;(function(_0x144eaf,_0x2637fa){const _0x574c32=a93_0x2b3c,_0xd84f52=_0x144eaf();while(!![]){try{const _0x467fe3=-parseInt(_0x574c32(0xe9))/0x1+-parseInt(_0x574c32(0xf4))/0x2+-parseInt(_0x574c32(0xfc))/0x3*(parseInt(_0x574c32(0xf1))/0x4)+-parseInt(_0x574c32(0xf6))/0x5+parseInt(_0x574c32(0x101))/0x6*(-parseInt(_0x574c32(0xea))/0x7)+-parseInt(_0x574c32(0xeb))/0x8+parseInt(_0x574c32(0xf5))/0x9*(parseInt(_0x574c32(0xfe))/0xa);if(_0x467fe3===_0x2637fa)break;else _0xd84f52['push'](_0xd84f52['shift']());}catch(_0x4f2748){_0xd84f52['push'](_0xd84f52['shift']());}}}(a93_0x3b6e,0x7ee19));import{CliErrors}from'../../errors.js';function a93_0x2b3c(_0x299b0f,_0x1d4994){_0x299b0f=_0x299b0f-0xe8;const _0x3b6eb6=a93_0x3b6e();let _0x2b3cec=_0x3b6eb6[_0x299b0f];return _0x2b3cec;}export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE',a93_0x9b3514(0xf0),a93_0x9b3514(0xfa)];export function summarizeDbTableDiff(_0x58cb26){const _0x2dd97c=a93_0x9b3514;return Object[_0x2dd97c(0x100)](DB_TABLE_DIFF_TYPES['map'](_0x40e72a=>[_0x40e72a,_0x58cb26['filter'](_0x22853c=>_0x22853c['diffType']===_0x40e72a)['length']]));}export async function getAllDbTableDiff(_0x5bbc15,_0x4561bd,_0x3f5307,_0x594ae4){const _0x42d38e=a93_0x9b3514,_0xf15324=new Map();let _0x510c73=0x1,_0x3880a4=null;while(!![]){_0x3880a4=await _0x5bbc15(_0x4561bd,_0x3f5307,{'pageIndex':_0x510c73,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x594ae4});const _0x47672c=_0xf15324[_0x42d38e(0xec)];for(const _0x29e413 of _0x3880a4['tableList']){_0xf15324[_0x42d38e(0xe8)](_0x29e413[_0x42d38e(0xee)],_0x29e413);}if(_0xf15324[_0x42d38e(0xec)]>=_0x3880a4[_0x42d38e(0xf7)])break;if(_0x3880a4['tableList'][_0x42d38e(0xfd)]===0x0||_0xf15324[_0x42d38e(0xec)]===_0x47672c)throw CliErrors[_0x42d38e(0xed)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0xf15324[_0x42d38e(0xec)]+_0x42d38e(0xfb)+_0x3880a4[_0x42d38e(0xf7)]+_0x42d38e(0xef));_0x510c73+=0x1;}return{'totalCount':_0x3880a4?.[_0x42d38e(0xf7)]??0x0,...typeof _0x3880a4?.[_0x42d38e(0xf3)]===_0x42d38e(0xff)?{'physicalTableCount':_0x3880a4[_0x42d38e(0xf3)]}:{},...typeof _0x3880a4?.[_0x42d38e(0xf9)]===_0x42d38e(0xff)?{'datasetTableCount':_0x3880a4['datasetTableCount']}:{},..._0x3880a4?.['summary']?{'summary':_0x3880a4[_0x42d38e(0xf8)]}:{},'tableList':[..._0xf15324[_0x42d38e(0xf2)]()]};}
@@ -1 +1 @@
1
- const a94_0x2b7858=a94_0x3e8c;(function(_0x4c0fa1,_0x3e13af){const _0x31cb28=a94_0x3e8c,_0x1da2f3=_0x4c0fa1();while(!![]){try{const _0x1b7095=-parseInt(_0x31cb28(0xc6))/0x1+-parseInt(_0x31cb28(0xbf))/0x2*(parseInt(_0x31cb28(0xba))/0x3)+-parseInt(_0x31cb28(0xc5))/0x4*(parseInt(_0x31cb28(0xb8))/0x5)+-parseInt(_0x31cb28(0xb5))/0x6+-parseInt(_0x31cb28(0xcd))/0x7+-parseInt(_0x31cb28(0xb6))/0x8+parseInt(_0x31cb28(0xce))/0x9*(parseInt(_0x31cb28(0xbc))/0xa);if(_0x1b7095===_0x3e13af)break;else _0x1da2f3['push'](_0x1da2f3['shift']());}catch(_0x47c0b4){_0x1da2f3['push'](_0x1da2f3['shift']());}}}(a94_0x5cba,0xe6c8a));function a94_0x3e8c(_0x595d1b,_0x40a497){_0x595d1b=_0x595d1b-0xb4;const _0x5cba0d=a94_0x5cba();let _0x3e8c37=_0x5cba0d[_0x595d1b];return _0x3e8c37;}import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a94_0x5cba(){const _0x9522be=['tables','appCode','666988uFanbq','22687569YddHcM','num','3306000SgfFQR','14436704tMWkde','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','30zwKopd','\x20table\x20comparison\x20row(s),\x20total\x20','51YIMbzv','datasetTableCount','20quswLM','summary','\x20(db\x20link\x20','119116AZXLFQ','read','totalCount','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','physicalTableCount','table','199896nNwWuG','333190fIeQsm','number','length','str','string'];a94_0x5cba=function(){return _0x9522be;};return a94_0x5cba();}export const dbTables={'service':'db','command':a94_0x2b7858(0xcb),'description':a94_0x2b7858(0xb7),'risk':a94_0x2b7858(0xc0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a94_0x2b7858(0xca),'description':a94_0x2b7858(0xc2)}],async 'execute'(_0x3bcd77){const _0x477617=a94_0x2b7858,_0x578ac4=_0x3bcd77[_0x477617(0xb4)]('id'),_0x2a9690=_0x3bcd77[_0x477617(0xc9)](_0x477617(0xc4))||undefined,_0x5a4e54=await getAllDbTableDiff(getDbTableComparisonPage,_0x3bcd77[_0x477617(0xcc)],_0x578ac4,_0x2a9690),_0x4b3a25=_0x5a4e54['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x578ac4,'totalCount':_0x5a4e54[_0x477617(0xc1)],...typeof _0x5a4e54[_0x477617(0xc3)]===_0x477617(0xc7)?{'physicalTableCount':_0x5a4e54[_0x477617(0xc3)]}:{},...typeof _0x5a4e54[_0x477617(0xbb)]===_0x477617(0xc7)?{'datasetTableCount':_0x5a4e54[_0x477617(0xbb)]}:{},..._0x5a4e54[_0x477617(0xbd)]?{'summary':_0x5a4e54[_0x477617(0xbd)]}:{},'summaryByType':summarizeDbTableDiff(_0x4b3a25),'tables':_0x4b3a25},'message':_0x4b3a25[_0x477617(0xc8)]+_0x477617(0xb9)+_0x5a4e54['totalCount']+_0x477617(0xbe)+_0x578ac4+')'};}};
1
+ function a94_0x22d1(_0x2ca16c,_0x5f508c){_0x2ca16c=_0x2ca16c-0x133;const _0x5693c2=a94_0x5693();let _0x22d157=_0x5693c2[_0x2ca16c];return _0x22d157;}const a94_0x39eff0=a94_0x22d1;(function(_0x1f4e1f,_0x4be5b9){const _0x4c4ad9=a94_0x22d1,_0x422561=_0x1f4e1f();while(!![]){try{const _0x43f78f=-parseInt(_0x4c4ad9(0x13d))/0x1*(parseInt(_0x4c4ad9(0x134))/0x2)+parseInt(_0x4c4ad9(0x147))/0x3*(-parseInt(_0x4c4ad9(0x145))/0x4)+-parseInt(_0x4c4ad9(0x142))/0x5*(parseInt(_0x4c4ad9(0x149))/0x6)+-parseInt(_0x4c4ad9(0x14a))/0x7+-parseInt(_0x4c4ad9(0x138))/0x8*(-parseInt(_0x4c4ad9(0x143))/0x9)+-parseInt(_0x4c4ad9(0x13a))/0xa+-parseInt(_0x4c4ad9(0x135))/0xb*(-parseInt(_0x4c4ad9(0x13f))/0xc);if(_0x43f78f===_0x4be5b9)break;else _0x422561['push'](_0x422561['shift']());}catch(_0x44e16b){_0x422561['push'](_0x422561['shift']());}}}(a94_0x5693,0x6b3fb));function a94_0x5693(){const _0x526a0c=['length','4815920kFijmj','tables','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','19afJEOT','\x20(db\x20link\x20','195204hArYvD','datasetTableCount','totalCount','35qiOjmX','255735PzEoNz','table','620348thmapm','\x20table\x20comparison\x20row(s),\x20total\x20','3KRVQrf','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','655020sRqUPr','5093781bZkxTE','read','physicalTableCount','number','86252xqKQTP','2156Nalrqq','summary','str','56QHAMKM'];a94_0x5693=function(){return _0x526a0c;};return a94_0x5693();}import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a94_0x39eff0(0x13b),'description':a94_0x39eff0(0x148),'risk':a94_0x39eff0(0x14b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x39eff0(0x144),'type':'string','description':a94_0x39eff0(0x13c)}],async 'execute'(_0x6ca446){const _0x571d62=a94_0x39eff0,_0x76c14e=_0x6ca446['num']('id'),_0x11ba8c=_0x6ca446[_0x571d62(0x137)]('table')||undefined,_0x16b663=await getAllDbTableDiff(getDbTableComparisonPage,_0x6ca446['appCode'],_0x76c14e,_0x11ba8c),_0x95efd4=_0x16b663['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x76c14e,'totalCount':_0x16b663[_0x571d62(0x141)],...typeof _0x16b663[_0x571d62(0x14c)]===_0x571d62(0x133)?{'physicalTableCount':_0x16b663[_0x571d62(0x14c)]}:{},...typeof _0x16b663[_0x571d62(0x140)]==='number'?{'datasetTableCount':_0x16b663[_0x571d62(0x140)]}:{},..._0x16b663[_0x571d62(0x136)]?{'summary':_0x16b663[_0x571d62(0x136)]}:{},'summaryByType':summarizeDbTableDiff(_0x95efd4),'tables':_0x95efd4},'message':_0x95efd4[_0x571d62(0x139)]+_0x571d62(0x146)+_0x16b663[_0x571d62(0x141)]+_0x571d62(0x13e)+_0x76c14e+')'};}};
@@ -1 +1 @@
1
- function a95_0x4eb4(_0x99eced,_0x265c7b){_0x99eced=_0x99eced-0x16b;const _0x5ec5bd=a95_0x5ec5();let _0x4eb49e=_0x5ec5bd[_0x99eced];return _0x4eb49e;}const a95_0x4fafdf=a95_0x4eb4;(function(_0x438889,_0x36983e){const _0x186ae6=a95_0x4eb4,_0x3e88d9=_0x438889();while(!![]){try{const _0xdb9326=-parseInt(_0x186ae6(0x16d))/0x1*(parseInt(_0x186ae6(0x179))/0x2)+parseInt(_0x186ae6(0x16c))/0x3*(parseInt(_0x186ae6(0x171))/0x4)+parseInt(_0x186ae6(0x174))/0x5+parseInt(_0x186ae6(0x173))/0x6+parseInt(_0x186ae6(0x176))/0x7+parseInt(_0x186ae6(0x16e))/0x8+-parseInt(_0x186ae6(0x17b))/0x9;if(_0xdb9326===_0x36983e)break;else _0x3e88d9['push'](_0x3e88d9['shift']());}catch(_0x6f41e1){_0x3e88d9['push'](_0x3e88d9['shift']());}}}(a95_0x5ec5,0xb6640));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a95_0x5ec5(){const _0x2df47d=['message','test','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','error','slice','6105lZRPMh','1dkstjE','5624440zJHWwL','success','msg','8skQodS','keys','491514nBGFDL','156820UmnjFP','Connection\x20check\x20finished\x20for\x20db\x20link\x20','2410142nRDxrF','Connection\x20OK\x20for\x20db\x20link\x20','object','511894WkKMuE','length','1455255VhtKkn'];a95_0x5ec5=function(){return _0x2df47d;};return a95_0x5ec5();}function summarizeTestConnectResult(_0x53c953){const _0x213260=a95_0x4eb4;if(_0x53c953===!![]||_0x53c953===![])return{'success':_0x53c953};if(_0x53c953===null||_0x53c953===undefined)return{'type':typeof _0x53c953};if(typeof _0x53c953!==_0x213260(0x178))return{'type':typeof _0x53c953};const _0xefd342=_0x53c953,_0x4f318a=['success',_0x213260(0x17c),'code',_0x213260(0x17f),_0x213260(0x170),'data'],_0x331c6f={};for(const _0x4bc0b0 of _0x4f318a){if(_0x4bc0b0 in _0xefd342)_0x331c6f[_0x4bc0b0]=_0xefd342[_0x4bc0b0];}return Object[_0x213260(0x172)](_0x331c6f)[_0x213260(0x17a)]===0x0&&(_0x331c6f[_0x213260(0x172)]=Object[_0x213260(0x172)](_0xefd342)[_0x213260(0x16b)](0x0,0x14)),_0x331c6f;}export const dbTest={'service':'db','command':a95_0x4fafdf(0x17d),'description':a95_0x4fafdf(0x17e),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x568740){const _0x44d833=a95_0x4fafdf,_0x5366e1=_0x568740['num']('id'),_0x3fa280=await testDbLinkConnect(_0x5366e1),_0x48ed80=_0x3fa280===!![]||typeof _0x3fa280===_0x44d833(0x178)&&_0x3fa280!==null&&_0x3fa280[_0x44d833(0x16f)]===!![],_0x59fb4a=summarizeTestConnectResult(_0x3fa280);return{'ok':!![],'data':{'id':_0x5366e1,'connected':Boolean(_0x48ed80),'result':_0x59fb4a},'message':_0x48ed80?_0x44d833(0x177)+_0x5366e1:_0x44d833(0x175)+_0x5366e1+'\x20(see\x20data.result)'};}};
1
+ const a95_0x5a310e=a95_0x116d;(function(_0x8feb5f,_0x2b45de){const _0x39eea3=a95_0x116d,_0x18f630=_0x8feb5f();while(!![]){try{const _0x8e3a95=parseInt(_0x39eea3(0x1d7))/0x1*(parseInt(_0x39eea3(0x1e3))/0x2)+parseInt(_0x39eea3(0x1ec))/0x3*(parseInt(_0x39eea3(0x1d6))/0x4)+parseInt(_0x39eea3(0x1df))/0x5+parseInt(_0x39eea3(0x1da))/0x6*(parseInt(_0x39eea3(0x1dd))/0x7)+-parseInt(_0x39eea3(0x1d8))/0x8*(parseInt(_0x39eea3(0x1e8))/0x9)+-parseInt(_0x39eea3(0x1e2))/0xa*(-parseInt(_0x39eea3(0x1db))/0xb)+-parseInt(_0x39eea3(0x1e1))/0xc;if(_0x8e3a95===_0x2b45de)break;else _0x18f630['push'](_0x18f630['shift']());}catch(_0x143c9e){_0x18f630['push'](_0x18f630['shift']());}}}(a95_0x37c6,0xb3f9c));import{testDbLinkConnect}from'../../core/api-client.js';function a95_0x116d(_0x24c198,_0x1f6f32){_0x24c198=_0x24c198-0x1d5;const _0x37c692=a95_0x37c6();let _0x116d81=_0x37c692[_0x24c198];return _0x116d81;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a95_0x37c6(){const _0x5a7476=['read','497YeNEiW','keys','4805780UZwwKq','\x20(see\x20data.result)','20285712ygCrKU','50HxjkhE','454nMMXOM','test','success','slice','code','9oVmPNt','data','length','error','1126275aPcCGV','num','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','8BNraqC','1761huVrYE','5058536JUmuib','msg','16950NlvwUc','1644819cPfCMP'];a95_0x37c6=function(){return _0x5a7476;};return a95_0x37c6();}function summarizeTestConnectResult(_0x1bb515){const _0x1a1128=a95_0x116d;if(_0x1bb515===!![]||_0x1bb515===![])return{'success':_0x1bb515};if(_0x1bb515===null||_0x1bb515===undefined)return{'type':typeof _0x1bb515};if(typeof _0x1bb515!=='object')return{'type':typeof _0x1bb515};const _0x104c96=_0x1bb515,_0x1d0f13=[_0x1a1128(0x1e5),'message',_0x1a1128(0x1e7),_0x1a1128(0x1eb),_0x1a1128(0x1d9),_0x1a1128(0x1e9)],_0x21504d={};for(const _0x1eca9a of _0x1d0f13){if(_0x1eca9a in _0x104c96)_0x21504d[_0x1eca9a]=_0x104c96[_0x1eca9a];}return Object[_0x1a1128(0x1de)](_0x21504d)[_0x1a1128(0x1ea)]===0x0&&(_0x21504d[_0x1a1128(0x1de)]=Object[_0x1a1128(0x1de)](_0x104c96)[_0x1a1128(0x1e6)](0x0,0x14)),_0x21504d;}export const dbTest={'service':'db','command':a95_0x5a310e(0x1e4),'description':a95_0x5a310e(0x1d5),'risk':a95_0x5a310e(0x1dc),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4d0e11){const _0x2676fa=a95_0x5a310e,_0x552a33=_0x4d0e11[_0x2676fa(0x1ed)]('id'),_0x4c381=await testDbLinkConnect(_0x552a33),_0x2a8f1b=_0x4c381===!![]||typeof _0x4c381==='object'&&_0x4c381!==null&&_0x4c381[_0x2676fa(0x1e5)]===!![],_0x46995b=summarizeTestConnectResult(_0x4c381);return{'ok':!![],'data':{'id':_0x552a33,'connected':Boolean(_0x2a8f1b),'result':_0x46995b},'message':_0x2a8f1b?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x552a33:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x552a33+_0x2676fa(0x1e0)};}};
@@ -1 +1 @@
1
- function a96_0xdb79(_0x355c43,_0x1da60b){_0x355c43=_0x355c43-0x95;const _0x39b651=a96_0x39b6();let _0xdb79fb=_0x39b651[_0x355c43];return _0xdb79fb;}const a96_0x510a13=a96_0xdb79;(function(_0x287b88,_0x328ea1){const _0x191747=a96_0xdb79,_0xf8ace8=_0x287b88();while(!![]){try{const _0xd2bd39=parseInt(_0x191747(0xb1))/0x1*(-parseInt(_0x191747(0xb6))/0x2)+-parseInt(_0x191747(0x9f))/0x3+parseInt(_0x191747(0xb5))/0x4*(-parseInt(_0x191747(0xaf))/0x5)+-parseInt(_0x191747(0x99))/0x6+-parseInt(_0x191747(0xb0))/0x7*(-parseInt(_0x191747(0xa4))/0x8)+-parseInt(_0x191747(0xa1))/0x9+parseInt(_0x191747(0x97))/0xa;if(_0xd2bd39===_0x328ea1)break;else _0xf8ace8['push'](_0xf8ace8['shift']());}catch(_0x1b1211){_0xf8ace8['push'](_0xf8ace8['shift']());}}}(a96_0x39b6,0x53ea7));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a96_0x510a13(0xa8),a96_0x510a13(0x95)]);function mergeDbLinkUpdate(_0x439d5e,_0x3c624d){const _0x3eafd8=a96_0x510a13,_0x57eb2a={..._0x439d5e},_0x49e409=_0x3c624d[_0x3eafd8(0xb8)](_0x3eafd8(0xab));if(_0x49e409&&MASKED_PASSWORD_VALUES[_0x3eafd8(0xb9)](_0x49e409))throw CliErrors['validation'](_0x3eafd8(0x9a));if(!_0x49e409&&MASKED_PASSWORD_VALUES[_0x3eafd8(0xb9)](String(_0x439d5e[_0x3eafd8(0xab)]??'')))throw CliErrors[_0x3eafd8(0x9d)](_0x3eafd8(0xaa));const _0x351e2f=_0x3c624d['str'](_0x3eafd8(0xad));if(_0x351e2f)_0x57eb2a[_0x3eafd8(0x9b)]=_0x351e2f;const _0x4831d0=_0x3c624d[_0x3eafd8(0xb8)]('dburl');if(_0x4831d0)_0x57eb2a['dbUrl']=_0x4831d0['trim']();const _0x443104=_0x3c624d[_0x3eafd8(0xb8)](_0x3eafd8(0xb7));if(_0x443104)_0x57eb2a[_0x3eafd8(0xb7)]=_0x443104;if(_0x49e409)_0x57eb2a[_0x3eafd8(0xab)]=_0x49e409;const _0x569abf=_0x3c624d[_0x3eafd8(0xb8)]('dbparam');if(_0x569abf)_0x57eb2a['dbParam']=_0x569abf;const _0x92379a=_0x3c624d[_0x3eafd8(0xb8)]('dbdesc');if(_0x92379a)_0x57eb2a[_0x3eafd8(0xa7)]=_0x92379a;return _0x57eb2a;}export const dbUpdate={'service':'db','command':a96_0x510a13(0xa6),'description':a96_0x510a13(0xb2),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x510a13(0xad),'type':'string','description':a96_0x510a13(0x96)},{'name':a96_0x510a13(0xa9),'type':'string','description':a96_0x510a13(0xa3)},{'name':a96_0x510a13(0xb7),'type':a96_0x510a13(0xac),'description':'New\x20username'},{'name':a96_0x510a13(0xab),'type':a96_0x510a13(0xac),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a96_0x510a13(0xa5),'type':a96_0x510a13(0xac),'description':a96_0x510a13(0xba)},{'name':a96_0x510a13(0x98),'type':a96_0x510a13(0xac),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x25f451){const _0x1d7d8b=a96_0x510a13,_0x2835d5=_0x25f451[_0x1d7d8b(0xb8)](_0x1d7d8b(0xa9));if(_0x2835d5&&!validateDbUrl(_0x2835d5[_0x1d7d8b(0x9c)]()))throw CliErrors[_0x1d7d8b(0x9d)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2835d5+'\x22');},async 'dryRun'(_0x15a0ea){const _0x509e24=a96_0x510a13,_0x1786f8=_0x15a0ea[_0x509e24(0xb3)]('id'),_0x9fa55d=await getDbLinkInfo(_0x1786f8),_0xe9c3ec=mergeDbLinkUpdate(_0x9fa55d,_0x15a0ea),_0x2adbf7=sanitizeDbLinkForOutput(_0xe9c3ec);return{'method':_0x509e24(0xae),'url':'/smartapi/dblink/update','body':_0x2adbf7,'description':_0x509e24(0xb4),'connectionPreflight':{'enabled':!_0x15a0ea[_0x509e24(0xa0)](_0x509e24(0x9e)),'executed':![]}};},async 'execute'(_0x2a7d21){const _0x4db1b2=a96_0x510a13,_0x208411=_0x2a7d21['num']('id'),_0xd34b4d=await getDbLinkInfo(_0x208411),_0x34e602=mergeDbLinkUpdate(_0xd34b4d,_0x2a7d21);!_0x2a7d21[_0x4db1b2(0xa0)](_0x4db1b2(0x9e))&&await assertDbLinkConnectionPreflight(_0x34e602);const {id:_0x1a3234,entity:_0x12d6bb}=normalizeEntityWithIdResponse(await updateDbLink(_0x34e602));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x12d6bb),'message':_0x4db1b2(0xa2)+(_0x1a3234??_0x208411)};}};function a96_0x39b6(){const _0x578692=['username','str','has','New\x20connection\x20parameter\x20string','[redacted]','New\x20database\x20name','18617310beUJKP','dbdesc','3126942YcJNep','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbName','trim','validation','skip-connection-test','173187NVpQMg','bool','6067296IbuxaW','Updated\x20db\x20link\x20','New\x20host:port','1809592hLUvtF','dbparam','update','dbDesc','******','dburl','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','password','string','dbname','POST','5DAUPbM','14DPyAUO','4363NfvFwL','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','num','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','408788VfnrtN','282FmIVPy'];a96_0x39b6=function(){return _0x578692;};return a96_0x39b6();}
1
+ const a96_0x59094d=a96_0xfc94;function a96_0xfc94(_0x44ce3c,_0x175805){_0x44ce3c=_0x44ce3c-0x1e3;const _0x53eebe=a96_0x53ee();let _0xfc9474=_0x53eebe[_0x44ce3c];return _0xfc9474;}(function(_0x1a373b,_0x123f96){const _0x554611=a96_0xfc94,_0x1acd36=_0x1a373b();while(!![]){try{const _0x4bd6d7=-parseInt(_0x554611(0x204))/0x1+parseInt(_0x554611(0x1fb))/0x2+-parseInt(_0x554611(0x1e5))/0x3+-parseInt(_0x554611(0x203))/0x4*(parseInt(_0x554611(0x1e6))/0x5)+parseInt(_0x554611(0x1fe))/0x6+-parseInt(_0x554611(0x205))/0x7+parseInt(_0x554611(0x1ef))/0x8;if(_0x4bd6d7===_0x123f96)break;else _0x1acd36['push'](_0x1acd36['shift']());}catch(_0x23ce85){_0x1acd36['push'](_0x1acd36['shift']());}}}(a96_0x53ee,0xd584b));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a96_0x59094d(0x1ed)]);function a96_0x53ee(){const _0x1ebef2=['/smartapi/dblink/update','1690323rBJGmE','415ZBFfHw','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbDesc','dbname','New\x20host:port','has','str','[redacted]','dbparam','9686720xqeFHk','num','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','write','username','dburl','update','Updated\x20db\x20link\x20','bool','skip-connection-test','POST','validation','2162080HLABjk','New\x20username','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','3722886HsQJOe','dbParam','dbdesc','New\x20description','dbName','40464DvwVwz','604188zvGLCa','213731Kifvls','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','New\x20database\x20name','trim','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','password','string'];a96_0x53ee=function(){return _0x1ebef2;};return a96_0x53ee();}function mergeDbLinkUpdate(_0x18a203,_0xf40ffe){const _0x2de217=a96_0x59094d,_0x509c5e={..._0x18a203},_0x37ba9f=_0xf40ffe['str'](_0x2de217(0x20a));if(_0x37ba9f&&MASKED_PASSWORD_VALUES[_0x2de217(0x1eb)](_0x37ba9f))throw CliErrors[_0x2de217(0x1fa)](_0x2de217(0x206));if(!_0x37ba9f&&MASKED_PASSWORD_VALUES[_0x2de217(0x1eb)](String(_0x18a203[_0x2de217(0x20a)]??'')))throw CliErrors['validation'](_0x2de217(0x1e7));const _0x126bc3=_0xf40ffe[_0x2de217(0x1ec)](_0x2de217(0x1e9));if(_0x126bc3)_0x509c5e[_0x2de217(0x202)]=_0x126bc3;const _0x2a1c2a=_0xf40ffe[_0x2de217(0x1ec)](_0x2de217(0x1f4));if(_0x2a1c2a)_0x509c5e['dbUrl']=_0x2a1c2a['trim']();const _0x201651=_0xf40ffe[_0x2de217(0x1ec)]('username');if(_0x201651)_0x509c5e[_0x2de217(0x1f3)]=_0x201651;if(_0x37ba9f)_0x509c5e[_0x2de217(0x20a)]=_0x37ba9f;const _0x4d7dff=_0xf40ffe['str'](_0x2de217(0x1ee));if(_0x4d7dff)_0x509c5e[_0x2de217(0x1ff)]=_0x4d7dff;const _0x5edcb5=_0xf40ffe[_0x2de217(0x1ec)](_0x2de217(0x200));if(_0x5edcb5)_0x509c5e[_0x2de217(0x1e8)]=_0x5edcb5;return _0x509c5e;}export const dbUpdate={'service':'db','command':a96_0x59094d(0x1f5),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a96_0x59094d(0x1f2),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x59094d(0x1e9),'type':a96_0x59094d(0x1e3),'description':a96_0x59094d(0x207)},{'name':a96_0x59094d(0x1f4),'type':'string','description':a96_0x59094d(0x1ea)},{'name':'username','type':'string','description':a96_0x59094d(0x1fc)},{'name':a96_0x59094d(0x20a),'type':'string','description':a96_0x59094d(0x209)},{'name':a96_0x59094d(0x1ee),'type':a96_0x59094d(0x1e3),'description':'New\x20connection\x20parameter\x20string'},{'name':a96_0x59094d(0x200),'type':a96_0x59094d(0x1e3),'description':a96_0x59094d(0x201)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1eb08a){const _0x1f75e4=a96_0x59094d,_0x20a318=_0x1eb08a[_0x1f75e4(0x1ec)]('dburl');if(_0x20a318&&!validateDbUrl(_0x20a318[_0x1f75e4(0x208)]()))throw CliErrors['validation'](_0x1f75e4(0x1fd)+_0x20a318+'\x22');},async 'dryRun'(_0x324827){const _0x398ef9=a96_0x59094d,_0x47967c=_0x324827[_0x398ef9(0x1f0)]('id'),_0x453174=await getDbLinkInfo(_0x47967c),_0x374cf5=mergeDbLinkUpdate(_0x453174,_0x324827),_0x5d0bf0=sanitizeDbLinkForOutput(_0x374cf5);return{'method':_0x398ef9(0x1f9),'url':_0x398ef9(0x1e4),'body':_0x5d0bf0,'description':_0x398ef9(0x1f1),'connectionPreflight':{'enabled':!_0x324827[_0x398ef9(0x1f7)](_0x398ef9(0x1f8)),'executed':![]}};},async 'execute'(_0x333f7e){const _0xd56b8b=a96_0x59094d,_0x4dbdc3=_0x333f7e['num']('id'),_0x33826c=await getDbLinkInfo(_0x4dbdc3),_0x12bc5d=mergeDbLinkUpdate(_0x33826c,_0x333f7e);!_0x333f7e[_0xd56b8b(0x1f7)](_0xd56b8b(0x1f8))&&await assertDbLinkConnectionPreflight(_0x12bc5d);const {id:_0x85b6de,entity:_0x3b9786}=normalizeEntityWithIdResponse(await updateDbLink(_0x12bc5d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3b9786),'message':_0xd56b8b(0x1f6)+(_0x85b6de??_0x4dbdc3)};}};
@@ -1 +1 @@
1
- (function(_0xbd8500,_0x557e39){const _0x4b9d7a=a97_0x4ed7,_0x3772d7=_0xbd8500();while(!![]){try{const _0x399835=parseInt(_0x4b9d7a(0x124))/0x1+parseInt(_0x4b9d7a(0x11c))/0x2*(parseInt(_0x4b9d7a(0x121))/0x3)+parseInt(_0x4b9d7a(0x126))/0x4*(parseInt(_0x4b9d7a(0x11d))/0x5)+parseInt(_0x4b9d7a(0x125))/0x6*(-parseInt(_0x4b9d7a(0x123))/0x7)+-parseInt(_0x4b9d7a(0x11f))/0x8*(parseInt(_0x4b9d7a(0x120))/0x9)+parseInt(_0x4b9d7a(0x11e))/0xa+-parseInt(_0x4b9d7a(0x122))/0xb;if(_0x399835===_0x557e39)break;else _0x3772d7['push'](_0x3772d7['shift']());}catch(_0x353ab9){_0x3772d7['push'](_0x3772d7['shift']());}}}(a97_0x2b14,0xd7a10));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a97_0x4ed7(_0x565705,_0x3ecbf0){_0x565705=_0x565705-0x11c;const _0x2b1413=a97_0x2b14();let _0x4ed7d2=_0x2b1413[_0x565705];return _0x4ed7d2;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a97_0x2b14(){const _0x1917a6=['40cgjASQ','645633uyICYV','6HaOiyl','9130572izqgsU','19537EFOqRc','765387hgonsA','2778MVlQAp','92hyeMVG','969514yHLxyi','211550eEbaZl','6561550bmXOVb'];a97_0x2b14=function(){return _0x1917a6;};return a97_0x2b14();}
1
+ (function(_0x18a827,_0x5ab39b){const _0x5a4b24=a97_0x8732,_0x2ddb18=_0x18a827();while(!![]){try{const _0x2959a3=parseInt(_0x5a4b24(0x128))/0x1*(-parseInt(_0x5a4b24(0x12d))/0x2)+-parseInt(_0x5a4b24(0x125))/0x3*(parseInt(_0x5a4b24(0x127))/0x4)+-parseInt(_0x5a4b24(0x129))/0x5+-parseInt(_0x5a4b24(0x124))/0x6*(-parseInt(_0x5a4b24(0x12a))/0x7)+-parseInt(_0x5a4b24(0x12b))/0x8+parseInt(_0x5a4b24(0x12c))/0x9+parseInt(_0x5a4b24(0x126))/0xa;if(_0x2959a3===_0x5ab39b)break;else _0x2ddb18['push'](_0x2ddb18['shift']());}catch(_0x3d5242){_0x2ddb18['push'](_0x2ddb18['shift']());}}}(a97_0x957d,0x32a66));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a97_0x8732(_0x508e58,_0xa0f78){_0x508e58=_0x508e58-0x124;const _0x957da1=a97_0x957d();let _0x873275=_0x957da1[_0x508e58];return _0x873275;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a97_0x957d(){const _0x504ef3=['49dOjfuu','3057632ddMrFe','87003RLlhJb','6078wjPcAN','143610vBfrMZ','10698xjniby','9999890SAxrFc','100jjZQnM','85sMFlyX','1200350MFYDTD'];a97_0x957d=function(){return _0x504ef3;};return a97_0x957d();}
@@ -1 +1 @@
1
- const a98_0x1cf146=a98_0x4d27;(function(_0x128811,_0x3dad3f){const _0x3e0c2b=a98_0x4d27,_0x1d5299=_0x128811();while(!![]){try{const _0x3316ba=-parseInt(_0x3e0c2b(0x80))/0x1*(-parseInt(_0x3e0c2b(0x68))/0x2)+parseInt(_0x3e0c2b(0x76))/0x3+parseInt(_0x3e0c2b(0x88))/0x4*(-parseInt(_0x3e0c2b(0x6e))/0x5)+-parseInt(_0x3e0c2b(0x7e))/0x6+-parseInt(_0x3e0c2b(0x82))/0x7+parseInt(_0x3e0c2b(0x66))/0x8+parseInt(_0x3e0c2b(0x7a))/0x9*(-parseInt(_0x3e0c2b(0x8a))/0xa);if(_0x3316ba===_0x3dad3f)break;else _0x1d5299['push'](_0x1d5299['shift']());}catch(_0x218c82){_0x1d5299['push'](_0x1d5299['shift']());}}}(a98_0x36f3,0xcb3b8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a98_0x4d27(_0x7f3dcf,_0x54eb59){_0x7f3dcf=_0x7f3dcf-0x64;const _0x36f398=a98_0x36f3();let _0x4d276a=_0x36f398[_0x7f3dcf];return _0x4d276a;}function a98_0x36f3(){const _0x225ea3=['submitted','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','3822736FmeHdw','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','6658JeQxqU','sync-all','data','not_submitted','boolean','write','3815hEjXXu','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','/smartapi/data-sync/submit','defineProperty','deployment','deployment_sync_submit_outcome_unknown','Submitted\x20deployment\x20synchronization\x20job\x20','appCode','4528854jzBzla','unknown','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','outcome','360aNZaFc','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','validation','application_deployment_sync','1701366CDTQLQ','job','339aCroKb','confirm','5638003EESrqz','jobId','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','status','bool','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','428HOKXBT','not_needed','278230QlBlmJ'];a98_0x36f3=function(){return _0x225ea3;};return a98_0x36f3();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a98_0x1cf146(0x70),CONFIRM_FLAG={'name':'confirm','type':a98_0x1cf146(0x6c),'description':a98_0x1cf146(0x65)};export const deploymentSyncAll={'service':a98_0x1cf146(0x72),'command':a98_0x1cf146(0x69),'description':a98_0x1cf146(0x78),'risk':a98_0x1cf146(0x6d),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x1cf146(0x84),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x368f00){return asDryRunResult(buildPreview(_0x368f00['appCode']),{'method':'POST','url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x38aa7d){const _0x57750e=a98_0x1cf146;if(!_0x38aa7d[_0x57750e(0x86)](_0x57750e(0x81)))throw CliErrors[_0x57750e(0x7c)](_0x57750e(0x6f),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x285648=await submitDeploymentMetadataSyncAll({'appCode':_0x38aa7d['appCode']});if(_0x285648[_0x57750e(0x79)]===_0x57750e(0x89))return{'ok':!![],'data':{'operation':_0x57750e(0x7d),'appCode':_0x38aa7d[_0x57750e(0x75)],'submitted':![],'outcome':_0x57750e(0x89)},'message':_0x57750e(0x67)};return{'ok':!![],'data':{'operation':_0x57750e(0x7d),'appCode':_0x38aa7d[_0x57750e(0x75)],'submitted':!![],'outcome':_0x57750e(0x64),'jobId':_0x285648[_0x57750e(0x7f)]['jobId'],'status':_0x285648['job'][_0x57750e(0x85)]},'message':_0x57750e(0x74)+_0x285648[_0x57750e(0x7f)][_0x57750e(0x83)]+'.'};}catch(_0x4777a6){if(!isPlatformTransportFailure(_0x4777a6))throw _0x4777a6;const _0x509c7c=new CliError(_0x57750e(0x73),0x2,_0x57750e(0x7b),_0x57750e(0x87));Object[_0x57750e(0x71)](_0x509c7c,_0x57750e(0x6a),{'enumerable':!![],'value':{'operation':_0x57750e(0x7d),'appCode':_0x38aa7d[_0x57750e(0x75)],'submitted':null,'outcome':_0x57750e(0x77)}});throw _0x509c7c;}}};function buildPreview(_0x1e9442){const _0x310a17=a98_0x1cf146;return{'operation':'application_deployment_sync','selector':{'appCode':_0x1e9442,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x310a17(0x6b)},'warnings':[]};}
1
+ const a98_0x4d351c=a98_0x2833;(function(_0x11a5ea,_0x590395){const _0x110b06=a98_0x2833,_0x167655=_0x11a5ea();while(!![]){try{const _0xc75092=parseInt(_0x110b06(0x8d))/0x1*(-parseInt(_0x110b06(0x8e))/0x2)+-parseInt(_0x110b06(0x94))/0x3*(-parseInt(_0x110b06(0x8a))/0x4)+parseInt(_0x110b06(0x86))/0x5*(-parseInt(_0x110b06(0x96))/0x6)+parseInt(_0x110b06(0x90))/0x7*(parseInt(_0x110b06(0x7a))/0x8)+-parseInt(_0x110b06(0x97))/0x9*(-parseInt(_0x110b06(0x7f))/0xa)+parseInt(_0x110b06(0x7b))/0xb*(parseInt(_0x110b06(0x7c))/0xc)+parseInt(_0x110b06(0x89))/0xd*(parseInt(_0x110b06(0xa1))/0xe);if(_0xc75092===_0x590395)break;else _0x167655['push'](_0x167655['shift']());}catch(_0x320899){_0x167655['push'](_0x167655['shift']());}}}(a98_0x461c,0xd6753));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a98_0x4d351c(0xa0),CONFIRM_FLAG={'name':'confirm','type':a98_0x4d351c(0x7d),'description':a98_0x4d351c(0x85)};export const deploymentSyncAll={'service':a98_0x4d351c(0x9a),'command':'sync-all','description':a98_0x4d351c(0x9f),'risk':a98_0x4d351c(0x8c),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x4d351c(0x88),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x21e192){const _0x54d8b0=a98_0x4d351c;return asDryRunResult(buildPreview(_0x21e192['appCode']),{'method':_0x54d8b0(0x93),'url':SUBMIT_PATH,'description':_0x54d8b0(0x98)});},async 'execute'(_0x4ce9af){const _0x3404f4=a98_0x4d351c;if(!_0x4ce9af['bool'](_0x3404f4(0x9d)))throw CliErrors[_0x3404f4(0x87)](_0x3404f4(0x7e),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x5623cc=await submitDeploymentMetadataSyncAll({'appCode':_0x4ce9af[_0x3404f4(0x9e)]});if(_0x5623cc[_0x3404f4(0x82)]===_0x3404f4(0x92))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x4ce9af['appCode'],'submitted':![],'outcome':_0x3404f4(0x92)},'message':_0x3404f4(0x91)};return{'ok':!![],'data':{'operation':_0x3404f4(0x8b),'appCode':_0x4ce9af['appCode'],'submitted':!![],'outcome':_0x3404f4(0x8f),'jobId':_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x95)],'status':_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x80)]},'message':_0x3404f4(0x81)+_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x95)]+'.'};}catch(_0x19660c){if(!isPlatformTransportFailure(_0x19660c))throw _0x19660c;const _0x44e6f7=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x3404f4(0x9b),_0x3404f4(0x79));Object[_0x3404f4(0x99)](_0x44e6f7,_0x3404f4(0x83),{'enumerable':!![],'value':{'operation':_0x3404f4(0x8b),'appCode':_0x4ce9af[_0x3404f4(0x9e)],'submitted':null,'outcome':_0x3404f4(0x84)}});throw _0x44e6f7;}}};function a98_0x2833(_0x5f31fa,_0x24b1d5){_0x5f31fa=_0x5f31fa-0x78;const _0x461c60=a98_0x461c();let _0x2833c2=_0x461c60[_0x5f31fa];return _0x2833c2;}function a98_0x461c(){const _0x467d7e=['11McaDxi','19936668fUjDsV','boolean','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','89720HDCZyX','status','Submitted\x20deployment\x20synchronization\x20job\x20','outcome','data','unknown','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','5122555VwxDPQ','validation','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','978458KaeiFT','949536WalxaK','application_deployment_sync','write','1664987ansOqU','2OwzaHO','submitted','1804586PPWbXj','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','not_needed','POST','9GVpZjP','jobId','6dLigUg','864YWIKed','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','defineProperty','deployment','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','job','confirm','appCode','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','/smartapi/data-sync/submit','14PQbpKe','not_submitted','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','8kcHzwO'];a98_0x461c=function(){return _0x467d7e;};return a98_0x461c();}function buildPreview(_0x57d849){const _0x5c1182=a98_0x4d351c;return{'operation':_0x5c1182(0x8b),'selector':{'appCode':_0x57d849,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x5c1182(0x78)},'warnings':[]};}
@@ -1 +1 @@
1
- const a99_0x1b12f7=a99_0x12a4;(function(_0x98c76a,_0x2f5abe){const _0x44ffec=a99_0x12a4,_0x31a96a=_0x98c76a();while(!![]){try{const _0x13564a=parseInt(_0x44ffec(0x126))/0x1*(parseInt(_0x44ffec(0x10c))/0x2)+parseInt(_0x44ffec(0x11c))/0x3*(parseInt(_0x44ffec(0x11e))/0x4)+-parseInt(_0x44ffec(0x124))/0x5*(parseInt(_0x44ffec(0x120))/0x6)+parseInt(_0x44ffec(0x110))/0x7*(-parseInt(_0x44ffec(0x10f))/0x8)+-parseInt(_0x44ffec(0x10d))/0x9+-parseInt(_0x44ffec(0x128))/0xa+parseInt(_0x44ffec(0x10e))/0xb;if(_0x13564a===_0x2f5abe)break;else _0x31a96a['push'](_0x31a96a['shift']());}catch(_0x58c54f){_0x31a96a['push'](_0x31a96a['shift']());}}}(a99_0x546d,0x35356));function a99_0x546d(){const _0x2b2218=['current-page','length','27357sOWeDf','number','156lIWiYo','page-size','3570aLAbVj','Found\x20','num','string','2375KQlQGQ','read','1SePPGL','--current-page\x20must\x20be\x20a\x20positive\x20integer.','714090acQgJP','validation','865842aUcuEH','1351143LgJMvm','2192916DlniOE','1320OKLHwT','11277fWdUUG','trim','items','status','Page\x20number','appCode','sync-jobs','Items\x20per\x20page\x20(maximum\x20100)','isSafeInteger','\x20deployment\x20synchronization\x20job(s).'];a99_0x546d=function(){return _0x2b2218;};return a99_0x546d();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a99_0x12a4(_0xec8fd3,_0xa548b3){_0xec8fd3=_0xec8fd3-0x10b;const _0x546d48=a99_0x546d();let _0x12a4e1=_0x546d48[_0xec8fd3];return _0x12a4e1;}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':a99_0x1b12f7(0x116),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':a99_0x1b12f7(0x125),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a99_0x1b12f7(0x11a),'type':a99_0x1b12f7(0x11d),'default':0x1,'description':a99_0x1b12f7(0x114)},{'name':'page-size','type':'number','default':0xa,'description':a99_0x1b12f7(0x117)},{'name':a99_0x1b12f7(0x113),'type':a99_0x1b12f7(0x123),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x33d777){const _0x1c5178=a99_0x1b12f7;readPaging(_0x33d777[_0x1c5178(0x122)]('current-page',0x1),_0x33d777[_0x1c5178(0x122)](_0x1c5178(0x11f),0xa));},async 'execute'(_0x58cdb2){const _0x43a7bf=a99_0x1b12f7,{currentPage:_0x181be8,pageSize:_0xa19c6e}=readPaging(_0x58cdb2[_0x43a7bf(0x122)](_0x43a7bf(0x11a),0x1),_0x58cdb2['num']('page-size',0xa)),_0x5cfd76=_0x58cdb2['str'](_0x43a7bf(0x113))[_0x43a7bf(0x111)](),_0x316a84=await listDeploymentMetadataSyncJobs({'appCode':_0x58cdb2[_0x43a7bf(0x115)],'currentPage':_0x181be8,'pageSize':_0xa19c6e,..._0x5cfd76?{'status':_0x5cfd76}:{}});return{'ok':!![],'data':{'appCode':_0x58cdb2[_0x43a7bf(0x115)],..._0x316a84},'message':_0x43a7bf(0x121)+_0x316a84[_0x43a7bf(0x112)][_0x43a7bf(0x11b)]+_0x43a7bf(0x119)};}};function readPaging(_0x1b73e0,_0x13843a){const _0x4029cd=a99_0x1b12f7;if(!Number[_0x4029cd(0x118)](_0x1b73e0)||_0x1b73e0<0x1)throw CliErrors[_0x4029cd(0x10b)](_0x4029cd(0x127));if(!Number['isSafeInteger'](_0x13843a)||_0x13843a<0x1||_0x13843a>0x64)throw CliErrors[_0x4029cd(0x10b)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x1b73e0,'pageSize':_0x13843a};}
1
+ const a99_0xaac412=a99_0xe693;function a99_0xe693(_0x396e4e,_0xafd538){_0x396e4e=_0x396e4e-0xf6;const _0x21a48b=a99_0x21a4();let _0xe69374=_0x21a48b[_0x396e4e];return _0xe69374;}(function(_0xc46fae,_0x46eabf){const _0x212f6d=a99_0xe693,_0x2eca19=_0xc46fae();while(!![]){try{const _0x4d6e0d=parseInt(_0x212f6d(0x107))/0x1*(parseInt(_0x212f6d(0x10d))/0x2)+parseInt(_0x212f6d(0x114))/0x3+-parseInt(_0x212f6d(0xf6))/0x4+-parseInt(_0x212f6d(0x10f))/0x5+-parseInt(_0x212f6d(0x109))/0x6*(-parseInt(_0x212f6d(0x108))/0x7)+parseInt(_0x212f6d(0xfa))/0x8+-parseInt(_0x212f6d(0x10c))/0x9*(parseInt(_0x212f6d(0xf8))/0xa);if(_0x4d6e0d===_0x46eabf)break;else _0x2eca19['push'](_0x2eca19['shift']());}catch(_0x29c41d){_0x2eca19['push'](_0x2eca19['shift']());}}}(a99_0x21a4,0xdf9e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a99_0x21a4(){const _0x1665e2=['--current-page\x20must\x20be\x20a\x20positive\x20integer.','8751325ZNmqdx','sync-jobs','trim','number','str','3825945uetibD','1755512CDVCqN','Page\x20number','20EPqceh','Optional\x20server-defined\x20job\x20status\x20filter','11472864DchwtR','num','current-page','validation','\x20deployment\x20synchronization\x20job(s).','status','isSafeInteger','items','length','deployment','appCode','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','List\x20application\x20deployment\x20synchronization\x20jobs','1SqgoBj','7LFOxBL','241896RuLFcl','page-size','Items\x20per\x20page\x20(maximum\x20100)','4528863OugPPL','2723526mQTGYi'];a99_0x21a4=function(){return _0x1665e2;};return a99_0x21a4();}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a99_0xaac412(0x103),'command':a99_0xaac412(0x110),'description':a99_0xaac412(0x106),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a99_0xaac412(0xfc),'type':a99_0xaac412(0x112),'default':0x1,'description':a99_0xaac412(0xf7)},{'name':a99_0xaac412(0x10a),'type':'number','default':0xa,'description':a99_0xaac412(0x10b)},{'name':a99_0xaac412(0xff),'type':'string','description':a99_0xaac412(0xf9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x449de5){const _0xa9d21a=a99_0xaac412;readPaging(_0x449de5[_0xa9d21a(0xfb)]('current-page',0x1),_0x449de5[_0xa9d21a(0xfb)](_0xa9d21a(0x10a),0xa));},async 'execute'(_0x3a4ac7){const _0x187a64=a99_0xaac412,{currentPage:_0x59aa26,pageSize:_0x57678e}=readPaging(_0x3a4ac7[_0x187a64(0xfb)]('current-page',0x1),_0x3a4ac7['num']('page-size',0xa)),_0x28c2c4=_0x3a4ac7[_0x187a64(0x113)](_0x187a64(0xff))[_0x187a64(0x111)](),_0x29387b=await listDeploymentMetadataSyncJobs({'appCode':_0x3a4ac7[_0x187a64(0x104)],'currentPage':_0x59aa26,'pageSize':_0x57678e,..._0x28c2c4?{'status':_0x28c2c4}:{}});return{'ok':!![],'data':{'appCode':_0x3a4ac7['appCode'],..._0x29387b},'message':'Found\x20'+_0x29387b[_0x187a64(0x101)][_0x187a64(0x102)]+_0x187a64(0xfe)};}};function readPaging(_0x247757,_0x48963e){const _0x50f5c7=a99_0xaac412;if(!Number[_0x50f5c7(0x100)](_0x247757)||_0x247757<0x1)throw CliErrors[_0x50f5c7(0xfd)](_0x50f5c7(0x10e));if(!Number[_0x50f5c7(0x100)](_0x48963e)||_0x48963e<0x1||_0x48963e>0x64)throw CliErrors[_0x50f5c7(0xfd)](_0x50f5c7(0x105));return{'currentPage':_0x247757,'pageSize':_0x48963e};}
@@ -1 +1 @@
1
- const a100_0x996d4a=a100_0x2fcf;(function(_0x32c62c,_0x56ad14){const _0x55bace=a100_0x2fcf,_0x85a4cc=_0x32c62c();while(!![]){try{const _0x57a8e5=parseInt(_0x55bace(0x13b))/0x1+parseInt(_0x55bace(0x147))/0x2*(parseInt(_0x55bace(0x143))/0x3)+-parseInt(_0x55bace(0x133))/0x4+parseInt(_0x55bace(0x13f))/0x5*(-parseInt(_0x55bace(0x14e))/0x6)+parseInt(_0x55bace(0x148))/0x7+parseInt(_0x55bace(0x135))/0x8+parseInt(_0x55bace(0x144))/0x9*(-parseInt(_0x55bace(0x150))/0xa);if(_0x57a8e5===_0x56ad14)break;else _0x85a4cc['push'](_0x85a4cc['shift']());}catch(_0x4ea3f4){_0x85a4cc['push'](_0x85a4cc['shift']());}}}(a100_0x15c5,0x5ad7a));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a100_0x15c5(){const _0x427b06=['630935PYkeEe','isSafeInteger','length','Deployment\x20synchronization\x20job\x20ID','59988rtYdPc','357237VdeIJy','PARTIAL_SUCCESS','read','44iyjDOc','5087173lcUdxV','appCode','status','bizType','results','Deployment\x20synchronization\x20job\x20','18sEEBoO','has','120KNAyqy','reduce',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','--job-id\x20must\x20be\x20a\x20positive\x20integer.','job-id','num','2552176ATGCXU','action','316840wvNCAn','map','sync-status','deployment','FAILED','Preserved\x20server-defined\x20status\x20','658755dbDwOE','number','SUCCESS','validation'];a100_0x15c5=function(){return _0x427b06;};return a100_0x15c5();}const TERMINAL_STATUSES=new Set([a100_0x996d4a(0x13d),a100_0x996d4a(0x145),a100_0x996d4a(0x139)]),ACTIVE_STATUSES=new Set(['PENDING','RUNNING']);function a100_0x2fcf(_0xbda187,_0x739235){_0xbda187=_0xbda187-0x12f;const _0x15c59c=a100_0x15c5();let _0x2fcf5e=_0x15c59c[_0xbda187];return _0x2fcf5e;}export const deploymentSyncStatus={'service':a100_0x996d4a(0x138),'command':a100_0x996d4a(0x137),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a100_0x996d4a(0x146),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a100_0x996d4a(0x131),'type':a100_0x996d4a(0x13c),'required':!![],'description':a100_0x996d4a(0x142)}],async 'validate'(_0x33d62b){const _0x38fce0=a100_0x996d4a;readJobId(_0x33d62b['num'](_0x38fce0(0x131)));},async 'execute'(_0x1b6c09){const _0x5d377a=a100_0x996d4a,_0x1905d1=readJobId(_0x1b6c09[_0x5d377a(0x132)]('job-id')),_0x10a0f5=await getDeploymentMetadataSyncStatus({'jobId':_0x1905d1,'appCode':_0x1b6c09[_0x5d377a(0x149)]}),_0x38e302=TERMINAL_STATUSES['has'](_0x10a0f5[_0x5d377a(0x14a)])?!![]:ACTIVE_STATUSES[_0x5d377a(0x14f)](_0x10a0f5[_0x5d377a(0x14a)])?![]:null,_0xd8b43b=countBy(_0x10a0f5[_0x5d377a(0x14c)][_0x5d377a(0x136)](_0x1ae529=>_0x1ae529[_0x5d377a(0x14b)])),_0x41fbaa=countBy(_0x10a0f5[_0x5d377a(0x14c)]['map'](_0x2e0b52=>_0x2e0b52[_0x5d377a(0x134)])),_0xef511f=_0x38e302===null?[_0x5d377a(0x13a)+_0x10a0f5[_0x5d377a(0x14a)]+_0x5d377a(0x12f)]:[];return{'ok':!![],'data':{'job':_0x10a0f5,'isTerminal':_0x38e302,'summary':{'total':_0x10a0f5[_0x5d377a(0x14c)][_0x5d377a(0x141)],'failed':_0x10a0f5[_0x5d377a(0x14c)]['filter'](_0x447138=>_0x447138[_0x5d377a(0x134)]===_0x5d377a(0x139))[_0x5d377a(0x141)],'byBizType':_0xd8b43b,'byAction':_0x41fbaa},'warnings':_0xef511f},'message':_0x5d377a(0x14d)+_0x1905d1+'\x20is\x20'+_0x10a0f5[_0x5d377a(0x14a)]+'.'};}};function readJobId(_0x45201e){const _0xbe1080=a100_0x996d4a;if(!Number[_0xbe1080(0x140)](_0x45201e)||_0x45201e<=0x0)throw CliErrors[_0xbe1080(0x13e)](_0xbe1080(0x130));return _0x45201e;}function countBy(_0x141bbc){const _0x42b8cf=a100_0x996d4a;return _0x141bbc[_0x42b8cf(0x151)]((_0x5c8b8e,_0x3ddfe7)=>{return _0x5c8b8e[_0x3ddfe7]=(_0x5c8b8e[_0x3ddfe7]??0x0)+0x1,_0x5c8b8e;},{});}
1
+ function a100_0x5ec4(){const _0x5f7cf4=['24136tSwYig','132gIWwvA','Preserved\x20server-defined\x20status\x20','num','number','66489OFXIdO','892638ogAoSc','sync-status','PENDING','filter','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20','read','\x20is\x20','RUNNING','action','reduce','229403WAMphG','map','appCode','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','bizType','job-id','8SdaEtH','has','validation','FAILED','results','808310BLmcfm','59000fgDDfl','46420VIdmCb','SUCCESS','8EfGhLi','length'];a100_0x5ec4=function(){return _0x5f7cf4;};return a100_0x5ec4();}function a100_0x16e8(_0x4fce4e,_0x415d0c){_0x4fce4e=_0x4fce4e-0x93;const _0x5ec455=a100_0x5ec4();let _0x16e890=_0x5ec455[_0x4fce4e];return _0x16e890;}const a100_0x41aa2f=a100_0x16e8;(function(_0x376cb4,_0x41e0e9){const _0x70cf36=a100_0x16e8,_0x4dde18=_0x376cb4();while(!![]){try{const _0x275e50=-parseInt(_0x70cf36(0x9b))/0x1+parseInt(_0x70cf36(0xa2))/0x2*(parseInt(_0x70cf36(0xb2))/0x3)+parseInt(_0x70cf36(0xa9))/0x4+-parseInt(_0x70cf36(0xa8))/0x5+-parseInt(_0x70cf36(0xae))/0x6*(-parseInt(_0x70cf36(0xad))/0x7)+-parseInt(_0x70cf36(0xab))/0x8*(-parseInt(_0x70cf36(0xb3))/0x9)+parseInt(_0x70cf36(0xa7))/0xa;if(_0x275e50===_0x41e0e9)break;else _0x4dde18['push'](_0x4dde18['shift']());}catch(_0x6e2377){_0x4dde18['push'](_0x4dde18['shift']());}}}(a100_0x5ec4,0x1c0eb));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a100_0x41aa2f(0xaa),'PARTIAL_SUCCESS',a100_0x41aa2f(0xa5)]),ACTIVE_STATUSES=new Set([a100_0x41aa2f(0xb5),a100_0x41aa2f(0x98)]);export const deploymentSyncStatus={'service':'deployment','command':a100_0x41aa2f(0xb4),'description':a100_0x41aa2f(0x94),'risk':a100_0x41aa2f(0x96),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a100_0x41aa2f(0xb1),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x2e6bf6){const _0x36f310=a100_0x41aa2f;readJobId(_0x2e6bf6[_0x36f310(0xb0)](_0x36f310(0xa1)));},async 'execute'(_0x131777){const _0x2f5e7d=a100_0x41aa2f,_0x240058=readJobId(_0x131777[_0x2f5e7d(0xb0)](_0x2f5e7d(0xa1))),_0x47c6f1=await getDeploymentMetadataSyncStatus({'jobId':_0x240058,'appCode':_0x131777[_0x2f5e7d(0x9d)]}),_0x11c722=TERMINAL_STATUSES[_0x2f5e7d(0xa3)](_0x47c6f1[_0x2f5e7d(0x9f)])?!![]:ACTIVE_STATUSES['has'](_0x47c6f1[_0x2f5e7d(0x9f)])?![]:null,_0x3e5408=countBy(_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0x9c)](_0x468e56=>_0x468e56[_0x2f5e7d(0xa0)])),_0x1f4311=countBy(_0x47c6f1['results'][_0x2f5e7d(0x9c)](_0x4db2c8=>_0x4db2c8['action'])),_0x51c0f8=_0x11c722===null?[_0x2f5e7d(0xaf)+_0x47c6f1[_0x2f5e7d(0x9f)]+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x47c6f1,'isTerminal':_0x11c722,'summary':{'total':_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0xac)],'failed':_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0x93)](_0x209fa8=>_0x209fa8[_0x2f5e7d(0x99)]==='FAILED')[_0x2f5e7d(0xac)],'byBizType':_0x3e5408,'byAction':_0x1f4311},'warnings':_0x51c0f8},'message':_0x2f5e7d(0x95)+_0x240058+_0x2f5e7d(0x97)+_0x47c6f1[_0x2f5e7d(0x9f)]+'.'};}};function readJobId(_0x11b313){const _0x5f9eb8=a100_0x41aa2f;if(!Number['isSafeInteger'](_0x11b313)||_0x11b313<=0x0)throw CliErrors[_0x5f9eb8(0xa4)](_0x5f9eb8(0x9e));return _0x11b313;}function countBy(_0xadb3f4){const _0x4ed2b9=a100_0x41aa2f;return _0xadb3f4[_0x4ed2b9(0x9a)]((_0x48183c,_0x9cf414)=>{return _0x48183c[_0x9cf414]=(_0x48183c[_0x9cf414]??0x0)+0x1,_0x48183c;},{});}