@lovrabet/rabetbase-cli 2.5.2-beta.3 → 2.5.2-beta.4

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 (349) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-restore.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.js +1 -1
  95. package/lib/commands/db/table-diff-shared.js +1 -1
  96. package/lib/commands/db/tables.js +1 -1
  97. package/lib/commands/db/test.js +1 -1
  98. package/lib/commands/db/update.js +1 -1
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.js +1 -1
  102. package/lib/commands/deployment/sync-jobs.js +1 -1
  103. package/lib/commands/deployment/sync-status.js +1 -1
  104. package/lib/commands/deployment/sync.js +1 -1
  105. package/lib/commands/doctor.js +1 -1
  106. package/lib/commands/file/index.js +1 -1
  107. package/lib/commands/instant-api-policy/current.js +1 -1
  108. package/lib/commands/instant-api-policy/index.js +1 -1
  109. package/lib/commands/instant-api-policy/init.js +1 -1
  110. package/lib/commands/instant-api-policy/publish.js +1 -1
  111. package/lib/commands/instant-api-policy/pull.js +1 -1
  112. package/lib/commands/instant-api-policy/revision.js +1 -1
  113. package/lib/commands/instant-api-policy/revisions.js +1 -1
  114. package/lib/commands/instant-api-policy/rollback.js +1 -1
  115. package/lib/commands/instant-api-policy/shared.js +1 -1
  116. package/lib/commands/instant-api-policy/validate.js +1 -1
  117. package/lib/commands/issue/index.js +1 -1
  118. package/lib/commands/issue/nudge.js +1 -1
  119. package/lib/commands/issue/report.js +1 -1
  120. package/lib/commands/issue/shared.js +1 -1
  121. package/lib/commands/kb/create.js +1 -1
  122. package/lib/commands/kb/delete.js +1 -1
  123. package/lib/commands/kb/detail.js +1 -1
  124. package/lib/commands/kb/index.js +1 -1
  125. package/lib/commands/kb/list.js +1 -1
  126. package/lib/commands/kb/search.js +1 -1
  127. package/lib/commands/kb/shared.js +1 -1
  128. package/lib/commands/kb/update.js +1 -1
  129. package/lib/commands/logs/index.js +1 -1
  130. package/lib/commands/menu/asset-update.js +1 -1
  131. package/lib/commands/menu/delete.js +1 -1
  132. package/lib/commands/menu/external-link-create.js +1 -1
  133. package/lib/commands/menu/external-link-update.js +1 -1
  134. package/lib/commands/menu/group-create.js +1 -1
  135. package/lib/commands/menu/group-update.js +1 -1
  136. package/lib/commands/menu/index.js +1 -1
  137. package/lib/commands/menu/list.js +1 -1
  138. package/lib/commands/menu/move.js +1 -1
  139. package/lib/commands/menu/regroup-start.js +1 -1
  140. package/lib/commands/menu/rename.js +1 -1
  141. package/lib/commands/menu/shared/compare-table.js +1 -1
  142. package/lib/commands/menu/shared/delete-plan.js +1 -1
  143. package/lib/commands/menu/shared/facts.js +1 -1
  144. package/lib/commands/menu/shared/index.js +1 -1
  145. package/lib/commands/menu/shared/inquirer.js +1 -1
  146. package/lib/commands/menu/shared/local-pages.js +1 -1
  147. package/lib/commands/menu/shared/logic.js +1 -1
  148. package/lib/commands/menu/shared/mutations.js +1 -1
  149. package/lib/commands/menu/shared/service.js +1 -1
  150. package/lib/commands/menu/shared/sync-core.js +1 -1
  151. package/lib/commands/menu/shared/update-core.js +1 -1
  152. package/lib/commands/menu/shared/valid-url.js +1 -1
  153. package/lib/commands/menu/sync.js +1 -1
  154. package/lib/commands/menu/visibility-update.js +1 -1
  155. package/lib/commands/notification/config-create.js +1 -1
  156. package/lib/commands/notification/config-delete.js +1 -1
  157. package/lib/commands/notification/config-list.js +1 -1
  158. package/lib/commands/notification/config-update.js +1 -1
  159. package/lib/commands/notification/index.js +1 -1
  160. package/lib/commands/notification/shared.js +1 -1
  161. package/lib/commands/ocr/index.js +1 -1
  162. package/lib/commands/page/create.js +1 -1
  163. package/lib/commands/page/custom/detail.js +1 -1
  164. package/lib/commands/page/custom/list.js +1 -1
  165. package/lib/commands/page/custom/publish.js +1 -1
  166. package/lib/commands/page/custom/shared.d.ts +0 -8
  167. package/lib/commands/page/custom/shared.js +1 -1
  168. package/lib/commands/page/custom/syntax.js +1 -1
  169. package/lib/commands/page/custom/update.js +1 -1
  170. package/lib/commands/page/data-list-status.js +1 -1
  171. package/lib/commands/page/generate-start.js +1 -1
  172. package/lib/commands/page/generate-status.js +1 -1
  173. package/lib/commands/page/index.js +1 -1
  174. package/lib/commands/page/pull.js +1 -1
  175. package/lib/commands/page/push.js +1 -1
  176. package/lib/commands/page/relation-audit.js +1 -1
  177. package/lib/commands/page/restore.js +1 -1
  178. package/lib/commands/page/shared.js +1 -1
  179. package/lib/commands/page/sync.js +1 -1
  180. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  181. package/lib/commands/project/create/format-elapsed.js +1 -1
  182. package/lib/commands/project/create/main.js +1 -1
  183. package/lib/commands/project/create/materialize-project-template.js +1 -1
  184. package/lib/commands/project/create/project-name.js +1 -1
  185. package/lib/commands/project/create/project-template-archive.js +1 -1
  186. package/lib/commands/project/create/project-template-path.js +1 -1
  187. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  188. package/lib/commands/project/create/use-format-code.js +1 -1
  189. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  190. package/lib/commands/project/domain-routing-sync.js +1 -1
  191. package/lib/commands/project/index.js +1 -1
  192. package/lib/commands/project/upgrade.js +1 -1
  193. package/lib/commands/registry.js +1 -1
  194. package/lib/commands/role/delete.js +1 -1
  195. package/lib/commands/role/detail.js +1 -1
  196. package/lib/commands/role/index.js +1 -1
  197. package/lib/commands/role/list.js +1 -1
  198. package/lib/commands/role/shared.js +1 -1
  199. package/lib/commands/role/update.js +1 -1
  200. package/lib/commands/role/user-add.js +1 -1
  201. package/lib/commands/role/user-remove.js +1 -1
  202. package/lib/commands/role/user-resolve.js +1 -1
  203. package/lib/commands/rule/get.js +1 -1
  204. package/lib/commands/rule/index.js +1 -1
  205. package/lib/commands/rule/list.js +1 -1
  206. package/lib/commands/rule/set.js +1 -1
  207. package/lib/commands/rule/shared.js +1 -1
  208. package/lib/commands/run/index.d.ts +4 -0
  209. package/lib/commands/run/index.js +1 -1
  210. package/lib/commands/schema.js +1 -1
  211. package/lib/commands/sql/create.js +1 -1
  212. package/lib/commands/sql/delete.js +1 -1
  213. package/lib/commands/sql/detail.js +1 -1
  214. package/lib/commands/sql/exec.js +1 -1
  215. package/lib/commands/sql/index.js +1 -1
  216. package/lib/commands/sql/list.js +1 -1
  217. package/lib/commands/sql/pull.js +1 -1
  218. package/lib/commands/sql/push.js +1 -1
  219. package/lib/commands/sql/shared.js +1 -1
  220. package/lib/commands/sql/status.js +1 -1
  221. package/lib/commands/sql/validate.js +1 -1
  222. package/lib/commands/task/index.js +1 -1
  223. package/lib/commands/task/status.js +1 -1
  224. package/lib/commands/tenant/index.js +1 -1
  225. package/lib/commands/tenant/members-list.js +1 -1
  226. package/lib/commands/tenant/shared.js +1 -1
  227. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  228. package/lib/commands/user-account/index.js +1 -1
  229. package/lib/commands/workspace/add.js +1 -1
  230. package/lib/commands/workspace/index.js +1 -1
  231. package/lib/commands/workspace/remove.js +1 -1
  232. package/lib/config/domain-config.js +1 -1
  233. package/lib/config/project-domain-routing.d.ts +5 -1
  234. package/lib/config/project-domain-routing.js +1 -1
  235. package/lib/config/schema.js +1 -1
  236. package/lib/constant/cdn.js +1 -1
  237. package/lib/constant/cli.js +1 -1
  238. package/lib/constant/defaults.js +1 -1
  239. package/lib/constant/domain.js +1 -1
  240. package/lib/constant/env.js +1 -1
  241. package/lib/constant/output.js +1 -1
  242. package/lib/constant/paths.js +1 -1
  243. package/lib/constant/region.js +1 -1
  244. package/lib/constant/risk.js +1 -1
  245. package/lib/constant/routing-profile.js +1 -1
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.js +1 -1
  250. package/lib/core/alias-resolver.js +1 -1
  251. package/lib/core/api-client.d.ts +0 -26
  252. package/lib/core/api-client.js +1 -1
  253. package/lib/core/bff/config.js +1 -1
  254. package/lib/core/bff/file-system.js +1 -1
  255. package/lib/core/bff/hash.js +1 -1
  256. package/lib/core/bff/lock.js +1 -1
  257. package/lib/core/bff/utils.js +1 -1
  258. package/lib/core/db-resolver.js +1 -1
  259. package/lib/core/instant-api-policy/config.js +1 -1
  260. package/lib/core/kb-search-client.js +1 -1
  261. package/lib/core/page/file-system.d.ts +43 -0
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/sql-index-auditor.js +1 -1
  266. package/lib/core/sql-sync/config.js +1 -1
  267. package/lib/core/sql-sync/file-system.js +1 -1
  268. package/lib/core/sql-sync/hash.js +1 -1
  269. package/lib/core/sql-sync/lock.js +1 -1
  270. package/lib/core/sql-sync/utils.js +1 -1
  271. package/lib/core/sql-validator.js +1 -1
  272. package/lib/errors.js +1 -1
  273. package/lib/framework/build-all-flags.js +1 -1
  274. package/lib/framework/error-output.js +1 -1
  275. package/lib/framework/explicit-yes.js +1 -1
  276. package/lib/framework/flags.js +1 -1
  277. package/lib/framework/help.js +1 -1
  278. package/lib/framework/index.js +1 -1
  279. package/lib/framework/output.js +1 -1
  280. package/lib/framework/response.js +1 -1
  281. package/lib/framework/runner-alias.js +1 -1
  282. package/lib/framework/runner.js +1 -1
  283. package/lib/framework/schema-export.js +1 -1
  284. package/lib/framework/supported-flags.js +1 -1
  285. package/lib/framework/types.js +1 -1
  286. package/lib/generated/build-info.d.ts +4 -4
  287. package/lib/generated/build-info.js +1 -1
  288. package/lib/generated/official-routing.js +1 -1
  289. package/lib/generated/routing-contract.js +1 -1
  290. package/lib/help.js +1 -1
  291. package/lib/postinstall.js +1 -1
  292. package/lib/runtime/confirmation.js +1 -1
  293. package/lib/runtime/event.js +1 -1
  294. package/lib/runtime/index.js +1 -1
  295. package/lib/runtime/queue.js +1 -1
  296. package/lib/runtime/resolve.js +1 -1
  297. package/lib/skills/builtin-skill.js +1 -1
  298. package/lib/skills/main.js +1 -1
  299. package/lib/skills/npx-skills-add.js +1 -1
  300. package/lib/skills/skill-presence.js +1 -1
  301. package/lib/telemetry/cli-command-trace.js +1 -1
  302. package/lib/telemetry/cli-help-trace.js +1 -1
  303. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  304. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  305. package/lib/telemetry/send-cli-trace-log.js +1 -1
  306. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  307. package/lib/utils/ai_config.js +1 -1
  308. package/lib/utils/apply-jq-filter.js +1 -1
  309. package/lib/utils/cdn-config.js +1 -1
  310. package/lib/utils/check-sdk-version.js +1 -1
  311. package/lib/utils/cli-version-check.js +1 -1
  312. package/lib/utils/cli-version-policy.js +1 -1
  313. package/lib/utils/config.js +1 -1
  314. package/lib/utils/entity-with-id.js +1 -1
  315. package/lib/utils/file-utils.js +1 -1
  316. package/lib/utils/guides-cdn.js +1 -1
  317. package/lib/utils/http-client.js +1 -1
  318. package/lib/utils/is-non-interactive.js +1 -1
  319. package/lib/utils/logger.js +1 -1
  320. package/lib/utils/params.js +1 -1
  321. package/lib/utils/platform.js +1 -1
  322. package/lib/utils/sleep.js +1 -1
  323. package/lib/utils/template-replacer.js +1 -1
  324. package/lib/utils/update-notice.js +1 -1
  325. package/lib/utils/version.js +1 -1
  326. package/lib/utils/with-active-cookie.js +1 -1
  327. package/lib/utils/write-cli-side-channel.js +1 -1
  328. package/package.json +2 -1
  329. package/skills/rabetbase/SKILL.md +5 -5
  330. package/skills/rabetbase/guides/custom-page-workflow.md +35 -17
  331. package/skills/rabetbase/guides/page-development-workflow.md +1 -1
  332. package/skills/rabetbase/knowledge/components.md +292 -0
  333. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +74 -4
  334. package/skills/rabetbase/knowledge/custom-page/page-templates.md +68 -0
  335. package/skills/rabetbase/references/rabetbase-page-create.md +21 -9
  336. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +1 -1
  337. package/skills/rabetbase/references/rabetbase-page-custom-update.md +13 -9
  338. package/skills/rabetbase/references/rabetbase-project-create.md +5 -2
  339. package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +2 -2
  340. package/skills/rabetbase/references/rabetbase-run.md +1 -0
  341. package/skills/rabetbase.manifest.json +5 -4
  342. package/templates/README.md +10 -4
  343. package/templates/custom-pages/blank.json +5 -0
  344. package/templates/custom-pages/dashboard.json +5 -0
  345. package/templates/custom-pages/onepage.json +5 -0
  346. package/templates/generate-api/api.ts.tpl +1 -1
  347. package/lib/commands/page/custom/template.d.ts +0 -8
  348. package/lib/commands/page/custom/template.js +0 -1
  349. package/skills/rabetbase/knowledge/custom-page/components.md +0 -225
@@ -1 +1 @@
1
- const a84_0x231f3c=a84_0x5679;function a84_0x5679(_0x14b918,_0x35d489){_0x14b918=_0x14b918-0x1b1;const _0xb3a425=a84_0xb3a4();let _0x567948=_0xb3a425[_0x14b918];return _0x567948;}function a84_0xb3a4(){const _0x1f08f5=[';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','databasePage','autostart','8.0','planId','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Extra\x20JDBC-style\x20connection\x20parameters\x20string','appCode','569554pSPlDz','str','9uuIpyl','dbparam','[redacted]','skip-connection-test','26034vyDuwo','Human-readable\x20description','validation','dbname','60969leYyoC','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','dbversion','create','join','Database\x20password','dbdesc','dbtype','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','871384dmlTgi','password','trim','Create\x20dblink','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','Database\x20username','bool','write','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','string','579996nZXDqR','4541640TeVXqr','Host\x20and\x20port:\x20host:port','username','1201382PbdaQK','After\x20create,\x20start\x20schema\x20analysis','3tqZuPL','dburl','message','Created\x20db\x20link\x20','230aSrpkm'];a84_0xb3a4=function(){return _0x1f08f5;};return a84_0xb3a4();}(function(_0x593f1c,_0x492ce9){const _0x945b06=a84_0x5679,_0x5d1ccd=_0x593f1c();while(!![]){try{const _0x5e8272=-parseInt(_0x945b06(0x1dc))/0x1+parseInt(_0x945b06(0x1d2))/0x2*(-parseInt(_0x945b06(0x1c5))/0x3)+parseInt(_0x945b06(0x1bf))/0x4+-parseInt(_0x945b06(0x1c9))/0x5*(-parseInt(_0x945b06(0x1d8))/0x6)+-parseInt(_0x945b06(0x1c3))/0x7+-parseInt(_0x945b06(0x1b5))/0x8*(parseInt(_0x945b06(0x1d4))/0x9)+parseInt(_0x945b06(0x1c0))/0xa;if(_0x5e8272===_0x492ce9)break;else _0x5d1ccd['push'](_0x5d1ccd['shift']());}catch(_0x18fad8){_0x5d1ccd['push'](_0x5d1ccd['shift']());}}}(a84_0xb3a4,0x2a1ae));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';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_0x231f3c(0x1df),'description':a84_0x231f3c(0x1bd),'risk':a84_0x231f3c(0x1bc),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a84_0x231f3c(0x1db),'type':a84_0x231f3c(0x1be),'required':!![],'description':a84_0x231f3c(0x1cf)},DB_TYPE_FLAG,{'name':a84_0x231f3c(0x1de),'type':a84_0x231f3c(0x1be),'description':a84_0x231f3c(0x1b4),'default':a84_0x231f3c(0x1cd)},{'name':a84_0x231f3c(0x1c6),'type':a84_0x231f3c(0x1be),'required':!![],'description':a84_0x231f3c(0x1c1)},{'name':a84_0x231f3c(0x1c2),'type':'string','required':!![],'description':a84_0x231f3c(0x1ba)},{'name':a84_0x231f3c(0x1b6),'type':a84_0x231f3c(0x1be),'required':!![],'description':a84_0x231f3c(0x1b1)},{'name':'dbparam','type':a84_0x231f3c(0x1be),'description':a84_0x231f3c(0x1d0)},{'name':a84_0x231f3c(0x1b2),'type':a84_0x231f3c(0x1be),'description':a84_0x231f3c(0x1d9)},{'name':a84_0x231f3c(0x1cc),'type':'boolean','description':a84_0x231f3c(0x1c4),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x46c85e){const _0x29ead3=a84_0x231f3c,_0x4a4081=_0x46c85e['str'](_0x29ead3(0x1c6))['trim']();if(!validateDbUrl(_0x4a4081))throw CliErrors[_0x29ead3(0x1da)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x4a4081+'\x22',_0x29ead3(0x1b9));},async 'dryRun'(_0x3a3b83){const _0x4725f4=a84_0x231f3c,_0x52d3ba={'appCode':_0x3a3b83['appCode'],'dbName':_0x3a3b83[_0x4725f4(0x1d3)]('dbname'),'dbType':_0x3a3b83['str'](_0x4725f4(0x1b3)),'dbVersion':_0x3a3b83[_0x4725f4(0x1d3)](_0x4725f4(0x1de))||'8.0','dbUrl':_0x3a3b83[_0x4725f4(0x1d3)](_0x4725f4(0x1c6))[_0x4725f4(0x1b7)](),'username':_0x3a3b83[_0x4725f4(0x1d3)]('username'),'password':_0x4725f4(0x1d6),..._0x3a3b83[_0x4725f4(0x1d3)](_0x4725f4(0x1d5))?{'dbParam':_0x3a3b83[_0x4725f4(0x1d3)](_0x4725f4(0x1d5))}:{},..._0x3a3b83[_0x4725f4(0x1d3)]('dbdesc')?{'dbDesc':_0x3a3b83[_0x4725f4(0x1d3)](_0x4725f4(0x1b2))}:{}};return{'method':'POST','url':'/smartapi/dblink/create','body':_0x52d3ba,'description':[_0x4725f4(0x1b8),_0x3a3b83[_0x4725f4(0x1bb)](_0x4725f4(0x1cc))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':'No\x20follow-up\x20analysis'][_0x4725f4(0x1e0)]('\x0a'),'connectionPreflight':{'enabled':!_0x3a3b83['bool'](_0x4725f4(0x1d7)),'executed':![]}};},async 'execute'(_0x5985a8){const _0x130170=a84_0x231f3c,_0x1463a6={'appCode':_0x5985a8[_0x130170(0x1d1)],'dbName':_0x5985a8[_0x130170(0x1d3)](_0x130170(0x1db)),'dbType':_0x5985a8['str'](_0x130170(0x1b3)),'dbVersion':_0x5985a8[_0x130170(0x1d3)](_0x130170(0x1de))||_0x130170(0x1cd),'dbUrl':_0x5985a8[_0x130170(0x1d3)]('dburl')[_0x130170(0x1b7)](),'username':_0x5985a8[_0x130170(0x1d3)](_0x130170(0x1c2)),'password':_0x5985a8[_0x130170(0x1d3)](_0x130170(0x1b6)),..._0x5985a8[_0x130170(0x1d3)](_0x130170(0x1d5))?{'dbParam':_0x5985a8[_0x130170(0x1d3)](_0x130170(0x1d5))}:{},..._0x5985a8[_0x130170(0x1d3)](_0x130170(0x1b2))?{'dbDesc':_0x5985a8[_0x130170(0x1d3)]('dbdesc')}:{}};!_0x5985a8[_0x130170(0x1bb)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x1463a6);const {id:_0x364e31,entity:_0x45c6bc}=normalizeEntityWithIdResponse(await createDbLink(_0x1463a6));if(!_0x364e31)return{'ok':![],'message':_0x130170(0x1dd),'data':sanitizeDbLinkForOutput(_0x45c6bc)};let _0x2268e6,_0x2e3cbc;if(_0x5985a8['bool'](_0x130170(0x1cc)))try{_0x2268e6=(await startDbAnalysis(_0x364e31))[_0x130170(0x1ce)];}catch(_0xdc20a1){_0x2e3cbc=_0xdc20a1 instanceof Error?_0xdc20a1[_0x130170(0x1c7)]:String(_0xdc20a1);}const _0x40078f=buildDbPageLinks(_0x5985a8['appCode'],_0x364e31),_0x67a805={'connection':sanitizeDbLinkForOutput(_0x45c6bc),..._0x40078f?{'links':{'databasePage':_0x40078f[_0x130170(0x1cb)]}}:{},..._0x2268e6?{'analysisPlanId':_0x2268e6}:{},..._0x2e3cbc?{'analysisStartWarning':_0x2e3cbc}:{}};let _0x215815;return _0x5985a8['bool']('autostart')?_0x2e3cbc?_0x215815=_0x130170(0x1c8)+_0x364e31+_0x130170(0x1ca):_0x215815=_0x130170(0x1c8)+_0x364e31+'\x20and\x20started\x20analysis':_0x215815='Created\x20db\x20link\x20'+_0x364e31,{'ok':!![],'data':_0x67a805,'message':_0x215815};}};
1
+ const a84_0x557ba9=a84_0xeeff;(function(_0xa92f9d,_0x3dde2d){const _0xbe8149=a84_0xeeff,_0x13e42e=_0xa92f9d();while(!![]){try{const _0x95c2ab=-parseInt(_0xbe8149(0x12f))/0x1+-parseInt(_0xbe8149(0x14e))/0x2+parseInt(_0xbe8149(0x151))/0x3+parseInt(_0xbe8149(0x14a))/0x4+parseInt(_0xbe8149(0x145))/0x5+-parseInt(_0xbe8149(0x139))/0x6*(parseInt(_0xbe8149(0x12d))/0x7)+parseInt(_0xbe8149(0x131))/0x8;if(_0x95c2ab===_0x3dde2d)break;else _0x13e42e['push'](_0x13e42e['shift']());}catch(_0x6e7fef){_0x13e42e['push'](_0x13e42e['shift']());}}}(a84_0x483e,0x1cf3f));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a84_0xeeff(_0x31a7ef,_0x858afc){_0x31a7ef=_0x31a7ef-0x128;const _0x483eaf=a84_0x483e();let _0xeeff40=_0x483eaf[_0x31a7ef];return _0xeeff40;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a84_0x483e(){const _0x1cd0b5=['planId','234082hpGXHB','POST','112104nfkIvf','\x20and\x20started\x20analysis','dbparam','autostart','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','8.0','No\x20follow-up\x20analysis','bool','6FpnFGq','After\x20create,\x20start\x20schema\x20analysis',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','dbversion','string','dbtype','trim','write','appCode','dburl','join','create','555950NhBdwH','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','dbname','str','username','682076sslJDg','Created\x20db\x20link\x20','databasePage','skip-connection-test','190090iPuXSN','boolean','Host\x20and\x20port:\x20host:port','605250JFraZo','Database\x20username','Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22','Extra\x20JDBC-style\x20connection\x20parameters\x20string','dbdesc','password','Database\x20password','348278OvyvHa'];a84_0x483e=function(){return _0x1cd0b5;};return a84_0x483e();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a84_0x557ba9(0x144),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a84_0x557ba9(0x140),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','required':!![],'description':'Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server'},DB_TYPE_FLAG,{'name':'dbversion','type':a84_0x557ba9(0x13d),'description':a84_0x557ba9(0x146),'default':'8.0'},{'name':a84_0x557ba9(0x142),'type':a84_0x557ba9(0x13d),'required':!![],'description':a84_0x557ba9(0x150)},{'name':a84_0x557ba9(0x149),'type':a84_0x557ba9(0x13d),'required':!![],'description':a84_0x557ba9(0x152)},{'name':a84_0x557ba9(0x12b),'type':a84_0x557ba9(0x13d),'required':!![],'description':a84_0x557ba9(0x12c)},{'name':a84_0x557ba9(0x133),'type':'string','description':a84_0x557ba9(0x129)},{'name':a84_0x557ba9(0x12a),'type':a84_0x557ba9(0x13d),'description':'Human-readable\x20description'},{'name':a84_0x557ba9(0x134),'type':a84_0x557ba9(0x14f),'description':a84_0x557ba9(0x13a),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1fc116){const _0x39eb4c=a84_0x557ba9,_0x3e53fa=_0x1fc116['str'](_0x39eb4c(0x142))['trim']();if(!validateDbUrl(_0x3e53fa))throw CliErrors['validation'](_0x39eb4c(0x128)+_0x3e53fa+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0x1d2d05){const _0x3e1fa4=a84_0x557ba9,_0x14d4b5={'appCode':_0x1d2d05[_0x3e1fa4(0x141)],'dbName':_0x1d2d05[_0x3e1fa4(0x148)]('dbname'),'dbType':_0x1d2d05[_0x3e1fa4(0x148)](_0x3e1fa4(0x13e)),'dbVersion':_0x1d2d05[_0x3e1fa4(0x148)](_0x3e1fa4(0x13c))||_0x3e1fa4(0x136),'dbUrl':_0x1d2d05['str'](_0x3e1fa4(0x142))[_0x3e1fa4(0x13f)](),'username':_0x1d2d05[_0x3e1fa4(0x148)](_0x3e1fa4(0x149)),'password':'[redacted]',..._0x1d2d05[_0x3e1fa4(0x148)](_0x3e1fa4(0x133))?{'dbParam':_0x1d2d05['str'](_0x3e1fa4(0x133))}:{},..._0x1d2d05['str'](_0x3e1fa4(0x12a))?{'dbDesc':_0x1d2d05['str'](_0x3e1fa4(0x12a))}:{}};return{'method':_0x3e1fa4(0x130),'url':'/smartapi/dblink/create','body':_0x14d4b5,'description':['Create\x20dblink',_0x1d2d05[_0x3e1fa4(0x138)](_0x3e1fa4(0x134))?_0x3e1fa4(0x135):_0x3e1fa4(0x137)][_0x3e1fa4(0x143)]('\x0a'),'connectionPreflight':{'enabled':!_0x1d2d05[_0x3e1fa4(0x138)](_0x3e1fa4(0x14d)),'executed':![]}};},async 'execute'(_0xff9d86){const _0x4e2102=a84_0x557ba9,_0x1f500f={'appCode':_0xff9d86[_0x4e2102(0x141)],'dbName':_0xff9d86['str'](_0x4e2102(0x147)),'dbType':_0xff9d86[_0x4e2102(0x148)](_0x4e2102(0x13e)),'dbVersion':_0xff9d86[_0x4e2102(0x148)]('dbversion')||'8.0','dbUrl':_0xff9d86[_0x4e2102(0x148)](_0x4e2102(0x142))['trim'](),'username':_0xff9d86[_0x4e2102(0x148)]('username'),'password':_0xff9d86['str']('password'),..._0xff9d86[_0x4e2102(0x148)](_0x4e2102(0x133))?{'dbParam':_0xff9d86[_0x4e2102(0x148)]('dbparam')}:{},..._0xff9d86[_0x4e2102(0x148)](_0x4e2102(0x12a))?{'dbDesc':_0xff9d86[_0x4e2102(0x148)](_0x4e2102(0x12a))}:{}};!_0xff9d86[_0x4e2102(0x138)](_0x4e2102(0x14d))&&await assertDbLinkConnectionPreflight(_0x1f500f);const {id:_0x48d472,entity:_0x1378ae}=normalizeEntityWithIdResponse(await createDbLink(_0x1f500f));if(!_0x48d472)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x1378ae)};let _0x5de4e7,_0x3089dd;if(_0xff9d86[_0x4e2102(0x138)](_0x4e2102(0x134)))try{_0x5de4e7=(await startDbAnalysis(_0x48d472))[_0x4e2102(0x12e)];}catch(_0x7b6cad){_0x3089dd=_0x7b6cad instanceof Error?_0x7b6cad['message']:String(_0x7b6cad);}const _0xbac3f7=buildDbPageLinks(_0xff9d86[_0x4e2102(0x141)],_0x48d472),_0x25aa37={'connection':sanitizeDbLinkForOutput(_0x1378ae),..._0xbac3f7?{'links':{'databasePage':_0xbac3f7[_0x4e2102(0x14c)]}}:{},..._0x5de4e7?{'analysisPlanId':_0x5de4e7}:{},..._0x3089dd?{'analysisStartWarning':_0x3089dd}:{}};let _0xb2657;return _0xff9d86[_0x4e2102(0x138)](_0x4e2102(0x134))?_0x3089dd?_0xb2657='Created\x20db\x20link\x20'+_0x48d472+_0x4e2102(0x13b):_0xb2657='Created\x20db\x20link\x20'+_0x48d472+_0x4e2102(0x132):_0xb2657=_0x4e2102(0x14b)+_0x48d472,{'ok':!![],'data':_0x25aa37,'message':_0xb2657};}};
@@ -1 +1 @@
1
- const a85_0xf43e9c=a85_0x4bdc;(function(_0x1dde4f,_0xb5480){const _0x6f3d9c=a85_0x4bdc,_0x40cd0b=_0x1dde4f();while(!![]){try{const _0x3dc81b=-parseInt(_0x6f3d9c(0xe4))/0x1*(parseInt(_0x6f3d9c(0xea))/0x2)+-parseInt(_0x6f3d9c(0xe7))/0x3*(parseInt(_0x6f3d9c(0xee))/0x4)+parseInt(_0x6f3d9c(0xf0))/0x5+parseInt(_0x6f3d9c(0xd5))/0x6+-parseInt(_0x6f3d9c(0xd6))/0x7+parseInt(_0x6f3d9c(0xe6))/0x8*(parseInt(_0x6f3d9c(0xe5))/0x9)+-parseInt(_0x6f3d9c(0xf8))/0xa*(-parseInt(_0x6f3d9c(0xdd))/0xb);if(_0x3dc81b===_0xb5480)break;else _0x40cd0b['push'](_0x40cd0b['shift']());}catch(_0x373618){_0x40cd0b['push'](_0x40cd0b['shift']());}}}(a85_0x540a,0x42e40));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_0xf43e9c(0xda),'type':'boolean','description':'Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count'},EXPECTED_DATASET_COUNT_FLAG={'name':a85_0xf43e9c(0xfa),'type':a85_0xf43e9c(0xd9),'description':a85_0xf43e9c(0xde)};export const dbDelete={'service':'db','command':'delete','description':a85_0xf43e9c(0xdb),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x4343c9){const _0x8b7df7=a85_0xf43e9c,_0x2fb0ae=await loadDeleteImpact(_0x4343c9);return assertExpectedDatasetCount(_0x4343c9,_0x2fb0ae[_0x8b7df7(0xf2)][_0x8b7df7(0xec)]),{'method':_0x8b7df7(0xe1),'url':_0x8b7df7(0xd8),'body':{'id':_0x2fb0ae['id']},'description':_0x2fb0ae[_0x8b7df7(0xf2)][_0x8b7df7(0xec)]>0x0?_0x8b7df7(0xe2)+_0x2fb0ae[_0x8b7df7(0xf2)][_0x8b7df7(0xec)]+_0x8b7df7(0xf3):_0x8b7df7(0xed),..._0x2fb0ae};},async 'execute'(_0x5ab0dd){const _0x3c8948=a85_0xf43e9c;if(!_0x5ab0dd[_0x3c8948(0xe3)](_0x3c8948(0xda)))throw CliErrors['validation'](_0x3c8948(0xdc),_0x3c8948(0xf6));const _0x832d43=_0x5ab0dd[_0x3c8948(0xe0)]('id'),_0x542e2a=await loadDeleteImpact(_0x5ab0dd),_0x521176=_0x542e2a[_0x3c8948(0xf2)]['activeDatasetCount'];assertExpectedDatasetCount(_0x5ab0dd,_0x521176);if(_0x521176>0x0)throw CliErrors[_0x3c8948(0xf9)](_0x3c8948(0xf5)+_0x832d43+_0x3c8948(0xe8)+_0x521176+'\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.',_0x3c8948(0xf1));return await deleteDbLink(_0x832d43),{'ok':!![],'data':{'id':_0x832d43,'deleted':!![],'activeDatasetCount':_0x521176},'message':_0x3c8948(0xfb)+_0x832d43};}};async function loadDeleteImpact(_0x83bda2){const _0xf14ad6=a85_0xf43e9c,_0x33de9b=_0x83bda2[_0xf14ad6(0xe0)]('id'),[_0x17ae4d,_0x136f6a]=await Promise[_0xf14ad6(0xe9)]([getDbLinkInfo(_0x33de9b),listDatasets(_0x83bda2['appCode'],{'source':_0xf14ad6(0xd7)})]),_0x56fbb8=buildDbDatasetDependency(_0x17ae4d,_0x136f6a);return{'id':_0x33de9b,'connection':sanitizeDbLinkForOutput(_0x17ae4d),'datasetDependency':_0x56fbb8['datasetDependency'],'activeDatasetCount':_0x56fbb8['datasetDependency'][_0xf14ad6(0xec)],'datasets':_0x56fbb8[_0xf14ad6(0xf7)]};}function a85_0x4bdc(_0x399a23,_0x57e3c5){_0x399a23=_0x399a23-0xd5;const _0x540a18=a85_0x540a();let _0x4bdc3e=_0x540a18[_0x399a23];return _0x4bdc3e;}function assertExpectedDatasetCount(_0x6a1674,_0x297b96){const _0x430705=a85_0xf43e9c,_0x2464ca=_0x6a1674[_0x430705(0xeb)](_0x430705(0xfa));if(_0x2464ca===undefined||_0x2464ca==='')return;const _0x4df798=_0x6a1674['num'](_0x430705(0xfa));if(!Number[_0x430705(0xf4)](_0x4df798)||_0x4df798<0x0)throw CliErrors[_0x430705(0xf9)](_0x430705(0xdf));if(_0x4df798!==_0x297b96)throw CliErrors[_0x430705(0xf9)]('Expected\x20'+_0x4df798+_0x430705(0xef)+_0x297b96+'.','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.');}function a85_0x540a(){const _0x1a69ef=['--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','num','POST','Deletion\x20is\x20blocked\x20by\x20','bool','7732diLYVp','44991uKXNyN','584gczxqc','1029KWPwKd','\x20still\x20has\x20','all','106KUODGX','flag','activeDatasetCount','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','3212WJpXhR','\x20active\x20Dataset(s),\x20but\x20found\x20','2218720zcckaJ','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','datasetDependency','\x20active\x20DB_TABLE\x20Dataset(s).','isInteger','Database\x20connection\x20','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','datasets','70lceJae','validation','expected-dataset-count','Deleted\x20db\x20link\x20','1751214JwPIwL','1991612HGpPqb','DB_TABLE','/smartapi/dblink/delete','number','confirm','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','225005axXYDa','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value'];a85_0x540a=function(){return _0x1a69ef;};return a85_0x540a();}
1
+ function a85_0x4b70(){const _0x5bbb15=['271eholKL','/smartapi/dblink/delete','high-risk-write','all','784776OCPGWv','confirm','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','3530gMaBOR','datasetDependency','Expected\x20','24408bixwFG','appCode','329dxBJlh','234924DhbPmp','212685kGgfLf','POST','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','394980cNHkVD','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','Deleted\x20db\x20link\x20','delete','\x20active\x20Dataset(s),\x20but\x20found\x20','isInteger','number','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','bool','182BvfttW','boolean','flag','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','expected-dataset-count','\x20active\x20DB_TABLE\x20Dataset(s).','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','validation','activeDatasetCount','num','4653dXqNGF','DB_TABLE'];a85_0x4b70=function(){return _0x5bbb15;};return a85_0x4b70();}const a85_0x164c8b=a85_0x15c5;(function(_0x35a480,_0x1bcd4d){const _0x4100ec=a85_0x15c5,_0x189d94=_0x35a480();while(!![]){try{const _0x181587=parseInt(_0x4100ec(0x168))/0x1*(parseInt(_0x4100ec(0x182))/0x2)+-parseInt(_0x4100ec(0x176))/0x3+-parseInt(_0x4100ec(0x16c))/0x4+parseInt(_0x4100ec(0x179))/0x5+-parseInt(_0x4100ec(0x175))/0x6+-parseInt(_0x4100ec(0x174))/0x7*(-parseInt(_0x4100ec(0x172))/0x8)+-parseInt(_0x4100ec(0x166))/0x9*(-parseInt(_0x4100ec(0x16f))/0xa);if(_0x181587===_0x1bcd4d)break;else _0x189d94['push'](_0x189d94['shift']());}catch(_0xdfed16){_0x189d94['push'](_0x189d94['shift']());}}}(a85_0x4b70,0x1e1b0));function a85_0x15c5(_0x4aa673,_0x4828e9){_0x4aa673=_0x4aa673-0x15d;const _0x4b7017=a85_0x4b70();let _0x15c596=_0x4b7017[_0x4aa673];return _0x15c596;}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':'confirm','type':a85_0x164c8b(0x183),'description':a85_0x164c8b(0x15f)},EXPECTED_DATASET_COUNT_FLAG={'name':a85_0x164c8b(0x160),'type':a85_0x164c8b(0x17f),'description':'Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value'};export const dbDelete={'service':'db','command':a85_0x164c8b(0x17c),'description':a85_0x164c8b(0x178),'risk':a85_0x164c8b(0x16a),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x54f11a){const _0x24ddd5=a85_0x164c8b,_0x38a820=await loadDeleteImpact(_0x54f11a);return assertExpectedDatasetCount(_0x54f11a,_0x38a820['datasetDependency']['activeDatasetCount']),{'method':_0x24ddd5(0x177),'url':_0x24ddd5(0x169),'body':{'id':_0x38a820['id']},'description':_0x38a820[_0x24ddd5(0x170)][_0x24ddd5(0x164)]>0x0?'Deletion\x20is\x20blocked\x20by\x20'+_0x38a820[_0x24ddd5(0x170)][_0x24ddd5(0x164)]+_0x24ddd5(0x161):_0x24ddd5(0x16e),..._0x38a820};},async 'execute'(_0x74f404){const _0x1c5ad3=a85_0x164c8b;if(!_0x74f404[_0x1c5ad3(0x181)](_0x1c5ad3(0x16d)))throw CliErrors['validation'](_0x1c5ad3(0x17a),_0x1c5ad3(0x180));const _0x5165f5=_0x74f404[_0x1c5ad3(0x165)]('id'),_0x28dd38=await loadDeleteImpact(_0x74f404),_0x1a3f8a=_0x28dd38[_0x1c5ad3(0x170)][_0x1c5ad3(0x164)];assertExpectedDatasetCount(_0x74f404,_0x1a3f8a);if(_0x1a3f8a>0x0)throw CliErrors[_0x1c5ad3(0x163)]('Database\x20connection\x20'+_0x5165f5+'\x20still\x20has\x20'+_0x1a3f8a+'\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.',_0x1c5ad3(0x162));return await deleteDbLink(_0x5165f5),{'ok':!![],'data':{'id':_0x5165f5,'deleted':!![],'activeDatasetCount':_0x1a3f8a},'message':_0x1c5ad3(0x17b)+_0x5165f5};}};async function loadDeleteImpact(_0x2bedf1){const _0x1a84e9=a85_0x164c8b,_0x55c9af=_0x2bedf1[_0x1a84e9(0x165)]('id'),[_0x400504,_0x1e2573]=await Promise[_0x1a84e9(0x16b)]([getDbLinkInfo(_0x55c9af),listDatasets(_0x2bedf1[_0x1a84e9(0x173)],{'source':_0x1a84e9(0x167)})]),_0x3f406d=buildDbDatasetDependency(_0x400504,_0x1e2573);return{'id':_0x55c9af,'connection':sanitizeDbLinkForOutput(_0x400504),'datasetDependency':_0x3f406d[_0x1a84e9(0x170)],'activeDatasetCount':_0x3f406d['datasetDependency']['activeDatasetCount'],'datasets':_0x3f406d['datasets']};}function assertExpectedDatasetCount(_0x38cb2b,_0x557519){const _0x2e9e9c=a85_0x164c8b,_0x330edf=_0x38cb2b[_0x2e9e9c(0x15d)](_0x2e9e9c(0x160));if(_0x330edf===undefined||_0x330edf==='')return;const _0x238b83=_0x38cb2b[_0x2e9e9c(0x165)]('expected-dataset-count');if(!Number[_0x2e9e9c(0x17e)](_0x238b83)||_0x238b83<0x0)throw CliErrors[_0x2e9e9c(0x163)](_0x2e9e9c(0x15e));if(_0x238b83!==_0x557519)throw CliErrors['validation'](_0x2e9e9c(0x171)+_0x238b83+_0x2e9e9c(0x17d)+_0x557519+'.','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.');}
@@ -1 +1 @@
1
- const a86_0x21efd6=a86_0x488c;(function(_0x61b2e6,_0x5aebff){const _0x2618d5=a86_0x488c,_0x234296=_0x61b2e6();while(!![]){try{const _0x5eb511=-parseInt(_0x2618d5(0x173))/0x1*(parseInt(_0x2618d5(0x17f))/0x2)+parseInt(_0x2618d5(0x175))/0x3*(parseInt(_0x2618d5(0x176))/0x4)+-parseInt(_0x2618d5(0x177))/0x5+-parseInt(_0x2618d5(0x17d))/0x6*(-parseInt(_0x2618d5(0x178))/0x7)+parseInt(_0x2618d5(0x17e))/0x8+parseInt(_0x2618d5(0x17b))/0x9+-parseInt(_0x2618d5(0x17a))/0xa*(parseInt(_0x2618d5(0x171))/0xb);if(_0x5eb511===_0x5aebff)break;else _0x234296['push'](_0x234296['shift']());}catch(_0xe56102){_0x234296['push'](_0x234296['shift']());}}}(a86_0x4c99,0xe4bea));function a86_0x4c99(){const _0x1e373c=['509610uQavRl','9569424BzkgTw','2TzDfgG','read','583sBdAbK','DB_TABLE','173483MFxAsL','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','9owXWhG','1260724mZOfmU','7028215jUDHFj','91Tyoswd','db\x20link\x20','467570dMxank','15734781PmJDrd','datasetDependency'];a86_0x4c99=function(){return _0x1e373c;};return a86_0x4c99();}import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a86_0x488c(_0x8a8cbb,_0x4a509a){_0x8a8cbb=_0x8a8cbb-0x171;const _0x4c990e=a86_0x4c99();let _0x488cc1=_0x4c990e[_0x8a8cbb];return _0x488cc1;}export const dbDetail={'service':'db','command':'detail','description':a86_0x21efd6(0x174),'risk':a86_0x21efd6(0x180),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5bb0a6){const _0x77acce=a86_0x21efd6,_0x480ac7=_0x5bb0a6['num']('id'),_0x4e6402=await getDbLinkInfo(_0x480ac7),_0x39817d=await listDatasets(_0x4e6402['appCode']||_0x5bb0a6['appCode'],{'source':_0x77acce(0x172)}),_0x41f89c=buildDbDatasetDependency(_0x4e6402,_0x39817d);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x4e6402),'datasetDependency':_0x41f89c[_0x77acce(0x17c)]},'message':_0x77acce(0x179)+_0x480ac7+':\x20'+_0x4e6402['dbName']};}};
1
+ const a86_0xc2b09b=a86_0x5e7b;(function(_0x2366bd,_0x2733b1){const _0x509aea=a86_0x5e7b,_0x5cb3f4=_0x2366bd();while(!![]){try{const _0x2ff6d4=-parseInt(_0x509aea(0x7d))/0x1+parseInt(_0x509aea(0x78))/0x2*(parseInt(_0x509aea(0x80))/0x3)+parseInt(_0x509aea(0x74))/0x4+parseInt(_0x509aea(0x7c))/0x5+parseInt(_0x509aea(0x75))/0x6+parseInt(_0x509aea(0x77))/0x7+-parseInt(_0x509aea(0x7e))/0x8;if(_0x2ff6d4===_0x2733b1)break;else _0x5cb3f4['push'](_0x5cb3f4['shift']());}catch(_0x230096){_0x5cb3f4['push'](_0x5cb3f4['shift']());}}}(a86_0x1c44,0xa0477));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a86_0x5e7b(_0x9cff3c,_0x3c8d86){_0x9cff3c=_0x9cff3c-0x72;const _0x1c44c3=a86_0x1c44();let _0x5e7b9d=_0x1c44c3[_0x9cff3c];return _0x5e7b9d;}function a86_0x1c44(){const _0x28973d=['5146218GUPaFk','6AdMDZs','appCode','DB_TABLE','read','3457645BJYVrJ','627399yPenfq','15913016WQUPMs','db\x20link\x20','936633mNndHe','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','detail','3398036jPfaUR','361104QLPhXo','dbName'];a86_0x1c44=function(){return _0x28973d;};return a86_0x1c44();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a86_0xc2b09b(0x73),'description':a86_0xc2b09b(0x72),'risk':a86_0xc2b09b(0x7b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2686ea){const _0x19512c=a86_0xc2b09b,_0x135c62=_0x2686ea['num']('id'),_0xbff35=await getDbLinkInfo(_0x135c62),_0x8150ae=await listDatasets(_0xbff35['appCode']||_0x2686ea[_0x19512c(0x79)],{'source':_0x19512c(0x7a)}),_0x29cdf6=buildDbDatasetDependency(_0xbff35,_0x8150ae);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0xbff35),'datasetDependency':_0x29cdf6['datasetDependency']},'message':_0x19512c(0x7f)+_0x135c62+':\x20'+_0xbff35[_0x19512c(0x76)]};}};
@@ -1 +1 @@
1
- const a87_0x34130b=a87_0x9bac;(function(_0x3045bb,_0x50c34b){const _0x3b5972=a87_0x9bac,_0x37558b=_0x3045bb();while(!![]){try{const _0x5b95d9=parseInt(_0x3b5972(0x16a))/0x1*(parseInt(_0x3b5972(0x165))/0x2)+-parseInt(_0x3b5972(0x16d))/0x3*(-parseInt(_0x3b5972(0x15d))/0x4)+parseInt(_0x3b5972(0x155))/0x5*(-parseInt(_0x3b5972(0x159))/0x6)+-parseInt(_0x3b5972(0x167))/0x7*(parseInt(_0x3b5972(0x160))/0x8)+parseInt(_0x3b5972(0x157))/0x9*(parseInt(_0x3b5972(0x15b))/0xa)+-parseInt(_0x3b5972(0x162))/0xb+parseInt(_0x3b5972(0x161))/0xc*(parseInt(_0x3b5972(0x15f))/0xd);if(_0x5b95d9===_0x50c34b)break;else _0x37558b['push'](_0x37558b['shift']());}catch(_0x5d2ed8){_0x37558b['push'](_0x37558b['shift']());}}}(a87_0x4569,0x80333));import{startDbTableDiffRefresh}from'../../core/api-client.js';function a87_0x4569(){const _0x3a07e2=['24JbDgeK','3576ookkHG','1085733qZGRxy','diff-refresh-start','traceId','416882krJXNT','validation','1813728csvqeN','trim','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','2HMuTkJ','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','appCode','1673559YmvHpo','1745jsSWxb','\x20--plan\x20','4032EigDCn','status','6738zHOort','\x20db\x20diff-refresh-status\x20--id\x20','1550WKLXpV','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','4RQzekP','\x20--format\x20compress','32669eiWazr'];a87_0x4569=function(){return _0x3a07e2;};return a87_0x4569();}function a87_0x9bac(_0x1c2650,_0x41c844){_0x1c2650=_0x1c2650-0x155;const _0x4569c2=a87_0x4569();let _0x9bac2c=_0x4569c2[_0x1c2650];return _0x9bac2c;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a87_0x34130b(0x163),'description':a87_0x34130b(0x169),'risk':'write','flags':[DBLINK_ID_FLAG],async 'execute'(_0x5b0dd1){const _0xe68664=a87_0x34130b,_0x66e61=_0x5b0dd1['num']('id'),_0x1c5011=await startDbTableDiffRefresh(_0x5b0dd1[_0xe68664(0x16c)],_0x66e61),_0x11f3a0=_0x1c5011[_0xe68664(0x164)]?.[_0xe68664(0x168)]();if(!_0x11f3a0)throw CliErrors[_0xe68664(0x166)](_0xe68664(0x15c));return{'ok':!![],'data':{'dbLinkId':_0x66e61,'traceId':_0x11f3a0,'status':_0x1c5011[_0xe68664(0x158)]??null,'query':{'command':CLI_BIN_NAME+_0xe68664(0x15a)+_0x66e61+_0xe68664(0x156)+_0x11f3a0+_0xe68664(0x15e)}},'message':_0xe68664(0x16b)+_0x66e61};}};
1
+ const a87_0x3efaf5=a87_0xd10e;function a87_0x4b85(){const _0xc8dae4=['10598686YEnpkA','731910RLNHSV','appCode','794376SbwGaS','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','181389FiphSI','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','traceId','845280dARjtE','num','diff-refresh-start','trim','\x20--plan\x20','\x20--format\x20compress','2399625PdCxnz','984832fWhcHk','write'];a87_0x4b85=function(){return _0xc8dae4;};return a87_0x4b85();}(function(_0x6ee5e3,_0x4106dd){const _0x112463=a87_0xd10e,_0x336dbb=_0x6ee5e3();while(!![]){try{const _0x292b16=-parseInt(_0x112463(0x15b))/0x1+-parseInt(_0x112463(0x165))/0x2+-parseInt(_0x112463(0x168))/0x3+parseInt(_0x112463(0x15e))/0x4+-parseInt(_0x112463(0x164))/0x5+parseInt(_0x112463(0x159))/0x6+parseInt(_0x112463(0x167))/0x7;if(_0x292b16===_0x4106dd)break;else _0x336dbb['push'](_0x336dbb['shift']());}catch(_0x29a2f7){_0x336dbb['push'](_0x336dbb['shift']());}}}(a87_0x4b85,0x70552));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a87_0xd10e(_0x2cd5b5,_0x1e5a56){_0x2cd5b5=_0x2cd5b5-0x159;const _0x4b8546=a87_0x4b85();let _0xd10e58=_0x4b8546[_0x2cd5b5];return _0xd10e58;}import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a87_0x3efaf5(0x160),'description':a87_0x3efaf5(0x15c),'risk':a87_0x3efaf5(0x166),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x1d8e6b){const _0x5bfe60=a87_0x3efaf5,_0x553f99=_0x1d8e6b[_0x5bfe60(0x15f)]('id'),_0x249e24=await startDbTableDiffRefresh(_0x1d8e6b[_0x5bfe60(0x169)],_0x553f99),_0x21c47a=_0x249e24[_0x5bfe60(0x15d)]?.[_0x5bfe60(0x161)]();if(!_0x21c47a)throw CliErrors['validation'](_0x5bfe60(0x15a));return{'ok':!![],'data':{'dbLinkId':_0x553f99,'traceId':_0x21c47a,'status':_0x249e24['status']??null,'query':{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x553f99+_0x5bfe60(0x162)+_0x21c47a+_0x5bfe60(0x163)}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0x553f99};}};
@@ -1 +1 @@
1
- function a88_0x13ba(_0x13d02e,_0x1190a9){_0x13d02e=_0x13d02e-0x190;const _0x4568e9=a88_0x4568();let _0x13ba94=_0x4568e9[_0x13d02e];return _0x13ba94;}const a88_0x4f952f=a88_0x13ba;(function(_0x2c79fc,_0x398277){const _0x5d7bf0=a88_0x13ba,_0x38794c=_0x2c79fc();while(!![]){try{const _0x566778=parseInt(_0x5d7bf0(0x19f))/0x1*(-parseInt(_0x5d7bf0(0x1a7))/0x2)+parseInt(_0x5d7bf0(0x191))/0x3*(-parseInt(_0x5d7bf0(0x193))/0x4)+-parseInt(_0x5d7bf0(0x1a3))/0x5*(parseInt(_0x5d7bf0(0x19e))/0x6)+parseInt(_0x5d7bf0(0x197))/0x7+-parseInt(_0x5d7bf0(0x1a6))/0x8*(-parseInt(_0x5d7bf0(0x1a4))/0x9)+-parseInt(_0x5d7bf0(0x19b))/0xa+parseInt(_0x5d7bf0(0x19c))/0xb;if(_0x566778===_0x398277)break;else _0x38794c['push'](_0x38794c['shift']());}catch(_0x268b74){_0x38794c['push'](_0x38794c['shift']());}}}(a88_0x4568,0x71cbb));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a88_0x4568(){const _0x258f34=['num','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','has','15AFJtns','18RjtxUM','status','2001976KxHEow','734mNlqkG','RUNNING','RETRYING','diff-refresh-status','read','30mitfkS','UNKNOWN','123932jiOLMM','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','\x20--plan\x20','CANCELLED','931938qyCYib','\x20db\x20diff-refresh-status\x20--id\x20','SUCCESS','Table-diff\x20refresh\x20status\x20for\x20','1143950rTwcur','13624963qlZjkQ','str','1398678ARAeIJ','770xKOhrX'];a88_0x4568=function(){return _0x258f34;};return a88_0x4568();}import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a88_0x4f952f(0x199),'FAILED',a88_0x4f952f(0x196)]),RUNNING_STATUSES=new Set(['PENDING',a88_0x4f952f(0x1a8),a88_0x4f952f(0x1a9)]);export const dbDiffRefreshStatus={'service':'db','command':a88_0x4f952f(0x1aa),'description':a88_0x4f952f(0x194),'risk':a88_0x4f952f(0x190),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'plan','type':'string','required':!![],'description':a88_0x4f952f(0x1a1)}],async 'execute'(_0x28867c){const _0x4cfb96=a88_0x4f952f,_0x4b8d12=_0x28867c[_0x4cfb96(0x1a0)]('id'),_0x418456=_0x28867c[_0x4cfb96(0x19d)]('plan'),_0x117261=await getDbAnalysisStatus(_0x418456),_0x313556=_0x117261[_0x4cfb96(0x1a5)]??null,_0x2acc3c=TERMINAL_STATUSES[_0x4cfb96(0x1a2)](_0x313556??''),_0x1c25af=_0x313556===_0x4cfb96(0x199),_0x3ed336=_0x2acc3c||RUNNING_STATUSES[_0x4cfb96(0x1a2)](_0x313556??'');return{'ok':!![],'data':{'dbLinkId':_0x4b8d12,'planId':_0x418456,'status':_0x117261,'knownStatus':_0x3ed336,'isTerminal':_0x2acc3c,'isSuccessful':_0x1c25af,'query':_0x3ed336&&!_0x2acc3c?{'command':CLI_BIN_NAME+_0x4cfb96(0x198)+_0x4b8d12+_0x4cfb96(0x195)+_0x418456+'\x20--format\x20compress'}:null},'message':_0x4cfb96(0x19a)+_0x418456+':\x20'+(_0x313556??_0x4cfb96(0x192))};}};
1
+ const a88_0x22d4dc=a88_0x42af;(function(_0x5a415f,_0xd7aa8b){const _0x1f4b75=a88_0x42af,_0x349eae=_0x5a415f();while(!![]){try{const _0x108352=parseInt(_0x1f4b75(0x138))/0x1*(-parseInt(_0x1f4b75(0x143))/0x2)+-parseInt(_0x1f4b75(0x142))/0x3*(parseInt(_0x1f4b75(0x140))/0x4)+parseInt(_0x1f4b75(0x144))/0x5+-parseInt(_0x1f4b75(0x13a))/0x6*(-parseInt(_0x1f4b75(0x13b))/0x7)+parseInt(_0x1f4b75(0x149))/0x8+parseInt(_0x1f4b75(0x141))/0x9+-parseInt(_0x1f4b75(0x13e))/0xa*(parseInt(_0x1f4b75(0x13c))/0xb);if(_0x108352===_0xd7aa8b)break;else _0x349eae['push'](_0x349eae['shift']());}catch(_0x101890){_0x349eae['push'](_0x349eae['shift']());}}}(a88_0x3654,0x91230));import{getDbAnalysisStatus}from'../../core/api-client.js';function a88_0x42af(_0x34441f,_0x136726){_0x34441f=_0x34441f-0x138;const _0x3654a4=a88_0x3654();let _0x42af55=_0x3654a4[_0x34441f];return _0x42af55;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set([a88_0x22d4dc(0x14c),'FAILED',a88_0x22d4dc(0x146)]),RUNNING_STATUSES=new Set(['PENDING','RUNNING',a88_0x22d4dc(0x14b)]);function a88_0x3654(){const _0xb27537=['UNKNOWN','CANCELLED','status','Table-diff\x20refresh\x20status\x20for\x20','5898864JcVyPm','read','RETRYING','SUCCESS','str','\x20db\x20diff-refresh-status\x20--id\x20','diff-refresh-status','has','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','361ifVjhr','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','6065886wcaANT','7EaQSdL','269819DiXckh','plan','430YvaBMK','string','60GuJNiK','4225410QEgHrf','187458KEkGEa','1374frJaNZ','3083475bBtFul'];a88_0x3654=function(){return _0xb27537;};return a88_0x3654();}export const dbDiffRefreshStatus={'service':'db','command':a88_0x22d4dc(0x14f),'description':a88_0x22d4dc(0x151),'risk':a88_0x22d4dc(0x14a),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x22d4dc(0x13d),'type':a88_0x22d4dc(0x13f),'required':!![],'description':a88_0x22d4dc(0x139)}],async 'execute'(_0x50d50e){const _0x18030b=a88_0x22d4dc,_0x20b9e=_0x50d50e['num']('id'),_0x32f289=_0x50d50e[_0x18030b(0x14d)](_0x18030b(0x13d)),_0x323826=await getDbAnalysisStatus(_0x32f289),_0x415242=_0x323826[_0x18030b(0x147)]??null,_0x54f688=TERMINAL_STATUSES[_0x18030b(0x150)](_0x415242??''),_0x5d13b4=_0x415242===_0x18030b(0x14c),_0x9856b7=_0x54f688||RUNNING_STATUSES[_0x18030b(0x150)](_0x415242??'');return{'ok':!![],'data':{'dbLinkId':_0x20b9e,'planId':_0x32f289,'status':_0x323826,'knownStatus':_0x9856b7,'isTerminal':_0x54f688,'isSuccessful':_0x5d13b4,'query':_0x9856b7&&!_0x54f688?{'command':CLI_BIN_NAME+_0x18030b(0x14e)+_0x20b9e+'\x20--plan\x20'+_0x32f289+'\x20--format\x20compress'}:null},'message':_0x18030b(0x148)+_0x32f289+':\x20'+(_0x415242??_0x18030b(0x145))};}};
@@ -1 +1 @@
1
- function a89_0x43b5(_0x1790e3,_0xc70b43){_0x1790e3=_0x1790e3-0x151;const _0x1fb1bd=a89_0x1fb1();let _0x43b5a9=_0x1fb1bd[_0x1790e3];return _0x43b5a9;}const a89_0x107631=a89_0x43b5;(function(_0x310044,_0x43835b){const _0x365cfd=a89_0x43b5,_0x10162f=_0x310044();while(!![]){try{const _0x13d272=parseInt(_0x365cfd(0x16a))/0x1*(-parseInt(_0x365cfd(0x16f))/0x2)+parseInt(_0x365cfd(0x153))/0x3*(-parseInt(_0x365cfd(0x163))/0x4)+-parseInt(_0x365cfd(0x16b))/0x5*(-parseInt(_0x365cfd(0x177))/0x6)+-parseInt(_0x365cfd(0x176))/0x7+parseInt(_0x365cfd(0x157))/0x8*(parseInt(_0x365cfd(0x160))/0x9)+-parseInt(_0x365cfd(0x166))/0xa*(parseInt(_0x365cfd(0x173))/0xb)+parseInt(_0x365cfd(0x169))/0xc;if(_0x13d272===_0x43835b)break;else _0x10162f['push'](_0x10162f['shift']());}catch(_0x497c34){_0x10162f['push'](_0x10162f['shift']());}}}(a89_0x1fb1,0x68c2d));function a89_0x1fb1(){const _0x39a4ff=['826357FlkKDM','282090sOQACy','summary','diffType','DELETED_TABLE','3vrYPel','str','diff','MODIFIED_TABLE','270880HwypwO','NEW_TABLE','Page\x20size','pagesize','page','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','datasetTableCount','fieldDiff','string','216wGDXmJ','modifiedColumns','addedColumns','3271668WYWbkc','tableName','physicalTableCount','670NmfjdQ','\x20changed\x20table\x20row(s),\x20total\x20','map','12675024dqTUkD','1qsOMlN','35HQXQyG','read','num','Page\x20index\x20(1-based)','1307406yiRoXN','boolean','filter','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','29425ixlrda','deletedColumns','table'];a89_0x1fb1=function(){return _0x39a4ff;};return a89_0x1fb1();}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_0x107631(0x155),'description':a89_0x107631(0x15c),'risk':a89_0x107631(0x16c),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a89_0x107631(0x175),'type':a89_0x107631(0x15f),'description':a89_0x107631(0x172)},{'name':'page','type':'number','description':a89_0x107631(0x16e),'default':0x1},{'name':a89_0x107631(0x15a),'type':'number','description':a89_0x107631(0x159),'default':0x14},{'name':'all','type':a89_0x107631(0x170),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x2e10a9){const _0x1e19d4=a89_0x107631,_0x558976=_0x2e10a9[_0x1e19d4(0x16d)]('id'),_0x10925f=_0x2e10a9['bool']('all'),_0x56ea3d=_0x10925f?0x1:_0x2e10a9[_0x1e19d4(0x16d)](_0x1e19d4(0x15b),0x1)||0x1,_0x31f05d=_0x10925f?DB_TABLE_PAGE_SIZE:_0x2e10a9[_0x1e19d4(0x16d)](_0x1e19d4(0x15a),0x14)||0x14,_0x28b7c3=_0x2e10a9[_0x1e19d4(0x154)]('table')||undefined,_0x2add5d=_0x10925f?await getAllDbTableDiff(getDbTableDiff,_0x2e10a9['appCode'],_0x558976,_0x28b7c3):await getDbTableDiff(_0x2e10a9['appCode'],_0x558976,{'pageIndex':_0x56ea3d,'pageSize':_0x31f05d,'tableName':_0x28b7c3}),_0x224d82=_0x2add5d['tableList'],_0x1f2f9e=summarizeDbTableDiff(_0x224d82),_0x593fc3=_0x224d82[_0x1e19d4(0x171)](_0x565e1b=>_0x565e1b[_0x1e19d4(0x151)]===_0x1e19d4(0x158)||_0x565e1b[_0x1e19d4(0x151)]===_0x1e19d4(0x156))['map'](_0x5ac5bb=>_0x5ac5bb[_0x1e19d4(0x164)]),_0x1a9ade=_0x224d82[_0x1e19d4(0x171)](_0x427c58=>_0x427c58[_0x1e19d4(0x151)]===_0x1e19d4(0x152))['map'](_0x5e7747=>_0x5e7747['tableName']),_0x28c5de=_0x224d82[_0x1e19d4(0x171)](_0x721508=>_0x721508[_0x1e19d4(0x151)]===_0x1e19d4(0x156))[_0x1e19d4(0x168)](_0x4961c0=>({'tableName':_0x4961c0[_0x1e19d4(0x164)],'addedColumns':_0x4961c0[_0x1e19d4(0x15e)]?.[_0x1e19d4(0x162)]??[],'deletedColumns':_0x4961c0[_0x1e19d4(0x15e)]?.[_0x1e19d4(0x174)]??[],'modifiedColumns':_0x4961c0[_0x1e19d4(0x15e)]?.[_0x1e19d4(0x161)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x558976,'page':_0x56ea3d,'pageSize':_0x31f05d,'totalCount':_0x2add5d['totalCount'],...typeof _0x2add5d[_0x1e19d4(0x165)]==='number'?{'physicalTableCount':_0x2add5d[_0x1e19d4(0x165)]}:{},...typeof _0x2add5d[_0x1e19d4(0x15d)]==='number'?{'datasetTableCount':_0x2add5d[_0x1e19d4(0x15d)]}:{},..._0x2add5d['summary']?{'summary':_0x2add5d[_0x1e19d4(0x178)]}:{},'summaryByType':_0x1f2f9e,'toAnalyzeTables':_0x593fc3,'deletedTables':_0x1a9ade,'modifiedFieldDiffs':_0x28c5de,'tables':_0x224d82},'message':_0x224d82['length']+_0x1e19d4(0x167)+_0x2add5d['totalCount']+'\x20(db\x20link\x20'+_0x558976+')'};}};
1
+ const a89_0x14b22a=a89_0x1bf9;(function(_0x4fec3d,_0x441408){const _0xfef60b=a89_0x1bf9,_0x3b7156=_0x4fec3d();while(!![]){try{const _0x1efd4e=-parseInt(_0xfef60b(0x1c4))/0x1*(parseInt(_0xfef60b(0x1a1))/0x2)+-parseInt(_0xfef60b(0x1b9))/0x3*(-parseInt(_0xfef60b(0x1a6))/0x4)+-parseInt(_0xfef60b(0x1a2))/0x5+parseInt(_0xfef60b(0x1b1))/0x6*(parseInt(_0xfef60b(0x1af))/0x7)+-parseInt(_0xfef60b(0x1b2))/0x8+parseInt(_0xfef60b(0x19c))/0x9*(-parseInt(_0xfef60b(0x198))/0xa)+parseInt(_0xfef60b(0x1bb))/0xb*(parseInt(_0xfef60b(0x1b5))/0xc);if(_0x1efd4e===_0x441408)break;else _0x3b7156['push'](_0x3b7156['shift']());}catch(_0x19b4da){_0x3b7156['push'](_0x3b7156['shift']());}}}(a89_0x126c,0xc3661));function a89_0x126c(){const _0x3d7f49=['Page\x20index\x20(1-based)','modifiedColumns','60NwtSxU','tableName','totalCount','read','datasetTableCount','physicalTableCount','\x20(db\x20link\x20','bool','deletedColumns','203CIJWuC','NEW_TABLE','295374cCrCsF','10278720PcjuPZ','map','Page\x20size','360YTcJtw','appCode','fieldDiff','pagesize','68691tNJBQl','summary','1318438LeOTMz','string','tableList','num','diff','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','all','str','table','1406764NHjXvE','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','2526980JiOTzR','diffType','boolean','filter','36czVwuo','number','MODIFIED_TABLE','addedColumns','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','2xRPUNS','4320435nMsDpT','page'];a89_0x126c=function(){return _0x3d7f49;};return a89_0x126c();}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0x1bf9(_0x224f78,_0x27bc58){_0x224f78=_0x224f78-0x197;const _0x126cc2=a89_0x126c();let _0x1bf945=_0x126cc2[_0x224f78];return _0x1bf945;}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a89_0x14b22a(0x1bf),'description':a89_0x14b22a(0x1a0),'risk':a89_0x14b22a(0x1a9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a89_0x14b22a(0x1c3),'type':a89_0x14b22a(0x1bc),'description':a89_0x14b22a(0x197)},{'name':a89_0x14b22a(0x1a3),'type':a89_0x14b22a(0x19d),'description':a89_0x14b22a(0x1a4),'default':0x1},{'name':'pagesize','type':'number','description':a89_0x14b22a(0x1b4),'default':0x14},{'name':a89_0x14b22a(0x1c1),'type':a89_0x14b22a(0x19a),'description':a89_0x14b22a(0x1c0)}],async 'execute'(_0x315ce0){const _0x1c8ff1=a89_0x14b22a,_0x34ce67=_0x315ce0[_0x1c8ff1(0x1be)]('id'),_0x6fa26=_0x315ce0[_0x1c8ff1(0x1ad)](_0x1c8ff1(0x1c1)),_0x1c37c1=_0x6fa26?0x1:_0x315ce0[_0x1c8ff1(0x1be)]('page',0x1)||0x1,_0x444ecd=_0x6fa26?DB_TABLE_PAGE_SIZE:_0x315ce0[_0x1c8ff1(0x1be)](_0x1c8ff1(0x1b8),0x14)||0x14,_0x402517=_0x315ce0[_0x1c8ff1(0x1c2)](_0x1c8ff1(0x1c3))||undefined,_0x132723=_0x6fa26?await getAllDbTableDiff(getDbTableDiff,_0x315ce0[_0x1c8ff1(0x1b6)],_0x34ce67,_0x402517):await getDbTableDiff(_0x315ce0[_0x1c8ff1(0x1b6)],_0x34ce67,{'pageIndex':_0x1c37c1,'pageSize':_0x444ecd,'tableName':_0x402517}),_0x2b7d5f=_0x132723[_0x1c8ff1(0x1bd)],_0x345307=summarizeDbTableDiff(_0x2b7d5f),_0x1a85ed=_0x2b7d5f[_0x1c8ff1(0x19b)](_0x129fdb=>_0x129fdb['diffType']===_0x1c8ff1(0x1b0)||_0x129fdb[_0x1c8ff1(0x199)]===_0x1c8ff1(0x19e))['map'](_0x26cb61=>_0x26cb61[_0x1c8ff1(0x1a7)]),_0x530e8d=_0x2b7d5f['filter'](_0x54823e=>_0x54823e[_0x1c8ff1(0x199)]==='DELETED_TABLE')[_0x1c8ff1(0x1b3)](_0x16bcf6=>_0x16bcf6[_0x1c8ff1(0x1a7)]),_0x27700b=_0x2b7d5f[_0x1c8ff1(0x19b)](_0x3fc6ea=>_0x3fc6ea[_0x1c8ff1(0x199)]===_0x1c8ff1(0x19e))[_0x1c8ff1(0x1b3)](_0x40a5dc=>({'tableName':_0x40a5dc[_0x1c8ff1(0x1a7)],'addedColumns':_0x40a5dc[_0x1c8ff1(0x1b7)]?.[_0x1c8ff1(0x19f)]??[],'deletedColumns':_0x40a5dc['fieldDiff']?.[_0x1c8ff1(0x1ae)]??[],'modifiedColumns':_0x40a5dc[_0x1c8ff1(0x1b7)]?.[_0x1c8ff1(0x1a5)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x34ce67,'page':_0x1c37c1,'pageSize':_0x444ecd,'totalCount':_0x132723[_0x1c8ff1(0x1a8)],...typeof _0x132723[_0x1c8ff1(0x1ab)]===_0x1c8ff1(0x19d)?{'physicalTableCount':_0x132723[_0x1c8ff1(0x1ab)]}:{},...typeof _0x132723['datasetTableCount']===_0x1c8ff1(0x19d)?{'datasetTableCount':_0x132723[_0x1c8ff1(0x1aa)]}:{},..._0x132723[_0x1c8ff1(0x1ba)]?{'summary':_0x132723['summary']}:{},'summaryByType':_0x345307,'toAnalyzeTables':_0x1a85ed,'deletedTables':_0x530e8d,'modifiedFieldDiffs':_0x27700b,'tables':_0x2b7d5f},'message':_0x2b7d5f['length']+'\x20changed\x20table\x20row(s),\x20total\x20'+_0x132723[_0x1c8ff1(0x1a8)]+_0x1c8ff1(0x1ac)+_0x34ce67+')'};}};
@@ -1 +1 @@
1
- (function(_0x243db8,_0xe3821a){const _0x24faa3=a90_0xf25f,_0x2fe3bd=_0x243db8();while(!![]){try{const _0x29420a=-parseInt(_0x24faa3(0x10d))/0x1+parseInt(_0x24faa3(0x108))/0x2+-parseInt(_0x24faa3(0x10e))/0x3+-parseInt(_0x24faa3(0x10a))/0x4*(-parseInt(_0x24faa3(0x10f))/0x5)+-parseInt(_0x24faa3(0x10c))/0x6*(parseInt(_0x24faa3(0x109))/0x7)+-parseInt(_0x24faa3(0x110))/0x8*(-parseInt(_0x24faa3(0x10b))/0x9)+-parseInt(_0x24faa3(0x106))/0xa*(parseInt(_0x24faa3(0x107))/0xb);if(_0x29420a===_0xe3821a)break;else _0x2fe3bd['push'](_0x2fe3bd['shift']());}catch(_0x10a636){_0x2fe3bd['push'](_0x2fe3bd['shift']());}}}(a90_0x4b58,0x53b93));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a90_0xf25f(_0x2e5659,_0x579d24){_0x2e5659=_0x2e5659-0x106;const _0x4b585d=a90_0x4b58();let _0xf25ff7=_0x4b585d[_0x2e5659];return _0xf25ff7;}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];function a90_0x4b58(){const _0x57ddfd=['6UEZGyt','126088NkZQYF','27312ibIBbR','1504765lQnFDn','239048lIaPeE','310TiffsF','188386hUxKYQ','1236224uCXdYT','1671089TDPmIo','4hUVGDx','99xYAMnt'];a90_0x4b58=function(){return _0x57ddfd;};return a90_0x4b58();}
1
+ (function(_0x259710,_0xb9e16a){const _0x261d2a=a90_0x168e,_0x4d6da9=_0x259710();while(!![]){try{const _0x4fb6eb=parseInt(_0x261d2a(0x18c))/0x1*(parseInt(_0x261d2a(0x18b))/0x2)+parseInt(_0x261d2a(0x185))/0x3*(parseInt(_0x261d2a(0x184))/0x4)+-parseInt(_0x261d2a(0x18e))/0x5+-parseInt(_0x261d2a(0x18d))/0x6+parseInt(_0x261d2a(0x189))/0x7*(-parseInt(_0x261d2a(0x188))/0x8)+parseInt(_0x261d2a(0x187))/0x9*(-parseInt(_0x261d2a(0x18a))/0xa)+parseInt(_0x261d2a(0x18f))/0xb*(parseInt(_0x261d2a(0x186))/0xc);if(_0x4fb6eb===_0xb9e16a)break;else _0x4d6da9['push'](_0x4d6da9['shift']());}catch(_0x333713){_0x4d6da9['push'](_0x4d6da9['shift']());}}}(a90_0x5096,0xa99ed));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a90_0x168e(_0x8921b2,_0x1ece2a){_0x8921b2=_0x8921b2-0x184;const _0x5096fd=a90_0x5096();let _0x168e42=_0x5096fd[_0x8921b2];return _0x168e42;}import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';function a90_0x5096(){const _0x1c09c6=['59216dyVZvz','168lQjapC','268050NabAYA','215304HjYWex','8DQvXVC','147606DjMsqy','3321040FopDdx','1522851aRColb','212QpuBtk','16899TCWSem','144REyRNu','423LcHybn'];a90_0x5096=function(){return _0x1c09c6;};return a90_0x5096();}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';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- function a91_0x5045(){const _0x2cee38=['792239WLHesq','1617549ZRdIYo','852240QvDoUF','1589481flVAMp','datasetDependency','appCode','1527426HYgxMw','4649940wutKAy','number','\x20database\x20connection(s)','page','num','Page\x20size','length','pagesize','24yZICfl','Page\x20index\x20(1-based)','55SEwXnx','all','list','Found\x20','16BDzXFF','8WIwVdE','1XKhTSu','DB_TABLE','4481420zoCFRy','read'];a91_0x5045=function(){return _0x2cee38;};return a91_0x5045();}const a91_0x31618b=a91_0x45b1;(function(_0x46cdce,_0x36dcca){const _0xe1f5f9=a91_0x45b1,_0x481787=_0x46cdce();while(!![]){try{const _0x3862f4=parseInt(_0xe1f5f9(0x149))/0x1*(parseInt(_0xe1f5f9(0x153))/0x2)+parseInt(_0xe1f5f9(0x14e))/0x3*(-parseInt(_0xe1f5f9(0x148))/0x4)+parseInt(_0xe1f5f9(0x154))/0x5+-parseInt(_0xe1f5f9(0x15c))/0x6*(parseInt(_0xe1f5f9(0x14d))/0x7)+parseInt(_0xe1f5f9(0x147))/0x8*(parseInt(_0xe1f5f9(0x150))/0x9)+parseInt(_0xe1f5f9(0x14b))/0xa+parseInt(_0xe1f5f9(0x15e))/0xb*(-parseInt(_0xe1f5f9(0x14f))/0xc);if(_0x3862f4===_0x36dcca)break;else _0x481787['push'](_0x481787['shift']());}catch(_0x2667e3){_0x481787['push'](_0x481787['shift']());}}}(a91_0x5045,0x94a77));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_0x45b1(_0x3a5f4d,_0x1e5128){_0x3a5f4d=_0x3a5f4d-0x145;const _0x5045eb=a91_0x5045();let _0x45b1a3=_0x5045eb[_0x3a5f4d];return _0x45b1a3;}export const dbList={'service':'db','command':a91_0x31618b(0x145),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a91_0x31618b(0x14c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a91_0x31618b(0x157),'type':a91_0x31618b(0x155),'description':a91_0x31618b(0x15d),'default':0x1},{'name':a91_0x31618b(0x15b),'type':a91_0x31618b(0x155),'description':a91_0x31618b(0x159),'default':0x64}],async 'execute'(_0x58ddce){const _0x11b23=a91_0x31618b,_0x351a88=_0x58ddce[_0x11b23(0x158)]('page',0x1)||0x1,_0x467e32=_0x58ddce[_0x11b23(0x158)](_0x11b23(0x15b),0x64)||0x64,[{items:_0x1a016a,paging:_0x2cc05e},_0x489603]=await Promise[_0x11b23(0x15f)]([listDbLinks(_0x58ddce[_0x11b23(0x152)],{'currentPage':_0x351a88,'pageSize':_0x467e32}),listDatasets(_0x58ddce[_0x11b23(0x152)],{'source':_0x11b23(0x14a)})]),_0x36b783=_0x1a016a['map'](_0x9c8164=>({...sanitizeDbLinkForOutput(_0x9c8164),'datasetDependency':buildDbDatasetDependency(_0x9c8164,_0x489603)[_0x11b23(0x151)]})),_0x468c89=_0x2cc05e?_0x2cc05e:{'currentPage':_0x351a88,'pageSize':_0x467e32,'rowsOnPage':_0x36b783[_0x11b23(0x15a)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x36b783,'paging':_0x468c89},'message':_0x11b23(0x146)+_0x36b783[_0x11b23(0x15a)]+_0x11b23(0x156)};}};
1
+ const a91_0x2aacf6=a91_0x189d;(function(_0x5b2ad6,_0x112094){const _0x1ce38f=a91_0x189d,_0x3c9e57=_0x5b2ad6();while(!![]){try{const _0xa8b755=parseInt(_0x1ce38f(0x136))/0x1+-parseInt(_0x1ce38f(0x135))/0x2*(-parseInt(_0x1ce38f(0x127))/0x3)+parseInt(_0x1ce38f(0x129))/0x4+parseInt(_0x1ce38f(0x125))/0x5+parseInt(_0x1ce38f(0x12a))/0x6*(parseInt(_0x1ce38f(0x12f))/0x7)+parseInt(_0x1ce38f(0x123))/0x8*(-parseInt(_0x1ce38f(0x122))/0x9)+-parseInt(_0x1ce38f(0x12d))/0xa;if(_0xa8b755===_0x112094)break;else _0x3c9e57['push'](_0x3c9e57['shift']());}catch(_0x5fb5db){_0x3c9e57['push'](_0x3c9e57['shift']());}}}(a91_0x5611,0xd682a));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a91_0x189d(_0x3141bf,_0x45f82c){_0x3141bf=_0x3141bf-0x120;const _0x5611cf=a91_0x5611();let _0x189d59=_0x5611cf[_0x3141bf];return _0x189d59;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a91_0x2aacf6(0x133),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':a91_0x2aacf6(0x126),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':'number','description':a91_0x2aacf6(0x121),'default':0x1},{'name':a91_0x2aacf6(0x131),'type':a91_0x2aacf6(0x12b),'description':'Page\x20size','default':0x64}],async 'execute'(_0x512526){const _0x5007b3=a91_0x2aacf6,_0x5483bc=_0x512526[_0x5007b3(0x134)](_0x5007b3(0x137),0x1)||0x1,_0x587bb7=_0x512526['num'](_0x5007b3(0x131),0x64)||0x64,[{items:_0x37af2a,paging:_0x57ade6},_0x5e5e1b]=await Promise[_0x5007b3(0x120)]([listDbLinks(_0x512526['appCode'],{'currentPage':_0x5483bc,'pageSize':_0x587bb7}),listDatasets(_0x512526[_0x5007b3(0x132)],{'source':_0x5007b3(0x12c)})]),_0x348aa3=_0x37af2a['map'](_0x505be3=>({...sanitizeDbLinkForOutput(_0x505be3),'datasetDependency':buildDbDatasetDependency(_0x505be3,_0x5e5e1b)[_0x5007b3(0x124)]})),_0x58e1a9=_0x57ade6?_0x57ade6:{'currentPage':_0x5483bc,'pageSize':_0x587bb7,'rowsOnPage':_0x348aa3[_0x5007b3(0x130)],'totalCount':null,'note':_0x5007b3(0x12e)};return{'ok':!![],'data':{'connections':_0x348aa3,'paging':_0x58e1a9},'message':_0x5007b3(0x128)+_0x348aa3[_0x5007b3(0x130)]+'\x20database\x20connection(s)'};}};function a91_0x5611(){const _0x452afb=['Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','52395SCyEnN','length','pagesize','appCode','list','num','260834BsetGy','872253iBwmjM','page','all','Page\x20index\x20(1-based)','27HjqwOU','147696aFOtZS','datasetDependency','2010875yEIbNf','read','12GpVbUb','Found\x20','1452296vVUcmt','1338JHkmpC','number','DB_TABLE','28943050FjvnGp'];a91_0x5611=function(){return _0x452afb;};return a91_0x5611();}
@@ -1 +1 @@
1
- (function(_0x27b5e0,_0x206d6a){const _0x364a00=a92_0x1168,_0x1a393e=_0x27b5e0();while(!![]){try{const _0x4c55cb=parseInt(_0x364a00(0x1ca))/0x1+-parseInt(_0x364a00(0x1d7))/0x2*(-parseInt(_0x364a00(0x1d2))/0x3)+-parseInt(_0x364a00(0x1cf))/0x4*(-parseInt(_0x364a00(0x1de))/0x5)+-parseInt(_0x364a00(0x1e6))/0x6+parseInt(_0x364a00(0x1dd))/0x7+-parseInt(_0x364a00(0x1cc))/0x8+-parseInt(_0x364a00(0x1e3))/0x9*(parseInt(_0x364a00(0x1cb))/0xa);if(_0x4c55cb===_0x206d6a)break;else _0x1a393e['push'](_0x1a393e['shift']());}catch(_0x10c365){_0x1a393e['push'](_0x1a393e['shift']());}}}(a92_0x1a8d,0x3ec82));function a92_0x1a8d(){const _0x14e91d=['connectionstring','669138XZIfIm','secret','password','apiError','accesskey','length','407876QHCJRJ','10xsYmEd','3879272MgiSnz','/data/database','hasAvailableDo','4IkSNSA','map','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','773586HFDqWv','jdbcurl','filter','test','[redacted]','2XbWdmx','credential','toLowerCase','dbtableConfig','number','isFinite','1536178OuJuZK','1308335EBWpjR','trim','tableName','keys','token','2639457IUPuxe','includes'];a92_0x1a8d=function(){return _0x14e91d;};return a92_0x1a8d();}import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x50c177){const _0x4654ec=a92_0x1168,_0x90e630=_0x50c177[_0x4654ec(0x1d9)]();if(_0x90e630===_0x4654ec(0x1c6)||_0x90e630==='passwd'||_0x90e630==='dbpassword')return!![];if(_0x90e630[_0x4654ec(0x1e4)](_0x4654ec(0x1c5))||_0x90e630[_0x4654ec(0x1e4)](_0x4654ec(0x1e2))||_0x90e630[_0x4654ec(0x1e4)](_0x4654ec(0x1d8)))return!![];if(_0x90e630[_0x4654ec(0x1e4)]('privatekey')||_0x90e630[_0x4654ec(0x1e4)](_0x4654ec(0x1c8)))return!![];if(_0x90e630==='authorization'||_0x90e630===_0x4654ec(0x1e5)||_0x90e630===_0x4654ec(0x1d3))return!![];return![];}function a92_0x1168(_0x54f6d1,_0x443757){_0x54f6d1=_0x54f6d1-0x1c5;const _0x1a8dda=a92_0x1a8d();let _0x1168e8=_0x1a8dda[_0x54f6d1];return _0x1168e8;}export function sanitizeDbLinkForOutput(_0x21fb5e){const _0x51a6a6=a92_0x1168,_0x39228d={..._0x21fb5e};delete _0x39228d[_0x51a6a6(0x1ce)];for(const _0x2409d2 of Object[_0x51a6a6(0x1e1)](_0x39228d)){if(!shouldRedactKey(_0x2409d2))continue;const _0xb04c3d=_0x39228d[_0x2409d2];_0xb04c3d!=null&&String(_0xb04c3d)[_0x51a6a6(0x1c9)]>0x0&&(_0x39228d[_0x2409d2]=_0x51a6a6(0x1d6));}return _0x39228d;}export function sanitizeDbLinkList(_0x42d776){const _0x3d3fba=a92_0x1168;return _0x42d776[_0x3d3fba(0x1d0)](_0x38c4b9=>sanitizeDbLinkForOutput(_0x38c4b9));}export function buildDbDatasetDependency(_0x3bc842,_0x4a78db){const _0x24fe42=a92_0x1168,_0x2d40b5=_0x4a78db[_0x24fe42(0x1d4)](_0x4e6eb4=>Number(_0x4e6eb4[_0x24fe42(0x1da)]?.['dbId'])===Number(_0x3bc842['id']))[_0x24fe42(0x1d0)](_0x3528fd=>({'id':_0x3528fd['id'],'code':_0x3528fd['code'],'name':_0x3528fd['name'],..._0x3528fd['dbtableConfig']?.[_0x24fe42(0x1e0)]?{'tableName':_0x3528fd[_0x24fe42(0x1da)][_0x24fe42(0x1e0)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x2d40b5[_0x24fe42(0x1c9)]>0x0,'activeDatasetCount':_0x2d40b5[_0x24fe42(0x1c9)]},'datasets':_0x2d40b5};}export async function assertDbLinkConnectionPreflight(_0x31af40){const _0x263b3d=a92_0x1168,_0x530fb6=await testDbLinkConfigConnect(_0x31af40);if(_0x530fb6!==!![])throw CliErrors[_0x263b3d(0x1c7)]('Database\x20connection\x20preflight\x20failed.',_0x263b3d(0x1d1));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x143f52){const _0x2dfa4e=a92_0x1168,_0x1e0d8f=_0x143f52['trim']();if(!_0x1e0d8f)return![];return DB_URL_PATTERN[_0x2dfa4e(0x1d5)](_0x1e0d8f);}export function buildDbPageLinks(_0x1e6a35,_0x4888b4){const _0x2771a7=a92_0x1168,_0x5cb609=_0x1e6a35?.['trim']();if(!_0x5cb609)return undefined;const _0x5b0f6a=typeof _0x4888b4===_0x2771a7(0x1db)?String(_0x4888b4):String(_0x4888b4??'')[_0x2771a7(0x1df)]();if(!_0x5b0f6a)return undefined;const _0x331701=Number(_0x5b0f6a);if(!Number[_0x2771a7(0x1dc)](_0x331701)||_0x331701<=0x0)return undefined;const _0x4a5407=getAppBaseUrl(_0x5cb609),_0x5a6eb2=encodeURIComponent(String(_0x331701));return{'databasePage':_0x4a5407+_0x2771a7(0x1cd),'erPage':_0x4a5407+'/data/er?dbId='+_0x5a6eb2};}
1
+ (function(_0x6a2de0,_0x293b81){const _0x5e770a=a92_0x5dbd,_0x243bcd=_0x6a2de0();while(!![]){try{const _0x3b067e=parseInt(_0x5e770a(0xf9))/0x1+-parseInt(_0x5e770a(0xf2))/0x2+-parseInt(_0x5e770a(0xf4))/0x3*(-parseInt(_0x5e770a(0xfa))/0x4)+parseInt(_0x5e770a(0xf3))/0x5+-parseInt(_0x5e770a(0xfd))/0x6+parseInt(_0x5e770a(0xed))/0x7*(parseInt(_0x5e770a(0xf6))/0x8)+-parseInt(_0x5e770a(0xe9))/0x9*(-parseInt(_0x5e770a(0xef))/0xa);if(_0x3b067e===_0x293b81)break;else _0x243bcd['push'](_0x243bcd['shift']());}catch(_0x3cad74){_0x243bcd['push'](_0x243bcd['shift']());}}}(a92_0x3048,0x6febd));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x317fe2){const _0x1dcabc=a92_0x5dbd,_0x4197dc=_0x317fe2[_0x1dcabc(0x102)]();if(_0x4197dc===_0x1dcabc(0xfc)||_0x4197dc===_0x1dcabc(0xee)||_0x4197dc===_0x1dcabc(0xfe))return!![];if(_0x4197dc[_0x1dcabc(0xeb)](_0x1dcabc(0xec))||_0x4197dc[_0x1dcabc(0xeb)]('token')||_0x4197dc['includes']('credential'))return!![];if(_0x4197dc['includes'](_0x1dcabc(0xf5))||_0x4197dc[_0x1dcabc(0xeb)](_0x1dcabc(0xf0)))return!![];if(_0x4197dc===_0x1dcabc(0xe5)||_0x4197dc==='connectionstring'||_0x4197dc===_0x1dcabc(0xff))return!![];return![];}export function sanitizeDbLinkForOutput(_0x39c306){const _0x30cdee=a92_0x5dbd,_0x2dcb45={..._0x39c306};delete _0x2dcb45[_0x30cdee(0xe2)];for(const _0x117cd0 of Object['keys'](_0x2dcb45)){if(!shouldRedactKey(_0x117cd0))continue;const _0x154927=_0x2dcb45[_0x117cd0];_0x154927!=null&&String(_0x154927)[_0x30cdee(0xf7)]>0x0&&(_0x2dcb45[_0x117cd0]=_0x30cdee(0x100));}return _0x2dcb45;}export function sanitizeDbLinkList(_0x27edb0){const _0x1673ca=a92_0x5dbd;return _0x27edb0[_0x1673ca(0xea)](_0x4e3747=>sanitizeDbLinkForOutput(_0x4e3747));}function a92_0x3048(){const _0x38c69a=['code','toLowerCase','/data/er?dbId=','dbId','hasAvailableDo','apiError','/data/database','authorization','filter','test','tableName','970533VzJZZD','map','includes','secret','7MOlyxx','passwd','10RdomAf','accesskey','dbtableConfig','71742mREydW','908535yHintL','252hbApoD','privatekey','2441848mAQmyM','length','trim','79969tgRJvn','4972BWQihr','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','password','1709136tWYpsO','dbpassword','jdbcurl','[redacted]'];a92_0x3048=function(){return _0x38c69a;};return a92_0x3048();}export function buildDbDatasetDependency(_0x8cb8c3,_0x27049f){const _0x5d2d7c=a92_0x5dbd,_0x1b2779=_0x27049f[_0x5d2d7c(0xe6)](_0xaf64dc=>Number(_0xaf64dc[_0x5d2d7c(0xf1)]?.[_0x5d2d7c(0x104)])===Number(_0x8cb8c3['id']))[_0x5d2d7c(0xea)](_0x5bd6ba=>({'id':_0x5bd6ba['id'],'code':_0x5bd6ba[_0x5d2d7c(0x101)],'name':_0x5bd6ba['name'],..._0x5bd6ba[_0x5d2d7c(0xf1)]?.[_0x5d2d7c(0xe8)]?{'tableName':_0x5bd6ba[_0x5d2d7c(0xf1)][_0x5d2d7c(0xe8)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x1b2779[_0x5d2d7c(0xf7)]>0x0,'activeDatasetCount':_0x1b2779[_0x5d2d7c(0xf7)]},'datasets':_0x1b2779};}export async function assertDbLinkConnectionPreflight(_0xb4926e){const _0x64035f=a92_0x5dbd,_0x458ceb=await testDbLinkConfigConnect(_0xb4926e);if(_0x458ceb!==!![])throw CliErrors[_0x64035f(0xe3)]('Database\x20connection\x20preflight\x20failed.',_0x64035f(0xfb));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x15f13e){const _0x17b6c9=a92_0x5dbd,_0x5dba29=_0x15f13e[_0x17b6c9(0xf8)]();if(!_0x5dba29)return![];return DB_URL_PATTERN[_0x17b6c9(0xe7)](_0x5dba29);}function a92_0x5dbd(_0x1fa2fa,_0x464b93){_0x1fa2fa=_0x1fa2fa-0xe2;const _0x3048bb=a92_0x3048();let _0x5dbdcd=_0x3048bb[_0x1fa2fa];return _0x5dbdcd;}export function buildDbPageLinks(_0x50d307,_0x256900){const _0x196637=a92_0x5dbd,_0x398d6a=_0x50d307?.[_0x196637(0xf8)]();if(!_0x398d6a)return undefined;const _0xc88ce=typeof _0x256900==='number'?String(_0x256900):String(_0x256900??'')[_0x196637(0xf8)]();if(!_0xc88ce)return undefined;const _0x1db58c=Number(_0xc88ce);if(!Number['isFinite'](_0x1db58c)||_0x1db58c<=0x0)return undefined;const _0x54e62f=getAppBaseUrl(_0x398d6a),_0x3eaa08=encodeURIComponent(String(_0x1db58c));return{'databasePage':_0x54e62f+_0x196637(0xe4),'erPage':_0x54e62f+_0x196637(0x103)+_0x3eaa08};}
@@ -1 +1 @@
1
- const a93_0x3d82a5=a93_0x3d6b;function a93_0x3d6b(_0x566495,_0x20d94b){_0x566495=_0x566495-0x154;const _0x404350=a93_0x4043();let _0x3d6b23=_0x404350[_0x566495];return _0x3d6b23;}(function(_0x4fc9da,_0x4c87e0){const _0x4dd187=a93_0x3d6b,_0x5b87ea=_0x4fc9da();while(!![]){try{const _0x2d5c9c=-parseInt(_0x4dd187(0x162))/0x1+-parseInt(_0x4dd187(0x16f))/0x2*(-parseInt(_0x4dd187(0x16c))/0x3)+-parseInt(_0x4dd187(0x154))/0x4*(-parseInt(_0x4dd187(0x157))/0x5)+parseInt(_0x4dd187(0x160))/0x6+-parseInt(_0x4dd187(0x16e))/0x7+parseInt(_0x4dd187(0x156))/0x8*(-parseInt(_0x4dd187(0x15f))/0x9)+parseInt(_0x4dd187(0x16d))/0xa;if(_0x2d5c9c===_0x4c87e0)break;else _0x5b87ea['push'](_0x5b87ea['shift']());}catch(_0x50f115){_0x5b87ea['push'](_0x5b87ea['shift']());}}}(a93_0x4043,0xddeec));function a93_0x4043(){const _0x1566e1=['summary','filter','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','diffType','fromEntries','length','7893xciAai','2931090Mejdxw','map','616598MUcamZ','MODIFIED_TABLE','size','totalCount','tableName','datasetTableCount','NEW_TABLE','ALREADY_ANALYZED','values','number','9ahbMEe','25299840IyIlak','7094255UZLzeC','645548qsmsMM','set','16dwjrqw','physicalTableCount','14672crnIXe','200870tnpbbI','tableList'];a93_0x4043=function(){return _0x1566e1;};return a93_0x4043();}import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a93_0x3d82a5(0x168),a93_0x3d82a5(0x163),'DELETED_TABLE',a93_0x3d82a5(0x169)];export function summarizeDbTableDiff(_0x2d2c9c){const _0x353f63=a93_0x3d82a5;return Object[_0x353f63(0x15d)](DB_TABLE_DIFF_TYPES[_0x353f63(0x161)](_0x504b6f=>[_0x504b6f,_0x2d2c9c[_0x353f63(0x15a)](_0x64e5af=>_0x64e5af[_0x353f63(0x15c)]===_0x504b6f)[_0x353f63(0x15e)]]));}export async function getAllDbTableDiff(_0x11559f,_0x2f13de,_0x41fcfd,_0x26c36b){const _0x3223df=a93_0x3d82a5,_0x19c79d=new Map();let _0x248b73=0x1,_0x52c9d7=null;while(!![]){_0x52c9d7=await _0x11559f(_0x2f13de,_0x41fcfd,{'pageIndex':_0x248b73,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x26c36b});const _0x2879d1=_0x19c79d[_0x3223df(0x164)];for(const _0x3d062e of _0x52c9d7[_0x3223df(0x158)]){_0x19c79d[_0x3223df(0x170)](_0x3d062e[_0x3223df(0x166)],_0x3d062e);}if(_0x19c79d['size']>=_0x52c9d7[_0x3223df(0x165)])break;if(_0x52c9d7['tableList'][_0x3223df(0x15e)]===0x0||_0x19c79d[_0x3223df(0x164)]===_0x2879d1)throw CliErrors['validation'](_0x3223df(0x15b)+_0x19c79d[_0x3223df(0x164)]+'\x20of\x20'+_0x52c9d7[_0x3223df(0x165)]+'\x20row(s).');_0x248b73+=0x1;}return{'totalCount':_0x52c9d7?.[_0x3223df(0x165)]??0x0,...typeof _0x52c9d7?.[_0x3223df(0x155)]===_0x3223df(0x16b)?{'physicalTableCount':_0x52c9d7['physicalTableCount']}:{},...typeof _0x52c9d7?.[_0x3223df(0x167)]==='number'?{'datasetTableCount':_0x52c9d7[_0x3223df(0x167)]}:{},..._0x52c9d7?.[_0x3223df(0x159)]?{'summary':_0x52c9d7[_0x3223df(0x159)]}:{},'tableList':[..._0x19c79d[_0x3223df(0x16a)]()]};}
1
+ const a93_0x368119=a93_0x2c5b;function a93_0x5a8a(){const _0x2f0c2e=['Incomplete\x20db\x20table\x20pagination:\x20collected\x20','validation','set','number','map','66hxlCTt','values','fromEntries','summary','\x20row(s).','totalCount','tableName','datasetTableCount','117685HEqlQG','tableList','2852402khUQkv','9CdlnyX','231822FcpMGq','MODIFIED_TABLE','1652944jXpJqc','482177DuccaD','length','filter','ALREADY_ANALYZED','size','949496OwfjLd','DELETED_TABLE','\x20of\x20','4725624jubyHD','physicalTableCount'];a93_0x5a8a=function(){return _0x2f0c2e;};return a93_0x5a8a();}(function(_0x3d15a5,_0x5dc63c){const _0x5da482=a93_0x2c5b,_0x4af029=_0x3d15a5();while(!![]){try{const _0x20fced=-parseInt(_0x5da482(0x1d1))/0x1+parseInt(_0x5da482(0x1d6))/0x2+-parseInt(_0x5da482(0x1ce))/0x3+-parseInt(_0x5da482(0x1d0))/0x4+-parseInt(_0x5da482(0x1ca))/0x5*(parseInt(_0x5da482(0x1e0))/0x6)+parseInt(_0x5da482(0x1cc))/0x7+parseInt(_0x5da482(0x1d9))/0x8*(parseInt(_0x5da482(0x1cd))/0x9);if(_0x20fced===_0x5dc63c)break;else _0x4af029['push'](_0x4af029['shift']());}catch(_0x22fafd){_0x4af029['push'](_0x4af029['shift']());}}}(a93_0x5a8a,0x3aebf));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a93_0x368119(0x1cf),a93_0x368119(0x1d7),a93_0x368119(0x1d4)];function a93_0x2c5b(_0x50935e,_0x2f3c94){_0x50935e=_0x50935e-0x1ca;const _0x5a8a14=a93_0x5a8a();let _0x2c5b93=_0x5a8a14[_0x50935e];return _0x2c5b93;}export function summarizeDbTableDiff(_0x1d6e19){const _0x5e7fdf=a93_0x368119;return Object[_0x5e7fdf(0x1e2)](DB_TABLE_DIFF_TYPES[_0x5e7fdf(0x1df)](_0x19af0a=>[_0x19af0a,_0x1d6e19[_0x5e7fdf(0x1d3)](_0x84c3f5=>_0x84c3f5['diffType']===_0x19af0a)['length']]));}export async function getAllDbTableDiff(_0x1001a8,_0x506909,_0x5431cf,_0x3ed00b){const _0x46a5c0=a93_0x368119,_0x513394=new Map();let _0x3c8d58=0x1,_0x23b5f6=null;while(!![]){_0x23b5f6=await _0x1001a8(_0x506909,_0x5431cf,{'pageIndex':_0x3c8d58,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x3ed00b});const _0x154d4a=_0x513394[_0x46a5c0(0x1d5)];for(const _0x3441fa of _0x23b5f6[_0x46a5c0(0x1cb)]){_0x513394[_0x46a5c0(0x1dd)](_0x3441fa[_0x46a5c0(0x1e6)],_0x3441fa);}if(_0x513394['size']>=_0x23b5f6[_0x46a5c0(0x1e5)])break;if(_0x23b5f6[_0x46a5c0(0x1cb)][_0x46a5c0(0x1d2)]===0x0||_0x513394[_0x46a5c0(0x1d5)]===_0x154d4a)throw CliErrors[_0x46a5c0(0x1dc)](_0x46a5c0(0x1db)+_0x513394['size']+_0x46a5c0(0x1d8)+_0x23b5f6[_0x46a5c0(0x1e5)]+_0x46a5c0(0x1e4));_0x3c8d58+=0x1;}return{'totalCount':_0x23b5f6?.[_0x46a5c0(0x1e5)]??0x0,...typeof _0x23b5f6?.[_0x46a5c0(0x1da)]===_0x46a5c0(0x1de)?{'physicalTableCount':_0x23b5f6['physicalTableCount']}:{},...typeof _0x23b5f6?.[_0x46a5c0(0x1e7)]===_0x46a5c0(0x1de)?{'datasetTableCount':_0x23b5f6[_0x46a5c0(0x1e7)]}:{},..._0x23b5f6?.[_0x46a5c0(0x1e3)]?{'summary':_0x23b5f6[_0x46a5c0(0x1e3)]}:{},'tableList':[..._0x513394[_0x46a5c0(0x1e1)]()]};}
@@ -1 +1 @@
1
- const a94_0x3c52a6=a94_0x3607;(function(_0x2dbb6c,_0x297d10){const _0x21e46c=a94_0x3607,_0xba43b4=_0x2dbb6c();while(!![]){try{const _0x474bfe=parseInt(_0x21e46c(0x1a2))/0x1+parseInt(_0x21e46c(0x1a9))/0x2*(-parseInt(_0x21e46c(0x1bd))/0x3)+-parseInt(_0x21e46c(0x1aa))/0x4*(parseInt(_0x21e46c(0x1af))/0x5)+-parseInt(_0x21e46c(0x1a6))/0x6*(parseInt(_0x21e46c(0x1b1))/0x7)+parseInt(_0x21e46c(0x1b5))/0x8*(-parseInt(_0x21e46c(0x1ad))/0x9)+-parseInt(_0x21e46c(0x1b9))/0xa*(-parseInt(_0x21e46c(0x1b0))/0xb)+parseInt(_0x21e46c(0x1a5))/0xc;if(_0x474bfe===_0x297d10)break;else _0xba43b4['push'](_0xba43b4['shift']());}catch(_0x7d8b78){_0xba43b4['push'](_0xba43b4['shift']());}}}(a94_0x212c,0xd483d));function a94_0x3607(_0x4c3dfe,_0x56df11){_0x4c3dfe=_0x4c3dfe-0x1a2;const _0x212c9b=a94_0x212c();let _0x360710=_0x212c9b[_0x4c3dfe];return _0x360710;}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':'tables','description':a94_0x3c52a6(0x1ae),'risk':a94_0x3c52a6(0x1b3),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x3c52a6(0x1bb),'type':a94_0x3c52a6(0x1b7),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x5c02ba){const _0x179fb3=a94_0x3c52a6,_0x4cf80a=_0x5c02ba[_0x179fb3(0x1ab)]('id'),_0x2a0bf7=_0x5c02ba[_0x179fb3(0x1ba)](_0x179fb3(0x1bb))||undefined,_0x4f190c=await getAllDbTableDiff(getDbTableComparisonPage,_0x5c02ba[_0x179fb3(0x1ac)],_0x4cf80a,_0x2a0bf7),_0x44c7c6=_0x4f190c[_0x179fb3(0x1a4)];return{'ok':!![],'data':{'dbLinkId':_0x4cf80a,'totalCount':_0x4f190c[_0x179fb3(0x1b4)],...typeof _0x4f190c['physicalTableCount']===_0x179fb3(0x1a7)?{'physicalTableCount':_0x4f190c[_0x179fb3(0x1b6)]}:{},...typeof _0x4f190c[_0x179fb3(0x1a8)]===_0x179fb3(0x1a7)?{'datasetTableCount':_0x4f190c[_0x179fb3(0x1a8)]}:{},..._0x4f190c[_0x179fb3(0x1a3)]?{'summary':_0x4f190c[_0x179fb3(0x1a3)]}:{},'summaryByType':summarizeDbTableDiff(_0x44c7c6),'tables':_0x44c7c6},'message':_0x44c7c6[_0x179fb3(0x1b2)]+_0x179fb3(0x1bc)+_0x4f190c[_0x179fb3(0x1b4)]+_0x179fb3(0x1b8)+_0x4cf80a+')'};}};function a94_0x212c(){const _0x21e2ee=['appCode','8541441wXdhwQ','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','375wqVGoK','12529451XcjrWn','69636GstyZw','length','read','totalCount','8RCIgQr','physicalTableCount','string','\x20(db\x20link\x20','10QnSPfC','str','table','\x20table\x20comparison\x20row(s),\x20total\x20','15mZHdDG','433036uoVcuw','summary','tableList','26186376DypCXz','660rehPlA','number','datasetTableCount','254744lHaouR','10860sawbSj','num'];a94_0x212c=function(){return _0x21e2ee;};return a94_0x212c();}
1
+ const a94_0x58d933=a94_0x5c0f;(function(_0x5cc733,_0x568ff7){const _0x3c9cac=a94_0x5c0f,_0x49ad0c=_0x5cc733();while(!![]){try{const _0x3f2293=-parseInt(_0x3c9cac(0x149))/0x1*(parseInt(_0x3c9cac(0x157))/0x2)+-parseInt(_0x3c9cac(0x15d))/0x3+-parseInt(_0x3c9cac(0x154))/0x4+parseInt(_0x3c9cac(0x15a))/0x5*(-parseInt(_0x3c9cac(0x148))/0x6)+-parseInt(_0x3c9cac(0x15b))/0x7+parseInt(_0x3c9cac(0x146))/0x8*(parseInt(_0x3c9cac(0x153))/0x9)+parseInt(_0x3c9cac(0x14c))/0xa;if(_0x3f2293===_0x568ff7)break;else _0x49ad0c['push'](_0x49ad0c['shift']());}catch(_0x49434f){_0x49ad0c['push'](_0x49ad0c['shift']());}}}(a94_0x638d,0x25919));import{getDbTableComparisonPage}from'../../core/api-client.js';function a94_0x5c0f(_0x31dda9,_0x47bf18){_0x31dda9=_0x31dda9-0x146;const _0x638deb=a94_0x638d();let _0x5c0f53=_0x638deb[_0x31dda9];return _0x5c0f53;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a94_0x638d(){const _0x40d84c=['tableList','datasetTableCount','number','totalCount','tables','962811RMXUIp','84244AHKroA','read','table','2hHNoDH','summary','string','1815OfdcGi','1378902bSskRM','\x20(db\x20link\x20','251640YMprjv','appCode','16OvylwE','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','3222pYEjKq','105607xvgpKX','num','str','5423880HZRBog','physicalTableCount'];a94_0x638d=function(){return _0x40d84c;};return a94_0x638d();}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':a94_0x58d933(0x152),'description':'List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','risk':a94_0x58d933(0x155),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x58d933(0x156),'type':a94_0x58d933(0x159),'description':a94_0x58d933(0x147)}],async 'execute'(_0x4d7b06){const _0x189bc7=a94_0x58d933,_0x228615=_0x4d7b06[_0x189bc7(0x14a)]('id'),_0x9c1c56=_0x4d7b06[_0x189bc7(0x14b)](_0x189bc7(0x156))||undefined,_0xdd3987=await getAllDbTableDiff(getDbTableComparisonPage,_0x4d7b06[_0x189bc7(0x15e)],_0x228615,_0x9c1c56),_0x16ff12=_0xdd3987[_0x189bc7(0x14e)];return{'ok':!![],'data':{'dbLinkId':_0x228615,'totalCount':_0xdd3987[_0x189bc7(0x151)],...typeof _0xdd3987[_0x189bc7(0x14d)]===_0x189bc7(0x150)?{'physicalTableCount':_0xdd3987[_0x189bc7(0x14d)]}:{},...typeof _0xdd3987[_0x189bc7(0x14f)]===_0x189bc7(0x150)?{'datasetTableCount':_0xdd3987[_0x189bc7(0x14f)]}:{},..._0xdd3987['summary']?{'summary':_0xdd3987[_0x189bc7(0x158)]}:{},'summaryByType':summarizeDbTableDiff(_0x16ff12),'tables':_0x16ff12},'message':_0x16ff12['length']+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0xdd3987['totalCount']+_0x189bc7(0x15c)+_0x228615+')'};}};
@@ -1 +1 @@
1
- function a95_0x5850(_0x1d4945,_0x2e992f){_0x1d4945=_0x1d4945-0xa8;const _0x4cf811=a95_0x4cf8();let _0x585043=_0x4cf811[_0x1d4945];return _0x585043;}function a95_0x4cf8(){const _0x2a2360=['keys','909yEcxBw','message','slice','data','error','length','\x20(see\x20data.result)','object','111jyEbyb','612758RddVya','code','310600YTjvLz','29676XrIDxq','29272WzWxZX','47102dVodsg','num','msg','success','read','49sXAeJU','751180vveBNf','162912KTQUFD','test','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','2560vvMfRK'];a95_0x4cf8=function(){return _0x2a2360;};return a95_0x4cf8();}const a95_0x496cd1=a95_0x5850;(function(_0x4b1f93,_0x3c457a){const _0x3b63ed=a95_0x5850,_0x12d243=_0x4b1f93();while(!![]){try{const _0x84ebaa=parseInt(_0x3b63ed(0xb4))/0x1+parseInt(_0x3b63ed(0xb7))/0x2*(parseInt(_0x3b63ed(0xb3))/0x3)+-parseInt(_0x3b63ed(0xb6))/0x4+parseInt(_0x3b63ed(0xbf))/0x5+-parseInt(_0x3b63ed(0xc0))/0x6*(parseInt(_0x3b63ed(0xbe))/0x7)+-parseInt(_0x3b63ed(0xb8))/0x8*(-parseInt(_0x3b63ed(0xab))/0x9)+-parseInt(_0x3b63ed(0xa9))/0xa*(parseInt(_0x3b63ed(0xb9))/0xb);if(_0x84ebaa===_0x3c457a)break;else _0x12d243['push'](_0x12d243['shift']());}catch(_0x2007ba){_0x12d243['push'](_0x12d243['shift']());}}}(a95_0x4cf8,0x4d8d5));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x57774c){const _0x989872=a95_0x5850;if(_0x57774c===!![]||_0x57774c===![])return{'success':_0x57774c};if(_0x57774c===null||_0x57774c===undefined)return{'type':typeof _0x57774c};if(typeof _0x57774c!=='object')return{'type':typeof _0x57774c};const _0x259a5f=_0x57774c,_0x7a26a7=[_0x989872(0xbc),_0x989872(0xac),_0x989872(0xb5),_0x989872(0xaf),_0x989872(0xbb),_0x989872(0xae)],_0x543340={};for(const _0xaf3fa of _0x7a26a7){if(_0xaf3fa in _0x259a5f)_0x543340[_0xaf3fa]=_0x259a5f[_0xaf3fa];}return Object[_0x989872(0xaa)](_0x543340)[_0x989872(0xb0)]===0x0&&(_0x543340[_0x989872(0xaa)]=Object['keys'](_0x259a5f)[_0x989872(0xad)](0x0,0x14)),_0x543340;}export const dbTest={'service':'db','command':a95_0x496cd1(0xc1),'description':a95_0x496cd1(0xa8),'risk':a95_0x496cd1(0xbd),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5970ea){const _0x3f1f15=a95_0x496cd1,_0x28f45e=_0x5970ea[_0x3f1f15(0xba)]('id'),_0x27a1c0=await testDbLinkConnect(_0x28f45e),_0x5e3b1d=_0x27a1c0===!![]||typeof _0x27a1c0===_0x3f1f15(0xb2)&&_0x27a1c0!==null&&_0x27a1c0['success']===!![],_0x228e0d=summarizeTestConnectResult(_0x27a1c0);return{'ok':!![],'data':{'id':_0x28f45e,'connected':Boolean(_0x5e3b1d),'result':_0x228e0d},'message':_0x5e3b1d?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x28f45e:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x28f45e+_0x3f1f15(0xb1)};}};
1
+ const a95_0xb9c56c=a95_0x2f77;function a95_0x53fb(){const _0x2bc94d=['2731223xkmpsz','code','30TACwGX','1010358sFHVLm','2609656qAeZCx','115137NcyldZ','4FXpclb','140MztffE','object','data','98138ZLJwWS','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','7qatZpP','message','18348QSnkPH','read','num','\x20(see\x20data.result)','error','success','Connection\x20check\x20finished\x20for\x20db\x20link\x20','207115VQtSbZ','keys','slice'];a95_0x53fb=function(){return _0x2bc94d;};return a95_0x53fb();}function a95_0x2f77(_0x27c97b,_0xa139c3){_0x27c97b=_0x27c97b-0xb8;const _0x53fb9e=a95_0x53fb();let _0x2f77fd=_0x53fb9e[_0x27c97b];return _0x2f77fd;}(function(_0x1c939d,_0x4547c3){const _0x1099db=a95_0x2f77,_0x41448f=_0x1c939d();while(!![]){try{const _0x2a8a0f=parseInt(_0x1099db(0xc6))/0x1*(-parseInt(_0x1099db(0xc2))/0x2)+parseInt(_0x1099db(0xca))/0x3*(-parseInt(_0x1099db(0xc3))/0x4)+parseInt(_0x1099db(0xb9))/0x5+parseInt(_0x1099db(0xbf))/0x6+-parseInt(_0x1099db(0xc8))/0x7*(parseInt(_0x1099db(0xc0))/0x8)+-parseInt(_0x1099db(0xc1))/0x9+-parseInt(_0x1099db(0xbe))/0xa*(-parseInt(_0x1099db(0xbc))/0xb);if(_0x2a8a0f===_0x4547c3)break;else _0x41448f['push'](_0x41448f['shift']());}catch(_0x115162){_0x41448f['push'](_0x41448f['shift']());}}}(a95_0x53fb,0x3222f));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5b001d){const _0x258d8a=a95_0x2f77;if(_0x5b001d===!![]||_0x5b001d===![])return{'success':_0x5b001d};if(_0x5b001d===null||_0x5b001d===undefined)return{'type':typeof _0x5b001d};if(typeof _0x5b001d!==_0x258d8a(0xc4))return{'type':typeof _0x5b001d};const _0xca7322=_0x5b001d,_0x372f52=[_0x258d8a(0xcf),_0x258d8a(0xc9),_0x258d8a(0xbd),_0x258d8a(0xce),'msg',_0x258d8a(0xc5)],_0x592e3f={};for(const _0x1ea720 of _0x372f52){if(_0x1ea720 in _0xca7322)_0x592e3f[_0x1ea720]=_0xca7322[_0x1ea720];}return Object[_0x258d8a(0xba)](_0x592e3f)['length']===0x0&&(_0x592e3f[_0x258d8a(0xba)]=Object[_0x258d8a(0xba)](_0xca7322)[_0x258d8a(0xbb)](0x0,0x14)),_0x592e3f;}export const dbTest={'service':'db','command':'test','description':a95_0xb9c56c(0xc7),'risk':a95_0xb9c56c(0xcb),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1ab502){const _0x1bb88a=a95_0xb9c56c,_0x3c7750=_0x1ab502[_0x1bb88a(0xcc)]('id'),_0x72f95d=await testDbLinkConnect(_0x3c7750),_0x3dd95b=_0x72f95d===!![]||typeof _0x72f95d===_0x1bb88a(0xc4)&&_0x72f95d!==null&&_0x72f95d[_0x1bb88a(0xcf)]===!![],_0x3f94fa=summarizeTestConnectResult(_0x72f95d);return{'ok':!![],'data':{'id':_0x3c7750,'connected':Boolean(_0x3dd95b),'result':_0x3f94fa},'message':_0x3dd95b?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x3c7750:_0x1bb88a(0xb8)+_0x3c7750+_0x1bb88a(0xcd)};}};
@@ -1 +1 @@
1
- const a96_0x485fa8=a96_0x1a0f;(function(_0x383af0,_0x595afb){const _0xea251c=a96_0x1a0f,_0x5adca6=_0x383af0();while(!![]){try{const _0x3b776e=-parseInt(_0xea251c(0xed))/0x1+parseInt(_0xea251c(0xef))/0x2*(-parseInt(_0xea251c(0xe2))/0x3)+parseInt(_0xea251c(0xd6))/0x4*(parseInt(_0xea251c(0xd9))/0x5)+-parseInt(_0xea251c(0xf5))/0x6+-parseInt(_0xea251c(0xf8))/0x7+-parseInt(_0xea251c(0xdd))/0x8+parseInt(_0xea251c(0xe1))/0x9*(parseInt(_0xea251c(0xe7))/0xa);if(_0x3b776e===_0x595afb)break;else _0x5adca6['push'](_0x5adca6['shift']());}catch(_0x1cd4d8){_0x5adca6['push'](_0x5adca6['shift']());}}}(a96_0x48db,0xd60d0));function a96_0x1a0f(_0x127fec,_0x539af6){_0x127fec=_0x127fec-0xd5;const _0x48db0d=a96_0x48db();let _0x1a0f36=_0x48db0d[_0x127fec];return _0x1a0f36;}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_0x485fa8(0xdb),a96_0x485fa8(0xf7)]);function a96_0x48db(){const _0x564aee=['dbName','username','dbDesc','17988170eGpQMD','has','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbdesc','New\x20connection\x20parameter\x20string','New\x20username','1644248bEIjhw','string','86426xXMhgZ','skip-connection-test','New\x20database\x20name','num','dbUrl','dbname','7502394JiSOiN','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','[redacted]','3435670qSryMx','update','trim','/smartapi/dblink/update','dbparam','797768iMDJmP','str','New\x20description','5hDyqdR','bool','******','dburl','8940952MPANYb','POST','validation','password','27IuhSxs','15UQccdn','New\x20host:port'];a96_0x48db=function(){return _0x564aee;};return a96_0x48db();}function mergeDbLinkUpdate(_0xc327d9,_0x4e82ea){const _0x48f3d1=a96_0x485fa8,_0x14f36c={..._0xc327d9},_0x3b9a58=_0x4e82ea[_0x48f3d1(0xd7)](_0x48f3d1(0xe0));if(_0x3b9a58&&MASKED_PASSWORD_VALUES['has'](_0x3b9a58))throw CliErrors[_0x48f3d1(0xdf)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x3b9a58&&MASKED_PASSWORD_VALUES[_0x48f3d1(0xe8)](String(_0xc327d9[_0x48f3d1(0xe0)]??'')))throw CliErrors['validation'](_0x48f3d1(0xf6));const _0xa4e689=_0x4e82ea['str'](_0x48f3d1(0xf4));if(_0xa4e689)_0x14f36c[_0x48f3d1(0xe4)]=_0xa4e689;const _0x154912=_0x4e82ea[_0x48f3d1(0xd7)]('dburl');if(_0x154912)_0x14f36c[_0x48f3d1(0xf3)]=_0x154912[_0x48f3d1(0xfa)]();const _0x51acb7=_0x4e82ea[_0x48f3d1(0xd7)]('username');if(_0x51acb7)_0x14f36c[_0x48f3d1(0xe5)]=_0x51acb7;if(_0x3b9a58)_0x14f36c[_0x48f3d1(0xe0)]=_0x3b9a58;const _0x372f90=_0x4e82ea[_0x48f3d1(0xd7)](_0x48f3d1(0xd5));if(_0x372f90)_0x14f36c['dbParam']=_0x372f90;const _0x77e02d=_0x4e82ea[_0x48f3d1(0xd7)](_0x48f3d1(0xea));if(_0x77e02d)_0x14f36c[_0x48f3d1(0xe6)]=_0x77e02d;return _0x14f36c;}export const dbUpdate={'service':'db','command':a96_0x485fa8(0xf9),'description':a96_0x485fa8(0xe9),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x485fa8(0xf4),'type':a96_0x485fa8(0xee),'description':a96_0x485fa8(0xf1)},{'name':a96_0x485fa8(0xdc),'type':a96_0x485fa8(0xee),'description':a96_0x485fa8(0xe3)},{'name':'username','type':a96_0x485fa8(0xee),'description':a96_0x485fa8(0xec)},{'name':'password','type':a96_0x485fa8(0xee),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':'dbparam','type':a96_0x485fa8(0xee),'description':a96_0x485fa8(0xeb)},{'name':a96_0x485fa8(0xea),'type':a96_0x485fa8(0xee),'description':a96_0x485fa8(0xd8)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x5914a8){const _0x555c50=a96_0x485fa8,_0x10d10a=_0x5914a8[_0x555c50(0xd7)](_0x555c50(0xdc));if(_0x10d10a&&!validateDbUrl(_0x10d10a[_0x555c50(0xfa)]()))throw CliErrors[_0x555c50(0xdf)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x10d10a+'\x22');},async 'dryRun'(_0x19d624){const _0x3c2c76=a96_0x485fa8,_0x2e79e0=_0x19d624[_0x3c2c76(0xf2)]('id'),_0x53ff73=await getDbLinkInfo(_0x2e79e0),_0x289792=mergeDbLinkUpdate(_0x53ff73,_0x19d624),_0x22b15d=sanitizeDbLinkForOutput(_0x289792);return{'method':_0x3c2c76(0xde),'url':_0x3c2c76(0xfb),'body':_0x22b15d,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x19d624[_0x3c2c76(0xda)](_0x3c2c76(0xf0)),'executed':![]}};},async 'execute'(_0x51b0e9){const _0xb6e9ad=a96_0x485fa8,_0x705d64=_0x51b0e9[_0xb6e9ad(0xf2)]('id'),_0x1b029b=await getDbLinkInfo(_0x705d64),_0x2c53b1=mergeDbLinkUpdate(_0x1b029b,_0x51b0e9);!_0x51b0e9[_0xb6e9ad(0xda)](_0xb6e9ad(0xf0))&&await assertDbLinkConnectionPreflight(_0x2c53b1);const {id:_0x23a472,entity:_0x3df986}=normalizeEntityWithIdResponse(await updateDbLink(_0x2c53b1));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x3df986),'message':'Updated\x20db\x20link\x20'+(_0x23a472??_0x705d64)};}};
1
+ const a96_0x4e867d=a96_0x570e;function a96_0x570e(_0x203566,_0x6445b9){_0x203566=_0x203566-0x15f;const _0x5ebe82=a96_0x5ebe();let _0x570e85=_0x5ebe82[_0x203566];return _0x570e85;}(function(_0x46cf20,_0x2a936f){const _0x3ee430=a96_0x570e,_0x1fa226=_0x46cf20();while(!![]){try{const _0x4f1daf=parseInt(_0x3ee430(0x165))/0x1*(parseInt(_0x3ee430(0x188))/0x2)+-parseInt(_0x3ee430(0x17c))/0x3+-parseInt(_0x3ee430(0x170))/0x4+parseInt(_0x3ee430(0x161))/0x5*(-parseInt(_0x3ee430(0x17e))/0x6)+parseInt(_0x3ee430(0x181))/0x7*(-parseInt(_0x3ee430(0x15f))/0x8)+-parseInt(_0x3ee430(0x187))/0x9*(parseInt(_0x3ee430(0x163))/0xa)+-parseInt(_0x3ee430(0x168))/0xb*(-parseInt(_0x3ee430(0x185))/0xc);if(_0x4f1daf===_0x2a936f)break;else _0x1fa226['push'](_0x1fa226['shift']());}catch(_0x526866){_0x1fa226['push'](_0x1fa226['shift']());}}}(a96_0x5ebe,0xa8362));function a96_0x5ebe(){const _0x6ce6d1=['username','write','dbName','str','dbparam','num','New\x20database\x20name','password','2982999oCWrsZ','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','3546pZHOQh','dburl','string','203AGTkLz','******','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','update','1668jSehje','dbdesc','559557nCtJOn','2654734nOwcWj','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','147048ugXuWQ','bool','9780nihgHf','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','10mwCLmW','validation','1dPZvXL','New\x20description','Updated\x20db\x20link\x20','254716jZvlCv','skip-connection-test','dbDesc','New\x20host:port','dbname','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','New\x20username','has','4446024GFdCJJ','[redacted]','trim','dbUrl'];a96_0x5ebe=function(){return _0x6ce6d1;};return a96_0x5ebe();}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_0x4e867d(0x182),a96_0x4e867d(0x171)]);function mergeDbLinkUpdate(_0x3f97c6,_0x53f048){const _0x37d310=a96_0x4e867d,_0xdedbae={..._0x3f97c6},_0x254dca=_0x53f048[_0x37d310(0x177)](_0x37d310(0x17b));if(_0x254dca&&MASKED_PASSWORD_VALUES['has'](_0x254dca))throw CliErrors['validation'](_0x37d310(0x18a));if(!_0x254dca&&MASKED_PASSWORD_VALUES[_0x37d310(0x16f)](String(_0x3f97c6['password']??'')))throw CliErrors[_0x37d310(0x164)](_0x37d310(0x189));const _0x43e31a=_0x53f048[_0x37d310(0x177)](_0x37d310(0x16c));if(_0x43e31a)_0xdedbae[_0x37d310(0x176)]=_0x43e31a;const _0x47e9dc=_0x53f048[_0x37d310(0x177)](_0x37d310(0x17f));if(_0x47e9dc)_0xdedbae[_0x37d310(0x173)]=_0x47e9dc[_0x37d310(0x172)]();const _0x5a8143=_0x53f048[_0x37d310(0x177)](_0x37d310(0x174));if(_0x5a8143)_0xdedbae[_0x37d310(0x174)]=_0x5a8143;if(_0x254dca)_0xdedbae[_0x37d310(0x17b)]=_0x254dca;const _0x5e6cce=_0x53f048['str'](_0x37d310(0x178));if(_0x5e6cce)_0xdedbae['dbParam']=_0x5e6cce;const _0x281c2d=_0x53f048[_0x37d310(0x177)](_0x37d310(0x186));if(_0x281c2d)_0xdedbae[_0x37d310(0x16a)]=_0x281c2d;return _0xdedbae;}export const dbUpdate={'service':'db','command':a96_0x4e867d(0x184),'description':a96_0x4e867d(0x183),'risk':a96_0x4e867d(0x175),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a96_0x4e867d(0x180),'description':a96_0x4e867d(0x17a)},{'name':a96_0x4e867d(0x17f),'type':a96_0x4e867d(0x180),'description':a96_0x4e867d(0x16b)},{'name':a96_0x4e867d(0x174),'type':a96_0x4e867d(0x180),'description':a96_0x4e867d(0x16e)},{'name':a96_0x4e867d(0x17b),'type':a96_0x4e867d(0x180),'description':a96_0x4e867d(0x16d)},{'name':a96_0x4e867d(0x178),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a96_0x4e867d(0x186),'type':a96_0x4e867d(0x180),'description':a96_0x4e867d(0x166)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x3ac89f){const _0x1e3e9a=a96_0x4e867d,_0x56acca=_0x3ac89f['str'](_0x1e3e9a(0x17f));if(_0x56acca&&!validateDbUrl(_0x56acca[_0x1e3e9a(0x172)]()))throw CliErrors[_0x1e3e9a(0x164)](_0x1e3e9a(0x162)+_0x56acca+'\x22');},async 'dryRun'(_0x50ce78){const _0x23bc77=a96_0x4e867d,_0x2acb77=_0x50ce78[_0x23bc77(0x179)]('id'),_0x36c36e=await getDbLinkInfo(_0x2acb77),_0xc0b0cd=mergeDbLinkUpdate(_0x36c36e,_0x50ce78),_0x39ca51=sanitizeDbLinkForOutput(_0xc0b0cd);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x39ca51,'description':_0x23bc77(0x17d),'connectionPreflight':{'enabled':!_0x50ce78[_0x23bc77(0x160)]('skip-connection-test'),'executed':![]}};},async 'execute'(_0x552e99){const _0x293678=a96_0x4e867d,_0x2a3d13=_0x552e99[_0x293678(0x179)]('id'),_0x2cbb35=await getDbLinkInfo(_0x2a3d13),_0x536fed=mergeDbLinkUpdate(_0x2cbb35,_0x552e99);!_0x552e99[_0x293678(0x160)](_0x293678(0x169))&&await assertDbLinkConnectionPreflight(_0x536fed);const {id:_0x14fbf1,entity:_0x323805}=normalizeEntityWithIdResponse(await updateDbLink(_0x536fed));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x323805),'message':_0x293678(0x167)+(_0x14fbf1??_0x2a3d13)};}};
@@ -1 +1 @@
1
- (function(_0x24e314,_0x20c48b){const _0x569e93=a97_0x5f5c,_0x50cd13=_0x24e314();while(!![]){try{const _0x24f693=-parseInt(_0x569e93(0x12b))/0x1*(-parseInt(_0x569e93(0x148))/0x2)+-parseInt(_0x569e93(0x12a))/0x3*(parseInt(_0x569e93(0x135))/0x4)+parseInt(_0x569e93(0x13a))/0x5*(parseInt(_0x569e93(0x12f))/0x6)+-parseInt(_0x569e93(0x12d))/0x7*(-parseInt(_0x569e93(0x13c))/0x8)+parseInt(_0x569e93(0x142))/0x9+-parseInt(_0x569e93(0x13e))/0xa*(parseInt(_0x569e93(0x12c))/0xb)+parseInt(_0x569e93(0x149))/0xc*(-parseInt(_0x569e93(0x132))/0xd);if(_0x24f693===_0x20c48b)break;else _0x50cd13['push'](_0x50cd13['shift']());}catch(_0x4fd6d9){_0x50cd13['push'](_0x50cd13['shift']());}}}(a97_0x3dd9,0x3eece));function a97_0x3dd9(){const _0x48c498=['1530SyeKzO','\x27\x5c\x27\x27','partial_failure','923RVbMXn','appCode','test','80188lzKEQF','bizCode','--confirm','--codes','message','7485iOqvgN','some','8hcniWl','trim','543010eIEhOF','length','--appcode','deployment','2549934zpUFlw','sync','not_needed','succeeded','FAILED','would_sync','1140jtFFdI','94632hFQpnR','action','skipped_primary_failed','Automatic\x20deployment\x20sync\x20supports\x20at\x20most\x20','filter','status','12eBUmmH','79KLItrk','22WKPFdS','2074429TvMTRE','failed'];a97_0x3dd9=function(){return _0x48c498;};return a97_0x3dd9();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a97_0x5f5c(_0x9fac8f,_0x5abbea){_0x9fac8f=_0x9fac8f-0x128;const _0x3dd969=a97_0x3dd9();let _0x5f5ca9=_0x3dd969[_0x9fac8f];return _0x5f5ca9;}import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';const MAX_SYNC_CODES=0x64;export function buildAutomaticDeploymentSyncPreview(_0x16836d,_0x4f9d7a){const _0x5bbab4=a97_0x5f5c,_0x3f49d5=normalizeCodes(_0x4f9d7a);if(_0x3f49d5['length']===0x0)return{'status':_0x5bbab4(0x144),'bizType':_0x16836d,'bizCodes':_0x3f49d5};return{'status':_0x5bbab4(0x147),'bizType':_0x16836d,'bizCodes':_0x3f49d5};}export async function runAutomaticDeploymentSync(_0x33a096,_0x399fda,_0x55fa87,_0x1822e2){const _0x82297b=a97_0x5f5c,_0x421365=normalizeCodes(_0x55fa87);if(!_0x1822e2)return{'attempted':![],'status':_0x82297b(0x14b),'bizType':_0x399fda,'bizCodes':_0x421365};if(_0x421365['length']===0x0)return{'attempted':![],'status':_0x82297b(0x144),'bizType':_0x399fda,'bizCodes':_0x421365};const _0x257b90={'bizType':_0x399fda,'bizCodes':_0x421365};if(_0x421365[_0x82297b(0x13f)]>MAX_SYNC_CODES)return{..._0x257b90,'attempted':![],'status':'failed','error':_0x82297b(0x14c)+MAX_SYNC_CODES+'\x20codes;\x20run\x20deployment\x20sync\x20manually\x20in\x20batches.'};try{const {items:_0x3b1b28}=await syncDeploymentMetadata({'appCode':_0x33a096[_0x82297b(0x133)],'bizType':_0x399fda,'bizCodes':_0x421365}),_0x7dbc46=_0x3b1b28[_0x82297b(0x13b)](_0xc56932=>_0xc56932[_0x82297b(0x14a)]===_0x82297b(0x146)),_0x524baa=new Set(_0x3b1b28[_0x82297b(0x128)](_0x1cbaaa=>_0x1cbaaa[_0x82297b(0x14a)]==='FAILED')['map'](_0x3a4edc=>_0x3a4edc[_0x82297b(0x136)])),_0x198b98=_0x421365[_0x82297b(0x128)](_0x56c40c=>_0x524baa['has'](_0x56c40c));return{..._0x257b90,'attempted':!![],'status':_0x7dbc46?_0x82297b(0x131):'succeeded','items':_0x3b1b28,..._0x7dbc46&&_0x198b98[_0x82297b(0x13f)]>0x0?{'recoveryCommand':buildRecoveryCommand(_0x33a096[_0x82297b(0x133)],_0x399fda,_0x198b98)}:{}};}catch(_0x46bfce){return{..._0x257b90,'attempted':!![],'status':isPlatformTransportFailure(_0x46bfce)?'outcome_unknown':_0x82297b(0x12e),'recoveryCommand':buildRecoveryCommand(_0x33a096['appCode'],_0x399fda,_0x421365),'error':_0x46bfce instanceof Error?_0x46bfce[_0x82297b(0x139)]:String(_0x46bfce)};}}function normalizeCodes(_0x9dd5c6){const _0x4f8673=a97_0x5f5c;return[...new Set(_0x9dd5c6['map'](_0x14c0a3=>_0x14c0a3[_0x4f8673(0x13d)]())[_0x4f8673(0x128)](Boolean))];}export function automaticDeploymentSyncSucceeded(_0x1a7e2b){const _0xb99b92=a97_0x5f5c;return _0x1a7e2b[_0xb99b92(0x129)]==='not_needed'||_0x1a7e2b[_0xb99b92(0x129)]==='skipped_primary_failed'||_0x1a7e2b['status']===_0xb99b92(0x145);}function buildRecoveryCommand(_0x1967ef,_0x49343f,_0x1f67a2){const _0x1704e2=a97_0x5f5c;return[CLI_BIN_NAME,_0x1704e2(0x141),_0x1704e2(0x143),_0x1704e2(0x140),shellArg(_0x1967ef),'--type',shellArg(_0x49343f),_0x1704e2(0x138),shellArg(_0x1f67a2['join'](',')),_0x1704e2(0x137)]['join']('\x20');}function shellArg(_0x21cb79){const _0x402036=a97_0x5f5c;return/^[A-Za-z0-9._:/,-]+$/[_0x402036(0x134)](_0x21cb79)?_0x21cb79:'\x27'+_0x21cb79['replace'](/'/g,_0x402036(0x130))+'\x27';}
1
+ (function(_0x2f1e48,_0x1b3cf1){const _0x575ff5=a97_0xcd08,_0x2269be=_0x2f1e48();while(!![]){try{const _0xdc4da=-parseInt(_0x575ff5(0x78))/0x1+parseInt(_0x575ff5(0x89))/0x2*(-parseInt(_0x575ff5(0x80))/0x3)+parseInt(_0x575ff5(0x77))/0x4+-parseInt(_0x575ff5(0x81))/0x5+parseInt(_0x575ff5(0x90))/0x6*(parseInt(_0x575ff5(0x86))/0x7)+parseInt(_0x575ff5(0x88))/0x8*(-parseInt(_0x575ff5(0x83))/0x9)+parseInt(_0x575ff5(0x7b))/0xa;if(_0xdc4da===_0x1b3cf1)break;else _0x2269be['push'](_0x2269be['shift']());}catch(_0x1a2214){_0x2269be['push'](_0x2269be['shift']());}}}(a97_0x62ec,0x9261c));import{CLI_BIN_NAME}from'../../constant/cli.js';function a97_0x62ec(){const _0x57e178=['\x20codes;\x20run\x20deployment\x20sync\x20manually\x20in\x20batches.','length','failed','175173kvnHxI','382810nqigFX','has','214173Bdwvuc','filter','not_needed','7Gfeyac','FAILED','112tYgXjN','16NVvYUo','deployment','would_sync','skipped_primary_failed','action','replace','partial_failure','6443910KQCikv','--type','status','--appcode','succeeded','--codes','\x27\x5c\x27\x27','appCode','join','Automatic\x20deployment\x20sync\x20supports\x20at\x20most\x20','878184bzfCdO','910491tFdXmq','test','map','10933880ScwYxC','bizCode'];a97_0x62ec=function(){return _0x57e178;};return a97_0x62ec();}import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';const MAX_SYNC_CODES=0x64;export function buildAutomaticDeploymentSyncPreview(_0x5b70e2,_0x5c807f){const _0x126a73=a97_0xcd08,_0x2fdaa2=normalizeCodes(_0x5c807f);if(_0x2fdaa2[_0x126a73(0x7e)]===0x0)return{'status':_0x126a73(0x85),'bizType':_0x5b70e2,'bizCodes':_0x2fdaa2};return{'status':_0x126a73(0x8b),'bizType':_0x5b70e2,'bizCodes':_0x2fdaa2};}export async function runAutomaticDeploymentSync(_0x4cb304,_0x867488,_0x43ba2e,_0x51fc84){const _0x47fcc6=a97_0xcd08,_0x3e6986=normalizeCodes(_0x43ba2e);if(!_0x51fc84)return{'attempted':![],'status':'skipped_primary_failed','bizType':_0x867488,'bizCodes':_0x3e6986};if(_0x3e6986[_0x47fcc6(0x7e)]===0x0)return{'attempted':![],'status':_0x47fcc6(0x85),'bizType':_0x867488,'bizCodes':_0x3e6986};const _0x522019={'bizType':_0x867488,'bizCodes':_0x3e6986};if(_0x3e6986[_0x47fcc6(0x7e)]>MAX_SYNC_CODES)return{..._0x522019,'attempted':![],'status':_0x47fcc6(0x7f),'error':_0x47fcc6(0x76)+MAX_SYNC_CODES+_0x47fcc6(0x7d)};try{const {items:_0x38fd14}=await syncDeploymentMetadata({'appCode':_0x4cb304[_0x47fcc6(0x74)],'bizType':_0x867488,'bizCodes':_0x3e6986}),_0x4b9148=_0x38fd14['some'](_0x23bdf9=>_0x23bdf9[_0x47fcc6(0x8d)]===_0x47fcc6(0x87)),_0x409f26=new Set(_0x38fd14[_0x47fcc6(0x84)](_0xac4f3c=>_0xac4f3c['action']===_0x47fcc6(0x87))[_0x47fcc6(0x7a)](_0x28da54=>_0x28da54[_0x47fcc6(0x7c)])),_0x41db33=_0x3e6986[_0x47fcc6(0x84)](_0x5ccf9f=>_0x409f26[_0x47fcc6(0x82)](_0x5ccf9f));return{..._0x522019,'attempted':!![],'status':_0x4b9148?_0x47fcc6(0x8f):_0x47fcc6(0x94),'items':_0x38fd14,..._0x4b9148&&_0x41db33[_0x47fcc6(0x7e)]>0x0?{'recoveryCommand':buildRecoveryCommand(_0x4cb304[_0x47fcc6(0x74)],_0x867488,_0x41db33)}:{}};}catch(_0x219d86){return{..._0x522019,'attempted':!![],'status':isPlatformTransportFailure(_0x219d86)?'outcome_unknown':_0x47fcc6(0x7f),'recoveryCommand':buildRecoveryCommand(_0x4cb304[_0x47fcc6(0x74)],_0x867488,_0x3e6986),'error':_0x219d86 instanceof Error?_0x219d86['message']:String(_0x219d86)};}}function normalizeCodes(_0x186f8f){const _0x394cb0=a97_0xcd08;return[...new Set(_0x186f8f[_0x394cb0(0x7a)](_0x51cedb=>_0x51cedb['trim']())[_0x394cb0(0x84)](Boolean))];}export function automaticDeploymentSyncSucceeded(_0x49325f){const _0x383e69=a97_0xcd08;return _0x49325f['status']==='not_needed'||_0x49325f['status']===_0x383e69(0x8c)||_0x49325f[_0x383e69(0x92)]===_0x383e69(0x94);}function buildRecoveryCommand(_0x12513d,_0x1015a7,_0x14887a){const _0x231625=a97_0xcd08;return[CLI_BIN_NAME,_0x231625(0x8a),'sync',_0x231625(0x93),shellArg(_0x12513d),_0x231625(0x91),shellArg(_0x1015a7),_0x231625(0x95),shellArg(_0x14887a[_0x231625(0x75)](',')),'--confirm'][_0x231625(0x75)]('\x20');}function a97_0xcd08(_0x5f468a,_0x4c625c){_0x5f468a=_0x5f468a-0x74;const _0x62ec49=a97_0x62ec();let _0xcd088f=_0x62ec49[_0x5f468a];return _0xcd088f;}function shellArg(_0x2b64a7){const _0x441200=a97_0xcd08;return/^[A-Za-z0-9._:/,-]+$/[_0x441200(0x79)](_0x2b64a7)?_0x2b64a7:'\x27'+_0x2b64a7[_0x441200(0x8e)](/'/g,_0x441200(0x96))+'\x27';}
@@ -1 +1 @@
1
- (function(_0x5dbcb5,_0x498efc){const _0x1e0369=a98_0x5c15,_0x16b1b1=_0x5dbcb5();while(!![]){try{const _0x9768e2=parseInt(_0x1e0369(0x1ac))/0x1*(-parseInt(_0x1e0369(0x1b0))/0x2)+parseInt(_0x1e0369(0x1a5))/0x3*(-parseInt(_0x1e0369(0x1a6))/0x4)+parseInt(_0x1e0369(0x1a8))/0x5*(-parseInt(_0x1e0369(0x1ab))/0x6)+parseInt(_0x1e0369(0x1ae))/0x7+-parseInt(_0x1e0369(0x1af))/0x8*(-parseInt(_0x1e0369(0x1a9))/0x9)+-parseInt(_0x1e0369(0x1a7))/0xa+parseInt(_0x1e0369(0x1ad))/0xb*(parseInt(_0x1e0369(0x1aa))/0xc);if(_0x9768e2===_0x498efc)break;else _0x16b1b1['push'](_0x16b1b1['shift']());}catch(_0x452079){_0x16b1b1['push'](_0x16b1b1['shift']());}}}(a98_0x440a,0x7a402));import{deploymentSync}from'../../commands/deployment/sync.js';function a98_0x440a(){const _0x56649e=['12UcoHiN','1973652BAGFLq','16836VZvZmi','7336879GakgtW','4644563XzlPoa','3614504jmtpMi','74TRLTHN','189yUcoeZ','17972hXeVKd','4984530ZpAuSG','5cZdmKR','18CUuENY'];a98_0x440a=function(){return _0x56649e;};return a98_0x440a();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a98_0x5c15(_0x3fc35e,_0x1baa06){_0x3fc35e=_0x3fc35e-0x1a5;const _0x440aad=a98_0x440a();let _0x5c152a=_0x440aad[_0x3fc35e];return _0x5c152a;}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSync,deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x3fe792,_0x17d8d2){const _0x2c2014=a98_0x5517,_0x3b624f=_0x3fe792();while(!![]){try{const _0x33e24b=-parseInt(_0x2c2014(0x1cc))/0x1+parseInt(_0x2c2014(0x1c7))/0x2+parseInt(_0x2c2014(0x1cd))/0x3*(parseInt(_0x2c2014(0x1c4))/0x4)+-parseInt(_0x2c2014(0x1ca))/0x5*(-parseInt(_0x2c2014(0x1c8))/0x6)+-parseInt(_0x2c2014(0x1c6))/0x7*(parseInt(_0x2c2014(0x1c5))/0x8)+parseInt(_0x2c2014(0x1c9))/0x9+-parseInt(_0x2c2014(0x1cb))/0xa;if(_0x33e24b===_0x17d8d2)break;else _0x3b624f['push'](_0x3b624f['shift']());}catch(_0x4c4db2){_0x3b624f['push'](_0x3b624f['shift']());}}}(a98_0x11a7,0xa77c7));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';function a98_0x5517(_0x7f3812,_0xfefe87){_0x7f3812=_0x7f3812-0x1c4;const _0x11a77d=a98_0x11a7();let _0x55179f=_0x11a77d[_0x7f3812];return _0x55179f;}function a98_0x11a7(){const _0x5d3154=['2048268JzLQxG','2785038SPBipO','4089051NLmGXB','10xzeWXQ','17746740tpoBfw','773700toLQni','3kTqBnB','5408140deFOrE','220824MOHWdI','133jFjYhU'];a98_0x11a7=function(){return _0x5d3154;};return a98_0x11a7();}export const deploymentDefinitions=[deploymentSync,deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- const a99_0xb40c87=a99_0x498c;function a99_0x9302(){const _0x31434b=['1061420MENIsY','327800XgMkAH','POST','517795mLBudV','304068MQINnt','4gkOSfc','defineProperty','9IbExFo','application_deployment_sync','deployment_sync_submit_outcome_unknown','jobId','Synchronize\x20all\x20server-supported\x20application\x20metadata','8isrTOO','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','12fVUTzQ','submitted','not_submitted','not_needed','appCode','945730yMvwKA','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','unknown','job','boolean','data','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','2349408vueOtA','all_server_supported_metadata','Submitted\x20deployment\x20synchronization\x20job\x20','22ktQhPd','write','3364529GZBfkU','sync-all','outcome','bool','validation'];a99_0x9302=function(){return _0x31434b;};return a99_0x9302();}function a99_0x498c(_0x1f6a77,_0xf24694){_0x1f6a77=_0x1f6a77-0x161;const _0x9302fe=a99_0x9302();let _0x498cfb=_0x9302fe[_0x1f6a77];return _0x498cfb;}(function(_0x11bb00,_0x492d34){const _0x12af89=a99_0x498c,_0x2983eb=_0x11bb00();while(!![]){try{const _0x12b543=-parseInt(_0x12af89(0x182))/0x1+parseInt(_0x12af89(0x180))/0x2+-parseInt(_0x12af89(0x183))/0x3*(-parseInt(_0x12af89(0x184))/0x4)+parseInt(_0x12af89(0x17f))/0x5*(-parseInt(_0x12af89(0x169))/0x6)+-parseInt(_0x12af89(0x17a))/0x7*(-parseInt(_0x12af89(0x166))/0x8)+parseInt(_0x12af89(0x161))/0x9*(parseInt(_0x12af89(0x16e))/0xa)+parseInt(_0x12af89(0x178))/0xb*(parseInt(_0x12af89(0x175))/0xc);if(_0x12b543===_0x492d34)break;else _0x2983eb['push'](_0x2983eb['shift']());}catch(_0x2c5e1f){_0x2983eb['push'](_0x2983eb['shift']());}}}(a99_0x9302,0x46b91));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':'confirm','type':a99_0xb40c87(0x172),'description':'Confirm\x20application-scoped\x20deployment\x20synchronization'};export const deploymentSyncAll={'service':'deployment','command':a99_0xb40c87(0x17b),'description':a99_0xb40c87(0x165),'risk':a99_0xb40c87(0x179),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20application-scoped\x20metadata\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x880bc){const _0x20d319=a99_0xb40c87;return asDryRunResult(buildPreview(_0x880bc[_0x20d319(0x16d)]),{'method':_0x20d319(0x181),'url':SUBMIT_PATH,'description':'Would\x20submit\x20application-scoped\x20deployment\x20synchronization.'});},async 'execute'(_0x1f8355){const _0x4d5865=a99_0xb40c87;if(!_0x1f8355[_0x4d5865(0x17d)]('confirm'))throw CliErrors[_0x4d5865(0x17e)](_0x4d5865(0x167),_0x4d5865(0x168));try{const _0x4eb40b=await submitDeploymentMetadataSyncAll({'appCode':_0x1f8355[_0x4d5865(0x16d)]});if(_0x4eb40b[_0x4d5865(0x17c)]===_0x4d5865(0x16c))return{'ok':!![],'data':{'operation':_0x4d5865(0x162),'appCode':_0x1f8355['appCode'],'submitted':![],'outcome':_0x4d5865(0x16c)},'message':_0x4d5865(0x174)};return{'ok':!![],'data':{'operation':_0x4d5865(0x162),'appCode':_0x1f8355['appCode'],'submitted':!![],'outcome':_0x4d5865(0x16a),'jobId':_0x4eb40b[_0x4d5865(0x171)]['jobId'],'status':_0x4eb40b['job']['status']},'message':_0x4d5865(0x177)+_0x4eb40b[_0x4d5865(0x171)][_0x4d5865(0x164)]+'.'};}catch(_0x4c58df){if(!isPlatformTransportFailure(_0x4c58df))throw _0x4c58df;const _0x51767e=new CliError(_0x4d5865(0x163),0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x4d5865(0x16f));Object[_0x4d5865(0x185)](_0x51767e,_0x4d5865(0x173),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x1f8355[_0x4d5865(0x16d)],'submitted':null,'outcome':_0x4d5865(0x170)}});throw _0x51767e;}}};function buildPreview(_0x4de95b){const _0x109b3d=a99_0xb40c87;return{'operation':_0x109b3d(0x162),'selector':{'appCode':_0x4de95b,'scope':_0x109b3d(0x176)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x109b3d(0x16b)},'warnings':[]};}
1
+ const a99_0x5b2e12=a99_0x16d3;(function(_0x77f0c6,_0x162763){const _0x5d492b=a99_0x16d3,_0x5cc975=_0x77f0c6();while(!![]){try{const _0xc737ba=-parseInt(_0x5d492b(0x1be))/0x1*(-parseInt(_0x5d492b(0x1cf))/0x2)+parseInt(_0x5d492b(0x1c0))/0x3*(-parseInt(_0x5d492b(0x1c5))/0x4)+-parseInt(_0x5d492b(0x1b5))/0x5+parseInt(_0x5d492b(0x1cc))/0x6*(-parseInt(_0x5d492b(0x1b8))/0x7)+parseInt(_0x5d492b(0x1b6))/0x8*(-parseInt(_0x5d492b(0x1c7))/0x9)+-parseInt(_0x5d492b(0x1b1))/0xa+parseInt(_0x5d492b(0x1d2))/0xb*(parseInt(_0x5d492b(0x1d0))/0xc);if(_0xc737ba===_0x162763)break;else _0x5cc975['push'](_0x5cc975['shift']());}catch(_0x15a560){_0x5cc975['push'](_0x5cc975['shift']());}}}(a99_0x4ad4,0x68db6));function a99_0x16d3(_0x179a50,_0x40ba64){_0x179a50=_0x179a50-0x1ae;const _0x4ad445=a99_0x4ad4();let _0x16d340=_0x4ad445[_0x179a50];return _0x16d340;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a99_0x4ad4(){const _0x158c8f=['jobId','Confirm\x20application-scoped\x20deployment\x20synchronization','validation','application_deployment_sync','3052tSAVLx','confirm','928971ZCHqRp','unknown','job','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Synchronize\x20all\x20server-supported\x20application\x20metadata','1154586CnDwtM','submitted','data','5262oVUmhy','191028PjYQMv','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','1133txSdpF','defineProperty','Submit\x20application-scoped\x20metadata\x20synchronization.','appCode','2884730IMsdWT','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','deployment','boolean','3997740IylxBg','16uWxzQf','not_submitted','21esmxeH','sync-all','not_needed','/smartapi/data-sync/submit','POST','Submitted\x20deployment\x20synchronization\x20job\x20','317SUvIzG','Would\x20submit\x20application-scoped\x20deployment\x20synchronization.','678vIPdKd'];a99_0x4ad4=function(){return _0x158c8f;};return a99_0x4ad4();}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a99_0x5b2e12(0x1bb),CONFIRM_FLAG={'name':a99_0x5b2e12(0x1c6),'type':a99_0x5b2e12(0x1b4),'description':a99_0x5b2e12(0x1c2)};export const deploymentSyncAll={'service':a99_0x5b2e12(0x1b3),'command':a99_0x5b2e12(0x1b9),'description':a99_0x5b2e12(0x1cb),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a99_0x5b2e12(0x1af),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0xc1c83c){const _0x353ae5=a99_0x5b2e12;return asDryRunResult(buildPreview(_0xc1c83c[_0x353ae5(0x1b0)]),{'method':_0x353ae5(0x1bc),'url':SUBMIT_PATH,'description':_0x353ae5(0x1bf)});},async 'execute'(_0x25971f){const _0x2bb44e=a99_0x5b2e12;if(!_0x25971f['bool']('confirm'))throw CliErrors[_0x2bb44e(0x1c3)]('--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.',_0x2bb44e(0x1d1));try{const _0x598312=await submitDeploymentMetadataSyncAll({'appCode':_0x25971f[_0x2bb44e(0x1b0)]});if(_0x598312['outcome']===_0x2bb44e(0x1ba))return{'ok':!![],'data':{'operation':_0x2bb44e(0x1c4),'appCode':_0x25971f['appCode'],'submitted':![],'outcome':_0x2bb44e(0x1ba)},'message':_0x2bb44e(0x1b2)};return{'ok':!![],'data':{'operation':_0x2bb44e(0x1c4),'appCode':_0x25971f[_0x2bb44e(0x1b0)],'submitted':!![],'outcome':_0x2bb44e(0x1cd),'jobId':_0x598312[_0x2bb44e(0x1c9)][_0x2bb44e(0x1c1)],'status':_0x598312[_0x2bb44e(0x1c9)]['status']},'message':_0x2bb44e(0x1bd)+_0x598312[_0x2bb44e(0x1c9)][_0x2bb44e(0x1c1)]+'.'};}catch(_0x247f07){if(!isPlatformTransportFailure(_0x247f07))throw _0x247f07;const _0x51ebc6=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x2bb44e(0x1ca),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x2bb44e(0x1ae)](_0x51ebc6,_0x2bb44e(0x1ce),{'enumerable':!![],'value':{'operation':_0x2bb44e(0x1c4),'appCode':_0x25971f['appCode'],'submitted':null,'outcome':_0x2bb44e(0x1c8)}});throw _0x51ebc6;}}};function buildPreview(_0x2e49be){const _0x39dd86=a99_0x5b2e12;return{'operation':'application_deployment_sync','selector':{'appCode':_0x2e49be,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x39dd86(0x1b7)},'warnings':[]};}
@@ -1 +1 @@
1
- const a100_0x199225=a100_0x43f9;function a100_0x43f9(_0x3b4234,_0x3779db){_0x3b4234=_0x3b4234-0x12d;const _0x58f428=a100_0x58f4();let _0x43f916=_0x58f428[_0x3b4234];return _0x43f916;}(function(_0x3760f9,_0x38d83c){const _0x503387=a100_0x43f9,_0x1a93dc=_0x3760f9();while(!![]){try{const _0x40dd2e=parseInt(_0x503387(0x146))/0x1*(-parseInt(_0x503387(0x138))/0x2)+parseInt(_0x503387(0x141))/0x3*(parseInt(_0x503387(0x12e))/0x4)+-parseInt(_0x503387(0x12d))/0x5*(parseInt(_0x503387(0x147))/0x6)+parseInt(_0x503387(0x13e))/0x7+parseInt(_0x503387(0x134))/0x8*(-parseInt(_0x503387(0x13f))/0x9)+-parseInt(_0x503387(0x13d))/0xa+parseInt(_0x503387(0x13a))/0xb*(parseInt(_0x503387(0x132))/0xc);if(_0x40dd2e===_0x38d83c)break;else _0x1a93dc['push'](_0x1a93dc['shift']());}catch(_0x31d67c){_0x1a93dc['push'](_0x1a93dc['shift']());}}}(a100_0x58f4,0x1a62e));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_0x199225(0x143),'command':'sync-jobs','description':a100_0x199225(0x148),'risk':a100_0x199225(0x142),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':'number','default':0x1,'description':a100_0x199225(0x13c)},{'name':a100_0x199225(0x139),'type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':a100_0x199225(0x133),'type':'string','description':a100_0x199225(0x135)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x21aa55){const _0x4fddf8=a100_0x199225;readPaging(_0x21aa55[_0x4fddf8(0x130)](_0x4fddf8(0x14a),0x1),_0x21aa55[_0x4fddf8(0x130)]('page-size',0xa));},async 'execute'(_0x4cd204){const _0x1276b9=a100_0x199225,{currentPage:_0x2a38e6,pageSize:_0x2ad1b7}=readPaging(_0x4cd204[_0x1276b9(0x130)]('current-page',0x1),_0x4cd204[_0x1276b9(0x130)](_0x1276b9(0x139),0xa)),_0x1893b5=_0x4cd204[_0x1276b9(0x136)]('status')['trim'](),_0x2a711c=await listDeploymentMetadataSyncJobs({'appCode':_0x4cd204[_0x1276b9(0x137)],'currentPage':_0x2a38e6,'pageSize':_0x2ad1b7,..._0x1893b5?{'status':_0x1893b5}:{}});return{'ok':!![],'data':{'appCode':_0x4cd204[_0x1276b9(0x137)],..._0x2a711c},'message':_0x1276b9(0x149)+_0x2a711c['items'][_0x1276b9(0x140)]+_0x1276b9(0x13b)};}};function readPaging(_0x317f1e,_0x23af3c){const _0x42f606=a100_0x199225;if(!Number[_0x42f606(0x145)](_0x317f1e)||_0x317f1e<0x1)throw CliErrors['validation'](_0x42f606(0x131));if(!Number[_0x42f606(0x145)](_0x23af3c)||_0x23af3c<0x1||_0x23af3c>0x64)throw CliErrors[_0x42f606(0x12f)](_0x42f606(0x144));return{'currentPage':_0x317f1e,'pageSize':_0x23af3c};}function a100_0x58f4(){const _0x9a5662=['length','6swkwMd','read','deployment','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','isSafeInteger','87189hLmORs','66TDBasW','List\x20application\x20deployment\x20synchronization\x20jobs','Found\x20','current-page','43565OQZoaG','104176KozGtK','validation','num','--current-page\x20must\x20be\x20a\x20positive\x20integer.','12AgqXqo','status','109736pVdWvH','Optional\x20server-defined\x20job\x20status\x20filter','str','appCode','2vOPMUF','page-size','2680964NhWFSH','\x20deployment\x20synchronization\x20job(s).','Page\x20number','497100krXnGP','411075gDczsj','9KPYNur'];a100_0x58f4=function(){return _0x9a5662;};return a100_0x58f4();}
1
+ const a100_0x168f8c=a100_0x1255;(function(_0x47a845,_0x51b27d){const _0x497e0f=a100_0x1255,_0x39d27a=_0x47a845();while(!![]){try{const _0x2e56a1=-parseInt(_0x497e0f(0x1aa))/0x1+parseInt(_0x497e0f(0x1ae))/0x2*(parseInt(_0x497e0f(0x1b9))/0x3)+parseInt(_0x497e0f(0x1b6))/0x4+parseInt(_0x497e0f(0x1c6))/0x5*(-parseInt(_0x497e0f(0x1bf))/0x6)+parseInt(_0x497e0f(0x1b4))/0x7+-parseInt(_0x497e0f(0x1b1))/0x8+parseInt(_0x497e0f(0x1ac))/0x9*(parseInt(_0x497e0f(0x1b8))/0xa);if(_0x2e56a1===_0x51b27d)break;else _0x39d27a['push'](_0x39d27a['shift']());}catch(_0x2613a4){_0x39d27a['push'](_0x39d27a['shift']());}}}(a100_0x2c10,0xea635));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_0x168f8c(0x1af),'command':a100_0x168f8c(0x1c1),'description':a100_0x168f8c(0x1c3),'risk':a100_0x168f8c(0x1ba),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a100_0x168f8c(0x1c4),'type':'number','default':0x1,'description':a100_0x168f8c(0x1c0)},{'name':a100_0x168f8c(0x1be),'type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':'status','type':'string','description':a100_0x168f8c(0x1bd)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x59de31){const _0x2bd52f=a100_0x168f8c;readPaging(_0x59de31[_0x2bd52f(0x1c2)](_0x2bd52f(0x1c4),0x1),_0x59de31[_0x2bd52f(0x1c2)]('page-size',0xa));},async 'execute'(_0x473eb7){const _0x1691ef=a100_0x168f8c,{currentPage:_0x2ab4a5,pageSize:_0x5c83fd}=readPaging(_0x473eb7['num'](_0x1691ef(0x1c4),0x1),_0x473eb7[_0x1691ef(0x1c2)](_0x1691ef(0x1be),0xa)),_0x4cd872=_0x473eb7[_0x1691ef(0x1c5)](_0x1691ef(0x1b2))[_0x1691ef(0x1ad)](),_0x401cba=await listDeploymentMetadataSyncJobs({'appCode':_0x473eb7[_0x1691ef(0x1b7)],'currentPage':_0x2ab4a5,'pageSize':_0x5c83fd,..._0x4cd872?{'status':_0x4cd872}:{}});return{'ok':!![],'data':{'appCode':_0x473eb7[_0x1691ef(0x1b7)],..._0x401cba},'message':_0x1691ef(0x1bb)+_0x401cba[_0x1691ef(0x1bc)][_0x1691ef(0x1b5)]+_0x1691ef(0x1b0)};}};function readPaging(_0x1400fb,_0x12c5a4){const _0x5ceba9=a100_0x168f8c;if(!Number[_0x5ceba9(0x1a9)](_0x1400fb)||_0x1400fb<0x1)throw CliErrors[_0x5ceba9(0x1ab)]('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x5ceba9(0x1a9)](_0x12c5a4)||_0x12c5a4<0x1||_0x12c5a4>0x64)throw CliErrors['validation'](_0x5ceba9(0x1b3));return{'currentPage':_0x1400fb,'pageSize':_0x12c5a4};}function a100_0x1255(_0x22a4d2,_0x2fa1ff){_0x22a4d2=_0x22a4d2-0x1a9;const _0x2c1085=a100_0x2c10();let _0x1255ce=_0x2c1085[_0x22a4d2];return _0x1255ce;}function a100_0x2c10(){const _0xf50a96=['292122NxjyMY','Page\x20number','sync-jobs','num','List\x20application\x20deployment\x20synchronization\x20jobs','current-page','str','55nsShBy','isSafeInteger','1901719iBzJEJ','validation','1107PTfAMO','trim','685006JyNxTI','deployment','\x20deployment\x20synchronization\x20job(s).','12364368JwmaBb','status','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','9237424TmYquz','length','2019996ToYayt','appCode','225670snWlpk','3oazpcN','read','Found\x20','items','Optional\x20server-defined\x20job\x20status\x20filter','page-size'];a100_0x2c10=function(){return _0xf50a96;};return a100_0x2c10();}
@@ -1 +1 @@
1
- const a101_0x692a77=a101_0x346c;function a101_0x346c(_0x32bdfd,_0x34bab3){_0x32bdfd=_0x32bdfd-0x7d;const _0x100311=a101_0x1003();let _0x346c10=_0x100311[_0x32bdfd];return _0x346c10;}(function(_0x57685e,_0x5d7cee){const _0x576c2e=a101_0x346c,_0x24488c=_0x57685e();while(!![]){try{const _0x7612de=-parseInt(_0x576c2e(0x7d))/0x1*(parseInt(_0x576c2e(0x7f))/0x2)+parseInt(_0x576c2e(0x88))/0x3+parseInt(_0x576c2e(0x9c))/0x4+parseInt(_0x576c2e(0x98))/0x5+parseInt(_0x576c2e(0x7e))/0x6*(-parseInt(_0x576c2e(0x83))/0x7)+parseInt(_0x576c2e(0x8c))/0x8+-parseInt(_0x576c2e(0x92))/0x9*(-parseInt(_0x576c2e(0x81))/0xa);if(_0x7612de===_0x5d7cee)break;else _0x24488c['push'](_0x24488c['shift']());}catch(_0x21b3f9){_0x24488c['push'](_0x24488c['shift']());}}}(a101_0x1003,0x5c9f3));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a101_0x692a77(0x9d),a101_0x692a77(0x91),a101_0x692a77(0x8f)]),ACTIVE_STATUSES=new Set(['PENDING',a101_0x692a77(0x87)]);export const deploymentSyncStatus={'service':a101_0x692a77(0x89),'command':'sync-status','description':a101_0x692a77(0x8a),'risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a101_0x692a77(0x8e),'type':'number','required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x42058b){const _0x5889c2=a101_0x692a77;readJobId(_0x42058b[_0x5889c2(0x9b)]('job-id'));},async 'execute'(_0x4bf1a3){const _0x2da519=a101_0x692a77,_0x461365=readJobId(_0x4bf1a3[_0x2da519(0x9b)](_0x2da519(0x8e))),_0x577c0a=await getDeploymentMetadataSyncStatus({'jobId':_0x461365,'appCode':_0x4bf1a3[_0x2da519(0x84)]}),_0x48a586=TERMINAL_STATUSES[_0x2da519(0x99)](_0x577c0a['status'])?!![]:ACTIVE_STATUSES['has'](_0x577c0a['status'])?![]:null,_0x2c3506=countBy(_0x577c0a[_0x2da519(0x80)][_0x2da519(0x94)](_0x2aef12=>_0x2aef12['bizType'])),_0xd5a232=countBy(_0x577c0a['results'][_0x2da519(0x94)](_0x5de9d3=>_0x5de9d3[_0x2da519(0x96)])),_0x1ba991=_0x48a586===null?[_0x2da519(0x97)+_0x577c0a['status']+_0x2da519(0x93)]:[];return{'ok':!![],'data':{'job':_0x577c0a,'isTerminal':_0x48a586,'summary':{'total':_0x577c0a[_0x2da519(0x80)][_0x2da519(0x95)],'failed':_0x577c0a[_0x2da519(0x80)][_0x2da519(0x8d)](_0x3a3df6=>_0x3a3df6[_0x2da519(0x96)]===_0x2da519(0x8f))[_0x2da519(0x95)],'byBizType':_0x2c3506,'byAction':_0xd5a232},'warnings':_0x1ba991},'message':_0x2da519(0x82)+_0x461365+_0x2da519(0x8b)+_0x577c0a[_0x2da519(0x9a)]+'.'};}};function a101_0x1003(){const _0x173f5d=['results','562040kvPOPF','Deployment\x20synchronization\x20job\x20','7zwHmOK','appCode','--job-id\x20must\x20be\x20a\x20positive\x20integer.','reduce','RUNNING','1101645ojsBmr','deployment','Get\x20application\x20deployment\x20synchronization\x20job\x20status','\x20is\x20','1408widbXH','filter','job-id','FAILED','isSafeInteger','PARTIAL_SUCCESS','90AgjovP',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','map','length','action','Preserved\x20server-defined\x20status\x20','3114350VBJGMN','has','status','num','454816CCJesP','SUCCESS','2143HzbkHQ','3463758prqKlN','662tZdEki'];a101_0x1003=function(){return _0x173f5d;};return a101_0x1003();}function readJobId(_0x74a07){const _0x5d07d8=a101_0x692a77;if(!Number[_0x5d07d8(0x90)](_0x74a07)||_0x74a07<=0x0)throw CliErrors['validation'](_0x5d07d8(0x85));return _0x74a07;}function countBy(_0x40da64){const _0x309dcb=a101_0x692a77;return _0x40da64[_0x309dcb(0x86)]((_0x110883,_0x54dc80)=>{return _0x110883[_0x54dc80]=(_0x110883[_0x54dc80]??0x0)+0x1,_0x110883;},{});}
1
+ const a101_0x490cf7=a101_0x2af5;function a101_0x2af5(_0xd3c775,_0x1ea650){_0xd3c775=_0xd3c775-0xf6;const _0x53b5ff=a101_0x53b5();let _0x2af57a=_0x53b5ff[_0xd3c775];return _0x2af57a;}(function(_0x1a2b7c,_0x2bbb4c){const _0x48b07f=a101_0x2af5,_0x5ae6e0=_0x1a2b7c();while(!![]){try{const _0x193dde=parseInt(_0x48b07f(0x105))/0x1*(-parseInt(_0x48b07f(0x118))/0x2)+-parseInt(_0x48b07f(0xfc))/0x3*(-parseInt(_0x48b07f(0x109))/0x4)+-parseInt(_0x48b07f(0x101))/0x5*(parseInt(_0x48b07f(0xfe))/0x6)+parseInt(_0x48b07f(0x10b))/0x7+-parseInt(_0x48b07f(0xf8))/0x8*(-parseInt(_0x48b07f(0x11a))/0x9)+-parseInt(_0x48b07f(0xfd))/0xa*(parseInt(_0x48b07f(0xf9))/0xb)+-parseInt(_0x48b07f(0xf7))/0xc*(-parseInt(_0x48b07f(0x111))/0xd);if(_0x193dde===_0x2bbb4c)break;else _0x5ae6e0['push'](_0x5ae6e0['shift']());}catch(_0xd8e2ce){_0x5ae6e0['push'](_0x5ae6e0['shift']());}}}(a101_0x53b5,0x1f356));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a101_0x53b5(){const _0x3d73b7=['62LivbIX','--job-id\x20must\x20be\x20a\x20positive\x20integer.','27jrqLbD','sync-status',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','Preserved\x20server-defined\x20status\x20','661404fuOTKf','7368ioGLzJ','11JjeCBp','FAILED','validation','18dVopYt','423760oGyiQD','8802VqQWly','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20ID','450PNDxGQ','filter','map','RUNNING','7697GgCnBR','length','action','Deployment\x20synchronization\x20job\x20','60524vXExQX','reduce','430325dGWlFV','SUCCESS','results','num','isSafeInteger','number','91yKOMOV','status','has','job-id','appCode','read','PARTIAL_SUCCESS'];a101_0x53b5=function(){return _0x3d73b7;};return a101_0x53b5();}const TERMINAL_STATUSES=new Set([a101_0x490cf7(0x10c),a101_0x490cf7(0x117),a101_0x490cf7(0xfa)]),ACTIVE_STATUSES=new Set(['PENDING',a101_0x490cf7(0x104)]);export const deploymentSyncStatus={'service':'deployment','command':a101_0x490cf7(0x11b),'description':a101_0x490cf7(0xff),'risk':a101_0x490cf7(0x116),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a101_0x490cf7(0x110),'required':!![],'description':a101_0x490cf7(0x100)}],async 'validate'(_0x33502a){const _0x1d153a=a101_0x490cf7;readJobId(_0x33502a[_0x1d153a(0x10e)](_0x1d153a(0x114)));},async 'execute'(_0x2e1a12){const _0x29801d=a101_0x490cf7,_0x4a67da=readJobId(_0x2e1a12[_0x29801d(0x10e)]('job-id')),_0x59a2ab=await getDeploymentMetadataSyncStatus({'jobId':_0x4a67da,'appCode':_0x2e1a12[_0x29801d(0x115)]}),_0x2c876b=TERMINAL_STATUSES[_0x29801d(0x113)](_0x59a2ab[_0x29801d(0x112)])?!![]:ACTIVE_STATUSES[_0x29801d(0x113)](_0x59a2ab[_0x29801d(0x112)])?![]:null,_0x652698=countBy(_0x59a2ab['results']['map'](_0x86c497=>_0x86c497['bizType'])),_0x2d4242=countBy(_0x59a2ab[_0x29801d(0x10d)][_0x29801d(0x103)](_0x25f7a9=>_0x25f7a9[_0x29801d(0x107)])),_0x27ce99=_0x2c876b===null?[_0x29801d(0xf6)+_0x59a2ab[_0x29801d(0x112)]+_0x29801d(0x11c)]:[];return{'ok':!![],'data':{'job':_0x59a2ab,'isTerminal':_0x2c876b,'summary':{'total':_0x59a2ab[_0x29801d(0x10d)][_0x29801d(0x106)],'failed':_0x59a2ab[_0x29801d(0x10d)][_0x29801d(0x102)](_0x298928=>_0x298928[_0x29801d(0x107)]===_0x29801d(0xfa))[_0x29801d(0x106)],'byBizType':_0x652698,'byAction':_0x2d4242},'warnings':_0x27ce99},'message':_0x29801d(0x108)+_0x4a67da+'\x20is\x20'+_0x59a2ab['status']+'.'};}};function readJobId(_0xc0ec){const _0x363f1a=a101_0x490cf7;if(!Number[_0x363f1a(0x10f)](_0xc0ec)||_0xc0ec<=0x0)throw CliErrors[_0x363f1a(0xfb)](_0x363f1a(0x119));return _0xc0ec;}function countBy(_0x1e2e61){const _0x32d5cc=a101_0x490cf7;return _0x1e2e61[_0x32d5cc(0x10a)]((_0x3935d7,_0x104cdd)=>{return _0x3935d7[_0x104cdd]=(_0x3935d7[_0x104cdd]??0x0)+0x1,_0x3935d7;},{});}