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

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 (332) 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.d.ts +1 -0
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/auto-sync.js +1 -1
  101. package/lib/commands/deployment/index.js +1 -1
  102. package/lib/commands/deployment/sync-all.js +1 -1
  103. package/lib/commands/deployment/sync-jobs.js +1 -1
  104. package/lib/commands/deployment/sync-status.js +1 -1
  105. package/lib/commands/deployment/sync.js +1 -1
  106. package/lib/commands/doctor.js +1 -1
  107. package/lib/commands/file/index.js +1 -1
  108. package/lib/commands/instant-api-policy/current.js +1 -1
  109. package/lib/commands/instant-api-policy/index.js +1 -1
  110. package/lib/commands/instant-api-policy/init.js +1 -1
  111. package/lib/commands/instant-api-policy/publish.js +1 -1
  112. package/lib/commands/instant-api-policy/pull.js +1 -1
  113. package/lib/commands/instant-api-policy/revision.js +1 -1
  114. package/lib/commands/instant-api-policy/revisions.js +1 -1
  115. package/lib/commands/instant-api-policy/rollback.js +1 -1
  116. package/lib/commands/instant-api-policy/shared.js +1 -1
  117. package/lib/commands/instant-api-policy/validate.js +1 -1
  118. package/lib/commands/issue/index.js +1 -1
  119. package/lib/commands/issue/nudge.js +1 -1
  120. package/lib/commands/issue/report.js +1 -1
  121. package/lib/commands/issue/shared.js +1 -1
  122. package/lib/commands/kb/create.js +1 -1
  123. package/lib/commands/kb/delete.js +1 -1
  124. package/lib/commands/kb/detail.js +1 -1
  125. package/lib/commands/kb/index.js +1 -1
  126. package/lib/commands/kb/list.js +1 -1
  127. package/lib/commands/kb/search.js +1 -1
  128. package/lib/commands/kb/shared.js +1 -1
  129. package/lib/commands/kb/update.js +1 -1
  130. package/lib/commands/logs/index.js +1 -1
  131. package/lib/commands/menu/asset-update.js +1 -1
  132. package/lib/commands/menu/delete.js +1 -1
  133. package/lib/commands/menu/external-link-create.js +1 -1
  134. package/lib/commands/menu/external-link-update.js +1 -1
  135. package/lib/commands/menu/group-create.js +1 -1
  136. package/lib/commands/menu/group-update.js +1 -1
  137. package/lib/commands/menu/index.js +1 -1
  138. package/lib/commands/menu/list.js +1 -1
  139. package/lib/commands/menu/move.js +1 -1
  140. package/lib/commands/menu/regroup-start.js +1 -1
  141. package/lib/commands/menu/rename.js +1 -1
  142. package/lib/commands/menu/shared/compare-table.js +1 -1
  143. package/lib/commands/menu/shared/delete-plan.js +1 -1
  144. package/lib/commands/menu/shared/facts.js +1 -1
  145. package/lib/commands/menu/shared/index.js +1 -1
  146. package/lib/commands/menu/shared/inquirer.js +1 -1
  147. package/lib/commands/menu/shared/local-pages.js +1 -1
  148. package/lib/commands/menu/shared/logic.js +1 -1
  149. package/lib/commands/menu/shared/mutations.js +1 -1
  150. package/lib/commands/menu/shared/service.js +1 -1
  151. package/lib/commands/menu/shared/sync-core.js +1 -1
  152. package/lib/commands/menu/shared/update-core.js +1 -1
  153. package/lib/commands/menu/shared/valid-url.js +1 -1
  154. package/lib/commands/menu/sync.js +1 -1
  155. package/lib/commands/menu/visibility-update.js +1 -1
  156. package/lib/commands/notification/config-create.js +1 -1
  157. package/lib/commands/notification/config-delete.js +1 -1
  158. package/lib/commands/notification/config-list.js +1 -1
  159. package/lib/commands/notification/config-update.js +1 -1
  160. package/lib/commands/notification/index.js +1 -1
  161. package/lib/commands/notification/shared.js +1 -1
  162. package/lib/commands/ocr/index.js +1 -1
  163. package/lib/commands/page/create.js +1 -1
  164. package/lib/commands/page/custom/detail.js +1 -1
  165. package/lib/commands/page/custom/list.js +1 -1
  166. package/lib/commands/page/custom/publish.js +1 -1
  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/template.js +1 -1
  170. package/lib/commands/page/custom/update.js +1 -1
  171. package/lib/commands/page/data-list-status.js +1 -1
  172. package/lib/commands/page/generate-start.js +1 -1
  173. package/lib/commands/page/generate-status.js +1 -1
  174. package/lib/commands/page/index.js +1 -1
  175. package/lib/commands/page/pull.js +1 -1
  176. package/lib/commands/page/push.js +1 -1
  177. package/lib/commands/page/relation-audit.js +1 -1
  178. package/lib/commands/page/restore.js +1 -1
  179. package/lib/commands/page/shared.js +1 -1
  180. package/lib/commands/page/sync.js +1 -1
  181. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  182. package/lib/commands/project/create/format-elapsed.js +1 -1
  183. package/lib/commands/project/create/main.js +1 -1
  184. package/lib/commands/project/create/materialize-project-template.js +1 -1
  185. package/lib/commands/project/create/project-name.js +1 -1
  186. package/lib/commands/project/create/project-template-archive.js +1 -1
  187. package/lib/commands/project/create/project-template-path.js +1 -1
  188. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  189. package/lib/commands/project/create/use-format-code.js +1 -1
  190. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  191. package/lib/commands/project/domain-routing-sync.js +1 -1
  192. package/lib/commands/project/index.js +1 -1
  193. package/lib/commands/project/upgrade.js +1 -1
  194. package/lib/commands/registry.js +1 -1
  195. package/lib/commands/role/delete.js +1 -1
  196. package/lib/commands/role/detail.js +1 -1
  197. package/lib/commands/role/index.js +1 -1
  198. package/lib/commands/role/list.js +1 -1
  199. package/lib/commands/role/shared.js +1 -1
  200. package/lib/commands/role/update.js +1 -1
  201. package/lib/commands/role/user-add.js +1 -1
  202. package/lib/commands/role/user-remove.js +1 -1
  203. package/lib/commands/role/user-resolve.js +1 -1
  204. package/lib/commands/rule/get.js +1 -1
  205. package/lib/commands/rule/index.js +1 -1
  206. package/lib/commands/rule/list.js +1 -1
  207. package/lib/commands/rule/set.js +1 -1
  208. package/lib/commands/rule/shared.js +1 -1
  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.d.ts +3 -7
  233. package/lib/config/domain-config.js +1 -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 +1 -0
  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.js +1 -1
  262. package/lib/core/page/hash.js +1 -1
  263. package/lib/core/page/lock.js +1 -1
  264. package/lib/core/sql-index-auditor.js +1 -1
  265. package/lib/core/sql-sync/config.js +1 -1
  266. package/lib/core/sql-sync/file-system.js +1 -1
  267. package/lib/core/sql-sync/hash.js +1 -1
  268. package/lib/core/sql-sync/lock.js +1 -1
  269. package/lib/core/sql-sync/utils.js +1 -1
  270. package/lib/core/sql-validator.js +1 -1
  271. package/lib/errors.js +1 -1
  272. package/lib/framework/build-all-flags.js +1 -1
  273. package/lib/framework/error-output.js +1 -1
  274. package/lib/framework/explicit-yes.js +1 -1
  275. package/lib/framework/flags.js +1 -1
  276. package/lib/framework/help.js +1 -1
  277. package/lib/framework/index.js +1 -1
  278. package/lib/framework/output.js +1 -1
  279. package/lib/framework/response.js +1 -1
  280. package/lib/framework/runner-alias.js +1 -1
  281. package/lib/framework/runner.js +1 -1
  282. package/lib/framework/schema-export.js +1 -1
  283. package/lib/framework/supported-flags.js +1 -1
  284. package/lib/framework/types.js +1 -1
  285. package/lib/generated/build-info.d.ts +4 -4
  286. package/lib/generated/build-info.js +1 -1
  287. package/lib/generated/official-routing.d.ts +1 -1
  288. package/lib/generated/official-routing.js +1 -1
  289. package/lib/generated/routing-contract.d.ts +1 -3
  290. package/lib/generated/routing-contract.js +1 -1
  291. package/lib/help.js +1 -1
  292. package/lib/postinstall.js +1 -1
  293. package/lib/runtime/confirmation.js +1 -1
  294. package/lib/runtime/event.js +1 -1
  295. package/lib/runtime/index.js +1 -1
  296. package/lib/runtime/queue.js +1 -1
  297. package/lib/runtime/resolve.js +1 -1
  298. package/lib/skills/builtin-skill.js +1 -1
  299. package/lib/skills/main.js +1 -1
  300. package/lib/skills/npx-skills-add.js +1 -1
  301. package/lib/skills/skill-presence.js +1 -1
  302. package/lib/telemetry/cli-command-trace.js +1 -1
  303. package/lib/telemetry/cli-help-trace.js +1 -1
  304. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  305. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  306. package/lib/telemetry/send-cli-trace-log.js +1 -1
  307. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  308. package/lib/utils/ai_config.js +1 -1
  309. package/lib/utils/apply-jq-filter.js +1 -1
  310. package/lib/utils/cdn-config.js +1 -1
  311. package/lib/utils/check-sdk-version.js +1 -1
  312. package/lib/utils/cli-version-check.js +1 -1
  313. package/lib/utils/cli-version-policy.js +1 -1
  314. package/lib/utils/config.js +1 -1
  315. package/lib/utils/entity-with-id.js +1 -1
  316. package/lib/utils/file-utils.js +1 -1
  317. package/lib/utils/guides-cdn.js +1 -1
  318. package/lib/utils/http-client.js +1 -1
  319. package/lib/utils/is-non-interactive.js +1 -1
  320. package/lib/utils/logger.js +1 -1
  321. package/lib/utils/params.js +1 -1
  322. package/lib/utils/platform.js +1 -1
  323. package/lib/utils/sleep.js +1 -1
  324. package/lib/utils/template-replacer.js +1 -1
  325. package/lib/utils/update-notice.js +1 -1
  326. package/lib/utils/version.js +1 -1
  327. package/lib/utils/with-active-cookie.js +1 -1
  328. package/lib/utils/write-cli-side-channel.js +1 -1
  329. package/package.json +1 -1
  330. package/skills/rabetbase/SKILL.md +2 -2
  331. package/skills/rabetbase/references/rabetbase-app-members-list.md +2 -0
  332. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a83_0x158b26=a83_0x37ee;(function(_0x30811f,_0xae3b1d){const _0x1217bb=a83_0x37ee,_0x1083ad=_0x30811f();while(!![]){try{const _0xfdddb8=parseInt(_0x1217bb(0x191))/0x1*(-parseInt(_0x1217bb(0x187))/0x2)+-parseInt(_0x1217bb(0x173))/0x3+parseInt(_0x1217bb(0x181))/0x4+parseInt(_0x1217bb(0x16d))/0x5+parseInt(_0x1217bb(0x172))/0x6*(parseInt(_0x1217bb(0x192))/0x7)+-parseInt(_0x1217bb(0x196))/0x8*(-parseInt(_0x1217bb(0x17e))/0x9)+parseInt(_0x1217bb(0x16b))/0xa;if(_0xfdddb8===_0xae3b1d)break;else _0x1083ad['push'](_0x1083ad['shift']());}catch(_0x50ed09){_0x1083ad['push'](_0x1083ad['shift']());}}}(a83_0x2d4c,0x584bb));function a83_0x37ee(_0x52bcaa,_0x2f4b32){_0x52bcaa=_0x52bcaa-0x16b;const _0x2d4c4a=a83_0x2d4c();let _0x37ee87=_0x2d4c4a[_0x52bcaa];return _0x37ee87;}function a83_0x2d4c(){const _0x209cbf=['1361469icnpYQ','isNaN','every','isArray','costTimeMs','length','string','inputParams','Analysis\x20status\x20for\x20','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','4158iWWLQv','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','startTime','614840ZVuraw','CANCELLED','plan','status','num','object','63398JzZTjh','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','trim','firstStartTime','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','RETRYING','keys','jobContext','appCode','has','3deQFdb','38353ZDBQIm','UNKNOWN','parse','isFinite','2424vDhjbZ','FAILED','3916910OUlrGQ','str','331505RohAtv','SUCCESS','inputParams\x20is\x20not\x20an\x20object','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','now','174gTQriQ'];a83_0x2d4c=function(){return _0x209cbf;};return a83_0x2d4c();}import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set([a83_0x158b26(0x16e),'PARTIAL_SUCCESS',a83_0x158b26(0x197),a83_0x158b26(0x182)]);export const dbAnalyzeStatus={'service':'db','command':'analyze-status','description':a83_0x158b26(0x18b),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a83_0x158b26(0x183),'type':a83_0x158b26(0x179),'required':!![],'description':a83_0x158b26(0x17f)}],async 'execute'(_0x7e698a){const _0x2604b2=a83_0x158b26,_0x1dd399=_0x7e698a[_0x2604b2(0x185)]('id'),_0x1ff273=_0x7e698a[_0x2604b2(0x16c)](_0x2604b2(0x183)),_0x13f6dd=await getDbAnalysisStatus(_0x1ff273),_0x453f06=TERMINAL_STATUSES[_0x2604b2(0x190)](_0x13f6dd[_0x2604b2(0x184)]??''),{parsedJobContext:_0x7c425b,jobContextParseWarning:_0x34b0e5}=parseJobContext(_0x13f6dd[_0x2604b2(0x18e)]),{requestedAnalysis:_0x6d3801,requestedAnalysisParseWarning:_0x38adef}=parseRequestedAnalysis(_0x13f6dd[_0x2604b2(0x17a)]),_0x9cd7d1=readAccumulatedErrorTypeCounts(_0x7c425b),_0x2dcfa9=calculateAttemptElapsedMs(_0x13f6dd,_0x453f06),_0x56a39a=calculateElapsedFromStart(_0x13f6dd[_0x2604b2(0x18a)],_0x13f6dd['endTime'],_0x453f06),_0x4bf0c9=detectMultipleAttempts(_0x13f6dd),_0x66b29f=buildDbPageLinks(_0x7e698a[_0x2604b2(0x18f)],_0x1dd399);return{'ok':!![],'data':{'dbLinkId':_0x1dd399,'planId':_0x1ff273,'status':_0x13f6dd,'requestedAnalysis':_0x6d3801,'requestedAnalysisParseWarning':_0x38adef,'parsedJobContext':_0x7c425b,'accumulatedErrorTypeCounts':_0x9cd7d1,'accumulatedErrorTypeCountsAdvisory':_0x9cd7d1?_0x2604b2(0x17d):_0x2604b2(0x17c),'isTerminal':_0x453f06,'isRetrying':_0x13f6dd['status']===_0x2604b2(0x18c),'attemptElapsedMs':_0x2dcfa9,'totalElapsedMs':_0x56a39a,'hasMultipleAttempts':_0x4bf0c9,'jobContextParseWarning':_0x34b0e5,..._0x66b29f?{'links':_0x66b29f}:{}},'message':_0x2604b2(0x17b)+_0x1ff273};}};function parseRequestedAnalysis(_0xf7c3b9){const _0x3f3432=a83_0x158b26,_0x4be6cb={'mode':_0x3f3432(0x193),'tableCount':null,'tableNames':null};if(!_0xf7c3b9?.['trim']())return{'requestedAnalysis':_0x4be6cb,'requestedAnalysisParseWarning':_0x3f3432(0x188)};try{const _0x1d7096=JSON[_0x3f3432(0x194)](_0xf7c3b9);if(!_0x1d7096||typeof _0x1d7096!==_0x3f3432(0x186)||Array[_0x3f3432(0x176)](_0x1d7096))throw new Error(_0x3f3432(0x16f));const _0x334db0=_0x1d7096['tableNames'];if(_0x334db0===undefined||_0x334db0===null)return{'requestedAnalysis':{'mode':'FULL','tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x3f3432(0x176)](_0x334db0)&&_0x334db0[_0x3f3432(0x175)](_0x319434=>typeof _0x319434===_0x3f3432(0x179)))return{'requestedAnalysis':{'mode':_0x334db0['length']>0x0?'TARGETED':'FULL','tableCount':_0x334db0[_0x3f3432(0x178)],'tableNames':_0x334db0},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x4be6cb,'requestedAnalysisParseWarning':'inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.'};}function readAccumulatedErrorTypeCounts(_0x4439e2){const _0x19e5f5=a83_0x158b26,_0x4f427a=_0x4439e2?.['accumulatedErrorTypeCounts'];if(!_0x4f427a||typeof _0x4f427a!=='object'||Array[_0x19e5f5(0x176)](_0x4f427a))return null;if(Object[_0x19e5f5(0x18d)](_0x4f427a)[_0x19e5f5(0x178)]===0x0)return null;return _0x4f427a;}function parseJobContext(_0x1d0291){const _0x39bb29=a83_0x158b26;if(!_0x1d0291?.[_0x39bb29(0x189)]())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x8040bd=JSON[_0x39bb29(0x194)](_0x1d0291);if(_0x8040bd&&typeof _0x8040bd==='object'&&!Array['isArray'](_0x8040bd))return{'parsedJobContext':_0x8040bd,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x39bb29(0x170)};}function calculateAttemptElapsedMs(_0x35d6ad,_0x209dcd){const _0xf45a4e=a83_0x158b26;if(typeof _0x35d6ad['costTimeMs']==='number'&&Number[_0xf45a4e(0x195)](_0x35d6ad[_0xf45a4e(0x177)])&&_0x35d6ad[_0xf45a4e(0x177)]>=0x0)return _0x35d6ad[_0xf45a4e(0x177)];return calculateElapsedFromStart(_0x35d6ad[_0xf45a4e(0x180)],_0x35d6ad['endTime'],_0x209dcd);}function calculateElapsedFromStart(_0xbf82c9,_0x53f240,_0x240b67){const _0x3591a6=a83_0x158b26,_0x3058c6=toTimestamp(_0xbf82c9);if(_0x3058c6===null)return null;const _0x283a2b=toTimestamp(_0x53f240),_0x3284de=_0x283a2b??(_0x240b67?null:Date[_0x3591a6(0x171)]());if(_0x3284de===null||_0x3284de<_0x3058c6)return null;return _0x3284de-_0x3058c6;}function detectMultipleAttempts(_0x34a280){const _0x36c797=a83_0x158b26,_0x33436c=toTimestamp(_0x34a280[_0x36c797(0x18a)]),_0x4293e2=toTimestamp(_0x34a280[_0x36c797(0x180)]);return _0x33436c!==null&&_0x4293e2!==null&&_0x33436c!==_0x4293e2;}function toTimestamp(_0x5ac79c){const _0x18db17=a83_0x158b26;if(typeof _0x5ac79c==='number')return Number[_0x18db17(0x195)](_0x5ac79c)?_0x5ac79c:null;if(typeof _0x5ac79c!==_0x18db17(0x179)||_0x5ac79c['trim']()==='')return null;const _0x55deb5=Number(_0x5ac79c);if(Number['isFinite'](_0x55deb5))return _0x55deb5;const _0x265990=Date[_0x18db17(0x194)](_0x5ac79c);return Number[_0x18db17(0x174)](_0x265990)?null:_0x265990;}
1
+ const a83_0x49ddb9=a83_0x57f3;(function(_0x1c3698,_0x28c4e9){const _0x5551fa=a83_0x57f3,_0x4aa382=_0x1c3698();while(!![]){try{const _0x546355=-parseInt(_0x5551fa(0x1df))/0x1*(-parseInt(_0x5551fa(0x1d7))/0x2)+parseInt(_0x5551fa(0x1db))/0x3+-parseInt(_0x5551fa(0x1e1))/0x4+-parseInt(_0x5551fa(0x1ca))/0x5*(parseInt(_0x5551fa(0x1c6))/0x6)+parseInt(_0x5551fa(0x1e9))/0x7+-parseInt(_0x5551fa(0x1cb))/0x8+parseInt(_0x5551fa(0x1cc))/0x9*(-parseInt(_0x5551fa(0x1d2))/0xa);if(_0x546355===_0x28c4e9)break;else _0x4aa382['push'](_0x4aa382['shift']());}catch(_0x4f5ff4){_0x4aa382['push'](_0x4aa382['shift']());}}}(a83_0x48a5,0x8c0a4));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a83_0x49ddb9(0x1cf),a83_0x49ddb9(0x1e5),a83_0x49ddb9(0x1d8)]);function a83_0x48a5(){const _0x50736a=['FAILED','inputParams\x20does\x20not\x20contain\x20a\x20valid\x20analysis\x20request\x20object.','isNaN','parse','5167673ezzYdp','UNKNOWN','string','length','inputParams','costTimeMs','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','status','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','num','str','6CAQNjM','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','plan','trim','173555mPLeEc','1422592sTqlOw','2735991HRTvmV','Analysis\x20status\x20for\x20','endTime','PARTIAL_SUCCESS','accumulatedErrorTypeCounts','FULL','10IOtIMr','Original\x20analysis\x20request\x20scope\x20is\x20unavailable\x20because\x20inputParams\x20is\x20missing.','TARGETED','isArray','isFinite','5524HZHchz','CANCELLED','tableNames','keys','818163jhihfy','RETRYING','object','firstStartTime','261TxPjrl','analyze-status','2566816RjxeLa','startTime','number','inputParams\x20is\x20not\x20an\x20object'];a83_0x48a5=function(){return _0x50736a;};return a83_0x48a5();}export const dbAnalyzeStatus={'service':'db','command':a83_0x49ddb9(0x1e0),'description':a83_0x49ddb9(0x1c7),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a83_0x49ddb9(0x1c8),'type':'string','required':!![],'description':'Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)'}],async 'execute'(_0x437fde){const _0x43f57f=a83_0x49ddb9,_0x14d9d1=_0x437fde[_0x43f57f(0x1c4)]('id'),_0x28bb7d=_0x437fde[_0x43f57f(0x1c5)](_0x43f57f(0x1c8)),_0x1c00ea=await getDbAnalysisStatus(_0x28bb7d),_0x11a574=TERMINAL_STATUSES['has'](_0x1c00ea['status']??''),{parsedJobContext:_0x198fd9,jobContextParseWarning:_0x42de3a}=parseJobContext(_0x1c00ea['jobContext']),{requestedAnalysis:_0x265641,requestedAnalysisParseWarning:_0x15728d}=parseRequestedAnalysis(_0x1c00ea[_0x43f57f(0x1ed)]),_0x4f4471=readAccumulatedErrorTypeCounts(_0x198fd9),_0x3abdc4=calculateAttemptElapsedMs(_0x1c00ea,_0x11a574),_0x493170=calculateElapsedFromStart(_0x1c00ea[_0x43f57f(0x1de)],_0x1c00ea[_0x43f57f(0x1ce)],_0x11a574),_0x3fca4d=detectMultipleAttempts(_0x1c00ea),_0x18347e=buildDbPageLinks(_0x437fde['appCode'],_0x14d9d1);return{'ok':!![],'data':{'dbLinkId':_0x14d9d1,'planId':_0x28bb7d,'status':_0x1c00ea,'requestedAnalysis':_0x265641,'requestedAnalysisParseWarning':_0x15728d,'parsedJobContext':_0x198fd9,'accumulatedErrorTypeCounts':_0x4f4471,'accumulatedErrorTypeCountsAdvisory':_0x4f4471?'Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.':_0x43f57f(0x1c1),'isTerminal':_0x11a574,'isRetrying':_0x1c00ea[_0x43f57f(0x1c2)]===_0x43f57f(0x1dc),'attemptElapsedMs':_0x3abdc4,'totalElapsedMs':_0x493170,'hasMultipleAttempts':_0x3fca4d,'jobContextParseWarning':_0x42de3a,..._0x18347e?{'links':_0x18347e}:{}},'message':_0x43f57f(0x1cd)+_0x28bb7d};}};function parseRequestedAnalysis(_0x2a0d78){const _0x3de029=a83_0x49ddb9,_0x35c10a={'mode':_0x3de029(0x1ea),'tableCount':null,'tableNames':null};if(!_0x2a0d78?.['trim']())return{'requestedAnalysis':_0x35c10a,'requestedAnalysisParseWarning':_0x3de029(0x1d3)};try{const _0x56004c=JSON[_0x3de029(0x1e8)](_0x2a0d78);if(!_0x56004c||typeof _0x56004c!=='object'||Array[_0x3de029(0x1d5)](_0x56004c))throw new Error(_0x3de029(0x1e4));const _0x2c779f=_0x56004c[_0x3de029(0x1d9)];if(_0x2c779f===undefined||_0x2c779f===null)return{'requestedAnalysis':{'mode':_0x3de029(0x1d1),'tableCount':null,'tableNames':null},'requestedAnalysisParseWarning':null};if(Array[_0x3de029(0x1d5)](_0x2c779f)&&_0x2c779f['every'](_0x4892f7=>typeof _0x4892f7==='string'))return{'requestedAnalysis':{'mode':_0x2c779f[_0x3de029(0x1ec)]>0x0?_0x3de029(0x1d4):_0x3de029(0x1d1),'tableCount':_0x2c779f[_0x3de029(0x1ec)],'tableNames':_0x2c779f},'requestedAnalysisParseWarning':null};}catch{}return{'requestedAnalysis':_0x35c10a,'requestedAnalysisParseWarning':_0x3de029(0x1e6)};}function a83_0x57f3(_0x2706d3,_0xe35884){_0x2706d3=_0x2706d3-0x1c0;const _0x48a524=a83_0x48a5();let _0x57f33d=_0x48a524[_0x2706d3];return _0x57f33d;}function readAccumulatedErrorTypeCounts(_0x40e7f8){const _0x482c48=a83_0x49ddb9,_0x4af4ea=_0x40e7f8?.[_0x482c48(0x1d0)];if(!_0x4af4ea||typeof _0x4af4ea!==_0x482c48(0x1dd)||Array[_0x482c48(0x1d5)](_0x4af4ea))return null;if(Object[_0x482c48(0x1da)](_0x4af4ea)[_0x482c48(0x1ec)]===0x0)return null;return _0x4af4ea;}function parseJobContext(_0x18efe9){const _0x22b44b=a83_0x49ddb9;if(!_0x18efe9?.[_0x22b44b(0x1c9)]())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x315bed=JSON[_0x22b44b(0x1e8)](_0x18efe9);if(_0x315bed&&typeof _0x315bed==='object'&&!Array['isArray'](_0x315bed))return{'parsedJobContext':_0x315bed,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x22b44b(0x1c3)};}function calculateAttemptElapsedMs(_0x1432d2,_0x54e6d8){const _0x52b7e=a83_0x49ddb9;if(typeof _0x1432d2[_0x52b7e(0x1c0)]===_0x52b7e(0x1e3)&&Number[_0x52b7e(0x1d6)](_0x1432d2[_0x52b7e(0x1c0)])&&_0x1432d2['costTimeMs']>=0x0)return _0x1432d2[_0x52b7e(0x1c0)];return calculateElapsedFromStart(_0x1432d2[_0x52b7e(0x1e2)],_0x1432d2[_0x52b7e(0x1ce)],_0x54e6d8);}function calculateElapsedFromStart(_0x5d44f7,_0xac1fda,_0x13785a){const _0x127ace=toTimestamp(_0x5d44f7);if(_0x127ace===null)return null;const _0x889b9d=toTimestamp(_0xac1fda),_0x46e678=_0x889b9d??(_0x13785a?null:Date['now']());if(_0x46e678===null||_0x46e678<_0x127ace)return null;return _0x46e678-_0x127ace;}function detectMultipleAttempts(_0x2569b1){const _0x47bc7d=a83_0x49ddb9,_0x4f2f76=toTimestamp(_0x2569b1[_0x47bc7d(0x1de)]),_0x4fab0d=toTimestamp(_0x2569b1[_0x47bc7d(0x1e2)]);return _0x4f2f76!==null&&_0x4fab0d!==null&&_0x4f2f76!==_0x4fab0d;}function toTimestamp(_0x5d3e20){const _0xf0eaf2=a83_0x49ddb9;if(typeof _0x5d3e20===_0xf0eaf2(0x1e3))return Number[_0xf0eaf2(0x1d6)](_0x5d3e20)?_0x5d3e20:null;if(typeof _0x5d3e20!==_0xf0eaf2(0x1eb)||_0x5d3e20[_0xf0eaf2(0x1c9)]()==='')return null;const _0x4de8ce=Number(_0x5d3e20);if(Number[_0xf0eaf2(0x1d6)](_0x4de8ce))return _0x4de8ce;const _0x31ff00=Date[_0xf0eaf2(0x1e8)](_0x5d3e20);return Number[_0xf0eaf2(0x1e7)](_0x31ff00)?null:_0x31ff00;}
@@ -1 +1 @@
1
- const a84_0x39a211=a84_0x5ed3;(function(_0x87e48b,_0x38f630){const _0x1d9b11=a84_0x5ed3,_0x734d5b=_0x87e48b();while(!![]){try{const _0x513a9e=parseInt(_0x1d9b11(0xeb))/0x1*(-parseInt(_0x1d9b11(0xe4))/0x2)+parseInt(_0x1d9b11(0xe8))/0x3+parseInt(_0x1d9b11(0xd0))/0x4+parseInt(_0x1d9b11(0xd7))/0x5*(parseInt(_0x1d9b11(0xf3))/0x6)+parseInt(_0x1d9b11(0xdd))/0x7+parseInt(_0x1d9b11(0xdb))/0x8+-parseInt(_0x1d9b11(0xcb))/0x9*(parseInt(_0x1d9b11(0xd2))/0xa);if(_0x513a9e===_0x38f630)break;else _0x734d5b['push'](_0x734d5b['shift']());}catch(_0x23e9be){_0x734d5b['push'](_0x734d5b['shift']());}}}(a84_0x5f40,0xb0f0b));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a84_0x5f40(){const _0x5946f5=['dbtype','1907538lIgOCY','username','message','113236IsMVdm','join','dbparam','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','Created\x20db\x20link\x20','Database\x20username','Database\x20password','str','4349958twgzhf','POST','password','[redacted]','After\x20create,\x20start\x20schema\x20analysis','databasePage','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','26775QxXxNX','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','trim',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','Host\x20and\x20port:\x20host:port','3677188FYPjjk','/smartapi/dblink/create','6940Tpbzsb','string','dbdesc','dbname','bool','5lEiYCx','skip-connection-test','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','dbversion','4740184KXlyfX','Create\x20dblink','8928990jqjByw','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','Extra\x20JDBC-style\x20connection\x20parameters\x20string','autostart','appCode','planId','dburl','24jtZKxY','validation','8.0'];a84_0x5f40=function(){return _0x5946f5;};return a84_0x5f40();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a84_0x5ed3(_0x2b0e3c,_0x5bf506){_0x2b0e3c=_0x2b0e3c-0xc6;const _0x5f409c=a84_0x5f40();let _0x5ed344=_0x5f409c[_0x2b0e3c];return _0x5ed344;}import{buildDbPageLinks,assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':'create','description':a84_0x39a211(0xca),'risk':'write','flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a84_0x39a211(0xd3),'required':!![],'description':a84_0x39a211(0xd9)},DB_TYPE_FLAG,{'name':a84_0x39a211(0xda),'type':a84_0x39a211(0xd3),'description':a84_0x39a211(0xde),'default':a84_0x39a211(0xe6)},{'name':a84_0x39a211(0xe3),'type':'string','required':!![],'description':a84_0x39a211(0xcf)},{'name':a84_0x39a211(0xe9),'type':a84_0x39a211(0xd3),'required':!![],'description':a84_0x39a211(0xf0)},{'name':'password','type':a84_0x39a211(0xd3),'required':!![],'description':a84_0x39a211(0xf1)},{'name':a84_0x39a211(0xed),'type':a84_0x39a211(0xd3),'description':a84_0x39a211(0xdf)},{'name':a84_0x39a211(0xd4),'type':'string','description':'Human-readable\x20description'},{'name':a84_0x39a211(0xe0),'type':'boolean','description':a84_0x39a211(0xc8),'default':![]},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x327aad){const _0x4b1b49=a84_0x39a211,_0x14bad1=_0x327aad['str'](_0x4b1b49(0xe3))[_0x4b1b49(0xcd)]();if(!validateDbUrl(_0x14bad1))throw CliErrors[_0x4b1b49(0xe5)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x14bad1+'\x22','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.');},async 'dryRun'(_0xb66110){const _0x447f73=a84_0x39a211,_0x480e49={'appCode':_0xb66110[_0x447f73(0xe1)],'dbName':_0xb66110[_0x447f73(0xf2)](_0x447f73(0xd5)),'dbType':_0xb66110[_0x447f73(0xf2)]('dbtype'),'dbVersion':_0xb66110[_0x447f73(0xf2)](_0x447f73(0xda))||_0x447f73(0xe6),'dbUrl':_0xb66110[_0x447f73(0xf2)](_0x447f73(0xe3))[_0x447f73(0xcd)](),'username':_0xb66110[_0x447f73(0xf2)](_0x447f73(0xe9)),'password':_0x447f73(0xc7),..._0xb66110['str'](_0x447f73(0xed))?{'dbParam':_0xb66110[_0x447f73(0xf2)](_0x447f73(0xed))}:{},..._0xb66110[_0x447f73(0xf2)]('dbdesc')?{'dbDesc':_0xb66110['str'](_0x447f73(0xd4))}:{}};return{'method':_0x447f73(0xf4),'url':_0x447f73(0xd1),'body':_0x480e49,'description':[_0x447f73(0xdc),_0xb66110['bool'](_0x447f73(0xe0))?_0x447f73(0xee):'No\x20follow-up\x20analysis'][_0x447f73(0xec)]('\x0a'),'connectionPreflight':{'enabled':!_0xb66110[_0x447f73(0xd6)](_0x447f73(0xd8)),'executed':![]}};},async 'execute'(_0x4df569){const _0x2fb72a=a84_0x39a211,_0x14e436={'appCode':_0x4df569[_0x2fb72a(0xe1)],'dbName':_0x4df569[_0x2fb72a(0xf2)]('dbname'),'dbType':_0x4df569[_0x2fb72a(0xf2)](_0x2fb72a(0xe7)),'dbVersion':_0x4df569['str'](_0x2fb72a(0xda))||_0x2fb72a(0xe6),'dbUrl':_0x4df569[_0x2fb72a(0xf2)]('dburl')[_0x2fb72a(0xcd)](),'username':_0x4df569[_0x2fb72a(0xf2)](_0x2fb72a(0xe9)),'password':_0x4df569['str'](_0x2fb72a(0xc6)),..._0x4df569[_0x2fb72a(0xf2)](_0x2fb72a(0xed))?{'dbParam':_0x4df569[_0x2fb72a(0xf2)](_0x2fb72a(0xed))}:{},..._0x4df569[_0x2fb72a(0xf2)](_0x2fb72a(0xd4))?{'dbDesc':_0x4df569[_0x2fb72a(0xf2)](_0x2fb72a(0xd4))}:{}};!_0x4df569[_0x2fb72a(0xd6)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x14e436);const {id:_0x147ad0,entity:_0x183dd3}=normalizeEntityWithIdResponse(await createDbLink(_0x14e436));if(!_0x147ad0)return{'ok':![],'message':_0x2fb72a(0xcc),'data':sanitizeDbLinkForOutput(_0x183dd3)};let _0x26a71f,_0x1f641d;if(_0x4df569['bool'](_0x2fb72a(0xe0)))try{_0x26a71f=(await startDbAnalysis(_0x147ad0))[_0x2fb72a(0xe2)];}catch(_0xb7a8b8){_0x1f641d=_0xb7a8b8 instanceof Error?_0xb7a8b8[_0x2fb72a(0xea)]:String(_0xb7a8b8);}const _0x1aaf73=buildDbPageLinks(_0x4df569[_0x2fb72a(0xe1)],_0x147ad0),_0x8be910={'connection':sanitizeDbLinkForOutput(_0x183dd3),..._0x1aaf73?{'links':{'databasePage':_0x1aaf73[_0x2fb72a(0xc9)]}}:{},..._0x26a71f?{'analysisPlanId':_0x26a71f}:{},..._0x1f641d?{'analysisStartWarning':_0x1f641d}:{}};let _0x3ae012;return _0x4df569[_0x2fb72a(0xd6)](_0x2fb72a(0xe0))?_0x1f641d?_0x3ae012=_0x2fb72a(0xef)+_0x147ad0+_0x2fb72a(0xce):_0x3ae012='Created\x20db\x20link\x20'+_0x147ad0+'\x20and\x20started\x20analysis':_0x3ae012=_0x2fb72a(0xef)+_0x147ad0,{'ok':!![],'data':_0x8be910,'message':_0x3ae012};}};
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 +1 @@
1
- const a85_0x33f1b1=a85_0x4f49;(function(_0x1df285,_0x1c5e7c){const _0x2a2209=a85_0x4f49,_0x4e4777=_0x1df285();while(!![]){try{const _0x525b76=parseInt(_0x2a2209(0x1cb))/0x1+-parseInt(_0x2a2209(0x1c8))/0x2+-parseInt(_0x2a2209(0x1c4))/0x3+parseInt(_0x2a2209(0x1c2))/0x4*(-parseInt(_0x2a2209(0x1b6))/0x5)+parseInt(_0x2a2209(0x1cf))/0x6+-parseInt(_0x2a2209(0x1c5))/0x7*(-parseInt(_0x2a2209(0x1ca))/0x8)+parseInt(_0x2a2209(0x1bd))/0x9*(parseInt(_0x2a2209(0x1c6))/0xa);if(_0x525b76===_0x1c5e7c)break;else _0x4e4777['push'](_0x4e4777['shift']());}catch(_0x3c9124){_0x4e4777['push'](_0x4e4777['shift']());}}}(a85_0x415d,0x4d0af));function a85_0x4f49(_0xec60df,_0x51507e){_0xec60df=_0xec60df-0x1ac;const _0x415dbb=a85_0x415d();let _0x4f4939=_0x415dbb[_0xec60df];return _0x4f4939;}function a85_0x415d(){const _0x117db8=['Database\x20connection\x20','1244796ugqxIl','288435mZGVkG','9690250OFleEk','number','448780crYEZW','flag','56dKqNcQ','16046zuWgNS','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','datasets','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','1867506ADXeWW','appCode','\x20still\x20has\x20','high-risk-write','all','\x20active\x20DB_TABLE\x20Dataset(s).','expected-dataset-count','DB_TABLE','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','datasetDependency','Expected\x20','activeDatasetCount','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','15qlERpe','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','confirm','Deletion\x20is\x20blocked\x20by\x20','boolean','num','validation','9qxGShw','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','POST','/smartapi/dblink/delete','isInteger','839824XhuLqt'];a85_0x415d=function(){return _0x117db8;};return a85_0x415d();}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_0x33f1b1(0x1b8),'type':a85_0x33f1b1(0x1ba),'description':a85_0x33f1b1(0x1b4)},EXPECTED_DATASET_COUNT_FLAG={'name':a85_0x33f1b1(0x1ad),'type':a85_0x33f1b1(0x1c7),'description':'Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value'};export const dbDelete={'service':'db','command':'delete','description':a85_0x33f1b1(0x1ce),'risk':a85_0x33f1b1(0x1d2),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5808b5){const _0x38cb9f=a85_0x33f1b1,_0x837fa4=await loadDeleteImpact(_0x5808b5);return assertExpectedDatasetCount(_0x5808b5,_0x837fa4[_0x38cb9f(0x1b0)][_0x38cb9f(0x1b2)]),{'method':_0x38cb9f(0x1bf),'url':_0x38cb9f(0x1c0),'body':{'id':_0x837fa4['id']},'description':_0x837fa4['datasetDependency']['activeDatasetCount']>0x0?_0x38cb9f(0x1b9)+_0x837fa4[_0x38cb9f(0x1b0)][_0x38cb9f(0x1b2)]+_0x38cb9f(0x1ac):_0x38cb9f(0x1cc),..._0x837fa4};},async 'execute'(_0xfdb557){const _0x494708=a85_0x33f1b1;if(!_0xfdb557['bool'](_0x494708(0x1b8)))throw CliErrors[_0x494708(0x1bc)](_0x494708(0x1b3),_0x494708(0x1b7));const _0x1d2f59=_0xfdb557[_0x494708(0x1bb)]('id'),_0x251d1f=await loadDeleteImpact(_0xfdb557),_0x84389b=_0x251d1f[_0x494708(0x1b0)][_0x494708(0x1b2)];assertExpectedDatasetCount(_0xfdb557,_0x84389b);if(_0x84389b>0x0)throw CliErrors[_0x494708(0x1bc)](_0x494708(0x1c3)+_0x1d2f59+_0x494708(0x1d1)+_0x84389b+_0x494708(0x1af),_0x494708(0x1be));return await deleteDbLink(_0x1d2f59),{'ok':!![],'data':{'id':_0x1d2f59,'deleted':!![],'activeDatasetCount':_0x84389b},'message':'Deleted\x20db\x20link\x20'+_0x1d2f59};}};async function loadDeleteImpact(_0x38ecc3){const _0x1684de=a85_0x33f1b1,_0x4fcdba=_0x38ecc3['num']('id'),[_0x4744af,_0x19d8c0]=await Promise[_0x1684de(0x1d3)]([getDbLinkInfo(_0x4fcdba),listDatasets(_0x38ecc3[_0x1684de(0x1d0)],{'source':_0x1684de(0x1ae)})]),_0x22fcd8=buildDbDatasetDependency(_0x4744af,_0x19d8c0);return{'id':_0x4fcdba,'connection':sanitizeDbLinkForOutput(_0x4744af),'datasetDependency':_0x22fcd8['datasetDependency'],'activeDatasetCount':_0x22fcd8[_0x1684de(0x1b0)][_0x1684de(0x1b2)],'datasets':_0x22fcd8[_0x1684de(0x1cd)]};}function assertExpectedDatasetCount(_0x115481,_0x510366){const _0x958cb6=a85_0x33f1b1,_0x2811f4=_0x115481[_0x958cb6(0x1c9)](_0x958cb6(0x1ad));if(_0x2811f4===undefined||_0x2811f4==='')return;const _0x542191=_0x115481[_0x958cb6(0x1bb)]('expected-dataset-count');if(!Number[_0x958cb6(0x1c1)](_0x542191)||_0x542191<0x0)throw CliErrors[_0x958cb6(0x1bc)](_0x958cb6(0x1b5));if(_0x542191!==_0x510366)throw CliErrors[_0x958cb6(0x1bc)](_0x958cb6(0x1b1)+_0x542191+'\x20active\x20Dataset(s),\x20but\x20found\x20'+_0x510366+'.','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.');}
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 +1 @@
1
- function a86_0x5930(_0x5aabf5,_0x2f31e9){_0x5aabf5=_0x5aabf5-0x16a;const _0x15ade9=a86_0x15ad();let _0x5930fe=_0x15ade9[_0x5aabf5];return _0x5930fe;}const a86_0xef07c2=a86_0x5930;(function(_0x4b6f37,_0x4ebf58){const _0x311e83=a86_0x5930,_0x315947=_0x4b6f37();while(!![]){try{const _0x4c9cd3=parseInt(_0x311e83(0x16a))/0x1*(-parseInt(_0x311e83(0x179))/0x2)+parseInt(_0x311e83(0x176))/0x3*(-parseInt(_0x311e83(0x174))/0x4)+parseInt(_0x311e83(0x178))/0x5+parseInt(_0x311e83(0x17a))/0x6*(parseInt(_0x311e83(0x171))/0x7)+-parseInt(_0x311e83(0x16f))/0x8+parseInt(_0x311e83(0x16b))/0x9*(parseInt(_0x311e83(0x16e))/0xa)+parseInt(_0x311e83(0x17c))/0xb;if(_0x4c9cd3===_0x4ebf58)break;else _0x315947['push'](_0x315947['shift']());}catch(_0xf0fc65){_0x315947['push'](_0x315947['shift']());}}}(a86_0x15ad,0x6df30));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_0x15ad(){const _0x1792e5=['num','16006661qUuyTc','228639PsBfvk','506106RukPDM','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','read','10SRsJqC','3762888VzwKUv','dbName','2541YoQDEc','datasetDependency','db\x20link\x20','67844uGwkHl','DB_TABLE','147HFjSpu','appCode','2635425eCDNMg','4GvdGtQ','2820SogdTO'];a86_0x15ad=function(){return _0x1792e5;};return a86_0x15ad();}export const dbDetail={'service':'db','command':'detail','description':a86_0xef07c2(0x16c),'risk':a86_0xef07c2(0x16d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1c7104){const _0x50740b=a86_0xef07c2,_0x408612=_0x1c7104[_0x50740b(0x17b)]('id'),_0xe813b2=await getDbLinkInfo(_0x408612),_0x470621=await listDatasets(_0xe813b2[_0x50740b(0x177)]||_0x1c7104[_0x50740b(0x177)],{'source':_0x50740b(0x175)}),_0x155d01=buildDbDatasetDependency(_0xe813b2,_0x470621);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0xe813b2),'datasetDependency':_0x155d01[_0x50740b(0x172)]},'message':_0x50740b(0x173)+_0x408612+':\x20'+_0xe813b2[_0x50740b(0x170)]};}};
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 +1 @@
1
- const a87_0x50bfdf=a87_0x32cd;(function(_0x28a67f,_0x50ee8d){const _0x28e3ce=a87_0x32cd,_0xdb595b=_0x28a67f();while(!![]){try{const _0x78ea39=parseInt(_0x28e3ce(0x186))/0x1*(parseInt(_0x28e3ce(0x193))/0x2)+parseInt(_0x28e3ce(0x18c))/0x3*(-parseInt(_0x28e3ce(0x191))/0x4)+-parseInt(_0x28e3ce(0x194))/0x5+-parseInt(_0x28e3ce(0x183))/0x6*(-parseInt(_0x28e3ce(0x18f))/0x7)+-parseInt(_0x28e3ce(0x18b))/0x8*(parseInt(_0x28e3ce(0x197))/0x9)+parseInt(_0x28e3ce(0x182))/0xa*(parseInt(_0x28e3ce(0x192))/0xb)+parseInt(_0x28e3ce(0x195))/0xc;if(_0x78ea39===_0x50ee8d)break;else _0xdb595b['push'](_0xdb595b['shift']());}catch(_0x2ad97c){_0xdb595b['push'](_0xdb595b['shift']());}}}(a87_0x5842,0x35e76));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a87_0x32cd(_0x461284,_0x17e421){_0x461284=_0x461284-0x181;const _0x5842fe=a87_0x5842();let _0x32cd81=_0x5842fe[_0x461284];return _0x32cd81;}function a87_0x5842(){const _0xad93fa=['traceId','75930KjxYic','30VdHcKK','num','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','6CRVMfN','validation','write','\x20--format\x20compress','trim','6128veVAlA','570pDSgQz','status','diff-refresh-start','519967bnMIeT','\x20--plan\x20','2960YiXNAR','88WiMnlw','50366CjhrUm','1788870yyYcVh','2632932TVqvbi','\x20db\x20diff-refresh-status\x20--id\x20','981TwSTWU','appCode'];a87_0x5842=function(){return _0xad93fa;};return a87_0x5842();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbDiffRefreshStart={'service':'db','command':a87_0x50bfdf(0x18e),'description':'Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','risk':a87_0x50bfdf(0x188),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x57d8e6){const _0x4b49b6=a87_0x50bfdf,_0x12c8ac=_0x57d8e6[_0x4b49b6(0x184)]('id'),_0x1152c0=await startDbTableDiffRefresh(_0x57d8e6[_0x4b49b6(0x198)],_0x12c8ac),_0x946f50=_0x1152c0[_0x4b49b6(0x181)]?.[_0x4b49b6(0x18a)]();if(!_0x946f50)throw CliErrors[_0x4b49b6(0x187)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x12c8ac,'traceId':_0x946f50,'status':_0x1152c0[_0x4b49b6(0x18d)]??null,'query':{'command':CLI_BIN_NAME+_0x4b49b6(0x196)+_0x12c8ac+_0x4b49b6(0x190)+_0x946f50+_0x4b49b6(0x189)}},'message':_0x4b49b6(0x185)+_0x12c8ac};}};
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 +1 @@
1
- const a88_0x5cc872=a88_0x4efb;function a88_0x4efb(_0x4be31c,_0x59b06f){_0x4be31c=_0x4be31c-0x1af;const _0xdbdd6d=a88_0xdbdd();let _0x4efb1c=_0xdbdd6d[_0x4be31c];return _0x4efb1c;}(function(_0x44124e,_0x582005){const _0x4fe965=a88_0x4efb,_0x4bfbc7=_0x44124e();while(!![]){try{const _0x3dc95c=-parseInt(_0x4fe965(0x1c3))/0x1*(parseInt(_0x4fe965(0x1b8))/0x2)+-parseInt(_0x4fe965(0x1b9))/0x3+parseInt(_0x4fe965(0x1b7))/0x4*(parseInt(_0x4fe965(0x1bb))/0x5)+parseInt(_0x4fe965(0x1b2))/0x6*(parseInt(_0x4fe965(0x1c5))/0x7)+-parseInt(_0x4fe965(0x1af))/0x8*(-parseInt(_0x4fe965(0x1c8))/0x9)+-parseInt(_0x4fe965(0x1c7))/0xa*(-parseInt(_0x4fe965(0x1c9))/0xb)+parseInt(_0x4fe965(0x1ba))/0xc*(-parseInt(_0x4fe965(0x1b1))/0xd);if(_0x3dc95c===_0x582005)break;else _0x4bfbc7['push'](_0x4bfbc7['shift']());}catch(_0x582040){_0x4bfbc7['push'](_0x4bfbc7['shift']());}}}(a88_0xdbdd,0x7395b));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a88_0x5cc872(0x1b0),'CANCELLED']),RUNNING_STATUSES=new Set([a88_0x5cc872(0x1b6),a88_0x5cc872(0x1c0),'RETRYING']);function a88_0xdbdd(){const _0x7ae6e9=['\x20--format\x20compress','\x20db\x20diff-refresh-status\x20--id\x20','Table-diff\x20refresh\x20status\x20for\x20','PENDING','59600HXSCmQ','8ebFsHr','458955tjWsyj','12252lCXaxr','215PoJlbx','str','read','status','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','RUNNING','\x20--plan\x20','UNKNOWN','71195ROqsFA','SUCCESS','28DcrnQk','has','20PbwHRZ','919827hCBLAe','3054601Ckxcxw','40MqjFZs','FAILED','15925kMUSOw','682242nGvvoI'];a88_0xdbdd=function(){return _0x7ae6e9;};return a88_0xdbdd();}export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a88_0x5cc872(0x1bf),'risk':a88_0x5cc872(0x1bd),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'plan','type':'string','required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x19f359){const _0x4742d6=a88_0x5cc872,_0x47d361=_0x19f359['num']('id'),_0x16328d=_0x19f359[_0x4742d6(0x1bc)]('plan'),_0x5969db=await getDbAnalysisStatus(_0x16328d),_0x32fc9f=_0x5969db[_0x4742d6(0x1be)]??null,_0x39ae13=TERMINAL_STATUSES[_0x4742d6(0x1c6)](_0x32fc9f??''),_0x39b0f3=_0x32fc9f===_0x4742d6(0x1c4),_0x571a27=_0x39ae13||RUNNING_STATUSES[_0x4742d6(0x1c6)](_0x32fc9f??'');return{'ok':!![],'data':{'dbLinkId':_0x47d361,'planId':_0x16328d,'status':_0x5969db,'knownStatus':_0x571a27,'isTerminal':_0x39ae13,'isSuccessful':_0x39b0f3,'query':_0x571a27&&!_0x39ae13?{'command':CLI_BIN_NAME+_0x4742d6(0x1b4)+_0x47d361+_0x4742d6(0x1c1)+_0x16328d+_0x4742d6(0x1b3)}:null},'message':_0x4742d6(0x1b5)+_0x16328d+':\x20'+(_0x32fc9f??_0x4742d6(0x1c2))};}};
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 +1 @@
1
- const a89_0x2696f6=a89_0x4e2c;function a89_0x4e2c(_0x4c35a1,_0x38caca){_0x4c35a1=_0x4c35a1-0x7c;const _0x2c7b9b=a89_0x2c7b();let _0x4e2c21=_0x2c7b9b[_0x4c35a1];return _0x4e2c21;}(function(_0xdf1d49,_0x5e82e1){const _0x139e2e=a89_0x4e2c,_0x22a632=_0xdf1d49();while(!![]){try{const _0x571a88=-parseInt(_0x139e2e(0x81))/0x1*(-parseInt(_0x139e2e(0x86))/0x2)+parseInt(_0x139e2e(0x84))/0x3*(parseInt(_0x139e2e(0x91))/0x4)+parseInt(_0x139e2e(0xa3))/0x5*(-parseInt(_0x139e2e(0x92))/0x6)+-parseInt(_0x139e2e(0x82))/0x7+-parseInt(_0x139e2e(0x9f))/0x8+-parseInt(_0x139e2e(0x99))/0x9*(parseInt(_0x139e2e(0x87))/0xa)+parseInt(_0x139e2e(0x8a))/0xb;if(_0x571a88===_0x5e82e1)break;else _0x22a632['push'](_0x22a632['shift']());}catch(_0x37d281){_0x22a632['push'](_0x22a632['shift']());}}}(a89_0x2c7b,0x8d784));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';function a89_0x2c7b(){const _0x4c9acb=['1524xeGZae','308454CSNkDT','modifiedColumns','boolean','map','totalCount','all','page','36171wzOQSd','physicalTableCount','diff','addedColumns','MODIFIED_TABLE','NEW_TABLE','343976qqIpiP','length','\x20changed\x20table\x20row(s),\x20total\x20','string','5UXVJjv','appCode','deletedColumns','datasetTableCount','filter','str','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','bool','111522TxRIPv','4506495ufeDgv','fieldDiff','1653EPYaek','number','10SjScDB','2630WaFfmm','pagesize','tableName','17678177eMVYbK','table','num','DELETED_TABLE','Page\x20index\x20(1-based)','diffType','summary'];a89_0x2c7b=function(){return _0x4c9acb;};return a89_0x2c7b();}export const dbDiff={'service':'db','command':a89_0x2696f6(0x9b),'description':a89_0x2696f6(0x7f),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a89_0x2696f6(0xa2),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':'page','type':a89_0x2696f6(0x85),'description':a89_0x2696f6(0x8e),'default':0x1},{'name':a89_0x2696f6(0x88),'type':a89_0x2696f6(0x85),'description':'Page\x20size','default':0x14},{'name':a89_0x2696f6(0x97),'type':a89_0x2696f6(0x94),'description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'}],async 'execute'(_0x5d5637){const _0x4a131b=a89_0x2696f6,_0x18a265=_0x5d5637[_0x4a131b(0x8c)]('id'),_0x7c9fa4=_0x5d5637[_0x4a131b(0x80)](_0x4a131b(0x97)),_0x2376f8=_0x7c9fa4?0x1:_0x5d5637[_0x4a131b(0x8c)](_0x4a131b(0x98),0x1)||0x1,_0x589bc3=_0x7c9fa4?DB_TABLE_PAGE_SIZE:_0x5d5637[_0x4a131b(0x8c)](_0x4a131b(0x88),0x14)||0x14,_0x520e78=_0x5d5637[_0x4a131b(0x7e)](_0x4a131b(0x8b))||undefined,_0x10e904=_0x7c9fa4?await getAllDbTableDiff(getDbTableDiff,_0x5d5637[_0x4a131b(0xa4)],_0x18a265,_0x520e78):await getDbTableDiff(_0x5d5637['appCode'],_0x18a265,{'pageIndex':_0x2376f8,'pageSize':_0x589bc3,'tableName':_0x520e78}),_0x425ea1=_0x10e904['tableList'],_0x25c24e=summarizeDbTableDiff(_0x425ea1),_0x2d124a=_0x425ea1['filter'](_0x2714ec=>_0x2714ec[_0x4a131b(0x8f)]===_0x4a131b(0x9e)||_0x2714ec[_0x4a131b(0x8f)]===_0x4a131b(0x9d))[_0x4a131b(0x95)](_0x54517d=>_0x54517d[_0x4a131b(0x89)]),_0x5368b1=_0x425ea1[_0x4a131b(0x7d)](_0x4571dc=>_0x4571dc[_0x4a131b(0x8f)]===_0x4a131b(0x8d))[_0x4a131b(0x95)](_0x2bcf23=>_0x2bcf23['tableName']),_0x3ba580=_0x425ea1[_0x4a131b(0x7d)](_0x1c0b1a=>_0x1c0b1a[_0x4a131b(0x8f)]===_0x4a131b(0x9d))[_0x4a131b(0x95)](_0x554fba=>({'tableName':_0x554fba[_0x4a131b(0x89)],'addedColumns':_0x554fba[_0x4a131b(0x83)]?.[_0x4a131b(0x9c)]??[],'deletedColumns':_0x554fba[_0x4a131b(0x83)]?.[_0x4a131b(0xa5)]??[],'modifiedColumns':_0x554fba[_0x4a131b(0x83)]?.[_0x4a131b(0x93)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x18a265,'page':_0x2376f8,'pageSize':_0x589bc3,'totalCount':_0x10e904['totalCount'],...typeof _0x10e904[_0x4a131b(0x9a)]===_0x4a131b(0x85)?{'physicalTableCount':_0x10e904[_0x4a131b(0x9a)]}:{},...typeof _0x10e904[_0x4a131b(0x7c)]===_0x4a131b(0x85)?{'datasetTableCount':_0x10e904[_0x4a131b(0x7c)]}:{},..._0x10e904[_0x4a131b(0x90)]?{'summary':_0x10e904[_0x4a131b(0x90)]}:{},'summaryByType':_0x25c24e,'toAnalyzeTables':_0x2d124a,'deletedTables':_0x5368b1,'modifiedFieldDiffs':_0x3ba580,'tables':_0x425ea1},'message':_0x425ea1[_0x4a131b(0xa0)]+_0x4a131b(0xa1)+_0x10e904[_0x4a131b(0x96)]+'\x20(db\x20link\x20'+_0x18a265+')'};}};
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 +1 @@
1
- (function(_0x443572,_0x5e5e78){const _0x3cecd4=a90_0x48e1,_0x138b8c=_0x443572();while(!![]){try{const _0x534656=parseInt(_0x3cecd4(0x12b))/0x1*(parseInt(_0x3cecd4(0x12f))/0x2)+-parseInt(_0x3cecd4(0x12d))/0x3*(parseInt(_0x3cecd4(0x12c))/0x4)+-parseInt(_0x3cecd4(0x133))/0x5+parseInt(_0x3cecd4(0x130))/0x6+-parseInt(_0x3cecd4(0x134))/0x7+parseInt(_0x3cecd4(0x12e))/0x8*(-parseInt(_0x3cecd4(0x131))/0x9)+-parseInt(_0x3cecd4(0x12a))/0xa*(-parseInt(_0x3cecd4(0x132))/0xb);if(_0x534656===_0x5e5e78)break;else _0x138b8c['push'](_0x138b8c['shift']());}catch(_0x59696f){_0x138b8c['push'](_0x138b8c['shift']());}}}(a90_0x3662,0x8aab2));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';function a90_0x3662(){const _0x1b8146=['824331tDYZPA','395320ZuvuTP','32ikfUcS','1694772VLFByX','72iBpfFu','2948jsiIEf','3658760MaPTtK','2750237zTBxuH','65620QSwQud','20103LpVnUa','4rQvYej'];a90_0x3662=function(){return _0x1b8146;};return a90_0x3662();}function a90_0x48e1(_0x247beb,_0xd1f1fd){_0x247beb=_0x247beb-0x12a;const _0x366229=a90_0x3662();let _0x48e175=_0x366229[_0x247beb];return _0x48e175;}import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
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 +1 @@
1
- function a91_0x25d7(){const _0x35dbbd=['number','num','all','2882520BchruG','pagesize','datasetDependency','26580IRTZsX','appCode','472MSBCbG','DB_TABLE','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','32hfxSky','27865xfdUGL','1177967nRCYJT','\x20database\x20connection(s)','4yXbKGm','read','page','8514EjWXDf','Page\x20size','list','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','map','750cLeOav','Page\x20index\x20(1-based)','3442938DNFlIM','7389nBiKmT','549919xMiXVo'];a91_0x25d7=function(){return _0x35dbbd;};return a91_0x25d7();}const a91_0x119ca8=a91_0x1b1f;(function(_0x4408ef,_0x41554d){const _0x51239f=a91_0x1b1f,_0x19281d=_0x4408ef();while(!![]){try{const _0x4624eb=-parseInt(_0x51239f(0x155))/0x1*(-parseInt(_0x51239f(0x165))/0x2)+-parseInt(_0x51239f(0x153))/0x3+-parseInt(_0x51239f(0x15e))/0x4*(parseInt(_0x51239f(0x162))/0x5)+parseInt(_0x51239f(0x159))/0x6+-parseInt(_0x51239f(0x163))/0x7*(parseInt(_0x51239f(0x161))/0x8)+-parseInt(_0x51239f(0x154))/0x9*(-parseInt(_0x51239f(0x151))/0xa)+-parseInt(_0x51239f(0x14c))/0xb*(-parseInt(_0x51239f(0x15c))/0xc);if(_0x4624eb===_0x41554d)break;else _0x19281d['push'](_0x19281d['shift']());}catch(_0x1a9948){_0x19281d['push'](_0x19281d['shift']());}}}(a91_0x25d7,0xd6523));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_0x1b1f(_0x20d9b4,_0x38cc24){_0x20d9b4=_0x20d9b4-0x14c;const _0x25d7b2=a91_0x25d7();let _0x1b1f55=_0x25d7b2[_0x20d9b4];return _0x1b1f55;}export const dbList={'service':'db','command':a91_0x119ca8(0x14e),'description':a91_0x119ca8(0x160),'risk':a91_0x119ca8(0x166),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a91_0x119ca8(0x167),'type':a91_0x119ca8(0x156),'description':a91_0x119ca8(0x152),'default':0x1},{'name':'pagesize','type':a91_0x119ca8(0x156),'description':a91_0x119ca8(0x14d),'default':0x64}],async 'execute'(_0x3dfc4e){const _0x55ea74=a91_0x119ca8,_0x5ae884=_0x3dfc4e['num'](_0x55ea74(0x167),0x1)||0x1,_0x44cf9b=_0x3dfc4e[_0x55ea74(0x157)](_0x55ea74(0x15a),0x64)||0x64,[{items:_0x9eda7b,paging:_0x38f2f2},_0x25d5f7]=await Promise[_0x55ea74(0x158)]([listDbLinks(_0x3dfc4e[_0x55ea74(0x15d)],{'currentPage':_0x5ae884,'pageSize':_0x44cf9b}),listDatasets(_0x3dfc4e[_0x55ea74(0x15d)],{'source':_0x55ea74(0x15f)})]),_0x2e1ad6=_0x9eda7b[_0x55ea74(0x150)](_0x2fa1c4=>({...sanitizeDbLinkForOutput(_0x2fa1c4),'datasetDependency':buildDbDatasetDependency(_0x2fa1c4,_0x25d5f7)[_0x55ea74(0x15b)]})),_0x359e7a=_0x38f2f2?_0x38f2f2:{'currentPage':_0x5ae884,'pageSize':_0x44cf9b,'rowsOnPage':_0x2e1ad6['length'],'totalCount':null,'note':_0x55ea74(0x14f)};return{'ok':!![],'data':{'connections':_0x2e1ad6,'paging':_0x359e7a},'message':'Found\x20'+_0x2e1ad6['length']+_0x55ea74(0x164)};}};
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 +1 @@
1
- (function(_0x28b472,_0x4ad289){const _0x3545da=a92_0x3b7e,_0x5af918=_0x28b472();while(!![]){try{const _0x271e17=-parseInt(_0x3545da(0x9a))/0x1+parseInt(_0x3545da(0xa5))/0x2+-parseInt(_0x3545da(0xa6))/0x3+-parseInt(_0x3545da(0xae))/0x4*(parseInt(_0x3545da(0xb9))/0x5)+-parseInt(_0x3545da(0xb0))/0x6+parseInt(_0x3545da(0xb7))/0x7*(-parseInt(_0x3545da(0xa8))/0x8)+parseInt(_0x3545da(0xbd))/0x9*(parseInt(_0x3545da(0xb4))/0xa);if(_0x271e17===_0x4ad289)break;else _0x5af918['push'](_0x5af918['shift']());}catch(_0x57ffdc){_0x5af918['push'](_0x5af918['shift']());}}}(a92_0x8835,0x5386a));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a92_0x8835(){const _0x1ad9f6=['dbId','1339982CxpMCY','1924818yiphXx','/data/database','51280JNTWfY','toLowerCase','Database\x20connection\x20preflight\x20failed.','[redacted]','password','number','1442992oeweMD','name','3289416lsVUcN','connectionstring','passwd','credential','4694830ClWBJb','hasAvailableDo','jdbcurl','49IICIaY','tableName','5RRUQSS','includes','apiError','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','36MebFbv','accesskey','test','dbpassword','610341BIWHnL','map','code','filter','dbtableConfig','keys','isFinite','privatekey','trim','length'];a92_0x8835=function(){return _0x1ad9f6;};return a92_0x8835();}function shouldRedactKey(_0x46cce6){const _0xf07437=a92_0x3b7e,_0x37e7df=_0x46cce6[_0xf07437(0xa9)]();if(_0x37e7df===_0xf07437(0xac)||_0x37e7df===_0xf07437(0xb2)||_0x37e7df===_0xf07437(0xc0))return!![];if(_0x37e7df[_0xf07437(0xba)]('secret')||_0x37e7df[_0xf07437(0xba)]('token')||_0x37e7df[_0xf07437(0xba)](_0xf07437(0xb3)))return!![];if(_0x37e7df['includes'](_0xf07437(0xa1))||_0x37e7df[_0xf07437(0xba)](_0xf07437(0xbe)))return!![];if(_0x37e7df==='authorization'||_0x37e7df===_0xf07437(0xb1)||_0x37e7df===_0xf07437(0xb6))return!![];return![];}export function sanitizeDbLinkForOutput(_0x58a2dd){const _0x1a4387=a92_0x3b7e,_0x49ddba={..._0x58a2dd};delete _0x49ddba[_0x1a4387(0xb5)];for(const _0x57ed69 of Object[_0x1a4387(0x9f)](_0x49ddba)){if(!shouldRedactKey(_0x57ed69))continue;const _0x1dba5b=_0x49ddba[_0x57ed69];_0x1dba5b!=null&&String(_0x1dba5b)[_0x1a4387(0xa3)]>0x0&&(_0x49ddba[_0x57ed69]=_0x1a4387(0xab));}return _0x49ddba;}export function sanitizeDbLinkList(_0x1489f9){return _0x1489f9['map'](_0x1db001=>sanitizeDbLinkForOutput(_0x1db001));}export function buildDbDatasetDependency(_0x143cd6,_0x3150c1){const _0x46b22c=a92_0x3b7e,_0x210673=_0x3150c1[_0x46b22c(0x9d)](_0x1f7149=>Number(_0x1f7149[_0x46b22c(0x9e)]?.[_0x46b22c(0xa4)])===Number(_0x143cd6['id']))[_0x46b22c(0x9b)](_0x1f3135=>({'id':_0x1f3135['id'],'code':_0x1f3135[_0x46b22c(0x9c)],'name':_0x1f3135[_0x46b22c(0xaf)],..._0x1f3135[_0x46b22c(0x9e)]?.[_0x46b22c(0xb8)]?{'tableName':_0x1f3135[_0x46b22c(0x9e)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x210673[_0x46b22c(0xa3)]>0x0,'activeDatasetCount':_0x210673[_0x46b22c(0xa3)]},'datasets':_0x210673};}export async function assertDbLinkConnectionPreflight(_0x3afc26){const _0x120cbf=a92_0x3b7e,_0x2328bb=await testDbLinkConfigConnect(_0x3afc26);if(_0x2328bb!==!![])throw CliErrors[_0x120cbf(0xbb)](_0x120cbf(0xaa),_0x120cbf(0xbc));}function a92_0x3b7e(_0x5cd749,_0x126b42){_0x5cd749=_0x5cd749-0x9a;const _0x8835fb=a92_0x8835();let _0x3b7eaf=_0x8835fb[_0x5cd749];return _0x3b7eaf;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x44e271){const _0x70e7a2=a92_0x3b7e,_0xb99caa=_0x44e271[_0x70e7a2(0xa2)]();if(!_0xb99caa)return![];return DB_URL_PATTERN[_0x70e7a2(0xbf)](_0xb99caa);}export function buildDbPageLinks(_0x1419b5,_0x43b333){const _0x191af6=a92_0x3b7e,_0x1967f4=_0x1419b5?.[_0x191af6(0xa2)]();if(!_0x1967f4)return undefined;const _0x28f90a=typeof _0x43b333===_0x191af6(0xad)?String(_0x43b333):String(_0x43b333??'')['trim']();if(!_0x28f90a)return undefined;const _0x5a02f3=Number(_0x28f90a);if(!Number[_0x191af6(0xa0)](_0x5a02f3)||_0x5a02f3<=0x0)return undefined;const _0x4a04cc=getAppBaseUrl(_0x1967f4),_0x2d445b=encodeURIComponent(String(_0x5a02f3));return{'databasePage':_0x4a04cc+_0x191af6(0xa7),'erPage':_0x4a04cc+'/data/er?dbId='+_0x2d445b};}
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 +1 @@
1
- function a93_0x1e9c(){const _0x395801=['\x20of\x20','datasetTableCount','3475rtIqSQ','filter','physicalTableCount','1017405FFCziR','795240qhkrva','diffType','number','size','tableName','fromEntries','values','6uHiAhe','862170MVOLib','totalCount','116kqDcVH','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','tableList','MODIFIED_TABLE','1396450pUGmLE','21973vjFzMT','set','summary','200gazYDy','406856JIhppw','validation'];a93_0x1e9c=function(){return _0x395801;};return a93_0x1e9c();}const a93_0x245a28=a93_0x16d8;(function(_0x51b643,_0x1b3ea8){const _0x2811c6=a93_0x16d8,_0x95027=_0x51b643();while(!![]){try{const _0x1758db=-parseInt(_0x2811c6(0x8a))/0x1*(-parseInt(_0x2811c6(0x98))/0x2)+-parseInt(_0x2811c6(0x96))/0x3+-parseInt(_0x2811c6(0xa1))/0x4+-parseInt(_0x2811c6(0x8d))/0x5*(-parseInt(_0x2811c6(0x95))/0x6)+parseInt(_0x2811c6(0x9d))/0x7*(-parseInt(_0x2811c6(0xa0))/0x8)+parseInt(_0x2811c6(0x8e))/0x9+parseInt(_0x2811c6(0x9c))/0xa;if(_0x1758db===_0x1b3ea8)break;else _0x95027['push'](_0x95027['shift']());}catch(_0x3ba885){_0x95027['push'](_0x95027['shift']());}}}(a93_0x1e9c,0x28651));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=['NEW_TABLE',a93_0x245a28(0x9b),'DELETED_TABLE','ALREADY_ANALYZED'];export function summarizeDbTableDiff(_0x4d3523){const _0xeba68a=a93_0x245a28;return Object[_0xeba68a(0x93)](DB_TABLE_DIFF_TYPES['map'](_0x32621b=>[_0x32621b,_0x4d3523[_0xeba68a(0x8b)](_0x4f9a0c=>_0x4f9a0c[_0xeba68a(0x8f)]===_0x32621b)['length']]));}function a93_0x16d8(_0x7387f6,_0x2f5527){_0x7387f6=_0x7387f6-0x8a;const _0x1e9c0b=a93_0x1e9c();let _0x16d881=_0x1e9c0b[_0x7387f6];return _0x16d881;}export async function getAllDbTableDiff(_0x1b5482,_0x2542aa,_0xdd914c,_0x4d4a31){const _0x4fd62d=a93_0x245a28,_0x48781c=new Map();let _0x1e01fe=0x1,_0x5179d5=null;while(!![]){_0x5179d5=await _0x1b5482(_0x2542aa,_0xdd914c,{'pageIndex':_0x1e01fe,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x4d4a31});const _0x634b6e=_0x48781c[_0x4fd62d(0x91)];for(const _0x4902ba of _0x5179d5[_0x4fd62d(0x9a)]){_0x48781c[_0x4fd62d(0x9e)](_0x4902ba[_0x4fd62d(0x92)],_0x4902ba);}if(_0x48781c[_0x4fd62d(0x91)]>=_0x5179d5[_0x4fd62d(0x97)])break;if(_0x5179d5[_0x4fd62d(0x9a)]['length']===0x0||_0x48781c[_0x4fd62d(0x91)]===_0x634b6e)throw CliErrors[_0x4fd62d(0xa2)](_0x4fd62d(0x99)+_0x48781c[_0x4fd62d(0x91)]+_0x4fd62d(0xa3)+_0x5179d5[_0x4fd62d(0x97)]+'\x20row(s).');_0x1e01fe+=0x1;}return{'totalCount':_0x5179d5?.['totalCount']??0x0,...typeof _0x5179d5?.[_0x4fd62d(0x8c)]==='number'?{'physicalTableCount':_0x5179d5[_0x4fd62d(0x8c)]}:{},...typeof _0x5179d5?.[_0x4fd62d(0xa4)]===_0x4fd62d(0x90)?{'datasetTableCount':_0x5179d5[_0x4fd62d(0xa4)]}:{},..._0x5179d5?.[_0x4fd62d(0x9f)]?{'summary':_0x5179d5['summary']}:{},'tableList':[..._0x48781c[_0x4fd62d(0x94)]()]};}
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 +1 @@
1
- function a94_0x1186(){const _0x249da6=['586166hxLsxx','797157OIDzVH','summary','physicalTableCount','2709483ZrDOzw','table','271655uLzFLj','totalCount','2cFDQxQ','3846745mDaBtp','read','number','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','36870KWlrjI','120wNGOEi','num','string','160taEQgv','6965968QxFrOX','5247BtPjjv'];a94_0x1186=function(){return _0x249da6;};return a94_0x1186();}const a94_0x295660=a94_0xda67;function a94_0xda67(_0x5af37d,_0x95e906){_0x5af37d=_0x5af37d-0x14b;const _0x118641=a94_0x1186();let _0xda6729=_0x118641[_0x5af37d];return _0xda6729;}(function(_0x427904,_0x5e4146){const _0x5be789=a94_0xda67,_0xcc0d13=_0x427904();while(!![]){try{const _0x2992a1=-parseInt(_0x5be789(0x14e))/0x1*(-parseInt(_0x5be789(0x156))/0x2)+-parseInt(_0x5be789(0x152))/0x3+parseInt(_0x5be789(0x14c))/0x4+parseInt(_0x5be789(0x154))/0x5*(-parseInt(_0x5be789(0x15c))/0x6)+parseInt(_0x5be789(0x157))/0x7+-parseInt(_0x5be789(0x14b))/0x8*(-parseInt(_0x5be789(0x14f))/0x9)+parseInt(_0x5be789(0x15b))/0xa*(-parseInt(_0x5be789(0x14d))/0xb);if(_0x2992a1===_0x5e4146)break;else _0xcc0d13['push'](_0xcc0d13['shift']());}catch(_0x113e4c){_0xcc0d13['push'](_0xcc0d13['shift']());}}}(a94_0x1186,0xdbc4d));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_0x295660(0x15a),'risk':a94_0x295660(0x158),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x295660(0x153),'type':a94_0x295660(0x15e),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'}],async 'execute'(_0x2df437){const _0x8840a0=a94_0x295660,_0x504be3=_0x2df437[_0x8840a0(0x15d)]('id'),_0x542b56=_0x2df437['str'](_0x8840a0(0x153))||undefined,_0x25b0f2=await getAllDbTableDiff(getDbTableComparisonPage,_0x2df437['appCode'],_0x504be3,_0x542b56),_0x310342=_0x25b0f2['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x504be3,'totalCount':_0x25b0f2['totalCount'],...typeof _0x25b0f2[_0x8840a0(0x151)]===_0x8840a0(0x159)?{'physicalTableCount':_0x25b0f2[_0x8840a0(0x151)]}:{},...typeof _0x25b0f2['datasetTableCount']===_0x8840a0(0x159)?{'datasetTableCount':_0x25b0f2['datasetTableCount']}:{},..._0x25b0f2[_0x8840a0(0x150)]?{'summary':_0x25b0f2[_0x8840a0(0x150)]}:{},'summaryByType':summarizeDbTableDiff(_0x310342),'tables':_0x310342},'message':_0x310342['length']+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x25b0f2[_0x8840a0(0x155)]+'\x20(db\x20link\x20'+_0x504be3+')'};}};
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 +1 @@
1
- const a95_0x2881db=a95_0x1fcf;(function(_0x4adf9b,_0x132ec3){const _0x35929f=a95_0x1fcf,_0x3a7845=_0x4adf9b();while(!![]){try{const _0x2bb44a=-parseInt(_0x35929f(0x191))/0x1*(parseInt(_0x35929f(0x18c))/0x2)+-parseInt(_0x35929f(0x17f))/0x3*(parseInt(_0x35929f(0x181))/0x4)+-parseInt(_0x35929f(0x189))/0x5+-parseInt(_0x35929f(0x188))/0x6*(parseInt(_0x35929f(0x18a))/0x7)+parseInt(_0x35929f(0x180))/0x8+parseInt(_0x35929f(0x18d))/0x9+-parseInt(_0x35929f(0x18f))/0xa;if(_0x2bb44a===_0x132ec3)break;else _0x3a7845['push'](_0x3a7845['shift']());}catch(_0x80ea4){_0x3a7845['push'](_0x3a7845['shift']());}}}(a95_0x3eb6,0xa191d));import{testDbLinkConnect}from'../../core/api-client.js';function a95_0x1fcf(_0x3d46a4,_0x3ee488){_0x3d46a4=_0x3d46a4-0x17b;const _0x3eb6e5=a95_0x3eb6();let _0x1fcfd3=_0x3eb6e5[_0x3d46a4];return _0x1fcfd3;}function a95_0x3eb6(){const _0xbdb32b=['825180ZBrQDf','error','13XbpvcA','read','num','code','success','slice','5931uzItZc','7335000AZoSxj','168axNyBK','keys','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','object','message','Connection\x20check\x20finished\x20for\x20db\x20link\x20','test','374520ZXVgxk','379390OsTQqI','14wVIZVz','\x20(see\x20data.result)','182926TQCpBY','11701827iLhNDc','data'];a95_0x3eb6=function(){return _0xbdb32b;};return a95_0x3eb6();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1cbcaa){const _0xd5a260=a95_0x1fcf;if(_0x1cbcaa===!![]||_0x1cbcaa===![])return{'success':_0x1cbcaa};if(_0x1cbcaa===null||_0x1cbcaa===undefined)return{'type':typeof _0x1cbcaa};if(typeof _0x1cbcaa!==_0xd5a260(0x184))return{'type':typeof _0x1cbcaa};const _0x24b77b=_0x1cbcaa,_0x302b67=[_0xd5a260(0x17d),_0xd5a260(0x185),_0xd5a260(0x17c),_0xd5a260(0x190),'msg',_0xd5a260(0x18e)],_0x29b782={};for(const _0x1dfec2 of _0x302b67){if(_0x1dfec2 in _0x24b77b)_0x29b782[_0x1dfec2]=_0x24b77b[_0x1dfec2];}return Object[_0xd5a260(0x182)](_0x29b782)['length']===0x0&&(_0x29b782[_0xd5a260(0x182)]=Object[_0xd5a260(0x182)](_0x24b77b)[_0xd5a260(0x17e)](0x0,0x14)),_0x29b782;}export const dbTest={'service':'db','command':a95_0x2881db(0x187),'description':a95_0x2881db(0x183),'risk':a95_0x2881db(0x192),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x29709b){const _0x221692=a95_0x2881db,_0x3f12c1=_0x29709b[_0x221692(0x17b)]('id'),_0x4b9a84=await testDbLinkConnect(_0x3f12c1),_0x352e1b=_0x4b9a84===!![]||typeof _0x4b9a84==='object'&&_0x4b9a84!==null&&_0x4b9a84[_0x221692(0x17d)]===!![],_0x5cda1a=summarizeTestConnectResult(_0x4b9a84);return{'ok':!![],'data':{'id':_0x3f12c1,'connected':Boolean(_0x352e1b),'result':_0x5cda1a},'message':_0x352e1b?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x3f12c1:_0x221692(0x186)+_0x3f12c1+_0x221692(0x18b)};}};
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 +1 @@
1
- const a96_0x3cc58d=a96_0x4df7;(function(_0x297e0c,_0x29043b){const _0x56c901=a96_0x4df7,_0x3394c7=_0x297e0c();while(!![]){try{const _0x269087=-parseInt(_0x56c901(0x1b3))/0x1+-parseInt(_0x56c901(0x1c9))/0x2+-parseInt(_0x56c901(0x1bd))/0x3*(-parseInt(_0x56c901(0x1bc))/0x4)+-parseInt(_0x56c901(0x1cb))/0x5*(-parseInt(_0x56c901(0x1d1))/0x6)+-parseInt(_0x56c901(0x1bb))/0x7+-parseInt(_0x56c901(0x1b5))/0x8+parseInt(_0x56c901(0x1b6))/0x9;if(_0x269087===_0x29043b)break;else _0x3394c7['push'](_0x3394c7['shift']());}catch(_0x55c9f5){_0x3394c7['push'](_0x3394c7['shift']());}}}(a96_0x2868,0xb76f0));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a96_0x4df7(_0x3f68f5,_0x133541){_0x3f68f5=_0x3f68f5-0x1b3;const _0x286818=a96_0x2868();let _0x4df777=_0x286818[_0x3f68f5];return _0x4df777;}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';function a96_0x2868(){const _0x4b81e1=['str','New\x20host:port','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','username','1320UBUgaR','trim','POST','dbName','/smartapi/dblink/update','319032dbBSLX','dbdesc','2303928SfSpkF','32960448zfKRtk','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','bool','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbDesc','9568881tdYoQx','941300iwHfhG','6PwKgeX','validation','has','New\x20connection\x20parameter\x20string','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','dbparam','dburl','skip-connection-test','string','dbname','New\x20database\x20name','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','2957704VDhJMU','password','1620lZpkrY','num'];a96_0x2868=function(){return _0x4b81e1;};return a96_0x2868();}const MASKED_PASSWORD_VALUES=new Set(['******','[redacted]']);function mergeDbLinkUpdate(_0x202195,_0x438c17){const _0x1bb520=a96_0x4df7,_0x278800={..._0x202195},_0x20e38f=_0x438c17['str'](_0x1bb520(0x1ca));if(_0x20e38f&&MASKED_PASSWORD_VALUES[_0x1bb520(0x1bf)](_0x20e38f))throw CliErrors['validation'](_0x1bb520(0x1c8));if(!_0x20e38f&&MASKED_PASSWORD_VALUES[_0x1bb520(0x1bf)](String(_0x202195[_0x1bb520(0x1ca)]??'')))throw CliErrors[_0x1bb520(0x1be)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x575571=_0x438c17[_0x1bb520(0x1cd)](_0x1bb520(0x1c6));if(_0x575571)_0x278800[_0x1bb520(0x1d4)]=_0x575571;const _0x14b2cd=_0x438c17[_0x1bb520(0x1cd)](_0x1bb520(0x1c3));if(_0x14b2cd)_0x278800['dbUrl']=_0x14b2cd[_0x1bb520(0x1d2)]();const _0xc93386=_0x438c17[_0x1bb520(0x1cd)](_0x1bb520(0x1d0));if(_0xc93386)_0x278800[_0x1bb520(0x1d0)]=_0xc93386;if(_0x20e38f)_0x278800[_0x1bb520(0x1ca)]=_0x20e38f;const _0x3635df=_0x438c17[_0x1bb520(0x1cd)](_0x1bb520(0x1c2));if(_0x3635df)_0x278800['dbParam']=_0x3635df;const _0x160c19=_0x438c17[_0x1bb520(0x1cd)](_0x1bb520(0x1b4));if(_0x160c19)_0x278800[_0x1bb520(0x1ba)]=_0x160c19;return _0x278800;}export const dbUpdate={'service':'db','command':'update','description':a96_0x3cc58d(0x1b9),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x3cc58d(0x1c6),'type':a96_0x3cc58d(0x1c5),'description':a96_0x3cc58d(0x1c7)},{'name':a96_0x3cc58d(0x1c3),'type':a96_0x3cc58d(0x1c5),'description':a96_0x3cc58d(0x1ce)},{'name':a96_0x3cc58d(0x1d0),'type':'string','description':'New\x20username'},{'name':a96_0x3cc58d(0x1ca),'type':'string','description':a96_0x3cc58d(0x1b7)},{'name':a96_0x3cc58d(0x1c2),'type':a96_0x3cc58d(0x1c5),'description':a96_0x3cc58d(0x1c0)},{'name':'dbdesc','type':a96_0x3cc58d(0x1c5),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x223ce1){const _0x216cdd=a96_0x3cc58d,_0x4ebe52=_0x223ce1[_0x216cdd(0x1cd)](_0x216cdd(0x1c3));if(_0x4ebe52&&!validateDbUrl(_0x4ebe52['trim']()))throw CliErrors['validation'](_0x216cdd(0x1cf)+_0x4ebe52+'\x22');},async 'dryRun'(_0x3f9914){const _0x41f3be=a96_0x3cc58d,_0x2ec65d=_0x3f9914[_0x41f3be(0x1cc)]('id'),_0x5e4ecc=await getDbLinkInfo(_0x2ec65d),_0xed3172=mergeDbLinkUpdate(_0x5e4ecc,_0x3f9914),_0x3b471a=sanitizeDbLinkForOutput(_0xed3172);return{'method':_0x41f3be(0x1d3),'url':_0x41f3be(0x1d5),'body':_0x3b471a,'description':_0x41f3be(0x1c1),'connectionPreflight':{'enabled':!_0x3f9914[_0x41f3be(0x1b8)](_0x41f3be(0x1c4)),'executed':![]}};},async 'execute'(_0x173517){const _0x3c75fe=a96_0x3cc58d,_0x65f924=_0x173517[_0x3c75fe(0x1cc)]('id'),_0x185a4a=await getDbLinkInfo(_0x65f924),_0x3e47a1=mergeDbLinkUpdate(_0x185a4a,_0x173517);!_0x173517[_0x3c75fe(0x1b8)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x3e47a1);const {id:_0x13df3e,entity:_0x7f888f}=normalizeEntityWithIdResponse(await updateDbLink(_0x3e47a1));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x7f888f),'message':'Updated\x20db\x20link\x20'+(_0x13df3e??_0x65f924)};}};
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 +1 @@
1
- (function(_0x4382aa,_0x24b215){const _0x22151a=a97_0x18ec,_0x35e1dc=_0x4382aa();while(!![]){try{const _0x550cb4=-parseInt(_0x22151a(0x8c))/0x1+parseInt(_0x22151a(0x98))/0x2*(-parseInt(_0x22151a(0xa8))/0x3)+parseInt(_0x22151a(0xa0))/0x4*(parseInt(_0x22151a(0x9b))/0x5)+parseInt(_0x22151a(0x96))/0x6*(parseInt(_0x22151a(0xa7))/0x7)+parseInt(_0x22151a(0x89))/0x8+-parseInt(_0x22151a(0x87))/0x9*(-parseInt(_0x22151a(0x8a))/0xa)+-parseInt(_0x22151a(0xae))/0xb*(parseInt(_0x22151a(0x88))/0xc);if(_0x550cb4===_0x24b215)break;else _0x35e1dc['push'](_0x35e1dc['shift']());}catch(_0x1512f3){_0x35e1dc['push'](_0x35e1dc['shift']());}}}(a97_0x4303,0x349ef));import{CLI_BIN_NAME}from'../../constant/cli.js';function a97_0x4303(){const _0x7f6bc1=['filter','failed','deployment','308VZzgOY','--appcode','message','4014GIJUwM','109344HsXLtC','2593584egTIko','8210noiPAM','some','138728RYqILF','would_sync','\x20codes;\x20run\x20deployment\x20sync\x20manually\x20in\x20batches.','--confirm','--type','Automatic\x20deployment\x20sync\x20supports\x20at\x20most\x20','sync','skipped_primary_failed','map','outcome_unknown','6xBFKio','FAILED','34778DLhKEF','action','trim','609115BXeJyZ','status','not_needed','length','\x27\x5c\x27\x27','4RtEeky','replace','appCode','bizCode','succeeded','--codes','test','162883qjedKt','39qPPlRf','partial_failure','join'];a97_0x4303=function(){return _0x7f6bc1;};return a97_0x4303();}import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';const MAX_SYNC_CODES=0x64;export function buildAutomaticDeploymentSyncPreview(_0x1c38db,_0x1fe581){const _0x2eb3d5=a97_0x18ec,_0x55aa26=normalizeCodes(_0x1fe581);if(_0x55aa26[_0x2eb3d5(0x9e)]===0x0)return{'status':_0x2eb3d5(0x9d),'bizType':_0x1c38db,'bizCodes':_0x55aa26};return{'status':_0x2eb3d5(0x8d),'bizType':_0x1c38db,'bizCodes':_0x55aa26};}export async function runAutomaticDeploymentSync(_0x402dd2,_0x24262e,_0x3c898,_0x1f9676){const _0x2651c6=a97_0x18ec,_0x477c3b=normalizeCodes(_0x3c898);if(!_0x1f9676)return{'attempted':![],'status':_0x2651c6(0x93),'bizType':_0x24262e,'bizCodes':_0x477c3b};if(_0x477c3b[_0x2651c6(0x9e)]===0x0)return{'attempted':![],'status':_0x2651c6(0x9d),'bizType':_0x24262e,'bizCodes':_0x477c3b};const _0x5dafda={'bizType':_0x24262e,'bizCodes':_0x477c3b};if(_0x477c3b['length']>MAX_SYNC_CODES)return{..._0x5dafda,'attempted':![],'status':_0x2651c6(0xac),'error':_0x2651c6(0x91)+MAX_SYNC_CODES+_0x2651c6(0x8e)};try{const {items:_0x1124a1}=await syncDeploymentMetadata({'appCode':_0x402dd2[_0x2651c6(0xa2)],'bizType':_0x24262e,'bizCodes':_0x477c3b}),_0x247483=_0x1124a1[_0x2651c6(0x8b)](_0x42fa5d=>_0x42fa5d[_0x2651c6(0x99)]==='FAILED'),_0x55f334=new Set(_0x1124a1[_0x2651c6(0xab)](_0x201471=>_0x201471['action']===_0x2651c6(0x97))[_0x2651c6(0x94)](_0xf2d11a=>_0xf2d11a[_0x2651c6(0xa3)])),_0x170d66=_0x477c3b[_0x2651c6(0xab)](_0xdb11fb=>_0x55f334['has'](_0xdb11fb));return{..._0x5dafda,'attempted':!![],'status':_0x247483?_0x2651c6(0xa9):_0x2651c6(0xa4),'items':_0x1124a1,..._0x247483&&_0x170d66[_0x2651c6(0x9e)]>0x0?{'recoveryCommand':buildRecoveryCommand(_0x402dd2[_0x2651c6(0xa2)],_0x24262e,_0x170d66)}:{}};}catch(_0x1e0026){return{..._0x5dafda,'attempted':!![],'status':isPlatformTransportFailure(_0x1e0026)?_0x2651c6(0x95):_0x2651c6(0xac),'recoveryCommand':buildRecoveryCommand(_0x402dd2[_0x2651c6(0xa2)],_0x24262e,_0x477c3b),'error':_0x1e0026 instanceof Error?_0x1e0026[_0x2651c6(0x86)]:String(_0x1e0026)};}}function a97_0x18ec(_0x19acb8,_0x1c09a2){_0x19acb8=_0x19acb8-0x85;const _0x4303c6=a97_0x4303();let _0x18ecad=_0x4303c6[_0x19acb8];return _0x18ecad;}function normalizeCodes(_0x5e7508){const _0x25df0d=a97_0x18ec;return[...new Set(_0x5e7508['map'](_0x7960d5=>_0x7960d5[_0x25df0d(0x9a)]())[_0x25df0d(0xab)](Boolean))];}export function automaticDeploymentSyncSucceeded(_0x43bba1){const _0x33ab0a=a97_0x18ec;return _0x43bba1['status']===_0x33ab0a(0x9d)||_0x43bba1['status']===_0x33ab0a(0x93)||_0x43bba1[_0x33ab0a(0x9c)]===_0x33ab0a(0xa4);}function buildRecoveryCommand(_0x34d54d,_0xd9efc0,_0x270734){const _0x48cdc1=a97_0x18ec;return[CLI_BIN_NAME,_0x48cdc1(0xad),_0x48cdc1(0x92),_0x48cdc1(0x85),shellArg(_0x34d54d),_0x48cdc1(0x90),shellArg(_0xd9efc0),_0x48cdc1(0xa5),shellArg(_0x270734[_0x48cdc1(0xaa)](',')),_0x48cdc1(0x8f)]['join']('\x20');}function shellArg(_0x2fcd50){const _0x228254=a97_0x18ec;return/^[A-Za-z0-9._:/,-]+$/[_0x228254(0xa6)](_0x2fcd50)?_0x2fcd50:'\x27'+_0x2fcd50[_0x228254(0xa1)](/'/g,_0x228254(0x9f))+'\x27';}
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 +1 @@
1
- (function(_0x1dbf0c,_0x3ff510){const _0x6339be=a98_0x496f,_0x13e060=_0x1dbf0c();while(!![]){try{const _0x303968=parseInt(_0x6339be(0x110))/0x1*(-parseInt(_0x6339be(0x113))/0x2)+-parseInt(_0x6339be(0x117))/0x3+-parseInt(_0x6339be(0x115))/0x4*(-parseInt(_0x6339be(0x10f))/0x5)+parseInt(_0x6339be(0x114))/0x6*(parseInt(_0x6339be(0x116))/0x7)+parseInt(_0x6339be(0x111))/0x8+parseInt(_0x6339be(0x112))/0x9+-parseInt(_0x6339be(0x10e))/0xa;if(_0x303968===_0x3ff510)break;else _0x13e060['push'](_0x13e060['shift']());}catch(_0x483d5c){_0x13e060['push'](_0x13e060['shift']());}}}(a98_0x57de,0xdd208));function a98_0x496f(_0x11b76d,_0x712ce){_0x11b76d=_0x11b76d-0x10e;const _0x57de09=a98_0x57de();let _0x496f26=_0x57de09[_0x11b76d];return _0x496f26;}import{deploymentSync}from'../../commands/deployment/sync.js';import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a98_0x57de(){const _0x553d8b=['2924562kNuPuU','4ZsXeBm','21relIyp','3878433VzGiro','15038890dabXsI','8330390iSMqeX','99137pEHhkM','6279216SvheZR','14162769IpWbdW','36wvKaar'];a98_0x57de=function(){return _0x553d8b;};return a98_0x57de();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSync,deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_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 +1 @@
1
- const a99_0x2e180d=a99_0xad5e;(function(_0x4d2bb8,_0x58273d){const _0x334fe7=a99_0xad5e,_0x4564b7=_0x4d2bb8();while(!![]){try{const _0x500949=-parseInt(_0x334fe7(0xac))/0x1+parseInt(_0x334fe7(0xad))/0x2*(parseInt(_0x334fe7(0xca))/0x3)+parseInt(_0x334fe7(0xcb))/0x4*(parseInt(_0x334fe7(0xcc))/0x5)+parseInt(_0x334fe7(0xc6))/0x6+-parseInt(_0x334fe7(0xb0))/0x7+parseInt(_0x334fe7(0xaf))/0x8+-parseInt(_0x334fe7(0xae))/0x9;if(_0x500949===_0x58273d)break;else _0x4564b7['push'](_0x4564b7['shift']());}catch(_0x517c9c){_0x4564b7['push'](_0x4564b7['shift']());}}}(a99_0x4c29,0x32c80));function a99_0xad5e(_0x3e6e47,_0x2bbdb7){_0x3e6e47=_0x3e6e47-0xab;const _0x4c2957=a99_0x4c29();let _0xad5e67=_0x4c2957[_0x3e6e47];return _0xad5e67;}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=a99_0x2e180d(0xce),CONFIRM_FLAG={'name':a99_0x2e180d(0xb5),'type':'boolean','description':a99_0x2e180d(0xcd)};export const deploymentSyncAll={'service':a99_0x2e180d(0xb8),'command':a99_0x2e180d(0xb3),'description':a99_0x2e180d(0xcf),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a99_0x2e180d(0xb6),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1a5bcf){const _0x55dccf=a99_0x2e180d;return asDryRunResult(buildPreview(_0x1a5bcf[_0x55dccf(0xc4)]),{'method':_0x55dccf(0xab),'url':SUBMIT_PATH,'description':_0x55dccf(0xb7)});},async 'execute'(_0x110005){const _0x200792=a99_0x2e180d;if(!_0x110005['bool'](_0x200792(0xb5)))throw CliErrors[_0x200792(0xbb)](_0x200792(0xc7),_0x200792(0xbe));try{const _0x2089b=await submitDeploymentMetadataSyncAll({'appCode':_0x110005[_0x200792(0xc4)]});if(_0x2089b[_0x200792(0xc3)]==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x110005[_0x200792(0xc4)],'submitted':![],'outcome':_0x200792(0xc2)},'message':'No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.'};return{'ok':!![],'data':{'operation':_0x200792(0xb9),'appCode':_0x110005['appCode'],'submitted':!![],'outcome':'submitted','jobId':_0x2089b['job'][_0x200792(0xc0)],'status':_0x2089b[_0x200792(0xbd)][_0x200792(0xbf)]},'message':_0x200792(0xb4)+_0x2089b['job']['jobId']+'.'};}catch(_0x2180d9){if(!isPlatformTransportFailure(_0x2180d9))throw _0x2180d9;const _0x21f50d=new CliError(_0x200792(0xc5),0x2,_0x200792(0xbc),_0x200792(0xc9));Object[_0x200792(0xc1)](_0x21f50d,_0x200792(0xba),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x110005[_0x200792(0xc4)],'submitted':null,'outcome':_0x200792(0xc8)}});throw _0x21f50d;}}};function a99_0x4c29(){const _0x1a2bf6=['not_needed','outcome','appCode','deployment_sync_submit_outcome_unknown','1755006lNIQIR','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','unknown','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','158139pmlzZV','260bpsPRj','31195kgqVQh','Confirm\x20application-scoped\x20deployment\x20synchronization','/smartapi/data-sync/submit','Synchronize\x20all\x20server-supported\x20application\x20metadata','POST','210011UayvQH','6EbFpME','4647006fhTUQX','984520sOgsqv','314265SNLrXL','not_submitted','all_server_supported_metadata','sync-all','Submitted\x20deployment\x20synchronization\x20job\x20','confirm','Submit\x20application-scoped\x20metadata\x20synchronization.','Would\x20submit\x20application-scoped\x20deployment\x20synchronization.','deployment','application_deployment_sync','data','validation','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','job','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','status','jobId','defineProperty'];a99_0x4c29=function(){return _0x1a2bf6;};return a99_0x4c29();}function buildPreview(_0x343329){const _0x1b2aa5=a99_0x2e180d;return{'operation':_0x1b2aa5(0xb9),'selector':{'appCode':_0x343329,'scope':_0x1b2aa5(0xb2)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x1b2aa5(0xb1)},'warnings':[]};}
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':[]};}