@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10

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 (376) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.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/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +4 -4
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a108_0x8fbe97=a108_0x1578;(function(_0x49f303,_0x1c70cf){const _0x3a5167=a108_0x1578,_0x1e3fbb=_0x49f303();while(!![]){try{const _0x5ee31d=parseInt(_0x3a5167(0x17a))/0x1+parseInt(_0x3a5167(0x154))/0x2*(parseInt(_0x3a5167(0x15f))/0x3)+parseInt(_0x3a5167(0x15b))/0x4*(parseInt(_0x3a5167(0x161))/0x5)+parseInt(_0x3a5167(0x16b))/0x6+-parseInt(_0x3a5167(0x17c))/0x7+-parseInt(_0x3a5167(0x153))/0x8*(parseInt(_0x3a5167(0x168))/0x9)+parseInt(_0x3a5167(0x165))/0xa*(-parseInt(_0x3a5167(0x16d))/0xb);if(_0x5ee31d===_0x1c70cf)break;else _0x1e3fbb['push'](_0x1e3fbb['shift']());}catch(_0x1d70fe){_0x1e3fbb['push'](_0x1e3fbb['shift']());}}}(a108_0x5b82,0x7c7f7));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';function a108_0x5b82(){const _0x8c2b05=['4AxeqnW','expected-dataset-count','bool','DB_TABLE','539871GWrvaj','validation','3475265VpEsPi','datasetDependency','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','Deleted\x20db\x20link\x20','1130TBOCxi','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','isInteger','2583NjytKe','\x20active\x20DB_TABLE\x20Dataset(s).','\x20active\x20Dataset(s),\x20but\x20found\x20','5512818iMmrKb','appCode','23573QhOXOR','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','\x20still\x20has\x20','all','/smartapi/dblink/delete','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','num','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','high-risk-write','Deletion\x20is\x20blocked\x20by\x20','Database\x20connection\x20','confirm','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','235702tzoccC','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','7047628elGrnr','27608AKYClu','10XImxcE','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','boolean','delete','flag','POST','activeDatasetCount'];a108_0x5b82=function(){return _0x8c2b05;};return a108_0x5b82();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a108_0x8fbe97(0x178),'type':a108_0x8fbe97(0x156),'description':a108_0x8fbe97(0x16e)},EXPECTED_DATASET_COUNT_FLAG={'name':a108_0x8fbe97(0x15c),'type':'number','description':a108_0x8fbe97(0x179)};function a108_0x1578(_0xcdc24f,_0x1a63fc){_0xcdc24f=_0xcdc24f-0x153;const _0x5b82d0=a108_0x5b82();let _0x1578d5=_0x5b82d0[_0xcdc24f];return _0x1578d5;}export const dbDelete={'service':'db','command':a108_0x8fbe97(0x157),'description':a108_0x8fbe97(0x172),'risk':a108_0x8fbe97(0x175),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x8c584f){const _0x2625e7=a108_0x8fbe97,_0x43717d=await loadDeleteImpact(_0x8c584f);return assertExpectedDatasetCount(_0x8c584f,_0x43717d[_0x2625e7(0x162)][_0x2625e7(0x15a)]),{'method':_0x2625e7(0x159),'url':_0x2625e7(0x171),'body':{'id':_0x43717d['id']},'description':_0x43717d[_0x2625e7(0x162)][_0x2625e7(0x15a)]>0x0?_0x2625e7(0x176)+_0x43717d[_0x2625e7(0x162)]['activeDatasetCount']+_0x2625e7(0x169):_0x2625e7(0x155),..._0x43717d};},async 'execute'(_0x2089e4){const _0x157adb=a108_0x8fbe97;if(!_0x2089e4[_0x157adb(0x15d)]('confirm'))throw CliErrors[_0x157adb(0x160)](_0x157adb(0x17b),_0x157adb(0x163));const _0x49d129=_0x2089e4['num']('id'),_0x569276=await loadDeleteImpact(_0x2089e4),_0x55938f=_0x569276[_0x157adb(0x162)][_0x157adb(0x15a)];assertExpectedDatasetCount(_0x2089e4,_0x55938f);if(_0x55938f>0x0)throw CliErrors[_0x157adb(0x160)](_0x157adb(0x177)+_0x49d129+_0x157adb(0x16f)+_0x55938f+_0x157adb(0x174),'Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.');return await deleteDbLink(_0x49d129),{'ok':!![],'data':{'id':_0x49d129,'deleted':!![],'activeDatasetCount':_0x55938f},'message':_0x157adb(0x164)+_0x49d129};}};async function loadDeleteImpact(_0x23ff26){const _0x4d9e6e=a108_0x8fbe97,_0x2ee7e6=_0x23ff26['num']('id'),[_0x40eb56,_0x258459]=await Promise[_0x4d9e6e(0x170)]([getDbLinkInfo(_0x2ee7e6),listDatasets(_0x23ff26[_0x4d9e6e(0x16c)],{'source':_0x4d9e6e(0x15e)})]),_0x148a2a=buildDbDatasetDependency(_0x40eb56,_0x258459);return{'id':_0x2ee7e6,'connection':sanitizeDbLinkForOutput(_0x40eb56),'datasetDependency':_0x148a2a[_0x4d9e6e(0x162)],'activeDatasetCount':_0x148a2a[_0x4d9e6e(0x162)][_0x4d9e6e(0x15a)],'datasets':_0x148a2a['datasets']};}function assertExpectedDatasetCount(_0x31ea58,_0x151ec0){const _0x287225=a108_0x8fbe97,_0x50783b=_0x31ea58[_0x287225(0x158)](_0x287225(0x15c));if(_0x50783b===undefined||_0x50783b==='')return;const _0x2008ea=_0x31ea58[_0x287225(0x173)](_0x287225(0x15c));if(!Number[_0x287225(0x167)](_0x2008ea)||_0x2008ea<0x0)throw CliErrors[_0x287225(0x160)]('--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.');if(_0x2008ea!==_0x151ec0)throw CliErrors[_0x287225(0x160)]('Expected\x20'+_0x2008ea+_0x287225(0x16a)+_0x151ec0+'.',_0x287225(0x166));}
1
+ const a108_0x3b6a11=a108_0x334a;(function(_0x181a1f,_0x164928){const _0x4d39b1=a108_0x334a,_0xef8752=_0x181a1f();while(!![]){try{const _0x1c6f40=parseInt(_0x4d39b1(0x189))/0x1*(-parseInt(_0x4d39b1(0x185))/0x2)+-parseInt(_0x4d39b1(0x193))/0x3*(parseInt(_0x4d39b1(0x18d))/0x4)+-parseInt(_0x4d39b1(0x18a))/0x5+parseInt(_0x4d39b1(0x17e))/0x6*(parseInt(_0x4d39b1(0x19d))/0x7)+parseInt(_0x4d39b1(0x188))/0x8*(-parseInt(_0x4d39b1(0x182))/0x9)+-parseInt(_0x4d39b1(0x187))/0xa+parseInt(_0x4d39b1(0x17d))/0xb;if(_0x1c6f40===_0x164928)break;else _0xef8752['push'](_0xef8752['shift']());}catch(_0x127668){_0xef8752['push'](_0xef8752['shift']());}}}(a108_0x3b08,0x3d767));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';function a108_0x3b08(){const _0x5c42f7=['Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','all','129JfSqrZ','/smartapi/dblink/delete','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','DB_TABLE','validation','num','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','\x20active\x20DB_TABLE\x20Dataset(s).','Deleted\x20db\x20link\x20','delete','76195OaWVkD','\x20still\x20has\x20','POST','datasetDependency','Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','activeDatasetCount','20918227KGAnFu','48qiUcZS','confirm','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','expected-dataset-count','13689FRggOE','flag','Expected\x20','4uGzDGq','datasets','4202110ZtHQWx','2448GzNLCy','118023bRjxoy','2489350dFIXrM','isInteger','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','10924zfUnBN','\x20active\x20Dataset(s),\x20but\x20found\x20','Deletion\x20is\x20blocked\x20by\x20','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.'];a108_0x3b08=function(){return _0x5c42f7;};return a108_0x3b08();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a108_0x3b6a11(0x195)},EXPECTED_DATASET_COUNT_FLAG={'name':a108_0x3b6a11(0x181),'type':'number','description':a108_0x3b6a11(0x1a2)};function a108_0x334a(_0x1264cd,_0x615746){_0x1264cd=_0x1264cd-0x17b;const _0x3b08d6=a108_0x3b08();let _0x334a10=_0x3b08d6[_0x1264cd];return _0x334a10;}export const dbDelete={'service':'db','command':a108_0x3b6a11(0x19c),'description':'Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','risk':'high-risk-write','flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x28987c){const _0x2dc0ad=a108_0x3b6a11,_0x2c6620=await loadDeleteImpact(_0x28987c);return assertExpectedDatasetCount(_0x28987c,_0x2c6620[_0x2dc0ad(0x1a0)][_0x2dc0ad(0x17c)]),{'method':_0x2dc0ad(0x19f),'url':_0x2dc0ad(0x194),'body':{'id':_0x2c6620['id']},'description':_0x2c6620[_0x2dc0ad(0x1a0)]['activeDatasetCount']>0x0?_0x2dc0ad(0x18f)+_0x2c6620[_0x2dc0ad(0x1a0)][_0x2dc0ad(0x17c)]+_0x2dc0ad(0x19a):_0x2dc0ad(0x1a1),..._0x2c6620};},async 'execute'(_0x51f7e6){const _0x51def3=a108_0x3b6a11;if(!_0x51f7e6['bool'](_0x51def3(0x17f)))throw CliErrors['validation'](_0x51def3(0x199),_0x51def3(0x191));const _0x429c25=_0x51f7e6[_0x51def3(0x198)]('id'),_0x1c4324=await loadDeleteImpact(_0x51f7e6),_0x1c2d6f=_0x1c4324[_0x51def3(0x1a0)]['activeDatasetCount'];assertExpectedDatasetCount(_0x51f7e6,_0x1c2d6f);if(_0x1c2d6f>0x0)throw CliErrors[_0x51def3(0x197)]('Database\x20connection\x20'+_0x429c25+_0x51def3(0x19e)+_0x1c2d6f+_0x51def3(0x18c),_0x51def3(0x180));return await deleteDbLink(_0x429c25),{'ok':!![],'data':{'id':_0x429c25,'deleted':!![],'activeDatasetCount':_0x1c2d6f},'message':_0x51def3(0x19b)+_0x429c25};}};async function loadDeleteImpact(_0x35341e){const _0xf3904a=a108_0x3b6a11,_0x2d58ed=_0x35341e[_0xf3904a(0x198)]('id'),[_0x33ba30,_0x572b77]=await Promise[_0xf3904a(0x192)]([getDbLinkInfo(_0x2d58ed),listDatasets(_0x35341e['appCode'],{'source':_0xf3904a(0x196)})]),_0x3cc90f=buildDbDatasetDependency(_0x33ba30,_0x572b77);return{'id':_0x2d58ed,'connection':sanitizeDbLinkForOutput(_0x33ba30),'datasetDependency':_0x3cc90f[_0xf3904a(0x1a0)],'activeDatasetCount':_0x3cc90f[_0xf3904a(0x1a0)][_0xf3904a(0x17c)],'datasets':_0x3cc90f[_0xf3904a(0x186)]};}function assertExpectedDatasetCount(_0x1929c8,_0x5666c5){const _0x15918d=a108_0x3b6a11,_0xd9c95c=_0x1929c8[_0x15918d(0x183)]('expected-dataset-count');if(_0xd9c95c===undefined||_0xd9c95c==='')return;const _0x1902b1=_0x1929c8[_0x15918d(0x198)](_0x15918d(0x181));if(!Number[_0x15918d(0x18b)](_0x1902b1)||_0x1902b1<0x0)throw CliErrors[_0x15918d(0x197)](_0x15918d(0x17b));if(_0x1902b1!==_0x5666c5)throw CliErrors[_0x15918d(0x197)](_0x15918d(0x184)+_0x1902b1+_0x15918d(0x18e)+_0x5666c5+'.',_0x15918d(0x190));}
@@ -1 +1 @@
1
- function a109_0x5971(_0x1a3a85,_0x4134db){_0x1a3a85=_0x1a3a85-0xa2;const _0x4e3d93=a109_0x4e3d();let _0x5971f8=_0x4e3d93[_0x1a3a85];return _0x5971f8;}const a109_0x268465=a109_0x5971;(function(_0x16ad6b,_0x24c452){const _0x554b01=a109_0x5971,_0xdd30ff=_0x16ad6b();while(!![]){try{const _0x2cf016=-parseInt(_0x554b01(0xa6))/0x1+parseInt(_0x554b01(0xa7))/0x2+-parseInt(_0x554b01(0xaa))/0x3*(-parseInt(_0x554b01(0xb0))/0x4)+-parseInt(_0x554b01(0xb2))/0x5+parseInt(_0x554b01(0xb3))/0x6*(parseInt(_0x554b01(0xaf))/0x7)+parseInt(_0x554b01(0xa4))/0x8*(-parseInt(_0x554b01(0xad))/0x9)+-parseInt(_0x554b01(0xa3))/0xa*(-parseInt(_0x554b01(0xab))/0xb);if(_0x2cf016===_0x24c452)break;else _0xdd30ff['push'](_0xdd30ff['shift']());}catch(_0x2eff14){_0xdd30ff['push'](_0xdd30ff['shift']());}}}(a109_0x4e3d,0xb3ad9));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';export const dbDetail={'service':'db','command':a109_0x268465(0xa8),'description':a109_0x268465(0xb1),'risk':a109_0x268465(0xa5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x445547){const _0x166c7c=a109_0x268465,_0x20b77e=_0x445547[_0x166c7c(0xa2)]('id'),_0x59703b=await getDbLinkInfo(_0x20b77e),_0x2f2560=await listDatasets(_0x59703b[_0x166c7c(0xac)]||_0x445547['appCode'],{'source':_0x166c7c(0xa9)}),_0x1e859f=buildDbDatasetDependency(_0x59703b,_0x2f2560);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x59703b),'datasetDependency':_0x1e859f['datasetDependency']},'message':_0x166c7c(0xae)+_0x20b77e+':\x20'+_0x59703b['dbName']};}};function a109_0x4e3d(){const _0x29f77f=['read','652244XjJNQN','752574ZgLXnK','detail','DB_TABLE','351EWvQBh','22167794cVrYKi','appCode','18YyrDGW','db\x20link\x20','11130gDphRO','31884MKdpLQ','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','5389155hhMqwO','2130KzlIjj','num','10CZsGdJ','5690248cvxqXB'];a109_0x4e3d=function(){return _0x29f77f;};return a109_0x4e3d();}
1
+ const a109_0x26c5a5=a109_0x1255;(function(_0x1cf095,_0x4474d5){const _0x4d6d59=a109_0x1255,_0xea3961=_0x1cf095();while(!![]){try{const _0x4903b0=-parseInt(_0x4d6d59(0xca))/0x1*(parseInt(_0x4d6d59(0xc9))/0x2)+-parseInt(_0x4d6d59(0xd0))/0x3+-parseInt(_0x4d6d59(0xc7))/0x4+-parseInt(_0x4d6d59(0xcc))/0x5+parseInt(_0x4d6d59(0xc8))/0x6*(-parseInt(_0x4d6d59(0xcd))/0x7)+-parseInt(_0x4d6d59(0xcb))/0x8+parseInt(_0x4d6d59(0xcf))/0x9;if(_0x4903b0===_0x4474d5)break;else _0xea3961['push'](_0xea3961['shift']());}catch(_0x183dc4){_0xea3961['push'](_0xea3961['shift']());}}}(a109_0x25b3,0x3a74b));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';export const dbDetail={'service':'db','command':'detail','description':a109_0x26c5a5(0xd1),'risk':a109_0x26c5a5(0xc6),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5741a1){const _0x6466b9=a109_0x26c5a5,_0x14b0c2=_0x5741a1[_0x6466b9(0xd2)]('id'),_0x16793b=await getDbLinkInfo(_0x14b0c2),_0x2b62ae=await listDatasets(_0x16793b[_0x6466b9(0xd3)]||_0x5741a1[_0x6466b9(0xd3)],{'source':_0x6466b9(0xce)}),_0xb06b1b=buildDbDatasetDependency(_0x16793b,_0x2b62ae);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x16793b),'datasetDependency':_0xb06b1b[_0x6466b9(0xc5)]},'message':_0x6466b9(0xc4)+_0x14b0c2+':\x20'+_0x16793b[_0x6466b9(0xc3)]};}};function a109_0x1255(_0x3e6000,_0x58b62c){_0x3e6000=_0x3e6000-0xc3;const _0x25b330=a109_0x25b3();let _0x1255c7=_0x25b330[_0x3e6000];return _0x1255c7;}function a109_0x25b3(){const _0x504ebd=['684294kZJqCg','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','num','appCode','dbName','db\x20link\x20','datasetDependency','read','1855828zhVtiQ','6mrddTU','436376ovRAwf','1WuCLnL','1563464YbnASz','944015jAeCxd','3201233gJBiVL','DB_TABLE','17921097Ivsmes'];a109_0x25b3=function(){return _0x504ebd;};return a109_0x25b3();}
@@ -1 +1 @@
1
- const a110_0x3500b7=a110_0x5827;(function(_0x40c44e,_0x2752c8){const _0x5228f6=a110_0x5827,_0x5df4a1=_0x40c44e();while(!![]){try{const _0x3c5e6b=parseInt(_0x5228f6(0x11d))/0x1+parseInt(_0x5228f6(0x119))/0x2*(-parseInt(_0x5228f6(0x128))/0x3)+-parseInt(_0x5228f6(0x117))/0x4+parseInt(_0x5228f6(0x127))/0x5*(-parseInt(_0x5228f6(0x11b))/0x6)+-parseInt(_0x5228f6(0x12c))/0x7+-parseInt(_0x5228f6(0x123))/0x8*(-parseInt(_0x5228f6(0x118))/0x9)+-parseInt(_0x5228f6(0x122))/0xa*(-parseInt(_0x5228f6(0x11f))/0xb);if(_0x3c5e6b===_0x2752c8)break;else _0x5df4a1['push'](_0x5df4a1['shift']());}catch(_0x1ae021){_0x5df4a1['push'](_0x5df4a1['shift']());}}}(a110_0x20cc,0x84b71));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a110_0x5827(_0x430b66,_0x3c159a){_0x430b66=_0x430b66-0x117;const _0x20cc9f=a110_0x20cc();let _0x582711=_0x20cc9f[_0x430b66];return _0x582711;}import{CliErrors}from'../../errors.js';function a110_0x20cc(){const _0x2c5ae2=['Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','1765XMucdn','131727pFzQWP','trim','num','\x20db\x20diff-refresh-status\x20--id\x20','1604701aRIeYQ','261232uoWQfg','26487qfKgJj','26lrqgVV','status','894ykNrFR','\x20--plan\x20','283157nQxqyu','write','288178pzzCrF','diff-refresh-start','\x20--format\x20compress','60AWAuEn','2776KFpDXc','traceId','appCode'];a110_0x20cc=function(){return _0x2c5ae2;};return a110_0x20cc();}export const dbDiffRefreshStart={'service':'db','command':a110_0x3500b7(0x120),'description':'Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','risk':a110_0x3500b7(0x11e),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x5e286f){const _0x3988c2=a110_0x3500b7,_0x168db3=_0x5e286f[_0x3988c2(0x12a)]('id'),_0x4368b7=await startDbTableDiffRefresh(_0x5e286f[_0x3988c2(0x125)],_0x168db3),_0x5a5570=_0x4368b7[_0x3988c2(0x124)]?.[_0x3988c2(0x129)]();if(!_0x5a5570)throw CliErrors['validation']('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x168db3,'traceId':_0x5a5570,'status':_0x4368b7[_0x3988c2(0x11a)]??null,'query':{'command':CLI_BIN_NAME+_0x3988c2(0x12b)+_0x168db3+_0x3988c2(0x11c)+_0x5a5570+_0x3988c2(0x121)}},'message':_0x3988c2(0x126)+_0x168db3};}};
1
+ function a110_0x21b9(_0x47d16c,_0x2761fc){_0x47d16c=_0x47d16c-0x19d;const _0x33fafb=a110_0x33fa();let _0x21b9cf=_0x33fafb[_0x47d16c];return _0x21b9cf;}const a110_0x341041=a110_0x21b9;(function(_0x4c36e2,_0x34bd32){const _0x24a05e=a110_0x21b9,_0x2126d0=_0x4c36e2();while(!![]){try{const _0x1882df=-parseInt(_0x24a05e(0x19e))/0x1*(parseInt(_0x24a05e(0x1aa))/0x2)+-parseInt(_0x24a05e(0x19f))/0x3+-parseInt(_0x24a05e(0x1a9))/0x4+-parseInt(_0x24a05e(0x1b0))/0x5*(parseInt(_0x24a05e(0x19d))/0x6)+parseInt(_0x24a05e(0x1a7))/0x7+-parseInt(_0x24a05e(0x1af))/0x8+parseInt(_0x24a05e(0x1a4))/0x9*(parseInt(_0x24a05e(0x1a2))/0xa);if(_0x1882df===_0x34bd32)break;else _0x2126d0['push'](_0x2126d0['shift']());}catch(_0x5bac51){_0x2126d0['push'](_0x2126d0['shift']());}}}(a110_0x33fa,0xbbbe7));import{startDbTableDiffRefresh}from'../../core/api-client.js';function a110_0x33fa(){const _0x37bdc9=['validation','36860tYNtyu','\x20db\x20diff-refresh-status\x20--id\x20','5706dXRtwM','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','\x20--format\x20compress','8452696SefvaH','status','3127116SJldgq','1588542tPVKuW','\x20--plan\x20','write','traceId','diff-refresh-start','587424PaJAgd','760bUiebc','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','num','1314JVLujX','1otsyFv','3278061sjTYYf','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result'];a110_0x33fa=function(){return _0x37bdc9;};return a110_0x33fa();}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':a110_0x341041(0x1ae),'description':a110_0x341041(0x1a0),'risk':a110_0x341041(0x1ac),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x41c5ba){const _0x47a342=a110_0x341041,_0x3b9c04=_0x41c5ba[_0x47a342(0x1b2)]('id'),_0x327e74=await startDbTableDiffRefresh(_0x41c5ba['appCode'],_0x3b9c04),_0x59f055=_0x327e74[_0x47a342(0x1ad)]?.['trim']();if(!_0x59f055)throw CliErrors[_0x47a342(0x1a1)](_0x47a342(0x1a5));return{'ok':!![],'data':{'dbLinkId':_0x3b9c04,'traceId':_0x59f055,'status':_0x327e74[_0x47a342(0x1a8)]??null,'query':{'command':CLI_BIN_NAME+_0x47a342(0x1a3)+_0x3b9c04+_0x47a342(0x1ab)+_0x59f055+_0x47a342(0x1a6)}},'message':_0x47a342(0x1b1)+_0x3b9c04};}};
@@ -1 +1 @@
1
- const a111_0x4fcba9=a111_0x2880;(function(_0x233d33,_0xb6dcf2){const _0x3b3f29=a111_0x2880,_0x5e0a9b=_0x233d33();while(!![]){try{const _0x5df0ff=-parseInt(_0x3b3f29(0xac))/0x1*(parseInt(_0x3b3f29(0x9e))/0x2)+parseInt(_0x3b3f29(0xa4))/0x3*(parseInt(_0x3b3f29(0xb1))/0x4)+-parseInt(_0x3b3f29(0xb0))/0x5+parseInt(_0x3b3f29(0xa2))/0x6*(-parseInt(_0x3b3f29(0xb3))/0x7)+parseInt(_0x3b3f29(0xab))/0x8*(-parseInt(_0x3b3f29(0xae))/0x9)+parseInt(_0x3b3f29(0xa8))/0xa*(-parseInt(_0x3b3f29(0xb9))/0xb)+parseInt(_0x3b3f29(0xb4))/0xc*(parseInt(_0x3b3f29(0xa9))/0xd);if(_0x5df0ff===_0xb6dcf2)break;else _0x5e0a9b['push'](_0x5e0a9b['shift']());}catch(_0xe6f991){_0x5e0a9b['push'](_0x5e0a9b['shift']());}}}(a111_0x1240,0x1df48));function a111_0x1240(){const _0x28f5b6=['has','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','RETRYING','83080VxmsLO','7769099wGOuwp','RUNNING','8dRXvzm','2bTGZrt','num','577098wheYvd','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','637565DpwFHn','22872QZCddb','\x20db\x20diff-refresh-status\x20--id\x20','21VCagbr','12xAmjPf','str','Table-diff\x20refresh\x20status\x20for\x20','FAILED','\x20--format\x20compress','220iAfTgv','105408aYGOfj','read','plan','status','149244UgRhUi','\x20--plan\x20','33WLgdey'];a111_0x1240=function(){return _0x28f5b6;};return a111_0x1240();}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';function a111_0x2880(_0x263f3c,_0x244077){_0x263f3c=_0x263f3c-0x9e;const _0x124024=a111_0x1240();let _0x288087=_0x124024[_0x263f3c];return _0x288087;}const TERMINAL_STATUSES=new Set(['SUCCESS',a111_0x4fcba9(0xb7),'CANCELLED']),RUNNING_STATUSES=new Set(['PENDING',a111_0x4fcba9(0xaa),a111_0x4fcba9(0xa7)]);export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a111_0x4fcba9(0xa6),'risk':a111_0x4fcba9(0x9f),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x4fcba9(0xa0),'type':'string','required':!![],'description':a111_0x4fcba9(0xaf)}],async 'execute'(_0x18aa6e){const _0xbd54b2=a111_0x4fcba9,_0x35cb8e=_0x18aa6e[_0xbd54b2(0xad)]('id'),_0x36975b=_0x18aa6e[_0xbd54b2(0xb5)](_0xbd54b2(0xa0)),_0x2d0632=await getDbAnalysisStatus(_0x36975b),_0x38ee39=_0x2d0632[_0xbd54b2(0xa1)]??null,_0x2a0a27=TERMINAL_STATUSES[_0xbd54b2(0xa5)](_0x38ee39??''),_0x31dafe=_0x38ee39==='SUCCESS',_0xb8f252=_0x2a0a27||RUNNING_STATUSES['has'](_0x38ee39??'');return{'ok':!![],'data':{'dbLinkId':_0x35cb8e,'planId':_0x36975b,'status':_0x2d0632,'knownStatus':_0xb8f252,'isTerminal':_0x2a0a27,'isSuccessful':_0x31dafe,'query':_0xb8f252&&!_0x2a0a27?{'command':CLI_BIN_NAME+_0xbd54b2(0xb2)+_0x35cb8e+_0xbd54b2(0xa3)+_0x36975b+_0xbd54b2(0xb8)}:null},'message':_0xbd54b2(0xb6)+_0x36975b+':\x20'+(_0x38ee39??'UNKNOWN')};}};
1
+ function a111_0x53a4(_0x519e4d,_0x49a713){_0x519e4d=_0x519e4d-0x104;const _0x539a3c=a111_0x539a();let _0x53a49c=_0x539a3c[_0x519e4d];return _0x53a49c;}const a111_0x2f8caf=a111_0x53a4;(function(_0x254f57,_0x309f7b){const _0x571c3a=a111_0x53a4,_0x5b7226=_0x254f57();while(!![]){try{const _0x183b1b=parseInt(_0x571c3a(0x117))/0x1+parseInt(_0x571c3a(0x104))/0x2*(-parseInt(_0x571c3a(0x108))/0x3)+parseInt(_0x571c3a(0x120))/0x4+-parseInt(_0x571c3a(0x11a))/0x5*(parseInt(_0x571c3a(0x10a))/0x6)+-parseInt(_0x571c3a(0x10d))/0x7*(parseInt(_0x571c3a(0x10e))/0x8)+parseInt(_0x571c3a(0x11f))/0x9+parseInt(_0x571c3a(0x113))/0xa*(parseInt(_0x571c3a(0x112))/0xb);if(_0x183b1b===_0x309f7b)break;else _0x5b7226['push'](_0x5b7226['shift']());}catch(_0x31d258){_0x5b7226['push'](_0x5b7226['shift']());}}}(a111_0x539a,0x1d081));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';function a111_0x539a(){const _0xff8e72=['plan','170219jHPjdD','48hpjYYt','RETRYING','FAILED','UNKNOWN','554224mgMCVO','100yzTKva','Table-diff\x20refresh\x20status\x20for\x20','str','SUCCESS','6284SHQVyd','read','\x20--format\x20compress','55015DQfoSG','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','\x20--plan\x20','has','num','249750VKpENA','344668GGBQUE','CANCELLED','50jHvTPZ','status','PENDING','RUNNING','20661qHLKwJ','\x20db\x20diff-refresh-status\x20--id\x20','102pLoGQF','diff-refresh-status'];a111_0x539a=function(){return _0xff8e72;};return a111_0x539a();}const TERMINAL_STATUSES=new Set([a111_0x2f8caf(0x116),a111_0x2f8caf(0x110),a111_0x2f8caf(0x121)]),RUNNING_STATUSES=new Set([a111_0x2f8caf(0x106),a111_0x2f8caf(0x107),a111_0x2f8caf(0x10f)]);export const dbDiffRefreshStatus={'service':'db','command':a111_0x2f8caf(0x10b),'description':'Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','risk':a111_0x2f8caf(0x118),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x2f8caf(0x10c),'type':'string','required':!![],'description':a111_0x2f8caf(0x11b)}],async 'execute'(_0xc8950a){const _0x2f29dd=a111_0x2f8caf,_0x20c6c9=_0xc8950a[_0x2f29dd(0x11e)]('id'),_0x1e2373=_0xc8950a[_0x2f29dd(0x115)](_0x2f29dd(0x10c)),_0x26364b=await getDbAnalysisStatus(_0x1e2373),_0x77da1=_0x26364b[_0x2f29dd(0x105)]??null,_0x57dd20=TERMINAL_STATUSES[_0x2f29dd(0x11d)](_0x77da1??''),_0x1fc005=_0x77da1===_0x2f29dd(0x116),_0x10c2f9=_0x57dd20||RUNNING_STATUSES[_0x2f29dd(0x11d)](_0x77da1??'');return{'ok':!![],'data':{'dbLinkId':_0x20c6c9,'planId':_0x1e2373,'status':_0x26364b,'knownStatus':_0x10c2f9,'isTerminal':_0x57dd20,'isSuccessful':_0x1fc005,'query':_0x10c2f9&&!_0x57dd20?{'command':CLI_BIN_NAME+_0x2f29dd(0x109)+_0x20c6c9+_0x2f29dd(0x11c)+_0x1e2373+_0x2f29dd(0x119)}:null},'message':_0x2f29dd(0x114)+_0x1e2373+':\x20'+(_0x77da1??_0x2f29dd(0x111))};}};
@@ -1 +1 @@
1
- const a112_0x1605c0=a112_0x351f;(function(_0x1f5a91,_0x455849){const _0x5d2a22=a112_0x351f,_0x4eea7a=_0x1f5a91();while(!![]){try{const _0x2c152a=parseInt(_0x5d2a22(0xd5))/0x1*(parseInt(_0x5d2a22(0xca))/0x2)+-parseInt(_0x5d2a22(0xdf))/0x3*(-parseInt(_0x5d2a22(0xc7))/0x4)+-parseInt(_0x5d2a22(0xcf))/0x5*(-parseInt(_0x5d2a22(0xc3))/0x6)+parseInt(_0x5d2a22(0xe7))/0x7+-parseInt(_0x5d2a22(0xbe))/0x8*(parseInt(_0x5d2a22(0xc6))/0x9)+parseInt(_0x5d2a22(0xd1))/0xa+-parseInt(_0x5d2a22(0xd3))/0xb;if(_0x2c152a===_0x455849)break;else _0x4eea7a['push'](_0x4eea7a['shift']());}catch(_0x3ec6c1){_0x4eea7a['push'](_0x4eea7a['shift']());}}}(a112_0x2df8,0x85a55));function a112_0x2df8(){const _0x3bb8b4=['21250WziPvZ','bool','str','summary','number','36070tFZKwp','Page\x20size','9323840KBwvsT','boolean','14572701GgULvY','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','49JnKcRs','deletedColumns','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','length','modifiedColumns','read','diffType','datasetTableCount','all','table','72WASYFE','filter','\x20changed\x20table\x20row(s),\x20total\x20','\x20(db\x20link\x20','DELETED_TABLE','appCode','MODIFIED_TABLE','diff','1787828kvZGHF','NEW_TABLE','tableName','pagesize','fieldDiff','map','40uXJxuQ','addedColumns','Page\x20index\x20(1-based)','physicalTableCount','totalCount','240YkKvHp','string','tableList','1501533nbHoKC','118236oUsgzX','num','page'];a112_0x2df8=function(){return _0x3bb8b4;};return a112_0x2df8();}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 a112_0x351f(_0x1f108f,_0x31db3b){_0x1f108f=_0x1f108f-0xba;const _0x2df852=a112_0x2df8();let _0x351f3b=_0x2df852[_0x1f108f];return _0x351f3b;}export const dbDiff={'service':'db','command':a112_0x1605c0(0xe6),'description':a112_0x1605c0(0xd4),'risk':a112_0x1605c0(0xda),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x1605c0(0xde),'type':a112_0x1605c0(0xc4),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x1605c0(0xc9),'type':a112_0x1605c0(0xce),'description':a112_0x1605c0(0xc0),'default':0x1},{'name':a112_0x1605c0(0xbb),'type':a112_0x1605c0(0xce),'description':a112_0x1605c0(0xd0),'default':0x14},{'name':a112_0x1605c0(0xdd),'type':a112_0x1605c0(0xd2),'description':a112_0x1605c0(0xd7)}],async 'execute'(_0x2c3e1f){const _0x1e9dd3=a112_0x1605c0,_0x41590a=_0x2c3e1f[_0x1e9dd3(0xc8)]('id'),_0x2cb8d7=_0x2c3e1f[_0x1e9dd3(0xcb)](_0x1e9dd3(0xdd)),_0x23ca9a=_0x2cb8d7?0x1:_0x2c3e1f[_0x1e9dd3(0xc8)](_0x1e9dd3(0xc9),0x1)||0x1,_0x8919ce=_0x2cb8d7?DB_TABLE_PAGE_SIZE:_0x2c3e1f[_0x1e9dd3(0xc8)]('pagesize',0x14)||0x14,_0x3b8fc4=_0x2c3e1f[_0x1e9dd3(0xcc)](_0x1e9dd3(0xde))||undefined,_0x143b7b=_0x2cb8d7?await getAllDbTableDiff(getDbTableDiff,_0x2c3e1f[_0x1e9dd3(0xe4)],_0x41590a,_0x3b8fc4):await getDbTableDiff(_0x2c3e1f['appCode'],_0x41590a,{'pageIndex':_0x23ca9a,'pageSize':_0x8919ce,'tableName':_0x3b8fc4}),_0x733895=_0x143b7b[_0x1e9dd3(0xc5)],_0x396aed=summarizeDbTableDiff(_0x733895),_0x2854fe=_0x733895[_0x1e9dd3(0xe0)](_0x33e714=>_0x33e714['diffType']===_0x1e9dd3(0xe8)||_0x33e714[_0x1e9dd3(0xdb)]===_0x1e9dd3(0xe5))[_0x1e9dd3(0xbd)](_0x4c3b6b=>_0x4c3b6b[_0x1e9dd3(0xba)]),_0x46bd9a=_0x733895['filter'](_0x278c85=>_0x278c85[_0x1e9dd3(0xdb)]===_0x1e9dd3(0xe3))[_0x1e9dd3(0xbd)](_0x3f7535=>_0x3f7535[_0x1e9dd3(0xba)]),_0x1f1210=_0x733895[_0x1e9dd3(0xe0)](_0x39ecb4=>_0x39ecb4['diffType']===_0x1e9dd3(0xe5))[_0x1e9dd3(0xbd)](_0x24322a=>({'tableName':_0x24322a['tableName'],'addedColumns':_0x24322a['fieldDiff']?.[_0x1e9dd3(0xbf)]??[],'deletedColumns':_0x24322a[_0x1e9dd3(0xbc)]?.[_0x1e9dd3(0xd6)]??[],'modifiedColumns':_0x24322a[_0x1e9dd3(0xbc)]?.[_0x1e9dd3(0xd9)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x41590a,'page':_0x23ca9a,'pageSize':_0x8919ce,'totalCount':_0x143b7b[_0x1e9dd3(0xc2)],...typeof _0x143b7b[_0x1e9dd3(0xc1)]===_0x1e9dd3(0xce)?{'physicalTableCount':_0x143b7b['physicalTableCount']}:{},...typeof _0x143b7b[_0x1e9dd3(0xdc)]===_0x1e9dd3(0xce)?{'datasetTableCount':_0x143b7b[_0x1e9dd3(0xdc)]}:{},..._0x143b7b[_0x1e9dd3(0xcd)]?{'summary':_0x143b7b[_0x1e9dd3(0xcd)]}:{},'summaryByType':_0x396aed,'toAnalyzeTables':_0x2854fe,'deletedTables':_0x46bd9a,'modifiedFieldDiffs':_0x1f1210,'tables':_0x733895},'message':_0x733895[_0x1e9dd3(0xd8)]+_0x1e9dd3(0xe1)+_0x143b7b[_0x1e9dd3(0xc2)]+_0x1e9dd3(0xe2)+_0x41590a+')'};}};
1
+ const a112_0x2bfd88=a112_0x35c4;function a112_0x35c4(_0x84db7,_0x2c078a){_0x84db7=_0x84db7-0x11b;const _0x691014=a112_0x6910();let _0x35c4d7=_0x691014[_0x84db7];return _0x35c4d7;}(function(_0x30aa12,_0x1deab7){const _0x172a5e=a112_0x35c4,_0xa46403=_0x30aa12();while(!![]){try{const _0x13da0a=parseInt(_0x172a5e(0x13f))/0x1+parseInt(_0x172a5e(0x129))/0x2+-parseInt(_0x172a5e(0x13b))/0x3*(parseInt(_0x172a5e(0x11b))/0x4)+parseInt(_0x172a5e(0x131))/0x5+parseInt(_0x172a5e(0x12b))/0x6+parseInt(_0x172a5e(0x124))/0x7*(parseInt(_0x172a5e(0x120))/0x8)+-parseInt(_0x172a5e(0x12a))/0x9*(parseInt(_0x172a5e(0x128))/0xa);if(_0x13da0a===_0x1deab7)break;else _0xa46403['push'](_0xa46403['shift']());}catch(_0x5e0eb5){_0xa46403['push'](_0xa46403['shift']());}}}(a112_0x6910,0xe290c));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a112_0x6910(){const _0x4740cd=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','NEW_TABLE','num','2310NPhOZn','2589822cVIVZd','135531mnksqh','1096116OStuHy','addedColumns','summary','filter','MODIFIED_TABLE','length','6094260MhsIUn','page','tableName','deletedColumns','bool','str','table','all','\x20(db\x20link\x20','modifiedColumns','3YnDaqW','fieldDiff','diffType','appCode','678090UgNJxs','370756jHdIQc','diff','number','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','map','4936rIBUNR','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','datasetTableCount','physicalTableCount','12761bSTgpe'];a112_0x6910=function(){return _0x4740cd;};return a112_0x6910();}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x2bfd88(0x11c),'description':a112_0x2bfd88(0x121),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x2bfd88(0x137),'type':'string','description':a112_0x2bfd88(0x125)},{'name':a112_0x2bfd88(0x132),'type':a112_0x2bfd88(0x11d),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':'number','description':'Page\x20size','default':0x14},{'name':'all','type':'boolean','description':a112_0x2bfd88(0x11e)}],async 'execute'(_0x221e59){const _0x208de3=a112_0x2bfd88,_0x1be7f4=_0x221e59['num']('id'),_0x279e0d=_0x221e59[_0x208de3(0x135)](_0x208de3(0x138)),_0x26b88e=_0x279e0d?0x1:_0x221e59['num'](_0x208de3(0x132),0x1)||0x1,_0x416a91=_0x279e0d?DB_TABLE_PAGE_SIZE:_0x221e59[_0x208de3(0x127)]('pagesize',0x14)||0x14,_0x41b46a=_0x221e59[_0x208de3(0x136)](_0x208de3(0x137))||undefined,_0xe76397=_0x279e0d?await getAllDbTableDiff(getDbTableDiff,_0x221e59[_0x208de3(0x13e)],_0x1be7f4,_0x41b46a):await getDbTableDiff(_0x221e59['appCode'],_0x1be7f4,{'pageIndex':_0x26b88e,'pageSize':_0x416a91,'tableName':_0x41b46a}),_0x40613f=_0xe76397['tableList'],_0x10a785=summarizeDbTableDiff(_0x40613f),_0x4b38eb=_0x40613f[_0x208de3(0x12e)](_0x3264b4=>_0x3264b4['diffType']===_0x208de3(0x126)||_0x3264b4[_0x208de3(0x13d)]===_0x208de3(0x12f))[_0x208de3(0x11f)](_0x449518=>_0x449518[_0x208de3(0x133)]),_0x27bed2=_0x40613f[_0x208de3(0x12e)](_0x228ff4=>_0x228ff4[_0x208de3(0x13d)]==='DELETED_TABLE')[_0x208de3(0x11f)](_0x5073e5=>_0x5073e5[_0x208de3(0x133)]),_0x13a093=_0x40613f[_0x208de3(0x12e)](_0x10b13a=>_0x10b13a[_0x208de3(0x13d)]===_0x208de3(0x12f))[_0x208de3(0x11f)](_0x26472f=>({'tableName':_0x26472f[_0x208de3(0x133)],'addedColumns':_0x26472f[_0x208de3(0x13c)]?.[_0x208de3(0x12c)]??[],'deletedColumns':_0x26472f[_0x208de3(0x13c)]?.[_0x208de3(0x134)]??[],'modifiedColumns':_0x26472f[_0x208de3(0x13c)]?.[_0x208de3(0x13a)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x1be7f4,'page':_0x26b88e,'pageSize':_0x416a91,'totalCount':_0xe76397['totalCount'],...typeof _0xe76397[_0x208de3(0x123)]==='number'?{'physicalTableCount':_0xe76397['physicalTableCount']}:{},...typeof _0xe76397[_0x208de3(0x122)]===_0x208de3(0x11d)?{'datasetTableCount':_0xe76397[_0x208de3(0x122)]}:{},..._0xe76397[_0x208de3(0x12d)]?{'summary':_0xe76397[_0x208de3(0x12d)]}:{},'summaryByType':_0x10a785,'toAnalyzeTables':_0x4b38eb,'deletedTables':_0x27bed2,'modifiedFieldDiffs':_0x13a093,'tables':_0x40613f},'message':_0x40613f[_0x208de3(0x130)]+'\x20changed\x20table\x20row(s),\x20total\x20'+_0xe76397['totalCount']+_0x208de3(0x139)+_0x1be7f4+')'};}};
@@ -1 +1 @@
1
- (function(_0x37c036,_0x27ac74){const _0x5240cc=a113_0x2df8,_0x515bb7=_0x37c036();while(!![]){try{const _0x39882a=-parseInt(_0x5240cc(0x1ca))/0x1*(-parseInt(_0x5240cc(0x1c9))/0x2)+-parseInt(_0x5240cc(0x1cd))/0x3+parseInt(_0x5240cc(0x1ce))/0x4*(parseInt(_0x5240cc(0x1cc))/0x5)+-parseInt(_0x5240cc(0x1cb))/0x6*(-parseInt(_0x5240cc(0x1cf))/0x7)+parseInt(_0x5240cc(0x1c8))/0x8+parseInt(_0x5240cc(0x1d1))/0x9+-parseInt(_0x5240cc(0x1d0))/0xa;if(_0x39882a===_0x27ac74)break;else _0x515bb7['push'](_0x515bb7['shift']());}catch(_0x3ef9ce){_0x515bb7['push'](_0x515bb7['shift']());}}}(a113_0x4656,0x1e559));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';function a113_0x4656(){const _0xc84cef=['436878tDIQLc','1605496hjYPZU','278782QnRkYo','1msLGPm','6312DezcbL','5ERipIu','587715ODnAGZ','581404fGwWbx','1113QrigYx','3810850WOcdNK'];a113_0x4656=function(){return _0xc84cef;};return a113_0x4656();}import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';function a113_0x2df8(_0x242436,_0xeb2f44){_0x242436=_0x242436-0x1c8;const _0x46566e=a113_0x4656();let _0x2df8f8=_0x46566e[_0x242436];return _0x2df8f8;}import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
1
+ function a113_0x265a(){const _0x4f028c=['3334345vRhtGx','13613544CyPLyX','604xYVANc','1171EBRCgF','729441tCObmy','32LFmsIu','35pCXDQQ','276906PNLulq','3440950grapTf','48zCegBU','9972qquXSt','33sNvXNC'];a113_0x265a=function(){return _0x4f028c;};return a113_0x265a();}(function(_0x549c70,_0x1f563f){const _0x3a7ab3=a113_0x3761,_0x5bc067=_0x549c70();while(!![]){try{const _0x28e981=parseInt(_0x3a7ab3(0x11c))/0x1*(-parseInt(_0x3a7ab3(0x11b))/0x2)+parseInt(_0x3a7ab3(0x116))/0x3*(-parseInt(_0x3a7ab3(0x117))/0x4)+-parseInt(_0x3a7ab3(0x119))/0x5+parseInt(_0x3a7ab3(0x120))/0x6*(-parseInt(_0x3a7ab3(0x11f))/0x7)+-parseInt(_0x3a7ab3(0x11e))/0x8*(parseInt(_0x3a7ab3(0x11d))/0x9)+-parseInt(_0x3a7ab3(0x121))/0xa*(-parseInt(_0x3a7ab3(0x118))/0xb)+parseInt(_0x3a7ab3(0x11a))/0xc;if(_0x28e981===_0x1f563f)break;else _0x5bc067['push'](_0x5bc067['shift']());}catch(_0x215f5d){_0x5bc067['push'](_0x5bc067['shift']());}}}(a113_0x265a,0x869e5));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbCrossAnalyzeStart}from'../../commands/db/cross-db-analyze-start.js';import{dbCrossAnalyzeStatus}from'../../commands/db/cross-db-analyze-status.js';function a113_0x3761(_0x359965,_0x559d32){_0x359965=_0x359965-0x116;const _0x265ae8=a113_0x265a();let _0x3761c5=_0x265ae8[_0x359965];return _0x3761c5;}import{dbCrossAnalyzeLatest}from'../../commands/db/cross-db-analyze-latest.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,dbCrossAnalyzeStart,dbCrossAnalyzeStatus,dbCrossAnalyzeLatest,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- function a114_0x5346(){const _0x437aae=['Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','all','num','map','length','appCode','Found\x20','page','1032027aMXirm','22876208evWWJq','5992210vEXtMJ','2720480SzURof','read','pagesize','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','Page\x20size','\x20database\x20connection(s)','3922135iSGBQQ','2105166gRMQcI','2139926OqPAse','number','6EsaEGP'];a114_0x5346=function(){return _0x437aae;};return a114_0x5346();}const a114_0x4282a8=a114_0x4e59;(function(_0x25642e,_0x2d0a8a){const _0x3f03fc=a114_0x4e59,_0x380cfb=_0x25642e();while(!![]){try{const _0x5bbb94=parseInt(_0x3f03fc(0x1c4))/0x1+parseInt(_0x3f03fc(0x1b9))/0x2+parseInt(_0x3f03fc(0x1b8))/0x3+parseInt(_0x3f03fc(0x1c7))/0x4+-parseInt(_0x3f03fc(0x1b7))/0x5*(-parseInt(_0x3f03fc(0x1bb))/0x6)+-parseInt(_0x3f03fc(0x1c6))/0x7+-parseInt(_0x3f03fc(0x1c5))/0x8;if(_0x5bbb94===_0x2d0a8a)break;else _0x380cfb['push'](_0x380cfb['shift']());}catch(_0x215e60){_0x380cfb['push'](_0x380cfb['shift']());}}}(a114_0x5346,0x86eff));function a114_0x4e59(_0x2f9ed1,_0x32ed01){_0x2f9ed1=_0x2f9ed1-0x1b6;const _0x534635=a114_0x5346();let _0x4e5938=_0x534635[_0x2f9ed1];return _0x4e5938;}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';export const dbList={'service':'db','command':'list','description':a114_0x4282a8(0x1cb),'risk':a114_0x4282a8(0x1c8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x4282a8(0x1c3),'type':a114_0x4282a8(0x1ba),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a114_0x4282a8(0x1c9),'type':a114_0x4282a8(0x1ba),'description':a114_0x4282a8(0x1cc),'default':0x64}],async 'execute'(_0x40bf35){const _0x4de832=a114_0x4282a8,_0x30b389=_0x40bf35[_0x4de832(0x1be)](_0x4de832(0x1c3),0x1)||0x1,_0x5d1969=_0x40bf35['num'](_0x4de832(0x1c9),0x64)||0x64,[{items:_0x4240a4,paging:_0x2f363d},_0x115e7a]=await Promise[_0x4de832(0x1bd)]([listDbLinks(_0x40bf35[_0x4de832(0x1c1)],{'currentPage':_0x30b389,'pageSize':_0x5d1969}),listDatasets(_0x40bf35[_0x4de832(0x1c1)],{'source':_0x4de832(0x1ca)})]),_0x5aa793=_0x4240a4[_0x4de832(0x1bf)](_0x25deb3=>({...sanitizeDbLinkForOutput(_0x25deb3),'datasetDependency':buildDbDatasetDependency(_0x25deb3,_0x115e7a)['datasetDependency']})),_0xde1eec=_0x2f363d?_0x2f363d:{'currentPage':_0x30b389,'pageSize':_0x5d1969,'rowsOnPage':_0x5aa793[_0x4de832(0x1c0)],'totalCount':null,'note':_0x4de832(0x1bc)};return{'ok':!![],'data':{'connections':_0x5aa793,'paging':_0xde1eec},'message':_0x4de832(0x1c2)+_0x5aa793[_0x4de832(0x1c0)]+_0x4de832(0x1b6)};}};
1
+ const a114_0x5a79c7=a114_0x2119;function a114_0x2119(_0x58470c,_0x2c9b55){_0x58470c=_0x58470c-0xae;const _0x56d555=a114_0x56d5();let _0x211949=_0x56d555[_0x58470c];return _0x211949;}(function(_0x20eff9,_0x4126f7){const _0x6d8a57=a114_0x2119,_0x4accd7=_0x20eff9();while(!![]){try{const _0x371ae5=parseInt(_0x6d8a57(0xc3))/0x1*(-parseInt(_0x6d8a57(0xb1))/0x2)+-parseInt(_0x6d8a57(0xb7))/0x3*(parseInt(_0x6d8a57(0xb9))/0x4)+parseInt(_0x6d8a57(0xc4))/0x5*(parseInt(_0x6d8a57(0xc5))/0x6)+parseInt(_0x6d8a57(0xb4))/0x7+parseInt(_0x6d8a57(0xb8))/0x8*(parseInt(_0x6d8a57(0xb6))/0x9)+parseInt(_0x6d8a57(0xbd))/0xa*(parseInt(_0x6d8a57(0xba))/0xb)+-parseInt(_0x6d8a57(0xb3))/0xc;if(_0x371ae5===_0x4126f7)break;else _0x4accd7['push'](_0x4accd7['shift']());}catch(_0x4661e4){_0x4accd7['push'](_0x4accd7['shift']());}}}(a114_0x56d5,0x928c8));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 a114_0x56d5(){const _0x1bb3da=['page','\x20database\x20connection(s)','pagesize','DB_TABLE','30334ExjAHC','1150775UiOKZg','30SyqdBu','read','Page\x20index\x20(1-based)','number','62NffExS','length','3105516YvzPvd','3012919DUudwy','all','7308NgEqjm','36uIwwrq','4696yFVdPY','300552XXzcUL','7075541IpzYCZ','datasetDependency','appCode','10XgfWqj','list'];a114_0x56d5=function(){return _0x1bb3da;};return a114_0x56d5();}export const dbList={'service':'db','command':a114_0x5a79c7(0xbe),'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':a114_0x5a79c7(0xae),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a114_0x5a79c7(0xb0),'description':a114_0x5a79c7(0xaf),'default':0x1},{'name':a114_0x5a79c7(0xc1),'type':a114_0x5a79c7(0xb0),'description':'Page\x20size','default':0x64}],async 'execute'(_0x3e7b0a){const _0x185666=a114_0x5a79c7,_0x4b3edc=_0x3e7b0a['num'](_0x185666(0xbf),0x1)||0x1,_0x23fc12=_0x3e7b0a['num'](_0x185666(0xc1),0x64)||0x64,[{items:_0x1962a5,paging:_0x4ed28c},_0x1cb7d8]=await Promise[_0x185666(0xb5)]([listDbLinks(_0x3e7b0a[_0x185666(0xbc)],{'currentPage':_0x4b3edc,'pageSize':_0x23fc12}),listDatasets(_0x3e7b0a[_0x185666(0xbc)],{'source':_0x185666(0xc2)})]),_0x427c40=_0x1962a5['map'](_0xf27e47=>({...sanitizeDbLinkForOutput(_0xf27e47),'datasetDependency':buildDbDatasetDependency(_0xf27e47,_0x1cb7d8)[_0x185666(0xbb)]})),_0x4eaa2b=_0x4ed28c?_0x4ed28c:{'currentPage':_0x4b3edc,'pageSize':_0x23fc12,'rowsOnPage':_0x427c40[_0x185666(0xb2)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x427c40,'paging':_0x4eaa2b},'message':'Found\x20'+_0x427c40[_0x185666(0xb2)]+_0x185666(0xc0)};}};
@@ -1 +1 @@
1
- (function(_0x221682,_0x22d302){const _0x39f21f=a115_0x16d6,_0x943d36=_0x221682();while(!![]){try{const _0x68e128=parseInt(_0x39f21f(0xfa))/0x1+-parseInt(_0x39f21f(0x10c))/0x2*(parseInt(_0x39f21f(0xf7))/0x3)+parseInt(_0x39f21f(0x100))/0x4+parseInt(_0x39f21f(0x10d))/0x5*(parseInt(_0x39f21f(0x106))/0x6)+-parseInt(_0x39f21f(0xf1))/0x7*(-parseInt(_0x39f21f(0xfc))/0x8)+-parseInt(_0x39f21f(0xf4))/0x9+parseInt(_0x39f21f(0xf5))/0xa*(-parseInt(_0x39f21f(0x108))/0xb);if(_0x68e128===_0x22d302)break;else _0x943d36['push'](_0x943d36['shift']());}catch(_0x2a267d){_0x943d36['push'](_0x943d36['shift']());}}}(a115_0x1707,0x72729));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x16d6(_0x1dd5ba,_0x32476b){_0x1dd5ba=_0x1dd5ba-0xef;const _0x1707ad=a115_0x1707();let _0x16d6b8=_0x1707ad[_0x1dd5ba];return _0x16d6b8;}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x41caf2){const _0x46e359=a115_0x16d6,_0x254b20=_0x41caf2[_0x46e359(0x109)]();if(_0x254b20===_0x46e359(0x111)||_0x254b20===_0x46e359(0x107)||_0x254b20===_0x46e359(0x113))return!![];if(_0x254b20[_0x46e359(0x101)](_0x46e359(0xf6))||_0x254b20[_0x46e359(0x101)](_0x46e359(0x114))||_0x254b20[_0x46e359(0x101)](_0x46e359(0x10a)))return!![];if(_0x254b20[_0x46e359(0x101)](_0x46e359(0x102))||_0x254b20[_0x46e359(0x101)]('accesskey'))return!![];if(_0x254b20==='authorization'||_0x254b20===_0x46e359(0x110)||_0x254b20==='jdbcurl')return!![];return![];}function a115_0x1707(){const _0x21d190=['3431889BXhVZM','10anAsCK','secret','27843WKzgMY','apiError','map','295131yjFcVA','hasAvailableDo','17960XVHmPs','isFinite','/data/er?dbId=','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','1354028hSeOSM','includes','privatekey','Database\x20connection\x20preflight\x20failed.','dbtableConfig','dbId','43488jOLeDl','passwd','8778418VwoErV','toLowerCase','credential','code','74vNgpvN','325VDrxEQ','test','[redacted]','connectionstring','password','number','dbpassword','token','length','trim','2765FcRuLl','keys','tableName'];a115_0x1707=function(){return _0x21d190;};return a115_0x1707();}export function sanitizeDbLinkForOutput(_0x880aab){const _0x24177f=a115_0x16d6,_0x130848={..._0x880aab};delete _0x130848[_0x24177f(0xfb)];for(const _0x5d6ae7 of Object[_0x24177f(0xf2)](_0x130848)){if(!shouldRedactKey(_0x5d6ae7))continue;const _0x1394e7=_0x130848[_0x5d6ae7];_0x1394e7!=null&&String(_0x1394e7)[_0x24177f(0xef)]>0x0&&(_0x130848[_0x5d6ae7]=_0x24177f(0x10f));}return _0x130848;}export function sanitizeDbLinkList(_0x5f3fa3){const _0x3e605e=a115_0x16d6;return _0x5f3fa3[_0x3e605e(0xf9)](_0x5bbbd2=>sanitizeDbLinkForOutput(_0x5bbbd2));}export function buildDbDatasetDependency(_0x56600a,_0xd2d592){const _0x2f05a7=a115_0x16d6,_0x58a754=_0xd2d592['filter'](_0x275541=>Number(_0x275541[_0x2f05a7(0x104)]?.[_0x2f05a7(0x105)])===Number(_0x56600a['id']))['map'](_0x5db48b=>({'id':_0x5db48b['id'],'code':_0x5db48b[_0x2f05a7(0x10b)],'name':_0x5db48b['name'],..._0x5db48b[_0x2f05a7(0x104)]?.[_0x2f05a7(0xf3)]?{'tableName':_0x5db48b[_0x2f05a7(0x104)][_0x2f05a7(0xf3)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x58a754[_0x2f05a7(0xef)]>0x0,'activeDatasetCount':_0x58a754[_0x2f05a7(0xef)]},'datasets':_0x58a754};}export async function assertDbLinkConnectionPreflight(_0x24d552){const _0x3aade9=a115_0x16d6,_0x4ec146=await testDbLinkConfigConnect(_0x24d552);if(_0x4ec146!==!![])throw CliErrors[_0x3aade9(0xf8)](_0x3aade9(0x103),_0x3aade9(0xff));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x238cb6){const _0x4e9e30=a115_0x16d6,_0x2b8313=_0x238cb6[_0x4e9e30(0xf0)]();if(!_0x2b8313)return![];return DB_URL_PATTERN[_0x4e9e30(0x10e)](_0x2b8313);}export function buildDbPageLinks(_0x1d27b1,_0xca99c7){const _0xac6607=a115_0x16d6,_0x29bff8=_0x1d27b1?.[_0xac6607(0xf0)]();if(!_0x29bff8)return undefined;const _0x32a4f1=typeof _0xca99c7===_0xac6607(0x112)?String(_0xca99c7):String(_0xca99c7??'')[_0xac6607(0xf0)]();if(!_0x32a4f1)return undefined;const _0xff28d6=Number(_0x32a4f1);if(!Number[_0xac6607(0xfd)](_0xff28d6)||_0xff28d6<=0x0)return undefined;const _0x188ce0=getAppBaseUrl(_0x29bff8),_0x5c4203=encodeURIComponent(String(_0xff28d6));return{'databasePage':_0x188ce0+'/data/database','erPage':_0x188ce0+_0xac6607(0xfe)+_0x5c4203};}
1
+ (function(_0x13d3c9,_0x1a6dbc){const _0x855b93=a115_0x4979,_0x28ea4c=_0x13d3c9();while(!![]){try{const _0x29faca=-parseInt(_0x855b93(0x17d))/0x1+parseInt(_0x855b93(0x193))/0x2*(-parseInt(_0x855b93(0x18e))/0x3)+parseInt(_0x855b93(0x18c))/0x4+parseInt(_0x855b93(0x17a))/0x5*(-parseInt(_0x855b93(0x192))/0x6)+parseInt(_0x855b93(0x18f))/0x7+-parseInt(_0x855b93(0x184))/0x8+-parseInt(_0x855b93(0x17e))/0x9*(-parseInt(_0x855b93(0x18b))/0xa);if(_0x29faca===_0x1a6dbc)break;else _0x28ea4c['push'](_0x28ea4c['shift']());}catch(_0x2ef7dd){_0x28ea4c['push'](_0x28ea4c['shift']());}}}(a115_0x5a19,0x49a39));function a115_0x5a19(){const _0x129aff=['11225637dnZZhs','dbtableConfig','/data/er?dbId=','test','length','toLowerCase','3693496jleXsp','dbpassword','authorization','map','filter','isFinite','name','10qOCQEG','1472728XfIiKi','connectionstring','1178325SjfOsR','996471PVuobT','Database\x20connection\x20preflight\x20failed.','trim','312EVotun','2FyTOrl','includes','code','tableName','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','hasAvailableDo','18885VLXMtc','passwd','/data/database','405337peQYOz'];a115_0x5a19=function(){return _0x129aff;};return a115_0x5a19();}import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x3beed8){const _0x5d6279=a115_0x4979,_0x16198e=_0x3beed8[_0x5d6279(0x183)]();if(_0x16198e==='password'||_0x16198e===_0x5d6279(0x17b)||_0x16198e===_0x5d6279(0x185))return!![];if(_0x16198e['includes']('secret')||_0x16198e[_0x5d6279(0x194)]('token')||_0x16198e[_0x5d6279(0x194)]('credential'))return!![];if(_0x16198e[_0x5d6279(0x194)]('privatekey')||_0x16198e['includes']('accesskey'))return!![];if(_0x16198e===_0x5d6279(0x186)||_0x16198e===_0x5d6279(0x18d)||_0x16198e==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x1ffb95){const _0xa11749=a115_0x4979,_0x291714={..._0x1ffb95};delete _0x291714[_0xa11749(0x179)];for(const _0x805bff of Object['keys'](_0x291714)){if(!shouldRedactKey(_0x805bff))continue;const _0xf6da36=_0x291714[_0x805bff];_0xf6da36!=null&&String(_0xf6da36)['length']>0x0&&(_0x291714[_0x805bff]='[redacted]');}return _0x291714;}export function sanitizeDbLinkList(_0x1c8c9c){const _0x2d991d=a115_0x4979;return _0x1c8c9c[_0x2d991d(0x187)](_0x575bc0=>sanitizeDbLinkForOutput(_0x575bc0));}export function buildDbDatasetDependency(_0x1e29ce,_0x45b05a){const _0x3f45f0=a115_0x4979,_0x3fbcbb=_0x45b05a[_0x3f45f0(0x188)](_0x1b1d6a=>Number(_0x1b1d6a['dbtableConfig']?.['dbId'])===Number(_0x1e29ce['id']))[_0x3f45f0(0x187)](_0x371148=>({'id':_0x371148['id'],'code':_0x371148[_0x3f45f0(0x195)],'name':_0x371148[_0x3f45f0(0x18a)],..._0x371148[_0x3f45f0(0x17f)]?.[_0x3f45f0(0x196)]?{'tableName':_0x371148[_0x3f45f0(0x17f)][_0x3f45f0(0x196)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3fbcbb[_0x3f45f0(0x182)]>0x0,'activeDatasetCount':_0x3fbcbb['length']},'datasets':_0x3fbcbb};}function a115_0x4979(_0x10402b,_0x1cbdc1){_0x10402b=_0x10402b-0x178;const _0x5a1973=a115_0x5a19();let _0x497972=_0x5a1973[_0x10402b];return _0x497972;}export async function assertDbLinkConnectionPreflight(_0xef0521){const _0xe3f47=a115_0x4979,_0x2243b6=await testDbLinkConfigConnect(_0xef0521);if(_0x2243b6!==!![])throw CliErrors['apiError'](_0xe3f47(0x190),_0xe3f47(0x178));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x574a45){const _0x1474cf=a115_0x4979,_0xcf85ba=_0x574a45[_0x1474cf(0x191)]();if(!_0xcf85ba)return![];return DB_URL_PATTERN[_0x1474cf(0x181)](_0xcf85ba);}export function buildDbPageLinks(_0x1dcedf,_0x15f3fe){const _0xcfed53=a115_0x4979,_0x4d5f11=_0x1dcedf?.['trim']();if(!_0x4d5f11)return undefined;const _0x2d5a91=typeof _0x15f3fe==='number'?String(_0x15f3fe):String(_0x15f3fe??'')[_0xcfed53(0x191)]();if(!_0x2d5a91)return undefined;const _0x1b3904=Number(_0x2d5a91);if(!Number[_0xcfed53(0x189)](_0x1b3904)||_0x1b3904<=0x0)return undefined;const _0x30c147=getAppBaseUrl(_0x4d5f11),_0x58ddb1=encodeURIComponent(String(_0x1b3904));return{'databasePage':_0x30c147+_0xcfed53(0x17c),'erPage':_0x30c147+_0xcfed53(0x180)+_0x58ddb1};}
@@ -1 +1 @@
1
- const a116_0x2879e3=a116_0x5dbe;function a116_0x5dbe(_0x301129,_0x1ba132){_0x301129=_0x301129-0x171;const _0x4410f4=a116_0x4410();let _0x5dbee2=_0x4410f4[_0x301129];return _0x5dbee2;}(function(_0x4c9ec0,_0x4e82a6){const _0x5612e3=a116_0x5dbe,_0x5f199a=_0x4c9ec0();while(!![]){try{const _0x39a495=-parseInt(_0x5612e3(0x178))/0x1*(parseInt(_0x5612e3(0x180))/0x2)+parseInt(_0x5612e3(0x183))/0x3*(-parseInt(_0x5612e3(0x187))/0x4)+-parseInt(_0x5612e3(0x192))/0x5*(parseInt(_0x5612e3(0x190))/0x6)+parseInt(_0x5612e3(0x18e))/0x7+parseInt(_0x5612e3(0x176))/0x8*(parseInt(_0x5612e3(0x177))/0x9)+-parseInt(_0x5612e3(0x174))/0xa*(parseInt(_0x5612e3(0x18b))/0xb)+parseInt(_0x5612e3(0x173))/0xc*(parseInt(_0x5612e3(0x193))/0xd);if(_0x39a495===_0x4e82a6)break;else _0x5f199a['push'](_0x5f199a['shift']());}catch(_0x4e7123){_0x5f199a['push'](_0x5f199a['shift']());}}}(a116_0x4410,0xb9cb2));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x2879e3(0x175),a116_0x2879e3(0x17f),a116_0x2879e3(0x191),a116_0x2879e3(0x184)];export function summarizeDbTableDiff(_0x14115e){const _0x3f7c5a=a116_0x2879e3;return Object[_0x3f7c5a(0x18f)](DB_TABLE_DIFF_TYPES[_0x3f7c5a(0x186)](_0x14d074=>[_0x14d074,_0x14115e[_0x3f7c5a(0x18a)](_0x2fa15c=>_0x2fa15c[_0x3f7c5a(0x182)]===_0x14d074)[_0x3f7c5a(0x17b)]]));}function a116_0x4410(){const _0x30d379=['size','length','datasetTableCount','summary','physicalTableCount','MODIFIED_TABLE','42HQdemL','values','diffType','141UKWmtj','ALREADY_ANALYZED','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','map','70076rlMtDO','number','set','filter','2959wTPAuP','totalCount','\x20row(s).','6402676IGHXvi','fromEntries','6hnBYqB','DELETED_TABLE','1365230LcOARS','6019IovgLf','tableList','tableName','45000YQTbeC','47130BPUMJF','NEW_TABLE','63032nWbIWI','711rZirGE','7053bpimyI','\x20of\x20'];a116_0x4410=function(){return _0x30d379;};return a116_0x4410();}export async function getAllDbTableDiff(_0x2ecd22,_0x28ad89,_0x2ee4d3,_0xc65393){const _0x59334e=a116_0x2879e3,_0x384651=new Map();let _0xb0b699=0x1,_0x5f022b=null;while(!![]){_0x5f022b=await _0x2ecd22(_0x28ad89,_0x2ee4d3,{'pageIndex':_0xb0b699,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0xc65393});const _0x4f525a=_0x384651[_0x59334e(0x17a)];for(const _0x10d9ac of _0x5f022b[_0x59334e(0x171)]){_0x384651[_0x59334e(0x189)](_0x10d9ac[_0x59334e(0x172)],_0x10d9ac);}if(_0x384651[_0x59334e(0x17a)]>=_0x5f022b[_0x59334e(0x18c)])break;if(_0x5f022b['tableList'][_0x59334e(0x17b)]===0x0||_0x384651['size']===_0x4f525a)throw CliErrors['validation'](_0x59334e(0x185)+_0x384651[_0x59334e(0x17a)]+_0x59334e(0x179)+_0x5f022b[_0x59334e(0x18c)]+_0x59334e(0x18d));_0xb0b699+=0x1;}return{'totalCount':_0x5f022b?.[_0x59334e(0x18c)]??0x0,...typeof _0x5f022b?.[_0x59334e(0x17e)]===_0x59334e(0x188)?{'physicalTableCount':_0x5f022b[_0x59334e(0x17e)]}:{},...typeof _0x5f022b?.[_0x59334e(0x17c)]===_0x59334e(0x188)?{'datasetTableCount':_0x5f022b[_0x59334e(0x17c)]}:{},..._0x5f022b?.[_0x59334e(0x17d)]?{'summary':_0x5f022b['summary']}:{},'tableList':[..._0x384651[_0x59334e(0x181)]()]};}
1
+ const a116_0x2ba8a3=a116_0x3e60;(function(_0x510887,_0x478904){const _0x58e36c=a116_0x3e60,_0x5f3199=_0x510887();while(!![]){try{const _0x52eaac=-parseInt(_0x58e36c(0x7b))/0x1*(-parseInt(_0x58e36c(0x83))/0x2)+parseInt(_0x58e36c(0x74))/0x3+parseInt(_0x58e36c(0x88))/0x4+-parseInt(_0x58e36c(0x82))/0x5*(-parseInt(_0x58e36c(0x75))/0x6)+parseInt(_0x58e36c(0x8d))/0x7+-parseInt(_0x58e36c(0x7a))/0x8+-parseInt(_0x58e36c(0x72))/0x9;if(_0x52eaac===_0x478904)break;else _0x5f3199['push'](_0x5f3199['shift']());}catch(_0x37ac32){_0x5f3199['push'](_0x5f3199['shift']());}}}(a116_0x25e0,0x65f94));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x25e0(){const _0x19876d=['summary','datasetTableCount','fromEntries','4069163RERzvv','\x20of\x20','map','15658002NarEsY','filter','2303061LGEnfd','18OJUCOQ','totalCount','ALREADY_ANALYZED','\x20row(s).','size','143536RouuGt','6941CQPdES','NEW_TABLE','number','diffType','physicalTableCount','tableList','values','735375eZLozB','62ZuMepr','tableName','set','DELETED_TABLE','length','680048pFstgk','validation'];a116_0x25e0=function(){return _0x19876d;};return a116_0x25e0();}function a116_0x3e60(_0x27a0ea,_0x491bbd){_0x27a0ea=_0x27a0ea-0x71;const _0x25e0a2=a116_0x25e0();let _0x3e6053=_0x25e0a2[_0x27a0ea];return _0x3e6053;}export const DB_TABLE_DIFF_TYPES=[a116_0x2ba8a3(0x7c),'MODIFIED_TABLE',a116_0x2ba8a3(0x86),a116_0x2ba8a3(0x77)];export function summarizeDbTableDiff(_0xb51d88){const _0x47211c=a116_0x2ba8a3;return Object[_0x47211c(0x8c)](DB_TABLE_DIFF_TYPES[_0x47211c(0x71)](_0x59b3bf=>[_0x59b3bf,_0xb51d88[_0x47211c(0x73)](_0x51da85=>_0x51da85[_0x47211c(0x7e)]===_0x59b3bf)['length']]));}export async function getAllDbTableDiff(_0x2df32e,_0x31a602,_0x2abdd1,_0x35f943){const _0x193540=a116_0x2ba8a3,_0x520839=new Map();let _0x3c2707=0x1,_0x54ad24=null;while(!![]){_0x54ad24=await _0x2df32e(_0x31a602,_0x2abdd1,{'pageIndex':_0x3c2707,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x35f943});const _0x3e1b40=_0x520839[_0x193540(0x79)];for(const _0x475de8 of _0x54ad24['tableList']){_0x520839[_0x193540(0x85)](_0x475de8[_0x193540(0x84)],_0x475de8);}if(_0x520839[_0x193540(0x79)]>=_0x54ad24[_0x193540(0x76)])break;if(_0x54ad24[_0x193540(0x80)][_0x193540(0x87)]===0x0||_0x520839[_0x193540(0x79)]===_0x3e1b40)throw CliErrors[_0x193540(0x89)]('Incomplete\x20db\x20table\x20pagination:\x20collected\x20'+_0x520839[_0x193540(0x79)]+_0x193540(0x8e)+_0x54ad24['totalCount']+_0x193540(0x78));_0x3c2707+=0x1;}return{'totalCount':_0x54ad24?.[_0x193540(0x76)]??0x0,...typeof _0x54ad24?.[_0x193540(0x7f)]===_0x193540(0x7d)?{'physicalTableCount':_0x54ad24[_0x193540(0x7f)]}:{},...typeof _0x54ad24?.[_0x193540(0x8b)]===_0x193540(0x7d)?{'datasetTableCount':_0x54ad24[_0x193540(0x8b)]}:{},..._0x54ad24?.[_0x193540(0x8a)]?{'summary':_0x54ad24[_0x193540(0x8a)]}:{},'tableList':[..._0x520839[_0x193540(0x81)]()]};}
@@ -1 +1 @@
1
- const a117_0x3542ae=a117_0x5e19;function a117_0x5e19(_0x4540c4,_0x47713a){_0x4540c4=_0x4540c4-0xbe;const _0x5ceb0f=a117_0x5ceb();let _0x5e1903=_0x5ceb0f[_0x4540c4];return _0x5e1903;}function a117_0x5ceb(){const _0x3c6aad=['datasetTableCount','table','totalCount','407KRbxgX','271833rfLUuY','104530kxPOaa','12105rOKckz','tables','appCode','12nWKtBv','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20table\x20comparison\x20row(s),\x20total\x20','num','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','physicalTableCount','202512KzcZLx','172eThTIF','3992fMDpGX','189mBnVKH','\x20(db\x20link\x20','read','8YvhkQT','length','summary','14486SuXYMu','string','7656493zauuoV','7HZJfaS'];a117_0x5ceb=function(){return _0x3c6aad;};return a117_0x5ceb();}(function(_0x1886f,_0x5c99f3){const _0x644799=a117_0x5e19,_0x2f9fc5=_0x1886f();while(!![]){try{const _0x472a4a=parseInt(_0x644799(0xd0))/0x1*(parseInt(_0x644799(0xd3))/0x2)+parseInt(_0x644799(0xbf))/0x3+-parseInt(_0x644799(0xcb))/0x4*(parseInt(_0x644799(0xc1))/0x5)+-parseInt(_0x644799(0xca))/0x6*(-parseInt(_0x644799(0xd6))/0x7)+parseInt(_0x644799(0xcc))/0x8*(parseInt(_0x644799(0xcd))/0x9)+parseInt(_0x644799(0xc0))/0xa*(-parseInt(_0x644799(0xbe))/0xb)+-parseInt(_0x644799(0xc4))/0xc*(-parseInt(_0x644799(0xd5))/0xd);if(_0x472a4a===_0x5c99f3)break;else _0x2f9fc5['push'](_0x2f9fc5['shift']());}catch(_0xc8d4e5){_0x2f9fc5['push'](_0x2f9fc5['shift']());}}}(a117_0x5ceb,0x47043));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':a117_0x3542ae(0xc2),'description':a117_0x3542ae(0xc8),'risk':a117_0x3542ae(0xcf),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x3542ae(0xd8),'type':a117_0x3542ae(0xd4),'description':a117_0x3542ae(0xc5)}],async 'execute'(_0xd00d68){const _0x32369a=a117_0x3542ae,_0x5a13ee=_0xd00d68[_0x32369a(0xc7)]('id'),_0x563334=_0xd00d68['str'](_0x32369a(0xd8))||undefined,_0xcccde2=await getAllDbTableDiff(getDbTableComparisonPage,_0xd00d68[_0x32369a(0xc3)],_0x5a13ee,_0x563334),_0x1e8b4c=_0xcccde2['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x5a13ee,'totalCount':_0xcccde2['totalCount'],...typeof _0xcccde2[_0x32369a(0xc9)]==='number'?{'physicalTableCount':_0xcccde2[_0x32369a(0xc9)]}:{},...typeof _0xcccde2[_0x32369a(0xd7)]==='number'?{'datasetTableCount':_0xcccde2[_0x32369a(0xd7)]}:{},..._0xcccde2[_0x32369a(0xd2)]?{'summary':_0xcccde2['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x1e8b4c),'tables':_0x1e8b4c},'message':_0x1e8b4c[_0x32369a(0xd1)]+_0x32369a(0xc6)+_0xcccde2[_0x32369a(0xd9)]+_0x32369a(0xce)+_0x5a13ee+')'};}};
1
+ function a117_0x3537(){const _0xd473ed=['datasetTableCount','str','111890YANYeu','32894TKewYD','length','summary','\x20(db\x20link\x20','737040uLOiIj','2789577ekgAWa','physicalTableCount','number','10uULkhq','24YWjrlG','string','table','2529279MYgECE','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','read','6fgzwiP','3246032btriuw','num','3925438RLNKlE','totalCount','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','4dnAdgt'];a117_0x3537=function(){return _0xd473ed;};return a117_0x3537();}const a117_0x169967=a117_0x2cec;(function(_0x4fef0c,_0x2bfff1){const _0x5f29f1=a117_0x2cec,_0x515f2e=_0x4fef0c();while(!![]){try{const _0x3aba74=parseInt(_0x5f29f1(0x8f))/0x1*(parseInt(_0x5f29f1(0x9f))/0x2)+parseInt(_0x5f29f1(0xa3))/0x3*(-parseInt(_0x5f29f1(0x9b))/0x4)+parseInt(_0x5f29f1(0x9e))/0x5+-parseInt(_0x5f29f1(0x95))/0x6*(parseInt(_0x5f29f1(0xa4))/0x7)+parseInt(_0x5f29f1(0x96))/0x8+-parseInt(_0x5f29f1(0x92))/0x9*(parseInt(_0x5f29f1(0x8e))/0xa)+parseInt(_0x5f29f1(0x98))/0xb;if(_0x3aba74===_0x2bfff1)break;else _0x515f2e['push'](_0x515f2e['shift']());}catch(_0x3cef55){_0x515f2e['push'](_0x515f2e['shift']());}}}(a117_0x3537,0x3e220));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x2cec(_0x3d95a7,_0x564c30){_0x3d95a7=_0x3d95a7-0x8c;const _0x3537f1=a117_0x3537();let _0x2cecd4=_0x3537f1[_0x3d95a7];return _0x2cecd4;}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':a117_0x169967(0x93),'risk':a117_0x169967(0x94),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a117_0x169967(0x90),'description':a117_0x169967(0x9a)}],async 'execute'(_0x393123){const _0x726164=a117_0x169967,_0x4a9588=_0x393123[_0x726164(0x97)]('id'),_0x4db262=_0x393123[_0x726164(0x9d)](_0x726164(0x91))||undefined,_0x49a70e=await getAllDbTableDiff(getDbTableComparisonPage,_0x393123['appCode'],_0x4a9588,_0x4db262),_0x45a09d=_0x49a70e['tableList'];return{'ok':!![],'data':{'dbLinkId':_0x4a9588,'totalCount':_0x49a70e[_0x726164(0x99)],...typeof _0x49a70e[_0x726164(0x8c)]==='number'?{'physicalTableCount':_0x49a70e[_0x726164(0x8c)]}:{},...typeof _0x49a70e[_0x726164(0x9c)]===_0x726164(0x8d)?{'datasetTableCount':_0x49a70e[_0x726164(0x9c)]}:{},..._0x49a70e[_0x726164(0xa1)]?{'summary':_0x49a70e['summary']}:{},'summaryByType':summarizeDbTableDiff(_0x45a09d),'tables':_0x45a09d},'message':_0x45a09d[_0x726164(0xa0)]+'\x20table\x20comparison\x20row(s),\x20total\x20'+_0x49a70e[_0x726164(0x99)]+_0x726164(0xa2)+_0x4a9588+')'};}};
@@ -1 +1 @@
1
- const a118_0x597bfb=a118_0x34cb;function a118_0x3ba3(){const _0x1c904e=['8508856gZACWU','msg','10oQGbjy','object','Connection\x20OK\x20for\x20db\x20link\x20','error','success','data','72748PEFHWf','slice','\x20(see\x20data.result)','1264863GenLsL','9304929XIuQAw','2rOgCtb','test','11683480PdyWSb','98ItlwyI','Connection\x20check\x20finished\x20for\x20db\x20link\x20','215004WVElgJ','851393rNgQZQ','keys','num','code'];a118_0x3ba3=function(){return _0x1c904e;};return a118_0x3ba3();}(function(_0x404da8,_0x585686){const _0x4a56f0=a118_0x34cb,_0x61b00c=_0x404da8();while(!![]){try{const _0x2f1b55=-parseInt(_0x4a56f0(0x17b))/0x1*(-parseInt(_0x4a56f0(0x175))/0x2)+parseInt(_0x4a56f0(0x173))/0x3+-parseInt(_0x4a56f0(0x187))/0x4*(parseInt(_0x4a56f0(0x181))/0x5)+-parseInt(_0x4a56f0(0x17a))/0x6*(-parseInt(_0x4a56f0(0x178))/0x7)+-parseInt(_0x4a56f0(0x17f))/0x8+parseInt(_0x4a56f0(0x174))/0x9+-parseInt(_0x4a56f0(0x177))/0xa;if(_0x2f1b55===_0x585686)break;else _0x61b00c['push'](_0x61b00c['shift']());}catch(_0x59da2d){_0x61b00c['push'](_0x61b00c['shift']());}}}(a118_0x3ba3,0x83e52));function a118_0x34cb(_0x4de708,_0x9ccbc6){_0x4de708=_0x4de708-0x173;const _0x3ba381=a118_0x3ba3();let _0x34cbf9=_0x3ba381[_0x4de708];return _0x34cbf9;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1f8b42){const _0x3216bc=a118_0x34cb;if(_0x1f8b42===!![]||_0x1f8b42===![])return{'success':_0x1f8b42};if(_0x1f8b42===null||_0x1f8b42===undefined)return{'type':typeof _0x1f8b42};if(typeof _0x1f8b42!==_0x3216bc(0x182))return{'type':typeof _0x1f8b42};const _0xd3280f=_0x1f8b42,_0x51f7ac=[_0x3216bc(0x185),'message',_0x3216bc(0x17e),_0x3216bc(0x184),_0x3216bc(0x180),_0x3216bc(0x186)],_0x5a954f={};for(const _0x206382 of _0x51f7ac){if(_0x206382 in _0xd3280f)_0x5a954f[_0x206382]=_0xd3280f[_0x206382];}return Object[_0x3216bc(0x17c)](_0x5a954f)['length']===0x0&&(_0x5a954f['keys']=Object[_0x3216bc(0x17c)](_0xd3280f)[_0x3216bc(0x188)](0x0,0x14)),_0x5a954f;}export const dbTest={'service':'db','command':a118_0x597bfb(0x176),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2e7afa){const _0x275295=a118_0x597bfb,_0x29ea6a=_0x2e7afa[_0x275295(0x17d)]('id'),_0xe1703=await testDbLinkConnect(_0x29ea6a),_0x14aecc=_0xe1703===!![]||typeof _0xe1703===_0x275295(0x182)&&_0xe1703!==null&&_0xe1703[_0x275295(0x185)]===!![],_0x520419=summarizeTestConnectResult(_0xe1703);return{'ok':!![],'data':{'id':_0x29ea6a,'connected':Boolean(_0x14aecc),'result':_0x520419},'message':_0x14aecc?_0x275295(0x183)+_0x29ea6a:_0x275295(0x179)+_0x29ea6a+_0x275295(0x189)};}};
1
+ function a118_0x1ed2(_0x36fcb4,_0x769780){_0x36fcb4=_0x36fcb4-0x67;const _0x4161b4=a118_0x4161();let _0x1ed22b=_0x4161b4[_0x36fcb4];return _0x1ed22b;}const a118_0x5df159=a118_0x1ed2;(function(_0x43b6df,_0x1f9661){const _0xcafe9b=a118_0x1ed2,_0x2a9d98=_0x43b6df();while(!![]){try{const _0x1038a2=-parseInt(_0xcafe9b(0x6e))/0x1+parseInt(_0xcafe9b(0x6f))/0x2*(-parseInt(_0xcafe9b(0x7e))/0x3)+parseInt(_0xcafe9b(0x77))/0x4*(-parseInt(_0xcafe9b(0x7a))/0x5)+-parseInt(_0xcafe9b(0x72))/0x6*(-parseInt(_0xcafe9b(0x7d))/0x7)+parseInt(_0xcafe9b(0x76))/0x8+parseInt(_0xcafe9b(0x68))/0x9*(-parseInt(_0xcafe9b(0x69))/0xa)+parseInt(_0xcafe9b(0x67))/0xb;if(_0x1038a2===_0x1f9661)break;else _0x2a9d98['push'](_0x2a9d98['shift']());}catch(_0x2acf0b){_0x2a9d98['push'](_0x2a9d98['shift']());}}}(a118_0x4161,0x260dd));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x4ae3de){const _0x63c197=a118_0x1ed2;if(_0x4ae3de===!![]||_0x4ae3de===![])return{'success':_0x4ae3de};if(_0x4ae3de===null||_0x4ae3de===undefined)return{'type':typeof _0x4ae3de};if(typeof _0x4ae3de!==_0x63c197(0x6a))return{'type':typeof _0x4ae3de};const _0x441e49=_0x4ae3de,_0x4eb30d=[_0x63c197(0x73),_0x63c197(0x6c),'code',_0x63c197(0x7b),_0x63c197(0x6d),_0x63c197(0x79)],_0x442d7e={};for(const _0x352856 of _0x4eb30d){if(_0x352856 in _0x441e49)_0x442d7e[_0x352856]=_0x441e49[_0x352856];}return Object[_0x63c197(0x78)](_0x442d7e)['length']===0x0&&(_0x442d7e[_0x63c197(0x78)]=Object[_0x63c197(0x78)](_0x441e49)[_0x63c197(0x71)](0x0,0x14)),_0x442d7e;}function a118_0x4161(){const _0xc23956=['6yVkQTo','Connection\x20OK\x20for\x20db\x20link\x20','slice','1254342GWYoQU','success','num','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','2317048lRxpKP','306932OBWyQb','keys','data','15CYKdpT','error','Connection\x20check\x20finished\x20for\x20db\x20link\x20','7qhlFfM','197259Raxnmv','5997541qhTGqZ','9moTfhZ','1947130uDBnAz','object','read','message','msg','265879MggqBd'];a118_0x4161=function(){return _0xc23956;};return a118_0x4161();}export const dbTest={'service':'db','command':'test','description':a118_0x5df159(0x75),'risk':a118_0x5df159(0x6b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3dd9af){const _0x312f14=a118_0x5df159,_0xba821f=_0x3dd9af[_0x312f14(0x74)]('id'),_0x2e396f=await testDbLinkConnect(_0xba821f),_0x2753ce=_0x2e396f===!![]||typeof _0x2e396f===_0x312f14(0x6a)&&_0x2e396f!==null&&_0x2e396f[_0x312f14(0x73)]===!![],_0x2715b2=summarizeTestConnectResult(_0x2e396f);return{'ok':!![],'data':{'id':_0xba821f,'connected':Boolean(_0x2753ce),'result':_0x2715b2},'message':_0x2753ce?_0x312f14(0x70)+_0xba821f:_0x312f14(0x7c)+_0xba821f+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- const a119_0x296903=a119_0xb80d;(function(_0x3ebe1b,_0x3efab9){const _0x296b93=a119_0xb80d,_0x55aade=_0x3ebe1b();while(!![]){try{const _0x435404=-parseInt(_0x296b93(0x10c))/0x1+-parseInt(_0x296b93(0x103))/0x2*(-parseInt(_0x296b93(0xf0))/0x3)+-parseInt(_0x296b93(0xed))/0x4*(parseInt(_0x296b93(0x106))/0x5)+-parseInt(_0x296b93(0x10f))/0x6*(-parseInt(_0x296b93(0xfd))/0x7)+parseInt(_0x296b93(0xff))/0x8*(parseInt(_0x296b93(0x10d))/0x9)+parseInt(_0x296b93(0xf3))/0xa*(parseInt(_0x296b93(0x101))/0xb)+parseInt(_0x296b93(0xf7))/0xc*(-parseInt(_0x296b93(0xef))/0xd);if(_0x435404===_0x3efab9)break;else _0x55aade['push'](_0x55aade['shift']());}catch(_0x135399){_0x55aade['push'](_0x55aade['shift']());}}}(a119_0xf80b,0x5ade8));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';function a119_0xb80d(_0x509004,_0x1df372){_0x509004=_0x509004-0xe5;const _0xf80bda=a119_0xf80b();let _0xb80d20=_0xf80bda[_0x509004];return _0xb80d20;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x296903(0x10b),a119_0x296903(0xec)]);function a119_0xf80b(){const _0x502ba2=['POST','str','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','password','string','New\x20host:port','[redacted]','99436tUWSDf','New\x20username','1651oXKsNk','93vtYzES','dbname','num','6888590kRIKEi','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Updated\x20db\x20link\x20','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','27492jXYxcK','New\x20connection\x20parameter\x20string','write','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','trim','dbDesc','892402ybrJOJ','username','8KTCsRE','New\x20description','11nOjHtR','dbparam','19000SbLOYN','skip-connection-test','bool','95mKrTWE','dbParam','dbdesc','has','validation','******','742363BlJfuW','5755590Osjfjj','New\x20database\x20name','12UzQXLC','dburl'];a119_0xf80b=function(){return _0x502ba2;};return a119_0xf80b();}function mergeDbLinkUpdate(_0x3427b6,_0x4c0cf3){const _0x3bbe40=a119_0x296903,_0x1ecdc8={..._0x3427b6},_0x2f037f=_0x4c0cf3['str']('password');if(_0x2f037f&&MASKED_PASSWORD_VALUES[_0x3bbe40(0x109)](_0x2f037f))throw CliErrors[_0x3bbe40(0x10a)](_0x3bbe40(0xfa));if(!_0x2f037f&&MASKED_PASSWORD_VALUES[_0x3bbe40(0x109)](String(_0x3427b6[_0x3bbe40(0xe9)]??'')))throw CliErrors[_0x3bbe40(0x10a)]('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x2bcd94=_0x4c0cf3[_0x3bbe40(0xe7)]('dbname');if(_0x2bcd94)_0x1ecdc8['dbName']=_0x2bcd94;const _0x442e0b=_0x4c0cf3['str'](_0x3bbe40(0xe5));if(_0x442e0b)_0x1ecdc8['dbUrl']=_0x442e0b[_0x3bbe40(0xfb)]();const _0x434f9b=_0x4c0cf3['str'](_0x3bbe40(0xfe));if(_0x434f9b)_0x1ecdc8[_0x3bbe40(0xfe)]=_0x434f9b;if(_0x2f037f)_0x1ecdc8[_0x3bbe40(0xe9)]=_0x2f037f;const _0x13bbbd=_0x4c0cf3['str']('dbparam');if(_0x13bbbd)_0x1ecdc8[_0x3bbe40(0x107)]=_0x13bbbd;const _0x2e7bc3=_0x4c0cf3[_0x3bbe40(0xe7)](_0x3bbe40(0x108));if(_0x2e7bc3)_0x1ecdc8[_0x3bbe40(0xfc)]=_0x2e7bc3;return _0x1ecdc8;}export const dbUpdate={'service':'db','command':'update','description':a119_0x296903(0xf6),'risk':a119_0x296903(0xf9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x296903(0xf1),'type':a119_0x296903(0xea),'description':a119_0x296903(0x10e)},{'name':a119_0x296903(0xe5),'type':a119_0x296903(0xea),'description':a119_0x296903(0xeb)},{'name':'username','type':a119_0x296903(0xea),'description':a119_0x296903(0xee)},{'name':a119_0x296903(0xe9),'type':a119_0x296903(0xea),'description':a119_0x296903(0xe8)},{'name':a119_0x296903(0x102),'type':a119_0x296903(0xea),'description':a119_0x296903(0xf8)},{'name':a119_0x296903(0x108),'type':a119_0x296903(0xea),'description':a119_0x296903(0x100)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x47bac9){const _0x1512bc=a119_0x296903,_0x59728f=_0x47bac9['str'](_0x1512bc(0xe5));if(_0x59728f&&!validateDbUrl(_0x59728f['trim']()))throw CliErrors[_0x1512bc(0x10a)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x59728f+'\x22');},async 'dryRun'(_0x1c8270){const _0x18af66=a119_0x296903,_0x39cf17=_0x1c8270['num']('id'),_0x11c061=await getDbLinkInfo(_0x39cf17),_0x4441f3=mergeDbLinkUpdate(_0x11c061,_0x1c8270),_0x1dc53f=sanitizeDbLinkForOutput(_0x4441f3);return{'method':_0x18af66(0xe6),'url':'/smartapi/dblink/update','body':_0x1dc53f,'description':_0x18af66(0xf4),'connectionPreflight':{'enabled':!_0x1c8270[_0x18af66(0x105)](_0x18af66(0x104)),'executed':![]}};},async 'execute'(_0x59f47c){const _0x168a7c=a119_0x296903,_0x1763a2=_0x59f47c[_0x168a7c(0xf2)]('id'),_0x306d0d=await getDbLinkInfo(_0x1763a2),_0x33c00d=mergeDbLinkUpdate(_0x306d0d,_0x59f47c);!_0x59f47c[_0x168a7c(0x105)](_0x168a7c(0x104))&&await assertDbLinkConnectionPreflight(_0x33c00d);const {id:_0x4accc6,entity:_0xa727db}=normalizeEntityWithIdResponse(await updateDbLink(_0x33c00d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xa727db),'message':_0x168a7c(0xf5)+(_0x4accc6??_0x1763a2)};}};
1
+ const a119_0x3acb90=a119_0x4024;(function(_0x54d571,_0x100195){const _0x1454f8=a119_0x4024,_0x302192=_0x54d571();while(!![]){try{const _0x51a128=-parseInt(_0x1454f8(0x14b))/0x1*(parseInt(_0x1454f8(0x142))/0x2)+parseInt(_0x1454f8(0x131))/0x3+-parseInt(_0x1454f8(0x136))/0x4+parseInt(_0x1454f8(0x133))/0x5*(-parseInt(_0x1454f8(0x153))/0x6)+-parseInt(_0x1454f8(0x147))/0x7*(-parseInt(_0x1454f8(0x130))/0x8)+-parseInt(_0x1454f8(0x137))/0x9*(-parseInt(_0x1454f8(0x14f))/0xa)+parseInt(_0x1454f8(0x145))/0xb;if(_0x51a128===_0x100195)break;else _0x302192['push'](_0x302192['shift']());}catch(_0x1ec1ca){_0x302192['push'](_0x302192['shift']());}}}(a119_0x2ac9,0xd0f67));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';function a119_0x2ac9(){const _0x5bae38=['bool','username','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbname','2xUyOQr','dbparam','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','19687987ZbHxTi','trim','1603JREoYp','validation','New\x20connection\x20parameter\x20string','******','1356057UjbVWc','dbUrl','New\x20description','New\x20username','30NqKCHy','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbDesc','dbParam','1148898kjLdHv','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','string','num','10456BOmzee','4611075wpwYFO','has','30QluBHj','str','dburl','4943920wEzkDV','2912103JqXeEn','dbdesc','update','New\x20host:port','password','New\x20database\x20name','[redacted]'];a119_0x2ac9=function(){return _0x5bae38;};return a119_0x2ac9();}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a119_0x4024(_0x3fd596,_0xee9ee8){_0x3fd596=_0x3fd596-0x12e;const _0x2ac980=a119_0x2ac9();let _0x40249=_0x2ac980[_0x3fd596];return _0x40249;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x3acb90(0x14a),a119_0x3acb90(0x13d)]);function mergeDbLinkUpdate(_0x879a3e,_0x10d913){const _0x4941d7=a119_0x3acb90,_0x2394f1={..._0x879a3e},_0x527e1b=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x13b));if(_0x527e1b&&MASKED_PASSWORD_VALUES[_0x4941d7(0x132)](_0x527e1b))throw CliErrors['validation']('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x527e1b&&MASKED_PASSWORD_VALUES[_0x4941d7(0x132)](String(_0x879a3e[_0x4941d7(0x13b)]??'')))throw CliErrors[_0x4941d7(0x148)](_0x4941d7(0x140));const _0x1ed962=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x141));if(_0x1ed962)_0x2394f1['dbName']=_0x1ed962;const _0x17e3c1=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x135));if(_0x17e3c1)_0x2394f1[_0x4941d7(0x14c)]=_0x17e3c1['trim']();const _0xd32708=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x13f));if(_0xd32708)_0x2394f1['username']=_0xd32708;if(_0x527e1b)_0x2394f1['password']=_0x527e1b;const _0x4d210b=_0x10d913[_0x4941d7(0x134)](_0x4941d7(0x143));if(_0x4d210b)_0x2394f1[_0x4941d7(0x152)]=_0x4d210b;const _0xde2ec9=_0x10d913[_0x4941d7(0x134)]('dbdesc');if(_0xde2ec9)_0x2394f1[_0x4941d7(0x151)]=_0xde2ec9;return _0x2394f1;}export const dbUpdate={'service':'db','command':a119_0x3acb90(0x139),'description':a119_0x3acb90(0x144),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x3acb90(0x141),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x13c)},{'name':a119_0x3acb90(0x135),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x13a)},{'name':a119_0x3acb90(0x13f),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x14e)},{'name':a119_0x3acb90(0x13b),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x150)},{'name':a119_0x3acb90(0x143),'type':a119_0x3acb90(0x12e),'description':a119_0x3acb90(0x149)},{'name':a119_0x3acb90(0x138),'type':'string','description':a119_0x3acb90(0x14d)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1963a2){const _0x2e66e0=a119_0x3acb90,_0x5ed98d=_0x1963a2[_0x2e66e0(0x134)](_0x2e66e0(0x135));if(_0x5ed98d&&!validateDbUrl(_0x5ed98d[_0x2e66e0(0x146)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x5ed98d+'\x22');},async 'dryRun'(_0x3ddc13){const _0x28f093=a119_0x3acb90,_0xa8ee4e=_0x3ddc13['num']('id'),_0x55f1c1=await getDbLinkInfo(_0xa8ee4e),_0x26e965=mergeDbLinkUpdate(_0x55f1c1,_0x3ddc13),_0x46c8e6=sanitizeDbLinkForOutput(_0x26e965);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x46c8e6,'description':_0x28f093(0x154),'connectionPreflight':{'enabled':!_0x3ddc13['bool']('skip-connection-test'),'executed':![]}};},async 'execute'(_0xa4b6f9){const _0x45217b=a119_0x3acb90,_0x47cfba=_0xa4b6f9[_0x45217b(0x12f)]('id'),_0x129539=await getDbLinkInfo(_0x47cfba),_0x5506de=mergeDbLinkUpdate(_0x129539,_0xa4b6f9);!_0xa4b6f9[_0x45217b(0x13e)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x5506de);const {id:_0x53bab9,entity:_0x4040e9}=normalizeEntityWithIdResponse(await updateDbLink(_0x5506de));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4040e9),'message':'Updated\x20db\x20link\x20'+(_0x53bab9??_0x47cfba)};}};
@@ -1 +1 @@
1
- (function(_0x5c92aa,_0xba3854){const _0xb2e832=a120_0x33b7,_0x287b3c=_0x5c92aa();while(!![]){try{const _0x297f00=parseInt(_0xb2e832(0xd5))/0x1*(-parseInt(_0xb2e832(0xd0))/0x2)+parseInt(_0xb2e832(0xce))/0x3+-parseInt(_0xb2e832(0xd7))/0x4*(parseInt(_0xb2e832(0xd3))/0x5)+-parseInt(_0xb2e832(0xcf))/0x6+-parseInt(_0xb2e832(0xd4))/0x7*(-parseInt(_0xb2e832(0xd1))/0x8)+-parseInt(_0xb2e832(0xd2))/0x9+-parseInt(_0xb2e832(0xd6))/0xa*(-parseInt(_0xb2e832(0xcd))/0xb);if(_0x297f00===_0xba3854)break;else _0x287b3c['push'](_0x287b3c['shift']());}catch(_0x185271){_0x287b3c['push'](_0x287b3c['shift']());}}}(a120_0x48f8,0x71580));function a120_0x48f8(){const _0x102908=['11nrQDXN','155814yfgHrM','5475516ZsRkgk','174pEFbOG','53104PtpbhF','8009712WGYXRv','300215yhQAIA','903fYGjgZ','5264wBJtQA','24770110HFMCAj','44expefA'];a120_0x48f8=function(){return _0x102908;};return a120_0x48f8();}import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a120_0x33b7(_0x38cac7,_0x3685c5){_0x38cac7=_0x38cac7-0xcd;const _0x48f8cf=a120_0x48f8();let _0x33b73a=_0x48f8cf[_0x38cac7];return _0x33b73a;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x348479,_0x5126df){const _0x2bab0b=a120_0x1a8a,_0x5a1e38=_0x348479();while(!![]){try{const _0x1f6477=parseInt(_0x2bab0b(0x88))/0x1*(-parseInt(_0x2bab0b(0x83))/0x2)+-parseInt(_0x2bab0b(0x8a))/0x3*(-parseInt(_0x2bab0b(0x89))/0x4)+parseInt(_0x2bab0b(0x85))/0x5*(parseInt(_0x2bab0b(0x8d))/0x6)+parseInt(_0x2bab0b(0x84))/0x7+-parseInt(_0x2bab0b(0x8c))/0x8*(-parseInt(_0x2bab0b(0x86))/0x9)+parseInt(_0x2bab0b(0x8b))/0xa+-parseInt(_0x2bab0b(0x87))/0xb;if(_0x1f6477===_0x5126df)break;else _0x5a1e38['push'](_0x5a1e38['shift']());}catch(_0xa68d4e){_0x5a1e38['push'](_0x5a1e38['shift']());}}}(a120_0x2cb7,0x5e266));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';function a120_0x1a8a(_0x42dfda,_0x3f7b6b){_0x42dfda=_0x42dfda-0x83;const _0x2cb768=a120_0x2cb7();let _0x1a8a2d=_0x2cb768[_0x42dfda];return _0x1a8a2d;}function a120_0x2cb7(){const _0x220c95=['518983zqkCDi','110272HclXqE','69mRxCkp','365940HeRWom','8yMnAyt','42UHujSv','2qNMoBU','2753457skmoiO','18610yIuFzz','3992049eFFTWB','6919033aYcErG'];a120_0x2cb7=function(){return _0x220c95;};return a120_0x2cb7();}import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- const a121_0x3c1965=a121_0xa623;(function(_0x4726e7,_0x5688df){const _0x3cdd11=a121_0xa623,_0x1df38c=_0x4726e7();while(!![]){try{const _0x8316d2=-parseInt(_0x3cdd11(0xf1))/0x1+-parseInt(_0x3cdd11(0xde))/0x2+parseInt(_0x3cdd11(0xd6))/0x3+-parseInt(_0x3cdd11(0xd3))/0x4*(parseInt(_0x3cdd11(0xe0))/0x5)+-parseInt(_0x3cdd11(0xea))/0x6*(parseInt(_0x3cdd11(0xe1))/0x7)+-parseInt(_0x3cdd11(0xeb))/0x8+parseInt(_0x3cdd11(0xee))/0x9;if(_0x8316d2===_0x5688df)break;else _0x1df38c['push'](_0x1df38c['shift']());}catch(_0x1bcede){_0x1df38c['push'](_0x1df38c['shift']());}}}(a121_0x249a,0xe760b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a121_0x249a(){const _0x438d31=['Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','518937jFRLmh','unknown','bool','jobId','POST','status','write','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','16DFIdWD','boolean','deployment_sync_submit_outcome_unknown','2883984lUbhdx','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','confirm','deployment','outcome','not_submitted','1645082dUMRaE','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','2215810aBNTXz','21NKxeoB','Submitted\x20deployment\x20synchronization\x20job\x20','validation','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','/smartapi/data-sync/submit','appCode','sync-all','job','all_server_supported_metadata','550980oVChkI','13175176hNPNHK','not_needed','data','45206172ilbRxr','application_deployment_sync'];a121_0x249a=function(){return _0x438d31;};return a121_0x249a();}function a121_0xa623(_0x5bf76d,_0x557a84){_0x5bf76d=_0x5bf76d-0xd1;const _0x249a40=a121_0x249a();let _0xa623a1=_0x249a40[_0x5bf76d];return _0xa623a1;}import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a121_0x3c1965(0xe5),CONFIRM_FLAG={'name':a121_0x3c1965(0xda),'type':a121_0x3c1965(0xd4),'description':'Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization'};export const deploymentSyncAll={'service':a121_0x3c1965(0xdb),'command':a121_0x3c1965(0xe7),'description':a121_0x3c1965(0xf0),'risk':a121_0x3c1965(0xf7),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x3c1965(0xd8),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x31c02c){const _0x156886=a121_0x3c1965;return asDryRunResult(buildPreview(_0x31c02c[_0x156886(0xe6)]),{'method':_0x156886(0xf5),'url':SUBMIT_PATH,'description':_0x156886(0xe4)});},async 'execute'(_0x584b64){const _0x19b94d=a121_0x3c1965;if(!_0x584b64[_0x19b94d(0xf3)]('confirm'))throw CliErrors[_0x19b94d(0xe3)](_0x19b94d(0xd2),_0x19b94d(0xd1));try{const _0x1f435f=await submitDeploymentMetadataSyncAll({'appCode':_0x584b64[_0x19b94d(0xe6)]});if(_0x1f435f[_0x19b94d(0xdc)]==='not_needed')return{'ok':!![],'data':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':![],'outcome':_0x19b94d(0xec)},'message':_0x19b94d(0xdf)};return{'ok':!![],'data':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':!![],'outcome':'submitted','jobId':_0x1f435f[_0x19b94d(0xe8)][_0x19b94d(0xf4)],'status':_0x1f435f[_0x19b94d(0xe8)][_0x19b94d(0xf6)]},'message':_0x19b94d(0xe2)+_0x1f435f[_0x19b94d(0xe8)]['jobId']+'.'};}catch(_0x10e4ef){if(!isPlatformTransportFailure(_0x10e4ef))throw _0x10e4ef;const _0xee6ffb=new CliError(_0x19b94d(0xd5),0x2,_0x19b94d(0xd7),_0x19b94d(0xd9));Object['defineProperty'](_0xee6ffb,_0x19b94d(0xed),{'enumerable':!![],'value':{'operation':_0x19b94d(0xef),'appCode':_0x584b64[_0x19b94d(0xe6)],'submitted':null,'outcome':_0x19b94d(0xf2)}});throw _0xee6ffb;}}};function buildPreview(_0xdc3af4){const _0x2e516e=a121_0x3c1965;return{'operation':_0x2e516e(0xef),'selector':{'appCode':_0xdc3af4,'scope':_0x2e516e(0xe9)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x2e516e(0xdd)},'warnings':[]};}
1
+ const a121_0x489cf3=a121_0x305c;(function(_0x1bc2d1,_0x334cb7){const _0x3b61d4=a121_0x305c,_0x43171f=_0x1bc2d1();while(!![]){try{const _0x56c54e=parseInt(_0x3b61d4(0x174))/0x1+-parseInt(_0x3b61d4(0x18d))/0x2*(parseInt(_0x3b61d4(0x175))/0x3)+parseInt(_0x3b61d4(0x17e))/0x4+-parseInt(_0x3b61d4(0x187))/0x5+-parseInt(_0x3b61d4(0x179))/0x6+parseInt(_0x3b61d4(0x18f))/0x7*(parseInt(_0x3b61d4(0x180))/0x8)+parseInt(_0x3b61d4(0x17d))/0x9*(parseInt(_0x3b61d4(0x188))/0xa);if(_0x56c54e===_0x334cb7)break;else _0x43171f['push'](_0x43171f['shift']());}catch(_0x1a8034){_0x43171f['push'](_0x43171f['shift']());}}}(a121_0x1a02,0xb2c16));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a121_0x1a02(){const _0x4573cb=['confirm','status','5306904fcqOqz','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','9TqPksR','647248jIMXdm','deployment_sync_submit_outcome_unknown','1464aeDaXl','appCode','application_deployment_sync','Submitted\x20deployment\x20synchronization\x20job\x20','not_submitted','submitted','job','3633230RBFBvM','14477450UCvjXT','defineProperty','jobId','unknown','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','15682GpIUwa','not_needed','44947dQBwsx','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','data','write','validation','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','664293wpVvDQ','423nGSrcU','deployment'];a121_0x1a02=function(){return _0x4573cb;};return a121_0x1a02();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x305c(_0x3a04d2,_0x2a2d7c){_0x3a04d2=_0x3a04d2-0x173;const _0x1a0248=a121_0x1a02();let _0x305cd5=_0x1a0248[_0x3a04d2];return _0x305cd5;}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a121_0x489cf3(0x195)};export const deploymentSyncAll={'service':a121_0x489cf3(0x176),'command':'sync-all','description':a121_0x489cf3(0x17a),'risk':a121_0x489cf3(0x192),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x489cf3(0x190),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x1be64f){const _0x1e24fe=a121_0x489cf3;return asDryRunResult(buildPreview(_0x1be64f[_0x1e24fe(0x181)]),{'method':'POST','url':SUBMIT_PATH,'description':_0x1e24fe(0x173)});},async 'execute'(_0x15a320){const _0x246f09=a121_0x489cf3;if(!_0x15a320['bool'](_0x246f09(0x177)))throw CliErrors[_0x246f09(0x193)](_0x246f09(0x18c),_0x246f09(0x17c));try{const _0x4c997c=await submitDeploymentMetadataSyncAll({'appCode':_0x15a320[_0x246f09(0x181)]});if(_0x4c997c['outcome']===_0x246f09(0x18e))return{'ok':!![],'data':{'operation':_0x246f09(0x182),'appCode':_0x15a320['appCode'],'submitted':![],'outcome':'not_needed'},'message':_0x246f09(0x194)};return{'ok':!![],'data':{'operation':_0x246f09(0x182),'appCode':_0x15a320[_0x246f09(0x181)],'submitted':!![],'outcome':_0x246f09(0x185),'jobId':_0x4c997c['job'][_0x246f09(0x18a)],'status':_0x4c997c[_0x246f09(0x186)][_0x246f09(0x178)]},'message':_0x246f09(0x183)+_0x4c997c[_0x246f09(0x186)][_0x246f09(0x18a)]+'.'};}catch(_0x5ac1e8){if(!isPlatformTransportFailure(_0x5ac1e8))throw _0x5ac1e8;const _0x1a989c=new CliError(_0x246f09(0x17f),0x2,_0x246f09(0x17b),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x246f09(0x189)](_0x1a989c,_0x246f09(0x191),{'enumerable':!![],'value':{'operation':_0x246f09(0x182),'appCode':_0x15a320['appCode'],'submitted':null,'outcome':_0x246f09(0x18b)}});throw _0x1a989c;}}};function buildPreview(_0x51b554){const _0x56765f=a121_0x489cf3;return{'operation':_0x56765f(0x182),'selector':{'appCode':_0x51b554,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x56765f(0x184)},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x4ea57b=a122_0xcd8e;(function(_0x3715a9,_0x264a03){const _0x219806=a122_0xcd8e,_0x206b2d=_0x3715a9();while(!![]){try{const _0x137b40=-parseInt(_0x219806(0x163))/0x1*(-parseInt(_0x219806(0x14d))/0x2)+-parseInt(_0x219806(0x150))/0x3*(parseInt(_0x219806(0x159))/0x4)+parseInt(_0x219806(0x14b))/0x5+-parseInt(_0x219806(0x15d))/0x6*(-parseInt(_0x219806(0x143))/0x7)+parseInt(_0x219806(0x14e))/0x8*(-parseInt(_0x219806(0x144))/0x9)+-parseInt(_0x219806(0x153))/0xa+parseInt(_0x219806(0x151))/0xb*(parseInt(_0x219806(0x157))/0xc);if(_0x137b40===_0x264a03)break;else _0x206b2d['push'](_0x206b2d['shift']());}catch(_0x36f85d){_0x206b2d['push'](_0x206b2d['shift']());}}}(a122_0x3418,0x19ae9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';function a122_0x3418(){const _0x585aa8=['396yKTVVo','num','96760hNJbuP','isSafeInteger','\x20deployment\x20synchronization\x20job(s).','List\x20application\x20deployment\x20synchronization\x20jobs','22068iOTvAm','current-page','17048OEMNPk','str','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','read','6546tivGzP','Optional\x20server-defined\x20job\x20status\x20filter','deployment','Found\x20','appCode','status','35346qeaddW','35YQbCcr','88461YtcSIm','validation','trim','page-size','Page\x20number','sync-jobs','length','811820YHeLyc','number','6HZYyOV','48JNVgxf','Items\x20per\x20page\x20(maximum\x20100)','117pqUPMu'];a122_0x3418=function(){return _0x585aa8;};return a122_0x3418();}function a122_0xcd8e(_0x5a1635,_0x470acf){_0x5a1635=_0x5a1635-0x143;const _0x3418ae=a122_0x3418();let _0xcd8eed=_0x3418ae[_0x5a1635];return _0xcd8eed;}import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x4ea57b(0x15f),'command':a122_0x4ea57b(0x149),'description':a122_0x4ea57b(0x156),'risk':a122_0x4ea57b(0x15c),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x4ea57b(0x158),'type':a122_0x4ea57b(0x14c),'default':0x1,'description':a122_0x4ea57b(0x148)},{'name':a122_0x4ea57b(0x147),'type':a122_0x4ea57b(0x14c),'default':0xa,'description':a122_0x4ea57b(0x14f)},{'name':a122_0x4ea57b(0x162),'type':'string','description':a122_0x4ea57b(0x15e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x133a98){const _0xef3a30=a122_0x4ea57b;readPaging(_0x133a98[_0xef3a30(0x152)]('current-page',0x1),_0x133a98[_0xef3a30(0x152)]('page-size',0xa));},async 'execute'(_0x561ca3){const _0x11d82b=a122_0x4ea57b,{currentPage:_0x35c8fa,pageSize:_0x4a77d5}=readPaging(_0x561ca3[_0x11d82b(0x152)](_0x11d82b(0x158),0x1),_0x561ca3['num']('page-size',0xa)),_0x31397b=_0x561ca3[_0x11d82b(0x15a)](_0x11d82b(0x162))[_0x11d82b(0x146)](),_0x488a30=await listDeploymentMetadataSyncJobs({'appCode':_0x561ca3[_0x11d82b(0x161)],'currentPage':_0x35c8fa,'pageSize':_0x4a77d5,..._0x31397b?{'status':_0x31397b}:{}});return{'ok':!![],'data':{'appCode':_0x561ca3[_0x11d82b(0x161)],..._0x488a30},'message':_0x11d82b(0x160)+_0x488a30['items'][_0x11d82b(0x14a)]+_0x11d82b(0x155)};}};function readPaging(_0x185801,_0x27c82b){const _0x5efc4b=a122_0x4ea57b;if(!Number[_0x5efc4b(0x154)](_0x185801)||_0x185801<0x1)throw CliErrors[_0x5efc4b(0x145)]('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x5efc4b(0x154)](_0x27c82b)||_0x27c82b<0x1||_0x27c82b>0x64)throw CliErrors[_0x5efc4b(0x145)](_0x5efc4b(0x15b));return{'currentPage':_0x185801,'pageSize':_0x27c82b};}
1
+ const a122_0x5302a0=a122_0x40be;(function(_0x162bfd,_0x38e764){const _0x1ff7d7=a122_0x40be,_0xd9274a=_0x162bfd();while(!![]){try{const _0x38d697=-parseInt(_0x1ff7d7(0x15a))/0x1*(parseInt(_0x1ff7d7(0x15b))/0x2)+parseInt(_0x1ff7d7(0x167))/0x3*(-parseInt(_0x1ff7d7(0x15c))/0x4)+parseInt(_0x1ff7d7(0x164))/0x5+parseInt(_0x1ff7d7(0x14f))/0x6*(parseInt(_0x1ff7d7(0x16a))/0x7)+-parseInt(_0x1ff7d7(0x156))/0x8*(parseInt(_0x1ff7d7(0x154))/0x9)+parseInt(_0x1ff7d7(0x14d))/0xa*(parseInt(_0x1ff7d7(0x14c))/0xb)+parseInt(_0x1ff7d7(0x169))/0xc*(parseInt(_0x1ff7d7(0x160))/0xd);if(_0x38d697===_0x38e764)break;else _0xd9274a['push'](_0xd9274a['shift']());}catch(_0x47ab2e){_0xd9274a['push'](_0xd9274a['shift']());}}}(a122_0x1c31,0xb4d3c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a122_0x5302a0(0x152),'command':a122_0x5302a0(0x151),'description':a122_0x5302a0(0x153),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x5302a0(0x162),'type':a122_0x5302a0(0x166),'default':0x1,'description':a122_0x5302a0(0x155)},{'name':a122_0x5302a0(0x157),'type':'number','default':0xa,'description':'Items\x20per\x20page\x20(maximum\x20100)'},{'name':a122_0x5302a0(0x165),'type':a122_0x5302a0(0x158),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5f298c){const _0x332de5=a122_0x5302a0;readPaging(_0x5f298c['num'](_0x332de5(0x162),0x1),_0x5f298c[_0x332de5(0x15d)](_0x332de5(0x157),0xa));},async 'execute'(_0x2356f5){const _0xc562f4=a122_0x5302a0,{currentPage:_0x418ed6,pageSize:_0x54bbb7}=readPaging(_0x2356f5[_0xc562f4(0x15d)](_0xc562f4(0x162),0x1),_0x2356f5[_0xc562f4(0x15d)](_0xc562f4(0x157),0xa)),_0x5408ab=_0x2356f5[_0xc562f4(0x150)](_0xc562f4(0x165))['trim'](),_0x2aa7dc=await listDeploymentMetadataSyncJobs({'appCode':_0x2356f5[_0xc562f4(0x168)],'currentPage':_0x418ed6,'pageSize':_0x54bbb7,..._0x5408ab?{'status':_0x5408ab}:{}});return{'ok':!![],'data':{'appCode':_0x2356f5[_0xc562f4(0x168)],..._0x2aa7dc},'message':_0xc562f4(0x15e)+_0x2aa7dc[_0xc562f4(0x161)]['length']+'\x20deployment\x20synchronization\x20job(s).'};}};function readPaging(_0x18bf32,_0x4ae9cf){const _0x592572=a122_0x5302a0;if(!Number[_0x592572(0x14e)](_0x18bf32)||_0x18bf32<0x1)throw CliErrors['validation'](_0x592572(0x159));if(!Number[_0x592572(0x14e)](_0x4ae9cf)||_0x4ae9cf<0x1||_0x4ae9cf>0x64)throw CliErrors[_0x592572(0x15f)](_0x592572(0x163));return{'currentPage':_0x18bf32,'pageSize':_0x4ae9cf};}function a122_0x40be(_0x456a5b,_0x11b0fc){_0x456a5b=_0x456a5b-0x14c;const _0x1c3175=a122_0x1c31();let _0x40be0d=_0x1c3175[_0x456a5b];return _0x40be0d;}function a122_0x1c31(){const _0x2e9897=['string','--current-page\x20must\x20be\x20a\x20positive\x20integer.','181163yLCfjy','6WXBOHu','123196xvDXSl','num','Found\x20','validation','3305367birBaP','items','current-page','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','3180845nOaWxX','status','number','57LVxfmk','appCode','36yQirFz','7nWULnP','70686AxZVMT','1080ForuvO','isSafeInteger','6578064FaTPnB','str','sync-jobs','deployment','List\x20application\x20deployment\x20synchronization\x20jobs','180wWuQKw','Page\x20number','527984UEGaxu','page-size'];a122_0x1c31=function(){return _0x2e9897;};return a122_0x1c31();}
@@ -1 +1 @@
1
- function a123_0x5c6b(_0x23af3f,_0x54fcc0){_0x23af3f=_0x23af3f-0x7e;const _0x1d05e0=a123_0x1d05();let _0x5c6b69=_0x1d05e0[_0x23af3f];return _0x5c6b69;}const a123_0x31105a=a123_0x5c6b;(function(_0x10f4e5,_0x5c16b8){const _0x244799=a123_0x5c6b,_0x2ec6fc=_0x10f4e5();while(!![]){try{const _0x281ddb=parseInt(_0x244799(0x8d))/0x1*(-parseInt(_0x244799(0x9f))/0x2)+-parseInt(_0x244799(0x7e))/0x3*(parseInt(_0x244799(0x8c))/0x4)+parseInt(_0x244799(0x8e))/0x5+-parseInt(_0x244799(0xa3))/0x6*(-parseInt(_0x244799(0x8b))/0x7)+-parseInt(_0x244799(0x91))/0x8*(parseInt(_0x244799(0xa0))/0x9)+-parseInt(_0x244799(0x94))/0xa+parseInt(_0x244799(0x9e))/0xb;if(_0x281ddb===_0x5c16b8)break;else _0x2ec6fc['push'](_0x2ec6fc['shift']());}catch(_0x2b3524){_0x2ec6fc['push'](_0x2ec6fc['shift']());}}}(a123_0x1d05,0xa4b2d));function a123_0x1d05(){const _0x45d75c=['sync-status','filter','Deployment\x20synchronization\x20job\x20ID','num','action',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','PARTIAL_SUCCESS','25706395HdVFkL','86sCTRLp','10559367MiBiZW','length','PENDING','24798aaNXCm','3SNlYmy','SUCCESS','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','RUNNING','deployment','results','bizType','number','job-id','isSafeInteger','map','has','910nfipJW','1046244NKHvBm','9014fUErPl','1778290gVMMbe','validation','Deployment\x20synchronization\x20job\x20','8IOnwKq','appCode','Preserved\x20server-defined\x20status\x20','7328620XFUhHZ','\x20is\x20','FAILED'];a123_0x1d05=function(){return _0x45d75c;};return a123_0x1d05();}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x31105a(0x7f),a123_0x31105a(0x9d),a123_0x31105a(0x96)]),ACTIVE_STATUSES=new Set([a123_0x31105a(0xa2),a123_0x31105a(0x82)]);export const deploymentSyncStatus={'service':a123_0x31105a(0x83),'command':a123_0x31105a(0x97),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x31105a(0x87),'type':a123_0x31105a(0x86),'required':!![],'description':a123_0x31105a(0x99)}],async 'validate'(_0x5cbce4){const _0x56cbf2=a123_0x31105a;readJobId(_0x5cbce4[_0x56cbf2(0x9a)](_0x56cbf2(0x87)));},async 'execute'(_0x43fc80){const _0x255b31=a123_0x31105a,_0x44b28a=readJobId(_0x43fc80[_0x255b31(0x9a)]('job-id')),_0x1b51e7=await getDeploymentMetadataSyncStatus({'jobId':_0x44b28a,'appCode':_0x43fc80[_0x255b31(0x92)]}),_0xbed430=TERMINAL_STATUSES[_0x255b31(0x8a)](_0x1b51e7[_0x255b31(0x81)])?!![]:ACTIVE_STATUSES['has'](_0x1b51e7[_0x255b31(0x81)])?![]:null,_0x243643=countBy(_0x1b51e7['results'][_0x255b31(0x89)](_0x18cafc=>_0x18cafc[_0x255b31(0x85)])),_0x1c2396=countBy(_0x1b51e7[_0x255b31(0x84)][_0x255b31(0x89)](_0x2daab4=>_0x2daab4[_0x255b31(0x9b)])),_0x5c46ed=_0xbed430===null?[_0x255b31(0x93)+_0x1b51e7['status']+_0x255b31(0x9c)]:[];return{'ok':!![],'data':{'job':_0x1b51e7,'isTerminal':_0xbed430,'summary':{'total':_0x1b51e7[_0x255b31(0x84)][_0x255b31(0xa1)],'failed':_0x1b51e7[_0x255b31(0x84)][_0x255b31(0x98)](_0xdffa1b=>_0xdffa1b[_0x255b31(0x9b)]===_0x255b31(0x96))[_0x255b31(0xa1)],'byBizType':_0x243643,'byAction':_0x1c2396},'warnings':_0x5c46ed},'message':_0x255b31(0x90)+_0x44b28a+_0x255b31(0x95)+_0x1b51e7['status']+'.'};}};function readJobId(_0x406d38){const _0x407c50=a123_0x31105a;if(!Number[_0x407c50(0x88)](_0x406d38)||_0x406d38<=0x0)throw CliErrors[_0x407c50(0x8f)](_0x407c50(0x80));return _0x406d38;}function countBy(_0x22a1b9){return _0x22a1b9['reduce']((_0x33c3f4,_0x2fad32)=>{return _0x33c3f4[_0x2fad32]=(_0x33c3f4[_0x2fad32]??0x0)+0x1,_0x33c3f4;},{});}
1
+ const a123_0x3fc5ac=a123_0x4170;(function(_0x160dfd,_0x301076){const _0x5de5c7=a123_0x4170,_0x40b928=_0x160dfd();while(!![]){try{const _0x29f361=-parseInt(_0x5de5c7(0x204))/0x1*(-parseInt(_0x5de5c7(0x1f7))/0x2)+-parseInt(_0x5de5c7(0x1fd))/0x3+-parseInt(_0x5de5c7(0x1ef))/0x4+-parseInt(_0x5de5c7(0x20a))/0x5*(parseInt(_0x5de5c7(0x206))/0x6)+parseInt(_0x5de5c7(0x1f5))/0x7*(-parseInt(_0x5de5c7(0x1fc))/0x8)+parseInt(_0x5de5c7(0x1fb))/0x9+parseInt(_0x5de5c7(0x1ff))/0xa;if(_0x29f361===_0x301076)break;else _0x40b928['push'](_0x40b928['shift']());}catch(_0x2d5bfd){_0x40b928['push'](_0x40b928['shift']());}}}(a123_0x35e2,0xb662d));function a123_0x35e2(){const _0x203f24=['2244957JlDKCu','reduce','16894090RsMFLl','has','num','job-id','bizType','170811PpBTQo','appCode','1506nHxjhS','Deployment\x20synchronization\x20job\x20ID','RUNNING','FAILED','13255fbOWAf','SUCCESS','642664pkGEjl','sync-status','results','Preserved\x20server-defined\x20status\x20','PARTIAL_SUCCESS','isSafeInteger','14FpKjTK','number','2cHQsNg','length','status','action','6637005WAbpFg','1104904HuqqPb'];a123_0x35e2=function(){return _0x203f24;};return a123_0x35e2();}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x3fc5ac(0x1ee),a123_0x3fc5ac(0x1f3),'FAILED']),ACTIVE_STATUSES=new Set(['PENDING',a123_0x3fc5ac(0x208)]);export const deploymentSyncStatus={'service':'deployment','command':a123_0x3fc5ac(0x1f0),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x3fc5ac(0x202),'type':a123_0x3fc5ac(0x1f6),'required':!![],'description':a123_0x3fc5ac(0x207)}],async 'validate'(_0x2da746){const _0x2f642c=a123_0x3fc5ac;readJobId(_0x2da746[_0x2f642c(0x201)](_0x2f642c(0x202)));},async 'execute'(_0x252158){const _0xfb625e=a123_0x3fc5ac,_0x564faa=readJobId(_0x252158['num'](_0xfb625e(0x202))),_0xc9beed=await getDeploymentMetadataSyncStatus({'jobId':_0x564faa,'appCode':_0x252158[_0xfb625e(0x205)]}),_0x24ecf1=TERMINAL_STATUSES[_0xfb625e(0x200)](_0xc9beed[_0xfb625e(0x1f9)])?!![]:ACTIVE_STATUSES[_0xfb625e(0x200)](_0xc9beed['status'])?![]:null,_0x56f769=countBy(_0xc9beed['results']['map'](_0x111b8b=>_0x111b8b[_0xfb625e(0x203)])),_0xa421ec=countBy(_0xc9beed[_0xfb625e(0x1f1)]['map'](_0x393245=>_0x393245[_0xfb625e(0x1fa)])),_0x16cbca=_0x24ecf1===null?[_0xfb625e(0x1f2)+_0xc9beed['status']+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0xc9beed,'isTerminal':_0x24ecf1,'summary':{'total':_0xc9beed[_0xfb625e(0x1f1)]['length'],'failed':_0xc9beed[_0xfb625e(0x1f1)]['filter'](_0x26fab3=>_0x26fab3[_0xfb625e(0x1fa)]===_0xfb625e(0x209))[_0xfb625e(0x1f8)],'byBizType':_0x56f769,'byAction':_0xa421ec},'warnings':_0x16cbca},'message':'Deployment\x20synchronization\x20job\x20'+_0x564faa+'\x20is\x20'+_0xc9beed['status']+'.'};}};function readJobId(_0x264c32){const _0x19c3ed=a123_0x3fc5ac;if(!Number[_0x19c3ed(0x1f4)](_0x264c32)||_0x264c32<=0x0)throw CliErrors['validation']('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x264c32;}function a123_0x4170(_0x43cae8,_0x33f443){_0x43cae8=_0x43cae8-0x1ee;const _0x35e243=a123_0x35e2();let _0x417028=_0x35e243[_0x43cae8];return _0x417028;}function countBy(_0x111300){const _0x1e6a86=a123_0x3fc5ac;return _0x111300[_0x1e6a86(0x1fe)]((_0x524300,_0x172530)=>{return _0x524300[_0x172530]=(_0x524300[_0x172530]??0x0)+0x1,_0x524300;},{});}