@lovrabet/rabetbase-cli 2.5.2-beta.5 → 2.5.2-beta.6

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 (329) 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.d.ts +0 -17
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/instant-api-policy/config.js +1 -1
  254. package/lib/core/kb-search-client.js +1 -1
  255. package/lib/core/page/file-system.js +1 -1
  256. package/lib/core/page/hash.js +1 -1
  257. package/lib/core/page/lock.js +1 -1
  258. package/lib/core/sql-index-auditor.js +1 -1
  259. package/lib/core/sql-sync/config.js +1 -1
  260. package/lib/core/sql-sync/file-system.js +1 -1
  261. package/lib/core/sql-sync/hash.js +1 -1
  262. package/lib/core/sql-sync/lock.js +1 -1
  263. package/lib/core/sql-sync/utils.js +1 -1
  264. package/lib/core/sql-validator.js +1 -1
  265. package/lib/errors.js +1 -1
  266. package/lib/framework/build-all-flags.js +1 -1
  267. package/lib/framework/error-output.js +1 -1
  268. package/lib/framework/explicit-yes.js +1 -1
  269. package/lib/framework/flags.js +1 -1
  270. package/lib/framework/help.js +1 -1
  271. package/lib/framework/index.js +1 -1
  272. package/lib/framework/output.js +1 -1
  273. package/lib/framework/response.js +1 -1
  274. package/lib/framework/runner-alias.js +1 -1
  275. package/lib/framework/runner.js +1 -1
  276. package/lib/framework/schema-export.js +1 -1
  277. package/lib/framework/supported-flags.js +1 -1
  278. package/lib/framework/types.js +1 -1
  279. package/lib/generated/build-info.d.ts +4 -4
  280. package/lib/generated/build-info.js +1 -1
  281. package/lib/generated/official-routing.js +1 -1
  282. package/lib/generated/routing-contract.js +1 -1
  283. package/lib/help.js +1 -1
  284. package/lib/postinstall.js +1 -1
  285. package/lib/runtime/confirmation.js +1 -1
  286. package/lib/runtime/event.js +1 -1
  287. package/lib/runtime/index.js +1 -1
  288. package/lib/runtime/queue.js +1 -1
  289. package/lib/runtime/resolve.js +1 -1
  290. package/lib/skills/builtin-skill.js +1 -1
  291. package/lib/skills/main.js +1 -1
  292. package/lib/skills/npx-skills-add.js +1 -1
  293. package/lib/skills/skill-presence.js +1 -1
  294. package/lib/telemetry/cli-command-trace.js +1 -1
  295. package/lib/telemetry/cli-help-trace.js +1 -1
  296. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  297. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  298. package/lib/telemetry/send-cli-trace-log.js +1 -1
  299. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  300. package/lib/utils/ai_config.js +1 -1
  301. package/lib/utils/apply-jq-filter.js +1 -1
  302. package/lib/utils/cdn-config.js +1 -1
  303. package/lib/utils/check-sdk-version.js +1 -1
  304. package/lib/utils/cli-version-check.js +1 -1
  305. package/lib/utils/cli-version-policy.js +1 -1
  306. package/lib/utils/config.js +1 -1
  307. package/lib/utils/entity-with-id.js +1 -1
  308. package/lib/utils/file-utils.js +1 -1
  309. package/lib/utils/guides-cdn.js +1 -1
  310. package/lib/utils/http-client.js +1 -1
  311. package/lib/utils/is-non-interactive.js +1 -1
  312. package/lib/utils/logger.js +1 -1
  313. package/lib/utils/params.js +1 -1
  314. package/lib/utils/platform.js +1 -1
  315. package/lib/utils/sleep.js +1 -1
  316. package/lib/utils/template-replacer.js +1 -1
  317. package/lib/utils/update-notice.js +1 -1
  318. package/lib/utils/version.js +1 -1
  319. package/lib/utils/with-active-cookie.js +1 -1
  320. package/lib/utils/write-cli-side-channel.js +1 -1
  321. package/package.json +1 -1
  322. package/skills/rabetbase/SKILL.md +5 -6
  323. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +56 -0
  324. package/skills/rabetbase.manifest.json +4 -4
  325. package/lib/commands/deployment/auto-sync.d.ts +0 -20
  326. package/lib/commands/deployment/auto-sync.js +0 -1
  327. package/lib/commands/deployment/sync.d.ts +0 -2
  328. package/lib/commands/deployment/sync.js +0 -1
  329. package/skills/rabetbase/references/rabetbase-deployment-sync.md +0 -100
@@ -1 +1 @@
1
- const a84_0x5b4654=a84_0x3fc3;(function(_0x1dca0e,_0x41a0de){const _0x1bb19e=a84_0x3fc3,_0x2fb846=_0x1dca0e();while(!![]){try{const _0x38ec2d=-parseInt(_0x1bb19e(0xc3))/0x1*(-parseInt(_0x1bb19e(0xc9))/0x2)+-parseInt(_0x1bb19e(0xae))/0x3*(parseInt(_0x1bb19e(0xb7))/0x4)+parseInt(_0x1bb19e(0xd2))/0x5*(parseInt(_0x1bb19e(0xbb))/0x6)+parseInt(_0x1bb19e(0xc4))/0x7*(-parseInt(_0x1bb19e(0xba))/0x8)+parseInt(_0x1bb19e(0xcd))/0x9+-parseInt(_0x1bb19e(0xb4))/0xa+parseInt(_0x1bb19e(0xc0))/0xb;if(_0x38ec2d===_0x41a0de)break;else _0x2fb846['push'](_0x2fb846['shift']());}catch(_0x24eb0f){_0x2fb846['push'](_0x2fb846['shift']());}}}(a84_0x4815,0xa5ff7));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a84_0x4815(){const _0x283f19=['message','8.0','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','appCode','12553530fnwZjw','Human-readable\x20description','bool','4bENcJe','Created\x20db\x20link\x20','/smartapi/dblink/create','584ggQEly','5924118kPwFYJ','\x20and\x20started\x20analysis',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','username','create','3053193KlSScK','dbdesc','str','1vhyOvr','89831awwwNl','POST','Database\x20username','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','string','1700004VJALDP','autostart','dbname','validation','9616446lpCXLj','Host\x20and\x20port:\x20host:port','Database\x20password','password','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','5xoLoRa','dbparam','dbtype','write','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','dbversion','dburl','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','trim','933969uPnSAU','skip-connection-test'];a84_0x4815=function(){return _0x283f19;};return a84_0x4815();}import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a84_0x3fc3(_0x217670,_0xdc612){_0x217670=_0x217670-0xaa;const _0x4815e=a84_0x4815();let _0x3fc3cc=_0x4815e[_0x217670];return _0x3fc3cc;}export const dbCreate={'service':'db','command':a84_0x5b4654(0xbf),'description':a84_0x5b4654(0xd1),'risk':a84_0x5b4654(0xd5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a84_0x5b4654(0xcb),'type':a84_0x5b4654(0xc8),'required':!![],'description':a84_0x5b4654(0xac)},DB_TYPE_FLAG,{'name':a84_0x5b4654(0xaa),'type':a84_0x5b4654(0xc8),'description':a84_0x5b4654(0xc7),'default':a84_0x5b4654(0xb1)},{'name':'dburl','type':a84_0x5b4654(0xc8),'required':!![],'description':a84_0x5b4654(0xce)},{'name':a84_0x5b4654(0xbe),'type':'string','required':!![],'description':a84_0x5b4654(0xc6)},{'name':a84_0x5b4654(0xd0),'type':a84_0x5b4654(0xc8),'required':!![],'description':a84_0x5b4654(0xcf)},{'name':a84_0x5b4654(0xd3),'type':a84_0x5b4654(0xc8),'description':'Extra\x20JDBC-style\x20connection\x20parameters\x20string'},{'name':a84_0x5b4654(0xc1),'type':a84_0x5b4654(0xc8),'description':a84_0x5b4654(0xb5)},{'name':a84_0x5b4654(0xca),'type':'boolean','description':'After\x20create,\x20start\x20schema\x20analysis','default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x9608b0){const _0x2c6fb1=a84_0x5b4654,_0x35b5ee=_0x9608b0['str']('dburl')[_0x2c6fb1(0xad)]();if(!validateDbUrl(_0x35b5ee))throw CliErrors[_0x2c6fb1(0xcc)](_0x2c6fb1(0xd6)+_0x35b5ee+'\x22',_0x2c6fb1(0xb2));},async 'dryRun'(_0x171de6){const _0x1fe7ec=a84_0x5b4654,_0x48fa1e={'appCode':_0x171de6[_0x1fe7ec(0xb3)],'dbName':_0x171de6[_0x1fe7ec(0xc2)](_0x1fe7ec(0xcb)),'dbType':_0x171de6[_0x1fe7ec(0xc2)](_0x1fe7ec(0xd4)),'dbVersion':_0x171de6[_0x1fe7ec(0xc2)]('dbversion')||'8.0','dbUrl':_0x171de6[_0x1fe7ec(0xc2)](_0x1fe7ec(0xab))[_0x1fe7ec(0xad)](),'username':_0x171de6[_0x1fe7ec(0xc2)](_0x1fe7ec(0xbe)),'password':'[redacted]',..._0x171de6[_0x1fe7ec(0xc2)]('dbparam')?{'dbParam':_0x171de6[_0x1fe7ec(0xc2)](_0x1fe7ec(0xd3))}:{},..._0x171de6['str'](_0x1fe7ec(0xc1))?{'dbDesc':_0x171de6[_0x1fe7ec(0xc2)](_0x1fe7ec(0xc1))}:{}};return{'method':_0x1fe7ec(0xc5),'url':_0x1fe7ec(0xb9),'body':_0x48fa1e,'description':['Create\x20dblink',_0x171de6[_0x1fe7ec(0xb6)](_0x1fe7ec(0xca))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':'No\x20follow-up\x20analysis']['join']('\x0a'),'connectionPreflight':{'enabled':!_0x171de6[_0x1fe7ec(0xb6)](_0x1fe7ec(0xaf)),'executed':![]}};},async 'execute'(_0x4ab078){const _0x127b11=a84_0x5b4654,_0x43800f={'appCode':_0x4ab078[_0x127b11(0xb3)],'dbName':_0x4ab078[_0x127b11(0xc2)](_0x127b11(0xcb)),'dbType':_0x4ab078[_0x127b11(0xc2)](_0x127b11(0xd4)),'dbVersion':_0x4ab078[_0x127b11(0xc2)](_0x127b11(0xaa))||'8.0','dbUrl':_0x4ab078[_0x127b11(0xc2)]('dburl')[_0x127b11(0xad)](),'username':_0x4ab078[_0x127b11(0xc2)](_0x127b11(0xbe)),'password':_0x4ab078[_0x127b11(0xc2)](_0x127b11(0xd0)),..._0x4ab078[_0x127b11(0xc2)](_0x127b11(0xd3))?{'dbParam':_0x4ab078[_0x127b11(0xc2)](_0x127b11(0xd3))}:{},..._0x4ab078['str']('dbdesc')?{'dbDesc':_0x4ab078[_0x127b11(0xc2)](_0x127b11(0xc1))}:{}};!_0x4ab078[_0x127b11(0xb6)](_0x127b11(0xaf))&&await assertDbLinkConnectionPreflight(_0x43800f);const {id:_0x1a23de,entity:_0x5c53d4}=normalizeEntityWithIdResponse(await createDbLink(_0x43800f));if(!_0x1a23de)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x5c53d4)};let _0x23529f,_0x704cb1;if(_0x4ab078['bool'](_0x127b11(0xca)))try{_0x23529f=(await startDbAnalysis(_0x1a23de))['planId'];}catch(_0x1138db){_0x704cb1=_0x1138db instanceof Error?_0x1138db[_0x127b11(0xb0)]:String(_0x1138db);}const _0x624b32=buildDbPageLinks(_0x4ab078[_0x127b11(0xb3)],_0x1a23de),_0x4868cb={'connection':sanitizeDbLinkForOutput(_0x5c53d4),..._0x624b32?{'links':{'databasePage':_0x624b32['databasePage']}}:{},..._0x23529f?{'analysisPlanId':_0x23529f}:{},..._0x704cb1?{'analysisStartWarning':_0x704cb1}:{}};let _0x57789;return _0x4ab078[_0x127b11(0xb6)]('autostart')?_0x704cb1?_0x57789=_0x127b11(0xb8)+_0x1a23de+_0x127b11(0xbd):_0x57789=_0x127b11(0xb8)+_0x1a23de+_0x127b11(0xbc):_0x57789=_0x127b11(0xb8)+_0x1a23de,{'ok':!![],'data':_0x4868cb,'message':_0x57789};}};
1
+ function a84_0xd00c(){const _0x27888a=['Database\x20password','trim','POST','str','dbdesc','dbname','Database\x20username','256264TFMQXV','string','password','appCode','join','Created\x20db\x20link\x20','create','18lDchBF','668018nzsNHb','autostart','8.0','356SYhIeX','2GRYQck','11628452FoIuJq','[redacted]','bool','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbtype','Extra\x20JDBC-style\x20connection\x20parameters\x20string','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','7584010covHCa','databasePage','dbparam','planId','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','skip-connection-test','dbversion','Host\x20and\x20port:\x20host:port','93162plfubG','username','3841338unttFy','No\x20follow-up\x20analysis','Human-readable\x20description','469QceXKo',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','write','\x20and\x20started\x20analysis','boolean','dburl','30710YkjVPq','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'];a84_0xd00c=function(){return _0x27888a;};return a84_0xd00c();}const a84_0x95d0e9=a84_0x189c;(function(_0x7c54fa,_0x3a033c){const _0x526dd7=a84_0x189c,_0x2a7ed9=_0x7c54fa();while(!![]){try{const _0x286bb4=-parseInt(_0x526dd7(0x1c6))/0x1*(parseInt(_0x526dd7(0x1c2))/0x2)+parseInt(_0x526dd7(0x1d9))/0x3+parseInt(_0x526dd7(0x1c5))/0x4*(-parseInt(_0x526dd7(0x1b1))/0x5)+parseInt(_0x526dd7(0x1d7))/0x6*(parseInt(_0x526dd7(0x1dc))/0x7)+parseInt(_0x526dd7(0x1ba))/0x8*(-parseInt(_0x526dd7(0x1c1))/0x9)+parseInt(_0x526dd7(0x1cf))/0xa+-parseInt(_0x526dd7(0x1c7))/0xb;if(_0x286bb4===_0x3a033c)break;else _0x2a7ed9['push'](_0x2a7ed9['shift']());}catch(_0x36c967){_0x2a7ed9['push'](_0x2a7ed9['shift']());}}}(a84_0xd00c,0xb5786));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a84_0x189c(_0x45dfb8,_0x170589){_0x45dfb8=_0x45dfb8-0x1ac;const _0xd00c70=a84_0xd00c();let _0x189ca8=_0xd00c70[_0x45dfb8];return _0x189ca8;}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_0x95d0e9(0x1c0),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a84_0x95d0e9(0x1ad),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a84_0x95d0e9(0x1bb),'required':!![],'description':a84_0x95d0e9(0x1b2)},DB_TYPE_FLAG,{'name':a84_0x95d0e9(0x1d5),'type':a84_0x95d0e9(0x1bb),'description':a84_0x95d0e9(0x1cd),'default':a84_0x95d0e9(0x1c4)},{'name':a84_0x95d0e9(0x1b0),'type':a84_0x95d0e9(0x1bb),'required':!![],'description':a84_0x95d0e9(0x1d6)},{'name':'username','type':a84_0x95d0e9(0x1bb),'required':!![],'description':a84_0x95d0e9(0x1b9)},{'name':a84_0x95d0e9(0x1bc),'type':a84_0x95d0e9(0x1bb),'required':!![],'description':a84_0x95d0e9(0x1b3)},{'name':a84_0x95d0e9(0x1d1),'type':a84_0x95d0e9(0x1bb),'description':a84_0x95d0e9(0x1cc)},{'name':'dbdesc','type':a84_0x95d0e9(0x1bb),'description':a84_0x95d0e9(0x1db)},{'name':a84_0x95d0e9(0x1c3),'type':a84_0x95d0e9(0x1af),'description':'After\x20create,\x20start\x20schema\x20analysis','default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x5084ee){const _0x3bb1c5=a84_0x95d0e9,_0x471b9a=_0x5084ee[_0x3bb1c5(0x1b6)](_0x3bb1c5(0x1b0))[_0x3bb1c5(0x1b4)]();if(!validateDbUrl(_0x471b9a))throw CliErrors['validation'](_0x3bb1c5(0x1d3)+_0x471b9a+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0x38f42c){const _0x25d881=a84_0x95d0e9,_0x6d5f52={'appCode':_0x38f42c[_0x25d881(0x1bd)],'dbName':_0x38f42c[_0x25d881(0x1b6)]('dbname'),'dbType':_0x38f42c[_0x25d881(0x1b6)](_0x25d881(0x1cb)),'dbVersion':_0x38f42c[_0x25d881(0x1b6)](_0x25d881(0x1d5))||_0x25d881(0x1c4),'dbUrl':_0x38f42c[_0x25d881(0x1b6)](_0x25d881(0x1b0))[_0x25d881(0x1b4)](),'username':_0x38f42c['str'](_0x25d881(0x1d8)),'password':_0x25d881(0x1c8),..._0x38f42c[_0x25d881(0x1b6)]('dbparam')?{'dbParam':_0x38f42c[_0x25d881(0x1b6)](_0x25d881(0x1d1))}:{},..._0x38f42c['str'](_0x25d881(0x1b7))?{'dbDesc':_0x38f42c['str'](_0x25d881(0x1b7))}:{}};return{'method':_0x25d881(0x1b5),'url':'/smartapi/dblink/create','body':_0x6d5f52,'description':['Create\x20dblink',_0x38f42c[_0x25d881(0x1c9)](_0x25d881(0x1c3))?_0x25d881(0x1ce):_0x25d881(0x1da)][_0x25d881(0x1be)]('\x0a'),'connectionPreflight':{'enabled':!_0x38f42c[_0x25d881(0x1c9)](_0x25d881(0x1d4)),'executed':![]}};},async 'execute'(_0x3895ba){const _0x225c1d=a84_0x95d0e9,_0x209498={'appCode':_0x3895ba['appCode'],'dbName':_0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1b8)),'dbType':_0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1cb)),'dbVersion':_0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1d5))||_0x225c1d(0x1c4),'dbUrl':_0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1b0))[_0x225c1d(0x1b4)](),'username':_0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1d8)),'password':_0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1bc)),..._0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1d1))?{'dbParam':_0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1d1))}:{},..._0x3895ba[_0x225c1d(0x1b6)](_0x225c1d(0x1b7))?{'dbDesc':_0x3895ba['str']('dbdesc')}:{}};!_0x3895ba[_0x225c1d(0x1c9)](_0x225c1d(0x1d4))&&await assertDbLinkConnectionPreflight(_0x209498);const {id:_0x1facdf,entity:_0x4bd0eb}=normalizeEntityWithIdResponse(await createDbLink(_0x209498));if(!_0x1facdf)return{'ok':![],'message':_0x225c1d(0x1ca),'data':sanitizeDbLinkForOutput(_0x4bd0eb)};let _0xe849b,_0x3e73ec;if(_0x3895ba[_0x225c1d(0x1c9)](_0x225c1d(0x1c3)))try{_0xe849b=(await startDbAnalysis(_0x1facdf))[_0x225c1d(0x1d2)];}catch(_0x4f897d){_0x3e73ec=_0x4f897d instanceof Error?_0x4f897d['message']:String(_0x4f897d);}const _0x2299aa=buildDbPageLinks(_0x3895ba['appCode'],_0x1facdf),_0x15ac89={'connection':sanitizeDbLinkForOutput(_0x4bd0eb),..._0x2299aa?{'links':{'databasePage':_0x2299aa[_0x225c1d(0x1d0)]}}:{},..._0xe849b?{'analysisPlanId':_0xe849b}:{},..._0x3e73ec?{'analysisStartWarning':_0x3e73ec}:{}};let _0x4657fe;return _0x3895ba[_0x225c1d(0x1c9)](_0x225c1d(0x1c3))?_0x3e73ec?_0x4657fe='Created\x20db\x20link\x20'+_0x1facdf+_0x225c1d(0x1ac):_0x4657fe=_0x225c1d(0x1bf)+_0x1facdf+_0x225c1d(0x1ae):_0x4657fe='Created\x20db\x20link\x20'+_0x1facdf,{'ok':!![],'data':_0x15ac89,'message':_0x4657fe};}};
@@ -1 +1 @@
1
- function a85_0x5687(){const _0x52af90=['confirm','Expected\x20','45538blXhnG','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','96OygmDO','flag','validation','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','datasets','2120339AAizVM','709242KNJbpt','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','18081tatRmV','datasetDependency','delete','27296rsVfgi','2eLhGip','\x20still\x20has\x20','48uYzNnL','high-risk-write','isInteger','appCode','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','Deleted\x20db\x20link\x20','14CaxemY','488WOQDca','all','number','num','265715fXzMkp','expected-dataset-count','Database\x20connection\x20','POST','77aPCYFd','456770HSgqVi','activeDatasetCount','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','\x20active\x20DB_TABLE\x20Dataset(s).'];a85_0x5687=function(){return _0x52af90;};return a85_0x5687();}function a85_0x29cc(_0x87075,_0x2163fb){_0x87075=_0x87075-0x93;const _0x56879c=a85_0x5687();let _0x29ccd1=_0x56879c[_0x87075];return _0x29ccd1;}const a85_0x35dd4=a85_0x29cc;(function(_0x3a096b,_0x3aa7e2){const _0x10691b=a85_0x29cc,_0x44f9c5=_0x3a096b();while(!![]){try{const _0x5dcb2a=-parseInt(_0x10691b(0xb1))/0x1*(parseInt(_0x10691b(0xa3))/0x2)+parseInt(_0x10691b(0xa5))/0x3*(parseInt(_0x10691b(0xb0))/0x4)+parseInt(_0x10691b(0x97))/0x5+-parseInt(_0x10691b(0xab))/0x6*(parseInt(_0x10691b(0xb9))/0x7)+parseInt(_0x10691b(0x93))/0x8*(-parseInt(_0x10691b(0xad))/0x9)+-parseInt(_0x10691b(0x9c))/0xa*(parseInt(_0x10691b(0x9b))/0xb)+-parseInt(_0x10691b(0xb3))/0xc*(-parseInt(_0x10691b(0xaa))/0xd);if(_0x5dcb2a===_0x3aa7e2)break;else _0x44f9c5['push'](_0x44f9c5['shift']());}catch(_0x1fb5a1){_0x44f9c5['push'](_0x44f9c5['shift']());}}}(a85_0x5687,0x30c03));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';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_0x35dd4(0xa1),'type':'boolean','description':a85_0x35dd4(0xa8)},EXPECTED_DATASET_COUNT_FLAG={'name':'expected-dataset-count','type':a85_0x35dd4(0x95),'description':a85_0x35dd4(0xac)};export const dbDelete={'service':'db','command':a85_0x35dd4(0xaf),'description':'Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','risk':a85_0x35dd4(0xb4),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x166530){const _0x1c3f23=a85_0x35dd4,_0x49aa18=await loadDeleteImpact(_0x166530);return assertExpectedDatasetCount(_0x166530,_0x49aa18[_0x1c3f23(0xae)][_0x1c3f23(0x9d)]),{'method':_0x1c3f23(0x9a),'url':'/smartapi/dblink/delete','body':{'id':_0x49aa18['id']},'description':_0x49aa18[_0x1c3f23(0xae)][_0x1c3f23(0x9d)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0x49aa18['datasetDependency'][_0x1c3f23(0x9d)]+_0x1c3f23(0xa0):'Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.',..._0x49aa18};},async 'execute'(_0x281d18){const _0x48f79e=a85_0x35dd4;if(!_0x281d18['bool'](_0x48f79e(0xa1)))throw CliErrors[_0x48f79e(0xa7)](_0x48f79e(0x9f),'Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.');const _0x4689b5=_0x281d18[_0x48f79e(0x96)]('id'),_0x30387b=await loadDeleteImpact(_0x281d18),_0x43ed29=_0x30387b[_0x48f79e(0xae)][_0x48f79e(0x9d)];assertExpectedDatasetCount(_0x281d18,_0x43ed29);if(_0x43ed29>0x0)throw CliErrors[_0x48f79e(0xa7)](_0x48f79e(0x99)+_0x4689b5+_0x48f79e(0xb2)+_0x43ed29+_0x48f79e(0xa4),'Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.');return await deleteDbLink(_0x4689b5),{'ok':!![],'data':{'id':_0x4689b5,'deleted':!![],'activeDatasetCount':_0x43ed29},'message':_0x48f79e(0xb8)+_0x4689b5};}};async function loadDeleteImpact(_0x56cca1){const _0x18404d=a85_0x35dd4,_0x476e2c=_0x56cca1[_0x18404d(0x96)]('id'),[_0x3c5780,_0x49fed6]=await Promise[_0x18404d(0x94)]([getDbLinkInfo(_0x476e2c),listDatasets(_0x56cca1[_0x18404d(0xb6)],{'source':'DB_TABLE'})]),_0x3708e4=buildDbDatasetDependency(_0x3c5780,_0x49fed6);return{'id':_0x476e2c,'connection':sanitizeDbLinkForOutput(_0x3c5780),'datasetDependency':_0x3708e4[_0x18404d(0xae)],'activeDatasetCount':_0x3708e4['datasetDependency'][_0x18404d(0x9d)],'datasets':_0x3708e4[_0x18404d(0xa9)]};}function assertExpectedDatasetCount(_0x106fdd,_0xcc9ff8){const _0x1a8d22=a85_0x35dd4,_0x11ff8a=_0x106fdd[_0x1a8d22(0xa6)](_0x1a8d22(0x98));if(_0x11ff8a===undefined||_0x11ff8a==='')return;const _0xce9872=_0x106fdd['num'](_0x1a8d22(0x98));if(!Number[_0x1a8d22(0xb5)](_0xce9872)||_0xce9872<0x0)throw CliErrors[_0x1a8d22(0xa7)](_0x1a8d22(0xb7));if(_0xce9872!==_0xcc9ff8)throw CliErrors['validation'](_0x1a8d22(0xa2)+_0xce9872+'\x20active\x20Dataset(s),\x20but\x20found\x20'+_0xcc9ff8+'.',_0x1a8d22(0x9e));}
1
+ const a85_0xb5573b=a85_0x395f;(function(_0x56e658,_0x407bd8){const _0x5b7699=a85_0x395f,_0x40f66e=_0x56e658();while(!![]){try{const _0x5c9b40=-parseInt(_0x5b7699(0x177))/0x1*(parseInt(_0x5b7699(0x18c))/0x2)+-parseInt(_0x5b7699(0x176))/0x3*(parseInt(_0x5b7699(0x178))/0x4)+-parseInt(_0x5b7699(0x17b))/0x5*(parseInt(_0x5b7699(0x18b))/0x6)+parseInt(_0x5b7699(0x175))/0x7*(parseInt(_0x5b7699(0x193))/0x8)+-parseInt(_0x5b7699(0x183))/0x9+-parseInt(_0x5b7699(0x192))/0xa+parseInt(_0x5b7699(0x190))/0xb;if(_0x5c9b40===_0x407bd8)break;else _0x40f66e['push'](_0x40f66e['shift']());}catch(_0x38e85f){_0x40f66e['push'](_0x40f66e['shift']());}}}(a85_0x3374,0x2314e));function a85_0x395f(_0x44553d,_0x38c689){_0x44553d=_0x44553d-0x172;const _0x337497=a85_0x3374();let _0x395f6b=_0x337497[_0x44553d];return _0x395f6b;}import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';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_0xb5573b(0x17c),'type':a85_0xb5573b(0x189),'description':a85_0xb5573b(0x17a)},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':a85_0xb5573b(0x188),'description':a85_0xb5573b(0x196),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x12167e){const _0xb5f6ce=a85_0xb5573b,_0x3044bd=await loadDeleteImpact(_0x12167e);return assertExpectedDatasetCount(_0x12167e,_0x3044bd[_0xb5f6ce(0x17e)]['activeDatasetCount']),{'method':_0xb5f6ce(0x195),'url':_0xb5f6ce(0x184),'body':{'id':_0x3044bd['id']},'description':_0x3044bd[_0xb5f6ce(0x17e)][_0xb5f6ce(0x187)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0x3044bd[_0xb5f6ce(0x17e)][_0xb5f6ce(0x187)]+_0xb5f6ce(0x185):_0xb5f6ce(0x194),..._0x3044bd};},async 'execute'(_0x2d2a5d){const _0x3da04b=a85_0xb5573b;if(!_0x2d2a5d[_0x3da04b(0x174)](_0x3da04b(0x17c)))throw CliErrors[_0x3da04b(0x197)](_0x3da04b(0x17f),'Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.');const _0x2c11c6=_0x2d2a5d[_0x3da04b(0x17d)]('id'),_0x5862b0=await loadDeleteImpact(_0x2d2a5d),_0x54a5a8=_0x5862b0[_0x3da04b(0x17e)][_0x3da04b(0x187)];assertExpectedDatasetCount(_0x2d2a5d,_0x54a5a8);if(_0x54a5a8>0x0)throw CliErrors['validation'](_0x3da04b(0x18d)+_0x2c11c6+'\x20still\x20has\x20'+_0x54a5a8+'\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.');return await deleteDbLink(_0x2c11c6),{'ok':!![],'data':{'id':_0x2c11c6,'deleted':!![],'activeDatasetCount':_0x54a5a8},'message':_0x3da04b(0x191)+_0x2c11c6};}};async function loadDeleteImpact(_0x25040f){const _0x45d546=a85_0xb5573b,_0x5ab100=_0x25040f[_0x45d546(0x17d)]('id'),[_0x3509b4,_0x39e2b7]=await Promise[_0x45d546(0x18e)]([getDbLinkInfo(_0x5ab100),listDatasets(_0x25040f[_0x45d546(0x179)],{'source':_0x45d546(0x173)})]),_0x5153b8=buildDbDatasetDependency(_0x3509b4,_0x39e2b7);return{'id':_0x5ab100,'connection':sanitizeDbLinkForOutput(_0x3509b4),'datasetDependency':_0x5153b8['datasetDependency'],'activeDatasetCount':_0x5153b8['datasetDependency']['activeDatasetCount'],'datasets':_0x5153b8[_0x45d546(0x18f)]};}function assertExpectedDatasetCount(_0x5e278c,_0x50fc87){const _0x196dec=a85_0xb5573b,_0x147b50=_0x5e278c[_0x196dec(0x182)]('expected-dataset-count');if(_0x147b50===undefined||_0x147b50==='')return;const _0x172fe4=_0x5e278c['num'](_0x196dec(0x181));if(!Number[_0x196dec(0x180)](_0x172fe4)||_0x172fe4<0x0)throw CliErrors[_0x196dec(0x197)]('--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.');if(_0x172fe4!==_0x50fc87)throw CliErrors[_0x196dec(0x197)](_0x196dec(0x172)+_0x172fe4+_0x196dec(0x186)+_0x50fc87+'.',_0x196dec(0x18a));}function a85_0x3374(){const _0x1f8c29=['Database\x20connection\x20','all','datasets','6994515vvyvJs','Deleted\x20db\x20link\x20','479590eyweMA','8CRWvWH','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','POST','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','validation','Expected\x20','DB_TABLE','bool','454111XkupiJ','65589YDgbYM','141826PgUkNr','52uKtHhu','appCode','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','170ccMsYX','confirm','num','datasetDependency','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','isInteger','expected-dataset-count','flag','223182CVLIAb','/smartapi/dblink/delete','\x20active\x20DB_TABLE\x20Dataset(s).','\x20active\x20Dataset(s),\x20but\x20found\x20','activeDatasetCount','delete','boolean','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','10278clsrNv','2ALzHxT'];a85_0x3374=function(){return _0x1f8c29;};return a85_0x3374();}
@@ -1 +1 @@
1
- const a86_0x2b37f6=a86_0x4348;(function(_0x24de97,_0x11553f){const _0x4ee67c=a86_0x4348,_0x261c0f=_0x24de97();while(!![]){try{const _0xe85225=parseInt(_0x4ee67c(0x92))/0x1*(-parseInt(_0x4ee67c(0x8c))/0x2)+-parseInt(_0x4ee67c(0x8b))/0x3+-parseInt(_0x4ee67c(0x8d))/0x4*(-parseInt(_0x4ee67c(0x95))/0x5)+parseInt(_0x4ee67c(0x90))/0x6*(parseInt(_0x4ee67c(0x99))/0x7)+parseInt(_0x4ee67c(0x97))/0x8*(-parseInt(_0x4ee67c(0x98))/0x9)+-parseInt(_0x4ee67c(0x91))/0xa+parseInt(_0x4ee67c(0x8e))/0xb;if(_0xe85225===_0x11553f)break;else _0x261c0f['push'](_0x261c0f['shift']());}catch(_0x24fc26){_0x261c0f['push'](_0x261c0f['shift']());}}}(a86_0x24c2,0x5245d));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a86_0x24c2(){const _0x641709=['dbName','1806969tTlAvR','107218TWWQKB','2294548lHpAaB','5962847kBEWsK','db\x20link\x20','42YrljFJ','1171300GFYOUz','2fCSKrH','num','datasetDependency','5EXBipl','DB_TABLE','8JpACwm','1779093HzenRB','245623eRzqAm','appCode','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)'];a86_0x24c2=function(){return _0x641709;};return a86_0x24c2();}function a86_0x4348(_0x3b6252,_0x38ce4e){_0x3b6252=_0x3b6252-0x8b;const _0x24c27b=a86_0x24c2();let _0x434830=_0x24c27b[_0x3b6252];return _0x434830;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a86_0x2b37f6(0x9b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5d957e){const _0x2b033a=a86_0x2b37f6,_0x2ea0ed=_0x5d957e[_0x2b033a(0x93)]('id'),_0x3e39bb=await getDbLinkInfo(_0x2ea0ed),_0x1a43d9=await listDatasets(_0x3e39bb[_0x2b033a(0x9a)]||_0x5d957e['appCode'],{'source':_0x2b033a(0x96)}),_0x1c585e=buildDbDatasetDependency(_0x3e39bb,_0x1a43d9);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x3e39bb),'datasetDependency':_0x1c585e[_0x2b033a(0x94)]},'message':_0x2b033a(0x8f)+_0x2ea0ed+':\x20'+_0x3e39bb[_0x2b033a(0x9c)]};}};
1
+ const a86_0x45ccb3=a86_0xaeb8;(function(_0x3593a5,_0x1e4cb8){const _0x3129a7=a86_0xaeb8,_0x4edcbe=_0x3593a5();while(!![]){try{const _0x28c4a9=-parseInt(_0x3129a7(0x119))/0x1*(-parseInt(_0x3129a7(0x115))/0x2)+parseInt(_0x3129a7(0x112))/0x3+-parseInt(_0x3129a7(0x10e))/0x4*(parseInt(_0x3129a7(0x10a))/0x5)+-parseInt(_0x3129a7(0x114))/0x6*(-parseInt(_0x3129a7(0x116))/0x7)+-parseInt(_0x3129a7(0x10f))/0x8*(parseInt(_0x3129a7(0x10c))/0x9)+-parseInt(_0x3129a7(0x118))/0xa*(parseInt(_0x3129a7(0x117))/0xb)+parseInt(_0x3129a7(0x113))/0xc;if(_0x28c4a9===_0x1e4cb8)break;else _0x4edcbe['push'](_0x4edcbe['shift']());}catch(_0xedd444){_0x4edcbe['push'](_0x4edcbe['shift']());}}}(a86_0x245b,0xa1a72));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a86_0xaeb8(_0x7499ed,_0x1c2bb5){_0x7499ed=_0x7499ed-0x10a;const _0x245bf2=a86_0x245b();let _0xaeb81=_0x245bf2[_0x7499ed];return _0xaeb81;}function a86_0x245b(){const _0x202998=['1126330cJvbac','35OxSeES','65912wkYnBq','1570OOoABV','2NZurnF','802805rwDQZx','db\x20link\x20','963FxmQfl','appCode','20zQdwpM','74216xjjiux','detail','datasetDependency','1184262SGPpdL','21527388hRUoYc','99942Ffcdqu'];a86_0x245b=function(){return _0x202998;};return a86_0x245b();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a86_0x45ccb3(0x110),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x13118d){const _0x1b8432=a86_0x45ccb3,_0x547430=_0x13118d['num']('id'),_0x4affe1=await getDbLinkInfo(_0x547430),_0x5039d8=await listDatasets(_0x4affe1[_0x1b8432(0x10d)]||_0x13118d[_0x1b8432(0x10d)],{'source':'DB_TABLE'}),_0x37319e=buildDbDatasetDependency(_0x4affe1,_0x5039d8);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x4affe1),'datasetDependency':_0x37319e[_0x1b8432(0x111)]},'message':_0x1b8432(0x10b)+_0x547430+':\x20'+_0x4affe1['dbName']};}};
@@ -1 +1 @@
1
- const a87_0x2fdc4d=a87_0x2c78;(function(_0x246ccc,_0x5b1182){const _0x5b8fb8=a87_0x2c78,_0x1c6fa4=_0x246ccc();while(!![]){try{const _0x393f2a=parseInt(_0x5b8fb8(0x196))/0x1+-parseInt(_0x5b8fb8(0x19a))/0x2*(-parseInt(_0x5b8fb8(0x19c))/0x3)+-parseInt(_0x5b8fb8(0x1a0))/0x4*(parseInt(_0x5b8fb8(0x193))/0x5)+parseInt(_0x5b8fb8(0x18f))/0x6+-parseInt(_0x5b8fb8(0x19d))/0x7+-parseInt(_0x5b8fb8(0x190))/0x8+-parseInt(_0x5b8fb8(0x191))/0x9*(-parseInt(_0x5b8fb8(0x198))/0xa);if(_0x393f2a===_0x5b1182)break;else _0x1c6fa4['push'](_0x1c6fa4['shift']());}catch(_0x318555){_0x1c6fa4['push'](_0x1c6fa4['shift']());}}}(a87_0x594b,0x4ec25));import{startDbTableDiffRefresh}from'../../core/api-client.js';function a87_0x594b(){const _0x13ee01=['num','227554tRkzlB','status','20kkvDCh','write','8qDtPxg','\x20--plan\x20','210351qLvfGk','3276728sQkHcO','trim','traceId','4rAVKVt','1079616cacqId','27624yssHyK','927495PKcpVQ','appCode','499570LKBhvK','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result'];a87_0x594b=function(){return _0x13ee01;};return a87_0x594b();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a87_0x2c78(_0x236d0c,_0x50a241){_0x236d0c=_0x236d0c-0x18f;const _0x594b91=a87_0x594b();let _0x2c78a6=_0x594b91[_0x236d0c];return _0x2c78a6;}export const dbDiffRefreshStart={'service':'db','command':'diff-refresh-start','description':a87_0x2fdc4d(0x194),'risk':a87_0x2fdc4d(0x199),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x35ffd1){const _0x4e4b7c=a87_0x2fdc4d,_0xceb310=_0x35ffd1[_0x4e4b7c(0x195)]('id'),_0x36fcee=await startDbTableDiffRefresh(_0x35ffd1[_0x4e4b7c(0x192)],_0xceb310),_0x2da87f=_0x36fcee[_0x4e4b7c(0x19f)]?.[_0x4e4b7c(0x19e)]();if(!_0x2da87f)throw CliErrors['validation']('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0xceb310,'traceId':_0x2da87f,'status':_0x36fcee[_0x4e4b7c(0x197)]??null,'query':{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0xceb310+_0x4e4b7c(0x19b)+_0x2da87f+'\x20--format\x20compress'}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0xceb310};}};
1
+ const a87_0x384d75=a87_0x562a;(function(_0x321dc1,_0x1bdeee){const _0xb119ec=a87_0x562a,_0x397a6e=_0x321dc1();while(!![]){try{const _0x4d0132=-parseInt(_0xb119ec(0x1db))/0x1+-parseInt(_0xb119ec(0x1e2))/0x2*(-parseInt(_0xb119ec(0x1d4))/0x3)+-parseInt(_0xb119ec(0x1df))/0x4*(-parseInt(_0xb119ec(0x1d9))/0x5)+-parseInt(_0xb119ec(0x1dc))/0x6+-parseInt(_0xb119ec(0x1d6))/0x7+parseInt(_0xb119ec(0x1e4))/0x8*(-parseInt(_0xb119ec(0x1d2))/0x9)+parseInt(_0xb119ec(0x1dd))/0xa;if(_0x4d0132===_0x1bdeee)break;else _0x397a6e['push'](_0x397a6e['shift']());}catch(_0x3bbfdc){_0x397a6e['push'](_0x397a6e['shift']());}}}(a87_0x4033,0x49240));import{startDbTableDiffRefresh}from'../../core/api-client.js';function a87_0x562a(_0xec6a7,_0x580a1c){_0xec6a7=_0xec6a7-0x1cf;const _0x4033b2=a87_0x4033();let _0x562a19=_0x4033b2[_0xec6a7];return _0x562a19;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a87_0x4033(){const _0x5485a9=['1962582oIbxrP','8598450jByFyL','status','4YFcNTj','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','appCode','41392ZEyiTk','write','205696yJFNPH','\x20--plan\x20','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','9gNlyPy','trim','48dLKVhm','num','3068982IxVDDR','\x20--format\x20compress','traceId','1047190AEOgfJ','diff-refresh-start','309600YRFIvm'];a87_0x4033=function(){return _0x5485a9;};return a87_0x4033();}export const dbDiffRefreshStart={'service':'db','command':a87_0x384d75(0x1da),'description':a87_0x384d75(0x1e0),'risk':a87_0x384d75(0x1e3),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x3c2b1d){const _0x25d7a6=a87_0x384d75,_0x54480d=_0x3c2b1d[_0x25d7a6(0x1d5)]('id'),_0x4080cf=await startDbTableDiffRefresh(_0x3c2b1d[_0x25d7a6(0x1e1)],_0x54480d),_0x1c1205=_0x4080cf[_0x25d7a6(0x1d8)]?.[_0x25d7a6(0x1d3)]();if(!_0x1c1205)throw CliErrors['validation'](_0x25d7a6(0x1d0));return{'ok':!![],'data':{'dbLinkId':_0x54480d,'traceId':_0x1c1205,'status':_0x4080cf[_0x25d7a6(0x1de)]??null,'query':{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x54480d+_0x25d7a6(0x1cf)+_0x1c1205+_0x25d7a6(0x1d7)}},'message':_0x25d7a6(0x1d1)+_0x54480d};}};
@@ -1 +1 @@
1
- const a88_0x53e137=a88_0x172a;(function(_0x3493eb,_0x3c1259){const _0x4c457f=a88_0x172a,_0x169479=_0x3493eb();while(!![]){try{const _0x50db02=-parseInt(_0x4c457f(0x14d))/0x1*(parseInt(_0x4c457f(0x148))/0x2)+-parseInt(_0x4c457f(0x14f))/0x3+parseInt(_0x4c457f(0x143))/0x4*(-parseInt(_0x4c457f(0x154))/0x5)+-parseInt(_0x4c457f(0x149))/0x6*(-parseInt(_0x4c457f(0x151))/0x7)+parseInt(_0x4c457f(0x14c))/0x8*(-parseInt(_0x4c457f(0x139))/0x9)+-parseInt(_0x4c457f(0x14e))/0xa*(-parseInt(_0x4c457f(0x13e))/0xb)+-parseInt(_0x4c457f(0x147))/0xc*(-parseInt(_0x4c457f(0x140))/0xd);if(_0x50db02===_0x3c1259)break;else _0x169479['push'](_0x169479['shift']());}catch(_0x5a8f95){_0x169479['push'](_0x169479['shift']());}}}(a88_0x434d,0x2b517));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a88_0x172a(_0x4ab24a,_0x1e95f4){_0x4ab24a=_0x4ab24a-0x137;const _0x434dfe=a88_0x434d();let _0x172a99=_0x434dfe[_0x4ab24a];return _0x172a99;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a88_0x434d(){const _0x3d4c80=['22CkOXhn','1172800ZWejQs','400959tZyAkK','str','158599NDrQUq','\x20--format\x20compress','diff-refresh-status','16735dAzbAQ','has','read','228834vQQnXl','Table-diff\x20refresh\x20status\x20for\x20','RUNNING','CANCELLED','SUCCESS','22xhNguv','\x20--plan\x20','13buKEPC','num','PENDING','268qOTgrh','status','plan','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','5673636GfCxoI','25686gDPIoz','36pULzIy','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','UNKNOWN','8WgUMke'];a88_0x434d=function(){return _0x3d4c80;};return a88_0x434d();}const TERMINAL_STATUSES=new Set([a88_0x53e137(0x13d),'FAILED',a88_0x53e137(0x13c)]),RUNNING_STATUSES=new Set([a88_0x53e137(0x142),a88_0x53e137(0x13b),'RETRYING']);export const dbDiffRefreshStatus={'service':'db','command':a88_0x53e137(0x153),'description':a88_0x53e137(0x146),'risk':a88_0x53e137(0x138),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x53e137(0x145),'type':'string','required':!![],'description':a88_0x53e137(0x14a)}],async 'execute'(_0x5493d1){const _0x115863=a88_0x53e137,_0x55f200=_0x5493d1[_0x115863(0x141)]('id'),_0xf7e79e=_0x5493d1[_0x115863(0x150)](_0x115863(0x145)),_0x27cd47=await getDbAnalysisStatus(_0xf7e79e),_0x1e8fe6=_0x27cd47[_0x115863(0x144)]??null,_0x5f0c00=TERMINAL_STATUSES[_0x115863(0x137)](_0x1e8fe6??''),_0x53ef45=_0x1e8fe6===_0x115863(0x13d),_0x442151=_0x5f0c00||RUNNING_STATUSES['has'](_0x1e8fe6??'');return{'ok':!![],'data':{'dbLinkId':_0x55f200,'planId':_0xf7e79e,'status':_0x27cd47,'knownStatus':_0x442151,'isTerminal':_0x5f0c00,'isSuccessful':_0x53ef45,'query':_0x442151&&!_0x5f0c00?{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x55f200+_0x115863(0x13f)+_0xf7e79e+_0x115863(0x152)}:null},'message':_0x115863(0x13a)+_0xf7e79e+':\x20'+(_0x1e8fe6??_0x115863(0x14b))};}};
1
+ const a88_0x2c0a21=a88_0x3d80;(function(_0xa95dfc,_0x5da571){const _0x4fa8af=a88_0x3d80,_0x1b7422=_0xa95dfc();while(!![]){try{const _0x4804fb=parseInt(_0x4fa8af(0x127))/0x1*(parseInt(_0x4fa8af(0x11f))/0x2)+parseInt(_0x4fa8af(0x126))/0x3*(-parseInt(_0x4fa8af(0x136))/0x4)+parseInt(_0x4fa8af(0x124))/0x5+-parseInt(_0x4fa8af(0x12b))/0x6+-parseInt(_0x4fa8af(0x12a))/0x7*(-parseInt(_0x4fa8af(0x122))/0x8)+-parseInt(_0x4fa8af(0x123))/0x9+parseInt(_0x4fa8af(0x130))/0xa*(-parseInt(_0x4fa8af(0x139))/0xb);if(_0x4804fb===_0x5da571)break;else _0x1b7422['push'](_0x1b7422['shift']());}catch(_0x10d8f0){_0x1b7422['push'](_0x1b7422['shift']());}}}(a88_0x550b,0x6c316));import{getDbAnalysisStatus}from'../../core/api-client.js';function a88_0x3d80(_0x9866bb,_0x1bf3ba){_0x9866bb=_0x9866bb-0x11f;const _0x550b4f=a88_0x550b();let _0x3d8062=_0x550b4f[_0x9866bb];return _0x3d8062;}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(['SUCCESS','FAILED','CANCELLED']),RUNNING_STATUSES=new Set([a88_0x2c0a21(0x137),'RUNNING',a88_0x2c0a21(0x12d)]);function a88_0x550b(){const _0x29e070=['has','RETRYING','string','\x20--plan\x20','9610gKHrFK','diff-refresh-status','status','str','Table-diff\x20refresh\x20status\x20for\x20','SUCCESS','4YbfIVn','PENDING','\x20db\x20diff-refresh-status\x20--id\x20','4631hDAeJt','609012TBGbaT','read','plan','664qWgntl','6591231TKYDKI','3805130mrWoYW','UNKNOWN','262110zWkSws','2RMijUA','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','num','61068hlvOsy','2559972oDTFLS'];a88_0x550b=function(){return _0x29e070;};return a88_0x550b();}export const dbDiffRefreshStatus={'service':'db','command':a88_0x2c0a21(0x131),'description':a88_0x2c0a21(0x128),'risk':a88_0x2c0a21(0x120),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x2c0a21(0x121),'type':a88_0x2c0a21(0x12e),'required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x57a090){const _0x2a043f=a88_0x2c0a21,_0x446811=_0x57a090[_0x2a043f(0x129)]('id'),_0x5532d9=_0x57a090[_0x2a043f(0x133)](_0x2a043f(0x121)),_0x3d94db=await getDbAnalysisStatus(_0x5532d9),_0x38f39f=_0x3d94db[_0x2a043f(0x132)]??null,_0x1deedb=TERMINAL_STATUSES[_0x2a043f(0x12c)](_0x38f39f??''),_0x54eee2=_0x38f39f===_0x2a043f(0x135),_0x175587=_0x1deedb||RUNNING_STATUSES[_0x2a043f(0x12c)](_0x38f39f??'');return{'ok':!![],'data':{'dbLinkId':_0x446811,'planId':_0x5532d9,'status':_0x3d94db,'knownStatus':_0x175587,'isTerminal':_0x1deedb,'isSuccessful':_0x54eee2,'query':_0x175587&&!_0x1deedb?{'command':CLI_BIN_NAME+_0x2a043f(0x138)+_0x446811+_0x2a043f(0x12f)+_0x5532d9+'\x20--format\x20compress'}:null},'message':_0x2a043f(0x134)+_0x5532d9+':\x20'+(_0x38f39f??_0x2a043f(0x125))};}};
@@ -1 +1 @@
1
- const a89_0x434e47=a89_0x39b9;function a89_0x34a8(){const _0x18dda2=['string','deletedColumns','page','filter','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','49000xTECcy','modifiedColumns','MODIFIED_TABLE','diffType','1090722KDXPvw','read','datasetTableCount','all','num','map','1fIntNz','Page\x20index\x20(1-based)','917820VGGnnv','531PMAxVG','40698ytfjNR','tableList','table','summary','physicalTableCount','bool','tableName','\x20changed\x20table\x20row(s),\x20total\x20','length','number','Page\x20size','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','DELETED_TABLE','fieldDiff','NEW_TABLE','13178oVhhyA','255mKesys','4956294ClLuPQ','969078jAijEI','appCode','addedColumns','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','totalCount','1530sUOIsD','diff'];a89_0x34a8=function(){return _0x18dda2;};return a89_0x34a8();}function a89_0x39b9(_0x105a6c,_0x21986a){_0x105a6c=_0x105a6c-0x10d;const _0x34a89c=a89_0x34a8();let _0x39b987=_0x34a89c[_0x105a6c];return _0x39b987;}(function(_0x151074,_0x1ff520){const _0x41a70c=a89_0x39b9,_0x28e74a=_0x151074();while(!![]){try{const _0x56e733=parseInt(_0x41a70c(0x11c))/0x1*(parseInt(_0x41a70c(0x116))/0x2)+parseInt(_0x41a70c(0x132))/0x3+parseInt(_0x41a70c(0x11e))/0x4+-parseInt(_0x41a70c(0x130))/0x5*(parseInt(_0x41a70c(0x120))/0x6)+-parseInt(_0x41a70c(0x131))/0x7+parseInt(_0x41a70c(0x112))/0x8*(parseInt(_0x41a70c(0x11f))/0x9)+-parseInt(_0x41a70c(0x137))/0xa*(-parseInt(_0x41a70c(0x12f))/0xb);if(_0x56e733===_0x1ff520)break;else _0x28e74a['push'](_0x28e74a['shift']());}catch(_0x3bc44d){_0x28e74a['push'](_0x28e74a['shift']());}}}(a89_0x34a8,0x8faf8));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_0x434e47(0x138),'description':a89_0x434e47(0x12b),'risk':a89_0x434e47(0x117),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a89_0x434e47(0x122),'type':a89_0x434e47(0x10d),'description':a89_0x434e47(0x135)},{'name':a89_0x434e47(0x10f),'type':a89_0x434e47(0x129),'description':a89_0x434e47(0x11d),'default':0x1},{'name':'pagesize','type':'number','description':a89_0x434e47(0x12a),'default':0x14},{'name':a89_0x434e47(0x119),'type':'boolean','description':a89_0x434e47(0x111)}],async 'execute'(_0x24f22b){const _0x4adce4=a89_0x434e47,_0xebec5c=_0x24f22b[_0x4adce4(0x11a)]('id'),_0x2ca509=_0x24f22b[_0x4adce4(0x125)](_0x4adce4(0x119)),_0x3879ef=_0x2ca509?0x1:_0x24f22b[_0x4adce4(0x11a)](_0x4adce4(0x10f),0x1)||0x1,_0x2734f8=_0x2ca509?DB_TABLE_PAGE_SIZE:_0x24f22b['num']('pagesize',0x14)||0x14,_0x295248=_0x24f22b['str']('table')||undefined,_0x12356f=_0x2ca509?await getAllDbTableDiff(getDbTableDiff,_0x24f22b[_0x4adce4(0x133)],_0xebec5c,_0x295248):await getDbTableDiff(_0x24f22b[_0x4adce4(0x133)],_0xebec5c,{'pageIndex':_0x3879ef,'pageSize':_0x2734f8,'tableName':_0x295248}),_0x52f497=_0x12356f[_0x4adce4(0x121)],_0x2999a2=summarizeDbTableDiff(_0x52f497),_0x330d8c=_0x52f497[_0x4adce4(0x110)](_0x1207c5=>_0x1207c5[_0x4adce4(0x115)]===_0x4adce4(0x12e)||_0x1207c5['diffType']===_0x4adce4(0x114))[_0x4adce4(0x11b)](_0x42d1b1=>_0x42d1b1[_0x4adce4(0x126)]),_0x2cf8c6=_0x52f497[_0x4adce4(0x110)](_0x6bbbd7=>_0x6bbbd7[_0x4adce4(0x115)]===_0x4adce4(0x12c))['map'](_0x55fe40=>_0x55fe40[_0x4adce4(0x126)]),_0x527fd1=_0x52f497['filter'](_0x259d47=>_0x259d47['diffType']===_0x4adce4(0x114))['map'](_0xbe527f=>({'tableName':_0xbe527f[_0x4adce4(0x126)],'addedColumns':_0xbe527f[_0x4adce4(0x12d)]?.[_0x4adce4(0x134)]??[],'deletedColumns':_0xbe527f[_0x4adce4(0x12d)]?.[_0x4adce4(0x10e)]??[],'modifiedColumns':_0xbe527f['fieldDiff']?.[_0x4adce4(0x113)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0xebec5c,'page':_0x3879ef,'pageSize':_0x2734f8,'totalCount':_0x12356f[_0x4adce4(0x136)],...typeof _0x12356f['physicalTableCount']===_0x4adce4(0x129)?{'physicalTableCount':_0x12356f[_0x4adce4(0x124)]}:{},...typeof _0x12356f[_0x4adce4(0x118)]===_0x4adce4(0x129)?{'datasetTableCount':_0x12356f[_0x4adce4(0x118)]}:{},..._0x12356f['summary']?{'summary':_0x12356f[_0x4adce4(0x123)]}:{},'summaryByType':_0x2999a2,'toAnalyzeTables':_0x330d8c,'deletedTables':_0x2cf8c6,'modifiedFieldDiffs':_0x527fd1,'tables':_0x52f497},'message':_0x52f497[_0x4adce4(0x128)]+_0x4adce4(0x127)+_0x12356f[_0x4adce4(0x136)]+'\x20(db\x20link\x20'+_0xebec5c+')'};}};
1
+ function a89_0x1877(_0x230059,_0x56f7ec){_0x230059=_0x230059-0xd9;const _0x28da3a=a89_0x28da();let _0x1877ea=_0x28da3a[_0x230059];return _0x1877ea;}const a89_0x6c3e04=a89_0x1877;(function(_0x40dbcf,_0x1219c7){const _0x4cd745=a89_0x1877,_0x48955d=_0x40dbcf();while(!![]){try{const _0x528187=-parseInt(_0x4cd745(0xda))/0x1+parseInt(_0x4cd745(0xee))/0x2+-parseInt(_0x4cd745(0xf6))/0x3+-parseInt(_0x4cd745(0xe2))/0x4*(parseInt(_0x4cd745(0xf3))/0x5)+-parseInt(_0x4cd745(0xf4))/0x6+-parseInt(_0x4cd745(0xfa))/0x7*(-parseInt(_0x4cd745(0xef))/0x8)+parseInt(_0x4cd745(0xe6))/0x9;if(_0x528187===_0x1219c7)break;else _0x48955d['push'](_0x48955d['shift']());}catch(_0x388d2f){_0x48955d['push'](_0x48955d['shift']());}}}(a89_0x28da,0xa9f9f));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';function a89_0x28da(){const _0x443261=['MODIFIED_TABLE','tableName','totalCount','2326390Evnafi','2949042TXwgdh','diffType','3324540xnPkpv','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','modifiedColumns','appCode','7CCXupU','DELETED_TABLE','boolean','1307080zwEjrr','table','filter','physicalTableCount','NEW_TABLE','datasetTableCount','bool','deletedColumns','4UjiawB','addedColumns','fieldDiff','pagesize','29530242IhWKYy','page','num','\x20changed\x20table\x20row(s),\x20total\x20','read','map','number','summary','943886OcRZtc','2521496kUwAIo'];a89_0x28da=function(){return _0x443261;};return a89_0x28da();}export const dbDiff={'service':'db','command':'diff','description':'Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','risk':a89_0x6c3e04(0xea),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a89_0x6c3e04(0xdb),'type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a89_0x6c3e04(0xe7),'type':a89_0x6c3e04(0xec),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a89_0x6c3e04(0xe5),'type':a89_0x6c3e04(0xec),'description':'Page\x20size','default':0x14},{'name':'all','type':a89_0x6c3e04(0xd9),'description':a89_0x6c3e04(0xf7)}],async 'execute'(_0x54ac15){const _0x43c41e=a89_0x6c3e04,_0x5534b2=_0x54ac15[_0x43c41e(0xe8)]('id'),_0x31d38b=_0x54ac15[_0x43c41e(0xe0)]('all'),_0x352923=_0x31d38b?0x1:_0x54ac15[_0x43c41e(0xe8)](_0x43c41e(0xe7),0x1)||0x1,_0x1b222d=_0x31d38b?DB_TABLE_PAGE_SIZE:_0x54ac15['num'](_0x43c41e(0xe5),0x14)||0x14,_0x49e259=_0x54ac15['str']('table')||undefined,_0x29aea1=_0x31d38b?await getAllDbTableDiff(getDbTableDiff,_0x54ac15[_0x43c41e(0xf9)],_0x5534b2,_0x49e259):await getDbTableDiff(_0x54ac15[_0x43c41e(0xf9)],_0x5534b2,{'pageIndex':_0x352923,'pageSize':_0x1b222d,'tableName':_0x49e259}),_0x51f9ae=_0x29aea1['tableList'],_0x3e5341=summarizeDbTableDiff(_0x51f9ae),_0x169a03=_0x51f9ae[_0x43c41e(0xdc)](_0x2095a8=>_0x2095a8[_0x43c41e(0xf5)]===_0x43c41e(0xde)||_0x2095a8[_0x43c41e(0xf5)]==='MODIFIED_TABLE')[_0x43c41e(0xeb)](_0x444beb=>_0x444beb[_0x43c41e(0xf1)]),_0x2a66ba=_0x51f9ae[_0x43c41e(0xdc)](_0x5ee723=>_0x5ee723[_0x43c41e(0xf5)]===_0x43c41e(0xfb))[_0x43c41e(0xeb)](_0x3ef283=>_0x3ef283[_0x43c41e(0xf1)]),_0x19cbcc=_0x51f9ae[_0x43c41e(0xdc)](_0x3c47c9=>_0x3c47c9[_0x43c41e(0xf5)]===_0x43c41e(0xf0))['map'](_0x3efc7f=>({'tableName':_0x3efc7f[_0x43c41e(0xf1)],'addedColumns':_0x3efc7f[_0x43c41e(0xe4)]?.[_0x43c41e(0xe3)]??[],'deletedColumns':_0x3efc7f[_0x43c41e(0xe4)]?.[_0x43c41e(0xe1)]??[],'modifiedColumns':_0x3efc7f[_0x43c41e(0xe4)]?.[_0x43c41e(0xf8)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x5534b2,'page':_0x352923,'pageSize':_0x1b222d,'totalCount':_0x29aea1[_0x43c41e(0xf2)],...typeof _0x29aea1[_0x43c41e(0xdd)]===_0x43c41e(0xec)?{'physicalTableCount':_0x29aea1['physicalTableCount']}:{},...typeof _0x29aea1['datasetTableCount']==='number'?{'datasetTableCount':_0x29aea1[_0x43c41e(0xdf)]}:{},..._0x29aea1[_0x43c41e(0xed)]?{'summary':_0x29aea1[_0x43c41e(0xed)]}:{},'summaryByType':_0x3e5341,'toAnalyzeTables':_0x169a03,'deletedTables':_0x2a66ba,'modifiedFieldDiffs':_0x19cbcc,'tables':_0x51f9ae},'message':_0x51f9ae['length']+_0x43c41e(0xe9)+_0x29aea1[_0x43c41e(0xf2)]+'\x20(db\x20link\x20'+_0x5534b2+')'};}};
@@ -1 +1 @@
1
- (function(_0x3cfca2,_0x50a357){const _0x43589e=a90_0x4a5e,_0x1aa71c=_0x3cfca2();while(!![]){try{const _0x50aa99=parseInt(_0x43589e(0xe4))/0x1+parseInt(_0x43589e(0xe7))/0x2+parseInt(_0x43589e(0xe3))/0x3+-parseInt(_0x43589e(0xe9))/0x4+parseInt(_0x43589e(0xe8))/0x5*(-parseInt(_0x43589e(0xe5))/0x6)+parseInt(_0x43589e(0xe2))/0x7+-parseInt(_0x43589e(0xe6))/0x8*(parseInt(_0x43589e(0xe1))/0x9);if(_0x50aa99===_0x50a357)break;else _0x1aa71c['push'](_0x1aa71c['shift']());}catch(_0x276359){_0x1aa71c['push'](_0x1aa71c['shift']());}}}(a90_0x157e,0x41d59));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';function a90_0x4a5e(_0x479417,_0x4b652e){_0x479417=_0x479417-0xe1;const _0x157ec2=a90_0x157e();let _0x4a5eee=_0x157ec2[_0x479417];return _0x4a5eee;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';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';function a90_0x157e(){const _0x225012=['1139605FrPzYD','690304AwcoAY','18bWBuNV','1713810dbKMut','245334tgqNMO','223226jLKHbM','6fLWDOr','952888HYGNEA','717084ppicqs'];a90_0x157e=function(){return _0x225012;};return a90_0x157e();}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
1
+ function a90_0x2554(){const _0xd84ce2=['3446632GEYUmn','221510MazqKs','395634bcMQKj','1350292BRKroT','189gAuINm','7SaRsuB','59351dkYtus','806496CkcYTs','1867865vWWCXf','6IRLxOW'];a90_0x2554=function(){return _0xd84ce2;};return a90_0x2554();}(function(_0x2bdcf3,_0x306eb7){const _0x53dad0=a90_0x6129,_0x49b117=_0x2bdcf3();while(!![]){try{const _0x202116=-parseInt(_0x53dad0(0x9c))/0x1*(parseInt(_0x53dad0(0x95))/0x2)+-parseInt(_0x53dad0(0x98))/0x3+parseInt(_0x53dad0(0x99))/0x4+parseInt(_0x53dad0(0x94))/0x5+-parseInt(_0x53dad0(0x93))/0x6+parseInt(_0x53dad0(0x9b))/0x7*(parseInt(_0x53dad0(0x96))/0x8)+-parseInt(_0x53dad0(0x9a))/0x9*(parseInt(_0x53dad0(0x97))/0xa);if(_0x202116===_0x306eb7)break;else _0x49b117['push'](_0x49b117['shift']());}catch(_0x832896){_0x49b117['push'](_0x49b117['shift']());}}}(a90_0x2554,0x38c09));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';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';function a90_0x6129(_0xed2eb7,_0x3d812e){_0xed2eb7=_0xed2eb7-0x93;const _0x2554bb=a90_0x2554();let _0x6129f8=_0x2554bb[_0xed2eb7];return _0x6129f8;}export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a91_0x56ae5c=a91_0x5f07;function a91_0x2453(){const _0x1dd9c5=['91cERrco','Found\x20','85888ZDbLZg','111034bvMHgb','number','1414955VoUgDt','length','\x20database\x20connection(s)','7LFbEXx','page','read','all','Page\x20size','num','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','appCode','pagesize','4SalQJU','6131637XReYdD','9928806VMhVbe','10UpMWIu','5319840uHDQlA','14192860NQkRHd','Page\x20index\x20(1-based)','DB_TABLE'];a91_0x2453=function(){return _0x1dd9c5;};return a91_0x2453();}(function(_0xd9fac9,_0x5bc97b){const _0x328bb3=a91_0x5f07,_0x266774=_0xd9fac9();while(!![]){try{const _0x17fe27=parseInt(_0x328bb3(0xd2))/0x1*(-parseInt(_0x328bb3(0xcd))/0x2)+parseInt(_0x328bb3(0xdf))/0x3+-parseInt(_0x328bb3(0xdb))/0x4*(parseInt(_0x328bb3(0xcf))/0x5)+parseInt(_0x328bb3(0xdd))/0x6+-parseInt(_0x328bb3(0xca))/0x7*(-parseInt(_0x328bb3(0xcc))/0x8)+-parseInt(_0x328bb3(0xdc))/0x9*(parseInt(_0x328bb3(0xde))/0xa)+-parseInt(_0x328bb3(0xe0))/0xb;if(_0x17fe27===_0x5bc97b)break;else _0x266774['push'](_0x266774['shift']());}catch(_0x41eade){_0x266774['push'](_0x266774['shift']());}}}(a91_0x2453,0xe1b46));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_0x5f07(_0x3cadf0,_0x4e9fb6){_0x3cadf0=_0x3cadf0-0xc9;const _0x245359=a91_0x2453();let _0x5f07ad=_0x245359[_0x3cadf0];return _0x5f07ad;}export const dbList={'service':'db','command':'list','description':a91_0x56ae5c(0xd8),'risk':a91_0x56ae5c(0xd4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a91_0x56ae5c(0xd3),'type':a91_0x56ae5c(0xce),'description':a91_0x56ae5c(0xe1),'default':0x1},{'name':a91_0x56ae5c(0xda),'type':'number','description':a91_0x56ae5c(0xd6),'default':0x64}],async 'execute'(_0x22c55a){const _0x5b9ce4=a91_0x56ae5c,_0x5d7aa6=_0x22c55a['num'](_0x5b9ce4(0xd3),0x1)||0x1,_0x91f72a=_0x22c55a[_0x5b9ce4(0xd7)](_0x5b9ce4(0xda),0x64)||0x64,[{items:_0x429ce3,paging:_0x51421f},_0x160d3d]=await Promise[_0x5b9ce4(0xd5)]([listDbLinks(_0x22c55a[_0x5b9ce4(0xd9)],{'currentPage':_0x5d7aa6,'pageSize':_0x91f72a}),listDatasets(_0x22c55a[_0x5b9ce4(0xd9)],{'source':_0x5b9ce4(0xc9)})]),_0x5798c2=_0x429ce3['map'](_0x23176e=>({...sanitizeDbLinkForOutput(_0x23176e),'datasetDependency':buildDbDatasetDependency(_0x23176e,_0x160d3d)['datasetDependency']})),_0x127184=_0x51421f?_0x51421f:{'currentPage':_0x5d7aa6,'pageSize':_0x91f72a,'rowsOnPage':_0x5798c2[_0x5b9ce4(0xd0)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x5798c2,'paging':_0x127184},'message':_0x5b9ce4(0xcb)+_0x5798c2[_0x5b9ce4(0xd0)]+_0x5b9ce4(0xd1)};}};
1
+ const a91_0x40af47=a91_0x36c4;(function(_0x350292,_0x379879){const _0x3adf7f=a91_0x36c4,_0x41e25f=_0x350292();while(!![]){try{const _0x2480ea=parseInt(_0x3adf7f(0x115))/0x1*(-parseInt(_0x3adf7f(0x107))/0x2)+-parseInt(_0x3adf7f(0x102))/0x3*(-parseInt(_0x3adf7f(0x113))/0x4)+parseInt(_0x3adf7f(0x104))/0x5*(parseInt(_0x3adf7f(0x105))/0x6)+parseInt(_0x3adf7f(0x114))/0x7*(parseInt(_0x3adf7f(0x10a))/0x8)+parseInt(_0x3adf7f(0x10f))/0x9+parseInt(_0x3adf7f(0x111))/0xa+-parseInt(_0x3adf7f(0x108))/0xb;if(_0x2480ea===_0x379879)break;else _0x41e25f['push'](_0x41e25f['shift']());}catch(_0xa70f84){_0x41e25f['push'](_0x41e25f['shift']());}}}(a91_0x2d8c,0x97b64));function a91_0x2d8c(){const _0x36dda1=['27012RpfOOT','appCode','1930dHkZrH','16674TaOBYu','\x20database\x20connection(s)','194856UucaLd','35001285RFzWeU','Found\x20','5217560KqYCUw','Page\x20index\x20(1-based)','Page\x20size','length','pagesize','9958032MNfFiE','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','11931860FbiqqS','num','248GyHnqq','7YQzdbF','8FQKZSP','list','read','number','datasetDependency'];a91_0x2d8c=function(){return _0x36dda1;};return a91_0x2d8c();}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_0x36c4(_0x335457,_0x1dfb69){_0x335457=_0x335457-0xfe;const _0x2d8c58=a91_0x2d8c();let _0x36c48a=_0x2d8c58[_0x335457];return _0x36c48a;}export const dbList={'service':'db','command':a91_0x40af47(0xfe),'description':a91_0x40af47(0x110),'risk':a91_0x40af47(0xff),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a91_0x40af47(0x100),'description':a91_0x40af47(0x10b),'default':0x1},{'name':'pagesize','type':a91_0x40af47(0x100),'description':a91_0x40af47(0x10c),'default':0x64}],async 'execute'(_0x525b07){const _0x210824=a91_0x40af47,_0x1da789=_0x525b07[_0x210824(0x112)]('page',0x1)||0x1,_0x4f7850=_0x525b07[_0x210824(0x112)](_0x210824(0x10e),0x64)||0x64,[{items:_0x2c6e0d,paging:_0x213ec0},_0x485e36]=await Promise['all']([listDbLinks(_0x525b07['appCode'],{'currentPage':_0x1da789,'pageSize':_0x4f7850}),listDatasets(_0x525b07[_0x210824(0x103)],{'source':'DB_TABLE'})]),_0x9059aa=_0x2c6e0d['map'](_0xef1e55=>({...sanitizeDbLinkForOutput(_0xef1e55),'datasetDependency':buildDbDatasetDependency(_0xef1e55,_0x485e36)[_0x210824(0x101)]})),_0x1fded4=_0x213ec0?_0x213ec0:{'currentPage':_0x1da789,'pageSize':_0x4f7850,'rowsOnPage':_0x9059aa['length'],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x9059aa,'paging':_0x1fded4},'message':_0x210824(0x109)+_0x9059aa[_0x210824(0x10d)]+_0x210824(0x106)};}};
@@ -1 +1 @@
1
- (function(_0x5436db,_0x912c10){const _0x4f814f=a92_0xfc23,_0x273266=_0x5436db();while(!![]){try{const _0x5fb9f5=parseInt(_0x4f814f(0x1c8))/0x1*(parseInt(_0x4f814f(0x1df))/0x2)+-parseInt(_0x4f814f(0x1c5))/0x3*(-parseInt(_0x4f814f(0x1cb))/0x4)+parseInt(_0x4f814f(0x1d3))/0x5+parseInt(_0x4f814f(0x1d9))/0x6+-parseInt(_0x4f814f(0x1d6))/0x7+-parseInt(_0x4f814f(0x1bf))/0x8+-parseInt(_0x4f814f(0x1de))/0x9*(-parseInt(_0x4f814f(0x1cc))/0xa);if(_0x5fb9f5===_0x912c10)break;else _0x273266['push'](_0x273266['shift']());}catch(_0x26fbef){_0x273266['push'](_0x273266['shift']());}}}(a92_0x12dd,0x59801));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a92_0x12dd(){const _0x55c8e5=['test','236967czLEki','apiError','token','153wCusTF','trim','dbId','12zmCTLV','10htfwlG','dbtableConfig','/data/er?dbId=','passwd','/data/database','length','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','225075PSNKle','isFinite','hasAvailableDo','3922401aLFtHC','[redacted]','tableName','3313182JmreRF','name','password','authorization','Database\x20connection\x20preflight\x20failed.','310545qTvvtt','6762vFZtBn','connectionstring','dbpassword','includes','keys','3672328EjQZVM','secret','credential','toLowerCase','map'];a92_0x12dd=function(){return _0x55c8e5;};return a92_0x12dd();}function shouldRedactKey(_0x494d6d){const _0x480aae=a92_0xfc23,_0x138bad=_0x494d6d[_0x480aae(0x1c2)]();if(_0x138bad===_0x480aae(0x1db)||_0x138bad===_0x480aae(0x1cf)||_0x138bad===_0x480aae(0x1e1))return!![];if(_0x138bad[_0x480aae(0x1e2)](_0x480aae(0x1c0))||_0x138bad[_0x480aae(0x1e2)](_0x480aae(0x1c7))||_0x138bad[_0x480aae(0x1e2)](_0x480aae(0x1c1)))return!![];if(_0x138bad[_0x480aae(0x1e2)]('privatekey')||_0x138bad[_0x480aae(0x1e2)]('accesskey'))return!![];if(_0x138bad===_0x480aae(0x1dc)||_0x138bad===_0x480aae(0x1e0)||_0x138bad==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x240ed5){const _0x2d86f5=a92_0xfc23,_0x1e1409={..._0x240ed5};delete _0x1e1409[_0x2d86f5(0x1d5)];for(const _0x56add7 of Object[_0x2d86f5(0x1e3)](_0x1e1409)){if(!shouldRedactKey(_0x56add7))continue;const _0x399e6f=_0x1e1409[_0x56add7];_0x399e6f!=null&&String(_0x399e6f)[_0x2d86f5(0x1d1)]>0x0&&(_0x1e1409[_0x56add7]=_0x2d86f5(0x1d7));}return _0x1e1409;}export function sanitizeDbLinkList(_0x2e145a){return _0x2e145a['map'](_0x5e568b=>sanitizeDbLinkForOutput(_0x5e568b));}export function buildDbDatasetDependency(_0x7d2217,_0x199da6){const _0x2fdd23=a92_0xfc23,_0x1defff=_0x199da6['filter'](_0x2083d4=>Number(_0x2083d4[_0x2fdd23(0x1cd)]?.[_0x2fdd23(0x1ca)])===Number(_0x7d2217['id']))[_0x2fdd23(0x1c3)](_0x29a2b2=>({'id':_0x29a2b2['id'],'code':_0x29a2b2['code'],'name':_0x29a2b2[_0x2fdd23(0x1da)],..._0x29a2b2['dbtableConfig']?.[_0x2fdd23(0x1d8)]?{'tableName':_0x29a2b2[_0x2fdd23(0x1cd)][_0x2fdd23(0x1d8)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x1defff[_0x2fdd23(0x1d1)]>0x0,'activeDatasetCount':_0x1defff[_0x2fdd23(0x1d1)]},'datasets':_0x1defff};}function a92_0xfc23(_0x2e0cc0,_0x51c16d){_0x2e0cc0=_0x2e0cc0-0x1bf;const _0x12dde7=a92_0x12dd();let _0xfc23a1=_0x12dde7[_0x2e0cc0];return _0xfc23a1;}export async function assertDbLinkConnectionPreflight(_0x42a653){const _0x3d45ba=a92_0xfc23,_0x57a833=await testDbLinkConfigConnect(_0x42a653);if(_0x57a833!==!![])throw CliErrors[_0x3d45ba(0x1c6)](_0x3d45ba(0x1dd),_0x3d45ba(0x1d2));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x454a01){const _0x585f63=a92_0xfc23,_0xc50dc4=_0x454a01[_0x585f63(0x1c9)]();if(!_0xc50dc4)return![];return DB_URL_PATTERN[_0x585f63(0x1c4)](_0xc50dc4);}export function buildDbPageLinks(_0x58215a,_0x42af34){const _0x4bac8d=a92_0xfc23,_0x21f68b=_0x58215a?.[_0x4bac8d(0x1c9)]();if(!_0x21f68b)return undefined;const _0x1d8725=typeof _0x42af34==='number'?String(_0x42af34):String(_0x42af34??'')['trim']();if(!_0x1d8725)return undefined;const _0x4a70ef=Number(_0x1d8725);if(!Number[_0x4bac8d(0x1d4)](_0x4a70ef)||_0x4a70ef<=0x0)return undefined;const _0x42d996=getAppBaseUrl(_0x21f68b),_0x2093df=encodeURIComponent(String(_0x4a70ef));return{'databasePage':_0x42d996+_0x4bac8d(0x1d0),'erPage':_0x42d996+_0x4bac8d(0x1ce)+_0x2093df};}
1
+ (function(_0x5ba5ac,_0x3e782d){const _0x43b128=a92_0x4620,_0x3eabcc=_0x5ba5ac();while(!![]){try{const _0x1a0e0d=parseInt(_0x43b128(0x6e))/0x1+parseInt(_0x43b128(0x88))/0x2*(-parseInt(_0x43b128(0x94))/0x3)+parseInt(_0x43b128(0x7c))/0x4*(parseInt(_0x43b128(0x7f))/0x5)+-parseInt(_0x43b128(0x8f))/0x6+-parseInt(_0x43b128(0x75))/0x7*(-parseInt(_0x43b128(0x7e))/0x8)+parseInt(_0x43b128(0x81))/0x9*(-parseInt(_0x43b128(0x84))/0xa)+-parseInt(_0x43b128(0x85))/0xb*(-parseInt(_0x43b128(0x8a))/0xc);if(_0x1a0e0d===_0x3e782d)break;else _0x3eabcc['push'](_0x3eabcc['shift']());}catch(_0x30ffae){_0x3eabcc['push'](_0x3eabcc['shift']());}}}(a92_0x2bb9,0xe8063));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a92_0x2bb9(){const _0x4edfb3=['tableName','apiError','code','11148180etzxIz','password','toLowerCase','number','keys','1254381NLzYjd','814053NVpoOE','token','test','includes','[redacted]','isFinite','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','14EDNBtD','accesskey','hasAvailableDo','dbId','secret','filter','dbtableConfig','4SDwAPM','dbpassword','1873288YVRnoq','1047785CGRRbe','length','36mnCfvK','authorization','passwd','2241340aMKUxP','20988svfFOr','trim','map','2vPzPFM','privatekey','16548oGRsFM','connectionstring'];a92_0x2bb9=function(){return _0x4edfb3;};return a92_0x2bb9();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x475691){const _0x286a79=a92_0x4620,_0xc1443d=_0x475691[_0x286a79(0x91)]();if(_0xc1443d===_0x286a79(0x90)||_0xc1443d===_0x286a79(0x83)||_0xc1443d===_0x286a79(0x7d))return!![];if(_0xc1443d['includes'](_0x286a79(0x79))||_0xc1443d[_0x286a79(0x71)](_0x286a79(0x6f))||_0xc1443d[_0x286a79(0x71)]('credential'))return!![];if(_0xc1443d[_0x286a79(0x71)](_0x286a79(0x89))||_0xc1443d[_0x286a79(0x71)](_0x286a79(0x76)))return!![];if(_0xc1443d===_0x286a79(0x82)||_0xc1443d===_0x286a79(0x8b)||_0xc1443d==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x564cc4){const _0x20784a=a92_0x4620,_0x1d5b32={..._0x564cc4};delete _0x1d5b32[_0x20784a(0x77)];for(const _0x4debd6 of Object[_0x20784a(0x93)](_0x1d5b32)){if(!shouldRedactKey(_0x4debd6))continue;const _0x13526a=_0x1d5b32[_0x4debd6];_0x13526a!=null&&String(_0x13526a)[_0x20784a(0x80)]>0x0&&(_0x1d5b32[_0x4debd6]=_0x20784a(0x72));}return _0x1d5b32;}export function sanitizeDbLinkList(_0x5f4bd2){const _0xd837db=a92_0x4620;return _0x5f4bd2[_0xd837db(0x87)](_0x346e05=>sanitizeDbLinkForOutput(_0x346e05));}export function buildDbDatasetDependency(_0x11d2ce,_0x4b9b8e){const _0x2f0834=a92_0x4620,_0x394ea7=_0x4b9b8e[_0x2f0834(0x7a)](_0x3fca23=>Number(_0x3fca23[_0x2f0834(0x7b)]?.[_0x2f0834(0x78)])===Number(_0x11d2ce['id']))[_0x2f0834(0x87)](_0x44a939=>({'id':_0x44a939['id'],'code':_0x44a939[_0x2f0834(0x8e)],'name':_0x44a939['name'],..._0x44a939[_0x2f0834(0x7b)]?.[_0x2f0834(0x8c)]?{'tableName':_0x44a939['dbtableConfig']['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x394ea7[_0x2f0834(0x80)]>0x0,'activeDatasetCount':_0x394ea7['length']},'datasets':_0x394ea7};}function a92_0x4620(_0x1a90e8,_0x41e4fa){_0x1a90e8=_0x1a90e8-0x6e;const _0x2bb94a=a92_0x2bb9();let _0x462063=_0x2bb94a[_0x1a90e8];return _0x462063;}export async function assertDbLinkConnectionPreflight(_0x57274f){const _0x32c158=a92_0x4620,_0x53487d=await testDbLinkConfigConnect(_0x57274f);if(_0x53487d!==!![])throw CliErrors[_0x32c158(0x8d)]('Database\x20connection\x20preflight\x20failed.',_0x32c158(0x74));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x400e76){const _0x10909e=a92_0x4620,_0xb4dcd5=_0x400e76[_0x10909e(0x86)]();if(!_0xb4dcd5)return![];return DB_URL_PATTERN[_0x10909e(0x70)](_0xb4dcd5);}export function buildDbPageLinks(_0x4467b0,_0x4c6117){const _0x7f7014=a92_0x4620,_0x259532=_0x4467b0?.[_0x7f7014(0x86)]();if(!_0x259532)return undefined;const _0x3a5f94=typeof _0x4c6117===_0x7f7014(0x92)?String(_0x4c6117):String(_0x4c6117??'')[_0x7f7014(0x86)]();if(!_0x3a5f94)return undefined;const _0x292424=Number(_0x3a5f94);if(!Number[_0x7f7014(0x73)](_0x292424)||_0x292424<=0x0)return undefined;const _0x57d5fb=getAppBaseUrl(_0x259532),_0xeba024=encodeURIComponent(String(_0x292424));return{'databasePage':_0x57d5fb+'/data/database','erPage':_0x57d5fb+'/data/er?dbId='+_0xeba024};}
@@ -1 +1 @@
1
- function a93_0x5c8e(){const _0x24c423=['DELETED_TABLE','totalCount','validation','109859YrdEJq','diffType','number','map','datasetTableCount','set','tableList','tableName','226DxPvYE','length','19048ceSANJ','summary','\x20row(s).','30eleKvS','NEW_TABLE','physicalTableCount','filter','MODIFIED_TABLE','size','1077184iycrAO','11583LcsHGt','286677OetyuX','values','\x20of\x20','ALREADY_ANALYZED','597920eKYhok','fromEntries','478055QFXLYT','1505DDngiN'];a93_0x5c8e=function(){return _0x24c423;};return a93_0x5c8e();}const a93_0x3e187d=a93_0x5adf;(function(_0x54fbe5,_0x12efef){const _0x5c7723=a93_0x5adf,_0x41e980=_0x54fbe5();while(!![]){try{const _0x76ccfa=-parseInt(_0x5c7723(0x116))/0x1+parseInt(_0x5c7723(0x11e))/0x2*(-parseInt(_0x5c7723(0x12a))/0x3)+-parseInt(_0x5c7723(0x129))/0x4+parseInt(_0x5c7723(0x111))/0x5*(parseInt(_0x5c7723(0x123))/0x6)+-parseInt(_0x5c7723(0x112))/0x7*(-parseInt(_0x5c7723(0x120))/0x8)+parseInt(_0x5c7723(0x10b))/0x9+parseInt(_0x5c7723(0x10f))/0xa;if(_0x76ccfa===_0x12efef)break;else _0x41e980['push'](_0x41e980['shift']());}catch(_0x5236dd){_0x41e980['push'](_0x41e980['shift']());}}}(a93_0x5c8e,0x40fb7));import{CliErrors}from'../../errors.js';function a93_0x5adf(_0x809c7d,_0x242b51){_0x809c7d=_0x809c7d-0x10b;const _0x5c8eb0=a93_0x5c8e();let _0x5adf7b=_0x5c8eb0[_0x809c7d];return _0x5adf7b;}export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a93_0x3e187d(0x124),a93_0x3e187d(0x127),a93_0x3e187d(0x113),a93_0x3e187d(0x10e)];export function summarizeDbTableDiff(_0xfb1048){const _0x403cf1=a93_0x3e187d;return Object[_0x403cf1(0x110)](DB_TABLE_DIFF_TYPES[_0x403cf1(0x119)](_0x45d1cc=>[_0x45d1cc,_0xfb1048[_0x403cf1(0x126)](_0x5133d2=>_0x5133d2[_0x403cf1(0x117)]===_0x45d1cc)['length']]));}export async function getAllDbTableDiff(_0x55df9e,_0x7d698b,_0x152175,_0x330a57){const _0x8f800=a93_0x3e187d,_0x413829=new Map();let _0x218f03=0x1,_0xdf662f=null;while(!![]){_0xdf662f=await _0x55df9e(_0x7d698b,_0x152175,{'pageIndex':_0x218f03,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x330a57});const _0x51546f=_0x413829[_0x8f800(0x128)];for(const _0x1aefd1 of _0xdf662f[_0x8f800(0x11c)]){_0x413829[_0x8f800(0x11b)](_0x1aefd1[_0x8f800(0x11d)],_0x1aefd1);}if(_0x413829[_0x8f800(0x128)]>=_0xdf662f[_0x8f800(0x114)])break;if(_0xdf662f[_0x8f800(0x11c)][_0x8f800(0x11f)]===0x0||_0x413829[_0x8f800(0x128)]===_0x51546f)throw CliErrors[_0x8f800(0x115)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x413829[_0x8f800(0x128)]+_0x8f800(0x10d)+_0xdf662f[_0x8f800(0x114)]+_0x8f800(0x122));_0x218f03+=0x1;}return{'totalCount':_0xdf662f?.[_0x8f800(0x114)]??0x0,...typeof _0xdf662f?.[_0x8f800(0x125)]===_0x8f800(0x118)?{'physicalTableCount':_0xdf662f[_0x8f800(0x125)]}:{},...typeof _0xdf662f?.['datasetTableCount']===_0x8f800(0x118)?{'datasetTableCount':_0xdf662f[_0x8f800(0x11a)]}:{},..._0xdf662f?.[_0x8f800(0x121)]?{'summary':_0xdf662f['summary']}:{},'tableList':[..._0x413829[_0x8f800(0x10c)]()]};}
1
+ const a93_0x3a069d=a93_0x5b30;(function(_0x1e7c17,_0x10b7d2){const _0x46eac6=a93_0x5b30,_0x58984f=_0x1e7c17();while(!![]){try{const _0x36946e=-parseInt(_0x46eac6(0x1ca))/0x1*(-parseInt(_0x46eac6(0x1bc))/0x2)+-parseInt(_0x46eac6(0x1cc))/0x3+parseInt(_0x46eac6(0x1cd))/0x4*(-parseInt(_0x46eac6(0x1c2))/0x5)+-parseInt(_0x46eac6(0x1b9))/0x6+-parseInt(_0x46eac6(0x1ba))/0x7+parseInt(_0x46eac6(0x1c7))/0x8+parseInt(_0x46eac6(0x1c4))/0x9;if(_0x36946e===_0x10b7d2)break;else _0x58984f['push'](_0x58984f['shift']());}catch(_0x46ed92){_0x58984f['push'](_0x58984f['shift']());}}}(a93_0x5cec,0x8b66c));import{CliErrors}from'../../errors.js';function a93_0x5b30(_0x350e38,_0x2560f0){_0x350e38=_0x350e38-0x1b4;const _0x5cec36=a93_0x5cec();let _0x5b30f4=_0x5cec36[_0x350e38];return _0x5b30f4;}export const DB_TABLE_PAGE_SIZE=0x64;function a93_0x5cec(){const _0x123626=['filter','2050TRyKKi','physicalTableCount','summary','\x20row(s).','diffType','size','40VFodoZ','datasetTableCount','10920105rjgjPt','set','number','8338408lrsjwp','totalCount','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','19ErJghr','tableName','2207382TWGFds','62168MGqrgE','fromEntries','tableList','ALREADY_ANALYZED','MODIFIED_TABLE','values','NEW_TABLE','3436638RsoPSW','1898610teJVnN'];a93_0x5cec=function(){return _0x123626;};return a93_0x5cec();}export const DB_TABLE_DIFF_TYPES=[a93_0x3a069d(0x1b8),a93_0x3a069d(0x1b6),'DELETED_TABLE',a93_0x3a069d(0x1b5)];export function summarizeDbTableDiff(_0x3136f6){const _0x1a442d=a93_0x3a069d;return Object[_0x1a442d(0x1ce)](DB_TABLE_DIFF_TYPES['map'](_0x5df4a4=>[_0x5df4a4,_0x3136f6[_0x1a442d(0x1bb)](_0x4df76d=>_0x4df76d[_0x1a442d(0x1c0)]===_0x5df4a4)['length']]));}export async function getAllDbTableDiff(_0x5aeef8,_0x3b2815,_0x33972c,_0x36a460){const _0x4ef284=a93_0x3a069d,_0x1aeffe=new Map();let _0x229d61=0x1,_0x59e5ef=null;while(!![]){_0x59e5ef=await _0x5aeef8(_0x3b2815,_0x33972c,{'pageIndex':_0x229d61,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x36a460});const _0x276ef6=_0x1aeffe['size'];for(const _0x1846d3 of _0x59e5ef['tableList']){_0x1aeffe[_0x4ef284(0x1c5)](_0x1846d3[_0x4ef284(0x1cb)],_0x1846d3);}if(_0x1aeffe['size']>=_0x59e5ef[_0x4ef284(0x1c8)])break;if(_0x59e5ef[_0x4ef284(0x1b4)]['length']===0x0||_0x1aeffe['size']===_0x276ef6)throw CliErrors['validation'](_0x4ef284(0x1c9)+_0x1aeffe[_0x4ef284(0x1c1)]+'\x20of\x20'+_0x59e5ef[_0x4ef284(0x1c8)]+_0x4ef284(0x1bf));_0x229d61+=0x1;}return{'totalCount':_0x59e5ef?.[_0x4ef284(0x1c8)]??0x0,...typeof _0x59e5ef?.[_0x4ef284(0x1bd)]===_0x4ef284(0x1c6)?{'physicalTableCount':_0x59e5ef['physicalTableCount']}:{},...typeof _0x59e5ef?.[_0x4ef284(0x1c3)]==='number'?{'datasetTableCount':_0x59e5ef[_0x4ef284(0x1c3)]}:{},..._0x59e5ef?.[_0x4ef284(0x1be)]?{'summary':_0x59e5ef['summary']}:{},'tableList':[..._0x1aeffe[_0x4ef284(0x1b7)]()]};}
@@ -1 +1 @@
1
- const a94_0xa6d0be=a94_0xc687;(function(_0x34959a,_0x1eee65){const _0x1e2aa5=a94_0xc687,_0x21802b=_0x34959a();while(!![]){try{const _0x22f6a6=parseInt(_0x1e2aa5(0x80))/0x1+parseInt(_0x1e2aa5(0x76))/0x2+-parseInt(_0x1e2aa5(0x7f))/0x3+parseInt(_0x1e2aa5(0x75))/0x4*(parseInt(_0x1e2aa5(0x7c))/0x5)+parseInt(_0x1e2aa5(0x86))/0x6+parseInt(_0x1e2aa5(0x79))/0x7*(-parseInt(_0x1e2aa5(0x73))/0x8)+parseInt(_0x1e2aa5(0x82))/0x9*(-parseInt(_0x1e2aa5(0x74))/0xa);if(_0x22f6a6===_0x1eee65)break;else _0x21802b['push'](_0x21802b['shift']());}catch(_0x563f6e){_0x21802b['push'](_0x21802b['shift']());}}}(a94_0x159b,0xf34a5));import{getDbTableComparisonPage}from'../../core/api-client.js';function a94_0xc687(_0xe99cc7,_0x419fbc){_0xe99cc7=_0xe99cc7-0x70;const _0x159b27=a94_0x159b();let _0xc6871=_0x159b27[_0xe99cc7];return _0xc6871;}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_0xa6d0be(0x78),'description':a94_0xa6d0be(0x84),'risk':a94_0xa6d0be(0x83),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0xa6d0be(0x7b),'type':a94_0xa6d0be(0x77),'description':a94_0xa6d0be(0x71)}],async 'execute'(_0x130221){const _0x31dde8=a94_0xa6d0be,_0x5bb422=_0x130221['num']('id'),_0x556c26=_0x130221['str'](_0x31dde8(0x7b))||undefined,_0x10ec91=await getAllDbTableDiff(getDbTableComparisonPage,_0x130221['appCode'],_0x5bb422,_0x556c26),_0x2d0f23=_0x10ec91[_0x31dde8(0x81)];return{'ok':!![],'data':{'dbLinkId':_0x5bb422,'totalCount':_0x10ec91[_0x31dde8(0x70)],...typeof _0x10ec91[_0x31dde8(0x7e)]==='number'?{'physicalTableCount':_0x10ec91[_0x31dde8(0x7e)]}:{},...typeof _0x10ec91['datasetTableCount']===_0x31dde8(0x7a)?{'datasetTableCount':_0x10ec91['datasetTableCount']}:{},..._0x10ec91['summary']?{'summary':_0x10ec91[_0x31dde8(0x72)]}:{},'summaryByType':summarizeDbTableDiff(_0x2d0f23),'tables':_0x2d0f23},'message':_0x2d0f23[_0x31dde8(0x7d)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x10ec91['totalCount']+_0x31dde8(0x85)+_0x5bb422+')'};}};function a94_0x159b(){const _0x207b13=['read','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','\x20(db\x20link\x20','1015506CtOpFj','totalCount','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','summary','24oEflaH','346010pvkfAD','6662732HkSGzr','2518664bEhyvS','string','tables','3952627ddSmKq','number','table','5WIBxRh','length','physicalTableCount','4697526iQooUn','1957899QfOCqx','tableList','207MqGyoo'];a94_0x159b=function(){return _0x207b13;};return a94_0x159b();}
1
+ function a94_0x5059(_0x6bc638,_0x4003c4){_0x6bc638=_0x6bc638-0x11d;const _0xa284c8=a94_0xa284();let _0x5059bd=_0xa284c8[_0x6bc638];return _0x5059bd;}const a94_0x26ac46=a94_0x5059;(function(_0x76120a,_0x537d31){const _0x330776=a94_0x5059,_0x3307dd=_0x76120a();while(!![]){try{const _0x5d0db2=-parseInt(_0x330776(0x124))/0x1+-parseInt(_0x330776(0x127))/0x2+-parseInt(_0x330776(0x122))/0x3+-parseInt(_0x330776(0x12f))/0x4*(parseInt(_0x330776(0x120))/0x5)+-parseInt(_0x330776(0x12e))/0x6+parseInt(_0x330776(0x133))/0x7+parseInt(_0x330776(0x11f))/0x8*(parseInt(_0x330776(0x131))/0x9);if(_0x5d0db2===_0x537d31)break;else _0x3307dd['push'](_0x3307dd['shift']());}catch(_0x7b879){_0x3307dd['push'](_0x3307dd['shift']());}}}(a94_0xa284,0xadc22));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_0x26ac46(0x12c),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a94_0x26ac46(0x129),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':'string','description':a94_0x26ac46(0x134)}],async 'execute'(_0x9a35a3){const _0x171c0d=a94_0x26ac46,_0x64a0dc=_0x9a35a3[_0x171c0d(0x11d)]('id'),_0x5b5512=_0x9a35a3[_0x171c0d(0x121)](_0x171c0d(0x12b))||undefined,_0xa2cc68=await getAllDbTableDiff(getDbTableComparisonPage,_0x9a35a3[_0x171c0d(0x128)],_0x64a0dc,_0x5b5512),_0x2a9393=_0xa2cc68[_0x171c0d(0x123)];return{'ok':!![],'data':{'dbLinkId':_0x64a0dc,'totalCount':_0xa2cc68[_0x171c0d(0x125)],...typeof _0xa2cc68[_0x171c0d(0x12d)]==='number'?{'physicalTableCount':_0xa2cc68[_0x171c0d(0x12d)]}:{},...typeof _0xa2cc68[_0x171c0d(0x135)]===_0x171c0d(0x12a)?{'datasetTableCount':_0xa2cc68[_0x171c0d(0x135)]}:{},..._0xa2cc68[_0x171c0d(0x126)]?{'summary':_0xa2cc68['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x2a9393),'tables':_0x2a9393},'message':_0x2a9393[_0x171c0d(0x11e)]+_0x171c0d(0x132)+_0xa2cc68[_0x171c0d(0x125)]+_0x171c0d(0x130)+_0x64a0dc+')'};}};function a94_0xa284(){const _0x4c9bf8=['summary','2569306TfAfEV','appCode','read','number','table','tables','physicalTableCount','3216822YXCdEo','4saRwOX','\x20(db\x20link\x20','1773iDRgWE','\x20table\x20comparison\x20row(s),\x20total\x20','570269NzPhUq','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','datasetTableCount','num','length','176248UBgiEZ','2632015TzwDzM','str','3836955cFzUjo','tableList','83682QcOMdD','totalCount'];a94_0xa284=function(){return _0x4c9bf8;};return a94_0xa284();}
@@ -1 +1 @@
1
- const a95_0x489f4f=a95_0x576c;(function(_0x5e8fbb,_0x419b94){const _0x27078d=a95_0x576c,_0x782b2e=_0x5e8fbb();while(!![]){try{const _0x6cf1b0=-parseInt(_0x27078d(0x194))/0x1+-parseInt(_0x27078d(0x183))/0x2*(-parseInt(_0x27078d(0x190))/0x3)+-parseInt(_0x27078d(0x181))/0x4*(parseInt(_0x27078d(0x17f))/0x5)+-parseInt(_0x27078d(0x185))/0x6*(parseInt(_0x27078d(0x18e))/0x7)+parseInt(_0x27078d(0x182))/0x8+parseInt(_0x27078d(0x184))/0x9*(parseInt(_0x27078d(0x180))/0xa)+-parseInt(_0x27078d(0x18b))/0xb;if(_0x6cf1b0===_0x419b94)break;else _0x782b2e['push'](_0x782b2e['shift']());}catch(_0xf28ff7){_0x782b2e['push'](_0x782b2e['shift']());}}}(a95_0x2ceb,0xa7328));function a95_0x2ceb(){const _0x4859ec=['Connection\x20OK\x20for\x20db\x20link\x20','data','length','Connection\x20check\x20finished\x20for\x20db\x20link\x20','test','1759967GgWNqg','object','error','7qbtlzk','message','441bhedbW','keys','num','code','520870vfjqXG','\x20(see\x20data.result)','86735yfLrTE','100070Yvjhwq','244KUCTxQ','10695240iwUbAv','17196pwUStP','558zGJFHK','4784226UCBCEU'];a95_0x2ceb=function(){return _0x4859ec;};return a95_0x2ceb();}import{testDbLinkConnect}from'../../core/api-client.js';function a95_0x576c(_0x5eadca,_0x407f75){_0x5eadca=_0x5eadca-0x17f;const _0x2cebfa=a95_0x2ceb();let _0x576c55=_0x2cebfa[_0x5eadca];return _0x576c55;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x3f9292){const _0x3f5f36=a95_0x576c;if(_0x3f9292===!![]||_0x3f9292===![])return{'success':_0x3f9292};if(_0x3f9292===null||_0x3f9292===undefined)return{'type':typeof _0x3f9292};if(typeof _0x3f9292!==_0x3f5f36(0x18c))return{'type':typeof _0x3f9292};const _0x42faa6=_0x3f9292,_0x4f39fd=['success',_0x3f5f36(0x18f),_0x3f5f36(0x193),_0x3f5f36(0x18d),'msg',_0x3f5f36(0x187)],_0x151e84={};for(const _0x1089f5 of _0x4f39fd){if(_0x1089f5 in _0x42faa6)_0x151e84[_0x1089f5]=_0x42faa6[_0x1089f5];}return Object[_0x3f5f36(0x191)](_0x151e84)[_0x3f5f36(0x188)]===0x0&&(_0x151e84[_0x3f5f36(0x191)]=Object['keys'](_0x42faa6)['slice'](0x0,0x14)),_0x151e84;}export const dbTest={'service':'db','command':a95_0x489f4f(0x18a),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x34a43e){const _0x470459=a95_0x489f4f,_0x5d5a0b=_0x34a43e[_0x470459(0x192)]('id'),_0x1910f8=await testDbLinkConnect(_0x5d5a0b),_0x571184=_0x1910f8===!![]||typeof _0x1910f8===_0x470459(0x18c)&&_0x1910f8!==null&&_0x1910f8['success']===!![],_0x3820a8=summarizeTestConnectResult(_0x1910f8);return{'ok':!![],'data':{'id':_0x5d5a0b,'connected':Boolean(_0x571184),'result':_0x3820a8},'message':_0x571184?_0x470459(0x186)+_0x5d5a0b:_0x470459(0x189)+_0x5d5a0b+_0x470459(0x195)};}};
1
+ const a95_0x2fbc83=a95_0x30f8;(function(_0x5ef8e6,_0x420f11){const _0x4cf318=a95_0x30f8,_0x5dd5f0=_0x5ef8e6();while(!![]){try{const _0x376a4f=-parseInt(_0x4cf318(0x19e))/0x1*(parseInt(_0x4cf318(0x1a9))/0x2)+parseInt(_0x4cf318(0x196))/0x3*(parseInt(_0x4cf318(0x195))/0x4)+-parseInt(_0x4cf318(0x1a8))/0x5*(-parseInt(_0x4cf318(0x1a4))/0x6)+parseInt(_0x4cf318(0x19c))/0x7+parseInt(_0x4cf318(0x1a5))/0x8+-parseInt(_0x4cf318(0x198))/0x9+-parseInt(_0x4cf318(0x19b))/0xa*(parseInt(_0x4cf318(0x194))/0xb);if(_0x376a4f===_0x420f11)break;else _0x5dd5f0['push'](_0x5dd5f0['shift']());}catch(_0x41ca78){_0x5dd5f0['push'](_0x5dd5f0['shift']());}}}(a95_0x1308,0xaefb5));import{testDbLinkConnect}from'../../core/api-client.js';function a95_0x30f8(_0x51abd5,_0x5e40a3){_0x51abd5=_0x51abd5-0x190;const _0x130871=a95_0x1308();let _0x30f8c0=_0x130871[_0x51abd5];return _0x30f8c0;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5cd533){const _0xc814f7=a95_0x30f8;if(_0x5cd533===!![]||_0x5cd533===![])return{'success':_0x5cd533};if(_0x5cd533===null||_0x5cd533===undefined)return{'type':typeof _0x5cd533};if(typeof _0x5cd533!==_0xc814f7(0x1a3))return{'type':typeof _0x5cd533};const _0x38f2b8=_0x5cd533,_0x2ba233=[_0xc814f7(0x197),_0xc814f7(0x1a6),_0xc814f7(0x1a0),_0xc814f7(0x19a),_0xc814f7(0x199),_0xc814f7(0x190)],_0x45126b={};for(const _0x3304a7 of _0x2ba233){if(_0x3304a7 in _0x38f2b8)_0x45126b[_0x3304a7]=_0x38f2b8[_0x3304a7];}return Object[_0xc814f7(0x193)](_0x45126b)[_0xc814f7(0x191)]===0x0&&(_0x45126b[_0xc814f7(0x193)]=Object[_0xc814f7(0x193)](_0x38f2b8)[_0xc814f7(0x1a1)](0x0,0x14)),_0x45126b;}function a95_0x1308(){const _0x4d0cac=['609007eKxYYs','num','code','slice','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','object','24GGhusw','2978240WOtPhg','message','test','1110815XFStSc','2CKnJjH','data','length','Connection\x20OK\x20for\x20db\x20link\x20','keys','7890553livabz','232936JdJbVq','57qUlTFP','success','6648471sQABch','msg','error','20YyKplZ','7922033CjxDYR','Connection\x20check\x20finished\x20for\x20db\x20link\x20'];a95_0x1308=function(){return _0x4d0cac;};return a95_0x1308();}export const dbTest={'service':'db','command':a95_0x2fbc83(0x1a7),'description':a95_0x2fbc83(0x1a2),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2f80e0){const _0x4302ea=a95_0x2fbc83,_0x25143a=_0x2f80e0[_0x4302ea(0x19f)]('id'),_0x6b01a1=await testDbLinkConnect(_0x25143a),_0x4a5307=_0x6b01a1===!![]||typeof _0x6b01a1===_0x4302ea(0x1a3)&&_0x6b01a1!==null&&_0x6b01a1[_0x4302ea(0x197)]===!![],_0x2a2da7=summarizeTestConnectResult(_0x6b01a1);return{'ok':!![],'data':{'id':_0x25143a,'connected':Boolean(_0x4a5307),'result':_0x2a2da7},'message':_0x4a5307?_0x4302ea(0x192)+_0x25143a:_0x4302ea(0x19d)+_0x25143a+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- function a96_0x12dd(){const _0x2e38d6=['dbUrl','validation','string','New\x20username','******','trim','num','215545FkdsFE','51188hhmKvw','New\x20connection\x20parameter\x20string','4597840dKxrLq','dbdesc','write','POST','New\x20description','28nSiqez','New\x20host:port','password','dbname','dbParam','/smartapi/dblink/update','bool','924lSODhs','dbparam','12ygyJzx','dbDesc','10XZwaER','[redacted]','10253088kzgRKB','4771270NepOyu','165XMThUU','Updated\x20db\x20link\x20','has','username','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','1723257ZvOJqE','dburl','167012SMZkRS','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','str','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','update'];a96_0x12dd=function(){return _0x2e38d6;};return a96_0x12dd();}const a96_0x362b76=a96_0x1f31;(function(_0x685e51,_0x3bc08b){const _0x903e1a=a96_0x1f31,_0x220d15=_0x685e51();while(!![]){try{const _0x82902=parseInt(_0x903e1a(0x86))/0x1*(-parseInt(_0x903e1a(0x8d))/0x2)+parseInt(_0x903e1a(0x77))/0x3+-parseInt(_0x903e1a(0x79))/0x4*(-parseInt(_0x903e1a(0x9c))/0x5)+-parseInt(_0x903e1a(0x96))/0x6*(parseInt(_0x903e1a(0x9b))/0x7)+parseInt(_0x903e1a(0x88))/0x8+parseInt(_0x903e1a(0x9a))/0x9*(-parseInt(_0x903e1a(0x98))/0xa)+-parseInt(_0x903e1a(0x85))/0xb*(-parseInt(_0x903e1a(0x94))/0xc);if(_0x82902===_0x3bc08b)break;else _0x220d15['push'](_0x220d15['shift']());}catch(_0x42ef29){_0x220d15['push'](_0x220d15['shift']());}}}(a96_0x12dd,0xc7659));function a96_0x1f31(_0x5cc96a,_0x1dc92a){_0x5cc96a=_0x5cc96a-0x75;const _0x12dd3b=a96_0x12dd();let _0x1f3139=_0x12dd3b[_0x5cc96a];return _0x1f3139;}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_0x362b76(0x82),a96_0x362b76(0x99)]);function mergeDbLinkUpdate(_0x1222e4,_0x11de46){const _0x516606=a96_0x362b76,_0x46795b={..._0x1222e4},_0x3f45af=_0x11de46[_0x516606(0x7b)](_0x516606(0x8f));if(_0x3f45af&&MASKED_PASSWORD_VALUES[_0x516606(0x9e)](_0x3f45af))throw CliErrors['validation'](_0x516606(0x76));if(!_0x3f45af&&MASKED_PASSWORD_VALUES[_0x516606(0x9e)](String(_0x1222e4[_0x516606(0x8f)]??'')))throw CliErrors[_0x516606(0x7f)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x246934=_0x11de46[_0x516606(0x7b)](_0x516606(0x90));if(_0x246934)_0x46795b['dbName']=_0x246934;const _0x31ec1e=_0x11de46[_0x516606(0x7b)](_0x516606(0x78));if(_0x31ec1e)_0x46795b[_0x516606(0x7e)]=_0x31ec1e[_0x516606(0x83)]();const _0x5eae9f=_0x11de46[_0x516606(0x7b)](_0x516606(0x75));if(_0x5eae9f)_0x46795b[_0x516606(0x75)]=_0x5eae9f;if(_0x3f45af)_0x46795b[_0x516606(0x8f)]=_0x3f45af;const _0x4825f2=_0x11de46[_0x516606(0x7b)](_0x516606(0x95));if(_0x4825f2)_0x46795b[_0x516606(0x91)]=_0x4825f2;const _0x5c19cb=_0x11de46[_0x516606(0x7b)](_0x516606(0x89));if(_0x5c19cb)_0x46795b[_0x516606(0x97)]=_0x5c19cb;return _0x46795b;}export const dbUpdate={'service':'db','command':a96_0x362b76(0x7d),'description':a96_0x362b76(0x7c),'risk':a96_0x362b76(0x8a),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x362b76(0x90),'type':'string','description':'New\x20database\x20name'},{'name':a96_0x362b76(0x78),'type':a96_0x362b76(0x80),'description':a96_0x362b76(0x8e)},{'name':'username','type':a96_0x362b76(0x80),'description':a96_0x362b76(0x81)},{'name':a96_0x362b76(0x8f),'type':a96_0x362b76(0x80),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a96_0x362b76(0x95),'type':a96_0x362b76(0x80),'description':a96_0x362b76(0x87)},{'name':a96_0x362b76(0x89),'type':'string','description':a96_0x362b76(0x8c)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1cbbe2){const _0x5c2494=a96_0x362b76,_0x20d5bf=_0x1cbbe2[_0x5c2494(0x7b)]('dburl');if(_0x20d5bf&&!validateDbUrl(_0x20d5bf['trim']()))throw CliErrors[_0x5c2494(0x7f)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x20d5bf+'\x22');},async 'dryRun'(_0x4aea82){const _0x31fbc5=a96_0x362b76,_0x529c54=_0x4aea82[_0x31fbc5(0x84)]('id'),_0x3bb356=await getDbLinkInfo(_0x529c54),_0x31e6d9=mergeDbLinkUpdate(_0x3bb356,_0x4aea82),_0x157a26=sanitizeDbLinkForOutput(_0x31e6d9);return{'method':_0x31fbc5(0x8b),'url':_0x31fbc5(0x92),'body':_0x157a26,'description':_0x31fbc5(0x7a),'connectionPreflight':{'enabled':!_0x4aea82[_0x31fbc5(0x93)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x49997){const _0x5e4a8e=a96_0x362b76,_0x1d6fc4=_0x49997[_0x5e4a8e(0x84)]('id'),_0x19f1de=await getDbLinkInfo(_0x1d6fc4),_0x251bf6=mergeDbLinkUpdate(_0x19f1de,_0x49997);!_0x49997[_0x5e4a8e(0x93)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x251bf6);const {id:_0x49c42b,entity:_0x182d3b}=normalizeEntityWithIdResponse(await updateDbLink(_0x251bf6));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x182d3b),'message':_0x5e4a8e(0x9d)+(_0x49c42b??_0x1d6fc4)};}};
1
+ const a96_0x358c37=a96_0x8707;(function(_0x177cb2,_0x715d8b){const _0x35cc9d=a96_0x8707,_0x7a35e2=_0x177cb2();while(!![]){try{const _0x2fda77=parseInt(_0x35cc9d(0x10e))/0x1*(-parseInt(_0x35cc9d(0x107))/0x2)+parseInt(_0x35cc9d(0xf7))/0x3*(parseInt(_0x35cc9d(0x102))/0x4)+parseInt(_0x35cc9d(0xf9))/0x5*(parseInt(_0x35cc9d(0xf2))/0x6)+-parseInt(_0x35cc9d(0x10c))/0x7+-parseInt(_0x35cc9d(0xf8))/0x8*(parseInt(_0x35cc9d(0xf4))/0x9)+-parseInt(_0x35cc9d(0x105))/0xa*(-parseInt(_0x35cc9d(0xe9))/0xb)+-parseInt(_0x35cc9d(0x10b))/0xc;if(_0x2fda77===_0x715d8b)break;else _0x7a35e2['push'](_0x7a35e2['shift']());}catch(_0x365df0){_0x7a35e2['push'](_0x7a35e2['shift']());}}}(a96_0x2453,0x8a096));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_0x358c37(0xfa),a96_0x358c37(0xea)]);function a96_0x2453(){const _0x26f08d=['dbname','str','New\x20database\x20name','num','2548194jDjwqL','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','6060249lYrbbn','dbUrl','New\x20host:port','15bEJxmT','8ntsUgZ','10Zgzcjk','******','New\x20description','dburl','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','password','username','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','validation','496488LaiWCN','dbParam','New\x20username','1155320sYtMNS','skip-connection-test','76604guBkLc','/smartapi/dblink/update','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','4905660ezflDK','4150062IyNeSf','dbparam','1bsGshx','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','string','trim','77SvupvE','[redacted]','has','Updated\x20db\x20link\x20','dbdesc'];a96_0x2453=function(){return _0x26f08d;};return a96_0x2453();}function mergeDbLinkUpdate(_0xa12397,_0x1172cb){const _0x3e6617=a96_0x358c37,_0x4a4084={..._0xa12397},_0x3f5f03=_0x1172cb['str'](_0x3e6617(0xfe));if(_0x3f5f03&&MASKED_PASSWORD_VALUES[_0x3e6617(0xeb)](_0x3f5f03))throw CliErrors[_0x3e6617(0x101)](_0x3e6617(0x10a));if(!_0x3f5f03&&MASKED_PASSWORD_VALUES[_0x3e6617(0xeb)](String(_0xa12397[_0x3e6617(0xfe)]??'')))throw CliErrors[_0x3e6617(0x101)](_0x3e6617(0x10f));const _0x535bb9=_0x1172cb['str'](_0x3e6617(0xee));if(_0x535bb9)_0x4a4084['dbName']=_0x535bb9;const _0x2a139c=_0x1172cb[_0x3e6617(0xef)](_0x3e6617(0xfc));if(_0x2a139c)_0x4a4084[_0x3e6617(0xf5)]=_0x2a139c[_0x3e6617(0xe8)]();const _0x54e920=_0x1172cb['str']('username');if(_0x54e920)_0x4a4084[_0x3e6617(0xff)]=_0x54e920;if(_0x3f5f03)_0x4a4084[_0x3e6617(0xfe)]=_0x3f5f03;const _0x524d38=_0x1172cb[_0x3e6617(0xef)]('dbparam');if(_0x524d38)_0x4a4084[_0x3e6617(0x103)]=_0x524d38;const _0x51070d=_0x1172cb[_0x3e6617(0xef)](_0x3e6617(0xed));if(_0x51070d)_0x4a4084['dbDesc']=_0x51070d;return _0x4a4084;}function a96_0x8707(_0xbb7551,_0x571ac5){_0xbb7551=_0xbb7551-0xe7;const _0x24535d=a96_0x2453();let _0x870755=_0x24535d[_0xbb7551];return _0x870755;}export const dbUpdate={'service':'db','command':'update','description':a96_0x358c37(0xfd),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x358c37(0xee),'type':a96_0x358c37(0xe7),'description':a96_0x358c37(0xf0)},{'name':a96_0x358c37(0xfc),'type':a96_0x358c37(0xe7),'description':a96_0x358c37(0xf6)},{'name':'username','type':'string','description':a96_0x358c37(0x104)},{'name':a96_0x358c37(0xfe),'type':a96_0x358c37(0xe7),'description':a96_0x358c37(0x109)},{'name':a96_0x358c37(0x10d),'type':a96_0x358c37(0xe7),'description':'New\x20connection\x20parameter\x20string'},{'name':a96_0x358c37(0xed),'type':a96_0x358c37(0xe7),'description':a96_0x358c37(0xfb)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x156f9e){const _0x2d0462=a96_0x358c37,_0x403dea=_0x156f9e[_0x2d0462(0xef)]('dburl');if(_0x403dea&&!validateDbUrl(_0x403dea[_0x2d0462(0xe8)]()))throw CliErrors[_0x2d0462(0x101)](_0x2d0462(0xf3)+_0x403dea+'\x22');},async 'dryRun'(_0x2559a7){const _0x3bca55=a96_0x358c37,_0x51c4f3=_0x2559a7[_0x3bca55(0xf1)]('id'),_0x2cbbc4=await getDbLinkInfo(_0x51c4f3),_0x3f8d99=mergeDbLinkUpdate(_0x2cbbc4,_0x2559a7),_0x3d21a9=sanitizeDbLinkForOutput(_0x3f8d99);return{'method':'POST','url':_0x3bca55(0x108),'body':_0x3d21a9,'description':_0x3bca55(0x100),'connectionPreflight':{'enabled':!_0x2559a7['bool'](_0x3bca55(0x106)),'executed':![]}};},async 'execute'(_0x4bea9c){const _0x48faea=a96_0x358c37,_0x2a2f7e=_0x4bea9c['num']('id'),_0x247555=await getDbLinkInfo(_0x2a2f7e),_0x307e49=mergeDbLinkUpdate(_0x247555,_0x4bea9c);!_0x4bea9c['bool'](_0x48faea(0x106))&&await assertDbLinkConnectionPreflight(_0x307e49);const {id:_0x52f674,entity:_0x5599c1}=normalizeEntityWithIdResponse(await updateDbLink(_0x307e49));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5599c1),'message':_0x48faea(0xec)+(_0x52f674??_0x2a2f7e)};}};
@@ -1 +1 @@
1
- function a98_0x389d(){const _0x1f2cde=['2954076vXQUXa','32351390NjrFJq','1321876engraK','626553HPCZva','4RNRMrj','18sGRhJY','4830472hsZQdz','1748496YHqIsz','10PauYlz','11668230THctud'];a98_0x389d=function(){return _0x1f2cde;};return a98_0x389d();}(function(_0x56120a,_0x11bdc1){const _0x399db7=a98_0x5d42,_0x4aefbb=_0x56120a();while(!![]){try{const _0x4a9970=parseInt(_0x399db7(0x1d4))/0x1+-parseInt(_0x399db7(0x1d9))/0x2+-parseInt(_0x399db7(0x1d5))/0x3*(parseInt(_0x399db7(0x1d6))/0x4)+-parseInt(_0x399db7(0x1d0))/0x5*(-parseInt(_0x399db7(0x1d2))/0x6)+parseInt(_0x399db7(0x1d1))/0x7+-parseInt(_0x399db7(0x1d8))/0x8*(-parseInt(_0x399db7(0x1d7))/0x9)+-parseInt(_0x399db7(0x1d3))/0xa;if(_0x4a9970===_0x11bdc1)break;else _0x4aefbb['push'](_0x4aefbb['shift']());}catch(_0xf371fb){_0x4aefbb['push'](_0x4aefbb['shift']());}}}(a98_0x389d,0xd2a76));function a98_0x5d42(_0x17c0e3,_0x536540){_0x17c0e3=_0x17c0e3-0x1d0;const _0x389db6=a98_0x389d();let _0x5d421d=_0x389db6[_0x17c0e3];return _0x5d421d;}import{deploymentSync}from'../../commands/deployment/sync.js';import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSync,deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x4b044a,_0xcd5627){const _0x3a8535=a97_0x320b,_0x808be6=_0x4b044a();while(!![]){try{const _0x4ca624=parseInt(_0x3a8535(0x10a))/0x1*(parseInt(_0x3a8535(0x10b))/0x2)+-parseInt(_0x3a8535(0x10c))/0x3*(parseInt(_0x3a8535(0x107))/0x4)+-parseInt(_0x3a8535(0x109))/0x5+-parseInt(_0x3a8535(0x10e))/0x6*(-parseInt(_0x3a8535(0x10d))/0x7)+-parseInt(_0x3a8535(0x106))/0x8+parseInt(_0x3a8535(0x108))/0x9+parseInt(_0x3a8535(0x10f))/0xa;if(_0x4ca624===_0xcd5627)break;else _0x808be6['push'](_0x808be6['shift']());}catch(_0x2b4338){_0x808be6['push'](_0x808be6['shift']());}}}(a97_0x227d,0x534d3));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a97_0x227d(){const _0x42866b=['4cJJbkQ','215034RnVPKW','1401VAfwWk','239386zbVfCb','18EYQysw','8096800rGjpNo','4886032UWudDl','4156VrTRJw','3648231JoKQhi','1552655kGmjdF'];a97_0x227d=function(){return _0x42866b;};return a97_0x227d();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a97_0x320b(_0x2c33b9,_0x5938c2){_0x2c33b9=_0x2c33b9-0x106;const _0x227d7a=a97_0x227d();let _0x320be7=_0x227d7a[_0x2c33b9];return _0x320be7;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- function a99_0x188a(_0xa55727,_0x5e4a0d){_0xa55727=_0xa55727-0xbb;const _0x4425db=a99_0x4425();let _0x188a85=_0x4425db[_0xa55727];return _0x188a85;}const a99_0x156728=a99_0x188a;(function(_0x53ec82,_0x56137e){const _0x2f7012=a99_0x188a,_0x450c2f=_0x53ec82();while(!![]){try{const _0x3b9652=parseInt(_0x2f7012(0xc6))/0x1+-parseInt(_0x2f7012(0xd8))/0x2*(-parseInt(_0x2f7012(0xdf))/0x3)+parseInt(_0x2f7012(0xd1))/0x4+-parseInt(_0x2f7012(0xcc))/0x5*(parseInt(_0x2f7012(0xe0))/0x6)+parseInt(_0x2f7012(0xcb))/0x7*(parseInt(_0x2f7012(0xda))/0x8)+-parseInt(_0x2f7012(0xc3))/0x9*(parseInt(_0x2f7012(0xbf))/0xa)+-parseInt(_0x2f7012(0xbb))/0xb*(parseInt(_0x2f7012(0xca))/0xc);if(_0x3b9652===_0x56137e)break;else _0x450c2f['push'](_0x450c2f['shift']());}catch(_0x577151){_0x450c2f['push'](_0x450c2f['shift']());}}}(a99_0x4425,0xf2686));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a99_0x4425(){const _0x540e09=['No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','/smartapi/data-sync/submit','submitted','status','unknown','jobId','2Xpwuaq','deployment','6684472uAFpEq','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','bool','write','boolean','5437107pjmwvX','18rlbOwi','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','job','2794pKlENz','sync-all','confirm','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','10odZfdw','Synchronize\x20all\x20server-supported\x20application\x20metadata','not_needed','POST','16600167vIIPgE','data','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','635703SUOwFs','Confirm\x20application-scoped\x20deployment\x20synchronization','Would\x20submit\x20application-scoped\x20deployment\x20synchronization.','appCode','29844XKiqiH','7AnMGUc','812185ZsRiKE','not_submitted','all_server_supported_metadata','deployment_sync_submit_outcome_unknown','application_deployment_sync','2690972ocsrNk'];a99_0x4425=function(){return _0x540e09;};return a99_0x4425();}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a99_0x156728(0xd3),CONFIRM_FLAG={'name':a99_0x156728(0xbd),'type':a99_0x156728(0xde),'description':a99_0x156728(0xc7)};export const deploymentSyncAll={'service':a99_0x156728(0xd9),'command':a99_0x156728(0xbc),'description':a99_0x156728(0xc0),'risk':a99_0x156728(0xdd),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20application-scoped\x20metadata\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x27fbd9){const _0x1728a5=a99_0x156728;return asDryRunResult(buildPreview(_0x27fbd9['appCode']),{'method':_0x1728a5(0xc2),'url':SUBMIT_PATH,'description':_0x1728a5(0xc8)});},async 'execute'(_0x5819e6){const _0x5bc335=a99_0x156728;if(!_0x5819e6[_0x5bc335(0xdc)](_0x5bc335(0xbd)))throw CliErrors['validation'](_0x5bc335(0xdb),_0x5bc335(0xe1));try{const _0x3757ed=await submitDeploymentMetadataSyncAll({'appCode':_0x5819e6['appCode']});if(_0x3757ed['outcome']===_0x5bc335(0xc1))return{'ok':!![],'data':{'operation':_0x5bc335(0xd0),'appCode':_0x5819e6[_0x5bc335(0xc9)],'submitted':![],'outcome':_0x5bc335(0xc1)},'message':_0x5bc335(0xd2)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x5819e6[_0x5bc335(0xc9)],'submitted':!![],'outcome':_0x5bc335(0xd4),'jobId':_0x3757ed['job'][_0x5bc335(0xd7)],'status':_0x3757ed[_0x5bc335(0xe2)][_0x5bc335(0xd5)]},'message':'Submitted\x20deployment\x20synchronization\x20job\x20'+_0x3757ed[_0x5bc335(0xe2)][_0x5bc335(0xd7)]+'.'};}catch(_0x4f6412){if(!isPlatformTransportFailure(_0x4f6412))throw _0x4f6412;const _0xdaf8db=new CliError(_0x5bc335(0xcf),0x2,_0x5bc335(0xc5),_0x5bc335(0xbe));Object['defineProperty'](_0xdaf8db,_0x5bc335(0xc4),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x5819e6[_0x5bc335(0xc9)],'submitted':null,'outcome':_0x5bc335(0xd6)}});throw _0xdaf8db;}}};function buildPreview(_0x5d1084){const _0x1dfdd9=a99_0x156728;return{'operation':_0x1dfdd9(0xd0),'selector':{'appCode':_0x5d1084,'scope':_0x1dfdd9(0xce)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x1dfdd9(0xcd)},'warnings':[]};}
1
+ const a98_0x5d8528=a98_0x209d;(function(_0x5a18a8,_0x435e5f){const _0x4b314a=a98_0x209d,_0xcf400f=_0x5a18a8();while(!![]){try{const _0x557f8e=parseInt(_0x4b314a(0x1a1))/0x1+parseInt(_0x4b314a(0x19c))/0x2*(-parseInt(_0x4b314a(0x1a3))/0x3)+-parseInt(_0x4b314a(0x1ad))/0x4*(parseInt(_0x4b314a(0x19f))/0x5)+parseInt(_0x4b314a(0x1b4))/0x6*(-parseInt(_0x4b314a(0x1ae))/0x7)+parseInt(_0x4b314a(0x1a0))/0x8*(-parseInt(_0x4b314a(0x1ab))/0x9)+parseInt(_0x4b314a(0x19b))/0xa+parseInt(_0x4b314a(0x1b8))/0xb;if(_0x557f8e===_0x435e5f)break;else _0xcf400f['push'](_0xcf400f['shift']());}catch(_0x19b384){_0xcf400f['push'](_0xcf400f['shift']());}}}(a98_0x2444,0x999a0));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';function a98_0x2444(){const _0x54aec2=['not_needed','confirm','validation','bool','submitted','appCode','8662350NKnAPL','22eaDdtn','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','sync-all','17285Pxoqgu','16XcAZRz','895556JLqKvi','not_submitted','52389bOkUxC','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','jobId','boolean','write','outcome','job','1688913NnCuXO','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','304OsKtNT','7WnbRxr','deployment_sync_submit_outcome_unknown','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','status','Submitted\x20deployment\x20synchronization\x20job\x20','unknown','3921336VHdCQh','/smartapi/data-sync/submit','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','3861616rBumTJ','application_deployment_sync'];a98_0x2444=function(){return _0x54aec2;};return a98_0x2444();}import{CliError,CliErrors}from'../../errors.js';function a98_0x209d(_0xc1e020,_0x35fec7){_0xc1e020=_0xc1e020-0x196;const _0x24443b=a98_0x2444();let _0x209db4=_0x24443b[_0xc1e020];return _0x209db4;}const SUBMIT_PATH=a98_0x5d8528(0x1b5),CONFIRM_FLAG={'name':a98_0x5d8528(0x196),'type':a98_0x5d8528(0x1a7),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':'deployment','command':a98_0x5d8528(0x19e),'description':a98_0x5d8528(0x1a4),'risk':a98_0x5d8528(0x1a8),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x5d8528(0x1ac),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x3a277d){const _0x51c109=a98_0x5d8528;return asDryRunResult(buildPreview(_0x3a277d[_0x51c109(0x19a)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x51c109(0x1a5)});},async 'execute'(_0x1cbfa5){const _0x25c7d6=a98_0x5d8528;if(!_0x1cbfa5[_0x25c7d6(0x198)](_0x25c7d6(0x196)))throw CliErrors[_0x25c7d6(0x197)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.',_0x25c7d6(0x1b7));try{const _0x183f52=await submitDeploymentMetadataSyncAll({'appCode':_0x1cbfa5[_0x25c7d6(0x19a)]});if(_0x183f52[_0x25c7d6(0x1a9)]===_0x25c7d6(0x1ba))return{'ok':!![],'data':{'operation':_0x25c7d6(0x1b9),'appCode':_0x1cbfa5[_0x25c7d6(0x19a)],'submitted':![],'outcome':_0x25c7d6(0x1ba)},'message':_0x25c7d6(0x19d)};return{'ok':!![],'data':{'operation':_0x25c7d6(0x1b9),'appCode':_0x1cbfa5[_0x25c7d6(0x19a)],'submitted':!![],'outcome':_0x25c7d6(0x199),'jobId':_0x183f52[_0x25c7d6(0x1aa)][_0x25c7d6(0x1a6)],'status':_0x183f52['job'][_0x25c7d6(0x1b1)]},'message':_0x25c7d6(0x1b2)+_0x183f52[_0x25c7d6(0x1aa)][_0x25c7d6(0x1a6)]+'.'};}catch(_0x400c93){if(!isPlatformTransportFailure(_0x400c93))throw _0x400c93;const _0x1df6f0=new CliError(_0x25c7d6(0x1af),0x2,_0x25c7d6(0x1b6),_0x25c7d6(0x1b0));Object['defineProperty'](_0x1df6f0,'data',{'enumerable':!![],'value':{'operation':_0x25c7d6(0x1b9),'appCode':_0x1cbfa5[_0x25c7d6(0x19a)],'submitted':null,'outcome':_0x25c7d6(0x1b3)}});throw _0x1df6f0;}}};function buildPreview(_0x57f4f8){const _0x348e12=a98_0x5d8528;return{'operation':'application_deployment_sync','selector':{'appCode':_0x57f4f8,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x348e12(0x1a2)},'warnings':[]};}
@@ -1 +1 @@
1
- const a100_0x2f179c=a100_0x451f;(function(_0xc91d6e,_0xa7f54b){const _0x19b81e=a100_0x451f,_0x373796=_0xc91d6e();while(!![]){try{const _0x31bc1c=-parseInt(_0x19b81e(0x1b4))/0x1*(-parseInt(_0x19b81e(0x1bc))/0x2)+parseInt(_0x19b81e(0x1b0))/0x3*(parseInt(_0x19b81e(0x1b9))/0x4)+parseInt(_0x19b81e(0x1ab))/0x5+parseInt(_0x19b81e(0x1a2))/0x6+-parseInt(_0x19b81e(0x1b1))/0x7+-parseInt(_0x19b81e(0x1b2))/0x8*(-parseInt(_0x19b81e(0x1a8))/0x9)+parseInt(_0x19b81e(0x1a1))/0xa*(-parseInt(_0x19b81e(0x1b5))/0xb);if(_0x31bc1c===_0xa7f54b)break;else _0x373796['push'](_0x373796['shift']());}catch(_0x2c7439){_0x373796['push'](_0x373796['shift']());}}}(a100_0x5c86,0xd2628));function a100_0x451f(_0x1e4a01,_0x1bbfe6){_0x1e4a01=_0x1e4a01-0x19e;const _0x5c8653=a100_0x5c86();let _0x451f88=_0x5c8653[_0x1e4a01];return _0x451f88;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a100_0x2f179c(0x19e),'command':a100_0x2f179c(0x1aa),'description':a100_0x2f179c(0x1a5),'risk':a100_0x2f179c(0x1af),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a100_0x2f179c(0x1a6),'type':a100_0x2f179c(0x1a7),'default':0x1,'description':'Page\x20number'},{'name':a100_0x2f179c(0x1b6),'type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':'status','type':'string','description':a100_0x2f179c(0x1a9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x57c469){const _0x54a590=a100_0x2f179c;readPaging(_0x57c469[_0x54a590(0x1a0)]('current-page',0x1),_0x57c469[_0x54a590(0x1a0)](_0x54a590(0x1b6),0xa));},async 'execute'(_0x19178a){const _0x52761d=a100_0x2f179c,{currentPage:_0x3a15e3,pageSize:_0xf9ca6f}=readPaging(_0x19178a['num'](_0x52761d(0x1a6),0x1),_0x19178a['num']('page-size',0xa)),_0x4ad747=_0x19178a[_0x52761d(0x1ba)](_0x52761d(0x1b8))[_0x52761d(0x1b3)](),_0x4eb209=await listDeploymentMetadataSyncJobs({'appCode':_0x19178a[_0x52761d(0x1ac)],'currentPage':_0x3a15e3,'pageSize':_0xf9ca6f,..._0x4ad747?{'status':_0x4ad747}:{}});return{'ok':!![],'data':{'appCode':_0x19178a[_0x52761d(0x1ac)],..._0x4eb209},'message':_0x52761d(0x1bb)+_0x4eb209[_0x52761d(0x1ae)][_0x52761d(0x1b7)]+_0x52761d(0x1a3)};}};function readPaging(_0x2993ab,_0x48910b){const _0x2e3adf=a100_0x2f179c;if(!Number[_0x2e3adf(0x1ad)](_0x2993ab)||_0x2993ab<0x1)throw CliErrors[_0x2e3adf(0x1bd)](_0x2e3adf(0x19f));if(!Number[_0x2e3adf(0x1ad)](_0x48910b)||_0x48910b<0x1||_0x48910b>0x64)throw CliErrors['validation'](_0x2e3adf(0x1a4));return{'currentPage':_0x2993ab,'pageSize':_0x48910b};}function a100_0x5c86(){const _0x28e67e=['trim','181142IqYVKF','364166wWvAvM','page-size','length','status','32ezjOLF','str','Found\x20','2WdoivJ','validation','deployment','--current-page\x20must\x20be\x20a\x20positive\x20integer.','num','1030HiadSC','9077532hHtdkA','\x20deployment\x20synchronization\x20job(s).','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','List\x20application\x20deployment\x20synchronization\x20jobs','current-page','number','9HHULqR','Optional\x20server-defined\x20job\x20status\x20filter','sync-jobs','8129595AwgmAG','appCode','isSafeInteger','items','read','546507sCBPId','8054830wzusKK','5160072RIvusE'];a100_0x5c86=function(){return _0x28e67e;};return a100_0x5c86();}
1
+ const a99_0x3bf78c=a99_0x5584;(function(_0x440c6d,_0x1324bb){const _0xd577f0=a99_0x5584,_0x580bfa=_0x440c6d();while(!![]){try{const _0x42fb4a=parseInt(_0xd577f0(0x1f2))/0x1+parseInt(_0xd577f0(0x1ee))/0x2+-parseInt(_0xd577f0(0x1e2))/0x3*(parseInt(_0xd577f0(0x1e8))/0x4)+-parseInt(_0xd577f0(0x1f5))/0x5+-parseInt(_0xd577f0(0x1f0))/0x6*(parseInt(_0xd577f0(0x1f8))/0x7)+-parseInt(_0xd577f0(0x1e3))/0x8*(-parseInt(_0xd577f0(0x1f9))/0x9)+parseInt(_0xd577f0(0x1fb))/0xa;if(_0x42fb4a===_0x1324bb)break;else _0x580bfa['push'](_0x580bfa['shift']());}catch(_0x301310){_0x580bfa['push'](_0x580bfa['shift']());}}}(a99_0xf18f,0x9109f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a99_0xf18f(){const _0x2f3a54=['Page\x20number','312mXKiRF','List\x20application\x20deployment\x20synchronization\x20jobs','941366CxwyHG','Found\x20','number','2648720esUBwh','items','status','147889ptpEgm','2301903IpSdIG','current-page','1650300NvKefR','isSafeInteger','sync-jobs','750IplTNe','32zwWdQC','page-size','appCode','string','Items\x20per\x20page\x20(maximum\x20100)','5384kxjkqR','validation','read','\x20deployment\x20synchronization\x20job(s).','Optional\x20server-defined\x20job\x20status\x20filter','num','858926sUlzaS'];a99_0xf18f=function(){return _0x2f3a54;};return a99_0xf18f();}import{CliErrors}from'../../errors.js';function a99_0x5584(_0x3045ed,_0xa85de){_0x3045ed=_0x3045ed-0x1e0;const _0xf18f0d=a99_0xf18f();let _0x55843b=_0xf18f0d[_0x3045ed];return _0x55843b;}export const deploymentSyncJobs={'service':'deployment','command':a99_0x3bf78c(0x1e1),'description':a99_0x3bf78c(0x1f1),'risk':a99_0x3bf78c(0x1ea),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':a99_0x3bf78c(0x1f4),'default':0x1,'description':a99_0x3bf78c(0x1ef)},{'name':a99_0x3bf78c(0x1e4),'type':a99_0x3bf78c(0x1f4),'default':0xa,'description':a99_0x3bf78c(0x1e7)},{'name':'status','type':a99_0x3bf78c(0x1e6),'description':a99_0x3bf78c(0x1ec)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x58af20){const _0x23a260=a99_0x3bf78c;readPaging(_0x58af20['num'](_0x23a260(0x1fa),0x1),_0x58af20[_0x23a260(0x1ed)](_0x23a260(0x1e4),0xa));},async 'execute'(_0x3632a9){const _0x3dfc71=a99_0x3bf78c,{currentPage:_0x3b64ff,pageSize:_0x24ac44}=readPaging(_0x3632a9['num'](_0x3dfc71(0x1fa),0x1),_0x3632a9[_0x3dfc71(0x1ed)](_0x3dfc71(0x1e4),0xa)),_0x1e92d7=_0x3632a9['str'](_0x3dfc71(0x1f7))['trim'](),_0x31a190=await listDeploymentMetadataSyncJobs({'appCode':_0x3632a9[_0x3dfc71(0x1e5)],'currentPage':_0x3b64ff,'pageSize':_0x24ac44,..._0x1e92d7?{'status':_0x1e92d7}:{}});return{'ok':!![],'data':{'appCode':_0x3632a9['appCode'],..._0x31a190},'message':_0x3dfc71(0x1f3)+_0x31a190[_0x3dfc71(0x1f6)]['length']+_0x3dfc71(0x1eb)};}};function readPaging(_0x24a08b,_0xd52dfc){const _0x5ec24d=a99_0x3bf78c;if(!Number[_0x5ec24d(0x1e0)](_0x24a08b)||_0x24a08b<0x1)throw CliErrors[_0x5ec24d(0x1e9)]('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x5ec24d(0x1e0)](_0xd52dfc)||_0xd52dfc<0x1||_0xd52dfc>0x64)throw CliErrors['validation']('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x24a08b,'pageSize':_0xd52dfc};}
@@ -1 +1 @@
1
- const a101_0x5ea978=a101_0x90b9;(function(_0x461f94,_0x52d284){const _0x1d2562=a101_0x90b9,_0x1c0a79=_0x461f94();while(!![]){try{const _0x45d9b1=-parseInt(_0x1d2562(0x190))/0x1*(parseInt(_0x1d2562(0x17e))/0x2)+parseInt(_0x1d2562(0x177))/0x3+parseInt(_0x1d2562(0x174))/0x4*(parseInt(_0x1d2562(0x17d))/0x5)+-parseInt(_0x1d2562(0x18b))/0x6*(-parseInt(_0x1d2562(0x185))/0x7)+-parseInt(_0x1d2562(0x182))/0x8+parseInt(_0x1d2562(0x176))/0x9+-parseInt(_0x1d2562(0x186))/0xa*(parseInt(_0x1d2562(0x183))/0xb);if(_0x45d9b1===_0x52d284)break;else _0x1c0a79['push'](_0x1c0a79['shift']());}catch(_0x433114){_0x1c0a79['push'](_0x1c0a79['shift']());}}}(a101_0x1f7f,0x6ff56));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS','PARTIAL_SUCCESS',a101_0x5ea978(0x17f)]),ACTIVE_STATUSES=new Set([a101_0x5ea978(0x194),a101_0x5ea978(0x18e)]);function a101_0x1f7f(){const _0x402bc8=['num','16735ZZIjMK','1139194ioeCtL','FAILED','isSafeInteger','read','4347296cWtTov','11MhWBHi','status','3074484GhhIxf','6334270ZJQrqy','has','Deployment\x20synchronization\x20job\x20','job-id','\x20is\x20','12ZsiSNZ','reduce','sync-status','RUNNING','bizType','1qdACmu','length','Deployment\x20synchronization\x20job\x20ID','Preserved\x20server-defined\x20status\x20','PENDING','52bBCNzc','number','4998546ZyZxVf','2183067NLjaHy',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','results','appCode','action'];a101_0x1f7f=function(){return _0x402bc8;};return a101_0x1f7f();}export const deploymentSyncStatus={'service':'deployment','command':a101_0x5ea978(0x18d),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a101_0x5ea978(0x181),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a101_0x5ea978(0x189),'type':a101_0x5ea978(0x175),'required':!![],'description':a101_0x5ea978(0x192)}],async 'validate'(_0x2abcf1){const _0x33c2a4=a101_0x5ea978;readJobId(_0x2abcf1[_0x33c2a4(0x17c)](_0x33c2a4(0x189)));},async 'execute'(_0x4d11e3){const _0x23758f=a101_0x5ea978,_0x23e556=readJobId(_0x4d11e3[_0x23758f(0x17c)](_0x23758f(0x189))),_0x1fada1=await getDeploymentMetadataSyncStatus({'jobId':_0x23e556,'appCode':_0x4d11e3[_0x23758f(0x17a)]}),_0x3792e3=TERMINAL_STATUSES[_0x23758f(0x187)](_0x1fada1['status'])?!![]:ACTIVE_STATUSES[_0x23758f(0x187)](_0x1fada1[_0x23758f(0x184)])?![]:null,_0x405661=countBy(_0x1fada1[_0x23758f(0x179)]['map'](_0x443450=>_0x443450[_0x23758f(0x18f)])),_0x518ff9=countBy(_0x1fada1[_0x23758f(0x179)]['map'](_0x185312=>_0x185312[_0x23758f(0x17b)])),_0x4c2a7b=_0x3792e3===null?[_0x23758f(0x193)+_0x1fada1['status']+_0x23758f(0x178)]:[];return{'ok':!![],'data':{'job':_0x1fada1,'isTerminal':_0x3792e3,'summary':{'total':_0x1fada1[_0x23758f(0x179)][_0x23758f(0x191)],'failed':_0x1fada1[_0x23758f(0x179)]['filter'](_0x3d3af8=>_0x3d3af8[_0x23758f(0x17b)]===_0x23758f(0x17f))[_0x23758f(0x191)],'byBizType':_0x405661,'byAction':_0x518ff9},'warnings':_0x4c2a7b},'message':_0x23758f(0x188)+_0x23e556+_0x23758f(0x18a)+_0x1fada1[_0x23758f(0x184)]+'.'};}};function readJobId(_0x241b73){const _0x1612c4=a101_0x5ea978;if(!Number[_0x1612c4(0x180)](_0x241b73)||_0x241b73<=0x0)throw CliErrors['validation']('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x241b73;}function a101_0x90b9(_0x403e0c,_0xd1d827){_0x403e0c=_0x403e0c-0x174;const _0x1f7fde=a101_0x1f7f();let _0x90b99b=_0x1f7fde[_0x403e0c];return _0x90b99b;}function countBy(_0x1053ce){const _0x53fa0a=a101_0x5ea978;return _0x1053ce[_0x53fa0a(0x18c)]((_0x58884e,_0x5aaf18)=>{return _0x58884e[_0x5aaf18]=(_0x58884e[_0x5aaf18]??0x0)+0x1,_0x58884e;},{});}
1
+ const a100_0x8ed633=a100_0x1cb5;(function(_0xba81de,_0xfd6959){const _0x599e1a=a100_0x1cb5,_0x326b98=_0xba81de();while(!![]){try{const _0x5a5325=-parseInt(_0x599e1a(0x132))/0x1+parseInt(_0x599e1a(0x148))/0x2+parseInt(_0x599e1a(0x13f))/0x3+-parseInt(_0x599e1a(0x136))/0x4+parseInt(_0x599e1a(0x14a))/0x5+parseInt(_0x599e1a(0x147))/0x6+-parseInt(_0x599e1a(0x150))/0x7;if(_0x5a5325===_0xfd6959)break;else _0x326b98['push'](_0x326b98['shift']());}catch(_0x316b7a){_0x326b98['push'](_0x326b98['shift']());}}}(a100_0x3f20,0x42643));function a100_0x3f20(){const _0x135af6=['num','Get\x20application\x20deployment\x20synchronization\x20job\x20status','SUCCESS','1910760RfKlhD','186504KfGKSV','number','577850lPhjSw','filter',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','FAILED','appCode','action','3787882jbYtac','sync-status','reduce','36522hbHvFZ','map','deployment','Preserved\x20server-defined\x20status\x20','736816HrBdiU','read','has','job-id','RUNNING','length','PENDING','\x20is\x20','validation','1519527ZeIrdW','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','results','Deployment\x20synchronization\x20job\x20'];a100_0x3f20=function(){return _0x135af6;};return a100_0x3f20();}function a100_0x1cb5(_0x46457b,_0x183497){_0x46457b=_0x46457b-0x131;const _0x3f209d=a100_0x3f20();let _0x1cb586=_0x3f209d[_0x46457b];return _0x1cb586;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a100_0x8ed633(0x146),'PARTIAL_SUCCESS','FAILED']),ACTIVE_STATUSES=new Set([a100_0x8ed633(0x13c),a100_0x8ed633(0x13a)]);export const deploymentSyncStatus={'service':a100_0x8ed633(0x134),'command':a100_0x8ed633(0x151),'description':a100_0x8ed633(0x145),'risk':a100_0x8ed633(0x137),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a100_0x8ed633(0x149),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x3e0b95){const _0x23bf26=a100_0x8ed633;readJobId(_0x3e0b95[_0x23bf26(0x144)](_0x23bf26(0x139)));},async 'execute'(_0x1006d5){const _0x509b8f=a100_0x8ed633,_0x41893e=readJobId(_0x1006d5[_0x509b8f(0x144)]('job-id')),_0x5efb10=await getDeploymentMetadataSyncStatus({'jobId':_0x41893e,'appCode':_0x1006d5[_0x509b8f(0x14e)]}),_0x5d0fee=TERMINAL_STATUSES[_0x509b8f(0x138)](_0x5efb10['status'])?!![]:ACTIVE_STATUSES[_0x509b8f(0x138)](_0x5efb10[_0x509b8f(0x141)])?![]:null,_0x479327=countBy(_0x5efb10[_0x509b8f(0x142)]['map'](_0x13d58e=>_0x13d58e['bizType'])),_0x594290=countBy(_0x5efb10[_0x509b8f(0x142)][_0x509b8f(0x133)](_0x5d2627=>_0x5d2627[_0x509b8f(0x14f)])),_0x2ade62=_0x5d0fee===null?[_0x509b8f(0x135)+_0x5efb10[_0x509b8f(0x141)]+_0x509b8f(0x14c)]:[];return{'ok':!![],'data':{'job':_0x5efb10,'isTerminal':_0x5d0fee,'summary':{'total':_0x5efb10[_0x509b8f(0x142)][_0x509b8f(0x13b)],'failed':_0x5efb10['results'][_0x509b8f(0x14b)](_0x429dac=>_0x429dac['action']===_0x509b8f(0x14d))[_0x509b8f(0x13b)],'byBizType':_0x479327,'byAction':_0x594290},'warnings':_0x2ade62},'message':_0x509b8f(0x143)+_0x41893e+_0x509b8f(0x13d)+_0x5efb10[_0x509b8f(0x141)]+'.'};}};function readJobId(_0x3c781a){const _0x298cd0=a100_0x8ed633;if(!Number['isSafeInteger'](_0x3c781a)||_0x3c781a<=0x0)throw CliErrors[_0x298cd0(0x13e)](_0x298cd0(0x140));return _0x3c781a;}function countBy(_0x4dd68b){const _0xf3d4bf=a100_0x8ed633;return _0x4dd68b[_0xf3d4bf(0x131)]((_0x405c9e,_0x3f15cb)=>{return _0x405c9e[_0x3f15cb]=(_0x405c9e[_0x3f15cb]??0x0)+0x1,_0x405c9e;},{});}