@lovrabet/rabetbase-cli 2.5.7 → 2.5.8-beta.1

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 (375) 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/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.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/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/services/dataset-design/checkpoint.js +1 -1
  338. package/lib/services/dataset-design/commands.js +1 -1
  339. package/lib/services/dataset-design/contract.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/utils/ai_config.js +1 -1
  351. package/lib/utils/apply-jq-filter.js +1 -1
  352. package/lib/utils/cdn-config.js +1 -1
  353. package/lib/utils/check-sdk-version.js +1 -1
  354. package/lib/utils/cli-version-check.js +1 -1
  355. package/lib/utils/cli-version-policy.js +1 -1
  356. package/lib/utils/config.js +1 -1
  357. package/lib/utils/entity-with-id.js +1 -1
  358. package/lib/utils/file-utils.js +1 -1
  359. package/lib/utils/guides-cdn.js +1 -1
  360. package/lib/utils/http-client.js +1 -1
  361. package/lib/utils/is-non-interactive.js +1 -1
  362. package/lib/utils/logger.js +1 -1
  363. package/lib/utils/params.js +1 -1
  364. package/lib/utils/platform.js +1 -1
  365. package/lib/utils/sleep.js +1 -1
  366. package/lib/utils/template-replacer.js +1 -1
  367. package/lib/utils/update-notice.js +1 -1
  368. package/lib/utils/version.js +1 -1
  369. package/lib/utils/with-active-cookie.js +1 -1
  370. package/lib/utils/write-cli-side-channel.js +1 -1
  371. package/package.json +1 -1
  372. package/skills/rabetbase/SKILL.md +1 -1
  373. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  374. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  375. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a108_0x1e8211=a108_0x1710;(function(_0x3def5e,_0x49d4ee){const _0x2ce678=a108_0x1710,_0x2b49e4=_0x3def5e();while(!![]){try{const _0x14f694=-parseInt(_0x2ce678(0x9a))/0x1+-parseInt(_0x2ce678(0xb6))/0x2+parseInt(_0x2ce678(0x97))/0x3+parseInt(_0x2ce678(0xac))/0x4+-parseInt(_0x2ce678(0x98))/0x5*(parseInt(_0x2ce678(0x9e))/0x6)+-parseInt(_0x2ce678(0xab))/0x7*(-parseInt(_0x2ce678(0x9c))/0x8)+parseInt(_0x2ce678(0xb1))/0x9*(-parseInt(_0x2ce678(0xb9))/0xa);if(_0x14f694===_0x49d4ee)break;else _0x2b49e4['push'](_0x2b49e4['shift']());}catch(_0x8f75cb){_0x2b49e4['push'](_0x2b49e4['shift']());}}}(a108_0x1a74,0x9f73e));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a108_0x1a74(){const _0x59c704=['19410QHUzWb','Expected\x20','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','DB_TABLE','datasets','num','\x20still\x20has\x20','flag','boolean','validation','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','activeDatasetCount','1536255KccdjP','4916876yLlBUz','high-risk-write','\x20active\x20DB_TABLE\x20Dataset(s).','Database\x20connection\x20','expected-dataset-count','261YxQSmB','Deletion\x20is\x20blocked\x20by\x20','Logically\x20delete\x20a\x20database\x20connection\x20(dblink)','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','confirm','1675078AgehKV','datasetDependency','number','116990FznWAT','Deleted\x20db\x20link\x20','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','appCode','2847072UvggEJ','830AFoKYI','all','469700aCsqtZ','isInteger','24vIROlS','delete'];a108_0x1a74=function(){return _0x59c704;};return a108_0x1a74();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a108_0x1e8211(0xb5),'type':a108_0x1e8211(0xa6),'description':a108_0x1e8211(0x94)},EXPECTED_DATASET_COUNT_FLAG={'name':'expected-dataset-count','type':a108_0x1e8211(0xb8),'description':a108_0x1e8211(0xa8)};export const dbDelete={'service':'db','command':a108_0x1e8211(0x9d),'description':a108_0x1e8211(0xb3),'risk':a108_0x1e8211(0xad),'flags':[DBLINK_ID_FLAG,CONFIRM_FLAG,EXPECTED_DATASET_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x10ab24){const _0x2c8dc9=a108_0x1e8211,_0x24bc0f=await loadDeleteImpact(_0x10ab24);return assertExpectedDatasetCount(_0x10ab24,_0x24bc0f[_0x2c8dc9(0xb7)]['activeDatasetCount']),{'method':'POST','url':'/smartapi/dblink/delete','body':{'id':_0x24bc0f['id']},'description':_0x24bc0f[_0x2c8dc9(0xb7)][_0x2c8dc9(0xaa)]>0x0?_0x2c8dc9(0xb2)+_0x24bc0f[_0x2c8dc9(0xb7)][_0x2c8dc9(0xaa)]+_0x2c8dc9(0xae):'Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.',..._0x24bc0f};},async 'execute'(_0x222caa){const _0x1c0132=a108_0x1e8211;if(!_0x222caa['bool']('confirm'))throw CliErrors[_0x1c0132(0xa7)](_0x1c0132(0xa0),_0x1c0132(0xa9));const _0x1052eb=_0x222caa[_0x1c0132(0xa3)]('id'),_0x4ad486=await loadDeleteImpact(_0x222caa),_0x1528c0=_0x4ad486[_0x1c0132(0xb7)][_0x1c0132(0xaa)];assertExpectedDatasetCount(_0x222caa,_0x1528c0);if(_0x1528c0>0x0)throw CliErrors['validation'](_0x1c0132(0xaf)+_0x1052eb+_0x1c0132(0xa4)+_0x1528c0+'\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.',_0x1c0132(0xb4));return await deleteDbLink(_0x1052eb),{'ok':!![],'data':{'id':_0x1052eb,'deleted':!![],'activeDatasetCount':_0x1528c0},'message':_0x1c0132(0xba)+_0x1052eb};}};function a108_0x1710(_0x15a33c,_0x346d1f){_0x15a33c=_0x15a33c-0x94;const _0x1a74a9=a108_0x1a74();let _0x1710cd=_0x1a74a9[_0x15a33c];return _0x1710cd;}async function loadDeleteImpact(_0x5ce5e0){const _0x39141d=a108_0x1e8211,_0x47c8b4=_0x5ce5e0[_0x39141d(0xa3)]('id'),[_0x277cba,_0x18dcf3]=await Promise[_0x39141d(0x99)]([getDbLinkInfo(_0x47c8b4),listDatasets(_0x5ce5e0[_0x39141d(0x96)],{'source':_0x39141d(0xa1)})]),_0x12efde=buildDbDatasetDependency(_0x277cba,_0x18dcf3);return{'id':_0x47c8b4,'connection':sanitizeDbLinkForOutput(_0x277cba),'datasetDependency':_0x12efde[_0x39141d(0xb7)],'activeDatasetCount':_0x12efde[_0x39141d(0xb7)][_0x39141d(0xaa)],'datasets':_0x12efde[_0x39141d(0xa2)]};}function assertExpectedDatasetCount(_0x319b2f,_0x291a91){const _0x2e947a=a108_0x1e8211,_0x28878b=_0x319b2f[_0x2e947a(0xa5)](_0x2e947a(0xb0));if(_0x28878b===undefined||_0x28878b==='')return;const _0xb41b13=_0x319b2f[_0x2e947a(0xa3)](_0x2e947a(0xb0));if(!Number[_0x2e947a(0x9b)](_0xb41b13)||_0xb41b13<0x0)throw CliErrors[_0x2e947a(0xa7)]('--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.');if(_0xb41b13!==_0x291a91)throw CliErrors['validation'](_0x2e947a(0x9f)+_0xb41b13+'\x20active\x20Dataset(s),\x20but\x20found\x20'+_0x291a91+'.',_0x2e947a(0x95));}
1
+ const a108_0x4f5605=a108_0x2be5;(function(_0x5c7718,_0x546996){const _0xcef3f7=a108_0x2be5,_0x4fae72=_0x5c7718();while(!![]){try{const _0x2df88c=parseInt(_0xcef3f7(0xaf))/0x1*(parseInt(_0xcef3f7(0x91))/0x2)+-parseInt(_0xcef3f7(0xb3))/0x3*(parseInt(_0xcef3f7(0xb2))/0x4)+parseInt(_0xcef3f7(0xa2))/0x5+parseInt(_0xcef3f7(0x9d))/0x6+-parseInt(_0xcef3f7(0xb1))/0x7+parseInt(_0xcef3f7(0xab))/0x8+parseInt(_0xcef3f7(0x9e))/0x9*(-parseInt(_0xcef3f7(0x9b))/0xa);if(_0x2df88c===_0x546996)break;else _0x4fae72['push'](_0x4fae72['shift']());}catch(_0x26835e){_0x4fae72['push'](_0x4fae72['shift']());}}}(a108_0x4c97,0x6b17b));import{deleteDbLink,getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a108_0x4c97(){const _0x36e248=['1003009rafcRJ','3084frRDPG','555tnvtbK','boolean','datasets','num','65306FIPKET','Database\x20connection\x20','Run\x20with\x20--dry-run\x20first\x20and\x20verify\x20the\x20active\x20Dataset\x20count.','activeDatasetCount','delete','isInteger','\x20active\x20Dataset(s);\x20deletion\x20is\x20blocked.','--expected-dataset-count\x20must\x20be\x20a\x20non-negative\x20integer.','validation','expected-dataset-count','1265410RSZJuD','POST','990996EneNZw','72ZXLMmh','datasetDependency','Expected\x20','Delete\x20or\x20migrate\x20the\x20listed\x20DB_TABLE\x20Datasets\x20first.\x20There\x20is\x20no\x20force\x20bypass.','1634840grKqGJ','Deletion\x20is\x20blocked\x20by\x20','Confirm\x20deletion\x20after\x20reviewing\x20the\x20active\x20Dataset\x20count','Abort\x20unless\x20the\x20active\x20DB_TABLE\x20Dataset\x20count\x20equals\x20this\x20value','appCode','all','Run\x20--dry-run\x20again\x20and\x20review\x20the\x20current\x20dependencies.','confirm','\x20active\x20Dataset(s),\x20but\x20found\x20','6039776JYPBFK','--confirm\x20is\x20required\x20to\x20delete\x20a\x20database\x20connection.','/smartapi/dblink/delete','\x20still\x20has\x20','15jTJzkR','Deleted\x20db\x20link\x20'];a108_0x4c97=function(){return _0x36e248;};return a108_0x4c97();}function a108_0x2be5(_0x2187ef,_0xa104e6){_0x2187ef=_0x2187ef-0x91;const _0x4c9771=a108_0x4c97();let _0x2be5ce=_0x4c9771[_0x2187ef];return _0x2be5ce;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';const CONFIRM_FLAG={'name':a108_0x4f5605(0xa9),'type':a108_0x4f5605(0xb4),'description':a108_0x4f5605(0xa4)},EXPECTED_DATASET_COUNT_FLAG={'name':a108_0x4f5605(0x9a),'type':'number','description':a108_0x4f5605(0xa5)};export const dbDelete={'service':'db','command':a108_0x4f5605(0x95),'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'(_0x4c4368){const _0x8254b1=a108_0x4f5605,_0x496d3e=await loadDeleteImpact(_0x4c4368);return assertExpectedDatasetCount(_0x4c4368,_0x496d3e[_0x8254b1(0x9f)][_0x8254b1(0x94)]),{'method':_0x8254b1(0x9c),'url':_0x8254b1(0xad),'body':{'id':_0x496d3e['id']},'description':_0x496d3e['datasetDependency'][_0x8254b1(0x94)]>0x0?_0x8254b1(0xa3)+_0x496d3e[_0x8254b1(0x9f)][_0x8254b1(0x94)]+'\x20active\x20DB_TABLE\x20Dataset(s).':'Would\x20logically\x20delete\x20this\x20dependency-free\x20database\x20connection\x20after\x20--confirm.',..._0x496d3e};},async 'execute'(_0x515faf){const _0x23cac1=a108_0x4f5605;if(!_0x515faf['bool'](_0x23cac1(0xa9)))throw CliErrors[_0x23cac1(0x99)](_0x23cac1(0xac),_0x23cac1(0x93));const _0x1c616d=_0x515faf[_0x23cac1(0xb6)]('id'),_0x3df521=await loadDeleteImpact(_0x515faf),_0x2973a9=_0x3df521[_0x23cac1(0x9f)][_0x23cac1(0x94)];assertExpectedDatasetCount(_0x515faf,_0x2973a9);if(_0x2973a9>0x0)throw CliErrors[_0x23cac1(0x99)](_0x23cac1(0x92)+_0x1c616d+_0x23cac1(0xae)+_0x2973a9+_0x23cac1(0x97),_0x23cac1(0xa1));return await deleteDbLink(_0x1c616d),{'ok':!![],'data':{'id':_0x1c616d,'deleted':!![],'activeDatasetCount':_0x2973a9},'message':_0x23cac1(0xb0)+_0x1c616d};}};async function loadDeleteImpact(_0x4fe481){const _0x5d0b26=a108_0x4f5605,_0x336602=_0x4fe481['num']('id'),[_0x6a8f53,_0x19faa7]=await Promise[_0x5d0b26(0xa7)]([getDbLinkInfo(_0x336602),listDatasets(_0x4fe481[_0x5d0b26(0xa6)],{'source':'DB_TABLE'})]),_0x43ec48=buildDbDatasetDependency(_0x6a8f53,_0x19faa7);return{'id':_0x336602,'connection':sanitizeDbLinkForOutput(_0x6a8f53),'datasetDependency':_0x43ec48[_0x5d0b26(0x9f)],'activeDatasetCount':_0x43ec48[_0x5d0b26(0x9f)]['activeDatasetCount'],'datasets':_0x43ec48[_0x5d0b26(0xb5)]};}function assertExpectedDatasetCount(_0x1ef6f7,_0x15c3fe){const _0x3b9b2f=a108_0x4f5605,_0x51e622=_0x1ef6f7['flag'](_0x3b9b2f(0x9a));if(_0x51e622===undefined||_0x51e622==='')return;const _0x368cb0=_0x1ef6f7['num'](_0x3b9b2f(0x9a));if(!Number[_0x3b9b2f(0x96)](_0x368cb0)||_0x368cb0<0x0)throw CliErrors[_0x3b9b2f(0x99)](_0x3b9b2f(0x98));if(_0x368cb0!==_0x15c3fe)throw CliErrors[_0x3b9b2f(0x99)](_0x3b9b2f(0xa0)+_0x368cb0+_0x3b9b2f(0xaa)+_0x15c3fe+'.',_0x3b9b2f(0xa8));}
@@ -1 +1 @@
1
- function a109_0x28cd(_0x1dfa39,_0x459d17){_0x1dfa39=_0x1dfa39-0x12e;const _0x1beae5=a109_0x1bea();let _0x28cd64=_0x1beae5[_0x1dfa39];return _0x28cd64;}const a109_0x4a3996=a109_0x28cd;(function(_0x53eee6,_0x257f4a){const _0x3f04cc=a109_0x28cd,_0x20c970=_0x53eee6();while(!![]){try{const _0x34f8f4=parseInt(_0x3f04cc(0x13d))/0x1+parseInt(_0x3f04cc(0x136))/0x2*(parseInt(_0x3f04cc(0x138))/0x3)+-parseInt(_0x3f04cc(0x13a))/0x4+parseInt(_0x3f04cc(0x139))/0x5*(parseInt(_0x3f04cc(0x13e))/0x6)+-parseInt(_0x3f04cc(0x132))/0x7+-parseInt(_0x3f04cc(0x12e))/0x8+parseInt(_0x3f04cc(0x135))/0x9;if(_0x34f8f4===_0x257f4a)break;else _0x20c970['push'](_0x20c970['shift']());}catch(_0x58df42){_0x20c970['push'](_0x20c970['shift']());}}}(a109_0x1bea,0xe9184));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';function a109_0x1bea(){const _0xfb0107=['1217382mRgqat','6XXZPzb','5523104fCEVTU','db\x20link\x20','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','detail','11893826ZYtDmT','read','dbName','4089933NimmNW','6130AvmxPU','DB_TABLE','453Enlpbc','9002870XQkYOG','2363784BcOgHh','datasetDependency','appCode'];a109_0x1bea=function(){return _0xfb0107;};return a109_0x1bea();}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_0x4a3996(0x131),'description':a109_0x4a3996(0x130),'risk':a109_0x4a3996(0x133),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x27d321){const _0x3613c9=a109_0x4a3996,_0x20a80a=_0x27d321['num']('id'),_0x3c0dd6=await getDbLinkInfo(_0x20a80a),_0x59535e=await listDatasets(_0x3c0dd6[_0x3613c9(0x13c)]||_0x27d321[_0x3613c9(0x13c)],{'source':_0x3613c9(0x137)}),_0x1f9ad0=buildDbDatasetDependency(_0x3c0dd6,_0x59535e);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x3c0dd6),'datasetDependency':_0x1f9ad0[_0x3613c9(0x13b)]},'message':_0x3613c9(0x12f)+_0x20a80a+':\x20'+_0x3c0dd6[_0x3613c9(0x134)]};}};
1
+ function a109_0x4b2a(){const _0x21605b=['num','213962Naszzl','376BIpmLr','180oBdhgd','6KBLMoZ','2317800xEpYhh','12567203cDuKBw','513210nhCnge','appCode','db\x20link\x20','dbName','257206kdFoih','1112950tJamaP','20862bRLQjk','2vjQQxt'];a109_0x4b2a=function(){return _0x21605b;};return a109_0x4b2a();}(function(_0xefa29a,_0x3bea57){const _0x2c3668=a109_0x5009,_0x14ff94=_0xefa29a();while(!![]){try{const _0x2f5c13=parseInt(_0x2c3668(0x193))/0x1*(-parseInt(_0x2c3668(0x187))/0x2)+parseInt(_0x2c3668(0x186))/0x3*(parseInt(_0x2c3668(0x18a))/0x4)+parseInt(_0x2c3668(0x185))/0x5*(-parseInt(_0x2c3668(0x18c))/0x6)+-parseInt(_0x2c3668(0x189))/0x7+parseInt(_0x2c3668(0x18d))/0x8+parseInt(_0x2c3668(0x18b))/0x9*(-parseInt(_0x2c3668(0x18f))/0xa)+parseInt(_0x2c3668(0x18e))/0xb;if(_0x2f5c13===_0x3bea57)break;else _0x14ff94['push'](_0x14ff94['shift']());}catch(_0x251a16){_0x14ff94['push'](_0x14ff94['shift']());}}}(a109_0x4b2a,0x860e4));import{getDbLinkInfo,listDatasets}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a109_0x5009(_0x6cd004,_0x246e64){_0x6cd004=_0x6cd004-0x185;const _0x4b2a21=a109_0x4b2a();let _0x5009d8=_0x4b2a21[_0x6cd004];return _0x5009d8;}export const dbDetail={'service':'db','command':'detail','description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd67a7d){const _0x589be3=a109_0x5009,_0x1bcc9d=_0xd67a7d[_0x589be3(0x188)]('id'),_0x37df47=await getDbLinkInfo(_0x1bcc9d),_0x18bd42=await listDatasets(_0x37df47[_0x589be3(0x190)]||_0xd67a7d[_0x589be3(0x190)],{'source':'DB_TABLE'}),_0x4dcc5e=buildDbDatasetDependency(_0x37df47,_0x18bd42);return{'ok':!![],'data':{...sanitizeDbLinkForOutput(_0x37df47),'datasetDependency':_0x4dcc5e['datasetDependency']},'message':_0x589be3(0x191)+_0x1bcc9d+':\x20'+_0x37df47[_0x589be3(0x192)]};}};
@@ -1 +1 @@
1
- const a110_0x5af84a=a110_0x4ab1;function a110_0x4ab1(_0x3a083e,_0x2ad50c){_0x3a083e=_0x3a083e-0x11c;const _0x4131d6=a110_0x4131();let _0x4ab1a8=_0x4131d6[_0x3a083e];return _0x4ab1a8;}(function(_0x10c056,_0x35edd3){const _0x624e6b=a110_0x4ab1,_0x8c1ee0=_0x10c056();while(!![]){try{const _0x1c8f24=parseInt(_0x624e6b(0x127))/0x1+parseInt(_0x624e6b(0x129))/0x2+-parseInt(_0x624e6b(0x12c))/0x3+-parseInt(_0x624e6b(0x11e))/0x4+parseInt(_0x624e6b(0x121))/0x5+parseInt(_0x624e6b(0x11d))/0x6+-parseInt(_0x624e6b(0x123))/0x7;if(_0x1c8f24===_0x35edd3)break;else _0x8c1ee0['push'](_0x8c1ee0['shift']());}catch(_0xcf579b){_0x8c1ee0['push'](_0x8c1ee0['shift']());}}}(a110_0x4131,0xda299));import{startDbTableDiffRefresh}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a110_0x4131(){const _0x12ba5a=['7915817HRTFfB','diff-refresh-start','appCode','write','358400ihsgHR','num','3447016TQCeNP','validation','status','4502277QxxwBL','trim','3552978koDTfw','1309032cWRZBB','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result','traceId','5891850BWGmjR','\x20--format\x20compress'];a110_0x4131=function(){return _0x12ba5a;};return a110_0x4131();}export const dbDiffRefreshStart={'service':'db','command':a110_0x5af84a(0x124),'description':a110_0x5af84a(0x11f),'risk':a110_0x5af84a(0x126),'flags':[DBLINK_ID_FLAG],async 'execute'(_0xa23cd2){const _0x14d0c6=a110_0x5af84a,_0x57ed31=_0xa23cd2[_0x14d0c6(0x128)]('id'),_0x924f14=await startDbTableDiffRefresh(_0xa23cd2[_0x14d0c6(0x125)],_0x57ed31),_0x516b62=_0x924f14[_0x14d0c6(0x120)]?.[_0x14d0c6(0x11c)]();if(!_0x516b62)throw CliErrors[_0x14d0c6(0x12a)]('Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.');return{'ok':!![],'data':{'dbLinkId':_0x57ed31,'traceId':_0x516b62,'status':_0x924f14[_0x14d0c6(0x12b)]??null,'query':{'command':CLI_BIN_NAME+'\x20db\x20diff-refresh-status\x20--id\x20'+_0x57ed31+'\x20--plan\x20'+_0x516b62+_0x14d0c6(0x122)}},'message':'Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20'+_0x57ed31};}};
1
+ const a110_0x18370d=a110_0x2c4e;(function(_0x5e8d5d,_0x525813){const _0x457163=a110_0x2c4e,_0x1f964a=_0x5e8d5d();while(!![]){try{const _0x44fec2=-parseInt(_0x457163(0xc1))/0x1+-parseInt(_0x457163(0xbc))/0x2*(parseInt(_0x457163(0xba))/0x3)+-parseInt(_0x457163(0xc3))/0x4+parseInt(_0x457163(0xc0))/0x5+parseInt(_0x457163(0xc5))/0x6*(parseInt(_0x457163(0xbd))/0x7)+-parseInt(_0x457163(0xb9))/0x8*(parseInt(_0x457163(0xbb))/0x9)+parseInt(_0x457163(0xc2))/0xa;if(_0x44fec2===_0x525813)break;else _0x1f964a['push'](_0x1f964a['shift']());}catch(_0x2c9d1f){_0x1f964a['push'](_0x1f964a['shift']());}}}(a110_0x25bb,0x215c4));import{startDbTableDiffRefresh}from'../../core/api-client.js';function a110_0x2c4e(_0x141733,_0x19f63a){_0x141733=_0x141733-0xb7;const _0x25bb19=a110_0x25bb();let _0x2c4e15=_0x25bb19[_0x141733];return _0x2c4e15;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a110_0x25bb(){const _0x531460=['191838JlYhBb','write','appCode','Table-diff\x20refresh\x20started\x20without\x20a\x20traceId;\x20the\x20request\x20outcome\x20is\x20unknown.\x20Do\x20not\x20submit\x20another\x20refresh\x20automatically.','\x20db\x20diff-refresh-status\x20--id\x20','251088IMCLrA','9123nIDLey','45HpGLga','34oHqpiE','28KBjbJQ','traceId','Started\x20table-diff\x20refresh\x20for\x20db\x20link\x20','33360yKCZyr','142862NQwkMn','5528380DkgXzz','797076WhbuyF','Start\x20an\x20asynchronous\x20refresh\x20of\x20the\x20database\x20table-diff\x20result'];a110_0x25bb=function(){return _0x531460;};return a110_0x25bb();}export const dbDiffRefreshStart={'service':'db','command':'diff-refresh-start','description':a110_0x18370d(0xc4),'risk':a110_0x18370d(0xc6),'flags':[DBLINK_ID_FLAG],async 'execute'(_0x40cbbf){const _0x1a35c8=a110_0x18370d,_0x120668=_0x40cbbf['num']('id'),_0x58bfbc=await startDbTableDiffRefresh(_0x40cbbf[_0x1a35c8(0xc7)],_0x120668),_0x1bde1a=_0x58bfbc[_0x1a35c8(0xbe)]?.['trim']();if(!_0x1bde1a)throw CliErrors['validation'](_0x1a35c8(0xb7));return{'ok':!![],'data':{'dbLinkId':_0x120668,'traceId':_0x1bde1a,'status':_0x58bfbc['status']??null,'query':{'command':CLI_BIN_NAME+_0x1a35c8(0xb8)+_0x120668+'\x20--plan\x20'+_0x1bde1a+'\x20--format\x20compress'}},'message':_0x1a35c8(0xbf)+_0x120668};}};
@@ -1 +1 @@
1
- const a111_0x405673=a111_0x5c30;(function(_0x518490,_0x27ea22){const _0xea28f1=a111_0x5c30,_0x6e387a=_0x518490();while(!![]){try{const _0x39cbcd=-parseInt(_0xea28f1(0x194))/0x1*(parseInt(_0xea28f1(0x182))/0x2)+parseInt(_0xea28f1(0x193))/0x3+parseInt(_0xea28f1(0x185))/0x4+-parseInt(_0xea28f1(0x191))/0x5+parseInt(_0xea28f1(0x189))/0x6*(parseInt(_0xea28f1(0x17f))/0x7)+parseInt(_0xea28f1(0x183))/0x8*(parseInt(_0xea28f1(0x17a))/0x9)+-parseInt(_0xea28f1(0x18b))/0xa*(parseInt(_0xea28f1(0x195))/0xb);if(_0x39cbcd===_0x27ea22)break;else _0x6e387a['push'](_0x6e387a['shift']());}catch(_0x2b9081){_0x6e387a['push'](_0x6e387a['shift']());}}}(a111_0x42d7,0x62076));function a111_0x42d7(){const _0x4f15e2=['UNKNOWN','1104736aUUkrF','SUCCESS','read','CANCELLED','1450698CxkXvV','status','3033890JhtaUI','diff-refresh-status','\x20--plan\x20','RETRYING','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','FAILED','3396725rSufkY','\x20--format\x20compress','1455279pDcibN','1Pwmtkz','11caUqzd','11331QwUkpF','RUNNING','has','num','plan','7fDRKRf','PENDING','\x20db\x20diff-refresh-status\x20--id\x20','781134rLFiKu','4904utPlJc'];a111_0x42d7=function(){return _0x4f15e2;};return a111_0x42d7();}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_0x5c30(_0x3136f4,_0xb2cb5b){_0x3136f4=_0x3136f4-0x17a;const _0x42d7fe=a111_0x42d7();let _0x5c309e=_0x42d7fe[_0x3136f4];return _0x5c309e;}const TERMINAL_STATUSES=new Set([a111_0x405673(0x186),a111_0x405673(0x190),a111_0x405673(0x188)]),RUNNING_STATUSES=new Set([a111_0x405673(0x180),a111_0x405673(0x17b),a111_0x405673(0x18e)]);export const dbDiffRefreshStatus={'service':'db','command':a111_0x405673(0x18c),'description':a111_0x405673(0x18f),'risk':a111_0x405673(0x187),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x405673(0x17e),'type':'string','required':!![],'description':'Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start'}],async 'execute'(_0x4ed4f4){const _0x31fd24=a111_0x405673,_0xcbf981=_0x4ed4f4[_0x31fd24(0x17d)]('id'),_0x3f8d73=_0x4ed4f4['str'](_0x31fd24(0x17e)),_0x30cdab=await getDbAnalysisStatus(_0x3f8d73),_0x7fb65e=_0x30cdab[_0x31fd24(0x18a)]??null,_0x2d7918=TERMINAL_STATUSES[_0x31fd24(0x17c)](_0x7fb65e??''),_0x429fac=_0x7fb65e==='SUCCESS',_0x4569b2=_0x2d7918||RUNNING_STATUSES[_0x31fd24(0x17c)](_0x7fb65e??'');return{'ok':!![],'data':{'dbLinkId':_0xcbf981,'planId':_0x3f8d73,'status':_0x30cdab,'knownStatus':_0x4569b2,'isTerminal':_0x2d7918,'isSuccessful':_0x429fac,'query':_0x4569b2&&!_0x2d7918?{'command':CLI_BIN_NAME+_0x31fd24(0x181)+_0xcbf981+_0x31fd24(0x18d)+_0x3f8d73+_0x31fd24(0x192)}:null},'message':'Table-diff\x20refresh\x20status\x20for\x20'+_0x3f8d73+':\x20'+(_0x7fb65e??_0x31fd24(0x184))};}};
1
+ const a111_0x1a74d9=a111_0x111c;function a111_0x4e09(){const _0x5bf1c7=['read','plan','str','Fetch\x20table-diff\x20refresh\x20status\x20by\x20plan\x20/\x20trace\x20id','10LxtFos','has','Table-diff\x20refresh\x20trace\x20id\x20from\x20diff-refresh-start','RETRYING','9321543mORYIQ','2350428NECdUJ','status','string','\x20--format\x20compress','5430483ndFdet','2716760eCUcJm','FAILED','CANCELLED','1083052WLalck','PENDING','\x20db\x20diff-refresh-status\x20--id\x20','Table-diff\x20refresh\x20status\x20for\x20','1ftAhAy','804lqtzCa','11785VUkmIA','9114920bvtLrl'];a111_0x4e09=function(){return _0x5bf1c7;};return a111_0x4e09();}(function(_0x4bb46e,_0x756056){const _0x5b9674=a111_0x111c,_0x261da7=_0x4bb46e();while(!![]){try{const _0x25c4e7=-parseInt(_0x5b9674(0x133))/0x1*(parseInt(_0x5b9674(0x12f))/0x2)+parseInt(_0x5b9674(0x127))/0x3+-parseInt(_0x5b9674(0x12c))/0x4+-parseInt(_0x5b9674(0x11c))/0x5*(-parseInt(_0x5b9674(0x134))/0x6)+parseInt(_0x5b9674(0x126))/0x7+-parseInt(_0x5b9674(0x11d))/0x8+-parseInt(_0x5b9674(0x12b))/0x9*(-parseInt(_0x5b9674(0x122))/0xa);if(_0x25c4e7===_0x756056)break;else _0x261da7['push'](_0x261da7['shift']());}catch(_0x3e82d6){_0x261da7['push'](_0x261da7['shift']());}}}(a111_0x4e09,0xa49dd));import{getDbAnalysisStatus}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a111_0x111c(_0x1e20e5,_0x4c8efd){_0x1e20e5=_0x1e20e5-0x11c;const _0x4e09b7=a111_0x4e09();let _0x111ce7=_0x4e09b7[_0x1e20e5];return _0x111ce7;}import{CLI_BIN_NAME}from'../../constant/cli.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a111_0x1a74d9(0x12d),a111_0x1a74d9(0x12e)]),RUNNING_STATUSES=new Set([a111_0x1a74d9(0x130),'RUNNING',a111_0x1a74d9(0x125)]);export const dbDiffRefreshStatus={'service':'db','command':'diff-refresh-status','description':a111_0x1a74d9(0x121),'risk':a111_0x1a74d9(0x11e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a111_0x1a74d9(0x11f),'type':a111_0x1a74d9(0x129),'required':!![],'description':a111_0x1a74d9(0x124)}],async 'execute'(_0x1ae440){const _0x2c21e3=a111_0x1a74d9,_0x872dbb=_0x1ae440['num']('id'),_0x5560dc=_0x1ae440[_0x2c21e3(0x120)](_0x2c21e3(0x11f)),_0x14722a=await getDbAnalysisStatus(_0x5560dc),_0x30879c=_0x14722a[_0x2c21e3(0x128)]??null,_0x243bac=TERMINAL_STATUSES['has'](_0x30879c??''),_0x1001c5=_0x30879c==='SUCCESS',_0x39a6db=_0x243bac||RUNNING_STATUSES[_0x2c21e3(0x123)](_0x30879c??'');return{'ok':!![],'data':{'dbLinkId':_0x872dbb,'planId':_0x5560dc,'status':_0x14722a,'knownStatus':_0x39a6db,'isTerminal':_0x243bac,'isSuccessful':_0x1001c5,'query':_0x39a6db&&!_0x243bac?{'command':CLI_BIN_NAME+_0x2c21e3(0x131)+_0x872dbb+'\x20--plan\x20'+_0x5560dc+_0x2c21e3(0x12a)}:null},'message':_0x2c21e3(0x132)+_0x5560dc+':\x20'+(_0x30879c??'UNKNOWN')};}};
@@ -1 +1 @@
1
- const a112_0x2f3c32=a112_0x3776;function a112_0x3776(_0x261cfe,_0x560b36){_0x261cfe=_0x261cfe-0x69;const _0x1a85a6=a112_0x1a85();let _0x377611=_0x1a85a6[_0x261cfe];return _0x377611;}(function(_0x116027,_0x4f4a8b){const _0x39939f=a112_0x3776,_0x133c60=_0x116027();while(!![]){try{const _0x5929c0=-parseInt(_0x39939f(0x7e))/0x1*(-parseInt(_0x39939f(0x7b))/0x2)+-parseInt(_0x39939f(0x7d))/0x3+-parseInt(_0x39939f(0x85))/0x4+-parseInt(_0x39939f(0x91))/0x5+parseInt(_0x39939f(0x8d))/0x6*(parseInt(_0x39939f(0x76))/0x7)+-parseInt(_0x39939f(0x7c))/0x8*(-parseInt(_0x39939f(0x89))/0x9)+-parseInt(_0x39939f(0x8b))/0xa;if(_0x5929c0===_0x4f4a8b)break;else _0x133c60['push'](_0x133c60['shift']());}catch(_0x45b325){_0x133c60['push'](_0x133c60['shift']());}}}(a112_0x1a85,0x2b571));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a112_0x1a85(){const _0x537a9b=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','totalCount','length','appCode','Page\x20size','tableName','fieldDiff','number','str','filter','table','309323WbLdru','read','datasetTableCount','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','diffType','36218dZHIAq','64zKiujQ','552732hcgoUC','19yFqKjm','tableList','map','string','diff','Page\x20index\x20(1-based)','physicalTableCount','183640IqWeHK','modifiedColumns','MODIFIED_TABLE','NEW_TABLE','119115QhvEZb','boolean','1832210IVwSLc','pagesize','42NEXZdD','summary','num','deletedColumns','841890lkvarG','page','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'];a112_0x1a85=function(){return _0x537a9b;};return a112_0x1a85();}import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x2f3c32(0x82),'description':a112_0x2f3c32(0x79),'risk':a112_0x2f3c32(0x77),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a112_0x2f3c32(0x75),'type':a112_0x2f3c32(0x81),'description':a112_0x2f3c32(0x6b)},{'name':a112_0x2f3c32(0x69),'type':'number','description':a112_0x2f3c32(0x83),'default':0x1},{'name':'pagesize','type':a112_0x2f3c32(0x72),'description':a112_0x2f3c32(0x6f),'default':0x14},{'name':'all','type':a112_0x2f3c32(0x8a),'description':a112_0x2f3c32(0x6a)}],async 'execute'(_0x7c8958){const _0x57124c=a112_0x2f3c32,_0x27d2c4=_0x7c8958['num']('id'),_0x19b127=_0x7c8958['bool']('all'),_0x33d166=_0x19b127?0x1:_0x7c8958[_0x57124c(0x8f)](_0x57124c(0x69),0x1)||0x1,_0x12e9fe=_0x19b127?DB_TABLE_PAGE_SIZE:_0x7c8958[_0x57124c(0x8f)](_0x57124c(0x8c),0x14)||0x14,_0x838473=_0x7c8958[_0x57124c(0x73)]('table')||undefined,_0x391fbc=_0x19b127?await getAllDbTableDiff(getDbTableDiff,_0x7c8958[_0x57124c(0x6e)],_0x27d2c4,_0x838473):await getDbTableDiff(_0x7c8958[_0x57124c(0x6e)],_0x27d2c4,{'pageIndex':_0x33d166,'pageSize':_0x12e9fe,'tableName':_0x838473}),_0xe5043d=_0x391fbc[_0x57124c(0x7f)],_0x5af6b4=summarizeDbTableDiff(_0xe5043d),_0x49469c=_0xe5043d[_0x57124c(0x74)](_0x45d491=>_0x45d491[_0x57124c(0x7a)]===_0x57124c(0x88)||_0x45d491[_0x57124c(0x7a)]===_0x57124c(0x87))['map'](_0x13a545=>_0x13a545[_0x57124c(0x70)]),_0x269cb8=_0xe5043d[_0x57124c(0x74)](_0x2501e9=>_0x2501e9[_0x57124c(0x7a)]==='DELETED_TABLE')[_0x57124c(0x80)](_0x29d5c8=>_0x29d5c8[_0x57124c(0x70)]),_0x2c56f8=_0xe5043d[_0x57124c(0x74)](_0x1e8290=>_0x1e8290[_0x57124c(0x7a)]===_0x57124c(0x87))[_0x57124c(0x80)](_0x2c9d68=>({'tableName':_0x2c9d68[_0x57124c(0x70)],'addedColumns':_0x2c9d68['fieldDiff']?.['addedColumns']??[],'deletedColumns':_0x2c9d68[_0x57124c(0x71)]?.[_0x57124c(0x90)]??[],'modifiedColumns':_0x2c9d68['fieldDiff']?.[_0x57124c(0x86)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x27d2c4,'page':_0x33d166,'pageSize':_0x12e9fe,'totalCount':_0x391fbc[_0x57124c(0x6c)],...typeof _0x391fbc[_0x57124c(0x84)]===_0x57124c(0x72)?{'physicalTableCount':_0x391fbc[_0x57124c(0x84)]}:{},...typeof _0x391fbc[_0x57124c(0x78)]===_0x57124c(0x72)?{'datasetTableCount':_0x391fbc[_0x57124c(0x78)]}:{},..._0x391fbc[_0x57124c(0x8e)]?{'summary':_0x391fbc['summary']}:{},'summaryByType':_0x5af6b4,'toAnalyzeTables':_0x49469c,'deletedTables':_0x269cb8,'modifiedFieldDiffs':_0x2c56f8,'tables':_0xe5043d},'message':_0xe5043d[_0x57124c(0x6d)]+'\x20changed\x20table\x20row(s),\x20total\x20'+_0x391fbc[_0x57124c(0x6c)]+'\x20(db\x20link\x20'+_0x27d2c4+')'};}};
1
+ const a112_0x53f0ad=a112_0x2f5a;(function(_0x559c41,_0x226bb3){const _0xadfb6c=a112_0x2f5a,_0xd1279a=_0x559c41();while(!![]){try{const _0xa19534=parseInt(_0xadfb6c(0xd2))/0x1*(parseInt(_0xadfb6c(0xc9))/0x2)+-parseInt(_0xadfb6c(0xc4))/0x3*(-parseInt(_0xadfb6c(0xd7))/0x4)+-parseInt(_0xadfb6c(0xd4))/0x5*(-parseInt(_0xadfb6c(0xb0))/0x6)+parseInt(_0xadfb6c(0xbc))/0x7*(-parseInt(_0xadfb6c(0xd9))/0x8)+parseInt(_0xadfb6c(0xac))/0x9*(parseInt(_0xadfb6c(0xbb))/0xa)+parseInt(_0xadfb6c(0xd3))/0xb*(parseInt(_0xadfb6c(0xce))/0xc)+-parseInt(_0xadfb6c(0xaf))/0xd;if(_0xa19534===_0x226bb3)break;else _0xd1279a['push'](_0xd1279a['shift']());}catch(_0x8d2a1c){_0xd1279a['push'](_0xd1279a['shift']());}}}(a112_0x282e,0xbc340));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{DB_TABLE_PAGE_SIZE,getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbDiff={'service':'db','command':a112_0x53f0ad(0xb4),'description':a112_0x53f0ad(0xd6),'risk':a112_0x53f0ad(0xb5),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'table','type':a112_0x53f0ad(0xd1),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a112_0x53f0ad(0xb6),'type':a112_0x53f0ad(0xcf),'description':a112_0x53f0ad(0xc6),'default':0x1},{'name':a112_0x53f0ad(0xc7),'type':a112_0x53f0ad(0xcf),'description':'Page\x20size','default':0x14},{'name':a112_0x53f0ad(0xd8),'type':a112_0x53f0ad(0xb7),'description':a112_0x53f0ad(0xcd)}],async 'execute'(_0x8f2094){const _0x41db37=a112_0x53f0ad,_0x3e31f3=_0x8f2094[_0x41db37(0xad)]('id'),_0x49f48b=_0x8f2094[_0x41db37(0xb9)](_0x41db37(0xd8)),_0x5bcf83=_0x49f48b?0x1:_0x8f2094[_0x41db37(0xad)](_0x41db37(0xb6),0x1)||0x1,_0x47259f=_0x49f48b?DB_TABLE_PAGE_SIZE:_0x8f2094[_0x41db37(0xad)](_0x41db37(0xc7),0x14)||0x14,_0x11fe8c=_0x8f2094['str'](_0x41db37(0xb1))||undefined,_0x4ecf06=_0x49f48b?await getAllDbTableDiff(getDbTableDiff,_0x8f2094['appCode'],_0x3e31f3,_0x11fe8c):await getDbTableDiff(_0x8f2094[_0x41db37(0xba)],_0x3e31f3,{'pageIndex':_0x5bcf83,'pageSize':_0x47259f,'tableName':_0x11fe8c}),_0x50f135=_0x4ecf06[_0x41db37(0xc1)],_0x54d327=summarizeDbTableDiff(_0x50f135),_0x33a4ab=_0x50f135[_0x41db37(0xc8)](_0x5e5bce=>_0x5e5bce['diffType']===_0x41db37(0xbf)||_0x5e5bce[_0x41db37(0xb3)]===_0x41db37(0xd0))[_0x41db37(0xb2)](_0x15708d=>_0x15708d[_0x41db37(0xca)]),_0x430d0f=_0x50f135['filter'](_0x595e7b=>_0x595e7b[_0x41db37(0xb3)]===_0x41db37(0xcc))['map'](_0x5dd011=>_0x5dd011[_0x41db37(0xca)]),_0x7c6068=_0x50f135[_0x41db37(0xc8)](_0x5321c5=>_0x5321c5[_0x41db37(0xb3)]===_0x41db37(0xd0))['map'](_0xd628af=>({'tableName':_0xd628af[_0x41db37(0xca)],'addedColumns':_0xd628af[_0x41db37(0xd5)]?.[_0x41db37(0xae)]??[],'deletedColumns':_0xd628af[_0x41db37(0xd5)]?.[_0x41db37(0xcb)]??[],'modifiedColumns':_0xd628af[_0x41db37(0xd5)]?.[_0x41db37(0xb8)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x3e31f3,'page':_0x5bcf83,'pageSize':_0x47259f,'totalCount':_0x4ecf06['totalCount'],...typeof _0x4ecf06[_0x41db37(0xc3)]===_0x41db37(0xcf)?{'physicalTableCount':_0x4ecf06[_0x41db37(0xc3)]}:{},...typeof _0x4ecf06['datasetTableCount']===_0x41db37(0xcf)?{'datasetTableCount':_0x4ecf06[_0x41db37(0xbd)]}:{},..._0x4ecf06[_0x41db37(0xbe)]?{'summary':_0x4ecf06['summary']}:{},'summaryByType':_0x54d327,'toAnalyzeTables':_0x33a4ab,'deletedTables':_0x430d0f,'modifiedFieldDiffs':_0x7c6068,'tables':_0x50f135},'message':_0x50f135[_0x41db37(0xc5)]+_0x41db37(0xc0)+_0x4ecf06['totalCount']+_0x41db37(0xc2)+_0x3e31f3+')'};}};function a112_0x2f5a(_0x501632,_0x21124c){_0x501632=_0x501632-0xac;const _0x282e61=a112_0x282e();let _0x2f5a6d=_0x282e61[_0x501632];return _0x2f5a6d;}function a112_0x282e(){const _0x2fbab2=['42871244yZFMDn','65322hALteH','table','map','diffType','diff','read','page','boolean','modifiedColumns','bool','appCode','11410220QaMGtm','56jCwiNY','datasetTableCount','summary','NEW_TABLE','\x20changed\x20table\x20row(s),\x20total\x20','tableList','\x20(db\x20link\x20','physicalTableCount','9852HGnTkf','length','Page\x20index\x20(1-based)','pagesize','filter','1162736kHNlcU','tableName','deletedColumns','DELETED_TABLE','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','14753436lQcNFX','number','MODIFIED_TABLE','string','2DUEoQQ','11GjhTpG','275xeLgXL','fieldDiff','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','368LPHFEi','all','365456BxUNKw','9XRxhZv','num','addedColumns'];a112_0x282e=function(){return _0x2fbab2;};return a112_0x282e();}
@@ -1 +1 @@
1
- (function(_0x46963c,_0x4f89d6){const _0x4abee6=a113_0x4596,_0x465520=_0x46963c();while(!![]){try{const _0x421318=-parseInt(_0x4abee6(0x9a))/0x1+parseInt(_0x4abee6(0x99))/0x2*(-parseInt(_0x4abee6(0x93))/0x3)+-parseInt(_0x4abee6(0x9b))/0x4*(parseInt(_0x4abee6(0x98))/0x5)+-parseInt(_0x4abee6(0x96))/0x6*(-parseInt(_0x4abee6(0x9c))/0x7)+-parseInt(_0x4abee6(0x9d))/0x8+-parseInt(_0x4abee6(0x94))/0x9+parseInt(_0x4abee6(0x97))/0xa*(parseInt(_0x4abee6(0x95))/0xb);if(_0x421318===_0x4f89d6)break;else _0x465520['push'](_0x465520['shift']());}catch(_0x160fc3){_0x465520['push'](_0x465520['shift']());}}}(a113_0x5159,0x32e03));import{dbList}from'../../commands/db/list.js';function a113_0x4596(_0x247955,_0x46f512){_0x247955=_0x247955-0x93;const _0x515916=a113_0x5159();let _0x459635=_0x515916[_0x247955];return _0x459635;}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';function a113_0x5159(){const _0x368217=['25wHvlFn','28946ptbDyz','238523gxXnEm','16108JZxTNr','452795GCIVVX','2891960qwXMNT','39fPlIXp','858006tkwYHQ','11DWHfTo','30HQSKNG','7885980jjaSxt'];a113_0x5159=function(){return _0x368217;};return a113_0x5159();}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';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
+ (function(_0x16ce83,_0x28111c){const _0x5f1f01=a113_0x2a8a,_0x11dab4=_0x16ce83();while(!![]){try{const _0x5857c4=parseInt(_0x5f1f01(0x83))/0x1+parseInt(_0x5f1f01(0x7c))/0x2*(-parseInt(_0x5f1f01(0x7e))/0x3)+-parseInt(_0x5f1f01(0x85))/0x4*(-parseInt(_0x5f1f01(0x7d))/0x5)+parseInt(_0x5f1f01(0x7f))/0x6*(-parseInt(_0x5f1f01(0x80))/0x7)+-parseInt(_0x5f1f01(0x82))/0x8+-parseInt(_0x5f1f01(0x86))/0x9*(-parseInt(_0x5f1f01(0x84))/0xa)+-parseInt(_0x5f1f01(0x81))/0xb;if(_0x5857c4===_0x28111c)break;else _0x11dab4['push'](_0x11dab4['shift']());}catch(_0x27c28d){_0x11dab4['push'](_0x11dab4['shift']());}}}(a113_0x30bf,0xb7fc6));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a113_0x2a8a(_0x37c70b,_0x261969){_0x37c70b=_0x37c70b-0x7c;const _0x30bfaf=a113_0x30bf();let _0x2a8a07=_0x30bfaf[_0x37c70b];return _0x2a8a07;}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_0x30bf(){const _0x1602c4=['243963rlcVxP','1899276NhJpWL','7evyVbh','9571947BQVMUH','3111344BARkUr','121346XyiTmq','1310ERjpqm','4qFvRuA','81117BGttJf','2tXcLEe','5542595POqhWa'];a113_0x30bf=function(){return _0x1602c4;};return a113_0x30bf();}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
- const a114_0x32c8a5=a114_0x5b33;(function(_0x55cbf3,_0x3187b9){const _0x17c3a2=a114_0x5b33,_0x51091c=_0x55cbf3();while(!![]){try{const _0x53e8f7=parseInt(_0x17c3a2(0xcc))/0x1+-parseInt(_0x17c3a2(0xc7))/0x2*(-parseInt(_0x17c3a2(0xc4))/0x3)+parseInt(_0x17c3a2(0xd3))/0x4+-parseInt(_0x17c3a2(0xc3))/0x5+-parseInt(_0x17c3a2(0xc8))/0x6+-parseInt(_0x17c3a2(0xcb))/0x7+parseInt(_0x17c3a2(0xc2))/0x8;if(_0x53e8f7===_0x3187b9)break;else _0x51091c['push'](_0x51091c['shift']());}catch(_0x2f3c37){_0x51091c['push'](_0x51091c['shift']());}}}(a114_0x121c,0x69f0b));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a114_0x121c(){const _0xe0f4d6=['46830MQoPZG','read','length','Page\x20index\x20(1-based)','page','map','list','3236828fBhVWA','number','\x20database\x20connection(s)','DB_TABLE','appCode','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','10446312gidvJe','2108395QimoHe','19005QDGuhA','pagesize','Page\x20size','38vxqTwa','3784632oUyYIA','all','num','5570663vVWXMU'];a114_0x121c=function(){return _0xe0f4d6;};return a114_0x121c();}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a114_0x5b33(_0x19b77f,_0x38dd32){_0x19b77f=_0x19b77f-0xc0;const _0x121cb6=a114_0x121c();let _0x5b33fa=_0x121cb6[_0x19b77f];return _0x5b33fa;}export const dbList={'service':'db','command':a114_0x32c8a5(0xd2),'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_0x32c8a5(0xcd),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x32c8a5(0xd0),'type':a114_0x32c8a5(0xd4),'description':a114_0x32c8a5(0xcf),'default':0x1},{'name':a114_0x32c8a5(0xc5),'type':a114_0x32c8a5(0xd4),'description':a114_0x32c8a5(0xc6),'default':0x64}],async 'execute'(_0x23685e){const _0x51463a=a114_0x32c8a5,_0x53f894=_0x23685e[_0x51463a(0xca)](_0x51463a(0xd0),0x1)||0x1,_0x4bb1f8=_0x23685e['num'](_0x51463a(0xc5),0x64)||0x64,[{items:_0x396f6a,paging:_0x5170b3},_0x1dcd4e]=await Promise[_0x51463a(0xc9)]([listDbLinks(_0x23685e['appCode'],{'currentPage':_0x53f894,'pageSize':_0x4bb1f8}),listDatasets(_0x23685e[_0x51463a(0xc0)],{'source':_0x51463a(0xd6)})]),_0x20e1be=_0x396f6a[_0x51463a(0xd1)](_0x3c21c6=>({...sanitizeDbLinkForOutput(_0x3c21c6),'datasetDependency':buildDbDatasetDependency(_0x3c21c6,_0x1dcd4e)['datasetDependency']})),_0x35fc4a=_0x5170b3?_0x5170b3:{'currentPage':_0x53f894,'pageSize':_0x4bb1f8,'rowsOnPage':_0x20e1be['length'],'totalCount':null,'note':_0x51463a(0xc1)};return{'ok':!![],'data':{'connections':_0x20e1be,'paging':_0x35fc4a},'message':'Found\x20'+_0x20e1be[_0x51463a(0xce)]+_0x51463a(0xd5)};}};
1
+ function a114_0x46fe(_0x53f89c,_0x1d59c3){_0x53f89c=_0x53f89c-0xe2;const _0xa0b4=a114_0xa0b4();let _0x46fe7c=_0xa0b4[_0x53f89c];return _0x46fe7c;}const a114_0x3949bc=a114_0x46fe;(function(_0x590c8d,_0x48577f){const _0xa92475=a114_0x46fe,_0x105b0d=_0x590c8d();while(!![]){try{const _0x4466e1=parseInt(_0xa92475(0xed))/0x1*(parseInt(_0xa92475(0xf0))/0x2)+parseInt(_0xa92475(0xfa))/0x3*(-parseInt(_0xa92475(0xec))/0x4)+parseInt(_0xa92475(0xee))/0x5+parseInt(_0xa92475(0xf4))/0x6*(-parseInt(_0xa92475(0xe9))/0x7)+parseInt(_0xa92475(0xf7))/0x8+-parseInt(_0xa92475(0xf9))/0x9*(-parseInt(_0xa92475(0xe8))/0xa)+parseInt(_0xa92475(0xe5))/0xb*(-parseInt(_0xa92475(0xe7))/0xc);if(_0x4466e1===_0x48577f)break;else _0x105b0d['push'](_0x105b0d['shift']());}catch(_0x12d5af){_0x105b0d['push'](_0x105b0d['shift']());}}}(a114_0xa0b4,0xd7b2c));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a114_0xa0b4(){const _0x6fdb57=['161567NiBten','Found\x20','pagesize','100mjwias','43603bEdvqk','5182690GbHXEa','num','76WPCCZJ','list','length','appCode','222fSPMGD','page','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','5312320YHhEdb','\x20database\x20connection(s)','1535481FaLtpi','81471LsOLjJ','all','Page\x20index\x20(1-based)','Page\x20size','12228469naiDdD','number','12tVszzp','10lLWOnk'];a114_0xa0b4=function(){return _0x6fdb57;};return a114_0xa0b4();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a114_0x3949bc(0xf1),'description':a114_0x3949bc(0xf6),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a114_0x3949bc(0xf5),'type':a114_0x3949bc(0xe6),'description':a114_0x3949bc(0xe3),'default':0x1},{'name':a114_0x3949bc(0xeb),'type':a114_0x3949bc(0xe6),'description':a114_0x3949bc(0xe4),'default':0x64}],async 'execute'(_0x32898d){const _0x413798=a114_0x3949bc,_0x227606=_0x32898d['num'](_0x413798(0xf5),0x1)||0x1,_0x4abd60=_0x32898d[_0x413798(0xef)](_0x413798(0xeb),0x64)||0x64,[{items:_0x8c56e1,paging:_0x269db0},_0x8821d]=await Promise[_0x413798(0xe2)]([listDbLinks(_0x32898d[_0x413798(0xf3)],{'currentPage':_0x227606,'pageSize':_0x4abd60}),listDatasets(_0x32898d[_0x413798(0xf3)],{'source':'DB_TABLE'})]),_0x1ac91d=_0x8c56e1['map'](_0x493938=>({...sanitizeDbLinkForOutput(_0x493938),'datasetDependency':buildDbDatasetDependency(_0x493938,_0x8821d)['datasetDependency']})),_0x53a726=_0x269db0?_0x269db0:{'currentPage':_0x227606,'pageSize':_0x4abd60,'rowsOnPage':_0x1ac91d[_0x413798(0xf2)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x1ac91d,'paging':_0x53a726},'message':_0x413798(0xea)+_0x1ac91d[_0x413798(0xf2)]+_0x413798(0xf8)};}};
@@ -1 +1 @@
1
- (function(_0x1843a4,_0x2c9e09){const _0x12e402=a115_0x21e8,_0x5cd56b=_0x1843a4();while(!![]){try{const _0x5b4f11=parseInt(_0x12e402(0x87))/0x1+parseInt(_0x12e402(0x83))/0x2*(-parseInt(_0x12e402(0x94))/0x3)+-parseInt(_0x12e402(0x92))/0x4+parseInt(_0x12e402(0x88))/0x5+parseInt(_0x12e402(0x85))/0x6*(parseInt(_0x12e402(0x9c))/0x7)+parseInt(_0x12e402(0x89))/0x8+parseInt(_0x12e402(0x98))/0x9*(-parseInt(_0x12e402(0x86))/0xa);if(_0x5b4f11===_0x2c9e09)break;else _0x5cd56b['push'](_0x5cd56b['shift']());}catch(_0x3d709f){_0x5cd56b['push'](_0x5cd56b['shift']());}}}(a115_0xe18d,0xb126d));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a115_0x21e8(_0x28494c,_0x26f40c){_0x28494c=_0x28494c-0x82;const _0xe18da=a115_0xe18d();let _0x21e855=_0xe18da[_0x28494c];return _0x21e855;}function a115_0xe18d(){const _0x5a06c1=['tableName','token','3434956EFkNkU','passwd','6YNFaJf','jdbcurl','dbId','length','1150182eghhPS','accesskey','keys','toLowerCase','126VDxpyM','includes','connectionstring','isFinite','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','test','name','/data/database','password','authorization','code','map','172394tFYRNt','dbtableConfig','271326xCqHVP','90IDgYWv','648177WlBkdG','3695080macihV','5646056vOnsoT','trim','credential','Database\x20connection\x20preflight\x20failed.','dbpassword','[redacted]','/data/er?dbId='];a115_0xe18d=function(){return _0x5a06c1;};return a115_0xe18d();}function shouldRedactKey(_0x537df9){const _0x7ae32f=a115_0x21e8,_0x14e455=_0x537df9[_0x7ae32f(0x9b)]();if(_0x14e455===_0x7ae32f(0xa4)||_0x14e455===_0x7ae32f(0x93)||_0x14e455===_0x7ae32f(0x8d))return!![];if(_0x14e455[_0x7ae32f(0x9d)]('secret')||_0x14e455[_0x7ae32f(0x9d)](_0x7ae32f(0x91))||_0x14e455[_0x7ae32f(0x9d)](_0x7ae32f(0x8b)))return!![];if(_0x14e455[_0x7ae32f(0x9d)]('privatekey')||_0x14e455[_0x7ae32f(0x9d)](_0x7ae32f(0x99)))return!![];if(_0x14e455===_0x7ae32f(0xa5)||_0x14e455===_0x7ae32f(0x9e)||_0x14e455===_0x7ae32f(0x95))return!![];return![];}export function sanitizeDbLinkForOutput(_0x1c705f){const _0x423789=a115_0x21e8,_0x136759={..._0x1c705f};delete _0x136759['hasAvailableDo'];for(const _0x31fff2 of Object[_0x423789(0x9a)](_0x136759)){if(!shouldRedactKey(_0x31fff2))continue;const _0x25946b=_0x136759[_0x31fff2];_0x25946b!=null&&String(_0x25946b)[_0x423789(0x97)]>0x0&&(_0x136759[_0x31fff2]=_0x423789(0x8e));}return _0x136759;}export function sanitizeDbLinkList(_0x388b8e){const _0x1af151=a115_0x21e8;return _0x388b8e[_0x1af151(0x82)](_0x5e4108=>sanitizeDbLinkForOutput(_0x5e4108));}export function buildDbDatasetDependency(_0x31ebff,_0x27f4af){const _0x201802=a115_0x21e8,_0x146037=_0x27f4af['filter'](_0x395b1c=>Number(_0x395b1c[_0x201802(0x84)]?.[_0x201802(0x96)])===Number(_0x31ebff['id']))['map'](_0x8d1b08=>({'id':_0x8d1b08['id'],'code':_0x8d1b08[_0x201802(0xa6)],'name':_0x8d1b08[_0x201802(0xa2)],..._0x8d1b08[_0x201802(0x84)]?.[_0x201802(0x90)]?{'tableName':_0x8d1b08[_0x201802(0x84)]['tableName']}:{}}));return{'datasetDependency':{'hasDependencies':_0x146037[_0x201802(0x97)]>0x0,'activeDatasetCount':_0x146037[_0x201802(0x97)]},'datasets':_0x146037};}export async function assertDbLinkConnectionPreflight(_0x1d6818){const _0x294455=a115_0x21e8,_0x334c63=await testDbLinkConfigConnect(_0x1d6818);if(_0x334c63!==!![])throw CliErrors['apiError'](_0x294455(0x8c),_0x294455(0xa0));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x569857){const _0xf4d3f6=a115_0x21e8,_0x1b06e5=_0x569857[_0xf4d3f6(0x8a)]();if(!_0x1b06e5)return![];return DB_URL_PATTERN[_0xf4d3f6(0xa1)](_0x1b06e5);}export function buildDbPageLinks(_0x6178e7,_0x53bdfe){const _0x387491=a115_0x21e8,_0xc1471d=_0x6178e7?.['trim']();if(!_0xc1471d)return undefined;const _0x56f4e4=typeof _0x53bdfe==='number'?String(_0x53bdfe):String(_0x53bdfe??'')[_0x387491(0x8a)]();if(!_0x56f4e4)return undefined;const _0x2ec999=Number(_0x56f4e4);if(!Number[_0x387491(0x9f)](_0x2ec999)||_0x2ec999<=0x0)return undefined;const _0x17c048=getAppBaseUrl(_0xc1471d),_0x4122de=encodeURIComponent(String(_0x2ec999));return{'databasePage':_0x17c048+_0x387491(0xa3),'erPage':_0x17c048+_0x387491(0x8f)+_0x4122de};}
1
+ (function(_0x4c63e0,_0x5ee7de){const _0x13ce48=a115_0x2d89,_0x90a580=_0x4c63e0();while(!![]){try{const _0x2fbf27=parseInt(_0x13ce48(0x1af))/0x1*(-parseInt(_0x13ce48(0x1b3))/0x2)+parseInt(_0x13ce48(0x1ae))/0x3*(-parseInt(_0x13ce48(0x1b0))/0x4)+-parseInt(_0x13ce48(0x1b2))/0x5+parseInt(_0x13ce48(0x1b1))/0x6*(-parseInt(_0x13ce48(0x1ad))/0x7)+-parseInt(_0x13ce48(0x1b7))/0x8+parseInt(_0x13ce48(0x1bc))/0x9*(parseInt(_0x13ce48(0x1be))/0xa)+parseInt(_0x13ce48(0x1c0))/0xb;if(_0x2fbf27===_0x5ee7de)break;else _0x90a580['push'](_0x90a580['shift']());}catch(_0x5dfe0d){_0x90a580['push'](_0x90a580['shift']());}}}(a115_0x414b,0xc0c84));import{testDbLinkConfigConnect}from'../../core/api-client.js';function a115_0x2d89(_0x516a63,_0x17e648){_0x516a63=_0x516a63-0x1ab;const _0x414b01=a115_0x414b();let _0x2d89d3=_0x414b01[_0x516a63];return _0x2d89d3;}function a115_0x414b(){const _0x223aa2=['7551xBbCQG','token','13010yFVBqc','apiError','43820128DGDQkL','toLowerCase','number','map','length','connectionstring','trim','password','name','includes','/data/database','secret','[redacted]','jdbcurl','tableName','/data/er?dbId=','test','21ZUKCCf','3634143dlpYrp','804568WrfdIJ','4Ihhdfn','1135746JqnYwM','7009030hFRfDV','2musoPs','authorization','credential','dbtableConfig','2399384uwkcLH','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','hasAvailableDo','filter','dbpassword'];a115_0x414b=function(){return _0x223aa2;};return a115_0x414b();}import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x47a69a){const _0x102195=a115_0x2d89,_0x3f13a2=_0x47a69a[_0x102195(0x1c1)]();if(_0x3f13a2===_0x102195(0x1c7)||_0x3f13a2==='passwd'||_0x3f13a2===_0x102195(0x1bb))return!![];if(_0x3f13a2[_0x102195(0x1c9)](_0x102195(0x1cb))||_0x3f13a2[_0x102195(0x1c9)](_0x102195(0x1bd))||_0x3f13a2['includes'](_0x102195(0x1b5)))return!![];if(_0x3f13a2[_0x102195(0x1c9)]('privatekey')||_0x3f13a2['includes']('accesskey'))return!![];if(_0x3f13a2===_0x102195(0x1b4)||_0x3f13a2===_0x102195(0x1c5)||_0x3f13a2===_0x102195(0x1cd))return!![];return![];}export function sanitizeDbLinkForOutput(_0xbe5cb0){const _0x30e00f=a115_0x2d89,_0x13ec4c={..._0xbe5cb0};delete _0x13ec4c[_0x30e00f(0x1b9)];for(const _0x4ee591 of Object['keys'](_0x13ec4c)){if(!shouldRedactKey(_0x4ee591))continue;const _0x20268a=_0x13ec4c[_0x4ee591];_0x20268a!=null&&String(_0x20268a)['length']>0x0&&(_0x13ec4c[_0x4ee591]=_0x30e00f(0x1cc));}return _0x13ec4c;}export function sanitizeDbLinkList(_0x1bfa6b){const _0x4a5499=a115_0x2d89;return _0x1bfa6b[_0x4a5499(0x1c3)](_0x1dbb88=>sanitizeDbLinkForOutput(_0x1dbb88));}export function buildDbDatasetDependency(_0x1fa709,_0x599fe8){const _0x56666e=a115_0x2d89,_0x4f03da=_0x599fe8[_0x56666e(0x1ba)](_0x1208e4=>Number(_0x1208e4[_0x56666e(0x1b6)]?.['dbId'])===Number(_0x1fa709['id']))[_0x56666e(0x1c3)](_0x3dd0c7=>({'id':_0x3dd0c7['id'],'code':_0x3dd0c7['code'],'name':_0x3dd0c7[_0x56666e(0x1c8)],..._0x3dd0c7[_0x56666e(0x1b6)]?.[_0x56666e(0x1ce)]?{'tableName':_0x3dd0c7['dbtableConfig'][_0x56666e(0x1ce)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x4f03da[_0x56666e(0x1c4)]>0x0,'activeDatasetCount':_0x4f03da[_0x56666e(0x1c4)]},'datasets':_0x4f03da};}export async function assertDbLinkConnectionPreflight(_0x11a383){const _0xe44b4d=a115_0x2d89,_0x3a4d9d=await testDbLinkConfigConnect(_0x11a383);if(_0x3a4d9d!==!![])throw CliErrors[_0xe44b4d(0x1bf)]('Database\x20connection\x20preflight\x20failed.',_0xe44b4d(0x1b8));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0xd289a0){const _0x51e653=a115_0x2d89,_0x49af9c=_0xd289a0[_0x51e653(0x1c6)]();if(!_0x49af9c)return![];return DB_URL_PATTERN[_0x51e653(0x1ac)](_0x49af9c);}export function buildDbPageLinks(_0x1a185e,_0x96bcf3){const _0x2f2175=a115_0x2d89,_0x3c6fa4=_0x1a185e?.[_0x2f2175(0x1c6)]();if(!_0x3c6fa4)return undefined;const _0x20a5eb=typeof _0x96bcf3===_0x2f2175(0x1c2)?String(_0x96bcf3):String(_0x96bcf3??'')[_0x2f2175(0x1c6)]();if(!_0x20a5eb)return undefined;const _0x16e4a5=Number(_0x20a5eb);if(!Number['isFinite'](_0x16e4a5)||_0x16e4a5<=0x0)return undefined;const _0x35d40f=getAppBaseUrl(_0x3c6fa4),_0x46d9c3=encodeURIComponent(String(_0x16e4a5));return{'databasePage':_0x35d40f+_0x2f2175(0x1ca),'erPage':_0x35d40f+_0x2f2175(0x1ab)+_0x46d9c3};}
@@ -1 +1 @@
1
- const a116_0x1f5f2e=a116_0xc887;(function(_0x3ad364,_0x5190e5){const _0x921593=a116_0xc887,_0x11d84d=_0x3ad364();while(!![]){try{const _0x35eab2=-parseInt(_0x921593(0x18b))/0x1+-parseInt(_0x921593(0x188))/0x2+parseInt(_0x921593(0x18e))/0x3+parseInt(_0x921593(0x182))/0x4*(-parseInt(_0x921593(0x18a))/0x5)+parseInt(_0x921593(0x18c))/0x6*(-parseInt(_0x921593(0x189))/0x7)+-parseInt(_0x921593(0x184))/0x8+parseInt(_0x921593(0x185))/0x9*(parseInt(_0x921593(0x17d))/0xa);if(_0x35eab2===_0x5190e5)break;else _0x11d84d['push'](_0x11d84d['shift']());}catch(_0x459568){_0x11d84d['push'](_0x11d84d['shift']());}}}(a116_0x36bd,0x2a019));import{CliErrors}from'../../errors.js';function a116_0xc887(_0x341f9c,_0x1ebc0e){_0x341f9c=_0x341f9c-0x172;const _0x36bd15=a116_0x36bd();let _0xc8875a=_0x36bd15[_0x341f9c];return _0xc8875a;}export const DB_TABLE_PAGE_SIZE=0x64;export const DB_TABLE_DIFF_TYPES=[a116_0x1f5f2e(0x177),a116_0x1f5f2e(0x190),a116_0x1f5f2e(0x183),a116_0x1f5f2e(0x17c)];function a116_0x36bd(){const _0x2322e2=['length','318468aiJDdn','16289XKYhOl','99670OJNMPJ','265461rbFQAq','366PmmZAX','fromEntries','109008MeaNxe','values','MODIFIED_TABLE','tableName','summary','size','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','map','NEW_TABLE','datasetTableCount','\x20of\x20','filter','number','ALREADY_ANALYZED','110qDNgLf','physicalTableCount','set','tableList','totalCount','68NukVEJ','DELETED_TABLE','776048nCoJyj','931293aMHjyC','validation'];a116_0x36bd=function(){return _0x2322e2;};return a116_0x36bd();}export function summarizeDbTableDiff(_0x30650c){const _0x3b508e=a116_0x1f5f2e;return Object[_0x3b508e(0x18d)](DB_TABLE_DIFF_TYPES[_0x3b508e(0x176)](_0x4eddc0=>[_0x4eddc0,_0x30650c[_0x3b508e(0x17a)](_0x3052aa=>_0x3052aa['diffType']===_0x4eddc0)[_0x3b508e(0x187)]]));}export async function getAllDbTableDiff(_0x36743b,_0x4de4d9,_0x524062,_0x80e8b9){const _0x74257a=a116_0x1f5f2e,_0x2c6437=new Map();let _0x246489=0x1,_0x5d8a2b=null;while(!![]){_0x5d8a2b=await _0x36743b(_0x4de4d9,_0x524062,{'pageIndex':_0x246489,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x80e8b9});const _0x399977=_0x2c6437[_0x74257a(0x174)];for(const _0x1a8080 of _0x5d8a2b[_0x74257a(0x180)]){_0x2c6437[_0x74257a(0x17f)](_0x1a8080[_0x74257a(0x172)],_0x1a8080);}if(_0x2c6437[_0x74257a(0x174)]>=_0x5d8a2b['totalCount'])break;if(_0x5d8a2b[_0x74257a(0x180)][_0x74257a(0x187)]===0x0||_0x2c6437[_0x74257a(0x174)]===_0x399977)throw CliErrors[_0x74257a(0x186)](_0x74257a(0x175)+_0x2c6437['size']+_0x74257a(0x179)+_0x5d8a2b['totalCount']+'\x20row(s).');_0x246489+=0x1;}return{'totalCount':_0x5d8a2b?.[_0x74257a(0x181)]??0x0,...typeof _0x5d8a2b?.[_0x74257a(0x17e)]===_0x74257a(0x17b)?{'physicalTableCount':_0x5d8a2b[_0x74257a(0x17e)]}:{},...typeof _0x5d8a2b?.[_0x74257a(0x178)]===_0x74257a(0x17b)?{'datasetTableCount':_0x5d8a2b['datasetTableCount']}:{},..._0x5d8a2b?.[_0x74257a(0x173)]?{'summary':_0x5d8a2b[_0x74257a(0x173)]}:{},'tableList':[..._0x2c6437[_0x74257a(0x18f)]()]};}
1
+ function a116_0x2f26(){const _0x56f9c0=['3967LTTldR','18crFFea','Incomplete\x20db\x20table\x20pagination:\x20collected\x20','\x20row(s).','NEW_TABLE','MODIFIED_TABLE','tableName','118bzhQdP','42414009VenHUa','44303frvtLe','physicalTableCount','totalCount','diffType','4012144PrPjIZ','datasetTableCount','number','set','summary','map','filter','values','2723799EfyUuL','3643510eqpulu','size','DELETED_TABLE','27978fnEiYv','\x20of\x20','1816JPphsj','length','470gFYOhN','ALREADY_ANALYZED'];a116_0x2f26=function(){return _0x56f9c0;};return a116_0x2f26();}const a116_0x436d19=a116_0x3969;(function(_0x1389e1,_0x3ee21e){const _0x334c51=a116_0x3969,_0x19a0a1=_0x1389e1();while(!![]){try{const _0x55839b=-parseInt(_0x334c51(0x7c))/0x1*(parseInt(_0x334c51(0x83))/0x2)+parseInt(_0x334c51(0x72))/0x3+-parseInt(_0x334c51(0x6a))/0x4+-parseInt(_0x334c51(0x7a))/0x5*(parseInt(_0x334c51(0x76))/0x6)+parseInt(_0x334c51(0x66))/0x7*(-parseInt(_0x334c51(0x78))/0x8)+-parseInt(_0x334c51(0x7d))/0x9*(parseInt(_0x334c51(0x73))/0xa)+parseInt(_0x334c51(0x84))/0xb;if(_0x55839b===_0x3ee21e)break;else _0x19a0a1['push'](_0x19a0a1['shift']());}catch(_0x1ee70d){_0x19a0a1['push'](_0x19a0a1['shift']());}}}(a116_0x2f26,0xe154c));import{CliErrors}from'../../errors.js';export const DB_TABLE_PAGE_SIZE=0x64;function a116_0x3969(_0x5f21ef,_0x3c4011){_0x5f21ef=_0x5f21ef-0x66;const _0x2f2633=a116_0x2f26();let _0x39690a=_0x2f2633[_0x5f21ef];return _0x39690a;}export const DB_TABLE_DIFF_TYPES=[a116_0x436d19(0x80),a116_0x436d19(0x81),a116_0x436d19(0x75),a116_0x436d19(0x7b)];export function summarizeDbTableDiff(_0x307644){const _0x44abe8=a116_0x436d19;return Object['fromEntries'](DB_TABLE_DIFF_TYPES[_0x44abe8(0x6f)](_0x4f9b4a=>[_0x4f9b4a,_0x307644[_0x44abe8(0x70)](_0xa6150f=>_0xa6150f[_0x44abe8(0x69)]===_0x4f9b4a)[_0x44abe8(0x79)]]));}export async function getAllDbTableDiff(_0x2b97f0,_0x4ccd90,_0x6d9159,_0x213b91){const _0x473398=a116_0x436d19,_0x407dac=new Map();let _0x47e7f6=0x1,_0x5ba97d=null;while(!![]){_0x5ba97d=await _0x2b97f0(_0x4ccd90,_0x6d9159,{'pageIndex':_0x47e7f6,'pageSize':DB_TABLE_PAGE_SIZE,'tableName':_0x213b91});const _0x2715bf=_0x407dac[_0x473398(0x74)];for(const _0x523ab5 of _0x5ba97d['tableList']){_0x407dac[_0x473398(0x6d)](_0x523ab5[_0x473398(0x82)],_0x523ab5);}if(_0x407dac[_0x473398(0x74)]>=_0x5ba97d[_0x473398(0x68)])break;if(_0x5ba97d['tableList'][_0x473398(0x79)]===0x0||_0x407dac['size']===_0x2715bf)throw CliErrors['validation'](_0x473398(0x7e)+_0x407dac['size']+_0x473398(0x77)+_0x5ba97d[_0x473398(0x68)]+_0x473398(0x7f));_0x47e7f6+=0x1;}return{'totalCount':_0x5ba97d?.[_0x473398(0x68)]??0x0,...typeof _0x5ba97d?.[_0x473398(0x67)]==='number'?{'physicalTableCount':_0x5ba97d[_0x473398(0x67)]}:{},...typeof _0x5ba97d?.[_0x473398(0x6b)]===_0x473398(0x6c)?{'datasetTableCount':_0x5ba97d[_0x473398(0x6b)]}:{},..._0x5ba97d?.[_0x473398(0x6e)]?{'summary':_0x5ba97d[_0x473398(0x6e)]}:{},'tableList':[..._0x407dac[_0x473398(0x71)]()]};}
@@ -1 +1 @@
1
- function a117_0x3630(){const _0x34e707=['120RMFfKb','119273RgOlTg','str','1433312BFumfp','num','appCode','tableList','70yJknNa','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','355860ELPNyD','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','\x20(db\x20link\x20','read','number','109842eKvKUz','totalCount','datasetTableCount','12Rjtliv','table','168113nDgFnj','string','10yLSlMn','length','\x20table\x20comparison\x20row(s),\x20total\x20','physicalTableCount','140164iMRHSM','1127AxVnmV','summary'];a117_0x3630=function(){return _0x34e707;};return a117_0x3630();}const a117_0x269dc2=a117_0x48ec;(function(_0x466202,_0x131e85){const _0x14177c=a117_0x48ec,_0x4e6345=_0x466202();while(!![]){try{const _0x586e28=-parseInt(_0x14177c(0x14f))/0x1*(parseInt(_0x14177c(0x13c))/0x2)+parseInt(_0x14177c(0x146))/0x3*(parseInt(_0x14177c(0x14e))/0x4)+-parseInt(_0x14177c(0x14a))/0x5*(parseInt(_0x14177c(0x143))/0x6)+parseInt(_0x14177c(0x152))/0x7+parseInt(_0x14177c(0x154))/0x8+parseInt(_0x14177c(0x13e))/0x9+parseInt(_0x14177c(0x151))/0xa*(-parseInt(_0x14177c(0x148))/0xb);if(_0x586e28===_0x131e85)break;else _0x4e6345['push'](_0x4e6345['shift']());}catch(_0x19f79b){_0x4e6345['push'](_0x4e6345['shift']());}}}(a117_0x3630,0x1c6e4));import{getDbTableComparisonPage}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a117_0x48ec(_0x5c1539,_0x2b4da1){_0x5c1539=_0x5c1539-0x13a;const _0x36308f=a117_0x3630();let _0x48ec8b=_0x36308f[_0x5c1539];return _0x48ec8b;}import{getAllDbTableDiff,summarizeDbTableDiff}from'../../commands/db/table-diff-shared.js';export const dbTables={'service':'db','command':'tables','description':a117_0x269dc2(0x13d),'risk':a117_0x269dc2(0x141),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0x269dc2(0x147),'type':a117_0x269dc2(0x149),'description':a117_0x269dc2(0x13f)}],async 'execute'(_0x36b441){const _0x585c21=a117_0x269dc2,_0x14f63d=_0x36b441[_0x585c21(0x155)]('id'),_0x351169=_0x36b441[_0x585c21(0x153)]('table')||undefined,_0x465e17=await getAllDbTableDiff(getDbTableComparisonPage,_0x36b441[_0x585c21(0x13a)],_0x14f63d,_0x351169),_0x91ff35=_0x465e17[_0x585c21(0x13b)];return{'ok':!![],'data':{'dbLinkId':_0x14f63d,'totalCount':_0x465e17[_0x585c21(0x144)],...typeof _0x465e17['physicalTableCount']===_0x585c21(0x142)?{'physicalTableCount':_0x465e17[_0x585c21(0x14d)]}:{},...typeof _0x465e17[_0x585c21(0x145)]==='number'?{'datasetTableCount':_0x465e17[_0x585c21(0x145)]}:{},..._0x465e17[_0x585c21(0x150)]?{'summary':_0x465e17[_0x585c21(0x150)]}:{},'summaryByType':summarizeDbTableDiff(_0x91ff35),'tables':_0x91ff35},'message':_0x91ff35[_0x585c21(0x14b)]+_0x585c21(0x14c)+_0x465e17['totalCount']+_0x585c21(0x140)+_0x14f63d+')'};}};
1
+ function a117_0x22f9(){const _0x656489=['12iHqUrr','number','datasetTableCount','physicalTableCount','\x20table\x20comparison\x20row(s),\x20total\x20','406LycWre','3hMLQTu','9334xbTZUs','10xDhZIw','str','13197348BZRVmh','summary','totalCount','119958lSmZzd','List\x20all\x20database\x20table\x20comparison\x20rows\x20and\x20analysis\x20states','appCode','3375840qaZKqO','12889987jyvPDU','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','tableList','tables','5882732fSwXPf','118lkPyun','table','3376520gXKadK','num','\x20(db\x20link\x20','read'];a117_0x22f9=function(){return _0x656489;};return a117_0x22f9();}const a117_0xbfa3d2=a117_0x883e;(function(_0x5dc857,_0x1dc826){const _0x1b1298=a117_0x883e,_0x587444=_0x5dc857();while(!![]){try{const _0x2cfc59=parseInt(_0x1b1298(0x163))/0x1*(parseInt(_0x1b1298(0x172))/0x2)+-parseInt(_0x1b1298(0x162))/0x3*(-parseInt(_0x1b1298(0x171))/0x4)+parseInt(_0x1b1298(0x174))/0x5+-parseInt(_0x1b1298(0x169))/0x6*(parseInt(_0x1b1298(0x161))/0x7)+-parseInt(_0x1b1298(0x16c))/0x8+-parseInt(_0x1b1298(0x166))/0x9*(parseInt(_0x1b1298(0x164))/0xa)+parseInt(_0x1b1298(0x16d))/0xb*(parseInt(_0x1b1298(0x178))/0xc);if(_0x2cfc59===_0x1dc826)break;else _0x587444['push'](_0x587444['shift']());}catch(_0x128208){_0x587444['push'](_0x587444['shift']());}}}(a117_0x22f9,0xc8554));import{getDbTableComparisonPage}from'../../core/api-client.js';function a117_0x883e(_0x639936,_0x4b7bdb){_0x639936=_0x639936-0x15e;const _0x22f976=a117_0x22f9();let _0x883e82=_0x22f976[_0x639936];return _0x883e82;}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_0xbfa3d2(0x170),'description':a117_0xbfa3d2(0x16a),'risk':a117_0xbfa3d2(0x177),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a117_0xbfa3d2(0x173),'type':'string','description':a117_0xbfa3d2(0x16e)}],async 'execute'(_0x3cc602){const _0x37f782=a117_0xbfa3d2,_0x26ea9c=_0x3cc602[_0x37f782(0x175)]('id'),_0x2a8289=_0x3cc602[_0x37f782(0x165)](_0x37f782(0x173))||undefined,_0x303011=await getAllDbTableDiff(getDbTableComparisonPage,_0x3cc602[_0x37f782(0x16b)],_0x26ea9c,_0x2a8289),_0x309a7b=_0x303011[_0x37f782(0x16f)];return{'ok':!![],'data':{'dbLinkId':_0x26ea9c,'totalCount':_0x303011[_0x37f782(0x168)],...typeof _0x303011[_0x37f782(0x15f)]==='number'?{'physicalTableCount':_0x303011[_0x37f782(0x15f)]}:{},...typeof _0x303011[_0x37f782(0x15e)]===_0x37f782(0x179)?{'datasetTableCount':_0x303011['datasetTableCount']}:{},..._0x303011[_0x37f782(0x167)]?{'summary':_0x303011[_0x37f782(0x167)]}:{},'summaryByType':summarizeDbTableDiff(_0x309a7b),'tables':_0x309a7b},'message':_0x309a7b['length']+_0x37f782(0x160)+_0x303011[_0x37f782(0x168)]+_0x37f782(0x176)+_0x26ea9c+')'};}};
@@ -1 +1 @@
1
- function a118_0x5e5e(_0x3f7e5e,_0x32a74e){_0x3f7e5e=_0x3f7e5e-0xe2;const _0xbe60a0=a118_0xbe60();let _0x5e5e14=_0xbe60a0[_0x3f7e5e];return _0x5e5e14;}const a118_0x1c57fb=a118_0x5e5e;(function(_0x1db405,_0x208924){const _0x2bde63=a118_0x5e5e,_0x473142=_0x1db405();while(!![]){try{const _0xab11f6=parseInt(_0x2bde63(0xe6))/0x1*(parseInt(_0x2bde63(0xe2))/0x2)+-parseInt(_0x2bde63(0xef))/0x3+-parseInt(_0x2bde63(0xed))/0x4+-parseInt(_0x2bde63(0xf9))/0x5+-parseInt(_0x2bde63(0xf0))/0x6*(-parseInt(_0x2bde63(0xea))/0x7)+-parseInt(_0x2bde63(0xf4))/0x8+-parseInt(_0x2bde63(0xf7))/0x9*(-parseInt(_0x2bde63(0xf6))/0xa);if(_0xab11f6===_0x208924)break;else _0x473142['push'](_0x473142['shift']());}catch(_0x305f73){_0x473142['push'](_0x473142['shift']());}}}(a118_0xbe60,0x5a9e6));import{testDbLinkConnect}from'../../core/api-client.js';function a118_0xbe60(){const _0x5d61d6=['slice','test','1443480UigLeX','\x20(see\x20data.result)','190oBvyyg','446373lrQHTC','object','3010390gqGeRF','error','Connection\x20OK\x20for\x20db\x20link\x20','152ayWQVN','read','code','length','8830kzwwTc','message','num','success','28dTlTJk','data','Connection\x20check\x20finished\x20for\x20db\x20link\x20','1742304LsSalc','keys','1801332eTgDqz','864426IAGSMW','msg'];a118_0xbe60=function(){return _0x5d61d6;};return a118_0xbe60();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x47ff6a){const _0xf8bb4e=a118_0x5e5e;if(_0x47ff6a===!![]||_0x47ff6a===![])return{'success':_0x47ff6a};if(_0x47ff6a===null||_0x47ff6a===undefined)return{'type':typeof _0x47ff6a};if(typeof _0x47ff6a!==_0xf8bb4e(0xf8))return{'type':typeof _0x47ff6a};const _0x51ff06=_0x47ff6a,_0x570cd8=['success',_0xf8bb4e(0xe7),_0xf8bb4e(0xe4),_0xf8bb4e(0xfa),_0xf8bb4e(0xf1),_0xf8bb4e(0xeb)],_0xb4fb3c={};for(const _0x5a6bc3 of _0x570cd8){if(_0x5a6bc3 in _0x51ff06)_0xb4fb3c[_0x5a6bc3]=_0x51ff06[_0x5a6bc3];}return Object['keys'](_0xb4fb3c)[_0xf8bb4e(0xe5)]===0x0&&(_0xb4fb3c[_0xf8bb4e(0xee)]=Object['keys'](_0x51ff06)[_0xf8bb4e(0xf2)](0x0,0x14)),_0xb4fb3c;}export const dbTest={'service':'db','command':a118_0x1c57fb(0xf3),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a118_0x1c57fb(0xe3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1606ef){const _0x2403bb=a118_0x1c57fb,_0x8d4962=_0x1606ef[_0x2403bb(0xe8)]('id'),_0x4479b6=await testDbLinkConnect(_0x8d4962),_0x230468=_0x4479b6===!![]||typeof _0x4479b6===_0x2403bb(0xf8)&&_0x4479b6!==null&&_0x4479b6[_0x2403bb(0xe9)]===!![],_0x563016=summarizeTestConnectResult(_0x4479b6);return{'ok':!![],'data':{'id':_0x8d4962,'connected':Boolean(_0x230468),'result':_0x563016},'message':_0x230468?_0x2403bb(0xfb)+_0x8d4962:_0x2403bb(0xec)+_0x8d4962+_0x2403bb(0xf5)};}};
1
+ const a118_0x4b217e=a118_0x3a81;(function(_0x3f4038,_0x141215){const _0x456c63=a118_0x3a81,_0x202461=_0x3f4038();while(!![]){try{const _0x380a60=-parseInt(_0x456c63(0x8e))/0x1*(-parseInt(_0x456c63(0x95))/0x2)+-parseInt(_0x456c63(0x98))/0x3+parseInt(_0x456c63(0x93))/0x4+-parseInt(_0x456c63(0x90))/0x5+-parseInt(_0x456c63(0x8a))/0x6*(parseInt(_0x456c63(0x8d))/0x7)+-parseInt(_0x456c63(0x96))/0x8+-parseInt(_0x456c63(0x9d))/0x9*(-parseInt(_0x456c63(0x8c))/0xa);if(_0x380a60===_0x141215)break;else _0x202461['push'](_0x202461['shift']());}catch(_0x4b002c){_0x202461['push'](_0x202461['shift']());}}}(a118_0x2d2b,0x4463c));function a118_0x3a81(_0x38f52c,_0x517c42){_0x38f52c=_0x38f52c-0x8a;const _0x2d2b52=a118_0x2d2b();let _0x3a81d5=_0x2d2b52[_0x38f52c];return _0x3a81d5;}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x34250b){const _0xa70a65=a118_0x3a81;if(_0x34250b===!![]||_0x34250b===![])return{'success':_0x34250b};if(_0x34250b===null||_0x34250b===undefined)return{'type':typeof _0x34250b};if(typeof _0x34250b!=='object')return{'type':typeof _0x34250b};const _0x2926f2=_0x34250b,_0x2c0d01=[_0xa70a65(0x8b),_0xa70a65(0x91),_0xa70a65(0x97),'error','msg','data'],_0x5891f3={};for(const _0x4fd0a6 of _0x2c0d01){if(_0x4fd0a6 in _0x2926f2)_0x5891f3[_0x4fd0a6]=_0x2926f2[_0x4fd0a6];}return Object['keys'](_0x5891f3)[_0xa70a65(0x99)]===0x0&&(_0x5891f3[_0xa70a65(0x94)]=Object[_0xa70a65(0x94)](_0x2926f2)['slice'](0x0,0x14)),_0x5891f3;}function a118_0x2d2b(){const _0x147af0=['1219084Sxvwoh','keys','906kjUpvx','1428688kDlYiz','code','1222854sYGEwj','length','object','test','\x20(see\x20data.result)','37359nqxvsX','read','41844YMepRI','success','2690oVHjih','497DBJePD','521tjzvsK','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1479605YWsmZY','message','num'];a118_0x2d2b=function(){return _0x147af0;};return a118_0x2d2b();}export const dbTest={'service':'db','command':a118_0x4b217e(0x9b),'description':a118_0x4b217e(0x8f),'risk':a118_0x4b217e(0x9e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x18ddc9){const _0x520fca=a118_0x4b217e,_0x492c3f=_0x18ddc9[_0x520fca(0x92)]('id'),_0x4707eb=await testDbLinkConnect(_0x492c3f),_0x1ef7c0=_0x4707eb===!![]||typeof _0x4707eb===_0x520fca(0x9a)&&_0x4707eb!==null&&_0x4707eb['success']===!![],_0xc17043=summarizeTestConnectResult(_0x4707eb);return{'ok':!![],'data':{'id':_0x492c3f,'connected':Boolean(_0x1ef7c0),'result':_0xc17043},'message':_0x1ef7c0?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x492c3f:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x492c3f+_0x520fca(0x9c)};}};
@@ -1 +1 @@
1
- const a119_0x1c7e64=a119_0x3b31;function a119_0x3b31(_0x4bc255,_0x32cda1){_0x4bc255=_0x4bc255-0x1ee;const _0x3c0032=a119_0x3c00();let _0x3b3194=_0x3c0032[_0x4bc255];return _0x3b3194;}function a119_0x3c00(){const _0x248404=['validation','has','num','POST','str','2jJRIke','3658296QqoAIR','trim','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','[redacted]','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','367013lEOJxH','New\x20description','New\x20username','dbName','517191FelRsL','2334tiCpRD','update','573872PGIYHP','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbParam','6531723iKYvrB','string','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbdesc','username','2950213alcauK','skip-connection-test','New\x20database\x20name','bool','******','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dburl','dbparam','New\x20connection\x20parameter\x20string','dbname','2945HsYSzj','password','dbDesc','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.'];a119_0x3c00=function(){return _0x248404;};return a119_0x3c00();}(function(_0x1d96d7,_0x26d715){const _0x10b2ee=a119_0x3b31,_0x1a1e7f=_0x1d96d7();while(!![]){try{const _0x2517a4=-parseInt(_0x10b2ee(0x212))/0x1*(parseInt(_0x10b2ee(0x20c))/0x2)+parseInt(_0x10b2ee(0x1ee))/0x3+parseInt(_0x10b2ee(0x1f1))/0x4+parseInt(_0x10b2ee(0x203))/0x5*(parseInt(_0x10b2ee(0x1ef))/0x6)+parseInt(_0x10b2ee(0x1f9))/0x7+parseInt(_0x10b2ee(0x20d))/0x8+-parseInt(_0x10b2ee(0x1f4))/0x9;if(_0x2517a4===_0x26d715)break;else _0x1a1e7f['push'](_0x1a1e7f['shift']());}catch(_0x52ea5d){_0x1a1e7f['push'](_0x1a1e7f['shift']());}}}(a119_0x3c00,0x50cdc));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x1c7e64(0x1fd),a119_0x1c7e64(0x210)]);function mergeDbLinkUpdate(_0x85b70a,_0x1a1c69){const _0x48b789=a119_0x1c7e64,_0x1e3bda={..._0x85b70a},_0x46d1da=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x204));if(_0x46d1da&&MASKED_PASSWORD_VALUES[_0x48b789(0x208)](_0x46d1da))throw CliErrors[_0x48b789(0x207)](_0x48b789(0x206));if(!_0x46d1da&&MASKED_PASSWORD_VALUES[_0x48b789(0x208)](String(_0x85b70a[_0x48b789(0x204)]??'')))throw CliErrors[_0x48b789(0x207)](_0x48b789(0x1fe));const _0x5d2fc8=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x202));if(_0x5d2fc8)_0x1e3bda[_0x48b789(0x215)]=_0x5d2fc8;const _0x2cd460=_0x1a1c69[_0x48b789(0x20b)]('dburl');if(_0x2cd460)_0x1e3bda['dbUrl']=_0x2cd460[_0x48b789(0x20e)]();const _0x277a30=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x1f8));if(_0x277a30)_0x1e3bda['username']=_0x277a30;if(_0x46d1da)_0x1e3bda[_0x48b789(0x204)]=_0x46d1da;const _0x1754ad=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x200));if(_0x1754ad)_0x1e3bda[_0x48b789(0x1f3)]=_0x1754ad;const _0x31666b=_0x1a1c69[_0x48b789(0x20b)](_0x48b789(0x1f7));if(_0x31666b)_0x1e3bda[_0x48b789(0x205)]=_0x31666b;return _0x1e3bda;}export const dbUpdate={'service':'db','command':a119_0x1c7e64(0x1f0),'description':a119_0x1c7e64(0x1f6),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x1c7e64(0x202),'type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x1fb)},{'name':a119_0x1c7e64(0x1ff),'type':'string','description':'New\x20host:port'},{'name':a119_0x1c7e64(0x1f8),'type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x214)},{'name':'password','type':'string','description':a119_0x1c7e64(0x211)},{'name':'dbparam','type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x201)},{'name':a119_0x1c7e64(0x1f7),'type':a119_0x1c7e64(0x1f5),'description':a119_0x1c7e64(0x213)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x247c09){const _0x309aa2=a119_0x1c7e64,_0x35f699=_0x247c09['str'](_0x309aa2(0x1ff));if(_0x35f699&&!validateDbUrl(_0x35f699[_0x309aa2(0x20e)]()))throw CliErrors['validation'](_0x309aa2(0x1f2)+_0x35f699+'\x22');},async 'dryRun'(_0xd3e27c){const _0xc478cd=a119_0x1c7e64,_0x5d2163=_0xd3e27c['num']('id'),_0x7cc4f3=await getDbLinkInfo(_0x5d2163),_0x514745=mergeDbLinkUpdate(_0x7cc4f3,_0xd3e27c),_0x4b1559=sanitizeDbLinkForOutput(_0x514745);return{'method':_0xc478cd(0x20a),'url':'/smartapi/dblink/update','body':_0x4b1559,'description':_0xc478cd(0x20f),'connectionPreflight':{'enabled':!_0xd3e27c[_0xc478cd(0x1fc)](_0xc478cd(0x1fa)),'executed':![]}};},async 'execute'(_0x57a3c0){const _0x20ba34=a119_0x1c7e64,_0x142412=_0x57a3c0[_0x20ba34(0x209)]('id'),_0x58d584=await getDbLinkInfo(_0x142412),_0x3c1e01=mergeDbLinkUpdate(_0x58d584,_0x57a3c0);!_0x57a3c0['bool']('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x3c1e01);const {id:_0x5a9faf,entity:_0x492622}=normalizeEntityWithIdResponse(await updateDbLink(_0x3c1e01));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x492622),'message':'Updated\x20db\x20link\x20'+(_0x5a9faf??_0x142412)};}};
1
+ function a119_0x32e2(_0x4554db,_0x3935a4){_0x4554db=_0x4554db-0xfd;const _0x13d72e=a119_0x13d7();let _0x32e2b2=_0x13d72e[_0x4554db];return _0x32e2b2;}const a119_0x982c5a=a119_0x32e2;(function(_0x42b2bd,_0x511f99){const _0x2f674c=a119_0x32e2,_0x20de6c=_0x42b2bd();while(!![]){try{const _0x30e129=-parseInt(_0x2f674c(0x122))/0x1+-parseInt(_0x2f674c(0x114))/0x2*(-parseInt(_0x2f674c(0x11a))/0x3)+parseInt(_0x2f674c(0x11c))/0x4*(parseInt(_0x2f674c(0x102))/0x5)+parseInt(_0x2f674c(0x108))/0x6*(parseInt(_0x2f674c(0x112))/0x7)+parseInt(_0x2f674c(0x121))/0x8+parseInt(_0x2f674c(0x10d))/0x9*(-parseInt(_0x2f674c(0x109))/0xa)+-parseInt(_0x2f674c(0x10a))/0xb;if(_0x30e129===_0x511f99)break;else _0x20de6c['push'](_0x20de6c['shift']());}catch(_0x2cc1e5){_0x20de6c['push'](_0x20de6c['shift']());}}}(a119_0x13d7,0x780cb));function a119_0x13d7(){const _0x40583d=['validation','/smartapi/dblink/update','username','New\x20username','43944IBiFor','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','6408gRJTMJ','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbparam','skip-connection-test','dbdesc','3440872juDaLz','785045xGaERg','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','num','bool','New\x20connection\x20parameter\x20string','trim','3010eRfJkx','password','write','dburl','str','dbUrl','66finaGz','90noNchi','2391543bQHAgm','dbParam','dbname','876006pnzSWm','string','dbDesc','Updated\x20db\x20link\x20','update','611562MJAyBD','has','2memhgf','******'];a119_0x13d7=function(){return _0x40583d;};return a119_0x13d7();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a119_0x982c5a(0x115),'[redacted]']);function mergeDbLinkUpdate(_0x4a0b79,_0x503426){const _0x329721=a119_0x982c5a,_0x1aee99={..._0x4a0b79},_0x52c073=_0x503426[_0x329721(0x106)](_0x329721(0x103));if(_0x52c073&&MASKED_PASSWORD_VALUES[_0x329721(0x113)](_0x52c073))throw CliErrors['validation']('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x52c073&&MASKED_PASSWORD_VALUES['has'](String(_0x4a0b79['password']??'')))throw CliErrors[_0x329721(0x116)](_0x329721(0x11b));const _0x5ed1f4=_0x503426[_0x329721(0x106)](_0x329721(0x10c));if(_0x5ed1f4)_0x1aee99['dbName']=_0x5ed1f4;const _0x134c77=_0x503426[_0x329721(0x106)](_0x329721(0x105));if(_0x134c77)_0x1aee99[_0x329721(0x107)]=_0x134c77['trim']();const _0x5c529b=_0x503426['str']('username');if(_0x5c529b)_0x1aee99[_0x329721(0x118)]=_0x5c529b;if(_0x52c073)_0x1aee99[_0x329721(0x103)]=_0x52c073;const _0x3eaada=_0x503426['str'](_0x329721(0x11e));if(_0x3eaada)_0x1aee99[_0x329721(0x10b)]=_0x3eaada;const _0x2c5c50=_0x503426[_0x329721(0x106)](_0x329721(0x120));if(_0x2c5c50)_0x1aee99[_0x329721(0x10f)]=_0x2c5c50;return _0x1aee99;}export const dbUpdate={'service':'db','command':a119_0x982c5a(0x111),'description':a119_0x982c5a(0x11d),'risk':a119_0x982c5a(0x104),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a119_0x982c5a(0x10c),'type':'string','description':'New\x20database\x20name'},{'name':a119_0x982c5a(0x105),'type':a119_0x982c5a(0x10e),'description':'New\x20host:port'},{'name':'username','type':a119_0x982c5a(0x10e),'description':a119_0x982c5a(0x119)},{'name':'password','type':a119_0x982c5a(0x10e),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a119_0x982c5a(0x11e),'type':'string','description':a119_0x982c5a(0x100)},{'name':'dbdesc','type':'string','description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x246edc){const _0x101c75=a119_0x982c5a,_0x332463=_0x246edc[_0x101c75(0x106)](_0x101c75(0x105));if(_0x332463&&!validateDbUrl(_0x332463[_0x101c75(0x101)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x332463+'\x22');},async 'dryRun'(_0x1db5b3){const _0x12c741=a119_0x982c5a,_0xa9297e=_0x1db5b3['num']('id'),_0x8bfbd2=await getDbLinkInfo(_0xa9297e),_0x187caa=mergeDbLinkUpdate(_0x8bfbd2,_0x1db5b3),_0x180e57=sanitizeDbLinkForOutput(_0x187caa);return{'method':'POST','url':_0x12c741(0x117),'body':_0x180e57,'description':_0x12c741(0xfd),'connectionPreflight':{'enabled':!_0x1db5b3[_0x12c741(0xff)](_0x12c741(0x11f)),'executed':![]}};},async 'execute'(_0x558054){const _0x29d907=a119_0x982c5a,_0x762765=_0x558054[_0x29d907(0xfe)]('id'),_0x504dd7=await getDbLinkInfo(_0x762765),_0x52d4d0=mergeDbLinkUpdate(_0x504dd7,_0x558054);!_0x558054[_0x29d907(0xff)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x52d4d0);const {id:_0x535a8b,entity:_0x546104}=normalizeEntityWithIdResponse(await updateDbLink(_0x52d4d0));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x546104),'message':_0x29d907(0x110)+(_0x535a8b??_0x762765)};}};
@@ -1 +1 @@
1
- (function(_0x579c95,_0xdb2b5b){const _0x3bbd39=a120_0x4df3,_0x94062a=_0x579c95();while(!![]){try{const _0x3b3619=-parseInt(_0x3bbd39(0x18b))/0x1+-parseInt(_0x3bbd39(0x18c))/0x2*(parseInt(_0x3bbd39(0x18f))/0x3)+parseInt(_0x3bbd39(0x190))/0x4+parseInt(_0x3bbd39(0x18a))/0x5*(parseInt(_0x3bbd39(0x189))/0x6)+-parseInt(_0x3bbd39(0x191))/0x7+parseInt(_0x3bbd39(0x188))/0x8+-parseInt(_0x3bbd39(0x18d))/0x9*(-parseInt(_0x3bbd39(0x18e))/0xa);if(_0x3b3619===_0xdb2b5b)break;else _0x94062a['push'](_0x94062a['shift']());}catch(_0x443f6c){_0x94062a['push'](_0x94062a['shift']());}}}(a120_0x1644,0x54560));function a120_0x1644(){const _0x6372c=['3287584CjnQbA','5508TnNZGU','955vbtOHB','92022iitZAY','2tGREjC','126KaqSCe','464620xFHHyb','1642452BGOQgW','1495864ETBqgK','4380418bzwZYp'];a120_0x1644=function(){return _0x6372c;};return a120_0x1644();}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_0x4df3(_0x122c3d,_0x1294a6){_0x122c3d=_0x122c3d-0x188;const _0x1644d4=a120_0x1644();let _0x4df379=_0x1644d4[_0x122c3d];return _0x4df379;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
1
+ (function(_0x394999,_0x4b01e7){const _0x10efa0=a120_0x4ee9,_0x157316=_0x394999();while(!![]){try{const _0x31943a=-parseInt(_0x10efa0(0x127))/0x1+parseInt(_0x10efa0(0x128))/0x2*(-parseInt(_0x10efa0(0x122))/0x3)+-parseInt(_0x10efa0(0x123))/0x4+parseInt(_0x10efa0(0x124))/0x5+parseInt(_0x10efa0(0x126))/0x6+parseInt(_0x10efa0(0x129))/0x7*(-parseInt(_0x10efa0(0x12a))/0x8)+parseInt(_0x10efa0(0x125))/0x9;if(_0x31943a===_0x4b01e7)break;else _0x157316['push'](_0x157316['shift']());}catch(_0x985d2){_0x157316['push'](_0x157316['shift']());}}}(a120_0x42be,0x4c3c6));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';function a120_0x4ee9(_0x546e9c,_0x5d4075){_0x546e9c=_0x546e9c-0x122;const _0x42bed8=a120_0x42be();let _0x4ee9d6=_0x42bed8[_0x546e9c];return _0x4ee9d6;}function a120_0x42be(){const _0x363987=['56nZqoWt','309768vQvbSu','3IPNpNy','1265828svFgRN','301800yAPtuY','7232220mWwZmn','3591090CcrTHI','250495zspOXv','546946ByoACm'];a120_0x42be=function(){return _0x363987;};return a120_0x42be();}import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- function a121_0x3a54(_0x3d541f,_0x25b3e6){_0x3d541f=_0x3d541f-0x16f;const _0x15b7f6=a121_0x15b7();let _0x3a543b=_0x15b7f6[_0x3d541f];return _0x3a543b;}function a121_0x15b7(){const _0x57b800=['List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','292280GRnqDV','validation','unknown','deployment','outcome','application_deployment_sync','boolean','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','6MaqBen','1662960GLFvtC','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','appCode','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','submitted','defineProperty','4501690RfoooR','6002570QGAaxf','not_submitted','status','data','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','Submitted\x20deployment\x20synchronization\x20job\x20','deployment_sync_submit_outcome_unknown','3019920fXgGUz','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','808490iZhQot','confirm','not_needed','12910600FjeWin','job','POST'];a121_0x15b7=function(){return _0x57b800;};return a121_0x15b7();}const a121_0x23cf25=a121_0x3a54;(function(_0x38c2ee,_0x3b5460){const _0x2d18ef=a121_0x3a54,_0x3e3575=_0x38c2ee();while(!![]){try{const _0x2a458c=parseInt(_0x2d18ef(0x182))/0x1+-parseInt(_0x2d18ef(0x189))/0x2+parseInt(_0x2d18ef(0x170))/0x3+-parseInt(_0x2d18ef(0x180))/0x4+parseInt(_0x2d18ef(0x178))/0x5+parseInt(_0x2d18ef(0x16f))/0x6*(parseInt(_0x2d18ef(0x179))/0x7)+-parseInt(_0x2d18ef(0x185))/0x8;if(_0x2a458c===_0x3b5460)break;else _0x3e3575['push'](_0x3e3575['shift']());}catch(_0x1a5906){_0x3e3575['push'](_0x3e3575['shift']());}}}(a121_0x15b7,0x93e11));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH='/smartapi/data-sync/submit',CONFIRM_FLAG={'name':a121_0x23cf25(0x183),'type':a121_0x23cf25(0x18f),'description':a121_0x23cf25(0x172)};export const deploymentSyncAll={'service':a121_0x23cf25(0x18c),'command':'sync-all','description':a121_0x23cf25(0x190),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':'Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x125b20){const _0x49c5c3=a121_0x23cf25;return asDryRunResult(buildPreview(_0x125b20[_0x49c5c3(0x174)]),{'method':_0x49c5c3(0x187),'url':SUBMIT_PATH,'description':_0x49c5c3(0x17d)});},async 'execute'(_0x2d5620){const _0x54a490=a121_0x23cf25;if(!_0x2d5620['bool'](_0x54a490(0x183)))throw CliErrors[_0x54a490(0x18a)](_0x54a490(0x175),_0x54a490(0x181));try{const _0x517c8b=await submitDeploymentMetadataSyncAll({'appCode':_0x2d5620['appCode']});if(_0x517c8b[_0x54a490(0x18d)]==='not_needed')return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x2d5620['appCode'],'submitted':![],'outcome':_0x54a490(0x184)},'message':_0x54a490(0x173)};return{'ok':!![],'data':{'operation':_0x54a490(0x18e),'appCode':_0x2d5620['appCode'],'submitted':!![],'outcome':_0x54a490(0x176),'jobId':_0x517c8b[_0x54a490(0x186)]['jobId'],'status':_0x517c8b[_0x54a490(0x186)][_0x54a490(0x17b)]},'message':_0x54a490(0x17e)+_0x517c8b[_0x54a490(0x186)]['jobId']+'.'};}catch(_0x373132){if(!isPlatformTransportFailure(_0x373132))throw _0x373132;const _0x79ffca=new CliError(_0x54a490(0x17f),0x2,_0x54a490(0x171),_0x54a490(0x188));Object[_0x54a490(0x177)](_0x79ffca,_0x54a490(0x17c),{'enumerable':!![],'value':{'operation':_0x54a490(0x18e),'appCode':_0x2d5620[_0x54a490(0x174)],'submitted':null,'outcome':_0x54a490(0x18b)}});throw _0x79ffca;}}};function buildPreview(_0x4d210b){const _0x5eca27=a121_0x23cf25;return{'operation':_0x5eca27(0x18e),'selector':{'appCode':_0x4d210b,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x5eca27(0x17a)},'warnings':[]};}
1
+ const a121_0x47ae86=a121_0x2896;(function(_0xa671eb,_0xd093e8){const _0x4907b0=a121_0x2896,_0x833bf=_0xa671eb();while(!![]){try{const _0x4e5bf5=-parseInt(_0x4907b0(0xad))/0x1*(-parseInt(_0x4907b0(0xa2))/0x2)+-parseInt(_0x4907b0(0xb4))/0x3+parseInt(_0x4907b0(0xa4))/0x4+-parseInt(_0x4907b0(0xaa))/0x5*(-parseInt(_0x4907b0(0x91))/0x6)+-parseInt(_0x4907b0(0xa9))/0x7*(-parseInt(_0x4907b0(0xb2))/0x8)+-parseInt(_0x4907b0(0xa5))/0x9+-parseInt(_0x4907b0(0x98))/0xa;if(_0x4e5bf5===_0xd093e8)break;else _0x833bf['push'](_0x833bf['shift']());}catch(_0x2327bb){_0x833bf['push'](_0x833bf['shift']());}}}(a121_0x3841,0x20130));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a121_0x2896(_0x57e129,_0xcb869e){_0x57e129=_0x57e129-0x91;const _0x384120=a121_0x3841();let _0x2896dd=_0x384120[_0x57e129];return _0x2896dd;}import{CliError,CliErrors}from'../../errors.js';function a121_0x3841(){const _0x292733=['1198908kwtJOj','status','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','data','21dkNCef','220OneMps','Submitted\x20deployment\x20synchronization\x20job\x20','not_needed','10tlpHdZ','sync-all','write','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','/smartapi/data-sync/submit','370560ZLTrwx','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','754716UfyDFs','appCode','3792BWzguh','outcome','unknown','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','job','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','78630ZVjISI','submitted','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','POST','all_server_supported_metadata','application_deployment_sync','deployment','boolean','confirm','validation','28262eFwDGD','defineProperty','863780iKnuCo'];a121_0x3841=function(){return _0x292733;};return a121_0x3841();}const SUBMIT_PATH=a121_0x47ae86(0xb1),CONFIRM_FLAG={'name':a121_0x47ae86(0xa0),'type':a121_0x47ae86(0x9f),'description':a121_0x47ae86(0x97)};export const deploymentSyncAll={'service':a121_0x47ae86(0x9e),'command':a121_0x47ae86(0xae),'description':a121_0x47ae86(0xb0),'risk':a121_0x47ae86(0xaf),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a121_0x47ae86(0x94),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5603bd){const _0x2a80fd=a121_0x47ae86;return asDryRunResult(buildPreview(_0x5603bd[_0x2a80fd(0xb5)]),{'method':_0x2a80fd(0x9b),'url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0xb4fc9d){const _0x2c44a2=a121_0x47ae86;if(!_0xb4fc9d['bool'](_0x2c44a2(0xa0)))throw CliErrors[_0x2c44a2(0xa1)](_0x2c44a2(0xa7),_0x2c44a2(0x9a));try{const _0x406520=await submitDeploymentMetadataSyncAll({'appCode':_0xb4fc9d[_0x2c44a2(0xb5)]});if(_0x406520[_0x2c44a2(0x92)]===_0x2c44a2(0xac))return{'ok':!![],'data':{'operation':_0x2c44a2(0x9d),'appCode':_0xb4fc9d[_0x2c44a2(0xb5)],'submitted':![],'outcome':'not_needed'},'message':_0x2c44a2(0xb3)};return{'ok':!![],'data':{'operation':_0x2c44a2(0x9d),'appCode':_0xb4fc9d['appCode'],'submitted':!![],'outcome':_0x2c44a2(0x99),'jobId':_0x406520[_0x2c44a2(0x96)]['jobId'],'status':_0x406520[_0x2c44a2(0x96)][_0x2c44a2(0xa6)]},'message':_0x2c44a2(0xab)+_0x406520[_0x2c44a2(0x96)]['jobId']+'.'};}catch(_0x45d9de){if(!isPlatformTransportFailure(_0x45d9de))throw _0x45d9de;const _0x2c7488=new CliError('deployment_sync_submit_outcome_unknown',0x2,'Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.',_0x2c44a2(0x95));Object[_0x2c44a2(0xa3)](_0x2c7488,_0x2c44a2(0xa8),{'enumerable':!![],'value':{'operation':_0x2c44a2(0x9d),'appCode':_0xb4fc9d[_0x2c44a2(0xb5)],'submitted':null,'outcome':_0x2c44a2(0x93)}});throw _0x2c7488;}}};function buildPreview(_0x1eda35){const _0x37e62f=a121_0x47ae86;return{'operation':'application_deployment_sync','selector':{'appCode':_0x1eda35,'scope':_0x37e62f(0x9c)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':'not_submitted'},'warnings':[]};}
@@ -1 +1 @@
1
- const a122_0x47b5ee=a122_0x1bf6;(function(_0x188812,_0x34b100){const _0x5e3cbd=a122_0x1bf6,_0x5eb102=_0x188812();while(!![]){try{const _0x197713=-parseInt(_0x5e3cbd(0x17b))/0x1+-parseInt(_0x5e3cbd(0x180))/0x2+-parseInt(_0x5e3cbd(0x16b))/0x3*(parseInt(_0x5e3cbd(0x183))/0x4)+parseInt(_0x5e3cbd(0x177))/0x5*(-parseInt(_0x5e3cbd(0x17a))/0x6)+-parseInt(_0x5e3cbd(0x17d))/0x7+-parseInt(_0x5e3cbd(0x181))/0x8+parseInt(_0x5e3cbd(0x186))/0x9*(parseInt(_0x5e3cbd(0x16a))/0xa);if(_0x197713===_0x34b100)break;else _0x5eb102['push'](_0x5eb102['shift']());}catch(_0xe7c8b7){_0x5eb102['push'](_0x5eb102['shift']());}}}(a122_0x3801,0xc2b79));function a122_0x1bf6(_0x11233b,_0x21b739){_0x11233b=_0x11233b-0x169;const _0x38014a=a122_0x3801();let _0x1bf649=_0x38014a[_0x11233b];return _0x1bf649;}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_0x47b5ee(0x174),'command':a122_0x47b5ee(0x184),'description':a122_0x47b5ee(0x17f),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x47b5ee(0x17c),'type':a122_0x47b5ee(0x179),'default':0x1,'description':a122_0x47b5ee(0x17e)},{'name':a122_0x47b5ee(0x16c),'type':'number','default':0xa,'description':a122_0x47b5ee(0x170)},{'name':'status','type':a122_0x47b5ee(0x172),'description':a122_0x47b5ee(0x171)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x41d784){const _0xf28ecb=a122_0x47b5ee;readPaging(_0x41d784['num'](_0xf28ecb(0x17c),0x1),_0x41d784[_0xf28ecb(0x173)]('page-size',0xa));},async 'execute'(_0x5b96d3){const _0x52a2b5=a122_0x47b5ee,{currentPage:_0x1b9e8c,pageSize:_0x202b3}=readPaging(_0x5b96d3[_0x52a2b5(0x173)]('current-page',0x1),_0x5b96d3['num']('page-size',0xa)),_0x280819=_0x5b96d3['str'](_0x52a2b5(0x182))[_0x52a2b5(0x16e)](),_0x21df1f=await listDeploymentMetadataSyncJobs({'appCode':_0x5b96d3[_0x52a2b5(0x169)],'currentPage':_0x1b9e8c,'pageSize':_0x202b3,..._0x280819?{'status':_0x280819}:{}});return{'ok':!![],'data':{'appCode':_0x5b96d3['appCode'],..._0x21df1f},'message':_0x52a2b5(0x187)+_0x21df1f[_0x52a2b5(0x178)]['length']+_0x52a2b5(0x175)};}};function a122_0x3801(){const _0x2fc34d=['page-size','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','trim','isSafeInteger','Items\x20per\x20page\x20(maximum\x20100)','Optional\x20server-defined\x20job\x20status\x20filter','string','num','deployment','\x20deployment\x20synchronization\x20job(s).','--current-page\x20must\x20be\x20a\x20positive\x20integer.','5ghnnzV','items','number','2166636NOPsQf','1274799xIbpab','current-page','1610840TEtwUB','Page\x20number','List\x20application\x20deployment\x20synchronization\x20jobs','908796SSqdEt','5944792Cbjyjm','status','68948UTYEVY','sync-jobs','validation','2126232OPUwJJ','Found\x20','appCode','170JqiuUk','27vjjdGV'];a122_0x3801=function(){return _0x2fc34d;};return a122_0x3801();}function readPaging(_0x1ab4d4,_0x2263c2){const _0x278cd2=a122_0x47b5ee;if(!Number[_0x278cd2(0x16f)](_0x1ab4d4)||_0x1ab4d4<0x1)throw CliErrors[_0x278cd2(0x185)](_0x278cd2(0x176));if(!Number[_0x278cd2(0x16f)](_0x2263c2)||_0x2263c2<0x1||_0x2263c2>0x64)throw CliErrors[_0x278cd2(0x185)](_0x278cd2(0x16d));return{'currentPage':_0x1ab4d4,'pageSize':_0x2263c2};}
1
+ const a122_0x2008df=a122_0x5db2;(function(_0x1a8443,_0x1fdf63){const _0xdeabf9=a122_0x5db2,_0x10ecb4=_0x1a8443();while(!![]){try{const _0x186466=parseInt(_0xdeabf9(0x1c4))/0x1+-parseInt(_0xdeabf9(0x1b9))/0x2*(-parseInt(_0xdeabf9(0x1bf))/0x3)+parseInt(_0xdeabf9(0x1c0))/0x4*(parseInt(_0xdeabf9(0x1bb))/0x5)+-parseInt(_0xdeabf9(0x1b1))/0x6*(parseInt(_0xdeabf9(0x1b4))/0x7)+parseInt(_0xdeabf9(0x1c5))/0x8+parseInt(_0xdeabf9(0x1c9))/0x9+parseInt(_0xdeabf9(0x1b3))/0xa*(-parseInt(_0xdeabf9(0x1b0))/0xb);if(_0x186466===_0x1fdf63)break;else _0x10ecb4['push'](_0x10ecb4['shift']());}catch(_0x36510d){_0x10ecb4['push'](_0x10ecb4['shift']());}}}(a122_0xba96,0xef9c6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a122_0x5db2(_0x4f7148,_0x22de1c){_0x4f7148=_0x4f7148-0x1ae;const _0xba9651=a122_0xba96();let _0x5db2fc=_0xba9651[_0x4f7148];return _0x5db2fc;}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a122_0xba96(){const _0x2edcbe=['4734450VOqZmX','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','isSafeInteger','11trkfLN','7386eRbSCK','num','4282990GYadQn','8442ZmBZuI','validation','length','appCode','number','2438182gNkGOX','string','2685oQgUjQ','Items\x20per\x20page\x20(maximum\x20100)','sync-jobs','deployment','3KVevaA','5316guvmBc','Page\x20number','items','List\x20application\x20deployment\x20synchronization\x20jobs','148712UzjyxD','2294440NdGwhw','current-page','status','\x20deployment\x20synchronization\x20job(s).'];a122_0xba96=function(){return _0x2edcbe;};return a122_0xba96();}export const deploymentSyncJobs={'service':a122_0x2008df(0x1be),'command':a122_0x2008df(0x1bd),'description':a122_0x2008df(0x1c3),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a122_0x2008df(0x1c6),'type':a122_0x2008df(0x1b8),'default':0x1,'description':a122_0x2008df(0x1c1)},{'name':'page-size','type':a122_0x2008df(0x1b8),'default':0xa,'description':a122_0x2008df(0x1bc)},{'name':'status','type':a122_0x2008df(0x1ba),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x23b1f1){const _0x543e68=a122_0x2008df;readPaging(_0x23b1f1[_0x543e68(0x1b2)](_0x543e68(0x1c6),0x1),_0x23b1f1[_0x543e68(0x1b2)]('page-size',0xa));},async 'execute'(_0x281c24){const _0x5938c6=a122_0x2008df,{currentPage:_0x8dd27,pageSize:_0x491918}=readPaging(_0x281c24[_0x5938c6(0x1b2)](_0x5938c6(0x1c6),0x1),_0x281c24[_0x5938c6(0x1b2)]('page-size',0xa)),_0x29044f=_0x281c24['str'](_0x5938c6(0x1c7))['trim'](),_0x64db0b=await listDeploymentMetadataSyncJobs({'appCode':_0x281c24[_0x5938c6(0x1b7)],'currentPage':_0x8dd27,'pageSize':_0x491918,..._0x29044f?{'status':_0x29044f}:{}});return{'ok':!![],'data':{'appCode':_0x281c24['appCode'],..._0x64db0b},'message':'Found\x20'+_0x64db0b[_0x5938c6(0x1c2)][_0x5938c6(0x1b6)]+_0x5938c6(0x1c8)};}};function readPaging(_0x4df4c2,_0x2c6c75){const _0x445141=a122_0x2008df;if(!Number[_0x445141(0x1af)](_0x4df4c2)||_0x4df4c2<0x1)throw CliErrors['validation']('--current-page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number['isSafeInteger'](_0x2c6c75)||_0x2c6c75<0x1||_0x2c6c75>0x64)throw CliErrors[_0x445141(0x1b5)](_0x445141(0x1ae));return{'currentPage':_0x4df4c2,'pageSize':_0x2c6c75};}
@@ -1 +1 @@
1
- const a123_0x46356e=a123_0x3867;(function(_0x2a7035,_0xfae380){const _0x4c6ef0=a123_0x3867,_0x2e449e=_0x2a7035();while(!![]){try{const _0x2df059=-parseInt(_0x4c6ef0(0x147))/0x1*(-parseInt(_0x4c6ef0(0x149))/0x2)+parseInt(_0x4c6ef0(0x12d))/0x3*(-parseInt(_0x4c6ef0(0x145))/0x4)+-parseInt(_0x4c6ef0(0x148))/0x5*(-parseInt(_0x4c6ef0(0x13c))/0x6)+parseInt(_0x4c6ef0(0x13a))/0x7*(parseInt(_0x4c6ef0(0x14a))/0x8)+parseInt(_0x4c6ef0(0x151))/0x9*(parseInt(_0x4c6ef0(0x136))/0xa)+-parseInt(_0x4c6ef0(0x13f))/0xb*(parseInt(_0x4c6ef0(0x132))/0xc)+parseInt(_0x4c6ef0(0x14f))/0xd*(-parseInt(_0x4c6ef0(0x138))/0xe);if(_0x2df059===_0xfae380)break;else _0x2e449e['push'](_0x2e449e['shift']());}catch(_0x3eb3c5){_0x2e449e['push'](_0x2e449e['shift']());}}}(a123_0x1832,0x25f14));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a123_0x3867(_0x26e695,_0x505f29){_0x26e695=_0x26e695-0x12a;const _0x18322a=a123_0x1832();let _0x38674c=_0x18322a[_0x26e695];return _0x38674c;}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x46356e(0x12a),'PARTIAL_SUCCESS',a123_0x46356e(0x12b)]),ACTIVE_STATUSES=new Set([a123_0x46356e(0x14b),'RUNNING']);export const deploymentSyncStatus={'service':a123_0x46356e(0x12c),'command':a123_0x46356e(0x140),'description':a123_0x46356e(0x12f),'risk':a123_0x46356e(0x13e),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x46356e(0x150),'type':a123_0x46356e(0x14e),'required':!![],'description':a123_0x46356e(0x137)}],async 'validate'(_0x4bc8d0){const _0x9097b3=a123_0x46356e;readJobId(_0x4bc8d0[_0x9097b3(0x14d)](_0x9097b3(0x150)));},async 'execute'(_0x2a65e5){const _0x3d81eb=a123_0x46356e,_0x4f765d=readJobId(_0x2a65e5[_0x3d81eb(0x14d)]('job-id')),_0x3a12fd=await getDeploymentMetadataSyncStatus({'jobId':_0x4f765d,'appCode':_0x2a65e5[_0x3d81eb(0x152)]}),_0x48495d=TERMINAL_STATUSES[_0x3d81eb(0x12e)](_0x3a12fd[_0x3d81eb(0x133)])?!![]:ACTIVE_STATUSES[_0x3d81eb(0x12e)](_0x3a12fd[_0x3d81eb(0x133)])?![]:null,_0x3ecb70=countBy(_0x3a12fd[_0x3d81eb(0x142)][_0x3d81eb(0x146)](_0x1cfa07=>_0x1cfa07['bizType'])),_0x29e9d5=countBy(_0x3a12fd[_0x3d81eb(0x142)]['map'](_0xc20e92=>_0xc20e92[_0x3d81eb(0x13b)])),_0x1fca5e=_0x48495d===null?[_0x3d81eb(0x135)+_0x3a12fd[_0x3d81eb(0x133)]+_0x3d81eb(0x130)]:[];return{'ok':!![],'data':{'job':_0x3a12fd,'isTerminal':_0x48495d,'summary':{'total':_0x3a12fd[_0x3d81eb(0x142)][_0x3d81eb(0x131)],'failed':_0x3a12fd[_0x3d81eb(0x142)][_0x3d81eb(0x14c)](_0x55bb71=>_0x55bb71[_0x3d81eb(0x13b)]===_0x3d81eb(0x12b))['length'],'byBizType':_0x3ecb70,'byAction':_0x29e9d5},'warnings':_0x1fca5e},'message':_0x3d81eb(0x134)+_0x4f765d+_0x3d81eb(0x144)+_0x3a12fd['status']+'.'};}};function a123_0x1832(){const _0x1cf71b=['Preserved\x20server-defined\x20status\x20','40NKeDXt','Deployment\x20synchronization\x20job\x20ID','14QojPHH','isSafeInteger','90552jRwCwW','action','1606050kRcWJJ','--job-id\x20must\x20be\x20a\x20positive\x20integer.','read','22frpdgz','sync-status','validation','results','reduce','\x20is\x20','32lwpoiN','map','12312zmZetX','5OdoUke','18YLmmXo','176NSQDOK','PENDING','filter','num','number','8258809givMPI','job-id','664182IsmZUh','appCode','SUCCESS','FAILED','deployment','23091voLOJv','has','Get\x20application\x20deployment\x20synchronization\x20job\x20status',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','length','635916OBjyun','status','Deployment\x20synchronization\x20job\x20'];a123_0x1832=function(){return _0x1cf71b;};return a123_0x1832();}function readJobId(_0x1a2495){const _0x460201=a123_0x46356e;if(!Number[_0x460201(0x139)](_0x1a2495)||_0x1a2495<=0x0)throw CliErrors[_0x460201(0x141)](_0x460201(0x13d));return _0x1a2495;}function countBy(_0x262b72){const _0x17a8e1=a123_0x46356e;return _0x262b72[_0x17a8e1(0x143)]((_0x4c811b,_0x53b484)=>{return _0x4c811b[_0x53b484]=(_0x4c811b[_0x53b484]??0x0)+0x1,_0x4c811b;},{});}
1
+ const a123_0x478f94=a123_0xc44a;function a123_0xc44a(_0x5c4f05,_0x91ec94){_0x5c4f05=_0x5c4f05-0xb9;const _0x327fd3=a123_0x327f();let _0xc44a79=_0x327fd3[_0x5c4f05];return _0xc44a79;}(function(_0x2802e8,_0x3d2b17){const _0x1dc2f1=a123_0xc44a,_0x141967=_0x2802e8();while(!![]){try{const _0x5cd445=-parseInt(_0x1dc2f1(0xc4))/0x1+parseInt(_0x1dc2f1(0xcd))/0x2*(-parseInt(_0x1dc2f1(0xda))/0x3)+parseInt(_0x1dc2f1(0xce))/0x4*(-parseInt(_0x1dc2f1(0xd6))/0x5)+-parseInt(_0x1dc2f1(0xd4))/0x6*(parseInt(_0x1dc2f1(0xd8))/0x7)+parseInt(_0x1dc2f1(0xbb))/0x8*(-parseInt(_0x1dc2f1(0xc1))/0x9)+-parseInt(_0x1dc2f1(0xbc))/0xa+-parseInt(_0x1dc2f1(0xbf))/0xb*(-parseInt(_0x1dc2f1(0xb9))/0xc);if(_0x5cd445===_0x3d2b17)break;else _0x141967['push'](_0x141967['shift']());}catch(_0x183373){_0x141967['push'](_0x141967['shift']());}}}(a123_0x327f,0xb2167));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a123_0x478f94(0xbe),a123_0x478f94(0xc9),a123_0x478f94(0xcc)]),ACTIVE_STATUSES=new Set([a123_0x478f94(0xcf),a123_0x478f94(0xca)]);function a123_0x327f(){const _0x444db8=['2676XVGbZd','16gtXzeU','PENDING','has','num','reduce','--job-id\x20must\x20be\x20a\x20positive\x20integer.','3756hcvZtn','Deployment\x20synchronization\x20job\x20','541495PWprdT','bizType','12103LEKtxR','isSafeInteger','2643kRWUUZ','number','action','read','length','appCode','65052996AYnzpb','filter','151528lGFRlC','2946660HgINKZ',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','SUCCESS','11TOoUiU','Get\x20application\x20deployment\x20synchronization\x20job\x20status','387UtMtUw','results','\x20is\x20','888179EdMuWu','sync-status','job-id','Preserved\x20server-defined\x20status\x20','status','PARTIAL_SUCCESS','RUNNING','validation','FAILED'];a123_0x327f=function(){return _0x444db8;};return a123_0x327f();}export const deploymentSyncStatus={'service':'deployment','command':a123_0x478f94(0xc5),'description':a123_0x478f94(0xc0),'risk':a123_0x478f94(0xdd),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a123_0x478f94(0xc6),'type':a123_0x478f94(0xdb),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0xbcf99d){const _0x17393f=a123_0x478f94;readJobId(_0xbcf99d[_0x17393f(0xd1)](_0x17393f(0xc6)));},async 'execute'(_0x439103){const _0x173d27=a123_0x478f94,_0x2a7ebd=readJobId(_0x439103[_0x173d27(0xd1)](_0x173d27(0xc6))),_0x4020f2=await getDeploymentMetadataSyncStatus({'jobId':_0x2a7ebd,'appCode':_0x439103[_0x173d27(0xdf)]}),_0x5bd8cb=TERMINAL_STATUSES[_0x173d27(0xd0)](_0x4020f2[_0x173d27(0xc8)])?!![]:ACTIVE_STATUSES[_0x173d27(0xd0)](_0x4020f2[_0x173d27(0xc8)])?![]:null,_0x18bc98=countBy(_0x4020f2[_0x173d27(0xc2)]['map'](_0x262f5c=>_0x262f5c[_0x173d27(0xd7)])),_0x26f781=countBy(_0x4020f2['results']['map'](_0x279971=>_0x279971[_0x173d27(0xdc)])),_0x592910=_0x5bd8cb===null?[_0x173d27(0xc7)+_0x4020f2[_0x173d27(0xc8)]+_0x173d27(0xbd)]:[];return{'ok':!![],'data':{'job':_0x4020f2,'isTerminal':_0x5bd8cb,'summary':{'total':_0x4020f2[_0x173d27(0xc2)][_0x173d27(0xde)],'failed':_0x4020f2[_0x173d27(0xc2)][_0x173d27(0xba)](_0xcaeca9=>_0xcaeca9[_0x173d27(0xdc)]===_0x173d27(0xcc))[_0x173d27(0xde)],'byBizType':_0x18bc98,'byAction':_0x26f781},'warnings':_0x592910},'message':_0x173d27(0xd5)+_0x2a7ebd+_0x173d27(0xc3)+_0x4020f2['status']+'.'};}};function readJobId(_0x1ec852){const _0x5e3c00=a123_0x478f94;if(!Number[_0x5e3c00(0xd9)](_0x1ec852)||_0x1ec852<=0x0)throw CliErrors[_0x5e3c00(0xcb)](_0x5e3c00(0xd3));return _0x1ec852;}function countBy(_0x175267){const _0x45b022=a123_0x478f94;return _0x175267[_0x45b022(0xd2)]((_0x3919c7,_0x212146)=>{return _0x3919c7[_0x212146]=(_0x3919c7[_0x212146]??0x0)+0x1,_0x3919c7;},{});}