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

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 (245) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/notification/config-list.js +1 -1
  115. package/lib/commands/notification/index.js +1 -1
  116. package/lib/commands/page/generate-start.js +1 -1
  117. package/lib/commands/page/generate-status.js +1 -1
  118. package/lib/commands/page/index.js +1 -1
  119. package/lib/commands/page/pull.js +1 -1
  120. package/lib/commands/page/push.js +1 -1
  121. package/lib/commands/page/relation-audit.js +1 -1
  122. package/lib/commands/page/shared.js +1 -1
  123. package/lib/commands/page/standard-page-status.js +1 -1
  124. package/lib/commands/page/sync.js +1 -1
  125. package/lib/commands/permit/index.js +1 -1
  126. package/lib/commands/permit/page-get.js +1 -1
  127. package/lib/commands/permit/page-set.js +1 -1
  128. package/lib/commands/permit/role-apis-set.js +1 -1
  129. package/lib/commands/permit/role-menus-set.js +1 -1
  130. package/lib/commands/permit/role-menus.js +1 -1
  131. package/lib/commands/permit/shared.js +1 -1
  132. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  133. package/lib/commands/project/create/format-elapsed.js +1 -1
  134. package/lib/commands/project/create/main.js +1 -1
  135. package/lib/commands/project/create/non-interactive.js +1 -1
  136. package/lib/commands/project/create/project-template-path.js +1 -1
  137. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  138. package/lib/commands/project/create/use-format-code.js +1 -1
  139. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  140. package/lib/commands/project/index.js +1 -1
  141. package/lib/commands/project/init.js +1 -1
  142. package/lib/commands/project/upgrade.js +1 -1
  143. package/lib/commands/registry.js +1 -1
  144. package/lib/commands/role/create.js +1 -1
  145. package/lib/commands/role/delete.js +1 -1
  146. package/lib/commands/role/detail.js +1 -1
  147. package/lib/commands/role/index.js +1 -1
  148. package/lib/commands/role/list.js +1 -1
  149. package/lib/commands/role/shared.js +1 -1
  150. package/lib/commands/role/update.js +1 -1
  151. package/lib/commands/role/user-add.js +1 -1
  152. package/lib/commands/role/user-remove.js +1 -1
  153. package/lib/commands/role/user-resolve.js +1 -1
  154. package/lib/commands/run/index.js +1 -1
  155. package/lib/commands/schema.js +1 -1
  156. package/lib/commands/sql/create.js +1 -1
  157. package/lib/commands/sql/delete.js +1 -1
  158. package/lib/commands/sql/detail.js +1 -1
  159. package/lib/commands/sql/exec.js +1 -1
  160. package/lib/commands/sql/index.js +1 -1
  161. package/lib/commands/sql/list.js +1 -1
  162. package/lib/commands/sql/pull.js +1 -1
  163. package/lib/commands/sql/push.js +1 -1
  164. package/lib/commands/sql/save.js +1 -1
  165. package/lib/commands/sql/shared.js +1 -1
  166. package/lib/commands/sql/status.js +1 -1
  167. package/lib/commands/sql/validate.js +1 -1
  168. package/lib/commands/workspace/add.js +1 -1
  169. package/lib/commands/workspace/index.js +1 -1
  170. package/lib/commands/workspace/remove.js +1 -1
  171. package/lib/config/schema.js +1 -1
  172. package/lib/constant/cdn.js +1 -1
  173. package/lib/constant/cli.js +1 -1
  174. package/lib/constant/defaults.js +1 -1
  175. package/lib/constant/domain.js +1 -1
  176. package/lib/constant/env.js +1 -1
  177. package/lib/constant/output.js +1 -1
  178. package/lib/constant/paths.js +1 -1
  179. package/lib/constant/risk.js +1 -1
  180. package/lib/context/app-resolver.js +1 -1
  181. package/lib/context/auth-resolver.js +1 -1
  182. package/lib/context/config-loader.js +1 -1
  183. package/lib/context.js +1 -1
  184. package/lib/core/alias-resolver.js +1 -1
  185. package/lib/core/api-client.js +1 -1
  186. package/lib/core/bff/config.js +1 -1
  187. package/lib/core/bff/file-system.js +1 -1
  188. package/lib/core/bff/hash.js +1 -1
  189. package/lib/core/bff/lock.js +1 -1
  190. package/lib/core/bff/utils.js +1 -1
  191. package/lib/core/db-resolver.js +1 -1
  192. package/lib/core/page/file-system.js +1 -1
  193. package/lib/core/page/hash.js +1 -1
  194. package/lib/core/page/lock.js +1 -1
  195. package/lib/core/sql-sync/config.js +1 -1
  196. package/lib/core/sql-sync/file-system.js +1 -1
  197. package/lib/core/sql-sync/hash.js +1 -1
  198. package/lib/core/sql-sync/lock.js +1 -1
  199. package/lib/core/sql-sync/utils.js +1 -1
  200. package/lib/core/sql-validator.js +1 -1
  201. package/lib/errors.js +1 -1
  202. package/lib/framework/build-all-flags.js +1 -1
  203. package/lib/framework/flags.js +1 -1
  204. package/lib/framework/help.js +1 -1
  205. package/lib/framework/index.js +1 -1
  206. package/lib/framework/output.js +1 -1
  207. package/lib/framework/response.js +1 -1
  208. package/lib/framework/runner-alias.js +1 -1
  209. package/lib/framework/runner.js +1 -1
  210. package/lib/framework/schema-export.js +1 -1
  211. package/lib/framework/types.js +1 -1
  212. package/lib/generated/build-info.js +1 -1
  213. package/lib/help.js +1 -1
  214. package/lib/skills/main.js +1 -1
  215. package/lib/skills/npx-skills-add.js +1 -1
  216. package/lib/telemetry/cli-command-trace.js +1 -1
  217. package/lib/telemetry/cli-help-trace.js +1 -1
  218. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  219. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  220. package/lib/telemetry/send-cli-trace-log.js +1 -1
  221. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  222. package/lib/utils/ai_config.js +1 -1
  223. package/lib/utils/apply-jq-filter.js +1 -1
  224. package/lib/utils/cdn-config.js +1 -1
  225. package/lib/utils/check-sdk-version.js +1 -1
  226. package/lib/utils/cli-version-check.js +1 -1
  227. package/lib/utils/cli-version-policy.js +1 -1
  228. package/lib/utils/config.js +1 -1
  229. package/lib/utils/copy-directory.js +1 -1
  230. package/lib/utils/entity-with-id.js +1 -1
  231. package/lib/utils/file-utils.js +1 -1
  232. package/lib/utils/guides-cdn.js +1 -1
  233. package/lib/utils/http-client.js +1 -1
  234. package/lib/utils/is-non-interactive.js +1 -1
  235. package/lib/utils/logger.js +1 -1
  236. package/lib/utils/params.js +1 -1
  237. package/lib/utils/platform.js +1 -1
  238. package/lib/utils/rules-cdn.js +1 -1
  239. package/lib/utils/sleep.js +1 -1
  240. package/lib/utils/template-replacer.js +1 -1
  241. package/lib/utils/update-notice.js +1 -1
  242. package/lib/utils/version.js +1 -1
  243. package/lib/utils/with-active-cookie.js +1 -1
  244. package/lib/utils/write-cli-side-channel.js +1 -1
  245. package/package.json +1 -1
@@ -1 +1 @@
1
- const a75_0x238a8b=a75_0xf8f6;function a75_0xcc6a(){const _0x379f05=['10XgUDMI','New\x20dataset\x20display\x20name','trim',',\x20actual\x20','48083dSHohc','request','\x20would\x20be\x20renamed\x20to\x20','datasetCode','152hzOFRz','4893ewJrQf','isArray','name','382GUzbAU','string','object','7070364jCMdpY','dataset','expectName','code','data','modelId','/smartapi/dataset/update-driven-data','Expectation\x20mismatch\x20at\x20dataset.name','1483052eprNPG','stringify','Renamed\x20dataset\x20','6tYtvbH','--expect-name\x20is\x20required','validation','--code\x20is\x20required','message','rename','10900140sHyAcZ','No\x20changes\x20for\x20dataset\x20','\x20to\x20','write','8042419nrJcAg','str','datasetId','POST','3UcPMTI','Expected\x20','modelCode','5187335Keluhi','Dry-run:\x20dataset\x20','Rename\x20dataset\x20display\x20name\x20safely'];a75_0xcc6a=function(){return _0x379f05;};return a75_0xcc6a();}(function(_0x3fc13c,_0x5616a2){const _0x102b7c=a75_0xf8f6,_0x4f034f=_0x3fc13c();while(!![]){try{const _0x3a2128=-parseInt(_0x102b7c(0x178))/0x1*(parseInt(_0x102b7c(0x17b))/0x2)+parseInt(_0x102b7c(0x169))/0x3*(-parseInt(_0x102b7c(0x186))/0x4)+parseInt(_0x102b7c(0x16c))/0x5*(parseInt(_0x102b7c(0x189))/0x6)+-parseInt(_0x102b7c(0x173))/0x7*(-parseInt(_0x102b7c(0x177))/0x8)+-parseInt(_0x102b7c(0x17e))/0x9+-parseInt(_0x102b7c(0x16f))/0xa*(-parseInt(_0x102b7c(0x193))/0xb)+parseInt(_0x102b7c(0x18f))/0xc;if(_0x3a2128===_0x5616a2)break;else _0x4f034f['push'](_0x4f034f['shift']());}catch(_0x69c547){_0x4f034f['push'](_0x4f034f['shift']());}}}(a75_0xcc6a,0xaeef2));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a75_0xf8f6(_0x4b8a8e,_0x251f10){_0x4b8a8e=_0x4b8a8e-0x169;const _0xcc6add=a75_0xcc6a();let _0xf8f62d=_0xcc6add[_0x4b8a8e];return _0xf8f62d;}import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x33743f,dryRun:_0x41b7f6}){const _0x219696=a75_0xf8f6;validateInput(_0x33743f);const _0x2f34ac=await getDatasetDetail(_0x33743f[_0x219696(0x181)]),_0x362bb9=resolveCurrentName(_0x2f34ac);if(_0x362bb9!==_0x33743f[_0x219696(0x180)])throw CliErrors[_0x219696(0x18b)](_0x219696(0x185),_0x219696(0x16a)+JSON['stringify'](_0x33743f[_0x219696(0x180)])+_0x219696(0x172)+JSON[_0x219696(0x187)](_0x362bb9));const _0x10514a=buildRenameRequest(_0x2f34ac,_0x33743f),_0x48c524=_0x362bb9!==_0x33743f[_0x219696(0x17a)];let _0x34656f;return _0x48c524&&!_0x41b7f6&&(_0x34656f=await updateDrivenData(_0x10514a)),{'ok':!![],'data':{'dataset':{'id':_0x10514a[_0x219696(0x183)],'code':_0x10514a['modelCode']},'dryRun':_0x41b7f6,'changed':_0x48c524,'before':{'name':_0x362bb9},'after':{'name':_0x33743f[_0x219696(0x17a)]},'request':_0x10514a,'submitted':_0x48c524&&!_0x41b7f6,..._0x34656f!==undefined?{'version':_0x34656f}:{}},'message':_0x48c524?_0x41b7f6?_0x219696(0x16d)+_0x10514a['modelCode']+_0x219696(0x175)+_0x33743f[_0x219696(0x17a)]:_0x219696(0x188)+_0x10514a[_0x219696(0x16b)]+_0x219696(0x191)+_0x33743f[_0x219696(0x17a)]:_0x219696(0x190)+_0x10514a[_0x219696(0x16b)]};}export const datasetRename={'service':a75_0x238a8b(0x17f),'command':a75_0x238a8b(0x18e),'description':a75_0x238a8b(0x16e),'risk':a75_0x238a8b(0x192),'flags':[CODE_FLAG,{'name':'name','type':'string','required':!![],'description':a75_0x238a8b(0x170)},{'name':'expect-name','type':a75_0x238a8b(0x17c),'required':!![],'description':'Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1aa204){validateInput(readDatasetRenameInput(_0x1aa204));},async 'dryRun'(_0x4fc97a){const _0x3f189c=a75_0x238a8b,_0x50ac34=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x4fc97a),'dryRun':!![]});return{'method':_0x3f189c(0x196),'url':_0x3f189c(0x184),'body':_0x50ac34[_0x3f189c(0x182)][_0x3f189c(0x174)],'description':_0x50ac34[_0x3f189c(0x18d)],..._0x50ac34[_0x3f189c(0x182)]};},async 'execute'(_0x46374e){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x46374e),'dryRun':![]});}};function readDatasetRenameInput(_0xcd7ab2){const _0x27cc97=a75_0x238a8b;return{'code':trim(_0xcd7ab2[_0x27cc97(0x194)](_0x27cc97(0x181))),'name':trim(_0xcd7ab2['str'](_0x27cc97(0x17a))),'expectName':trim(_0xcd7ab2[_0x27cc97(0x194)]('expect-name'))};}function validateInput(_0x31cbe0){const _0x31be8f=a75_0x238a8b;if(!_0x31cbe0['code'])throw CliErrors[_0x31be8f(0x18b)](_0x31be8f(0x18c));if(!_0x31cbe0[_0x31be8f(0x17a)])throw CliErrors['validation']('--name\x20is\x20required');if(!_0x31cbe0[_0x31be8f(0x180)])throw CliErrors['validation'](_0x31be8f(0x18a));}function resolveCurrentName(_0x4a1c81){const _0x797952=a75_0x238a8b;return String(_0x4a1c81[_0x797952(0x17f)]?.['datasetName']??_0x4a1c81[_0x797952(0x17a)]??'')['trim']();}function buildRenameRequest(_0x14a49a,_0x2e0714){const _0x3460ed=a75_0x238a8b,_0x4f2e94=isPlainObject(_0x14a49a[_0x3460ed(0x17f)])?_0x14a49a[_0x3460ed(0x17f)]:{},_0x3b8652=_0x14a49a['modelId']??_0x14a49a['id']??_0x4f2e94[_0x3460ed(0x195)];if(_0x3b8652===undefined||_0x3b8652===null||_0x3b8652==='')throw CliErrors[_0x3460ed(0x18b)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id');const _0x4f0584=String(_0x14a49a[_0x3460ed(0x16b)]??_0x14a49a['code']??_0x4f2e94[_0x3460ed(0x176)]??_0x2e0714[_0x3460ed(0x181)])[_0x3460ed(0x171)]();if(!_0x4f0584)throw CliErrors[_0x3460ed(0x18b)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code');return{'modelId':_0x3b8652,'modelCode':_0x4f0584,'name':_0x2e0714[_0x3460ed(0x17a)],'dataset':{'datasetId':_0x3b8652,'datasetCode':_0x4f0584,'datasetName':_0x2e0714[_0x3460ed(0x17a)]}};}function isPlainObject(_0x27815d){const _0x259d2b=a75_0x238a8b;return Boolean(_0x27815d)&&typeof _0x27815d===_0x259d2b(0x17d)&&!Array[_0x259d2b(0x179)](_0x27815d);}function trim(_0x4444bd){const _0x1ba216=a75_0x238a8b;return String(_0x4444bd||'')[_0x1ba216(0x171)]();}
1
+ const a75_0x399a65=a75_0x222f;(function(_0x4a9e23,_0x48127f){const _0x1a100d=a75_0x222f,_0x22ff9d=_0x4a9e23();while(!![]){try{const _0x5bb203=parseInt(_0x1a100d(0x1d8))/0x1*(-parseInt(_0x1a100d(0x1e0))/0x2)+parseInt(_0x1a100d(0x1f3))/0x3*(parseInt(_0x1a100d(0x1e3))/0x4)+parseInt(_0x1a100d(0x1d4))/0x5+-parseInt(_0x1a100d(0x1ee))/0x6+parseInt(_0x1a100d(0x1f4))/0x7*(-parseInt(_0x1a100d(0x1d2))/0x8)+parseInt(_0x1a100d(0x1e4))/0x9+-parseInt(_0x1a100d(0x1f6))/0xa*(-parseInt(_0x1a100d(0x1d0))/0xb);if(_0x5bb203===_0x48127f)break;else _0x22ff9d['push'](_0x22ff9d['shift']());}catch(_0x3b215a){_0x22ff9d['push'](_0x22ff9d['shift']());}}}(a75_0x4e5b,0x20341));import{getDatasetDetail,updateDrivenData}from'../../core/api-client.js';function a75_0x4e5b(){const _0x48ff8a=[',\x20actual\x20','460RNzvFC','\x20to\x20','Renamed\x20dataset\x20','object','datasetId','61556NiYnrd','--name\x20is\x20required','16zZPlDl','isArray','7990KOGyye','\x20would\x20be\x20renamed\x20to\x20','data','Expected\x20','254978hdMHbJ','dataset','expect-name','string','Expectation\x20mismatch\x20at\x20dataset.name','code','modelCode','stringify','2ezPdAm','--code\x20is\x20required','No\x20changes\x20for\x20dataset\x20','12GiXqqo','844650nLmejH','str','/smartapi/dataset/update-driven-data','modelId','request','name','Dry-run:\x20dataset\x20','validation','--expect-name\x20is\x20required','write','118380hOeRYw','trim','Expected\x20current\x20dataset\x20display\x20name;\x20mismatch\x20aborts\x20without\x20writing','Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20id','expectName','125991PhQHjE','252847DpPndH'];a75_0x4e5b=function(){return _0x48ff8a;};return a75_0x4e5b();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';export async function buildDatasetRenameResult({input:_0x4635c7,dryRun:_0x39bbea}){const _0x406817=a75_0x222f;validateInput(_0x4635c7);const _0x388422=await getDatasetDetail(_0x4635c7[_0x406817(0x1dd)]),_0x57d069=resolveCurrentName(_0x388422);if(_0x57d069!==_0x4635c7[_0x406817(0x1f2)])throw CliErrors[_0x406817(0x1eb)](_0x406817(0x1dc),_0x406817(0x1d7)+JSON[_0x406817(0x1df)](_0x4635c7['expectName'])+_0x406817(0x1f5)+JSON[_0x406817(0x1df)](_0x57d069));const _0x239f9a=buildRenameRequest(_0x388422,_0x4635c7),_0x5e5bfe=_0x57d069!==_0x4635c7[_0x406817(0x1e9)];let _0x2ea6f7;return _0x5e5bfe&&!_0x39bbea&&(_0x2ea6f7=await updateDrivenData(_0x239f9a)),{'ok':!![],'data':{'dataset':{'id':_0x239f9a['modelId'],'code':_0x239f9a[_0x406817(0x1de)]},'dryRun':_0x39bbea,'changed':_0x5e5bfe,'before':{'name':_0x57d069},'after':{'name':_0x4635c7[_0x406817(0x1e9)]},'request':_0x239f9a,'submitted':_0x5e5bfe&&!_0x39bbea,..._0x2ea6f7!==undefined?{'version':_0x2ea6f7}:{}},'message':_0x5e5bfe?_0x39bbea?_0x406817(0x1ea)+_0x239f9a[_0x406817(0x1de)]+_0x406817(0x1d5)+_0x4635c7[_0x406817(0x1e9)]:_0x406817(0x1cd)+_0x239f9a[_0x406817(0x1de)]+_0x406817(0x1f7)+_0x4635c7[_0x406817(0x1e9)]:_0x406817(0x1e2)+_0x239f9a[_0x406817(0x1de)]};}export const datasetRename={'service':a75_0x399a65(0x1d9),'command':'rename','description':'Rename\x20dataset\x20display\x20name\x20safely','risk':a75_0x399a65(0x1ed),'flags':[CODE_FLAG,{'name':a75_0x399a65(0x1e9),'type':a75_0x399a65(0x1db),'required':!![],'description':'New\x20dataset\x20display\x20name'},{'name':a75_0x399a65(0x1da),'type':a75_0x399a65(0x1db),'required':!![],'description':a75_0x399a65(0x1f0)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x49d22f){validateInput(readDatasetRenameInput(_0x49d22f));},async 'dryRun'(_0x1b86a4){const _0x2f00c1=a75_0x399a65,_0x4a6e3c=await buildDatasetRenameResult({'input':readDatasetRenameInput(_0x1b86a4),'dryRun':!![]});return{'method':'POST','url':_0x2f00c1(0x1e6),'body':_0x4a6e3c[_0x2f00c1(0x1d6)][_0x2f00c1(0x1e8)],'description':_0x4a6e3c['message'],..._0x4a6e3c[_0x2f00c1(0x1d6)]};},async 'execute'(_0x5eab50){return buildDatasetRenameResult({'input':readDatasetRenameInput(_0x5eab50),'dryRun':![]});}};function readDatasetRenameInput(_0xa76639){const _0xe34dec=a75_0x399a65;return{'code':trim(_0xa76639[_0xe34dec(0x1e5)](_0xe34dec(0x1dd))),'name':trim(_0xa76639['str']('name')),'expectName':trim(_0xa76639['str'](_0xe34dec(0x1da)))};}function a75_0x222f(_0x3c700e,_0x55a46d){_0x3c700e=_0x3c700e-0x1cd;const _0x4e5bde=a75_0x4e5b();let _0x222f96=_0x4e5bde[_0x3c700e];return _0x222f96;}function validateInput(_0x5631a0){const _0x9e452f=a75_0x399a65;if(!_0x5631a0[_0x9e452f(0x1dd)])throw CliErrors[_0x9e452f(0x1eb)](_0x9e452f(0x1e1));if(!_0x5631a0[_0x9e452f(0x1e9)])throw CliErrors[_0x9e452f(0x1eb)](_0x9e452f(0x1d1));if(!_0x5631a0[_0x9e452f(0x1f2)])throw CliErrors[_0x9e452f(0x1eb)](_0x9e452f(0x1ec));}function resolveCurrentName(_0x553a96){const _0x12e0f9=a75_0x399a65;return String(_0x553a96[_0x12e0f9(0x1d9)]?.['datasetName']??_0x553a96[_0x12e0f9(0x1e9)]??'')['trim']();}function buildRenameRequest(_0x4dcc1c,_0x15d2dc){const _0x4fcb93=a75_0x399a65,_0x9c45d3=isPlainObject(_0x4dcc1c[_0x4fcb93(0x1d9)])?_0x4dcc1c[_0x4fcb93(0x1d9)]:{},_0x4a2c3e=_0x4dcc1c[_0x4fcb93(0x1e7)]??_0x4dcc1c['id']??_0x9c45d3[_0x4fcb93(0x1cf)];if(_0x4a2c3e===undefined||_0x4a2c3e===null||_0x4a2c3e==='')throw CliErrors[_0x4fcb93(0x1eb)](_0x4fcb93(0x1f1));const _0x22986a=String(_0x4dcc1c[_0x4fcb93(0x1de)]??_0x4dcc1c[_0x4fcb93(0x1dd)]??_0x9c45d3['datasetCode']??_0x15d2dc[_0x4fcb93(0x1dd)])[_0x4fcb93(0x1ef)]();if(!_0x22986a)throw CliErrors[_0x4fcb93(0x1eb)]('Dataset\x20detail\x20does\x20not\x20contain\x20dataset\x20code');return{'modelId':_0x4a2c3e,'modelCode':_0x22986a,'name':_0x15d2dc['name'],'dataset':{'datasetId':_0x4a2c3e,'datasetCode':_0x22986a,'datasetName':_0x15d2dc[_0x4fcb93(0x1e9)]}};}function isPlainObject(_0x4b1adf){const _0x495514=a75_0x399a65;return Boolean(_0x4b1adf)&&typeof _0x4b1adf===_0x495514(0x1ce)&&!Array[_0x495514(0x1d3)](_0x4b1adf);}function trim(_0xa291a4){return String(_0xa291a4||'')['trim']();}
@@ -1 +1 @@
1
- const a76_0x251a49=a76_0x37e3;(function(_0xfa2688,_0x34479b){const _0x1d5233=a76_0x37e3,_0xac5c80=_0xfa2688();while(!![]){try{const _0x1ef62b=parseInt(_0x1d5233(0x1bc))/0x1*(parseInt(_0x1d5233(0x1ae))/0x2)+parseInt(_0x1d5233(0x1a3))/0x3*(parseInt(_0x1d5233(0x1ad))/0x4)+-parseInt(_0x1d5233(0x1b9))/0x5+-parseInt(_0x1d5233(0x1b6))/0x6+parseInt(_0x1d5233(0x1a7))/0x7+-parseInt(_0x1d5233(0x1af))/0x8*(parseInt(_0x1d5233(0x1a0))/0x9)+parseInt(_0x1d5233(0x199))/0xa*(parseInt(_0x1d5233(0x1a9))/0xb);if(_0x1ef62b===_0x34479b)break;else _0xac5c80['push'](_0xac5c80['shift']());}catch(_0x13a89a){_0xac5c80['push'](_0xac5c80['shift']());}}}(a76_0x47fe,0x67946));import{listDatasets,restoreDataset}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a76_0x47fe(){const _0x24de72=['expected-count','confirm','number','validation','Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id','/smartapi/dataset/restore-dataset','bool','length','3215470iwnNYw','description','Restored\x20','tableName','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','name','dbid=','119583izfOWY','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','\x20dataset(s)','10968ORSSjq','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','code','str','5530581MUxbCe','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','22QDXtJP','message','Would\x20restore\x20','dbId','604eCXsre','6kikAhL','200fxeinK','high-risk-write','Required\x20to\x20execute\x20dataset\x20restore','Matched\x20','num','POST','\x20dataset(s);\x20','3531918vDAXrR','appCode','dataset','3942135bXxRHw','dbtableConfig','filter','49428xDymal','boolean','dbid','isArray','id=','map','relationPages','push','No\x20deleted\x20dataset\x20found\x20for\x20'];a76_0x47fe=function(){return _0x24de72;};return a76_0x47fe();}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a76_0x251a49(0x1c7),'description':'Dataset\x20id'},DBID_FLAG={'name':a76_0x251a49(0x1be),'type':'number','description':a76_0x251a49(0x195)},CONFIRM_FLAG={'name':a76_0x251a49(0x1c6),'type':a76_0x251a49(0x1bd),'description':a76_0x251a49(0x1b1)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a76_0x251a49(0x1c7),'description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};function a76_0x37e3(_0x563d5e,_0x4835b7){_0x563d5e=_0x563d5e-0x195;const _0x47fe93=a76_0x47fe();let _0x37e32d=_0x47fe93[_0x563d5e];return _0x37e32d;}export const datasetRestore={'service':a76_0x251a49(0x1b8),'command':'restore','description':a76_0x251a49(0x19d),'risk':a76_0x251a49(0x1b0),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5be680){const _0x1745e6=a76_0x251a49,_0x2aac6c=_0x5be680[_0x1745e6(0x1b3)]('id'),_0x46273b=_0x5be680[_0x1745e6(0x1a6)](_0x1745e6(0x1a5)),_0x19c0f3=_0x5be680[_0x1745e6(0x1b3)]('dbid'),_0x19f78a=[_0x2aac6c>0x0,Boolean(_0x46273b),_0x19c0f3>0x0][_0x1745e6(0x1bb)](Boolean);if(_0x19f78a[_0x1745e6(0x198)]===0x0)throw CliErrors[_0x1745e6(0x1c8)](_0x1745e6(0x1a4));if(_0x19f78a['length']>0x1)throw CliErrors[_0x1745e6(0x1c8)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x23444e){const _0x4fe69b=a76_0x251a49,_0x1b54b8=await resolveTargets(_0x23444e);return{'method':_0x4fe69b(0x1b4),'url':_0x4fe69b(0x196),'body':{'appCode':_0x23444e[_0x4fe69b(0x1b7)],'count':_0x1b54b8[_0x4fe69b(0x198)],'datasets':_0x1b54b8},'description':_0x4fe69b(0x1ab)+_0x1b54b8[_0x4fe69b(0x198)]+'\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.'};},async 'execute'(_0x4268dc){const _0x5e46e4=a76_0x251a49;if(!_0x4268dc[_0x5e46e4(0x197)](_0x5e46e4(0x1c6)))throw CliErrors['validation'](_0x5e46e4(0x1a1),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x31c832=await resolveTargets(_0x4268dc),_0x30b774=[],_0x219dcb=[];for(const _0x521933 of _0x31c832){try{await restoreDataset(_0x4268dc[_0x5e46e4(0x1b7)],_0x521933['id']),_0x30b774[_0x5e46e4(0x1c3)](_0x521933);}catch(_0x4e249c){_0x219dcb[_0x5e46e4(0x1c3)]({..._0x521933,'error':_0x4e249c instanceof Error?_0x4e249c[_0x5e46e4(0x1aa)]:String(_0x4e249c)});}}if(_0x219dcb['length']>0x0)return{'ok':![],'data':{'requested':_0x31c832['length'],'restoredCount':_0x30b774[_0x5e46e4(0x198)],'failedCount':_0x219dcb[_0x5e46e4(0x198)],'restored':_0x30b774,'failed':_0x219dcb},'message':_0x5e46e4(0x19b)+_0x30b774[_0x5e46e4(0x198)]+'/'+_0x31c832[_0x5e46e4(0x198)]+_0x5e46e4(0x1b5)+_0x219dcb[_0x5e46e4(0x198)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0x31c832[_0x5e46e4(0x198)],'restoredCount':_0x30b774[_0x5e46e4(0x198)],'restored':_0x30b774},'message':_0x5e46e4(0x19b)+_0x30b774[_0x5e46e4(0x198)]+_0x5e46e4(0x1a2)};}};async function resolveTargets(_0x7b8027){const _0x2203ff=a76_0x251a49,_0x327d8f=_0x7b8027[_0x2203ff(0x1b3)]('id'),_0x3a8d21=_0x7b8027[_0x2203ff(0x1a6)](_0x2203ff(0x1a5)),_0x63c1e4=_0x7b8027[_0x2203ff(0x1b3)](_0x2203ff(0x1be));let _0x2773d0;_0x3a8d21?(_0x2773d0=await listDatasets(_0x7b8027[_0x2203ff(0x1b7)],{'code':_0x3a8d21,'deleted':!![]}),_0x2773d0=_0x2773d0[_0x2203ff(0x1bb)](_0x5069c9=>_0x5069c9['code']===_0x3a8d21)):(_0x2773d0=await listDatasets(_0x7b8027[_0x2203ff(0x1b7)],{'deleted':!![]}),_0x327d8f>0x0&&(_0x2773d0=_0x2773d0['filter'](_0x436994=>_0x436994['id']===_0x327d8f)),_0x63c1e4>0x0&&(_0x2773d0=_0x2773d0['filter'](_0x25ad94=>_0x25ad94[_0x2203ff(0x1ba)]?.['dbId']===_0x63c1e4)));const _0x14b09b=_0x2773d0[_0x2203ff(0x1c1)](normalizeTarget);if(_0x14b09b[_0x2203ff(0x198)]===0x0){const _0x1633d3=_0x3a8d21||(_0x327d8f>0x0?_0x2203ff(0x1c0)+_0x327d8f:_0x2203ff(0x19f)+_0x63c1e4);throw CliErrors[_0x2203ff(0x1c8)](_0x2203ff(0x1c4)+_0x1633d3+'.');}const _0x5e691e=_0x7b8027[_0x2203ff(0x1b3)](_0x2203ff(0x1c5));if(_0x5e691e>0x0&&_0x14b09b[_0x2203ff(0x198)]!==_0x5e691e)throw CliErrors[_0x2203ff(0x1c8)](_0x2203ff(0x1b2)+_0x14b09b[_0x2203ff(0x198)]+_0x2203ff(0x1a8)+_0x5e691e+'.');return _0x14b09b;}function normalizeTarget(_0x5cf180){const _0x2337c4=a76_0x251a49,_0xe780f2=_0x5cf180[_0x2337c4(0x1ba)]??{};return{'id':_0x5cf180['id'],'code':_0x5cf180['code'],'name':_0x5cf180[_0x2337c4(0x19e)],'description':_0x5cf180[_0x2337c4(0x19a)],'source':_0x5cf180['source'],'dbId':_0xe780f2[_0x2337c4(0x1ac)],'dbName':_0xe780f2['dbName'],'tableName':_0xe780f2[_0x2337c4(0x19c)],'relatedPageCount':Array[_0x2337c4(0x1bf)](_0x5cf180[_0x2337c4(0x1c2)])?_0x5cf180[_0x2337c4(0x1c2)][_0x2337c4(0x198)]:undefined};}
1
+ const a76_0x5022be=a76_0x539f;function a76_0x4527(){const _0x18a8ea=['POST','filter','tableName','dbid=','412630AyhffM','length','name','152901PDEhXK','expected-count','appCode','Restore\x20deleted\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20deleted\x20datasets\x20under\x20a\x20db\x20id','8BxaJTV','Required\x20to\x20execute\x20dataset\x20restore','/smartapi/dataset/restore-dataset','\x20deleted\x20dataset(s)\x20and\x20related\x20deleted\x20page/menu\x20records.','str','dbid','Would\x20restore\x20','187eAoahi','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','3377456lqRCwM','dbId','9vDYdvs','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','199477PPCyjG','Matched\x20','No\x20deleted\x20dataset\x20found\x20for\x20','dbName','relationPages','bool','boolean','\x20dataset(s)','number','3376278nLjcop','num','Dataset\x20id','push','8HdMEjo','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Restored\x20','--confirm\x20is\x20required\x20to\x20restore\x20datasets.','id=','dbtableConfig','source','restore','197620CUKSap','validation','map','6ujFYRK','isArray','code','26704488wnQyUS'];a76_0x4527=function(){return _0x18a8ea;};return a76_0x4527();}(function(_0xfc6db7,_0x37ad8f){const _0x37031f=a76_0x539f,_0x207eb5=_0xfc6db7();while(!![]){try{const _0x419461=parseInt(_0x37031f(0xb5))/0x1*(parseInt(_0x37031f(0xa8))/0x2)+-parseInt(_0x37031f(0xbe))/0x3+parseInt(_0x37031f(0xc2))/0x4*(parseInt(_0x37031f(0x96))/0x5)+parseInt(_0x37031f(0x99))/0x6*(-parseInt(_0x37031f(0xa4))/0x7)+-parseInt(_0x37031f(0xb1))/0x8*(parseInt(_0x37031f(0xb3))/0x9)+parseInt(_0x37031f(0xa1))/0xa*(-parseInt(_0x37031f(0xaf))/0xb)+parseInt(_0x37031f(0x9c))/0xc;if(_0x419461===_0x37ad8f)break;else _0x207eb5['push'](_0x207eb5['shift']());}catch(_0x24b3db){_0x207eb5['push'](_0x207eb5['shift']());}}}(a76_0x4527,0xcafb0));import{listDatasets,restoreDataset}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a76_0x5022be(0xbd),'description':a76_0x5022be(0xc0)},DBID_FLAG={'name':'dbid','type':'number','description':'Restore\x20all\x20deleted\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':'confirm','type':a76_0x5022be(0xbb),'description':a76_0x5022be(0xa9)},EXPECTED_COUNT_FLAG={'name':a76_0x5022be(0xa5),'type':'number','description':a76_0x5022be(0xb0)};function a76_0x539f(_0x234eb8,_0x366efe){_0x234eb8=_0x234eb8-0x92;const _0x4527f5=a76_0x4527();let _0x539fd8=_0x4527f5[_0x234eb8];return _0x539fd8;}export const datasetRestore={'service':'dataset','command':a76_0x5022be(0x95),'description':a76_0x5022be(0xa7),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x19b996){const _0x3f3ea9=a76_0x5022be,_0x2234af=_0x19b996[_0x3f3ea9(0xbf)]('id'),_0x27c54e=_0x19b996['str'](_0x3f3ea9(0x9b)),_0x508382=_0x19b996[_0x3f3ea9(0xbf)](_0x3f3ea9(0xad)),_0x13e70d=[_0x2234af>0x0,Boolean(_0x27c54e),_0x508382>0x0][_0x3f3ea9(0x9e)](Boolean);if(_0x13e70d[_0x3f3ea9(0xa2)]===0x0)throw CliErrors[_0x3f3ea9(0x97)](_0x3f3ea9(0xb4));if(_0x13e70d[_0x3f3ea9(0xa2)]>0x1)throw CliErrors[_0x3f3ea9(0x97)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x80d68f){const _0x1ffd30=a76_0x5022be,_0x1ec201=await resolveTargets(_0x80d68f);return{'method':_0x1ffd30(0x9d),'url':_0x1ffd30(0xaa),'body':{'appCode':_0x80d68f[_0x1ffd30(0xa6)],'count':_0x1ec201[_0x1ffd30(0xa2)],'datasets':_0x1ec201},'description':_0x1ffd30(0xae)+_0x1ec201['length']+_0x1ffd30(0xab)};},async 'execute'(_0x22d723){const _0x21e26e=a76_0x5022be;if(!_0x22d723[_0x21e26e(0xba)]('confirm'))throw CliErrors[_0x21e26e(0x97)](_0x21e26e(0xc5),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x5bc1b8=await resolveTargets(_0x22d723),_0x503a5c=[],_0x1952d8=[];for(const _0x44eb24 of _0x5bc1b8){try{await restoreDataset(_0x22d723[_0x21e26e(0xa6)],_0x44eb24['id']),_0x503a5c[_0x21e26e(0xc1)](_0x44eb24);}catch(_0x2f2853){_0x1952d8['push']({..._0x44eb24,'error':_0x2f2853 instanceof Error?_0x2f2853['message']:String(_0x2f2853)});}}if(_0x1952d8['length']>0x0)return{'ok':![],'data':{'requested':_0x5bc1b8['length'],'restoredCount':_0x503a5c['length'],'failedCount':_0x1952d8[_0x21e26e(0xa2)],'restored':_0x503a5c,'failed':_0x1952d8},'message':'Restored\x20'+_0x503a5c['length']+'/'+_0x5bc1b8[_0x21e26e(0xa2)]+'\x20dataset(s);\x20'+_0x1952d8[_0x21e26e(0xa2)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0x5bc1b8['length'],'restoredCount':_0x503a5c[_0x21e26e(0xa2)],'restored':_0x503a5c},'message':_0x21e26e(0xc4)+_0x503a5c['length']+_0x21e26e(0xbc)};}};async function resolveTargets(_0xac41f9){const _0x576668=a76_0x5022be,_0x34033e=_0xac41f9[_0x576668(0xbf)]('id'),_0x43213b=_0xac41f9[_0x576668(0xac)](_0x576668(0x9b)),_0x258a35=_0xac41f9['num']('dbid');let _0x3b39d7;_0x43213b?(_0x3b39d7=await listDatasets(_0xac41f9['appCode'],{'code':_0x43213b,'deleted':!![]}),_0x3b39d7=_0x3b39d7[_0x576668(0x9e)](_0x2366ea=>_0x2366ea['code']===_0x43213b)):(_0x3b39d7=await listDatasets(_0xac41f9[_0x576668(0xa6)],{'deleted':!![]}),_0x34033e>0x0&&(_0x3b39d7=_0x3b39d7[_0x576668(0x9e)](_0x3f211d=>_0x3f211d['id']===_0x34033e)),_0x258a35>0x0&&(_0x3b39d7=_0x3b39d7[_0x576668(0x9e)](_0x8c2db6=>_0x8c2db6[_0x576668(0x93)]?.[_0x576668(0xb2)]===_0x258a35)));const _0x455558=_0x3b39d7[_0x576668(0x98)](normalizeTarget);if(_0x455558[_0x576668(0xa2)]===0x0){const _0x5ebbb8=_0x43213b||(_0x34033e>0x0?_0x576668(0x92)+_0x34033e:_0x576668(0xa0)+_0x258a35);throw CliErrors[_0x576668(0x97)](_0x576668(0xb7)+_0x5ebbb8+'.');}const _0x2fd34c=_0xac41f9[_0x576668(0xbf)](_0x576668(0xa5));if(_0x2fd34c>0x0&&_0x455558[_0x576668(0xa2)]!==_0x2fd34c)throw CliErrors[_0x576668(0x97)](_0x576668(0xb6)+_0x455558[_0x576668(0xa2)]+_0x576668(0xc3)+_0x2fd34c+'.');return _0x455558;}function normalizeTarget(_0x33cdde){const _0x130600=a76_0x5022be,_0x3f6286=_0x33cdde[_0x130600(0x93)]??{};return{'id':_0x33cdde['id'],'code':_0x33cdde['code'],'name':_0x33cdde[_0x130600(0xa3)],'description':_0x33cdde['description'],'source':_0x33cdde[_0x130600(0x94)],'dbId':_0x3f6286[_0x130600(0xb2)],'dbName':_0x3f6286[_0x130600(0xb8)],'tableName':_0x3f6286[_0x130600(0x9f)],'relatedPageCount':Array[_0x130600(0x9a)](_0x33cdde[_0x130600(0xb9)])?_0x33cdde['relationPages'][_0x130600(0xa2)]:undefined};}
@@ -1 +1 @@
1
- function a77_0x1c93(){const _0x3d7d0a=['60IytAsl','18whPeIQ','17689023vYmuWL','3642696zSZMwA','Table\x20\x22','5999728RdUice','152022lILYzW','add','byteLength','\x20bytes.','\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20','At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.','12980216NIlUTP','push','map','length','trim','375335DTfGqx','9610068clwrcw','has'];a77_0x1c93=function(){return _0x3d7d0a;};return a77_0x1c93();}(function(_0x59ca16,_0x248b19){const _0x8412c4=a77_0x3df5,_0x368cec=_0x59ca16();while(!![]){try{const _0x55caf0=parseInt(_0x8412c4(0x11b))/0x1*(parseInt(_0x8412c4(0x12a))/0x2)+parseInt(_0x8412c4(0x118))/0x3+parseInt(_0x8412c4(0x129))/0x4*(parseInt(_0x8412c4(0x126))/0x5)+parseInt(_0x8412c4(0x127))/0x6+-parseInt(_0x8412c4(0x11a))/0x7+-parseInt(_0x8412c4(0x121))/0x8+-parseInt(_0x8412c4(0x117))/0x9;if(_0x55caf0===_0x248b19)break;else _0x368cec['push'](_0x368cec['shift']());}catch(_0x2c04fe){_0x368cec['push'](_0x368cec['shift']());}}}(a77_0x1c93,0xd330b));function a77_0x3df5(_0x598f8e,_0x53ee64){_0x598f8e=_0x598f8e-0x117;const _0x1c9377=a77_0x1c93();let _0x3df553=_0x1c9377[_0x598f8e];return _0x3df553;}import{CliErrors}from'../../errors.js';export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;export const DB_ANALYSIS_BATCH_TARGET_BYTES=0x3c0;export const DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES=0x400;export const DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE=0x3c;export function normalizeAnalysisTableNames(_0x3266d2){const _0x12a925=a77_0x3df5,_0x57d21d=new Set(),_0x5c965d=[];for(const _0x5de3de of _0x3266d2['split'](',')){const _0x37ae9d=_0x5de3de[_0x12a925(0x125)]();if(!_0x37ae9d||_0x57d21d[_0x12a925(0x128)](_0x37ae9d))continue;_0x57d21d[_0x12a925(0x11c)](_0x37ae9d),_0x5c965d['push'](_0x37ae9d);}return _0x5c965d;}export function measureAnalysisInputParamsBytes(_0x3d25f1,_0x4552a9){const _0x56c8f6=a77_0x3df5;return Buffer[_0x56c8f6(0x11d)](JSON['stringify']({'dbLinkId':_0x3d25f1,'tableNames':_0x4552a9}),'utf8');}export function buildAnalysisBatchPlan(_0x2d63e5,_0x39b927){const _0x3536a3=a77_0x3df5;if(_0x39b927[_0x3536a3(0x124)]===0x0)throw CliErrors['validation'](_0x3536a3(0x120));const _0x2957af=[];let _0x529978=[];for(const _0x3b6de2 of _0x39b927){const _0x2b6e3b=[..._0x529978,_0x3b6de2],_0x415eea=_0x2b6e3b[_0x3536a3(0x124)]>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x2d63e5,_0x2b6e3b)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x415eea&&_0x529978[_0x3536a3(0x124)]>0x0?(_0x2957af[_0x3536a3(0x122)](_0x529978),_0x529978=[_0x3b6de2]):_0x529978=_0x2b6e3b;const _0x269f76=measureAnalysisInputParamsBytes(_0x2d63e5,_0x529978);if(_0x269f76>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors['validation'](_0x3536a3(0x119)+_0x3b6de2+_0x3536a3(0x11f)+_0x269f76+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x3536a3(0x11e));}_0x529978[_0x3536a3(0x124)]>0x0&&_0x2957af[_0x3536a3(0x122)](_0x529978);const _0x193b4e=_0x2957af[_0x3536a3(0x123)]((_0x1635c5,_0x57867b)=>({'index':_0x57867b+0x1,'tableCount':_0x1635c5[_0x3536a3(0x124)],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x2d63e5,_0x1635c5),'estimatedDurationSeconds':_0x1635c5[_0x3536a3(0x124)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x1635c5})),_0x4637df=_0x39b927['length']*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x2d63e5,'tableCount':_0x39b927['length'],'batchCount':_0x193b4e[_0x3536a3(0x124)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'planningEstimate':{'basis':'heuristic','assumedSecondsPerTable':DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'estimatedTotalSeconds':_0x4637df,'estimatedTotalMinutes':Math['ceil'](_0x4637df/0x3c)},'batches':_0x193b4e};}
1
+ (function(_0x40e746,_0x3daf13){const _0x3135a1=a77_0x2def,_0x2e5110=_0x40e746();while(!![]){try{const _0x1a066d=parseInt(_0x3135a1(0x1e0))/0x1+parseInt(_0x3135a1(0x1f2))/0x2*(-parseInt(_0x3135a1(0x1e3))/0x3)+parseInt(_0x3135a1(0x1e8))/0x4*(parseInt(_0x3135a1(0x1e9))/0x5)+parseInt(_0x3135a1(0x1d9))/0x6*(-parseInt(_0x3135a1(0x1de))/0x7)+-parseInt(_0x3135a1(0x1da))/0x8*(parseInt(_0x3135a1(0x1ec))/0x9)+-parseInt(_0x3135a1(0x1ed))/0xa*(parseInt(_0x3135a1(0x1e5))/0xb)+parseInt(_0x3135a1(0x1ef))/0xc*(parseInt(_0x3135a1(0x1e7))/0xd);if(_0x1a066d===_0x3daf13)break;else _0x2e5110['push'](_0x2e5110['shift']());}catch(_0x1558a6){_0x2e5110['push'](_0x2e5110['shift']());}}}(a77_0x43e2,0x8e5f6));import{CliErrors}from'../../errors.js';export const DB_ANALYSIS_MAX_TABLES_PER_BATCH=0xa;export const DB_ANALYSIS_BATCH_TARGET_BYTES=0x3c0;export const DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES=0x400;function a77_0x43e2(){const _0x5c5afe=['5416xWwMxF','heuristic','validation','stringify','14dEFVAF','has','418149ZHezTH','\x20bytes.','utf8','3ZQcqYj','byteLength','23045vjcTWv','\x22\x20cannot\x20fit\x20in\x20one\x20database\x20analysis\x20batch:\x20','399139CoMWMz','797924uQmuim','15CfyeOh','length','map','4977BbGWDe','2470KDzlHr','Table\x20\x22','348koRGBD','trim','push','704546FhPSaK','split','239106kEVGHr'];a77_0x43e2=function(){return _0x5c5afe;};return a77_0x43e2();}export const DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE=0x3c;export function normalizeAnalysisTableNames(_0x5dddd3){const _0x3f98dd=a77_0x2def,_0x42db37=new Set(),_0x28e6e9=[];for(const _0x421984 of _0x5dddd3[_0x3f98dd(0x1f3)](',')){const _0x593e1c=_0x421984[_0x3f98dd(0x1f0)]();if(!_0x593e1c||_0x42db37[_0x3f98dd(0x1df)](_0x593e1c))continue;_0x42db37['add'](_0x593e1c),_0x28e6e9[_0x3f98dd(0x1f1)](_0x593e1c);}return _0x28e6e9;}export function measureAnalysisInputParamsBytes(_0xb2d6ab,_0x115eb2){const _0x4ed8f3=a77_0x2def;return Buffer[_0x4ed8f3(0x1e4)](JSON[_0x4ed8f3(0x1dd)]({'dbLinkId':_0xb2d6ab,'tableNames':_0x115eb2}),_0x4ed8f3(0x1e2));}function a77_0x2def(_0x7af38e,_0x12fe70){_0x7af38e=_0x7af38e-0x1d9;const _0x43e29a=a77_0x43e2();let _0x2defc8=_0x43e29a[_0x7af38e];return _0x2defc8;}export function buildAnalysisBatchPlan(_0x1d75e0,_0x43481b){const _0x3e372f=a77_0x2def;if(_0x43481b[_0x3e372f(0x1ea)]===0x0)throw CliErrors[_0x3e372f(0x1dc)]('At\x20least\x20one\x20table\x20name\x20is\x20required\x20for\x20database\x20analysis\x20planning.');const _0x5fe234=[];let _0x2cc587=[];for(const _0x51ef3e of _0x43481b){const _0x33e03a=[..._0x2cc587,_0x51ef3e],_0x58fc21=_0x33e03a[_0x3e372f(0x1ea)]>DB_ANALYSIS_MAX_TABLES_PER_BATCH||measureAnalysisInputParamsBytes(_0x1d75e0,_0x33e03a)>DB_ANALYSIS_BATCH_TARGET_BYTES;_0x58fc21&&_0x2cc587[_0x3e372f(0x1ea)]>0x0?(_0x5fe234[_0x3e372f(0x1f1)](_0x2cc587),_0x2cc587=[_0x51ef3e]):_0x2cc587=_0x33e03a;const _0x500871=measureAnalysisInputParamsBytes(_0x1d75e0,_0x2cc587);if(_0x500871>DB_ANALYSIS_BATCH_TARGET_BYTES)throw CliErrors[_0x3e372f(0x1dc)](_0x3e372f(0x1ee)+_0x51ef3e+_0x3e372f(0x1e6)+_0x500871+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_BATCH_TARGET_BYTES+_0x3e372f(0x1e1));}_0x2cc587['length']>0x0&&_0x5fe234[_0x3e372f(0x1f1)](_0x2cc587);const _0x58a8e7=_0x5fe234[_0x3e372f(0x1eb)]((_0x245341,_0x3aa357)=>({'index':_0x3aa357+0x1,'tableCount':_0x245341[_0x3e372f(0x1ea)],'inputParamsBytes':measureAnalysisInputParamsBytes(_0x1d75e0,_0x245341),'estimatedDurationSeconds':_0x245341[_0x3e372f(0x1ea)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'tableNames':_0x245341})),_0xb994c=_0x43481b[_0x3e372f(0x1ea)]*DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE;return{'dbLinkId':_0x1d75e0,'tableCount':_0x43481b[_0x3e372f(0x1ea)],'batchCount':_0x58a8e7[_0x3e372f(0x1ea)],'maxTablesPerBatch':DB_ANALYSIS_MAX_TABLES_PER_BATCH,'maxSerializedBytesPerBatch':DB_ANALYSIS_BATCH_TARGET_BYTES,'serverInputParamsLimitBytes':DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,'planningEstimate':{'basis':_0x3e372f(0x1db),'assumedSecondsPerTable':DB_ANALYSIS_ESTIMATED_SECONDS_PER_TABLE,'estimatedTotalSeconds':_0xb994c,'estimatedTotalMinutes':Math['ceil'](_0xb994c/0x3c)},'batches':_0x58a8e7};}
@@ -1 +1 @@
1
- const a78_0x361da6=a78_0x53db;(function(_0x86436f,_0x3c05bc){const _0x23b8f9=a78_0x53db,_0x13a5ea=_0x86436f();while(!![]){try{const _0x576a95=-parseInt(_0x23b8f9(0xcd))/0x1*(-parseInt(_0x23b8f9(0xe0))/0x2)+-parseInt(_0x23b8f9(0xe2))/0x3+parseInt(_0x23b8f9(0xd8))/0x4+parseInt(_0x23b8f9(0xe1))/0x5+-parseInt(_0x23b8f9(0xca))/0x6+parseInt(_0x23b8f9(0xcb))/0x7+parseInt(_0x23b8f9(0xdc))/0x8*(parseInt(_0x23b8f9(0xc9))/0x9);if(_0x576a95===_0x3c05bc)break;else _0x13a5ea['push'](_0x13a5ea['shift']());}catch(_0x39eaf8){_0x13a5ea['push'](_0x13a5ea['shift']());}}}(a78_0x2508,0x3bed8));function a78_0x2508(){const _0x4cba70=['Prepared\x20local\x20batch\x20plan\x20for\x20','345316WHTUDX','1606140jPysNd','578325vSaJbn','8091YIuwgx','1869540RFjBmK','447440AtHxZU','\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','1KqvPiC','tableCount','\x20minute(s)\x20at\x20','Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','read','analyze-batch-plan','assumedSecondsPerTable','string','planningEstimate','\x20table(s)\x20in\x20','\x20serial\x20batch(es)\x20for\x20db\x20link\x20','437260KcRYRr','tables','estimatedTotalMinutes','Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','736dbkgVc','num','str'];a78_0x2508=function(){return _0x4cba70;};return a78_0x2508();}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a78_0x53db(_0x107bab,_0x321e76){_0x107bab=_0x107bab-0xc9;const _0x25087a=a78_0x2508();let _0x53dbd0=_0x25087a[_0x107bab];return _0x53dbd0;}import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';export const dbAnalyzeBatchPlan={'service':'db','command':a78_0x361da6(0xd2),'description':a78_0x361da6(0xdb),'risk':a78_0x361da6(0xd1),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a78_0x361da6(0xd9),'type':a78_0x361da6(0xd4),'required':!![],'description':a78_0x361da6(0xd0)}],async 'execute'(_0x423ee9){const _0x1ba1c8=a78_0x361da6,_0x59ba68=_0x423ee9[_0x1ba1c8(0xdd)]('id'),_0x8f0aa0=normalizeAnalysisTableNames(_0x423ee9[_0x1ba1c8(0xde)](_0x1ba1c8(0xd9))),_0x17710e=buildAnalysisBatchPlan(_0x59ba68,_0x8f0aa0);return{'ok':!![],'data':_0x17710e,'message':_0x1ba1c8(0xdf)+_0x17710e[_0x1ba1c8(0xce)]+_0x1ba1c8(0xd6)+_0x17710e['batchCount']+_0x1ba1c8(0xd7)+_0x59ba68+';\x20estimated\x20about\x20'+_0x17710e[_0x1ba1c8(0xd5)][_0x1ba1c8(0xda)]+_0x1ba1c8(0xcf)+_0x17710e[_0x1ba1c8(0xd5)][_0x1ba1c8(0xd3)]+_0x1ba1c8(0xcc)};}};
1
+ function a78_0x24b3(){const _0x329c3e=['10TJHSFg','399712GSKgga','\x20seconds\x20per\x20table;\x20no\x20server\x20task\x20or\x20planId\x20was\x20created','78ODoEpf','\x20table(s)\x20in\x20','6513604YTjIOR','num','Preview\x20deterministic\x20local\x20batches\x20and\x20heuristic\x20duration\x20estimates\x20without\x20creating\x20a\x20server\x20task\x20or\x20planId','Prepared\x20local\x20batch\x20plan\x20for\x20','assumedSecondsPerTable','str','planningEstimate','analyze-batch-plan','Comma-separated\x20table\x20names\x20to\x20split\x20into\x20safe\x20serial\x20batches','619385PszmZg','12ZyeRkx','estimatedTotalMinutes','tables','14154GJOkqN','read','2185359LEHlRU',';\x20estimated\x20about\x20','\x20serial\x20batch(es)\x20for\x20db\x20link\x20','39859742aCtRcX','\x20minute(s)\x20at\x20','160YVlhBd','2856564fTiikt','batchCount','3KhYSxA','string','182UseRAZ'];a78_0x24b3=function(){return _0x329c3e;};return a78_0x24b3();}const a78_0xdd52bd=a78_0x4790;(function(_0x4cbf09,_0x3c877e){const _0x31b3c7=a78_0x4790,_0xc40ad3=_0x4cbf09();while(!![]){try{const _0x2a36e8=parseInt(_0x31b3c7(0x151))/0x1*(-parseInt(_0x31b3c7(0x139))/0x2)+parseInt(_0x31b3c7(0x13c))/0x3*(parseInt(_0x31b3c7(0x144))/0x4)+parseInt(_0x31b3c7(0x14d))/0x5*(parseInt(_0x31b3c7(0x142))/0x6)+-parseInt(_0x31b3c7(0x13e))/0x7*(-parseInt(_0x31b3c7(0x140))/0x8)+parseInt(_0x31b3c7(0x13a))/0x9*(parseInt(_0x31b3c7(0x13f))/0xa)+parseInt(_0x31b3c7(0x153))/0xb*(parseInt(_0x31b3c7(0x14e))/0xc)+-parseInt(_0x31b3c7(0x137))/0xd;if(_0x2a36e8===_0x3c877e)break;else _0xc40ad3['push'](_0xc40ad3['shift']());}catch(_0x5210c8){_0xc40ad3['push'](_0xc40ad3['shift']());}}}(a78_0x24b3,0xd0db5));function a78_0x4790(_0x41a3c5,_0x5f362d){_0x41a3c5=_0x41a3c5-0x137;const _0x24b3d9=a78_0x24b3();let _0x479036=_0x24b3d9[_0x41a3c5];return _0x479036;}import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildAnalysisBatchPlan,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';export const dbAnalyzeBatchPlan={'service':'db','command':a78_0xdd52bd(0x14b),'description':a78_0xdd52bd(0x146),'risk':a78_0xdd52bd(0x152),'requiresAuth':![],'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a78_0xdd52bd(0x150),'type':a78_0xdd52bd(0x13d),'required':!![],'description':a78_0xdd52bd(0x14c)}],async 'execute'(_0x5267e3){const _0x35a48c=a78_0xdd52bd,_0x58bb78=_0x5267e3[_0x35a48c(0x145)]('id'),_0x4e5e72=normalizeAnalysisTableNames(_0x5267e3[_0x35a48c(0x149)](_0x35a48c(0x150))),_0x409823=buildAnalysisBatchPlan(_0x58bb78,_0x4e5e72);return{'ok':!![],'data':_0x409823,'message':_0x35a48c(0x147)+_0x409823['tableCount']+_0x35a48c(0x143)+_0x409823[_0x35a48c(0x13b)]+_0x35a48c(0x155)+_0x58bb78+_0x35a48c(0x154)+_0x409823[_0x35a48c(0x14a)][_0x35a48c(0x14f)]+_0x35a48c(0x138)+_0x409823['planningEstimate'][_0x35a48c(0x148)]+_0x35a48c(0x141)};}};
@@ -1 +1 @@
1
- const a79_0x1f6fa0=a79_0x2555;function a79_0x1f79(){const _0x56b6a8=['Cancel\x20requested\x20for\x20plan\x20','num','3632652HqKKSc','200vLpVrq','Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id','196738ysKuAi','2397928PIZggx','string','str','analyze-cancel','4175750nYDMYl','93843QysCdg','plan','Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel','1881593topRWB','2375499uQgblp','2yFFcaz'];a79_0x1f79=function(){return _0x56b6a8;};return a79_0x1f79();}function a79_0x2555(_0x885305,_0x5492a5){_0x885305=_0x885305-0x1ee;const _0x1f79d0=a79_0x1f79();let _0x255523=_0x1f79d0[_0x885305];return _0x255523;}(function(_0x1010ae,_0x1f400e){const _0x3633b4=a79_0x2555,_0x2e04f0=_0x1010ae();while(!![]){try{const _0x4b0c75=-parseInt(_0x3633b4(0x1fa))/0x1*(parseInt(_0x3633b4(0x1f4))/0x2)+-parseInt(_0x3633b4(0x1f3))/0x3+parseInt(_0x3633b4(0x1fb))/0x4+parseInt(_0x3633b4(0x1ee))/0x5+parseInt(_0x3633b4(0x1f7))/0x6+-parseInt(_0x3633b4(0x1f2))/0x7+parseInt(_0x3633b4(0x1f8))/0x8*(-parseInt(_0x3633b4(0x1ef))/0x9);if(_0x4b0c75===_0x1f400e)break;else _0x2e04f0['push'](_0x2e04f0['shift']());}catch(_0x49e8ff){_0x2e04f0['push'](_0x2e04f0['shift']());}}}(a79_0x1f79,0x7f72d));import{cancelDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a79_0x1f6fa0(0x1fe),'description':a79_0x1f6fa0(0x1f9),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':'plan','type':a79_0x1f6fa0(0x1fc),'required':!![],'description':a79_0x1f6fa0(0x1f1)}],async 'execute'(_0x4b78bd){const _0x18c51e=a79_0x1f6fa0,_0x1b7a92=_0x4b78bd[_0x18c51e(0x1f6)]('id'),_0x208753=_0x4b78bd[_0x18c51e(0x1fd)](_0x18c51e(0x1f0));return await cancelDbAnalysis(_0x208753),{'ok':!![],'data':{'dbLinkId':_0x1b7a92,'planId':_0x208753},'message':_0x18c51e(0x1f5)+_0x208753};}};
1
+ function a79_0x222a(_0x176269,_0x33c865){_0x176269=_0x176269-0x1f3;const _0x3a663d=a79_0x3a66();let _0x222ab9=_0x3a663d[_0x176269];return _0x222ab9;}const a79_0xc90a0c=a79_0x222a;(function(_0x18b936,_0x1a5c24){const _0x136898=a79_0x222a,_0x2312a4=_0x18b936();while(!![]){try{const _0x4bfa6f=parseInt(_0x136898(0x1fc))/0x1+parseInt(_0x136898(0x1f9))/0x2*(-parseInt(_0x136898(0x1f3))/0x3)+-parseInt(_0x136898(0x1fe))/0x4+parseInt(_0x136898(0x1f8))/0x5+parseInt(_0x136898(0x1fa))/0x6+parseInt(_0x136898(0x1f5))/0x7+-parseInt(_0x136898(0x1f6))/0x8;if(_0x4bfa6f===_0x1a5c24)break;else _0x2312a4['push'](_0x2312a4['shift']());}catch(_0x2d602f){_0x2312a4['push'](_0x2312a4['shift']());}}}(a79_0x3a66,0x8a98d));import{cancelDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':'analyze-cancel','description':a79_0xc90a0c(0x1ff),'risk':a79_0xc90a0c(0x1f7),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a79_0xc90a0c(0x1fb),'type':a79_0xc90a0c(0x1fd),'required':!![],'description':'Existing\x20analysis\x20plan\x20/\x20trace\x20id\x20to\x20cancel'}],async 'execute'(_0x1b9ad6){const _0xa49704=a79_0xc90a0c,_0x474ab9=_0x1b9ad6[_0xa49704(0x1f4)]('id'),_0x288e09=_0x1b9ad6[_0xa49704(0x200)](_0xa49704(0x1fb));return await cancelDbAnalysis(_0x288e09),{'ok':!![],'data':{'dbLinkId':_0x474ab9,'planId':_0x288e09},'message':'Cancel\x20requested\x20for\x20plan\x20'+_0x288e09};}};function a79_0x3a66(){const _0xd5a78f=['num','6364855JMzfyK','15503216DlrZvC','write','3807600yylUZh','6494cPllnb','2404008cOEMLJ','plan','472425GKrvEh','string','36240hEMrdl','Cancel\x20an\x20existing\x20schema\x20analysis\x20by\x20explicit\x20plan\x20/\x20trace\x20id','str','27mNqckD'];a79_0x3a66=function(){return _0xd5a78f;};return a79_0x3a66();}
@@ -1 +1 @@
1
- const a80_0x1f8a80=a80_0x4c8b;(function(_0x44bbc1,_0x251555){const _0xaca637=a80_0x4c8b,_0x2e7605=_0x44bbc1();while(!![]){try{const _0x2e78cd=parseInt(_0xaca637(0x17d))/0x1*(-parseInt(_0xaca637(0x174))/0x2)+parseInt(_0xaca637(0x180))/0x3*(-parseInt(_0xaca637(0x170))/0x4)+-parseInt(_0xaca637(0x187))/0x5*(-parseInt(_0xaca637(0x178))/0x6)+-parseInt(_0xaca637(0x171))/0x7+parseInt(_0xaca637(0x17f))/0x8+parseInt(_0xaca637(0x176))/0x9*(parseInt(_0xaca637(0x182))/0xa)+parseInt(_0xaca637(0x179))/0xb;if(_0x2e78cd===_0x251555)break;else _0x2e7605['push'](_0x2e7605['shift']());}catch(_0x13bbf3){_0x2e7605['push'](_0x2e7605['shift']());}}}(a80_0x4de3,0xd6f32));import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';function a80_0x4de3(){const _0x2a4eaf=['273prQZSh','analyze-start','4276032uDfgXe','502284uVgHyk','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','4740330nZSXDw','tables','\x20table(s),\x20','appCode','Started\x20analysis\x20for\x20db\x20link\x20','1295kduEps','length','\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.','24OlFqnp','10154515YVLBus','string','write','8782DsFgoW','Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20','27IPbNyW','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','5034iCbGAV','25965346DWCaQC','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','validation','flag'];a80_0x4de3=function(){return _0x2a4eaf;};return a80_0x4de3();}function a80_0x4c8b(_0x42d06b,_0x462bbf){_0x42d06b=_0x42d06b-0x16f;const _0x4de387=a80_0x4de3();let _0x4c8bc2=_0x4de387[_0x42d06b];return _0x4c8bc2;}import{DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,measureAnalysisInputParamsBytes,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';export const dbAnalyzeStart={'service':'db','command':a80_0x1f8a80(0x17e),'description':a80_0x1f8a80(0x181),'risk':a80_0x1f8a80(0x173),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a80_0x1f8a80(0x183),'type':a80_0x1f8a80(0x172),'description':a80_0x1f8a80(0x177)}],async 'execute'(_0x4394ee){const _0x14fbe6=a80_0x1f8a80,_0xdd06ed=_0x4394ee['num']('id'),_0x4be46a=_0x4394ee['str'](_0x14fbe6(0x183)),_0x5b1d96=_0x4394ee[_0x14fbe6(0x17c)](_0x14fbe6(0x183))!==undefined,_0x43393d=_0x5b1d96?normalizeAnalysisTableNames(_0x4be46a):undefined;if(_0x43393d&&_0x43393d[_0x14fbe6(0x188)]===0x0)throw CliErrors[_0x14fbe6(0x17b)](_0x14fbe6(0x17a));if(_0x43393d&&_0x43393d[_0x14fbe6(0x188)]>0x0){const _0x4b1374=measureAnalysisInputParamsBytes(_0xdd06ed,_0x43393d);if(_0x4b1374>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors[_0x14fbe6(0x17b)](_0x14fbe6(0x175)+_0x43393d[_0x14fbe6(0x188)]+_0x14fbe6(0x184)+_0x4b1374+'\x20bytes,\x20limit\x20'+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+'\x20bytes.\x20Run\x20`'+CLI_BIN_NAME+'\x20db\x20analyze-batch-plan\x20--id\x20'+_0xdd06ed+_0x14fbe6(0x16f));}const _0x4ea9f7=await startDbAnalysis(_0xdd06ed,_0x43393d),_0x1ca117=buildDbPageLinks(_0x4394ee[_0x14fbe6(0x185)],_0xdd06ed);return{'ok':!![],'data':{'dbLinkId':_0xdd06ed,'planId':_0x4ea9f7,'tableNames':_0x43393d??[],..._0x1ca117?{'links':_0x1ca117}:{}},'message':_0x14fbe6(0x186)+_0xdd06ed};}};
1
+ const a80_0x3f33cb=a80_0x7916;(function(_0x1f6b94,_0x40eb55){const _0x7f7deb=a80_0x7916,_0x2b7b6e=_0x1f6b94();while(!![]){try{const _0x3d2c6b=parseInt(_0x7f7deb(0x167))/0x1*(parseInt(_0x7f7deb(0x180))/0x2)+parseInt(_0x7f7deb(0x168))/0x3*(parseInt(_0x7f7deb(0x181))/0x4)+-parseInt(_0x7f7deb(0x17d))/0x5+-parseInt(_0x7f7deb(0x17a))/0x6*(-parseInt(_0x7f7deb(0x176))/0x7)+parseInt(_0x7f7deb(0x16c))/0x8*(-parseInt(_0x7f7deb(0x17c))/0x9)+-parseInt(_0x7f7deb(0x16f))/0xa+-parseInt(_0x7f7deb(0x16a))/0xb*(-parseInt(_0x7f7deb(0x170))/0xc);if(_0x3d2c6b===_0x40eb55)break;else _0x2b7b6e['push'](_0x2b7b6e['shift']());}catch(_0x56210f){_0x2b7b6e['push'](_0x2b7b6e['shift']());}}}(a80_0x5831,0x2ad20));function a80_0x7916(_0x1e56c5,_0x358ca3){_0x1e56c5=_0x1e56c5-0x167;const _0x58311f=a80_0x5831();let _0x79163a=_0x58311f[_0x1e56c5];return _0x79163a;}import{startDbAnalysis}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';import{DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES,measureAnalysisInputParamsBytes,normalizeAnalysisTableNames}from'../../commands/db/analysis-batching.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0x5831(){const _0x9d4e33=['1816080jBNDPq','84cgQDnK','str','\x20--tables\x20<tables>`\x20and\x20start\x20each\x20batch\x20serially.','appCode','At\x20least\x20one\x20table\x20name\x20is\x20required\x20when\x20--tables\x20is\x20provided.','analyze-start','266QJELof','Targeted\x20database\x20analysis\x20payload\x20is\x20too\x20large:\x20','\x20db\x20analyze-batch-plan\x20--id\x20','validation','9384vEMBEk','\x20bytes.\x20Run\x20`','317403LNquNa','417205ouYlaU','tables','num','524892ZkPcMd','124qTfmHF','Comma-separated\x20table\x20names\x20for\x20incremental\x20analysis\x20(omit\x20for\x20full\x20analysis)','Start\x20schema\x20analysis\x20(full\x20or\x20incremental\x20table\x20list).\x20Returns\x20planId\x20for\x20analyze-status','1MthgGJ','15033PjsHwO','length','330143ZTlZUR','write','56rhJbHI','\x20bytes,\x20limit\x20','Started\x20analysis\x20for\x20db\x20link\x20'];a80_0x5831=function(){return _0x9d4e33;};return a80_0x5831();}import{CliErrors}from'../../errors.js';export const dbAnalyzeStart={'service':'db','command':a80_0x3f33cb(0x175),'description':a80_0x3f33cb(0x183),'risk':a80_0x3f33cb(0x16b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a80_0x3f33cb(0x17e),'type':'string','description':a80_0x3f33cb(0x182)}],async 'execute'(_0x5a51fd){const _0x5d766a=a80_0x3f33cb,_0x24c0e4=_0x5a51fd[_0x5d766a(0x17f)]('id'),_0x4f241c=_0x5a51fd[_0x5d766a(0x171)](_0x5d766a(0x17e)),_0x2e74e6=_0x5a51fd['flag'](_0x5d766a(0x17e))!==undefined,_0x1fe970=_0x2e74e6?normalizeAnalysisTableNames(_0x4f241c):undefined;if(_0x1fe970&&_0x1fe970[_0x5d766a(0x169)]===0x0)throw CliErrors[_0x5d766a(0x179)](_0x5d766a(0x174));if(_0x1fe970&&_0x1fe970[_0x5d766a(0x169)]>0x0){const _0x1eb8fa=measureAnalysisInputParamsBytes(_0x24c0e4,_0x1fe970);if(_0x1eb8fa>DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES)throw CliErrors['validation'](_0x5d766a(0x177)+_0x1fe970[_0x5d766a(0x169)]+'\x20table(s),\x20'+_0x1eb8fa+_0x5d766a(0x16d)+DB_ANALYSIS_SERVER_INPUT_LIMIT_BYTES+_0x5d766a(0x17b)+CLI_BIN_NAME+_0x5d766a(0x178)+_0x24c0e4+_0x5d766a(0x172));}const _0x34bb0b=await startDbAnalysis(_0x24c0e4,_0x1fe970),_0x15059d=buildDbPageLinks(_0x5a51fd[_0x5d766a(0x173)],_0x24c0e4);return{'ok':!![],'data':{'dbLinkId':_0x24c0e4,'planId':_0x34bb0b,'tableNames':_0x1fe970??[],..._0x15059d?{'links':_0x15059d}:{}},'message':_0x5d766a(0x16e)+_0x24c0e4};}};
@@ -1 +1 @@
1
- const a81_0x216f11=a81_0x355a;function a81_0x545b(){const _0xb3d431=['RETRYING','keys','4662JDExSf','accumulatedErrorTypeCounts','object','PARTIAL_SUCCESS','SUCCESS','jobContext','num','2028924VErnss','analyze-status','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','costTimeMs','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','has','1341531viFrOD','startTime','8STenXr','isArray','status','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','now','isNaN','length','FAILED','9180413bENxkh','plan','341265mHcKyv','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','142ykFooQ','455PoHFYN','3789331EizsbV','appCode','endTime','8202tTLVAr','str','isFinite','parse','number','30UcVdCO'];a81_0x545b=function(){return _0xb3d431;};return a81_0x545b();}(function(_0x532bd4,_0x2d7a8a){const _0x15b77c=a81_0x355a,_0x2d0275=_0x532bd4();while(!![]){try{const _0x4d0b68=-parseInt(_0x15b77c(0x149))/0x1*(-parseInt(_0x15b77c(0x144))/0x2)+parseInt(_0x15b77c(0x141))/0x3+parseInt(_0x15b77c(0x12f))/0x4+-parseInt(_0x15b77c(0x145))/0x5*(-parseInt(_0x15b77c(0x128))/0x6)+-parseInt(_0x15b77c(0x146))/0x7*(parseInt(_0x15b77c(0x137))/0x8)+-parseInt(_0x15b77c(0x135))/0x9*(-parseInt(_0x15b77c(0x14e))/0xa)+-parseInt(_0x15b77c(0x13f))/0xb;if(_0x4d0b68===_0x2d7a8a)break;else _0x2d0275['push'](_0x2d0275['shift']());}catch(_0x11bb14){_0x2d0275['push'](_0x2d0275['shift']());}}}(a81_0x545b,0x544d0));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set([a81_0x216f11(0x12c),a81_0x216f11(0x12b),a81_0x216f11(0x13e),'CANCELLED']);export const dbAnalyzeStatus={'service':'db','command':a81_0x216f11(0x130),'description':a81_0x216f11(0x13a),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a81_0x216f11(0x140),'type':'string','required':!![],'description':a81_0x216f11(0x143)}],async 'execute'(_0x1beb77){const _0x58cb75=a81_0x216f11,_0xb44eb2=_0x1beb77[_0x58cb75(0x12e)]('id'),_0x1c1e54=_0x1beb77[_0x58cb75(0x14a)](_0x58cb75(0x140)),_0x5837e8=await getDbAnalysisStatus(_0x1c1e54),_0x265973=TERMINAL_STATUSES[_0x58cb75(0x134)](_0x5837e8[_0x58cb75(0x139)]??''),{parsedJobContext:_0x32d562,jobContextParseWarning:_0x50addd}=parseJobContext(_0x5837e8[_0x58cb75(0x12d)]),_0x340379=readAccumulatedErrorTypeCounts(_0x32d562),_0x388ae6=buildDbPageLinks(_0x1beb77[_0x58cb75(0x147)],_0xb44eb2);return{'ok':!![],'data':{'dbLinkId':_0xb44eb2,'planId':_0x1c1e54,'status':_0x5837e8,'parsedJobContext':_0x32d562,'accumulatedErrorTypeCounts':_0x340379,'accumulatedErrorTypeCountsAdvisory':_0x340379?_0x58cb75(0x133):_0x58cb75(0x131),'isTerminal':_0x265973,'isRetrying':_0x5837e8['status']===_0x58cb75(0x14f),'elapsedMs':calculateElapsedMs(_0x5837e8,_0x265973),'jobContextParseWarning':_0x50addd,..._0x388ae6?{'links':_0x388ae6}:{}},'message':'Analysis\x20status\x20for\x20'+_0x1c1e54};}};function readAccumulatedErrorTypeCounts(_0x3cd41f){const _0x2302c2=a81_0x216f11,_0x4bcd60=_0x3cd41f?.[_0x2302c2(0x129)];if(!_0x4bcd60||typeof _0x4bcd60!==_0x2302c2(0x12a)||Array[_0x2302c2(0x138)](_0x4bcd60))return null;if(Object[_0x2302c2(0x150)](_0x4bcd60)[_0x2302c2(0x13d)]===0x0)return null;return _0x4bcd60;}function parseJobContext(_0x40f681){const _0x421ab7=a81_0x216f11;if(!_0x40f681?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x338e9b=JSON[_0x421ab7(0x14c)](_0x40f681);if(_0x338e9b&&typeof _0x338e9b===_0x421ab7(0x12a)&&!Array[_0x421ab7(0x138)](_0x338e9b))return{'parsedJobContext':_0x338e9b,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x421ab7(0x142)};}function a81_0x355a(_0x4880d5,_0x2d7bd0){_0x4880d5=_0x4880d5-0x128;const _0x545bf2=a81_0x545b();let _0x355a5c=_0x545bf2[_0x4880d5];return _0x355a5c;}function calculateElapsedMs(_0x4a57ea,_0x24a96e){const _0x3a9b6c=a81_0x216f11;if(typeof _0x4a57ea[_0x3a9b6c(0x132)]==='number'&&Number[_0x3a9b6c(0x14b)](_0x4a57ea[_0x3a9b6c(0x132)])&&_0x4a57ea[_0x3a9b6c(0x132)]>=0x0)return _0x4a57ea[_0x3a9b6c(0x132)];const _0x521114=toTimestamp(_0x4a57ea[_0x3a9b6c(0x136)]);if(_0x521114===null)return null;const _0xdb9d12=toTimestamp(_0x4a57ea[_0x3a9b6c(0x148)]),_0x2fa684=_0xdb9d12??(_0x24a96e?null:Date[_0x3a9b6c(0x13b)]());if(_0x2fa684===null||_0x2fa684<_0x521114)return null;return _0x2fa684-_0x521114;}function toTimestamp(_0x4a3aed){const _0x1f9dd8=a81_0x216f11;if(typeof _0x4a3aed===_0x1f9dd8(0x14d))return Number[_0x1f9dd8(0x14b)](_0x4a3aed)?_0x4a3aed:null;if(typeof _0x4a3aed!=='string'||_0x4a3aed['trim']()==='')return null;const _0x191d98=Number(_0x4a3aed);if(Number[_0x1f9dd8(0x14b)](_0x191d98))return _0x191d98;const _0x2bda10=Date[_0x1f9dd8(0x14c)](_0x4a3aed);return Number[_0x1f9dd8(0x13c)](_0x2bda10)?null:_0x2bda10;}
1
+ function a81_0x44af(){const _0x47b5b0=['read','24ODzXtq','2429380KPpidj','RETRYING','55BQrxPM','isArray','405602GPQCmI','10409940SqnhDp','12xcCCOp','startTime','SUCCESS','CANCELLED','number','16zhcrff','status','endTime','Analysis\x20status\x20for\x20','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20reference\x20only;\x20do\x20not\x20use\x20them\x20for\x20automatic\x20decisions\x20until\x20the\x20server\x20contract\x20is\x20verified.','327519JtWiFb','now','605236uRFknT','costTimeMs','keys','4FIuqFD','string','accumulatedErrorTypeCounts','462686oHNghE','isFinite','Server-provided\x20accumulated\x20failure\x20counts\x20are\x20unavailable;\x20use\x20task\x20status\x20for\x20lifecycle\x20and\x20db\x20diff\x20for\x20convergence.','jobContext','plan','parse','isNaN','Fetch\x20schema\x20analysis\x20job\x20status\x20by\x20plan\x20/\x20trace\x20id','Analysis\x20plan\x20/\x20trace\x20id\x20(from\x20analyze-start\x20or\x20db\x20list\x20latestAnalysisTraceId)','object','analyze-status','num','jobContext\x20is\x20not\x20a\x20valid\x20JSON\x20object.','str','length','5377356TqMvte','PARTIAL_SUCCESS'];a81_0x44af=function(){return _0x47b5b0;};return a81_0x44af();}const a81_0x8af235=a81_0x3941;(function(_0x915ca1,_0x53785f){const _0x3828a2=a81_0x3941,_0x5a878f=_0x915ca1();while(!![]){try{const _0x4b5bba=parseInt(_0x3828a2(0x209))/0x1*(-parseInt(_0x3828a2(0x1f8))/0x2)+-parseInt(_0x3828a2(0x1f3))/0x3*(parseInt(_0x3828a2(0x206))/0x4)+-parseInt(_0x3828a2(0x1f4))/0x5+-parseInt(_0x3828a2(0x1fa))/0x6*(-parseInt(_0x3828a2(0x1e1))/0x7)+-parseInt(_0x3828a2(0x1ff))/0x8*(parseInt(_0x3828a2(0x204))/0x9)+parseInt(_0x3828a2(0x1f9))/0xa+parseInt(_0x3828a2(0x1f6))/0xb*(parseInt(_0x3828a2(0x1f0))/0xc);if(_0x4b5bba===_0x53785f)break;else _0x5a878f['push'](_0x5a878f['shift']());}catch(_0xbb230){_0x5a878f['push'](_0x5a878f['shift']());}}}(a81_0x44af,0xcb78d));import{getDbAnalysisStatus}from'../../core/api-client.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks}from'../../commands/db/shared.js';const TERMINAL_STATUSES=new Set([a81_0x8af235(0x1fc),a81_0x8af235(0x1f1),'FAILED',a81_0x8af235(0x1fd)]);export const dbAnalyzeStatus={'service':'db','command':a81_0x8af235(0x1eb),'description':a81_0x8af235(0x1e8),'risk':a81_0x8af235(0x1f2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a81_0x8af235(0x1e5),'type':a81_0x8af235(0x20a),'required':!![],'description':a81_0x8af235(0x1e9)}],async 'execute'(_0x5de379){const _0x1f237=a81_0x8af235,_0xbe6545=_0x5de379[_0x1f237(0x1ec)]('id'),_0xcc5522=_0x5de379[_0x1f237(0x1ee)](_0x1f237(0x1e5)),_0x22d0e8=await getDbAnalysisStatus(_0xcc5522),_0x4f4bf0=TERMINAL_STATUSES['has'](_0x22d0e8[_0x1f237(0x200)]??''),{parsedJobContext:_0x1372db,jobContextParseWarning:_0xd5784a}=parseJobContext(_0x22d0e8[_0x1f237(0x1e4)]),_0xd56c9f=readAccumulatedErrorTypeCounts(_0x1372db),_0x10b779=buildDbPageLinks(_0x5de379['appCode'],_0xbe6545);return{'ok':!![],'data':{'dbLinkId':_0xbe6545,'planId':_0xcc5522,'status':_0x22d0e8,'parsedJobContext':_0x1372db,'accumulatedErrorTypeCounts':_0xd56c9f,'accumulatedErrorTypeCountsAdvisory':_0xd56c9f?_0x1f237(0x203):_0x1f237(0x1e3),'isTerminal':_0x4f4bf0,'isRetrying':_0x22d0e8[_0x1f237(0x200)]===_0x1f237(0x1f5),'elapsedMs':calculateElapsedMs(_0x22d0e8,_0x4f4bf0),'jobContextParseWarning':_0xd5784a,..._0x10b779?{'links':_0x10b779}:{}},'message':_0x1f237(0x202)+_0xcc5522};}};function readAccumulatedErrorTypeCounts(_0x2e0886){const _0x24d8cb=a81_0x8af235,_0x34ab39=_0x2e0886?.[_0x24d8cb(0x20b)];if(!_0x34ab39||typeof _0x34ab39!==_0x24d8cb(0x1ea)||Array['isArray'](_0x34ab39))return null;if(Object[_0x24d8cb(0x208)](_0x34ab39)[_0x24d8cb(0x1ef)]===0x0)return null;return _0x34ab39;}function parseJobContext(_0x2abf27){const _0x3116a4=a81_0x8af235;if(!_0x2abf27?.['trim']())return{'parsedJobContext':null,'jobContextParseWarning':null};try{const _0x23b14c=JSON['parse'](_0x2abf27);if(_0x23b14c&&typeof _0x23b14c===_0x3116a4(0x1ea)&&!Array[_0x3116a4(0x1f7)](_0x23b14c))return{'parsedJobContext':_0x23b14c,'jobContextParseWarning':null};}catch{}return{'parsedJobContext':null,'jobContextParseWarning':_0x3116a4(0x1ed)};}function calculateElapsedMs(_0x57f180,_0x59aa05){const _0x43bfed=a81_0x8af235;if(typeof _0x57f180['costTimeMs']===_0x43bfed(0x1fe)&&Number[_0x43bfed(0x1e2)](_0x57f180[_0x43bfed(0x207)])&&_0x57f180[_0x43bfed(0x207)]>=0x0)return _0x57f180[_0x43bfed(0x207)];const _0x5ef7c0=toTimestamp(_0x57f180[_0x43bfed(0x1fb)]);if(_0x5ef7c0===null)return null;const _0x590f4c=toTimestamp(_0x57f180[_0x43bfed(0x201)]),_0x50761e=_0x590f4c??(_0x59aa05?null:Date[_0x43bfed(0x205)]());if(_0x50761e===null||_0x50761e<_0x5ef7c0)return null;return _0x50761e-_0x5ef7c0;}function a81_0x3941(_0x1320d8,_0x1a448f){_0x1320d8=_0x1320d8-0x1e1;const _0x44af2d=a81_0x44af();let _0x394160=_0x44af2d[_0x1320d8];return _0x394160;}function toTimestamp(_0x3cb784){const _0x1c727e=a81_0x8af235;if(typeof _0x3cb784==='number')return Number[_0x1c727e(0x1e2)](_0x3cb784)?_0x3cb784:null;if(typeof _0x3cb784!=='string'||_0x3cb784['trim']()==='')return null;const _0x598da5=Number(_0x3cb784);if(Number[_0x1c727e(0x1e2)](_0x598da5))return _0x598da5;const _0xa80bc7=Date[_0x1c727e(0x1e6)](_0x3cb784);return Number[_0x1c727e(0x1e7)](_0xa80bc7)?null:_0xa80bc7;}
@@ -1 +1 @@
1
- const a82_0x22ef0b=a82_0x2833;(function(_0x6388eb,_0x5aaf70){const _0x33acfc=a82_0x2833,_0x35d836=_0x6388eb();while(!![]){try{const _0x428aa2=parseInt(_0x33acfc(0xb3))/0x1*(-parseInt(_0x33acfc(0xc4))/0x2)+-parseInt(_0x33acfc(0xbc))/0x3+-parseInt(_0x33acfc(0xb8))/0x4+parseInt(_0x33acfc(0xdb))/0x5*(parseInt(_0x33acfc(0xda))/0x6)+-parseInt(_0x33acfc(0xd4))/0x7*(-parseInt(_0x33acfc(0xbd))/0x8)+-parseInt(_0x33acfc(0xd1))/0x9*(parseInt(_0x33acfc(0xd6))/0xa)+parseInt(_0x33acfc(0xb6))/0xb*(parseInt(_0x33acfc(0xcd))/0xc);if(_0x428aa2===_0x5aaf70)break;else _0x35d836['push'](_0x35d836['shift']());}catch(_0x15411d){_0x35d836['push'](_0x35d836['shift']());}}}(a82_0x7be2,0xbaa1a));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';function a82_0x7be2(){const _0x3995fb=['260ljWifZ','username','dbparam','trim','/smartapi/dblink/create','106252fZLQME','dbversion','Host\x20and\x20port:\x20host:port','1265XYTqGs','bool','1903768hCaZVO','appCode','dbname','Create\x20dblink','2817402dPDVnu','83224JvJHHu','validation','str','join','[redacted]','string','autostart','26clpAaj','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','Database\x20username','Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','POST','dburl','Extra\x20JDBC-style\x20connection\x20parameters\x20string','databasePage','Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','334392LOLlhP','create','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','write','31707kRlVmJ','password','message','707yDEGdu','dbtype','2610ipTFVU','dbdesc','Created\x20db\x20link\x20','\x20and\x20started\x20analysis','25962zbHrdA'];a82_0x7be2=function(){return _0x3995fb;};return a82_0x7be2();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a82_0x2833(_0x50e8bc,_0x344b24){_0x50e8bc=_0x50e8bc-0xb0;const _0x7be2d7=a82_0x7be2();let _0x283381=_0x7be2d7[_0x50e8bc];return _0x283381;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a82_0x22ef0b(0xce),'description':'Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','risk':a82_0x22ef0b(0xd0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a82_0x22ef0b(0xba),'type':a82_0x22ef0b(0xc2),'required':!![],'description':a82_0x22ef0b(0xc5)},DB_TYPE_FLAG,{'name':a82_0x22ef0b(0xb4),'type':a82_0x22ef0b(0xc2),'description':a82_0x22ef0b(0xc7),'default':'8.0'},{'name':a82_0x22ef0b(0xc9),'type':a82_0x22ef0b(0xc2),'required':!![],'description':a82_0x22ef0b(0xb5)},{'name':a82_0x22ef0b(0xdc),'type':'string','required':!![],'description':a82_0x22ef0b(0xc6)},{'name':a82_0x22ef0b(0xd2),'type':a82_0x22ef0b(0xc2),'required':!![],'description':'Database\x20password'},{'name':a82_0x22ef0b(0xb0),'type':a82_0x22ef0b(0xc2),'description':a82_0x22ef0b(0xca)},{'name':a82_0x22ef0b(0xd7),'type':a82_0x22ef0b(0xc2),'description':'Human-readable\x20description'},{'name':a82_0x22ef0b(0xc3),'type':'boolean','description':'After\x20create,\x20start\x20schema\x20analysis','default':![]}],async 'validate'(_0x5118c3){const _0x154498=a82_0x22ef0b,_0x32c459=_0x5118c3['str'](_0x154498(0xc9))[_0x154498(0xb1)]();if(!validateDbUrl(_0x32c459))throw CliErrors[_0x154498(0xbe)]('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x32c459+'\x22',_0x154498(0xcf));},async 'dryRun'(_0x1b67ec){const _0x33102c=a82_0x22ef0b,_0x573ba9={'appCode':_0x1b67ec[_0x33102c(0xb9)],'dbName':_0x1b67ec[_0x33102c(0xbf)](_0x33102c(0xba)),'dbType':_0x1b67ec['str'](_0x33102c(0xd5)),'dbVersion':_0x1b67ec[_0x33102c(0xbf)](_0x33102c(0xb4))||'8.0','dbUrl':_0x1b67ec[_0x33102c(0xbf)](_0x33102c(0xc9))[_0x33102c(0xb1)](),'username':_0x1b67ec[_0x33102c(0xbf)](_0x33102c(0xdc)),'password':_0x33102c(0xc1),..._0x1b67ec['str']('dbparam')?{'dbParam':_0x1b67ec[_0x33102c(0xbf)](_0x33102c(0xb0))}:{},..._0x1b67ec[_0x33102c(0xbf)](_0x33102c(0xd7))?{'dbDesc':_0x1b67ec[_0x33102c(0xbf)](_0x33102c(0xd7))}:{}};return{'method':_0x33102c(0xc8),'url':_0x33102c(0xb2),'body':_0x573ba9,'description':[_0x33102c(0xbb),_0x1b67ec[_0x33102c(0xb7)](_0x33102c(0xc3))?'Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id':'No\x20follow-up\x20analysis'][_0x33102c(0xc0)]('\x0a')};},async 'execute'(_0x1bdc33){const _0x38dba1=a82_0x22ef0b,_0x9c4e58={'appCode':_0x1bdc33[_0x38dba1(0xb9)],'dbName':_0x1bdc33['str'](_0x38dba1(0xba)),'dbType':_0x1bdc33[_0x38dba1(0xbf)]('dbtype'),'dbVersion':_0x1bdc33[_0x38dba1(0xbf)](_0x38dba1(0xb4))||'8.0','dbUrl':_0x1bdc33['str']('dburl')['trim'](),'username':_0x1bdc33['str'](_0x38dba1(0xdc)),'password':_0x1bdc33[_0x38dba1(0xbf)]('password'),..._0x1bdc33[_0x38dba1(0xbf)](_0x38dba1(0xb0))?{'dbParam':_0x1bdc33[_0x38dba1(0xbf)](_0x38dba1(0xb0))}:{},..._0x1bdc33[_0x38dba1(0xbf)]('dbdesc')?{'dbDesc':_0x1bdc33[_0x38dba1(0xbf)](_0x38dba1(0xd7))}:{}},{id:_0x76d568,entity:_0x3d1085}=normalizeEntityWithIdResponse(await createDbLink(_0x9c4e58));if(!_0x76d568)return{'ok':![],'message':_0x38dba1(0xcc),'data':sanitizeDbLinkForOutput(_0x3d1085)};let _0x3457c2,_0x2e54db;if(_0x1bdc33[_0x38dba1(0xb7)](_0x38dba1(0xc3)))try{_0x3457c2=await startDbAnalysis(_0x76d568);}catch(_0x406239){_0x2e54db=_0x406239 instanceof Error?_0x406239[_0x38dba1(0xd3)]:String(_0x406239);}const _0x4b8446=buildDbPageLinks(_0x1bdc33['appCode'],_0x76d568),_0x3c684e={'connection':sanitizeDbLinkForOutput(_0x3d1085),..._0x4b8446?{'links':{'databasePage':_0x4b8446[_0x38dba1(0xcb)]}}:{},..._0x3457c2?{'analysisPlanId':_0x3457c2}:{},..._0x2e54db?{'analysisStartWarning':_0x2e54db}:{}};let _0x21f174;return _0x1bdc33[_0x38dba1(0xb7)](_0x38dba1(0xc3))?_0x2e54db?_0x21f174=_0x38dba1(0xd8)+_0x76d568+';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning':_0x21f174='Created\x20db\x20link\x20'+_0x76d568+_0x38dba1(0xd9):_0x21f174=_0x38dba1(0xd8)+_0x76d568,{'ok':!![],'data':_0x3c684e,'message':_0x21f174};}};
1
+ const a82_0x1f2edb=a82_0x2c10;function a82_0x24da(){const _0x268d74=['249715dgNPZe','Database\x20password','24Ipztwb','Human-readable\x20description',';\x20schema\x20analysis\x20failed\x20to\x20start\x20—\x20see\x20data.analysisStartWarning','/smartapi/dblink/create','message','[redacted]','Check\x20firewall\x20allowlist\x20and\x20connection\x20string\x20format.','\x20and\x20started\x20analysis','dbparam','bool','1485702kcLdNI','boolean','Created\x20db\x20link\x20','486463vvYvxo','dbname','trim','password','8.0','appCode','dbdesc','Host\x20and\x20port:\x20host:port','username','687849eGCZcF','After\x20create,\x20start\x20schema\x20analysis','dbtype','Logical\x20database\x20/\x20schema\x20name\x20on\x20the\x20server','write','102834hMGEhc','string','Create\x20dblink','36gfTyrz','Create\x20a\x20new\x20database\x20connection\x20(dblink).\x20Optionally\x20auto-start\x20schema\x20analysis\x20after\x20creation','autostart','Extra\x20JDBC-style\x20connection\x20parameters\x20string','No\x20follow-up\x20analysis','4WQSngy','join','str','2844360aFSXAe','create','dburl','Then\x20POST\x20start\x20analysis\x20for\x20returned\x20id','dbversion','995085XyFdTM'];a82_0x24da=function(){return _0x268d74;};return a82_0x24da();}(function(_0x5a8f06,_0x1f8d6e){const _0x2ca9a7=a82_0x2c10,_0x280689=_0x5a8f06();while(!![]){try{const _0x5d5f99=parseInt(_0x2ca9a7(0x85))/0x1+-parseInt(_0x2ca9a7(0x93))/0x2+-parseInt(_0x2ca9a7(0x8e))/0x3*(parseInt(_0x2ca9a7(0x6d))/0x4)+parseInt(_0x2ca9a7(0x76))/0x5*(parseInt(_0x2ca9a7(0x96))/0x6)+parseInt(_0x2ca9a7(0x75))/0x7*(-parseInt(_0x2ca9a7(0x78))/0x8)+parseInt(_0x2ca9a7(0x82))/0x9+parseInt(_0x2ca9a7(0x70))/0xa;if(_0x5d5f99===_0x1f8d6e)break;else _0x280689['push'](_0x280689['shift']());}catch(_0x299c12){_0x280689['push'](_0x280689['shift']());}}}(a82_0x24da,0x81056));import{createDbLink,startDbAnalysis}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a82_0x2c10(_0x2bf820,_0x19cded){_0x2bf820=_0x2bf820-0x6a;const _0x24dacb=a82_0x24da();let _0x2c10af=_0x24dacb[_0x2bf820];return _0x2c10af;}import{APPCODE_FLAG_OPTIONAL,DB_TYPE_FLAG}from'../../commands/common/flags.js';import{buildDbPageLinks,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbCreate={'service':'db','command':a82_0x1f2edb(0x71),'description':a82_0x1f2edb(0x97),'risk':a82_0x1f2edb(0x92),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a82_0x1f2edb(0x94),'required':!![],'description':a82_0x1f2edb(0x91)},DB_TYPE_FLAG,{'name':'dbversion','type':a82_0x1f2edb(0x94),'description':'Server\x20version\x20string\x20(default:\x208.0\x20when\x20omitted)','default':a82_0x1f2edb(0x89)},{'name':a82_0x1f2edb(0x72),'type':a82_0x1f2edb(0x94),'required':!![],'description':a82_0x1f2edb(0x8c)},{'name':a82_0x1f2edb(0x8d),'type':a82_0x1f2edb(0x94),'required':!![],'description':'Database\x20username'},{'name':'password','type':'string','required':!![],'description':a82_0x1f2edb(0x77)},{'name':a82_0x1f2edb(0x80),'type':'string','description':a82_0x1f2edb(0x6b)},{'name':a82_0x1f2edb(0x8b),'type':a82_0x1f2edb(0x94),'description':a82_0x1f2edb(0x79)},{'name':a82_0x1f2edb(0x6a),'type':a82_0x1f2edb(0x83),'description':a82_0x1f2edb(0x8f),'default':![]}],async 'validate'(_0x4b178c){const _0x34781=a82_0x1f2edb,_0x3ee762=_0x4b178c[_0x34781(0x6f)](_0x34781(0x72))['trim']();if(!validateDbUrl(_0x3ee762))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port\x20(e.g.\x20db.example.com:3306),\x20got\x20\x22'+_0x3ee762+'\x22',_0x34781(0x7e));},async 'dryRun'(_0x24b023){const _0x218758=a82_0x1f2edb,_0x41286c={'appCode':_0x24b023['appCode'],'dbName':_0x24b023[_0x218758(0x6f)](_0x218758(0x86)),'dbType':_0x24b023['str']('dbtype'),'dbVersion':_0x24b023[_0x218758(0x6f)]('dbversion')||_0x218758(0x89),'dbUrl':_0x24b023[_0x218758(0x6f)](_0x218758(0x72))[_0x218758(0x87)](),'username':_0x24b023[_0x218758(0x6f)]('username'),'password':_0x218758(0x7d),..._0x24b023[_0x218758(0x6f)]('dbparam')?{'dbParam':_0x24b023['str'](_0x218758(0x80))}:{},..._0x24b023[_0x218758(0x6f)](_0x218758(0x8b))?{'dbDesc':_0x24b023[_0x218758(0x6f)]('dbdesc')}:{}};return{'method':'POST','url':_0x218758(0x7b),'body':_0x41286c,'description':[_0x218758(0x95),_0x24b023[_0x218758(0x81)]('autostart')?_0x218758(0x73):_0x218758(0x6c)][_0x218758(0x6e)]('\x0a')};},async 'execute'(_0x2d63a8){const _0x5745b9=a82_0x1f2edb,_0x2cb6b3={'appCode':_0x2d63a8[_0x5745b9(0x8a)],'dbName':_0x2d63a8[_0x5745b9(0x6f)](_0x5745b9(0x86)),'dbType':_0x2d63a8[_0x5745b9(0x6f)](_0x5745b9(0x90)),'dbVersion':_0x2d63a8[_0x5745b9(0x6f)](_0x5745b9(0x74))||_0x5745b9(0x89),'dbUrl':_0x2d63a8['str'](_0x5745b9(0x72))[_0x5745b9(0x87)](),'username':_0x2d63a8['str'](_0x5745b9(0x8d)),'password':_0x2d63a8['str'](_0x5745b9(0x88)),..._0x2d63a8[_0x5745b9(0x6f)](_0x5745b9(0x80))?{'dbParam':_0x2d63a8['str'](_0x5745b9(0x80))}:{},..._0x2d63a8[_0x5745b9(0x6f)](_0x5745b9(0x8b))?{'dbDesc':_0x2d63a8['str'](_0x5745b9(0x8b))}:{}},{id:_0x16a3d3,entity:_0x58bd8d}=normalizeEntityWithIdResponse(await createDbLink(_0x2cb6b3));if(!_0x16a3d3)return{'ok':![],'message':'Create\x20returned\x20no\x20id\x20—\x20check\x20API\x20response','data':sanitizeDbLinkForOutput(_0x58bd8d)};let _0x220469,_0x32eaf5;if(_0x2d63a8[_0x5745b9(0x81)](_0x5745b9(0x6a)))try{_0x220469=await startDbAnalysis(_0x16a3d3);}catch(_0x649850){_0x32eaf5=_0x649850 instanceof Error?_0x649850[_0x5745b9(0x7c)]:String(_0x649850);}const _0x956e00=buildDbPageLinks(_0x2d63a8[_0x5745b9(0x8a)],_0x16a3d3),_0x402170={'connection':sanitizeDbLinkForOutput(_0x58bd8d),..._0x956e00?{'links':{'databasePage':_0x956e00['databasePage']}}:{},..._0x220469?{'analysisPlanId':_0x220469}:{},..._0x32eaf5?{'analysisStartWarning':_0x32eaf5}:{}};let _0x513ae7;return _0x2d63a8[_0x5745b9(0x81)]('autostart')?_0x32eaf5?_0x513ae7=_0x5745b9(0x84)+_0x16a3d3+_0x5745b9(0x7a):_0x513ae7='Created\x20db\x20link\x20'+_0x16a3d3+_0x5745b9(0x7f):_0x513ae7=_0x5745b9(0x84)+_0x16a3d3,{'ok':!![],'data':_0x402170,'message':_0x513ae7};}};
@@ -1 +1 @@
1
- const a83_0x5dc8ac=a83_0x4090;(function(_0xd95030,_0x2470f7){const _0x282aa7=a83_0x4090,_0x5061bc=_0xd95030();while(!![]){try{const _0x4bb310=-parseInt(_0x282aa7(0x12c))/0x1*(parseInt(_0x282aa7(0x12b))/0x2)+-parseInt(_0x282aa7(0x124))/0x3*(parseInt(_0x282aa7(0x125))/0x4)+parseInt(_0x282aa7(0x126))/0x5+-parseInt(_0x282aa7(0x12d))/0x6+-parseInt(_0x282aa7(0x12a))/0x7+parseInt(_0x282aa7(0x12e))/0x8+-parseInt(_0x282aa7(0x123))/0x9*(-parseInt(_0x282aa7(0x129))/0xa);if(_0x4bb310===_0x2470f7)break;else _0x5061bc['push'](_0x5061bc['shift']());}catch(_0x38e79f){_0x5061bc['push'](_0x5061bc['shift']());}}}(a83_0x24d5,0xb2237));function a83_0x24d5(){const _0x30f259=['268butBlT','664870CWowWr','high-risk-write','num','110ByNEXs','4938311SMGnEJ','12DIvVEQ','205382rgFOHe','7654728BfOOfB','8956712QXDKIq','Deleted\x20db\x20link\x20','2427507vbdQwB','12372OZbgQU'];a83_0x24d5=function(){return _0x30f259;};return a83_0x24d5();}import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0x4090(_0xf77d7d,_0x413197){_0xf77d7d=_0xf77d7d-0x123;const _0x24d575=a83_0x24d5();let _0x409096=_0x24d575[_0xf77d7d];return _0x409096;}export const dbDelete={'service':'db','command':'delete','description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a83_0x5dc8ac(0x127),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x50e655){const _0xa832c8=a83_0x5dc8ac,_0xa336d3=_0x50e655[_0xa832c8(0x128)]('id');return await deleteDbLink(_0xa336d3),{'ok':!![],'data':{'id':_0xa336d3,'deleted':!![]},'message':_0xa832c8(0x12f)+_0xa336d3};}};
1
+ const a83_0x4b4705=a83_0x29a9;(function(_0xa4f583,_0x2ae0f0){const _0x4775db=a83_0x29a9,_0x44bd60=_0xa4f583();while(!![]){try{const _0xfb1855=-parseInt(_0x4775db(0xbe))/0x1+parseInt(_0x4775db(0xba))/0x2+-parseInt(_0x4775db(0xbd))/0x3+parseInt(_0x4775db(0xb8))/0x4+-parseInt(_0x4775db(0xb6))/0x5+-parseInt(_0x4775db(0xb9))/0x6*(-parseInt(_0x4775db(0xbb))/0x7)+parseInt(_0x4775db(0xbc))/0x8;if(_0xfb1855===_0x2ae0f0)break;else _0x44bd60['push'](_0x44bd60['shift']());}catch(_0x1bc2bc){_0x44bd60['push'](_0x44bd60['shift']());}}}(a83_0x1e93,0xcd5a8));import{deleteDbLink}from'../../core/api-client.js';function a83_0x1e93(){const _0x242f3d=['385546RrTkQy','6494775UgmLoQ','17936440AVLOHZ','2319585dHLqQK','507831HCZnZm','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','num','7731660RtZweE','delete','1223332OlFdGN','6ppsSvl'];a83_0x1e93=function(){return _0x242f3d;};return a83_0x1e93();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0x29a9(_0x444622,_0x11bac5){_0x444622=_0x444622-0xb6;const _0x1e9373=a83_0x1e93();let _0x29a990=_0x1e9373[_0x444622];return _0x29a990;}export const dbDelete={'service':'db','command':a83_0x4b4705(0xb7),'description':a83_0x4b4705(0xbf),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2e8e21){const _0x4575d1=a83_0x4b4705,_0x1920e7=_0x2e8e21[_0x4575d1(0xc0)]('id');return await deleteDbLink(_0x1920e7),{'ok':!![],'data':{'id':_0x1920e7,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x1920e7};}};
@@ -1 +1 @@
1
- const a84_0x59092b=a84_0x4884;(function(_0x198b27,_0x3fd63d){const _0x1c409a=a84_0x4884,_0x7d7684=_0x198b27();while(!![]){try{const _0x426da8=-parseInt(_0x1c409a(0x9c))/0x1+parseInt(_0x1c409a(0x98))/0x2*(parseInt(_0x1c409a(0x94))/0x3)+parseInt(_0x1c409a(0x91))/0x4*(parseInt(_0x1c409a(0x93))/0x5)+-parseInt(_0x1c409a(0x99))/0x6+-parseInt(_0x1c409a(0x9d))/0x7*(parseInt(_0x1c409a(0x92))/0x8)+parseInt(_0x1c409a(0x96))/0x9+parseInt(_0x1c409a(0x97))/0xa;if(_0x426da8===_0x3fd63d)break;else _0x7d7684['push'](_0x7d7684['shift']());}catch(_0x3a6505){_0x7d7684['push'](_0x7d7684['shift']());}}}(a84_0x3eef,0x37964));import{getDbLinkInfo}from'../../core/api-client.js';function a84_0x3eef(){const _0x246dcf=['397251bbDIsj','db\x20link\x20','260496GaeJmu','6634670TFIyMO','4BpdpQD','1804992FToyIo','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','read','424932GFrDKg','98DMlTvK','dbName','548gvZMaj','230216ivGkke','14565WSmBEg'];a84_0x3eef=function(){return _0x246dcf;};return a84_0x3eef();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x4884(_0x14b948,_0x13a88c){_0x14b948=_0x14b948-0x90;const _0x3eef15=a84_0x3eef();let _0x488449=_0x3eef15[_0x14b948];return _0x488449;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a84_0x59092b(0x9a),'risk':a84_0x59092b(0x9b),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x820d45){const _0x17ce5b=a84_0x59092b,_0x4933da=_0x820d45['num']('id'),_0x375862=await getDbLinkInfo(_0x4933da);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x375862),'message':_0x17ce5b(0x95)+_0x4933da+':\x20'+_0x375862[_0x17ce5b(0x90)]};}};
1
+ const a84_0x13c8e0=a84_0x52d1;(function(_0x52c343,_0x629201){const _0x48081d=a84_0x52d1,_0x3fe5bd=_0x52c343();while(!![]){try{const _0x556b86=parseInt(_0x48081d(0x173))/0x1*(parseInt(_0x48081d(0x178))/0x2)+parseInt(_0x48081d(0x17c))/0x3*(-parseInt(_0x48081d(0x177))/0x4)+parseInt(_0x48081d(0x17a))/0x5*(parseInt(_0x48081d(0x175))/0x6)+parseInt(_0x48081d(0x171))/0x7+-parseInt(_0x48081d(0x17b))/0x8+-parseInt(_0x48081d(0x174))/0x9+parseInt(_0x48081d(0x17d))/0xa;if(_0x556b86===_0x629201)break;else _0x3fe5bd['push'](_0x3fe5bd['shift']());}catch(_0x43c90c){_0x3fe5bd['push'](_0x3fe5bd['shift']());}}}(a84_0x453b,0x58c29));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x52d1(_0x520772,_0x238ae5){_0x520772=_0x520772-0x170;const _0x453b75=a84_0x453b();let _0x52d196=_0x453b75[_0x520772];return _0x52d196;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a84_0x13c8e0(0x179),'description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a84_0x13c8e0(0x17e),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x53a3a0){const _0x164f36=a84_0x13c8e0,_0x5f3904=_0x53a3a0[_0x164f36(0x170)]('id'),_0x40c06d=await getDbLinkInfo(_0x5f3904);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x40c06d),'message':_0x164f36(0x172)+_0x5f3904+':\x20'+_0x40c06d[_0x164f36(0x176)]};}};function a84_0x453b(){const _0x571ee0=['729695IFRcVj','4878848cSmAgK','111BhaUqg','5252940vdyoQD','read','num','2166213TqvDao','db\x20link\x20','222543DerLgB','3987harTab','6yoHQLG','dbName','48856OBQgOZ','4AEFyEZ','detail'];a84_0x453b=function(){return _0x571ee0;};return a84_0x453b();}
@@ -1 +1 @@
1
- function a85_0x20d0(_0xae46a4,_0x10e247){_0xae46a4=_0xae46a4-0x14b;const _0xf22cf5=a85_0xf22c();let _0x20d082=_0xf22cf5[_0xae46a4];return _0x20d082;}const a85_0x3b5360=a85_0x20d0;(function(_0x45cae8,_0x24b23a){const _0x283315=a85_0x20d0,_0x49e333=_0x45cae8();while(!![]){try{const _0x2b647d=parseInt(_0x283315(0x17b))/0x1+parseInt(_0x283315(0x172))/0x2*(parseInt(_0x283315(0x16c))/0x3)+parseInt(_0x283315(0x155))/0x4+-parseInt(_0x283315(0x15f))/0x5*(parseInt(_0x283315(0x167))/0x6)+-parseInt(_0x283315(0x176))/0x7*(parseInt(_0x283315(0x152))/0x8)+-parseInt(_0x283315(0x16a))/0x9*(-parseInt(_0x283315(0x14d))/0xa)+-parseInt(_0x283315(0x17c))/0xb*(parseInt(_0x283315(0x15a))/0xc);if(_0x2b647d===_0x24b23a)break;else _0x49e333['push'](_0x49e333['shift']());}catch(_0x25d618){_0x49e333['push'](_0x49e333['shift']());}}}(a85_0xf22c,0x319d6));import{getDbTableDiff}from'../../core/api-client.js';function a85_0xf22c(){const _0x288557=['values','10jxlkqu','tableList','summary','table','7RLXhnp','\x20row(s),\x20total\x20','NEW_TABLE','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','validation','23961suPKai','11YTESJG','size','diff','physicalTableCount','datasetTableCount','pagesize','2863480VOcwni','fromEntries','tableName','string','str','3045912CPzpZb','totalCount','\x20(db\x20link\x20','261460zOTGnK','diffType','MODIFIED_TABLE','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','number','1559004YxZNCA','Page\x20index\x20(1-based)','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','map','length','5TzgmcG','\x20row(s).','boolean','all','num','Incomplete\x20db\x20diff\x20pagination:\x20collected\x20','changed-only','ALREADY_ANALYZED','83046YLgnXz','DELETED_TABLE','addedColumns','9dhoDXT','bool','211227jfrxQK','page','fieldDiff','filter','appCode'];a85_0xf22c=function(){return _0x288557;};return a85_0xf22c();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a85_0x3b5360(0x178),a85_0x3b5360(0x157),'DELETED_TABLE',a85_0x3b5360(0x166)];export const dbDiff={'service':'db','command':a85_0x3b5360(0x17e),'description':a85_0x3b5360(0x158),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a85_0x3b5360(0x175),'type':a85_0x3b5360(0x150),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a85_0x3b5360(0x16d),'type':a85_0x3b5360(0x159),'description':a85_0x3b5360(0x15b),'default':0x1},{'name':a85_0x3b5360(0x14c),'type':a85_0x3b5360(0x159),'description':'Page\x20size','default':0x14},{'name':a85_0x3b5360(0x162),'type':a85_0x3b5360(0x161),'description':a85_0x3b5360(0x15c)},{'name':a85_0x3b5360(0x165),'type':'boolean','description':a85_0x3b5360(0x179)}],async 'execute'(_0x4a7137){const _0x1977ea=a85_0x3b5360,_0x4752e4=_0x4a7137[_0x1977ea(0x163)]('id'),_0xcd5949=_0x4a7137[_0x1977ea(0x16b)](_0x1977ea(0x162)),_0x43e053=_0x4a7137[_0x1977ea(0x16b)](_0x1977ea(0x165)),_0x2ecff0=_0xcd5949?0x1:_0x4a7137[_0x1977ea(0x163)]('page',0x1)||0x1,_0x4e2ff1=_0xcd5949?ALL_PAGE_SIZE:_0x4a7137[_0x1977ea(0x163)]('pagesize',0x14)||0x14,_0x73d60c=_0x4a7137[_0x1977ea(0x151)](_0x1977ea(0x175))||undefined,_0x169810=_0xcd5949?await getAllDbTableDiff(_0x4a7137['appCode'],_0x4752e4,_0x73d60c):await getDbTableDiff(_0x4a7137[_0x1977ea(0x170)],_0x4752e4,{'pageIndex':_0x2ecff0,'pageSize':_0x4e2ff1,'tableName':_0x73d60c}),_0x474dc9=_0x169810['tableList'],_0x32ec81=_0x43e053?_0x474dc9[_0x1977ea(0x16f)](_0x4e785c=>_0x4e785c[_0x1977ea(0x156)]!==_0x1977ea(0x166)):_0x474dc9,_0x2c94a4=Object[_0x1977ea(0x14e)](DIFF_TYPES['map'](_0x67a1bf=>[_0x67a1bf,_0x474dc9[_0x1977ea(0x16f)](_0x2a3310=>_0x2a3310['diffType']===_0x67a1bf)[_0x1977ea(0x15e)]])),_0x3cabce=_0x474dc9['filter'](_0x20451c=>_0x20451c['diffType']===_0x1977ea(0x178)||_0x20451c[_0x1977ea(0x156)]===_0x1977ea(0x157))[_0x1977ea(0x15d)](_0x42dc7c=>_0x42dc7c[_0x1977ea(0x14f)]),_0x1ef9e7=_0x474dc9[_0x1977ea(0x16f)](_0x28ef71=>_0x28ef71[_0x1977ea(0x156)]===_0x1977ea(0x168))[_0x1977ea(0x15d)](_0x287305=>_0x287305['tableName']),_0x10e608=_0x474dc9[_0x1977ea(0x16f)](_0x5d9e60=>_0x5d9e60[_0x1977ea(0x156)]==='MODIFIED_TABLE')[_0x1977ea(0x15d)](_0x4b23a9=>({'tableName':_0x4b23a9[_0x1977ea(0x14f)],'addedColumns':_0x4b23a9[_0x1977ea(0x16e)]?.[_0x1977ea(0x169)]??[],'deletedColumns':_0x4b23a9['fieldDiff']?.['deletedColumns']??[],'modifiedColumns':_0x4b23a9[_0x1977ea(0x16e)]?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x4752e4,'page':_0x2ecff0,'pageSize':_0x4e2ff1,'totalCount':_0x169810[_0x1977ea(0x153)],'physicalTableCount':_0x169810[_0x1977ea(0x17f)],'datasetTableCount':_0x169810[_0x1977ea(0x14b)],..._0x169810['summary']?{'summary':_0x169810[_0x1977ea(0x174)]}:{},'summaryByType':_0x2c94a4,'toAnalyzeTables':_0x3cabce,'deletedTables':_0x1ef9e7,'modifiedFieldDiffs':_0x10e608,'tables':_0x32ec81,'tableList':_0x32ec81},'message':_0x32ec81[_0x1977ea(0x15e)]+_0x1977ea(0x177)+_0x169810['totalCount']+_0x1977ea(0x154)+_0x4752e4+')'};}};async function getAllDbTableDiff(_0x36a205,_0x19a9c0,_0x183ced){const _0x4e44b5=a85_0x3b5360,_0x487888=new Map();let _0x354f0e=0x1,_0x246950=null;while(!![]){_0x246950=await getDbTableDiff(_0x36a205,_0x19a9c0,{'pageIndex':_0x354f0e,'pageSize':ALL_PAGE_SIZE,'tableName':_0x183ced});const _0x4ee400=_0x487888['size'];for(const _0x891cf4 of _0x246950[_0x4e44b5(0x173)]){_0x487888['set'](_0x891cf4['tableName'],_0x891cf4);}if(_0x487888[_0x4e44b5(0x17d)]>=_0x246950[_0x4e44b5(0x153)])break;if(_0x246950[_0x4e44b5(0x173)][_0x4e44b5(0x15e)]===0x0||_0x487888['size']===_0x4ee400)throw CliErrors[_0x4e44b5(0x17a)](_0x4e44b5(0x164)+_0x487888[_0x4e44b5(0x17d)]+'\x20of\x20'+_0x246950[_0x4e44b5(0x153)]+_0x4e44b5(0x160));_0x354f0e+=0x1;}return{'totalCount':_0x246950?.[_0x4e44b5(0x153)]??0x0,'physicalTableCount':_0x246950?.['physicalTableCount']??0x0,'datasetTableCount':_0x246950?.['datasetTableCount']??0x0,..._0x246950?.[_0x4e44b5(0x174)]?{'summary':_0x246950[_0x4e44b5(0x174)]}:{},'tableList':[..._0x487888[_0x4e44b5(0x171)]()]};}
1
+ function a85_0x1061(){const _0x4b2d65=['6223782eujHrF','datasetTableCount','fieldDiff','\x20of\x20','appCode','595445cXnOnD','map','bool','length','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','Page\x20size','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','totalCount','tableList','modifiedColumns','232392ZfXfDz','diffType','deletedColumns','fromEntries','NEW_TABLE','size','number','read','3869031ZpnSAZ','3138381isTyzr','pagesize','physicalTableCount','\x20(db\x20link\x20','10rJUrKZ','4907320zwRnYC','8409MiTzXe','filter','52yWxxlD','ALREADY_ANALYZED','259ROBJWR','boolean','summary','validation','Page\x20index\x20(1-based)','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','set','all','addedColumns','114gInnvU','tableName','DELETED_TABLE','diff','page','\x20row(s).','num','table','string','changed-only'];a85_0x1061=function(){return _0x4b2d65;};return a85_0x1061();}const a85_0x1e72a8=a85_0x14eb;(function(_0x14372,_0x412756){const _0x5ee3a2=a85_0x14eb,_0x4af691=_0x14372();while(!![]){try{const _0x31b139=parseInt(_0x5ee3a2(0x8a))/0x1*(parseInt(_0x5ee3a2(0x97))/0x2)+-parseInt(_0x5ee3a2(0x83))/0x3+parseInt(_0x5ee3a2(0x8c))/0x4*(parseInt(_0x5ee3a2(0xa6))/0x5)+parseInt(_0x5ee3a2(0xa1))/0x6+parseInt(_0x5ee3a2(0x8e))/0x7*(-parseInt(_0x5ee3a2(0xb1))/0x8)+parseInt(_0x5ee3a2(0x84))/0x9*(-parseInt(_0x5ee3a2(0x88))/0xa)+parseInt(_0x5ee3a2(0x89))/0xb;if(_0x31b139===_0x412756)break;else _0x4af691['push'](_0x4af691['shift']());}catch(_0x24e137){_0x4af691['push'](_0x4af691['shift']());}}}(a85_0x1061,0xc2bf8));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a85_0x14eb(_0x36b100,_0x5d041a){_0x36b100=_0x36b100-0x7f;const _0x106105=a85_0x1061();let _0x14eba8=_0x106105[_0x36b100];return _0x14eba8;}import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=['NEW_TABLE','MODIFIED_TABLE',a85_0x1e72a8(0x99),a85_0x1e72a8(0x8d)];export const dbDiff={'service':'db','command':a85_0x1e72a8(0x9a),'description':a85_0x1e72a8(0xad),'risk':a85_0x1e72a8(0x82),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a85_0x1e72a8(0x9e),'type':a85_0x1e72a8(0x9f),'description':a85_0x1e72a8(0xac)},{'name':'page','type':a85_0x1e72a8(0x81),'description':a85_0x1e72a8(0x92),'default':0x1},{'name':a85_0x1e72a8(0x85),'type':a85_0x1e72a8(0x81),'description':a85_0x1e72a8(0xab),'default':0x14},{'name':a85_0x1e72a8(0x95),'type':a85_0x1e72a8(0x8f),'description':a85_0x1e72a8(0x93)},{'name':a85_0x1e72a8(0xa0),'type':a85_0x1e72a8(0x8f),'description':a85_0x1e72a8(0xaa)}],async 'execute'(_0x134c53){const _0x2533a4=a85_0x1e72a8,_0x54a715=_0x134c53['num']('id'),_0x4bbcf1=_0x134c53[_0x2533a4(0xa8)](_0x2533a4(0x95)),_0x59f031=_0x134c53['bool'](_0x2533a4(0xa0)),_0x33ae03=_0x4bbcf1?0x1:_0x134c53['num'](_0x2533a4(0x9b),0x1)||0x1,_0x3d5ba4=_0x4bbcf1?ALL_PAGE_SIZE:_0x134c53[_0x2533a4(0x9d)](_0x2533a4(0x85),0x14)||0x14,_0x1a105d=_0x134c53['str']('table')||undefined,_0x504921=_0x4bbcf1?await getAllDbTableDiff(_0x134c53['appCode'],_0x54a715,_0x1a105d):await getDbTableDiff(_0x134c53[_0x2533a4(0xa5)],_0x54a715,{'pageIndex':_0x33ae03,'pageSize':_0x3d5ba4,'tableName':_0x1a105d}),_0x875bfd=_0x504921[_0x2533a4(0xaf)],_0x167f27=_0x59f031?_0x875bfd[_0x2533a4(0x8b)](_0xbc6d85=>_0xbc6d85[_0x2533a4(0xb2)]!==_0x2533a4(0x8d)):_0x875bfd,_0x2530be=Object[_0x2533a4(0xb4)](DIFF_TYPES[_0x2533a4(0xa7)](_0x3d36b5=>[_0x3d36b5,_0x875bfd[_0x2533a4(0x8b)](_0x4fc2bc=>_0x4fc2bc['diffType']===_0x3d36b5)['length']])),_0x2b34d3=_0x875bfd[_0x2533a4(0x8b)](_0x314ef0=>_0x314ef0[_0x2533a4(0xb2)]===_0x2533a4(0x7f)||_0x314ef0[_0x2533a4(0xb2)]==='MODIFIED_TABLE')['map'](_0x2517b5=>_0x2517b5[_0x2533a4(0x98)]),_0x3f2d13=_0x875bfd[_0x2533a4(0x8b)](_0x150d0c=>_0x150d0c[_0x2533a4(0xb2)]===_0x2533a4(0x99))[_0x2533a4(0xa7)](_0x441db5=>_0x441db5[_0x2533a4(0x98)]),_0x245bf5=_0x875bfd[_0x2533a4(0x8b)](_0x19b4ab=>_0x19b4ab[_0x2533a4(0xb2)]==='MODIFIED_TABLE')['map'](_0x4d4e00=>({'tableName':_0x4d4e00['tableName'],'addedColumns':_0x4d4e00[_0x2533a4(0xa3)]?.[_0x2533a4(0x96)]??[],'deletedColumns':_0x4d4e00[_0x2533a4(0xa3)]?.[_0x2533a4(0xb3)]??[],'modifiedColumns':_0x4d4e00[_0x2533a4(0xa3)]?.[_0x2533a4(0xb0)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x54a715,'page':_0x33ae03,'pageSize':_0x3d5ba4,'totalCount':_0x504921[_0x2533a4(0xae)],'physicalTableCount':_0x504921[_0x2533a4(0x86)],'datasetTableCount':_0x504921[_0x2533a4(0xa2)],..._0x504921['summary']?{'summary':_0x504921['summary']}:{},'summaryByType':_0x2530be,'toAnalyzeTables':_0x2b34d3,'deletedTables':_0x3f2d13,'modifiedFieldDiffs':_0x245bf5,'tables':_0x167f27,'tableList':_0x167f27},'message':_0x167f27[_0x2533a4(0xa9)]+'\x20row(s),\x20total\x20'+_0x504921[_0x2533a4(0xae)]+_0x2533a4(0x87)+_0x54a715+')'};}};async function getAllDbTableDiff(_0x5c499d,_0x5087c7,_0xd2baf9){const _0x450777=a85_0x1e72a8,_0x2d157f=new Map();let _0x467807=0x1,_0x5ca367=null;while(!![]){_0x5ca367=await getDbTableDiff(_0x5c499d,_0x5087c7,{'pageIndex':_0x467807,'pageSize':ALL_PAGE_SIZE,'tableName':_0xd2baf9});const _0x35dc25=_0x2d157f[_0x450777(0x80)];for(const _0x223bd1 of _0x5ca367[_0x450777(0xaf)]){_0x2d157f[_0x450777(0x94)](_0x223bd1[_0x450777(0x98)],_0x223bd1);}if(_0x2d157f[_0x450777(0x80)]>=_0x5ca367[_0x450777(0xae)])break;if(_0x5ca367[_0x450777(0xaf)][_0x450777(0xa9)]===0x0||_0x2d157f['size']===_0x35dc25)throw CliErrors[_0x450777(0x91)]('Incomplete\x20db\x20diff\x20pagination:\x20collected\x20'+_0x2d157f['size']+_0x450777(0xa4)+_0x5ca367[_0x450777(0xae)]+_0x450777(0x9c));_0x467807+=0x1;}return{'totalCount':_0x5ca367?.[_0x450777(0xae)]??0x0,'physicalTableCount':_0x5ca367?.[_0x450777(0x86)]??0x0,'datasetTableCount':_0x5ca367?.[_0x450777(0xa2)]??0x0,..._0x5ca367?.[_0x450777(0x90)]?{'summary':_0x5ca367[_0x450777(0x90)]}:{},'tableList':[..._0x2d157f['values']()]};}
@@ -1 +1 @@
1
- (function(_0x540840,_0x3b92ec){const _0x2185de=a86_0x3227,_0x25f8b1=_0x540840();while(!![]){try{const _0x1c5209=-parseInt(_0x2185de(0x9a))/0x1*(-parseInt(_0x2185de(0xa0))/0x2)+parseInt(_0x2185de(0x9e))/0x3*(-parseInt(_0x2185de(0xa5))/0x4)+parseInt(_0x2185de(0xa1))/0x5+parseInt(_0x2185de(0x9b))/0x6*(-parseInt(_0x2185de(0xa2))/0x7)+parseInt(_0x2185de(0x9c))/0x8*(parseInt(_0x2185de(0xa4))/0x9)+-parseInt(_0x2185de(0x9f))/0xa+-parseInt(_0x2185de(0x9d))/0xb*(-parseInt(_0x2185de(0xa3))/0xc);if(_0x1c5209===_0x3b92ec)break;else _0x25f8b1['push'](_0x25f8b1['shift']());}catch(_0xfc4a59){_0x25f8b1['push'](_0x25f8b1['shift']());}}}(a86_0x2181,0x23e18));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';function a86_0x3227(_0x482129,_0x325852){_0x482129=_0x482129-0x9a;const _0x2181d4=a86_0x2181();let _0x32276e=_0x2181d4[_0x482129];return _0x32276e;}function a86_0x2181(){const _0x4fac50=['2895060bVPznU','21500LdxZTT','996845RerGBs','91aPTgNP','1252788vQYCLx','8838yRgpug','152TBdlxc','5AXwkiH','49176jpoyss','136hDUcZQ','55kqmVWz','19641IpIbQC'];a86_0x2181=function(){return _0x4fac50;};return a86_0x2181();}import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
1
+ (function(_0x50af35,_0xc14100){const _0x23af81=a86_0x45d5,_0xfeb53a=_0x50af35();while(!![]){try{const _0x528e2b=-parseInt(_0x23af81(0x1f9))/0x1+-parseInt(_0x23af81(0x1fa))/0x2+parseInt(_0x23af81(0x1f3))/0x3*(-parseInt(_0x23af81(0x1f1))/0x4)+-parseInt(_0x23af81(0x1f7))/0x5+-parseInt(_0x23af81(0x1f4))/0x6+parseInt(_0x23af81(0x1f8))/0x7*(parseInt(_0x23af81(0x1f2))/0x8)+-parseInt(_0x23af81(0x1f6))/0x9*(-parseInt(_0x23af81(0x1f5))/0xa);if(_0x528e2b===_0xc14100)break;else _0xfeb53a['push'](_0xfeb53a['shift']());}catch(_0x349aea){_0xfeb53a['push'](_0xfeb53a['shift']());}}}(a86_0x4069,0xbdeec));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';function a86_0x4069(){const _0x217fde=['1779784IhqXrJ','25912zadfVH','163704ukKiCo','21MyNovi','1190838IPCDXY','40XiHVuc','2175507XGzxqo','264525tHbWTe','434lQEbpD','271018vGKqpQ'];a86_0x4069=function(){return _0x217fde;};return a86_0x4069();}function a86_0x45d5(_0x343d08,_0x467c74){_0x343d08=_0x343d08-0x1f1;const _0x406948=a86_0x4069();let _0x45d5e1=_0x406948[_0x343d08];return _0x45d5e1;}import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
@@ -1 +1 @@
1
- function a87_0x159b(){const _0x399ed1=['number','2316712ZcoGgA','4699552zxLNFS','115VraRyl','5965645VtvMPN','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','Found\x20','164UQyjQT','44EVAKxd','read','146682SvhuYR','page','pagesize','length','num','Page\x20index\x20(1-based)','10518ELzQIF','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','\x20database\x20connection(s)','8909830NRVjAG','27JvNHWm','5867334oXOeSi','appCode'];a87_0x159b=function(){return _0x399ed1;};return a87_0x159b();}const a87_0x24b02e=a87_0x1ab2;(function(_0x2ffdb0,_0x92e30a){const _0x47e905=a87_0x1ab2,_0x37a6ed=_0x2ffdb0();while(!![]){try{const _0x3501a8=-parseInt(_0x47e905(0x18c))/0x1*(parseInt(_0x47e905(0x183))/0x2)+parseInt(_0x47e905(0x191))/0x3+parseInt(_0x47e905(0x17e))/0x4+parseInt(_0x47e905(0x17f))/0x5*(parseInt(_0x47e905(0x186))/0x6)+parseInt(_0x47e905(0x180))/0x7+-parseInt(_0x47e905(0x194))/0x8*(-parseInt(_0x47e905(0x190))/0x9)+parseInt(_0x47e905(0x18f))/0xa*(-parseInt(_0x47e905(0x184))/0xb);if(_0x3501a8===_0x92e30a)break;else _0x37a6ed['push'](_0x37a6ed['shift']());}catch(_0x3cc69e){_0x37a6ed['push'](_0x37a6ed['shift']());}}}(a87_0x159b,0xf1195));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a87_0x1ab2(_0x22b229,_0x4fdc29){_0x22b229=_0x22b229-0x17e;const _0x159b73=a87_0x159b();let _0x1ab2a4=_0x159b73[_0x22b229];return _0x1ab2a4;}export const dbList={'service':'db','command':'list','description':a87_0x24b02e(0x181),'risk':a87_0x24b02e(0x185),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a87_0x24b02e(0x187),'type':'number','description':a87_0x24b02e(0x18b),'default':0x1},{'name':a87_0x24b02e(0x188),'type':a87_0x24b02e(0x193),'description':'Page\x20size','default':0x64}],async 'execute'(_0x2cefad){const _0x28561c=a87_0x24b02e,_0x714147=_0x2cefad[_0x28561c(0x18a)](_0x28561c(0x187),0x1)||0x1,_0x4937c4=_0x2cefad['num']('pagesize',0x64)||0x64,{items:_0x2eac82,paging:_0x4beb08}=await listDbLinks(_0x2cefad[_0x28561c(0x192)],{'currentPage':_0x714147,'pageSize':_0x4937c4}),_0x329d28=sanitizeDbLinkList(_0x2eac82),_0x1fcf45=_0x4beb08?_0x4beb08:{'currentPage':_0x714147,'pageSize':_0x4937c4,'rowsOnPage':_0x329d28[_0x28561c(0x189)],'totalCount':null,'note':_0x28561c(0x18d)};return{'ok':!![],'data':{'connections':_0x329d28,'paging':_0x1fcf45},'message':_0x28561c(0x182)+_0x329d28['length']+_0x28561c(0x18e)};}};
1
+ function a87_0xd0f4(){const _0x13ce66=['Found\x20','40lFCyTv','920297wyWmEb','1700252BYzPCZ','appCode','2813945DfBeSM','Page\x20size','length','20zMIqQk','5111154pqrsHY','pagesize','21WDgzyp','number','num','read','197560DqBPvo','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','Page\x20index\x20(1-based)','1357843sZADSR','9830853chNNJM','list'];a87_0xd0f4=function(){return _0x13ce66;};return a87_0xd0f4();}const a87_0x449740=a87_0x364c;(function(_0x45eb7b,_0xbc1c87){const _0x4503b4=a87_0x364c,_0x4706e2=_0x45eb7b();while(!![]){try{const _0x393e6a=parseInt(_0x4503b4(0x165))/0x1+-parseInt(_0x4503b4(0x16b))/0x2+parseInt(_0x4503b4(0x15e))/0x3*(parseInt(_0x4503b4(0x162))/0x4)+parseInt(_0x4503b4(0x16d))/0x5+parseInt(_0x4503b4(0x15c))/0x6+parseInt(_0x4503b4(0x16a))/0x7*(parseInt(_0x4503b4(0x169))/0x8)+-parseInt(_0x4503b4(0x166))/0x9*(parseInt(_0x4503b4(0x15b))/0xa);if(_0x393e6a===_0xbc1c87)break;else _0x4706e2['push'](_0x4706e2['shift']());}catch(_0x2ffb4e){_0x4706e2['push'](_0x4706e2['shift']());}}}(a87_0xd0f4,0xb4dd0));import{listDbLinks}from'../../core/api-client.js';function a87_0x364c(_0x50a63e,_0x2fadea){_0x50a63e=_0x50a63e-0x15b;const _0xd0f49a=a87_0xd0f4();let _0x364c34=_0xd0f49a[_0x50a63e];return _0x364c34;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a87_0x449740(0x167),'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':a87_0x449740(0x161),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a87_0x449740(0x15f),'description':a87_0x449740(0x164),'default':0x1},{'name':a87_0x449740(0x15d),'type':a87_0x449740(0x15f),'description':a87_0x449740(0x16e),'default':0x64}],async 'execute'(_0x11f86d){const _0x31b8a9=a87_0x449740,_0x4583f3=_0x11f86d['num']('page',0x1)||0x1,_0x34b6a6=_0x11f86d[_0x31b8a9(0x160)](_0x31b8a9(0x15d),0x64)||0x64,{items:_0x16ea61,paging:_0x56085e}=await listDbLinks(_0x11f86d[_0x31b8a9(0x16c)],{'currentPage':_0x4583f3,'pageSize':_0x34b6a6}),_0x1d449f=sanitizeDbLinkList(_0x16ea61),_0x3f34a2=_0x56085e?_0x56085e:{'currentPage':_0x4583f3,'pageSize':_0x34b6a6,'rowsOnPage':_0x1d449f[_0x31b8a9(0x16f)],'totalCount':null,'note':_0x31b8a9(0x163)};return{'ok':!![],'data':{'connections':_0x1d449f,'paging':_0x3f34a2},'message':_0x31b8a9(0x168)+_0x1d449f[_0x31b8a9(0x16f)]+'\x20database\x20connection(s)'};}};
@@ -1 +1 @@
1
- (function(_0x418fad,_0x237302){const _0x4df783=a88_0x4e34,_0x3c489f=_0x418fad();while(!![]){try{const _0x182574=-parseInt(_0x4df783(0x163))/0x1*(-parseInt(_0x4df783(0x159))/0x2)+-parseInt(_0x4df783(0x15e))/0x3+-parseInt(_0x4df783(0x160))/0x4+parseInt(_0x4df783(0x172))/0x5+parseInt(_0x4df783(0x16c))/0x6*(parseInt(_0x4df783(0x166))/0x7)+-parseInt(_0x4df783(0x16e))/0x8+parseInt(_0x4df783(0x165))/0x9;if(_0x182574===_0x237302)break;else _0x3c489f['push'](_0x3c489f['shift']());}catch(_0x1f9cf5){_0x3c489f['push'](_0x3c489f['shift']());}}}(a88_0x5e0e,0x1a961));function a88_0x4e34(_0x239714,_0x3c7ee7){_0x239714=_0x239714-0x159;const _0x5e0e12=a88_0x5e0e();let _0x4e34f2=_0x5e0e12[_0x239714];return _0x4e34f2;}import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x3966c3){const _0x3d2161=a88_0x4e34,_0x43abb1=_0x3966c3[_0x3d2161(0x16d)]();if(_0x43abb1===_0x3d2161(0x15b)||_0x43abb1===_0x3d2161(0x16b)||_0x43abb1===_0x3d2161(0x167))return!![];if(_0x43abb1[_0x3d2161(0x16f)]('secret')||_0x43abb1[_0x3d2161(0x16f)](_0x3d2161(0x164))||_0x43abb1[_0x3d2161(0x16f)]('credential'))return!![];if(_0x43abb1[_0x3d2161(0x16f)](_0x3d2161(0x171))||_0x43abb1[_0x3d2161(0x16f)](_0x3d2161(0x16a)))return!![];if(_0x43abb1===_0x3d2161(0x170)||_0x43abb1===_0x3d2161(0x161)||_0x43abb1===_0x3d2161(0x168))return!![];return![];}export function sanitizeDbLinkForOutput(_0x5588f0){const _0x3b6bac={..._0x5588f0};for(const _0x21a1a0 of Object['keys'](_0x3b6bac)){if(!shouldRedactKey(_0x21a1a0))continue;const _0x44a13f=_0x3b6bac[_0x21a1a0];_0x44a13f!=null&&String(_0x44a13f)['length']>0x0&&(_0x3b6bac[_0x21a1a0]='[redacted]');}return _0x3b6bac;}export function sanitizeDbLinkList(_0x5bc632){const _0x419bd5=a88_0x4e34;return _0x5bc632[_0x419bd5(0x15a)](_0x391b33=>sanitizeDbLinkForOutput(_0x391b33));}function a88_0x5e0e(){const _0x2be355=['test','44667laUPAZ','token','93519xMkqMg','180502pBfwJV','dbpassword','jdbcurl','/data/database','accesskey','passwd','18ILuCyX','toLowerCase','89112rtVuQj','includes','authorization','privatekey','217075vggvtu','6tXfReZ','map','password','number','/data/er?dbId=','282606nTdQLq','trim','203708EUaNCz','connectionstring'];a88_0x5e0e=function(){return _0x2be355;};return a88_0x5e0e();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3e93c9){const _0xe7499e=a88_0x4e34,_0x55bb39=_0x3e93c9[_0xe7499e(0x15f)]();if(!_0x55bb39)return![];return DB_URL_PATTERN[_0xe7499e(0x162)](_0x55bb39);}export function buildDbPageLinks(_0x16fc8f,_0x572511){const _0x1d0d96=a88_0x4e34,_0x3e6285=_0x16fc8f?.[_0x1d0d96(0x15f)]();if(!_0x3e6285)return undefined;const _0x553114=typeof _0x572511===_0x1d0d96(0x15c)?String(_0x572511):String(_0x572511??'')[_0x1d0d96(0x15f)]();if(!_0x553114)return undefined;const _0x5636a8=Number(_0x553114);if(!Number['isFinite'](_0x5636a8)||_0x5636a8<=0x0)return undefined;const _0x40b9c5=getAppBaseUrl(_0x3e6285),_0x206dd0=encodeURIComponent(String(_0x5636a8));return{'databasePage':_0x40b9c5+_0x1d0d96(0x169),'erPage':_0x40b9c5+_0x1d0d96(0x15d)+_0x206dd0};}
1
+ (function(_0x3feafd,_0x362d1e){const _0x5cd6f9=a88_0x17ed,_0x5b51a9=_0x3feafd();while(!![]){try{const _0x39a806=-parseInt(_0x5cd6f9(0x85))/0x1+-parseInt(_0x5cd6f9(0x8e))/0x2+parseInt(_0x5cd6f9(0x7f))/0x3+parseInt(_0x5cd6f9(0x94))/0x4*(-parseInt(_0x5cd6f9(0x81))/0x5)+parseInt(_0x5cd6f9(0x90))/0x6*(parseInt(_0x5cd6f9(0x87))/0x7)+-parseInt(_0x5cd6f9(0x86))/0x8+parseInt(_0x5cd6f9(0x8b))/0x9;if(_0x39a806===_0x362d1e)break;else _0x5b51a9['push'](_0x5b51a9['shift']());}catch(_0x3048b9){_0x5b51a9['push'](_0x5b51a9['shift']());}}}(a88_0x160c,0x50a6a));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x352c14){const _0x4742e7=a88_0x17ed,_0x2002f7=_0x352c14['toLowerCase']();if(_0x2002f7===_0x4742e7(0x96)||_0x2002f7==='passwd'||_0x2002f7==='dbpassword')return!![];if(_0x2002f7[_0x4742e7(0x84)]('secret')||_0x2002f7[_0x4742e7(0x84)](_0x4742e7(0x88))||_0x2002f7['includes']('credential'))return!![];if(_0x2002f7['includes']('privatekey')||_0x2002f7['includes'](_0x4742e7(0x8c)))return!![];if(_0x2002f7===_0x4742e7(0x92)||_0x2002f7===_0x4742e7(0x91)||_0x2002f7===_0x4742e7(0x8d))return!![];return![];}function a88_0x17ed(_0x3e689b,_0x44ba00){_0x3e689b=_0x3e689b-0x7f;const _0x160cf2=a88_0x160c();let _0x17ed47=_0x160cf2[_0x3e689b];return _0x17ed47;}export function sanitizeDbLinkForOutput(_0x385d2b){const _0x49a621=a88_0x17ed,_0x59a67e={..._0x385d2b};for(const _0x2b81fc of Object[_0x49a621(0x8a)](_0x59a67e)){if(!shouldRedactKey(_0x2b81fc))continue;const _0x4a9547=_0x59a67e[_0x2b81fc];_0x4a9547!=null&&String(_0x4a9547)[_0x49a621(0x80)]>0x0&&(_0x59a67e[_0x2b81fc]=_0x49a621(0x8f));}return _0x59a67e;}export function sanitizeDbLinkList(_0x5ed4cf){const _0x2bb657=a88_0x17ed;return _0x5ed4cf[_0x2bb657(0x82)](_0x452fd3=>sanitizeDbLinkForOutput(_0x452fd3));}function a88_0x160c(){const _0x7818bb=['accesskey','jdbcurl','1288892svuaky','[redacted]','30aMsbzs','connectionstring','authorization','number','145532FJQJTj','trim','password','326733BWpgFb','length','90daKNkL','map','/data/er?dbId=','includes','594205iHUMKu','872936bfRXQh','317835VvOBNJ','token','test','keys','17973648NHHvoL'];a88_0x160c=function(){return _0x7818bb;};return a88_0x160c();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3c9ca7){const _0x33ac49=a88_0x17ed,_0x168313=_0x3c9ca7[_0x33ac49(0x95)]();if(!_0x168313)return![];return DB_URL_PATTERN[_0x33ac49(0x89)](_0x168313);}export function buildDbPageLinks(_0xa674a2,_0x5b296a){const _0x4f9412=a88_0x17ed,_0x1c49af=_0xa674a2?.[_0x4f9412(0x95)]();if(!_0x1c49af)return undefined;const _0x18539f=typeof _0x5b296a===_0x4f9412(0x93)?String(_0x5b296a):String(_0x5b296a??'')[_0x4f9412(0x95)]();if(!_0x18539f)return undefined;const _0x37bf44=Number(_0x18539f);if(!Number['isFinite'](_0x37bf44)||_0x37bf44<=0x0)return undefined;const _0x2fd838=getAppBaseUrl(_0x1c49af),_0x17c6a5=encodeURIComponent(String(_0x37bf44));return{'databasePage':_0x2fd838+'/data/database','erPage':_0x2fd838+_0x4f9412(0x83)+_0x17c6a5};}
@@ -1 +1 @@
1
- const a89_0x58b73d=a89_0x55e6;(function(_0x2a268d,_0x4a9d40){const _0x33bec9=a89_0x55e6,_0x110074=_0x2a268d();while(!![]){try{const _0x4e9ebd=-parseInt(_0x33bec9(0x1de))/0x1+-parseInt(_0x33bec9(0x1e7))/0x2+parseInt(_0x33bec9(0x1e1))/0x3+parseInt(_0x33bec9(0x1ea))/0x4*(-parseInt(_0x33bec9(0x1e2))/0x5)+-parseInt(_0x33bec9(0x1ec))/0x6*(parseInt(_0x33bec9(0x1eb))/0x7)+parseInt(_0x33bec9(0x1df))/0x8*(parseInt(_0x33bec9(0x1e9))/0x9)+parseInt(_0x33bec9(0x1e5))/0xa;if(_0x4e9ebd===_0x4a9d40)break;else _0x110074['push'](_0x110074['shift']());}catch(_0x5b15d5){_0x110074['push'](_0x110074['shift']());}}}(a89_0x49c5,0x986b6));function a89_0x55e6(_0x54f16e,_0x18c6b4){_0x54f16e=_0x54f16e-0x1dc;const _0x49c505=a89_0x49c5();let _0x55e68b=_0x49c505[_0x54f16e];return _0x55e68b;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0x49c5(){const _0x4b13f1=['883308jFGOUU','259RcUCJR','94002DLxoTc','length','num','963360GMKpCa','6865792jZmqOP','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','1156920uFrdFW','10YTaruz','tables','appCode','23157330ZBoCDX','read','1901188EVCMkb','\x20table(s)\x20on\x20db\x20link\x20','9FyIkrF'];a89_0x49c5=function(){return _0x4b13f1;};return a89_0x49c5();}export const dbTables={'service':'db','command':a89_0x58b73d(0x1e3),'description':a89_0x58b73d(0x1e0),'risk':a89_0x58b73d(0x1e6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x164db2){const _0x5a5ce3=a89_0x58b73d,_0x1e6bb9=_0x164db2[_0x5a5ce3(0x1dd)]('id'),_0x1bb3ca=await getDbAllTableList(_0x164db2[_0x5a5ce3(0x1e4)],_0x1e6bb9);return{'ok':!![],'data':{'dbLinkId':_0x1e6bb9,'total':_0x1bb3ca[_0x5a5ce3(0x1dc)],'tables':_0x1bb3ca},'message':_0x1bb3ca['length']+_0x5a5ce3(0x1e8)+_0x1e6bb9};}};
1
+ const a89_0x36d3a7=a89_0xb37c;(function(_0x56a0cb,_0x50fe70){const _0x451ceb=a89_0xb37c,_0x5cab2b=_0x56a0cb();while(!![]){try{const _0xfbb0ea=-parseInt(_0x451ceb(0x92))/0x1*(parseInt(_0x451ceb(0x84))/0x2)+parseInt(_0x451ceb(0x89))/0x3*(parseInt(_0x451ceb(0x8a))/0x4)+parseInt(_0x451ceb(0x85))/0x5+-parseInt(_0x451ceb(0x82))/0x6*(-parseInt(_0x451ceb(0x8f))/0x7)+-parseInt(_0x451ceb(0x83))/0x8*(-parseInt(_0x451ceb(0x91))/0x9)+parseInt(_0x451ceb(0x8d))/0xa*(parseInt(_0x451ceb(0x93))/0xb)+parseInt(_0x451ceb(0x8e))/0xc*(-parseInt(_0x451ceb(0x86))/0xd);if(_0xfbb0ea===_0x50fe70)break;else _0x5cab2b['push'](_0x5cab2b['shift']());}catch(_0x22708f){_0x5cab2b['push'](_0x5cab2b['shift']());}}}(a89_0x2ef4,0xdd987));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a89_0xb37c(_0x5cd306,_0x24c82f){_0x5cd306=_0x5cd306-0x80;const _0x2ef424=a89_0x2ef4();let _0xb37c3a=_0x2ef424[_0x5cd306];return _0xb37c3a;}function a89_0x2ef4(){const _0x124c41=['159304jfkLdA','2mThNec','539735ORVUfI','247KLbsMK','length','num','6Ykkffo','3309388VdLlmG','read','\x20table(s)\x20on\x20db\x20link\x20','2897830NKKaMp','1726956UlixQH','501641uLyiLB','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','126ZJpOal','337453XlJUCm','11Rpcyej','tables','appCode','138HrjUgm'];a89_0x2ef4=function(){return _0x124c41;};return a89_0x2ef4();}export const dbTables={'service':'db','command':a89_0x36d3a7(0x80),'description':a89_0x36d3a7(0x90),'risk':a89_0x36d3a7(0x8b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x28ca59){const _0x51f25c=a89_0x36d3a7,_0x49f552=_0x28ca59[_0x51f25c(0x88)]('id'),_0x1043b9=await getDbAllTableList(_0x28ca59[_0x51f25c(0x81)],_0x49f552);return{'ok':!![],'data':{'dbLinkId':_0x49f552,'total':_0x1043b9[_0x51f25c(0x87)],'tables':_0x1043b9},'message':_0x1043b9[_0x51f25c(0x87)]+_0x51f25c(0x8c)+_0x49f552};}};
@@ -1 +1 @@
1
- function a90_0x6c42(_0x11dc07,_0x57ec01){_0x11dc07=_0x11dc07-0x18e;const _0x40fffd=a90_0x40ff();let _0x6c42a4=_0x40fffd[_0x11dc07];return _0x6c42a4;}const a90_0x3c9183=a90_0x6c42;(function(_0x1dcba3,_0x509daa){const _0x5f3939=a90_0x6c42,_0x205993=_0x1dcba3();while(!![]){try{const _0x322dc0=parseInt(_0x5f3939(0x194))/0x1+parseInt(_0x5f3939(0x1a2))/0x2*(parseInt(_0x5f3939(0x1a0))/0x3)+-parseInt(_0x5f3939(0x1a3))/0x4+-parseInt(_0x5f3939(0x1a4))/0x5+-parseInt(_0x5f3939(0x18f))/0x6*(-parseInt(_0x5f3939(0x199))/0x7)+-parseInt(_0x5f3939(0x191))/0x8*(parseInt(_0x5f3939(0x19a))/0x9)+-parseInt(_0x5f3939(0x190))/0xa*(-parseInt(_0x5f3939(0x1a1))/0xb);if(_0x322dc0===_0x509daa)break;else _0x205993['push'](_0x205993['shift']());}catch(_0x18f4e4){_0x205993['push'](_0x205993['shift']());}}}(a90_0x40ff,0xa8c92));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x522ba5){const _0x24b905=a90_0x6c42;if(_0x522ba5===!![]||_0x522ba5===![])return{'success':_0x522ba5};if(_0x522ba5===null||_0x522ba5===undefined)return{'type':typeof _0x522ba5};if(typeof _0x522ba5!=='object')return{'type':typeof _0x522ba5};const _0x4be7cf=_0x522ba5,_0x30884f=['success',_0x24b905(0x1a6),_0x24b905(0x18e),'error',_0x24b905(0x19b),'data'],_0xec644={};for(const _0x75c701 of _0x30884f){if(_0x75c701 in _0x4be7cf)_0xec644[_0x75c701]=_0x4be7cf[_0x75c701];}return Object[_0x24b905(0x19f)](_0xec644)[_0x24b905(0x1a5)]===0x0&&(_0xec644[_0x24b905(0x19f)]=Object[_0x24b905(0x19f)](_0x4be7cf)[_0x24b905(0x19c)](0x0,0x14)),_0xec644;}function a90_0x40ff(){const _0x543c0f=['2831485olcPnt','length','message','code','120kbWnJG','7840XtBOZq','16XaNOyr','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20check\x20finished\x20for\x20db\x20link\x20','264205aNbDQp','Connection\x20OK\x20for\x20db\x20link\x20','test','success','object','352156xWEIJl','5647437GvxxUR','msg','slice','read','\x20(see\x20data.result)','keys','12870TzhhVE','20108WznSyP','274FXJyan','3114472xWqUad'];a90_0x40ff=function(){return _0x543c0f;};return a90_0x40ff();}export const dbTest={'service':'db','command':a90_0x3c9183(0x196),'description':a90_0x3c9183(0x192),'risk':a90_0x3c9183(0x19d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x58ab29){const _0x32d32d=a90_0x3c9183,_0x46f014=_0x58ab29['num']('id'),_0x20fd29=await testDbLinkConnect(_0x46f014),_0x252613=_0x20fd29===!![]||typeof _0x20fd29===_0x32d32d(0x198)&&_0x20fd29!==null&&_0x20fd29[_0x32d32d(0x197)]===!![],_0x49ef80=summarizeTestConnectResult(_0x20fd29);return{'ok':!![],'data':{'id':_0x46f014,'connected':Boolean(_0x252613),'result':_0x49ef80},'message':_0x252613?_0x32d32d(0x195)+_0x46f014:_0x32d32d(0x193)+_0x46f014+_0x32d32d(0x19e)};}};
1
+ const a90_0xa2c6ad=a90_0xa2d5;(function(_0x3377f3,_0x3da077){const _0x20f41b=a90_0xa2d5,_0x4a2b42=_0x3377f3();while(!![]){try{const _0x8bcfe5=-parseInt(_0x20f41b(0x1dc))/0x1+-parseInt(_0x20f41b(0x1dd))/0x2*(parseInt(_0x20f41b(0x1d8))/0x3)+parseInt(_0x20f41b(0x1d5))/0x4+parseInt(_0x20f41b(0x1e2))/0x5*(parseInt(_0x20f41b(0x1d3))/0x6)+-parseInt(_0x20f41b(0x1d7))/0x7+-parseInt(_0x20f41b(0x1cf))/0x8+-parseInt(_0x20f41b(0x1d4))/0x9*(-parseInt(_0x20f41b(0x1d0))/0xa);if(_0x8bcfe5===_0x3da077)break;else _0x4a2b42['push'](_0x4a2b42['shift']());}catch(_0x56dd21){_0x4a2b42['push'](_0x4a2b42['shift']());}}}(a90_0x5d29,0x84fcf));function a90_0x5d29(){const _0x175edb=['1670784BuXuuP','30MSUhDE','code','data','2220CcNDYx','3628386CWWCrY','1388684MXQbow','num','6977915pTWSQG','14949JZnGEe','success','message','keys','390715UXxBKu','44TqYUhC','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','read','error','test','9380qAfISa','object','Connection\x20check\x20finished\x20for\x20db\x20link\x20'];a90_0x5d29=function(){return _0x175edb;};return a90_0x5d29();}import{testDbLinkConnect}from'../../core/api-client.js';function a90_0xa2d5(_0x1790ec,_0x20e79e){_0x1790ec=_0x1790ec-0x1ce;const _0x5d2929=a90_0x5d29();let _0xa2d532=_0x5d2929[_0x1790ec];return _0xa2d532;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x3662ba){const _0x22525d=a90_0xa2d5;if(_0x3662ba===!![]||_0x3662ba===![])return{'success':_0x3662ba};if(_0x3662ba===null||_0x3662ba===undefined)return{'type':typeof _0x3662ba};if(typeof _0x3662ba!==_0x22525d(0x1e3))return{'type':typeof _0x3662ba};const _0x32a7fe=_0x3662ba,_0x21bf98=[_0x22525d(0x1d9),_0x22525d(0x1da),_0x22525d(0x1d1),_0x22525d(0x1e0),'msg',_0x22525d(0x1d2)],_0x46db63={};for(const _0x21c57c of _0x21bf98){if(_0x21c57c in _0x32a7fe)_0x46db63[_0x21c57c]=_0x32a7fe[_0x21c57c];}return Object[_0x22525d(0x1db)](_0x46db63)['length']===0x0&&(_0x46db63[_0x22525d(0x1db)]=Object[_0x22525d(0x1db)](_0x32a7fe)['slice'](0x0,0x14)),_0x46db63;}export const dbTest={'service':'db','command':a90_0xa2c6ad(0x1e1),'description':a90_0xa2c6ad(0x1de),'risk':a90_0xa2c6ad(0x1df),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x122593){const _0x3083e2=a90_0xa2c6ad,_0x47b6ec=_0x122593[_0x3083e2(0x1d6)]('id'),_0x5b939f=await testDbLinkConnect(_0x47b6ec),_0x1d4a38=_0x5b939f===!![]||typeof _0x5b939f===_0x3083e2(0x1e3)&&_0x5b939f!==null&&_0x5b939f[_0x3083e2(0x1d9)]===!![],_0x4f00b6=summarizeTestConnectResult(_0x5b939f);return{'ok':!![],'data':{'id':_0x47b6ec,'connected':Boolean(_0x1d4a38),'result':_0x4f00b6},'message':_0x1d4a38?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x47b6ec:_0x3083e2(0x1ce)+_0x47b6ec+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- const a91_0x5a26c6=a91_0x50ee;(function(_0x583d9e,_0x239a8b){const _0x13d324=a91_0x50ee,_0x17b3dd=_0x583d9e();while(!![]){try{const _0x33c63a=parseInt(_0x13d324(0x171))/0x1+-parseInt(_0x13d324(0x16c))/0x2+-parseInt(_0x13d324(0x166))/0x3+parseInt(_0x13d324(0x15a))/0x4*(parseInt(_0x13d324(0x173))/0x5)+-parseInt(_0x13d324(0x164))/0x6*(parseInt(_0x13d324(0x15c))/0x7)+-parseInt(_0x13d324(0x170))/0x8+-parseInt(_0x13d324(0x15b))/0x9*(-parseInt(_0x13d324(0x160))/0xa);if(_0x33c63a===_0x239a8b)break;else _0x17b3dd['push'](_0x17b3dd['shift']());}catch(_0x2ef294){_0x17b3dd['push'](_0x17b3dd['shift']());}}}(a91_0x4665,0x982e5));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a91_0x50ee(_0x493991,_0x19ab8b){_0x493991=_0x493991-0x15a;const _0x466571=a91_0x4665();let _0x50eeb4=_0x466571[_0x493991];return _0x50eeb4;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a91_0x4665(){const _0x3cbdf6=['dbUrl','New\x20connection\x20parameter\x20string','string','str','1679500NNkWIo','dbdesc','username','write','9403008obbGaP','570207dftiOR','dbParam','437945mjMDFR','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbparam','password','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20description','New\x20host:port','POST','/smartapi/dblink/update','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dburl','New\x20database\x20name','28uAHOvN','1818LKxwBG','7jUoSog','validation','update','num','87060bFCqRD','trim','New\x20username','dbname','1247874EBBtjG','dbName','286512SeiXJw','dbDesc'];a91_0x4665=function(){return _0x3cbdf6;};return a91_0x4665();}export const dbUpdate={'service':'db','command':a91_0x5a26c6(0x15e),'description':a91_0x5a26c6(0x17c),'risk':a91_0x5a26c6(0x16f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x5a26c6(0x163),'type':a91_0x5a26c6(0x16a),'description':a91_0x5a26c6(0x17e)},{'name':a91_0x5a26c6(0x17d),'type':'string','description':a91_0x5a26c6(0x179)},{'name':a91_0x5a26c6(0x16e),'type':'string','description':a91_0x5a26c6(0x162)},{'name':'password','type':a91_0x5a26c6(0x16a),'description':a91_0x5a26c6(0x174)},{'name':a91_0x5a26c6(0x175),'type':a91_0x5a26c6(0x16a),'description':a91_0x5a26c6(0x169)},{'name':a91_0x5a26c6(0x16d),'type':'string','description':a91_0x5a26c6(0x178)}],async 'validate'(_0x4dfebb){const _0x4aa3cd=a91_0x5a26c6,_0x28ae7e=_0x4dfebb[_0x4aa3cd(0x16b)]('dburl');if(_0x28ae7e&&!validateDbUrl(_0x28ae7e[_0x4aa3cd(0x161)]()))throw CliErrors[_0x4aa3cd(0x15d)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x28ae7e+'\x22');},async 'dryRun'(_0x5026ab){const _0x5112af=a91_0x5a26c6,_0xc1d9c0=_0x5026ab['num']('id'),_0x37e01d=await getDbLinkInfo(_0xc1d9c0),_0x95bdf3={..._0x37e01d},_0x4fae8a=_0x5026ab[_0x5112af(0x16b)](_0x5112af(0x163));if(_0x4fae8a)_0x95bdf3[_0x5112af(0x165)]=_0x4fae8a;const _0x446519=_0x5026ab[_0x5112af(0x16b)]('dburl');if(_0x446519)_0x95bdf3[_0x5112af(0x168)]=_0x446519[_0x5112af(0x161)]();const _0x2c51cf=_0x5026ab[_0x5112af(0x16b)](_0x5112af(0x16e));if(_0x2c51cf)_0x95bdf3['username']=_0x2c51cf;const _0x401942=_0x5026ab[_0x5112af(0x16b)](_0x5112af(0x176));if(_0x401942)_0x95bdf3['password']=_0x401942;const _0x21f938=_0x5026ab['str'](_0x5112af(0x175));if(_0x21f938)_0x95bdf3[_0x5112af(0x172)]=_0x21f938;const _0x3e6cd6=_0x5026ab['str'](_0x5112af(0x16d));if(_0x3e6cd6)_0x95bdf3[_0x5112af(0x167)]=_0x3e6cd6;const _0x55b8fd=sanitizeDbLinkForOutput(_0x95bdf3);return{'method':_0x5112af(0x17a),'url':_0x5112af(0x17b),'body':_0x55b8fd,'description':_0x5112af(0x177)};},async 'execute'(_0x5d70cf){const _0x4a3d44=a91_0x5a26c6,_0xfa1675=_0x5d70cf[_0x4a3d44(0x15f)]('id'),_0x4660dd=await getDbLinkInfo(_0xfa1675),_0x26ee25={..._0x4660dd},_0x49933d=_0x5d70cf[_0x4a3d44(0x16b)](_0x4a3d44(0x163));if(_0x49933d)_0x26ee25[_0x4a3d44(0x165)]=_0x49933d;const _0x1711e1=_0x5d70cf[_0x4a3d44(0x16b)](_0x4a3d44(0x17d));if(_0x1711e1)_0x26ee25['dbUrl']=_0x1711e1[_0x4a3d44(0x161)]();const _0x55874e=_0x5d70cf[_0x4a3d44(0x16b)](_0x4a3d44(0x16e));if(_0x55874e)_0x26ee25['username']=_0x55874e;const _0x2b54ca=_0x5d70cf[_0x4a3d44(0x16b)](_0x4a3d44(0x176));if(_0x2b54ca)_0x26ee25[_0x4a3d44(0x176)]=_0x2b54ca;const _0x1eaf69=_0x5d70cf[_0x4a3d44(0x16b)]('dbparam');if(_0x1eaf69)_0x26ee25[_0x4a3d44(0x172)]=_0x1eaf69;const _0x1685d2=_0x5d70cf[_0x4a3d44(0x16b)](_0x4a3d44(0x16d));if(_0x1685d2)_0x26ee25[_0x4a3d44(0x167)]=_0x1685d2;const {id:_0x373da9,entity:_0x4c10ff}=normalizeEntityWithIdResponse(await updateDbLink(_0x26ee25));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4c10ff),'message':'Updated\x20db\x20link\x20'+(_0x373da9??_0xfa1675)};}};
1
+ const a91_0x261ae2=a91_0x1f2b;(function(_0x335dec,_0x1991d4){const _0x2dd481=a91_0x1f2b,_0x25049f=_0x335dec();while(!![]){try{const _0x1083b1=parseInt(_0x2dd481(0x18b))/0x1*(-parseInt(_0x2dd481(0x189))/0x2)+parseInt(_0x2dd481(0x18f))/0x3+-parseInt(_0x2dd481(0x17c))/0x4+parseInt(_0x2dd481(0x186))/0x5*(-parseInt(_0x2dd481(0x17e))/0x6)+parseInt(_0x2dd481(0x17b))/0x7*(parseInt(_0x2dd481(0x177))/0x8)+parseInt(_0x2dd481(0x18c))/0x9+parseInt(_0x2dd481(0x180))/0xa;if(_0x1083b1===_0x1991d4)break;else _0x25049f['push'](_0x25049f['shift']());}catch(_0x59415f){_0x25049f['push'](_0x25049f['shift']());}}}(a91_0x3c70,0x22d18));function a91_0x1f2b(_0x1a7d10,_0x34f364){_0x1a7d10=_0x1a7d10-0x176;const _0x3c70b6=a91_0x3c70();let _0x1f2b3e=_0x3c70b6[_0x1a7d10];return _0x1f2b3e;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a91_0x261ae2(0x191),'description':a91_0x261ae2(0x181),'risk':a91_0x261ae2(0x197),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x261ae2(0x194),'type':a91_0x261ae2(0x17d),'description':a91_0x261ae2(0x18d)},{'name':a91_0x261ae2(0x178),'type':a91_0x261ae2(0x17d),'description':a91_0x261ae2(0x18a)},{'name':a91_0x261ae2(0x192),'type':a91_0x261ae2(0x17d),'description':'New\x20username'},{'name':a91_0x261ae2(0x184),'type':a91_0x261ae2(0x17d),'description':a91_0x261ae2(0x195)},{'name':a91_0x261ae2(0x193),'type':a91_0x261ae2(0x17d),'description':'New\x20connection\x20parameter\x20string'},{'name':a91_0x261ae2(0x176),'type':'string','description':a91_0x261ae2(0x187)}],async 'validate'(_0x13fbb5){const _0x29588a=a91_0x261ae2,_0x13de44=_0x13fbb5[_0x29588a(0x17a)](_0x29588a(0x178));if(_0x13de44&&!validateDbUrl(_0x13de44[_0x29588a(0x188)]()))throw CliErrors[_0x29588a(0x185)](_0x29588a(0x183)+_0x13de44+'\x22');},async 'dryRun'(_0x379d94){const _0x5b8f06=a91_0x261ae2,_0x5efa4a=_0x379d94[_0x5b8f06(0x17f)]('id'),_0x3cfe27=await getDbLinkInfo(_0x5efa4a),_0x44e529={..._0x3cfe27},_0x268d5d=_0x379d94[_0x5b8f06(0x17a)](_0x5b8f06(0x194));if(_0x268d5d)_0x44e529[_0x5b8f06(0x18e)]=_0x268d5d;const _0x37a048=_0x379d94[_0x5b8f06(0x17a)]('dburl');if(_0x37a048)_0x44e529[_0x5b8f06(0x182)]=_0x37a048['trim']();const _0x51c45e=_0x379d94[_0x5b8f06(0x17a)]('username');if(_0x51c45e)_0x44e529[_0x5b8f06(0x192)]=_0x51c45e;const _0x5eb588=_0x379d94[_0x5b8f06(0x17a)]('password');if(_0x5eb588)_0x44e529[_0x5b8f06(0x184)]=_0x5eb588;const _0x164c5f=_0x379d94['str'](_0x5b8f06(0x193));if(_0x164c5f)_0x44e529[_0x5b8f06(0x196)]=_0x164c5f;const _0x655e24=_0x379d94['str'](_0x5b8f06(0x176));if(_0x655e24)_0x44e529[_0x5b8f06(0x190)]=_0x655e24;const _0x10ede7=sanitizeDbLinkForOutput(_0x44e529);return{'method':_0x5b8f06(0x198),'url':'/smartapi/dblink/update','body':_0x10ede7,'description':_0x5b8f06(0x179)};},async 'execute'(_0x504d50){const _0x45bfb5=a91_0x261ae2,_0x18884b=_0x504d50['num']('id'),_0x5660e7=await getDbLinkInfo(_0x18884b),_0x4ea2d7={..._0x5660e7},_0x3e8a99=_0x504d50[_0x45bfb5(0x17a)](_0x45bfb5(0x194));if(_0x3e8a99)_0x4ea2d7['dbName']=_0x3e8a99;const _0x4ca81b=_0x504d50[_0x45bfb5(0x17a)]('dburl');if(_0x4ca81b)_0x4ea2d7[_0x45bfb5(0x182)]=_0x4ca81b[_0x45bfb5(0x188)]();const _0xe98c0d=_0x504d50[_0x45bfb5(0x17a)](_0x45bfb5(0x192));if(_0xe98c0d)_0x4ea2d7[_0x45bfb5(0x192)]=_0xe98c0d;const _0x5abdaa=_0x504d50['str'](_0x45bfb5(0x184));if(_0x5abdaa)_0x4ea2d7[_0x45bfb5(0x184)]=_0x5abdaa;const _0x5dd887=_0x504d50[_0x45bfb5(0x17a)](_0x45bfb5(0x193));if(_0x5dd887)_0x4ea2d7['dbParam']=_0x5dd887;const _0x1db3ab=_0x504d50[_0x45bfb5(0x17a)]('dbdesc');if(_0x1db3ab)_0x4ea2d7[_0x45bfb5(0x190)]=_0x1db3ab;const {id:_0x28866c,entity:_0x50ed16}=normalizeEntityWithIdResponse(await updateDbLink(_0x4ea2d7));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x50ed16),'message':'Updated\x20db\x20link\x20'+(_0x28866c??_0x18884b)};}};function a91_0x3c70(){const _0x221cb4=['dbName','659805RRlzjI','dbDesc','update','username','dbparam','dbname','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbParam','write','POST','dbdesc','8xgmpLt','dburl','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','str','111097BNZabX','694976fmwJfu','string','30744rOzPeE','num','3711010kTsChE','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbUrl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','password','validation','260plwpNW','New\x20description','trim','8BgHqZV','New\x20host:port','66683uYjivc','2183697Vztrlm','New\x20database\x20name'];a91_0x3c70=function(){return _0x221cb4;};return a91_0x3c70();}